(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const g of document.querySelectorAll('link[rel="modulepreload"]'))i(g);new MutationObserver(g=>{for(const $ of g)if($.type==="childList")for(const V of $.addedNodes)V.tagName==="LINK"&&V.rel==="modulepreload"&&i(V)}).observe(document,{childList:!0,subtree:!0});function r(g){const $={};return g.integrity&&($.integrity=g.integrity),g.referrerPolicy&&($.referrerPolicy=g.referrerPolicy),g.crossOrigin==="use-credentials"?$.credentials="include":g.crossOrigin==="anonymous"?$.credentials="omit":$.credentials="same-origin",$}function i(g){if(g.ep)return;g.ep=!0;const $=r(g);fetch(g.href,$)}})();/** * @vue/shared v3.5.26 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function makeMap(n){const t=Object.create(null);for(const r of n.split(","))t[r]=1;return r=>r in t}const EMPTY_OBJ$1={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),isModelListener=n=>n.startsWith("onUpdate:"),extend$2=Object.assign,remove$1=(n,t)=>{const r=n.indexOf(t);r>-1&&n.splice(r,1)},hasOwnProperty$h=Object.prototype.hasOwnProperty,hasOwn$1=(n,t)=>hasOwnProperty$h.call(n,t),isArray$5=Array.isArray,isMap$2=n=>toTypeString(n)==="[object Map]",isSet$2=n=>toTypeString(n)==="[object Set]",isDate$1=n=>toTypeString(n)==="[object Date]",isFunction$4=n=>typeof n=="function",isString$2=n=>typeof n=="string",isSymbol$1=n=>typeof n=="symbol",isObject$6=n=>n!==null&&typeof n=="object",isPromise=n=>(isObject$6(n)||isFunction$4(n))&&isFunction$4(n.then)&&isFunction$4(n.catch),objectToString$1=Object.prototype.toString,toTypeString=n=>objectToString$1.call(n),toRawType=n=>toTypeString(n).slice(8,-1),isPlainObject$3=n=>toTypeString(n)==="[object Object]",isIntegerKey=n=>isString$2(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=n=>{const t=Object.create(null);return r=>t[r]||(t[r]=n(r))},camelizeRE=/-\w/g,camelize=cacheStringFunction(n=>n.replace(camelizeRE,t=>t.slice(1).toUpperCase())),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(n=>n.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$1=cacheStringFunction(n=>n.charAt(0).toUpperCase()+n.slice(1)),toHandlerKey=cacheStringFunction(n=>n?`on${capitalize$1(n)}`:""),hasChanged=(n,t)=>!Object.is(n,t),invokeArrayFns=(n,...t)=>{for(let r=0;r{Object.defineProperty(n,t,{configurable:!0,enumerable:!1,writable:i,value:r})},looseToNumber$1=n=>{const t=parseFloat(n);return isNaN(t)?n:t},toNumber$1=n=>{const t=isString$2(n)?Number(n):NaN;return isNaN(t)?n:t};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle$1(n){if(isArray$5(n)){const t={};for(let r=0;r{if(r){const i=r.split(propertyDelimiterRE);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function stringifyStyle(n){if(!n)return"";if(isString$2(n))return n;let t="";for(const r in n){const i=n[r];if(isString$2(i)||typeof i=="number"){const g=r.startsWith("--")?r:hyphenate(r);t+=`${g}:${i};`}}return t}function normalizeClass(n){let t="";if(isString$2(n))t=n;else if(isArray$5(n))for(let r=0;r/="'\u0009\u000a\u000c\u0020]/,attrValidationCache={};function isSSRSafeAttrName(n){if(attrValidationCache.hasOwnProperty(n))return attrValidationCache[n];const t=unsafeAttrCharRE.test(n);return t&&console.error(`unsafe attribute name: ${n}`),attrValidationCache[n]=!t}const propsToAttrMap={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"};function isRenderableAttrValue(n){if(n==null)return!1;const t=typeof n;return t==="string"||t==="number"||t==="boolean"}const escapeRE=/["'&<>]/;function escapeHtml(n){const t=""+n,r=escapeRE.exec(t);if(!r)return t;let i="",g,$,V=0;for($=r.index;$||--!>|looseEqual(r,t))}const isRef$1=n=>!!(n&&n.__v_isRef===!0),toDisplayString=n=>isString$2(n)?n:n==null?"":isArray$5(n)||isObject$6(n)&&(n.toString===objectToString$1||!isFunction$4(n.toString))?isRef$1(n)?toDisplayString(n.value):JSON.stringify(n,replacer,2):String(n),replacer=(n,t)=>isRef$1(t)?replacer(n,t.value):isMap$2(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[i,g],$)=>(r[stringifySymbol(i,$)+" =>"]=g,r),{})}:isSet$2(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>stringifySymbol(r))}:isSymbol$1(t)?stringifySymbol(t):isObject$6(t)&&!isArray$5(t)&&!isPlainObject$3(t)?String(t):t,stringifySymbol=(n,t="")=>{var r;return isSymbol$1(n)?`Symbol(${(r=n.description)!=null?r:t})`:n};function normalizeCssVarValue(n){return n==null?"initial":typeof n=="string"?n===""?" ":n:String(n)}/** * @vue/reactivity v3.5.26 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let activeEffectScope;class EffectScope{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!t&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0&&--this._on===0&&(activeEffectScope=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,i;for(r=0,i=this.effects.length;r0)return;if(batchedComputed){let t=batchedComputed;for(batchedComputed=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let n;for(;batchedSub;){let t=batchedSub;for(batchedSub=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){n||(n=i)}t=r}}if(n)throw n}function prepareDeps(n){for(let t=n.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function cleanupDeps(n){let t,r=n.depsTail,i=r;for(;i;){const g=i.prevDep;i.version===-1?(i===r&&(r=g),removeSub(i),removeDep(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=g}n.deps=t,n.depsTail=r}function isDirty(n){for(let t=n.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(refreshComputed(t.dep.computed)||t.dep.version!==t.version))return!0;return!!n._dirty}function refreshComputed(n){if(n.flags&4&&!(n.flags&16)||(n.flags&=-17,n.globalVersion===globalVersion)||(n.globalVersion=globalVersion,!n.isSSR&&n.flags&128&&(!n.deps&&!n._dirty||!isDirty(n))))return;n.flags|=2;const t=n.dep,r=activeSub,i=shouldTrack;activeSub=n,shouldTrack=!0;try{prepareDeps(n);const g=n.fn(n._value);(t.version===0||hasChanged(g,n._value))&&(n.flags|=128,n._value=g,t.version++)}catch(g){throw t.version++,g}finally{activeSub=r,shouldTrack=i,cleanupDeps(n),n.flags&=-3}}function removeSub(n,t=!1){const{dep:r,prevSub:i,nextSub:g}=n;if(i&&(i.nextSub=g,n.prevSub=void 0),g&&(g.prevSub=i,n.nextSub=void 0),r.subs===n&&(r.subs=i,!i&&r.computed)){r.computed.flags&=-5;for(let $=r.computed.deps;$;$=$.nextDep)removeSub($,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function removeDep(n){const{prevDep:t,nextDep:r}=n;t&&(t.nextDep=r,n.prevDep=void 0),r&&(r.prevDep=t,n.nextDep=void 0)}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const n=trackStack.pop();shouldTrack=n===void 0?!0:n}function cleanupEffect(n){const{cleanup:t}=n;if(n.cleanup=void 0,t){const r=activeSub;activeSub=void 0;try{t()}finally{activeSub=r}}}let globalVersion=0,Link$1=class{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Dep{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!activeSub||!shouldTrack||activeSub===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==activeSub)r=this.activeLink=new Link$1(activeSub,this),activeSub.deps?(r.prevDep=activeSub.depsTail,activeSub.depsTail.nextDep=r,activeSub.depsTail=r):activeSub.deps=activeSub.depsTail=r,addSub(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const i=r.nextDep;i.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=i),r.prevDep=activeSub.depsTail,r.nextDep=void 0,activeSub.depsTail.nextDep=r,activeSub.depsTail=r,activeSub.deps===r&&(activeSub.deps=i)}return r}trigger(t){this.version++,globalVersion++,this.notify(t)}notify(t){startBatch();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{endBatch()}}}function addSub(n){if(n.dep.sc++,n.sub.flags&4){const t=n.dep.computed;if(t&&!n.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)addSub(i)}const r=n.dep.subs;r!==n&&(n.prevSub=r,r&&(r.nextSub=n)),n.dep.subs=n}}const targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol(""),ARRAY_ITERATE_KEY=Symbol("");function track(n,t,r){if(shouldTrack&&activeSub){let i=targetMap.get(n);i||targetMap.set(n,i=new Map);let g=i.get(r);g||(i.set(r,g=new Dep),g.map=i,g.key=r),g.track()}}function trigger(n,t,r,i,g,$){const V=targetMap.get(n);if(!V){globalVersion++;return}const re=ie=>{ie&&ie.trigger()};if(startBatch(),t==="clear")V.forEach(re);else{const ie=isArray$5(n),ae=ie&&isIntegerKey(r);if(ie&&r==="length"){const oe=Number(i);V.forEach((le,ue)=>{(ue==="length"||ue===ARRAY_ITERATE_KEY||!isSymbol$1(ue)&&ue>=oe)&&re(le)})}else switch((r!==void 0||V.has(void 0))&&re(V.get(r)),ae&&re(V.get(ARRAY_ITERATE_KEY)),t){case"add":ie?ae&&re(V.get("length")):(re(V.get(ITERATE_KEY)),isMap$2(n)&&re(V.get(MAP_KEY_ITERATE_KEY)));break;case"delete":ie||(re(V.get(ITERATE_KEY)),isMap$2(n)&&re(V.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$2(n)&&re(V.get(ITERATE_KEY));break}}endBatch()}function getDepFromReactive(n,t){const r=targetMap.get(n);return r&&r.get(t)}function reactiveReadArray(n){const t=toRaw(n);return t===n?t:(track(t,"iterate",ARRAY_ITERATE_KEY),isShallow(n)?t:t.map(toReactive$1))}function shallowReadArray(n){return track(n=toRaw(n),"iterate",ARRAY_ITERATE_KEY),n}function toWrapped(n,t){return isReadonly(n)?isReactive(n)?toReadonly(toReactive$1(t)):toReadonly(t):toReactive$1(t)}const arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator$2(this,Symbol.iterator,n=>toWrapped(this,n))},concat(...n){return reactiveReadArray(this).concat(...n.map(t=>isArray$5(t)?reactiveReadArray(t):t))},entries(){return iterator$2(this,"entries",n=>(n[1]=toWrapped(this,n[1]),n))},every(n,t){return apply$1(this,"every",n,t,void 0,arguments)},filter(n,t){return apply$1(this,"filter",n,t,r=>r.map(i=>toWrapped(this,i)),arguments)},find(n,t){return apply$1(this,"find",n,t,r=>toWrapped(this,r),arguments)},findIndex(n,t){return apply$1(this,"findIndex",n,t,void 0,arguments)},findLast(n,t){return apply$1(this,"findLast",n,t,r=>toWrapped(this,r),arguments)},findLastIndex(n,t){return apply$1(this,"findLastIndex",n,t,void 0,arguments)},forEach(n,t){return apply$1(this,"forEach",n,t,void 0,arguments)},includes(...n){return searchProxy(this,"includes",n)},indexOf(...n){return searchProxy(this,"indexOf",n)},join(n){return reactiveReadArray(this).join(n)},lastIndexOf(...n){return searchProxy(this,"lastIndexOf",n)},map(n,t){return apply$1(this,"map",n,t,void 0,arguments)},pop(){return noTracking(this,"pop")},push(...n){return noTracking(this,"push",n)},reduce(n,...t){return reduce$1(this,"reduce",n,t)},reduceRight(n,...t){return reduce$1(this,"reduceRight",n,t)},shift(){return noTracking(this,"shift")},some(n,t){return apply$1(this,"some",n,t,void 0,arguments)},splice(...n){return noTracking(this,"splice",n)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(n){return reactiveReadArray(this).toSorted(n)},toSpliced(...n){return reactiveReadArray(this).toSpliced(...n)},unshift(...n){return noTracking(this,"unshift",n)},values(){return iterator$2(this,"values",n=>toWrapped(this,n))}};function iterator$2(n,t,r){const i=shallowReadArray(n),g=i[t]();return i!==n&&!isShallow(n)&&(g._next=g.next,g.next=()=>{const $=g._next();return $.done||($.value=r($.value)),$}),g}const arrayProto$2=Array.prototype;function apply$1(n,t,r,i,g,$){const V=shallowReadArray(n),re=V!==n&&!isShallow(n),ie=V[t];if(ie!==arrayProto$2[t]){const le=ie.apply(n,$);return re?toReactive$1(le):le}let ae=r;V!==n&&(re?ae=function(le,ue){return r.call(this,toWrapped(n,le),ue,n)}:r.length>2&&(ae=function(le,ue){return r.call(this,le,ue,n)}));const oe=ie.call(V,ae,i);return re&&g?g(oe):oe}function reduce$1(n,t,r,i){const g=shallowReadArray(n);let $=r;return g!==n&&(isShallow(n)?r.length>3&&($=function(V,re,ie){return r.call(this,V,re,ie,n)}):$=function(V,re,ie){return r.call(this,V,toWrapped(n,re),ie,n)}),g[t]($,...i)}function searchProxy(n,t,r){const i=toRaw(n);track(i,"iterate",ARRAY_ITERATE_KEY);const g=i[t](...r);return(g===-1||g===!1)&&isProxy(r[0])?(r[0]=toRaw(r[0]),i[t](...r)):g}function noTracking(n,t,r=[]){pauseTracking(),startBatch();const i=toRaw(n)[t].apply(n,r);return endBatch(),resetTracking(),i}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(isSymbol$1));function hasOwnProperty$g(n){isSymbol$1(n)||(n=String(n));const t=toRaw(this);return track(t,"has",n),t.hasOwnProperty(n)}class BaseReactiveHandler{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,i){if(r==="__v_skip")return t.__v_skip;const g=this._isReadonly,$=this._isShallow;if(r==="__v_isReactive")return!g;if(r==="__v_isReadonly")return g;if(r==="__v_isShallow")return $;if(r==="__v_raw")return i===(g?$?shallowReadonlyMap:readonlyMap:$?shallowReactiveMap:reactiveMap).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const V=isArray$5(t);if(!g){let ie;if(V&&(ie=arrayInstrumentations[r]))return ie;if(r==="hasOwnProperty")return hasOwnProperty$g}const re=Reflect.get(t,r,isRef(t)?t:i);if((isSymbol$1(r)?builtInSymbols.has(r):isNonTrackableKeys(r))||(g||track(t,"get",r),$))return re;if(isRef(re)){const ie=V&&isIntegerKey(r)?re:re.value;return g&&isObject$6(ie)?readonly(ie):ie}return isObject$6(re)?g?readonly(re):reactive(re):re}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(t=!1){super(!1,t)}set(t,r,i,g){let $=t[r];const V=isArray$5(t)&&isIntegerKey(r);if(!this._isShallow){const ae=isReadonly($);if(!isShallow(i)&&!isReadonly(i)&&($=toRaw($),i=toRaw(i)),!V&&isRef($)&&!isRef(i))return ae||($.value=i),!0}const re=V?Number(r)n,getProto=n=>Reflect.getPrototypeOf(n);function createIterableMethod(n,t,r){return function(...i){const g=this.__v_raw,$=toRaw(g),V=isMap$2($),re=n==="entries"||n===Symbol.iterator&&V,ie=n==="keys"&&V,ae=g[n](...i),oe=r?toShallow:t?toReadonly:toReactive$1;return!t&&track($,"iterate",ie?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:le,done:ue}=ae.next();return ue?{value:le,done:ue}:{value:re?[oe(le[0]),oe(le[1])]:oe(le),done:ue}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(n){return function(...t){return n==="delete"?!1:n==="clear"?void 0:this}}function createInstrumentations(n,t){const r={get(g){const $=this.__v_raw,V=toRaw($),re=toRaw(g);n||(hasChanged(g,re)&&track(V,"get",g),track(V,"get",re));const{has:ie}=getProto(V),ae=t?toShallow:n?toReadonly:toReactive$1;if(ie.call(V,g))return ae($.get(g));if(ie.call(V,re))return ae($.get(re));$!==V&&$.get(g)},get size(){const g=this.__v_raw;return!n&&track(toRaw(g),"iterate",ITERATE_KEY),g.size},has(g){const $=this.__v_raw,V=toRaw($),re=toRaw(g);return n||(hasChanged(g,re)&&track(V,"has",g),track(V,"has",re)),g===re?$.has(g):$.has(g)||$.has(re)},forEach(g,$){const V=this,re=V.__v_raw,ie=toRaw(re),ae=t?toShallow:n?toReadonly:toReactive$1;return!n&&track(ie,"iterate",ITERATE_KEY),re.forEach((oe,le)=>g.call($,ae(oe),ae(le),V))}};return extend$2(r,n?{add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear")}:{add(g){!t&&!isShallow(g)&&!isReadonly(g)&&(g=toRaw(g));const $=toRaw(this);return getProto($).has.call($,g)||($.add(g),trigger($,"add",g,g)),this},set(g,$){!t&&!isShallow($)&&!isReadonly($)&&($=toRaw($));const V=toRaw(this),{has:re,get:ie}=getProto(V);let ae=re.call(V,g);ae||(g=toRaw(g),ae=re.call(V,g));const oe=ie.call(V,g);return V.set(g,$),ae?hasChanged($,oe)&&trigger(V,"set",g,$):trigger(V,"add",g,$),this},delete(g){const $=toRaw(this),{has:V,get:re}=getProto($);let ie=V.call($,g);ie||(g=toRaw(g),ie=V.call($,g)),re&&re.call($,g);const ae=$.delete(g);return ie&&trigger($,"delete",g,void 0),ae},clear(){const g=toRaw(this),$=g.size!==0,V=g.clear();return $&&trigger(g,"clear",void 0,void 0),V}}),["keys","values","entries",Symbol.iterator].forEach(g=>{r[g]=createIterableMethod(g,n,t)}),r}function createInstrumentationGetter(n,t){const r=createInstrumentations(n,t);return(i,g,$)=>g==="__v_isReactive"?!n:g==="__v_isReadonly"?n:g==="__v_raw"?i:Reflect.get(hasOwn$1(r,g)&&g in i?r:i,g,$)}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(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(n){return n.__v_skip||!Object.isExtensible(n)?0:targetTypeMap(toRawType(n))}function reactive(n){return isReadonly(n)?n:createReactiveObject(n,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(n){return createReactiveObject(n,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(n){return createReactiveObject(n,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(n){return createReactiveObject(n,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(n,t,r,i,g){if(!isObject$6(n)||n.__v_raw&&!(t&&n.__v_isReactive))return n;const $=getTargetType(n);if($===0)return n;const V=g.get(n);if(V)return V;const re=new Proxy(n,$===2?i:r);return g.set(n,re),re}function isReactive(n){return isReadonly(n)?isReactive(n.__v_raw):!!(n&&n.__v_isReactive)}function isReadonly(n){return!!(n&&n.__v_isReadonly)}function isShallow(n){return!!(n&&n.__v_isShallow)}function isProxy(n){return n?!!n.__v_raw:!1}function toRaw(n){const t=n&&n.__v_raw;return t?toRaw(t):n}function markRaw(n){return!hasOwn$1(n,"__v_skip")&&Object.isExtensible(n)&&def(n,"__v_skip",!0),n}const toReactive$1=n=>isObject$6(n)?reactive(n):n,toReadonly=n=>isObject$6(n)?readonly(n):n;function isRef(n){return n?n.__v_isRef===!0:!1}function ref(n){return createRef(n,!1)}function shallowRef(n){return createRef(n,!0)}function createRef(n,t){return isRef(n)?n:new RefImpl(n,t)}class RefImpl{constructor(t,r){this.dep=new Dep,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:toRaw(t),this._value=r?t:toReactive$1(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,i=this.__v_isShallow||isShallow(t)||isReadonly(t);t=i?t:toRaw(t),hasChanged(t,r)&&(this._rawValue=t,this._value=i?t:toReactive$1(t),this.dep.trigger())}}function triggerRef(n){n.dep&&n.dep.trigger()}function unref(n){return isRef(n)?n.value:n}const shallowUnwrapHandlers={get:(n,t,r)=>t==="__v_raw"?n:unref(Reflect.get(n,t,r)),set:(n,t,r,i)=>{const g=n[t];return isRef(g)&&!isRef(r)?(g.value=r,!0):Reflect.set(n,t,r,i)}};function proxyRefs(n){return isReactive(n)?n:new Proxy(n,shallowUnwrapHandlers)}class CustomRefImpl{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Dep,{get:i,set:g}=t(r.track.bind(r),r.trigger.bind(r));this._get=i,this._set=g}get value(){return this._value=this._get()}set value(t){this._set(t)}}function customRef(n){return new CustomRefImpl(n)}function toRefs(n){const t=isArray$5(n)?new Array(n.length):{};for(const r in n)t[r]=propertyToRef(n,r);return t}class ObjectRefImpl{constructor(t,r,i){this._object=t,this._key=r,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0,this._raw=toRaw(t);let g=!0,$=t;if(!isArray$5(t)||!isIntegerKey(String(r)))do g=!isProxy($)||isShallow($);while(g&&($=$.__v_raw));this._shallow=g}get value(){let t=this._object[this._key];return this._shallow&&(t=unref(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&isRef(this._raw[this._key])){const r=this._object[this._key];if(isRef(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return getDepFromReactive(this._raw,this._key)}}class GetterRefImpl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function toRef$1(n,t,r){return isRef(n)?n:isFunction$4(n)?new GetterRefImpl(n):isObject$6(n)&&arguments.length>1?propertyToRef(n,t,r):ref(n)}function propertyToRef(n,t,r){return new ObjectRefImpl(n,t,r)}class ComputedRefImpl{constructor(t,r,i){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Dep(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=globalVersion-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&activeSub!==this)return batch(this,!0),!0}get value(){const t=this.dep.track();return refreshComputed(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function computed$1(n,t,r=!1){let i,g;return isFunction$4(n)?i=n:(i=n.get,g=n.set),new ComputedRefImpl(i,g,r)}const INITIAL_WATCHER_VALUE={},cleanupMap=new WeakMap;let activeWatcher;function onWatcherCleanup(n,t=!1,r=activeWatcher){if(r){let i=cleanupMap.get(r);i||cleanupMap.set(r,i=[]),i.push(n)}}function watch$1(n,t,r=EMPTY_OBJ$1){const{immediate:i,deep:g,once:$,scheduler:V,augmentJob:re,call:ie}=r,ae=Ne=>g?Ne:isShallow(Ne)||g===!1||g===0?traverse(Ne,1):traverse(Ne);let oe,le,ue,de,he=!1,pe=!1;if(isRef(n)?(le=()=>n.value,he=isShallow(n)):isReactive(n)?(le=()=>ae(n),he=!0):isArray$5(n)?(pe=!0,he=n.some(Ne=>isReactive(Ne)||isShallow(Ne)),le=()=>n.map(Ne=>{if(isRef(Ne))return Ne.value;if(isReactive(Ne))return ae(Ne);if(isFunction$4(Ne))return ie?ie(Ne,2):Ne()})):isFunction$4(n)?t?le=ie?()=>ie(n,2):n:le=()=>{if(ue){pauseTracking();try{ue()}finally{resetTracking()}}const Ne=activeWatcher;activeWatcher=oe;try{return ie?ie(n,3,[de]):n(de)}finally{activeWatcher=Ne}}:le=NOOP,t&&g){const Ne=le,Oe=g===!0?1/0:g;le=()=>traverse(Ne(),Oe)}const _e=getCurrentScope(),Ce=()=>{oe.stop(),_e&&_e.active&&remove$1(_e.effects,oe)};if($&&t){const Ne=t;t=(...Oe)=>{Ne(...Oe),Ce()}}let xe=pe?new Array(n.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const Ie=Ne=>{if(!(!(oe.flags&1)||!oe.dirty&&!Ne))if(t){const Oe=oe.run();if(g||he||(pe?Oe.some(($e,Ve)=>hasChanged($e,xe[Ve])):hasChanged(Oe,xe))){ue&&ue();const $e=activeWatcher;activeWatcher=oe;try{const Ve=[Oe,xe===INITIAL_WATCHER_VALUE?void 0:pe&&xe[0]===INITIAL_WATCHER_VALUE?[]:xe,de];xe=Oe,ie?ie(t,3,Ve):t(...Ve)}finally{activeWatcher=$e}}}else oe.run()};return re&&re(Ie),oe=new ReactiveEffect(le),oe.scheduler=V?()=>V(Ie,!1):Ie,de=Ne=>onWatcherCleanup(Ne,!1,oe),ue=oe.onStop=()=>{const Ne=cleanupMap.get(oe);if(Ne){if(ie)ie(Ne,4);else for(const Oe of Ne)Oe();cleanupMap.delete(oe)}},t?i?Ie(!0):xe=oe.run():V?V(Ie.bind(null,!0),!0):oe.run(),Ce.pause=oe.pause.bind(oe),Ce.resume=oe.resume.bind(oe),Ce.stop=Ce,Ce}function traverse(n,t=1/0,r){if(t<=0||!isObject$6(n)||n.__v_skip||(r=r||new Map,(r.get(n)||0)>=t))return n;if(r.set(n,t),t--,isRef(n))traverse(n.value,t,r);else if(isArray$5(n))for(let i=0;i{traverse(i,t,r)});else if(isPlainObject$3(n)){for(const i in n)traverse(n[i],t,r);for(const i of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,i)&&traverse(n[i],t,r)}return n}/** * @vue/runtime-core v3.5.26 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const stack=[];function pushWarningContext$1(n){stack.push(n)}function popWarningContext$1(){stack.pop()}let isWarning=!1;function warn$1(n,...t){if(isWarning)return;isWarning=!0,pauseTracking();const r=stack.length?stack[stack.length-1].component:null,i=r&&r.appContext.config.warnHandler,g=getComponentTrace();if(i)callWithErrorHandling(i,r,11,[n+t.map($=>{var V,re;return(re=(V=$.toString)==null?void 0:V.call($))!=null?re:JSON.stringify($)}).join(""),r&&r.proxy,g.map(({vnode:$})=>`at <${formatComponentName(r,$.type)}>`).join(` `),g]);else{const $=[`[Vue warn]: ${n}`,...t];g.length&&$.push(` `,...formatTrace(g)),console.warn(...$)}resetTracking(),isWarning=!1}function getComponentTrace(){let n=stack[stack.length-1];if(!n)return[];const t=[];for(;n;){const r=t[0];r&&r.vnode===n?r.recurseCount++:t.push({vnode:n,recurseCount:0});const i=n.component&&n.component.parent;n=i&&i.vnode}return t}function formatTrace(n){const t=[];return n.forEach((r,i)=>{t.push(...i===0?[]:[` `],...formatTraceEntry(r))}),t}function formatTraceEntry({vnode:n,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",i=n.component?n.component.parent==null:!1,g=` at <${formatComponentName(n.component,n.type,i)}`,$=">"+r;return n.props?[g,...formatProps(n.props),$]:[g+$]}function formatProps(n){const t=[],r=Object.keys(n);return r.slice(0,3).forEach(i=>{t.push(...formatProp(i,n[i]))}),r.length>3&&t.push(" ..."),t}function formatProp(n,t,r){return isString$2(t)?(t=JSON.stringify(t),r?t:[`${n}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${n}=${t}`]:isRef(t)?(t=formatProp(n,toRaw(t.value),!0),r?t:[`${n}=Ref<`,t,">"]):isFunction$4(t)?[`${n}=fn${t.name?`<${t.name}>`:""}`]:(t=toRaw(t),r?t:[`${n}=`,t])}function callWithErrorHandling(n,t,r,i){try{return i?n(...i):n()}catch(g){handleError(g,t,r)}}function callWithAsyncErrorHandling(n,t,r,i){if(isFunction$4(n)){const g=callWithErrorHandling(n,t,r,i);return g&&isPromise(g)&&g.catch($=>{handleError($,t,r)}),g}if(isArray$5(n)){const g=[];for(let $=0;$>>1,g=queue[i],$=getId$1(g);$=getId$1(r)?queue.push(n):queue.splice(findInsertionIndex$1(t),0,n),n.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||(currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(n){isArray$5(n)?pendingPostFlushCbs.push(...n):activePostFlushCbs&&n.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,n):n.flags&1||(pendingPostFlushCbs.push(n),n.flags|=1),queueFlush()}function flushPreFlushCbs(n,t,r=flushIndex+1){for(;rgetId$1(r)-getId$1(i));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...t);return}for(activePostFlushCbs=t,postFlushIndex=0;postFlushIndexn.id==null?n.flags&2?-1:1/0:n.id;function flushJobs(n){const t=NOOP;try{for(flushIndex=0;flushIndex{i._d&&setBlockTracking(-1);const $=setCurrentRenderingInstance$1(t);let V;try{V=n(...g)}finally{setCurrentRenderingInstance$1($),i._d&&setBlockTracking(1)}return V};return i._n=!0,i._c=!0,i._d=!0,i}function withDirectives(n,t){if(currentRenderingInstance===null)return n;const r=getComponentPublicInstance(currentRenderingInstance),i=n.dirs||(n.dirs=[]);for(let g=0;g1)return r&&isFunction$4(t)?t.call(i&&i.proxy):t}}function hasInjectionContext(){return!!(getCurrentInstance()||currentApp)}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function watchEffect(n,t){return doWatch(n,null,t)}function watch(n,t,r){return doWatch(n,t,r)}function doWatch(n,t,r=EMPTY_OBJ$1){const{immediate:i,deep:g,flush:$,once:V}=r,re=extend$2({},r),ie=t&&i||!t&&$!=="post";let ae;if(isInSSRComponentSetup){if($==="sync"){const de=useSSRContext();ae=de.__watcherHandles||(de.__watcherHandles=[])}else if(!ie){const de=()=>{};return de.stop=NOOP,de.resume=NOOP,de.pause=NOOP,de}}const oe=currentInstance;re.call=(de,he,pe)=>callWithAsyncErrorHandling(de,oe,he,pe);let le=!1;$==="post"?re.scheduler=de=>{queuePostRenderEffect(de,oe&&oe.suspense)}:$!=="sync"&&(le=!0,re.scheduler=(de,he)=>{he?de():queueJob(de)}),re.augmentJob=de=>{t&&(de.flags|=4),le&&(de.flags|=2,oe&&(de.id=oe.uid,de.i=oe))};const ue=watch$1(n,t,re);return isInSSRComponentSetup&&(ae?ae.push(ue):ie&&ue()),ue}function instanceWatch(n,t,r){const i=this.proxy,g=isString$2(n)?n.includes(".")?createPathGetter(i,n):()=>i[n]:n.bind(i,i);let $;isFunction$4(t)?$=t:($=t.handler,r=t);const V=setCurrentInstance(this),re=doWatch(g,$.bind(i),r);return V(),re}function createPathGetter(n,t){const r=t.split(".");return()=>{let i=n;for(let g=0;gn.__isTeleport,isTeleportDisabled=n=>n&&(n.disabled||n.disabled===""),isTeleportDeferred=n=>n&&(n.defer||n.defer===""),isTargetSVG=n=>typeof SVGElement<"u"&&n instanceof SVGElement,isTargetMathML=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,resolveTarget=(n,t)=>{const r=n&&n.to;return isString$2(r)?t?t(r):null:r},TeleportImpl={name:"Teleport",__isTeleport:!0,process(n,t,r,i,g,$,V,re,ie,ae){const{mc:oe,pc:le,pbc:ue,o:{insert:de,querySelector:he,createText:pe,createComment:_e}}=ae,Ce=isTeleportDisabled(t.props);let{shapeFlag:xe,children:Ie,dynamicChildren:Ne}=t;if(n==null){const Oe=t.el=pe(""),$e=t.anchor=pe("");de(Oe,r,i),de($e,r,i);const Ve=(Fe,ze)=>{xe&16&&oe(Ie,Fe,ze,g,$,V,re,ie)},Ue=()=>{const Fe=t.target=resolveTarget(t.props,he),ze=prepareAnchor(Fe,t,pe,de);Fe&&(V!=="svg"&&isTargetSVG(Fe)?V="svg":V!=="mathml"&&isTargetMathML(Fe)&&(V="mathml"),g&&g.isCE&&(g.ce._teleportTargets||(g.ce._teleportTargets=new Set)).add(Fe),Ce||(Ve(Fe,ze),updateCssVars(t,!1)))};Ce&&(Ve(r,$e),updateCssVars(t,!0)),isTeleportDeferred(t.props)?(t.el.__isMounted=!1,queuePostRenderEffect(()=>{Ue(),delete t.el.__isMounted},$)):Ue()}else{if(isTeleportDeferred(t.props)&&n.el.__isMounted===!1){queuePostRenderEffect(()=>{TeleportImpl.process(n,t,r,i,g,$,V,re,ie,ae)},$);return}t.el=n.el,t.targetStart=n.targetStart;const Oe=t.anchor=n.anchor,$e=t.target=n.target,Ve=t.targetAnchor=n.targetAnchor,Ue=isTeleportDisabled(n.props),Fe=Ue?r:$e,ze=Ue?Oe:Ve;if(V==="svg"||isTargetSVG($e)?V="svg":(V==="mathml"||isTargetMathML($e))&&(V="mathml"),Ne?(ue(n.dynamicChildren,Ne,Fe,g,$,V,re),traverseStaticChildren(n,t,!0)):ie||le(n,t,Fe,ze,g,$,V,re,!1),Ce)Ue?t.props&&n.props&&t.props.to!==n.props.to&&(t.props.to=n.props.to):moveTeleport(t,r,Oe,ae,1);else if((t.props&&t.props.to)!==(n.props&&n.props.to)){const Pt=t.target=resolveTarget(t.props,he);Pt&&moveTeleport(t,Pt,null,ae,0)}else Ue&&moveTeleport(t,$e,Ve,ae,1);updateCssVars(t,Ce)}},remove(n,t,r,{um:i,o:{remove:g}},$){const{shapeFlag:V,children:re,anchor:ie,targetStart:ae,targetAnchor:oe,target:le,props:ue}=n;if(le&&(g(ae),g(oe)),$&&g(ie),V&16){const de=$||!isTeleportDisabled(ue);for(let he=0;he{n.isMounted=!0}),onBeforeUnmount(()=>{n.isUnmounting=!0}),n}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=n=>{const t=n.subTree;return t.component?recursiveGetSubtree(t.component):t},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(n,{slots:t}){const r=getCurrentInstance(),i=useTransitionState();return()=>{const g=t.default&&getTransitionRawChildren(t.default(),!0);if(!g||!g.length)return;const $=findNonCommentChild(g),V=toRaw(n),{mode:re}=V;if(i.isLeaving)return emptyPlaceholder($);const ie=getInnerChild$1($);if(!ie)return emptyPlaceholder($);let ae=resolveTransitionHooks(ie,V,i,r,le=>ae=le);ie.type!==Comment&&setTransitionHooks(ie,ae);let oe=r.subTree&&getInnerChild$1(r.subTree);if(oe&&oe.type!==Comment&&!isSameVNodeType(oe,ie)&&recursiveGetSubtree(r).type!==Comment){let le=resolveTransitionHooks(oe,V,i,r);if(setTransitionHooks(oe,le),re==="out-in"&&ie.type!==Comment)return i.isLeaving=!0,le.afterLeave=()=>{i.isLeaving=!1,r.job.flags&8||r.update(),delete le.afterLeave,oe=void 0},emptyPlaceholder($);re==="in-out"&&ie.type!==Comment?le.delayLeave=(ue,de,he)=>{const pe=getLeavingNodesForType(i,oe);pe[String(oe.key)]=oe,ue[leaveCbKey]=()=>{de(),ue[leaveCbKey]=void 0,delete ae.delayedLeave,oe=void 0},ae.delayedLeave=()=>{he(),delete ae.delayedLeave,oe=void 0}}:oe=void 0}else oe&&(oe=void 0);return $}}};function findNonCommentChild(n){let t=n[0];if(n.length>1){for(const r of n)if(r.type!==Comment){t=r;break}}return t}const BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(n,t){const{leavingVNodes:r}=n;let i=r.get(t.type);return i||(i=Object.create(null),r.set(t.type,i)),i}function resolveTransitionHooks(n,t,r,i,g){const{appear:$,mode:V,persisted:re=!1,onBeforeEnter:ie,onEnter:ae,onAfterEnter:oe,onEnterCancelled:le,onBeforeLeave:ue,onLeave:de,onAfterLeave:he,onLeaveCancelled:pe,onBeforeAppear:_e,onAppear:Ce,onAfterAppear:xe,onAppearCancelled:Ie}=t,Ne=String(n.key),Oe=getLeavingNodesForType(r,n),$e=(Fe,ze)=>{Fe&&callWithAsyncErrorHandling(Fe,i,9,ze)},Ve=(Fe,ze)=>{const Pt=ze[1];$e(Fe,ze),isArray$5(Fe)?Fe.every(qe=>qe.length<=1)&&Pt():Fe.length<=1&&Pt()},Ue={mode:V,persisted:re,beforeEnter(Fe){let ze=ie;if(!r.isMounted)if($)ze=_e||ie;else return;Fe[leaveCbKey]&&Fe[leaveCbKey](!0);const Pt=Oe[Ne];Pt&&isSameVNodeType(n,Pt)&&Pt.el[leaveCbKey]&&Pt.el[leaveCbKey](),$e(ze,[Fe])},enter(Fe){let ze=ae,Pt=oe,qe=le;if(!r.isMounted)if($)ze=Ce||ae,Pt=xe||oe,qe=Ie||le;else return;let Et=!1;const kt=Fe[enterCbKey$1]=At=>{Et||(Et=!0,At?$e(qe,[Fe]):$e(Pt,[Fe]),Ue.delayedLeave&&Ue.delayedLeave(),Fe[enterCbKey$1]=void 0)};ze?Ve(ze,[Fe,kt]):kt()},leave(Fe,ze){const Pt=String(n.key);if(Fe[enterCbKey$1]&&Fe[enterCbKey$1](!0),r.isUnmounting)return ze();$e(ue,[Fe]);let qe=!1;const Et=Fe[leaveCbKey]=kt=>{qe||(qe=!0,ze(),kt?$e(pe,[Fe]):$e(he,[Fe]),Fe[leaveCbKey]=void 0,Oe[Pt]===n&&delete Oe[Pt])};Oe[Pt]=n,de?Ve(de,[Fe,Et]):Et()},clone(Fe){const ze=resolveTransitionHooks(Fe,t,r,i,g);return g&&g(ze),ze}};return Ue}function emptyPlaceholder(n){if(isKeepAlive(n))return n=cloneVNode(n),n.children=null,n}function getInnerChild$1(n){if(!isKeepAlive(n))return isTeleport(n.type)&&n.children?findNonCommentChild(n.children):n;if(n.component)return n.component.subTree;const{shapeFlag:t,children:r}=n;if(r){if(t&16)return r[0];if(t&32&&isFunction$4(r.default))return r.default()}}function setTransitionHooks(n,t){n.shapeFlag&6&&n.component?(n.transition=t,setTransitionHooks(n.component.subTree,t)):n.shapeFlag&128?(n.ssContent.transition=t.clone(n.ssContent),n.ssFallback.transition=t.clone(n.ssFallback)):n.transition=t}function getTransitionRawChildren(n,t=!1,r){let i=[],g=0;for(let $=0;$1)for(let $=0;$extend$2({name:n.name},t,{setup:n}))():n}function markAsyncBoundary(n){n.ids=[n.ids[0]+n.ids[2]+++"-",0,0]}const pendingSetRefMap=new WeakMap;function setRef(n,t,r,i,g=!1){if(isArray$5(n)){n.forEach((he,pe)=>setRef(he,t&&(isArray$5(t)?t[pe]:t),r,i,g));return}if(isAsyncWrapper(i)&&!g){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&setRef(n,t,r,i.component.subTree);return}const $=i.shapeFlag&4?getComponentPublicInstance(i.component):i.el,V=g?null:$,{i:re,r:ie}=n,ae=t&&t.r,oe=re.refs===EMPTY_OBJ$1?re.refs={}:re.refs,le=re.setupState,ue=toRaw(le),de=le===EMPTY_OBJ$1?NO:he=>hasOwn$1(ue,he);if(ae!=null&&ae!==ie){if(invalidatePendingSetRef(t),isString$2(ae))oe[ae]=null,de(ae)&&(le[ae]=null);else if(isRef(ae)){ae.value=null;const he=t;he.k&&(oe[he.k]=null)}}if(isFunction$4(ie))callWithErrorHandling(ie,re,12,[V,oe]);else{const he=isString$2(ie),pe=isRef(ie);if(he||pe){const _e=()=>{if(n.f){const Ce=he?de(ie)?le[ie]:oe[ie]:ie.value;if(g)isArray$5(Ce)&&remove$1(Ce,$);else if(isArray$5(Ce))Ce.includes($)||Ce.push($);else if(he)oe[ie]=[$],de(ie)&&(le[ie]=oe[ie]);else{const xe=[$];ie.value=xe,n.k&&(oe[n.k]=xe)}}else he?(oe[ie]=V,de(ie)&&(le[ie]=V)):pe&&(ie.value=V,n.k&&(oe[n.k]=V))};if(V){const Ce=()=>{_e(),pendingSetRefMap.delete(n)};Ce.id=-1,pendingSetRefMap.set(n,Ce),queuePostRenderEffect(Ce,r)}else invalidatePendingSetRef(n),_e()}}}function invalidatePendingSetRef(n){const t=pendingSetRefMap.get(n);t&&(t.flags|=8,pendingSetRefMap.delete(n))}getGlobalThis().requestIdleCallback;getGlobalThis().cancelIdleCallback;const isAsyncWrapper=n=>!!n.type.__asyncLoader,isKeepAlive=n=>n.type.__isKeepAlive;function onActivated(n,t){registerKeepAliveHook(n,"a",t)}function onDeactivated(n,t){registerKeepAliveHook(n,"da",t)}function registerKeepAliveHook(n,t,r=currentInstance){const i=n.__wdc||(n.__wdc=()=>{let g=r;for(;g;){if(g.isDeactivated)return;g=g.parent}return n()});if(injectHook(t,i,r),r){let g=r.parent;for(;g&&g.parent;)isKeepAlive(g.parent.vnode)&&injectToKeepAliveRoot(i,t,r,g),g=g.parent}}function injectToKeepAliveRoot(n,t,r,i){const g=injectHook(t,n,i,!0);onUnmounted(()=>{remove$1(i[t],g)},r)}function injectHook(n,t,r=currentInstance,i=!1){if(r){const g=r[n]||(r[n]=[]),$=t.__weh||(t.__weh=(...V)=>{pauseTracking();const re=setCurrentInstance(r),ie=callWithAsyncErrorHandling(t,r,n,V);return re(),resetTracking(),ie});return i?g.unshift($):g.push($),$}}const createHook=n=>(t,r=currentInstance)=>{(!isInSSRComponentSetup||n==="sp")&&injectHook(n,(...i)=>t(...i),r)},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(n,t=currentInstance){injectHook("ec",n,t)}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(n,t){return resolveAsset(COMPONENTS,n,!0,t)||n}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(n){return isString$2(n)?resolveAsset(COMPONENTS,n,!1)||n:n||NULL_DYNAMIC_COMPONENT}function resolveDirective(n){return resolveAsset(DIRECTIVES,n)}function resolveAsset(n,t,r=!0,i=!1){const g=currentRenderingInstance||currentInstance;if(g){const $=g.type;if(n===COMPONENTS){const re=getComponentName($,!1);if(re&&(re===t||re===camelize(t)||re===capitalize$1(camelize(t))))return $}const V=resolve(g[n]||$[n],t)||resolve(g.appContext[n],t);return!V&&i?$:V}}function resolve(n,t){return n&&(n[t]||n[camelize(t)]||n[capitalize$1(camelize(t))])}function renderList(n,t,r,i){let g;const $=r&&r[i],V=isArray$5(n);if(V||isString$2(n)){const re=V&&isReactive(n);let ie=!1,ae=!1;re&&(ie=!isShallow(n),ae=isReadonly(n),n=shallowReadArray(n)),g=new Array(n.length);for(let oe=0,le=n.length;oet(re,ie,void 0,$&&$[ie]));else{const re=Object.keys(n);g=new Array(re.length);for(let ie=0,ae=re.length;ie{const $=i.fn(...g);return $&&($.key=i.key),$}:i.fn)}return n}function renderSlot(n,t,r={},i,g){if(currentRenderingInstance.ce||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.ce){const ae=Object.keys(r).length>0;return t!=="default"&&(r.name=t),openBlock(),createBlock(Fragment,null,[createVNode$1("slot",r,i&&i())],ae?-2:64)}let $=n[t];$&&$._c&&($._d=!1),openBlock();const V=$&&ensureValidVNode$1($(r)),re=r.key||V&&V.key,ie=createBlock(Fragment,{key:(re&&!isSymbol$1(re)?re:`_${t}`)+(!V&&i?"_fb":"")},V||(i?i():[]),V&&n._===1?64:-2);return!g&&ie.scopeId&&(ie.slotScopeIds=[ie.scopeId+"-s"]),$&&$._c&&($._d=!0),ie}function ensureValidVNode$1(n){return n.some(t=>isVNode(t)?!(t.type===Comment||t.type===Fragment&&!ensureValidVNode$1(t.children)):!0)?n:null}function toHandlers(n,t){const r={};for(const i in n)r[t&&/[A-Z]/.test(i)?`on:${i}`:toHandlerKey(i)]=n[i];return r}const getPublicInstance=n=>n?isStatefulComponent(n)?getComponentPublicInstance(n):getPublicInstance(n.parent):null,publicPropertiesMap=extend$2(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>getPublicInstance(n.parent),$root:n=>getPublicInstance(n.root),$host:n=>n.ce,$emit:n=>n.emit,$options:n=>resolveMergedOptions(n),$forceUpdate:n=>n.f||(n.f=()=>{queueJob(n.update)}),$nextTick:n=>n.n||(n.n=nextTick.bind(n.proxy)),$watch:n=>instanceWatch.bind(n)}),hasSetupBinding=(n,t)=>n!==EMPTY_OBJ$1&&!n.__isScriptSetup&&hasOwn$1(n,t),PublicInstanceProxyHandlers={get({_:n},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:i,data:g,props:$,accessCache:V,type:re,appContext:ie}=n;if(t[0]!=="$"){const ue=V[t];if(ue!==void 0)switch(ue){case 1:return i[t];case 2:return g[t];case 4:return r[t];case 3:return $[t]}else{if(hasSetupBinding(i,t))return V[t]=1,i[t];if(g!==EMPTY_OBJ$1&&hasOwn$1(g,t))return V[t]=2,g[t];if(hasOwn$1($,t))return V[t]=3,$[t];if(r!==EMPTY_OBJ$1&&hasOwn$1(r,t))return V[t]=4,r[t];shouldCacheAccess&&(V[t]=0)}}const ae=publicPropertiesMap[t];let oe,le;if(ae)return t==="$attrs"&&track(n.attrs,"get",""),ae(n);if((oe=re.__cssModules)&&(oe=oe[t]))return oe;if(r!==EMPTY_OBJ$1&&hasOwn$1(r,t))return V[t]=4,r[t];if(le=ie.config.globalProperties,hasOwn$1(le,t))return le[t]},set({_:n},t,r){const{data:i,setupState:g,ctx:$}=n;return hasSetupBinding(g,t)?(g[t]=r,!0):i!==EMPTY_OBJ$1&&hasOwn$1(i,t)?(i[t]=r,!0):hasOwn$1(n.props,t)||t[0]==="$"&&t.slice(1)in n?!1:($[t]=r,!0)},has({_:{data:n,setupState:t,accessCache:r,ctx:i,appContext:g,props:$,type:V}},re){let ie;return!!(r[re]||n!==EMPTY_OBJ$1&&re[0]!=="$"&&hasOwn$1(n,re)||hasSetupBinding(t,re)||hasOwn$1($,re)||hasOwn$1(i,re)||hasOwn$1(publicPropertiesMap,re)||hasOwn$1(g.config.globalProperties,re)||(ie=V.__cssModules)&&ie[re])},defineProperty(n,t,r){return r.get!=null?n._.accessCache[t]=0:hasOwn$1(r,"value")&&this.set(n,t,r.value,null),Reflect.defineProperty(n,t,r)}};function useSlots(){return getContext().slots}function useAttrs$1(){return getContext().attrs}function getContext(n){const t=getCurrentInstance();return t.setupContext||(t.setupContext=createSetupContext(t))}function normalizePropsOrEmits(n){return isArray$5(n)?n.reduce((t,r)=>(t[r]=null,t),{}):n}let shouldCacheAccess=!0;function applyOptions(n){const t=resolveMergedOptions(n),r=n.proxy,i=n.ctx;shouldCacheAccess=!1,t.beforeCreate&&callHook$1(t.beforeCreate,n,"bc");const{data:g,computed:$,methods:V,watch:re,provide:ie,inject:ae,created:oe,beforeMount:le,mounted:ue,beforeUpdate:de,updated:he,activated:pe,deactivated:_e,beforeDestroy:Ce,beforeUnmount:xe,destroyed:Ie,unmounted:Ne,render:Oe,renderTracked:$e,renderTriggered:Ve,errorCaptured:Ue,serverPrefetch:Fe,expose:ze,inheritAttrs:Pt,components:qe,directives:Et,filters:kt}=t;if(ae&&resolveInjections(ae,i,null),V)for(const Lt in V){const jt=V[Lt];isFunction$4(jt)&&(i[Lt]=jt.bind(r))}if(g){const Lt=g.call(r,r);isObject$6(Lt)&&(n.data=reactive(Lt))}if(shouldCacheAccess=!0,$)for(const Lt in $){const jt=$[Lt],hn=isFunction$4(jt)?jt.bind(r,r):isFunction$4(jt.get)?jt.get.bind(r,r):NOOP,vn=!isFunction$4(jt)&&isFunction$4(jt.set)?jt.set.bind(r):NOOP,_n=computed({get:hn,set:vn});Object.defineProperty(i,Lt,{enumerable:!0,configurable:!0,get:()=>_n.value,set:wn=>_n.value=wn})}if(re)for(const Lt in re)createWatcher(re[Lt],i,r,Lt);if(ie){const Lt=isFunction$4(ie)?ie.call(r):ie;Reflect.ownKeys(Lt).forEach(jt=>{provide(jt,Lt[jt])})}oe&&callHook$1(oe,n,"c");function Dt(Lt,jt){isArray$5(jt)?jt.forEach(hn=>Lt(hn.bind(r))):jt&&Lt(jt.bind(r))}if(Dt(onBeforeMount,le),Dt(onMounted,ue),Dt(onBeforeUpdate,de),Dt(onUpdated,he),Dt(onActivated,pe),Dt(onDeactivated,_e),Dt(onErrorCaptured,Ue),Dt(onRenderTracked,$e),Dt(onRenderTriggered,Ve),Dt(onBeforeUnmount,xe),Dt(onUnmounted,Ne),Dt(onServerPrefetch,Fe),isArray$5(ze))if(ze.length){const Lt=n.exposed||(n.exposed={});ze.forEach(jt=>{Object.defineProperty(Lt,jt,{get:()=>r[jt],set:hn=>r[jt]=hn,enumerable:!0})})}else n.exposed||(n.exposed={});Oe&&n.render===NOOP&&(n.render=Oe),Pt!=null&&(n.inheritAttrs=Pt),qe&&(n.components=qe),Et&&(n.directives=Et),Fe&&markAsyncBoundary(n)}function resolveInjections(n,t,r=NOOP){isArray$5(n)&&(n=normalizeInject(n));for(const i in n){const g=n[i];let $;isObject$6(g)?"default"in g?$=inject(g.from||i,g.default,!0):$=inject(g.from||i):$=inject(g),isRef($)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>$.value,set:V=>$.value=V}):t[i]=$}}function callHook$1(n,t,r){callWithAsyncErrorHandling(isArray$5(n)?n.map(i=>i.bind(t.proxy)):n.bind(t.proxy),t,r)}function createWatcher(n,t,r,i){let g=i.includes(".")?createPathGetter(r,i):()=>r[i];if(isString$2(n)){const $=t[n];isFunction$4($)&&watch(g,$)}else if(isFunction$4(n))watch(g,n.bind(r));else if(isObject$6(n))if(isArray$5(n))n.forEach($=>createWatcher($,t,r,i));else{const $=isFunction$4(n.handler)?n.handler.bind(r):t[n.handler];isFunction$4($)&&watch(g,$,n)}}function resolveMergedOptions(n){const t=n.type,{mixins:r,extends:i}=t,{mixins:g,optionsCache:$,config:{optionMergeStrategies:V}}=n.appContext,re=$.get(t);let ie;return re?ie=re:!g.length&&!r&&!i?ie=t:(ie={},g.length&&g.forEach(ae=>mergeOptions$2(ie,ae,V,!0)),mergeOptions$2(ie,t,V)),isObject$6(t)&&$.set(t,ie),ie}function mergeOptions$2(n,t,r,i=!1){const{mixins:g,extends:$}=t;$&&mergeOptions$2(n,$,r,!0),g&&g.forEach(V=>mergeOptions$2(n,V,r,!0));for(const V in t)if(!(i&&V==="expose")){const re=internalOptionMergeStrats[V]||r&&r[V];n[V]=re?re(n[V],t[V]):t[V]}return n}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(n,t){return t?n?function(){return extend$2(isFunction$4(n)?n.call(this,this):n,isFunction$4(t)?t.call(this,this):t)}:t:n}function mergeInject(n,t){return mergeObjectOptions(normalizeInject(n),normalizeInject(t))}function normalizeInject(n){if(isArray$5(n)){const t={};for(let r=0;rt==="modelValue"||t==="model-value"?n.modelModifiers:n[`${t}Modifiers`]||n[`${camelize(t)}Modifiers`]||n[`${hyphenate(t)}Modifiers`];function emit(n,t,...r){if(n.isUnmounted)return;const i=n.vnode.props||EMPTY_OBJ$1;let g=r;const $=t.startsWith("update:"),V=$&&getModelModifiers(i,t.slice(7));V&&(V.trim&&(g=r.map(oe=>isString$2(oe)?oe.trim():oe)),V.number&&(g=r.map(looseToNumber$1)));let re,ie=i[re=toHandlerKey(t)]||i[re=toHandlerKey(camelize(t))];!ie&&$&&(ie=i[re=toHandlerKey(hyphenate(t))]),ie&&callWithAsyncErrorHandling(ie,n,6,g);const ae=i[re+"Once"];if(ae){if(!n.emitted)n.emitted={};else if(n.emitted[re])return;n.emitted[re]=!0,callWithAsyncErrorHandling(ae,n,6,g)}}const mixinEmitsCache=new WeakMap;function normalizeEmitsOptions(n,t,r=!1){const i=r?mixinEmitsCache:t.emitsCache,g=i.get(n);if(g!==void 0)return g;const $=n.emits;let V={},re=!1;if(!isFunction$4(n)){const ie=ae=>{const oe=normalizeEmitsOptions(ae,t,!0);oe&&(re=!0,extend$2(V,oe))};!r&&t.mixins.length&&t.mixins.forEach(ie),n.extends&&ie(n.extends),n.mixins&&n.mixins.forEach(ie)}return!$&&!re?(isObject$6(n)&&i.set(n,null),null):(isArray$5($)?$.forEach(ie=>V[ie]=null):extend$2(V,$),isObject$6(n)&&i.set(n,V),V)}function isEmitListener(n,t){return!n||!isOn(t)?!1:(t=t.slice(2).replace(/Once$/,""),hasOwn$1(n,t[0].toLowerCase()+t.slice(1))||hasOwn$1(n,hyphenate(t))||hasOwn$1(n,t))}function markAttrsAccessed(){}function renderComponentRoot$1(n){const{type:t,vnode:r,proxy:i,withProxy:g,propsOptions:[$],slots:V,attrs:re,emit:ie,render:ae,renderCache:oe,props:le,data:ue,setupState:de,ctx:he,inheritAttrs:pe}=n,_e=setCurrentRenderingInstance$1(n);let Ce,xe;try{if(r.shapeFlag&4){const Ne=g||i,Oe=Ne;Ce=normalizeVNode$1(ae.call(Oe,Ne,oe,le,de,ue,he)),xe=re}else{const Ne=t;Ce=normalizeVNode$1(Ne.length>1?Ne(le,{attrs:re,slots:V,emit:ie}):Ne(le,null)),xe=t.props?re:getFunctionalFallthrough(re)}}catch(Ne){blockStack.length=0,handleError(Ne,n,1),Ce=createVNode$1(Comment)}let Ie=Ce;if(xe&&pe!==!1){const Ne=Object.keys(xe),{shapeFlag:Oe}=Ie;Ne.length&&Oe&7&&($&&Ne.some(isModelListener)&&(xe=filterModelListeners(xe,$)),Ie=cloneVNode(Ie,xe,!1,!0))}return r.dirs&&(Ie=cloneVNode(Ie,null,!1,!0),Ie.dirs=Ie.dirs?Ie.dirs.concat(r.dirs):r.dirs),r.transition&&setTransitionHooks(Ie,r.transition),Ce=Ie,setCurrentRenderingInstance$1(_e),Ce}const getFunctionalFallthrough=n=>{let t;for(const r in n)(r==="class"||r==="style"||isOn(r))&&((t||(t={}))[r]=n[r]);return t},filterModelListeners=(n,t)=>{const r={};for(const i in n)(!isModelListener(i)||!(i.slice(9)in t))&&(r[i]=n[i]);return r};function shouldUpdateComponent(n,t,r){const{props:i,children:g,component:$}=n,{props:V,children:re,patchFlag:ie}=t,ae=$.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&ie>=0){if(ie&1024)return!0;if(ie&16)return i?hasPropsChanged(i,V,ae):!!V;if(ie&8){const oe=t.dynamicProps;for(let le=0;leObject.create(internalObjectProto),isInternalObject=n=>Object.getPrototypeOf(n)===internalObjectProto;function initProps$1(n,t,r,i=!1){const g={},$=createInternalObject();n.propsDefaults=Object.create(null),setFullProps(n,t,g,$);for(const V in n.propsOptions[0])V in g||(g[V]=void 0);r?n.props=i?g:shallowReactive(g):n.type.props?n.props=g:n.props=$,n.attrs=$}function updateProps$2(n,t,r,i){const{props:g,attrs:$,vnode:{patchFlag:V}}=n,re=toRaw(g),[ie]=n.propsOptions;let ae=!1;if((i||V>0)&&!(V&16)){if(V&8){const oe=n.vnode.dynamicProps;for(let le=0;le{ie=!0;const[ue,de]=normalizePropsOptions(le,t,!0);extend$2(V,ue),de&&re.push(...de)};!r&&t.mixins.length&&t.mixins.forEach(oe),n.extends&&oe(n.extends),n.mixins&&n.mixins.forEach(oe)}if(!$&&!ie)return isObject$6(n)&&i.set(n,EMPTY_ARR),EMPTY_ARR;if(isArray$5($))for(let oe=0;oe<$.length;oe++){const le=camelize($[oe]);validatePropName(le)&&(V[le]=EMPTY_OBJ$1)}else if($)for(const oe in $){const le=camelize(oe);if(validatePropName(le)){const ue=$[oe],de=V[le]=isArray$5(ue)||isFunction$4(ue)?{type:ue}:extend$2({},ue),he=de.type;let pe=!1,_e=!0;if(isArray$5(he))for(let Ce=0;Cen==="_"||n==="_ctx"||n==="$stable",normalizeSlotValue=n=>isArray$5(n)?n.map(normalizeVNode$1):[normalizeVNode$1(n)],normalizeSlot$1=(n,t,r)=>{if(t._n)return t;const i=withCtx((...g)=>normalizeSlotValue(t(...g)),r);return i._c=!1,i},normalizeObjectSlots=(n,t,r)=>{const i=n._ctx;for(const g in n){if(isInternalKey(g))continue;const $=n[g];if(isFunction$4($))t[g]=normalizeSlot$1(g,$,i);else if($!=null){const V=normalizeSlotValue($);t[g]=()=>V}}},normalizeVNodeSlots=(n,t)=>{const r=normalizeSlotValue(t);n.slots.default=()=>r},assignSlots=(n,t,r)=>{for(const i in t)(r||!isInternalKey(i))&&(n[i]=t[i])},initSlots=(n,t,r)=>{const i=n.slots=createInternalObject();if(n.vnode.shapeFlag&32){const g=t._;g?(assignSlots(i,t,r),r&&def(i,"_",g,!0)):normalizeObjectSlots(t,i)}else t&&normalizeVNodeSlots(n,t)},updateSlots=(n,t,r)=>{const{vnode:i,slots:g}=n;let $=!0,V=EMPTY_OBJ$1;if(i.shapeFlag&32){const re=t._;re?r&&re===1?$=!1:assignSlots(g,t,r):($=!t.$stable,normalizeObjectSlots(t,g)),V=t}else t&&(normalizeVNodeSlots(n,t),V={default:1});if($)for(const re in g)!isInternalKey(re)&&V[re]==null&&delete g[re]},queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(n){return baseCreateRenderer(n)}function baseCreateRenderer(n,t){const r=getGlobalThis();r.__VUE__=!0;const{insert:i,remove:g,patchProp:$,createElement:V,createText:re,createComment:ie,setText:ae,setElementText:oe,parentNode:le,nextSibling:ue,setScopeId:de=NOOP,insertStaticContent:he}=n,pe=(Nn,Pn,On,Hn=null,Xn=null,In=null,or=void 0,Qn=null,Zn=!!Pn.dynamicChildren)=>{if(Nn===Pn)return;Nn&&!isSameVNodeType(Nn,Pn)&&(Hn=En(Nn),wn(Nn,Xn,In,!0),Nn=null),Pn.patchFlag===-2&&(Zn=!1,Pn.dynamicChildren=null);const{type:Gn,ref:Rn,shapeFlag:Mn}=Pn;switch(Gn){case Text$1:_e(Nn,Pn,On,Hn);break;case Comment:Ce(Nn,Pn,On,Hn);break;case Static:Nn==null&&xe(Pn,On,Hn,or);break;case Fragment:qe(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn);break;default:Mn&1?Oe(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn):Mn&6?Et(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn):(Mn&64||Mn&128)&&Gn.process(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn,An)}Rn!=null&&Xn?setRef(Rn,Nn&&Nn.ref,In,Pn||Nn,!Pn):Rn==null&&Nn&&Nn.ref!=null&&setRef(Nn.ref,null,In,Nn,!0)},_e=(Nn,Pn,On,Hn)=>{if(Nn==null)i(Pn.el=re(Pn.children),On,Hn);else{const Xn=Pn.el=Nn.el;Pn.children!==Nn.children&&ae(Xn,Pn.children)}},Ce=(Nn,Pn,On,Hn)=>{Nn==null?i(Pn.el=ie(Pn.children||""),On,Hn):Pn.el=Nn.el},xe=(Nn,Pn,On,Hn)=>{[Nn.el,Nn.anchor]=he(Nn.children,Pn,On,Hn,Nn.el,Nn.anchor)},Ie=({el:Nn,anchor:Pn},On,Hn)=>{let Xn;for(;Nn&&Nn!==Pn;)Xn=ue(Nn),i(Nn,On,Hn),Nn=Xn;i(Pn,On,Hn)},Ne=({el:Nn,anchor:Pn})=>{let On;for(;Nn&&Nn!==Pn;)On=ue(Nn),g(Nn),Nn=On;g(Pn)},Oe=(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn)=>{if(Pn.type==="svg"?or="svg":Pn.type==="math"&&(or="mathml"),Nn==null)$e(Pn,On,Hn,Xn,In,or,Qn,Zn);else{const Gn=Nn.el&&Nn.el._isVueCE?Nn.el:null;try{Gn&&Gn._beginPatch(),Fe(Nn,Pn,Xn,In,or,Qn,Zn)}finally{Gn&&Gn._endPatch()}}},$e=(Nn,Pn,On,Hn,Xn,In,or,Qn)=>{let Zn,Gn;const{props:Rn,shapeFlag:Mn,transition:Bn,dirs:qn}=Nn;if(Zn=Nn.el=V(Nn.type,In,Rn&&Rn.is,Rn),Mn&8?oe(Zn,Nn.children):Mn&16&&Ue(Nn.children,Zn,null,Hn,Xn,resolveChildrenNamespace(Nn,In),or,Qn),qn&&invokeDirectiveHook(Nn,null,Hn,"created"),Ve(Zn,Nn,Nn.scopeId,or,Hn),Rn){for(const jn in Rn)jn!=="value"&&!isReservedProp(jn)&&$(Zn,jn,null,Rn[jn],In,Hn);"value"in Rn&&$(Zn,"value",null,Rn.value,In),(Gn=Rn.onVnodeBeforeMount)&&invokeVNodeHook(Gn,Hn,Nn)}qn&&invokeDirectiveHook(Nn,null,Hn,"beforeMount");const zn=needTransition(Xn,Bn);zn&&Bn.beforeEnter(Zn),i(Zn,Pn,On),((Gn=Rn&&Rn.onVnodeMounted)||zn||qn)&&queuePostRenderEffect(()=>{Gn&&invokeVNodeHook(Gn,Hn,Nn),zn&&Bn.enter(Zn),qn&&invokeDirectiveHook(Nn,null,Hn,"mounted")},Xn)},Ve=(Nn,Pn,On,Hn,Xn)=>{if(On&&de(Nn,On),Hn)for(let In=0;In{for(let Gn=Zn;Gn{const Qn=Pn.el=Nn.el;let{patchFlag:Zn,dynamicChildren:Gn,dirs:Rn}=Pn;Zn|=Nn.patchFlag&16;const Mn=Nn.props||EMPTY_OBJ$1,Bn=Pn.props||EMPTY_OBJ$1;let qn;if(On&&toggleRecurse(On,!1),(qn=Bn.onVnodeBeforeUpdate)&&invokeVNodeHook(qn,On,Pn,Nn),Rn&&invokeDirectiveHook(Pn,Nn,On,"beforeUpdate"),On&&toggleRecurse(On,!0),(Mn.innerHTML&&Bn.innerHTML==null||Mn.textContent&&Bn.textContent==null)&&oe(Qn,""),Gn?ze(Nn.dynamicChildren,Gn,Qn,On,Hn,resolveChildrenNamespace(Pn,Xn),In):or||jt(Nn,Pn,Qn,null,On,Hn,resolveChildrenNamespace(Pn,Xn),In,!1),Zn>0){if(Zn&16)Pt(Qn,Mn,Bn,On,Xn);else if(Zn&2&&Mn.class!==Bn.class&&$(Qn,"class",null,Bn.class,Xn),Zn&4&&$(Qn,"style",Mn.style,Bn.style,Xn),Zn&8){const zn=Pn.dynamicProps;for(let jn=0;jn{qn&&invokeVNodeHook(qn,On,Pn,Nn),Rn&&invokeDirectiveHook(Pn,Nn,On,"updated")},Hn)},ze=(Nn,Pn,On,Hn,Xn,In,or)=>{for(let Qn=0;Qn{if(Pn!==On){if(Pn!==EMPTY_OBJ$1)for(const In in Pn)!isReservedProp(In)&&!(In in On)&&$(Nn,In,Pn[In],null,Xn,Hn);for(const In in On){if(isReservedProp(In))continue;const or=On[In],Qn=Pn[In];or!==Qn&&In!=="value"&&$(Nn,In,Qn,or,Xn,Hn)}"value"in On&&$(Nn,"value",Pn.value,On.value,Xn)}},qe=(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn)=>{const Gn=Pn.el=Nn?Nn.el:re(""),Rn=Pn.anchor=Nn?Nn.anchor:re("");let{patchFlag:Mn,dynamicChildren:Bn,slotScopeIds:qn}=Pn;qn&&(Qn=Qn?Qn.concat(qn):qn),Nn==null?(i(Gn,On,Hn),i(Rn,On,Hn),Ue(Pn.children||[],On,Rn,Xn,In,or,Qn,Zn)):Mn>0&&Mn&64&&Bn&&Nn.dynamicChildren&&Nn.dynamicChildren.length===Bn.length?(ze(Nn.dynamicChildren,Bn,On,Xn,In,or,Qn),(Pn.key!=null||Xn&&Pn===Xn.subTree)&&traverseStaticChildren(Nn,Pn,!0)):jt(Nn,Pn,On,Rn,Xn,In,or,Qn,Zn)},Et=(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn)=>{Pn.slotScopeIds=Qn,Nn==null?Pn.shapeFlag&512?Xn.ctx.activate(Pn,On,Hn,or,Zn):kt(Pn,On,Hn,Xn,In,or,Zn):At(Nn,Pn,Zn)},kt=(Nn,Pn,On,Hn,Xn,In,or)=>{const Qn=Nn.component=createComponentInstance$1(Nn,Hn,Xn);if(isKeepAlive(Nn)&&(Qn.ctx.renderer=An),setupComponent$1(Qn,!1,or),Qn.asyncDep){if(Xn&&Xn.registerDep(Qn,Dt,or),!Nn.el){const Zn=Qn.subTree=createVNode$1(Comment);Ce(null,Zn,Pn,On),Nn.placeholder=Zn.el}}else Dt(Qn,Nn,Pn,On,Xn,In,or)},At=(Nn,Pn,On)=>{const Hn=Pn.component=Nn.component;if(shouldUpdateComponent(Nn,Pn,On))if(Hn.asyncDep&&!Hn.asyncResolved){Lt(Hn,Pn,On);return}else Hn.next=Pn,Hn.update();else Pn.el=Nn.el,Hn.vnode=Pn},Dt=(Nn,Pn,On,Hn,Xn,In,or)=>{const Qn=()=>{if(Nn.isMounted){let{next:Mn,bu:Bn,u:qn,parent:zn,vnode:jn}=Nn;{const rr=locateNonHydratedAsyncRoot(Nn);if(rr){Mn&&(Mn.el=jn.el,Lt(Nn,Mn,or)),rr.asyncDep.then(()=>{Nn.isUnmounted||Qn()});return}}let tr=Mn,hr;toggleRecurse(Nn,!1),Mn?(Mn.el=jn.el,Lt(Nn,Mn,or)):Mn=jn,Bn&&invokeArrayFns(Bn),(hr=Mn.props&&Mn.props.onVnodeBeforeUpdate)&&invokeVNodeHook(hr,zn,Mn,jn),toggleRecurse(Nn,!0);const ir=renderComponentRoot$1(Nn),pr=Nn.subTree;Nn.subTree=ir,pe(pr,ir,le(pr.el),En(pr),Nn,Xn,In),Mn.el=ir.el,tr===null&&updateHOCHostEl(Nn,ir.el),qn&&queuePostRenderEffect(qn,Xn),(hr=Mn.props&&Mn.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(hr,zn,Mn,jn),Xn)}else{let Mn;const{el:Bn,props:qn}=Pn,{bm:zn,m:jn,parent:tr,root:hr,type:ir}=Nn,pr=isAsyncWrapper(Pn);if(toggleRecurse(Nn,!1),zn&&invokeArrayFns(zn),!pr&&(Mn=qn&&qn.onVnodeBeforeMount)&&invokeVNodeHook(Mn,tr,Pn),toggleRecurse(Nn,!0),Bn&&Ln){const rr=()=>{Nn.subTree=renderComponentRoot$1(Nn),Ln(Bn,Nn.subTree,Nn,Xn,null)};pr&&ir.__asyncHydrate?ir.__asyncHydrate(Bn,Nn,rr):rr()}else{hr.ce&&hr.ce._def.shadowRoot!==!1&&hr.ce._injectChildStyle(ir);const rr=Nn.subTree=renderComponentRoot$1(Nn);pe(null,rr,On,Hn,Nn,Xn,In),Pn.el=rr.el}if(jn&&queuePostRenderEffect(jn,Xn),!pr&&(Mn=qn&&qn.onVnodeMounted)){const rr=Pn;queuePostRenderEffect(()=>invokeVNodeHook(Mn,tr,rr),Xn)}(Pn.shapeFlag&256||tr&&isAsyncWrapper(tr.vnode)&&tr.vnode.shapeFlag&256)&&Nn.a&&queuePostRenderEffect(Nn.a,Xn),Nn.isMounted=!0,Pn=On=Hn=null}};Nn.scope.on();const Zn=Nn.effect=new ReactiveEffect(Qn);Nn.scope.off();const Gn=Nn.update=Zn.run.bind(Zn),Rn=Nn.job=Zn.runIfDirty.bind(Zn);Rn.i=Nn,Rn.id=Nn.uid,Zn.scheduler=()=>queueJob(Rn),toggleRecurse(Nn,!0),Gn()},Lt=(Nn,Pn,On)=>{Pn.component=Nn;const Hn=Nn.vnode.props;Nn.vnode=Pn,Nn.next=null,updateProps$2(Nn,Pn.props,Hn,On),updateSlots(Nn,Pn.children,On),pauseTracking(),flushPreFlushCbs(Nn),resetTracking()},jt=(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn=!1)=>{const Gn=Nn&&Nn.children,Rn=Nn?Nn.shapeFlag:0,Mn=Pn.children,{patchFlag:Bn,shapeFlag:qn}=Pn;if(Bn>0){if(Bn&128){vn(Gn,Mn,On,Hn,Xn,In,or,Qn,Zn);return}else if(Bn&256){hn(Gn,Mn,On,Hn,Xn,In,or,Qn,Zn);return}}qn&8?(Rn&16&&Tn(Gn,Xn,In),Mn!==Gn&&oe(On,Mn)):Rn&16?qn&16?vn(Gn,Mn,On,Hn,Xn,In,or,Qn,Zn):Tn(Gn,Xn,In,!0):(Rn&8&&oe(On,""),qn&16&&Ue(Mn,On,Hn,Xn,In,or,Qn,Zn))},hn=(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn)=>{Nn=Nn||EMPTY_ARR,Pn=Pn||EMPTY_ARR;const Gn=Nn.length,Rn=Pn.length,Mn=Math.min(Gn,Rn);let Bn;for(Bn=0;BnRn?Tn(Nn,Xn,In,!0,!1,Mn):Ue(Pn,On,Hn,Xn,In,or,Qn,Zn,Mn)},vn=(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn)=>{let Gn=0;const Rn=Pn.length;let Mn=Nn.length-1,Bn=Rn-1;for(;Gn<=Mn&&Gn<=Bn;){const qn=Nn[Gn],zn=Pn[Gn]=Zn?cloneIfMounted(Pn[Gn]):normalizeVNode$1(Pn[Gn]);if(isSameVNodeType(qn,zn))pe(qn,zn,On,null,Xn,In,or,Qn,Zn);else break;Gn++}for(;Gn<=Mn&&Gn<=Bn;){const qn=Nn[Mn],zn=Pn[Bn]=Zn?cloneIfMounted(Pn[Bn]):normalizeVNode$1(Pn[Bn]);if(isSameVNodeType(qn,zn))pe(qn,zn,On,null,Xn,In,or,Qn,Zn);else break;Mn--,Bn--}if(Gn>Mn){if(Gn<=Bn){const qn=Bn+1,zn=qnBn)for(;Gn<=Mn;)wn(Nn[Gn],Xn,In,!0),Gn++;else{const qn=Gn,zn=Gn,jn=new Map;for(Gn=zn;Gn<=Bn;Gn++){const er=Pn[Gn]=Zn?cloneIfMounted(Pn[Gn]):normalizeVNode$1(Pn[Gn]);er.key!=null&&jn.set(er.key,Gn)}let tr,hr=0;const ir=Bn-zn+1;let pr=!1,rr=0;const lr=new Array(ir);for(Gn=0;Gn=ir){wn(er,Xn,In,!0);continue}let Fn;if(er.key!=null)Fn=jn.get(er.key);else for(tr=zn;tr<=Bn;tr++)if(lr[tr-zn]===0&&isSameVNodeType(er,Pn[tr])){Fn=tr;break}Fn===void 0?wn(er,Xn,In,!0):(lr[Fn-zn]=Gn+1,Fn>=rr?rr=Fn:pr=!0,pe(er,Pn[Fn],On,null,Xn,In,or,Qn,Zn),hr++)}const Yn=pr?getSequence(lr):EMPTY_ARR;for(tr=Yn.length-1,Gn=ir-1;Gn>=0;Gn--){const er=zn+Gn,Fn=Pn[er],cr=Pn[er+1],Un=er+1{const{el:In,type:or,transition:Qn,children:Zn,shapeFlag:Gn}=Nn;if(Gn&6){_n(Nn.component.subTree,Pn,On,Hn);return}if(Gn&128){Nn.suspense.move(Pn,On,Hn);return}if(Gn&64){or.move(Nn,Pn,On,An);return}if(or===Fragment){i(In,Pn,On);for(let Mn=0;MnQn.enter(In),Xn);else{const{leave:Mn,delayLeave:Bn,afterLeave:qn}=Qn,zn=()=>{Nn.ctx.isUnmounted?g(In):i(In,Pn,On)},jn=()=>{In._isLeaving&&In[leaveCbKey](!0),Mn(In,()=>{zn(),qn&&qn()})};Bn?Bn(In,zn,jn):jn()}else i(In,Pn,On)},wn=(Nn,Pn,On,Hn=!1,Xn=!1)=>{const{type:In,props:or,ref:Qn,children:Zn,dynamicChildren:Gn,shapeFlag:Rn,patchFlag:Mn,dirs:Bn,cacheIndex:qn}=Nn;if(Mn===-2&&(Xn=!1),Qn!=null&&(pauseTracking(),setRef(Qn,null,On,Nn,!0),resetTracking()),qn!=null&&(Pn.renderCache[qn]=void 0),Rn&256){Pn.ctx.deactivate(Nn);return}const zn=Rn&1&&Bn,jn=!isAsyncWrapper(Nn);let tr;if(jn&&(tr=or&&or.onVnodeBeforeUnmount)&&invokeVNodeHook(tr,Pn,Nn),Rn&6)Sn(Nn.component,On,Hn);else{if(Rn&128){Nn.suspense.unmount(On,Hn);return}zn&&invokeDirectiveHook(Nn,null,Pn,"beforeUnmount"),Rn&64?Nn.type.remove(Nn,Pn,On,An,Hn):Gn&&!Gn.hasOnce&&(In!==Fragment||Mn>0&&Mn&64)?Tn(Gn,Pn,On,!1,!0):(In===Fragment&&Mn&384||!Xn&&Rn&16)&&Tn(Zn,Pn,On),Hn&&bn(Nn)}(jn&&(tr=or&&or.onVnodeUnmounted)||zn)&&queuePostRenderEffect(()=>{tr&&invokeVNodeHook(tr,Pn,Nn),zn&&invokeDirectiveHook(Nn,null,Pn,"unmounted")},On)},bn=Nn=>{const{type:Pn,el:On,anchor:Hn,transition:Xn}=Nn;if(Pn===Fragment){Cn(On,Hn);return}if(Pn===Static){Ne(Nn);return}const In=()=>{g(On),Xn&&!Xn.persisted&&Xn.afterLeave&&Xn.afterLeave()};if(Nn.shapeFlag&1&&Xn&&!Xn.persisted){const{leave:or,delayLeave:Qn}=Xn,Zn=()=>or(On,In);Qn?Qn(Nn.el,In,Zn):Zn()}else In()},Cn=(Nn,Pn)=>{let On;for(;Nn!==Pn;)On=ue(Nn),g(Nn),Nn=On;g(Pn)},Sn=(Nn,Pn,On)=>{const{bum:Hn,scope:Xn,job:In,subTree:or,um:Qn,m:Zn,a:Gn}=Nn;invalidateMount(Zn),invalidateMount(Gn),Hn&&invokeArrayFns(Hn),Xn.stop(),In&&(In.flags|=8,wn(or,Nn,Pn,On)),Qn&&queuePostRenderEffect(Qn,Pn),queuePostRenderEffect(()=>{Nn.isUnmounted=!0},Pn)},Tn=(Nn,Pn,On,Hn=!1,Xn=!1,In=0)=>{for(let or=In;or{if(Nn.shapeFlag&6)return En(Nn.component.subTree);if(Nn.shapeFlag&128)return Nn.suspense.next();const Pn=ue(Nn.anchor||Nn.el),On=Pn&&Pn[TeleportEndKey];return On?ue(On):Pn};let kn=!1;const $n=(Nn,Pn,On)=>{let Hn;Nn==null?Pn._vnode&&(wn(Pn._vnode,null,null,!0),Hn=Pn._vnode.component):pe(Pn._vnode||null,Nn,Pn,null,null,null,On),Pn._vnode=Nn,kn||(kn=!0,flushPreFlushCbs(Hn),flushPostFlushCbs(),kn=!1)},An={p:pe,um:wn,m:_n,r:bn,mt:kt,mc:Ue,pc:jt,pbc:ze,n:En,o:n};let xn,Ln;return t&&([xn,Ln]=t(An)),{render:$n,hydrate:xn,createApp:createAppAPI($n,xn)}}function resolveChildrenNamespace({type:n,props:t},r){return r==="svg"&&n==="foreignObject"||r==="mathml"&&n==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function toggleRecurse({effect:n,job:t},r){r?(n.flags|=32,t.flags|=4):(n.flags&=-33,t.flags&=-5)}function needTransition(n,t){return(!n||n&&!n.pendingBranch)&&t&&!t.persisted}function traverseStaticChildren(n,t,r=!1){const i=n.children,g=t.children;if(isArray$5(i)&&isArray$5(g))for(let $=0;$>1,n[r[re]]0&&(t[i]=r[$-1]),r[$]=i)}}for($=r.length,V=r[$-1];$-- >0;)r[$]=V,V=t[V];return r}function locateNonHydratedAsyncRoot(n){const t=n.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:locateNonHydratedAsyncRoot(t)}function invalidateMount(n){if(n)for(let t=0;tn.__isSuspense;function queueEffectWithSuspense(n,t){t&&t.pendingBranch?isArray$5(n)?t.effects.push(...n):t.effects.push(n):queuePostFlushCb(n)}const Fragment=Symbol.for("v-fgt"),Text$1=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(n=!1){blockStack.push(currentBlock=n?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(n,t=!1){isBlockTreeEnabled+=n,n<0&¤tBlock&&t&&(currentBlock.hasOnce=!0)}function setupBlock(n){return n.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(n),n}function createElementBlock(n,t,r,i,g,$){return setupBlock(createBaseVNode(n,t,r,i,g,$,!0))}function createBlock(n,t,r,i,g){return setupBlock(createVNode$1(n,t,r,i,g,!0))}function isVNode(n){return n?n.__v_isVNode===!0:!1}function isSameVNodeType(n,t){return n.type===t.type&&n.key===t.key}const normalizeKey=({key:n})=>n??null,normalizeRef=({ref:n,ref_key:t,ref_for:r})=>(typeof n=="number"&&(n=""+n),n!=null?isString$2(n)||isRef(n)||isFunction$4(n)?{i:currentRenderingInstance,r:n,k:t,f:!!r}:n:null);function createBaseVNode(n,t=null,r=null,i=0,g=null,$=n===Fragment?0:1,V=!1,re=!1){const ie={__v_isVNode:!0,__v_skip:!0,type:n,props:t,key:t&&normalizeKey(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:$,patchFlag:i,dynamicProps:g,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return re?(normalizeChildren(ie,r),$&128&&n.normalize(ie)):r&&(ie.shapeFlag|=isString$2(r)?8:16),isBlockTreeEnabled>0&&!V&¤tBlock&&(ie.patchFlag>0||$&6)&&ie.patchFlag!==32&¤tBlock.push(ie),ie}const createVNode$1=_createVNode;function _createVNode(n,t=null,r=null,i=0,g=null,$=!1){if((!n||n===NULL_DYNAMIC_COMPONENT)&&(n=Comment),isVNode(n)){const re=cloneVNode(n,t,!0);return r&&normalizeChildren(re,r),isBlockTreeEnabled>0&&!$&¤tBlock&&(re.shapeFlag&6?currentBlock[currentBlock.indexOf(n)]=re:currentBlock.push(re)),re.patchFlag=-2,re}if(isClassComponent(n)&&(n=n.__vccOpts),t){t=guardReactiveProps(t);let{class:re,style:ie}=t;re&&!isString$2(re)&&(t.class=normalizeClass(re)),isObject$6(ie)&&(isProxy(ie)&&!isArray$5(ie)&&(ie=extend$2({},ie)),t.style=normalizeStyle$1(ie))}const V=isString$2(n)?1:isSuspense(n)?128:isTeleport(n)?64:isObject$6(n)?4:isFunction$4(n)?2:0;return createBaseVNode(n,t,r,i,g,V,$,!0)}function guardReactiveProps(n){return n?isProxy(n)||isInternalObject(n)?extend$2({},n):n:null}function cloneVNode(n,t,r=!1,i=!1){const{props:g,ref:$,patchFlag:V,children:re,transition:ie}=n,ae=t?mergeProps(g||{},t):g,oe={__v_isVNode:!0,__v_skip:!0,type:n.type,props:ae,key:ae&&normalizeKey(ae),ref:t&&t.ref?r&&$?isArray$5($)?$.concat(normalizeRef(t)):[$,normalizeRef(t)]:normalizeRef(t):$,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:re,target:n.target,targetStart:n.targetStart,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:t&&n.type!==Fragment?V===-1?16:V|16:V,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:ie,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&cloneVNode(n.ssContent),ssFallback:n.ssFallback&&cloneVNode(n.ssFallback),placeholder:n.placeholder,el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce};return ie&&i&&setTransitionHooks(oe,ie.clone(oe)),oe}function createTextVNode(n=" ",t=0){return createVNode$1(Text$1,null,n,t)}function createCommentVNode(n="",t=!1){return t?(openBlock(),createBlock(Comment,null,n)):createVNode$1(Comment,null,n)}function normalizeVNode$1(n){return n==null||typeof n=="boolean"?createVNode$1(Comment):isArray$5(n)?createVNode$1(Fragment,null,n.slice()):isVNode(n)?cloneIfMounted(n):createVNode$1(Text$1,null,String(n))}function cloneIfMounted(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:cloneVNode(n)}function normalizeChildren(n,t){let r=0;const{shapeFlag:i}=n;if(t==null)t=null;else if(isArray$5(t))r=16;else if(typeof t=="object")if(i&65){const g=t.default;g&&(g._c&&(g._d=!1),normalizeChildren(n,g()),g._c&&(g._d=!0));return}else{r=32;const g=t._;!g&&!isInternalObject(t)?t._ctx=currentRenderingInstance:g===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?t._=1:(t._=2,n.patchFlag|=1024))}else isFunction$4(t)?(t={default:t,_ctx:currentRenderingInstance},r=32):(t=String(t),i&64?(r=16,t=[createTextVNode(t)]):r=8);n.children=t,n.shapeFlag|=r}function mergeProps(...n){const t={};for(let r=0;rcurrentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const n=getGlobalThis(),t=(r,i)=>{let g;return(g=n[r])||(g=n[r]=[]),g.push(i),$=>{g.length>1?g.forEach(V=>V($)):g[0]($)}};internalSetCurrentInstance=t("__VUE_INSTANCE_SETTERS__",r=>currentInstance=r),setInSSRSetupState=t("__VUE_SSR_SETTERS__",r=>isInSSRComponentSetup=r)}const setCurrentInstance=n=>{const t=currentInstance;return internalSetCurrentInstance(n),n.scope.on(),()=>{n.scope.off(),internalSetCurrentInstance(t)}},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(n){return n.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent$1(n,t=!1,r=!1){t&&setInSSRSetupState(t);const{props:i,children:g}=n.vnode,$=isStatefulComponent(n);initProps$1(n,i,$,t),initSlots(n,g,r||t);const V=$?setupStatefulComponent(n,t):void 0;return t&&setInSSRSetupState(!1),V}function setupStatefulComponent(n,t){const r=n.type;n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,PublicInstanceProxyHandlers);const{setup:i}=r;if(i){pauseTracking();const g=n.setupContext=i.length>1?createSetupContext(n):null,$=setCurrentInstance(n),V=callWithErrorHandling(i,n,0,[n.props,g]),re=isPromise(V);if(resetTracking(),$(),(re||n.sp)&&!isAsyncWrapper(n)&&markAsyncBoundary(n),re){if(V.then(unsetCurrentInstance,unsetCurrentInstance),t)return V.then(ie=>{handleSetupResult(n,ie,t)}).catch(ie=>{handleError(ie,n,0)});n.asyncDep=V}else handleSetupResult(n,V,t)}else finishComponentSetup(n,t)}function handleSetupResult(n,t,r){isFunction$4(t)?n.type.__ssrInlineRender?n.ssrRender=t:n.render=t:isObject$6(t)&&(n.setupState=proxyRefs(t)),finishComponentSetup(n,r)}let compile;function finishComponentSetup(n,t,r){const i=n.type;if(!n.render){if(!t&&compile&&!i.render){const g=i.template||resolveMergedOptions(n).template;if(g){const{isCustomElement:$,compilerOptions:V}=n.appContext.config,{delimiters:re,compilerOptions:ie}=i,ae=extend$2(extend$2({isCustomElement:$,delimiters:re},V),ie);i.render=compile(g,ae)}}n.render=i.render||NOOP}{const g=setCurrentInstance(n);pauseTracking();try{applyOptions(n)}finally{resetTracking(),g()}}}const attrsProxyHandlers={get(n,t){return track(n,"get",""),n[t]}};function createSetupContext(n){const t=r=>{n.exposed=r||{}};return{attrs:new Proxy(n.attrs,attrsProxyHandlers),slots:n.slots,emit:n.emit,expose:t}}function getComponentPublicInstance(n){return n.exposed?n.exposeProxy||(n.exposeProxy=new Proxy(proxyRefs(markRaw(n.exposed)),{get(t,r){if(r in t)return t[r];if(r in publicPropertiesMap)return publicPropertiesMap[r](n)},has(t,r){return r in t||r in publicPropertiesMap}})):n.proxy}const classifyRE=/(?:^|[-_])\w/g,classify=n=>n.replace(classifyRE,t=>t.toUpperCase()).replace(/[-_]/g,"");function getComponentName(n,t=!0){return isFunction$4(n)?n.displayName||n.name:n.name||t&&n.__name}function formatComponentName(n,t,r=!1){let i=getComponentName(t);if(!i&&t.__file){const g=t.__file.match(/([^/\\]+)\.\w+$/);g&&(i=g[1])}if(!i&&n){const g=$=>{for(const V in $)if($[V]===t)return V};i=g(n.components)||n.parent&&g(n.parent.type.components)||g(n.appContext.components)}return i?classify(i):r?"App":"Anonymous"}function isClassComponent(n){return isFunction$4(n)&&"__vccOpts"in n}const computed=(n,t)=>computed$1(n,t,isInSSRComponentSetup);function h$1(n,t,r){try{setBlockTracking(-1);const i=arguments.length;return i===2?isObject$6(t)&&!isArray$5(t)?isVNode(t)?createVNode$1(n,null,[t]):createVNode$1(n,t):createVNode$1(n,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&isVNode(r)&&(r=[r]),createVNode$1(n,t,r))}finally{setBlockTracking(1)}}const version$1="3.5.26",warn$2=NOOP,_ssrUtils={createComponentInstance:createComponentInstance$1,setupComponent:setupComponent$1,renderComponentRoot:renderComponentRoot$1,setCurrentRenderingInstance:setCurrentRenderingInstance$1,isVNode,normalizeVNode:normalizeVNode$1,getComponentPublicInstance,ensureValidVNode:ensureValidVNode$1,pushWarningContext:pushWarningContext$1,popWarningContext:popWarningContext$1},ssrUtils=_ssrUtils;/** * @vue/runtime-dom v3.5.26 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let policy;const tt$1=typeof window<"u"&&window.trustedTypes;if(tt$1)try{policy=tt$1.createPolicy("vue",{createHTML:n=>n})}catch{}const unsafeToTrustedHTML=policy?n=>policy.createHTML(n):n=>n,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(n,t,r)=>{t.insertBefore(n,r||null)},remove:n=>{const t=n.parentNode;t&&t.removeChild(n)},createElement:(n,t,r,i)=>{const g=t==="svg"?doc.createElementNS(svgNS,n):t==="mathml"?doc.createElementNS(mathmlNS,n):r?doc.createElement(n,{is:r}):doc.createElement(n);return n==="select"&&i&&i.multiple!=null&&g.setAttribute("multiple",i.multiple),g},createText:n=>doc.createTextNode(n),createComment:n=>doc.createComment(n),setText:(n,t)=>{n.nodeValue=t},setElementText:(n,t)=>{n.textContent=t},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>doc.querySelector(n),setScopeId(n,t){n.setAttribute(t,"")},insertStaticContent(n,t,r,i,g,$){const V=r?r.previousSibling:t.lastChild;if(g&&(g===$||g.nextSibling))for(;t.insertBefore(g.cloneNode(!0),r),!(g===$||!(g=g.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(i==="svg"?`${n}`:i==="mathml"?`${n}`:n);const re=templateContainer.content;if(i==="svg"||i==="mathml"){const ie=re.firstChild;for(;ie.firstChild;)re.appendChild(ie.firstChild);re.removeChild(ie)}t.insertBefore(re,r)}return[V?V.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=extend$2({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=n=>(n.displayName="Transition",n.props=TransitionPropsValidators,n),Transition=decorate$1((n,{slots:t})=>h$1(BaseTransition,resolveTransitionProps(n),t)),callHook=(n,t=[])=>{isArray$5(n)?n.forEach(r=>r(...t)):n&&n(...t)},hasExplicitCallback=n=>n?isArray$5(n)?n.some(t=>t.length>1):n.length>1:!1;function resolveTransitionProps(n){const t={};for(const qe in n)qe in DOMTransitionPropsValidators||(t[qe]=n[qe]);if(n.css===!1)return t;const{name:r="v",type:i,duration:g,enterFromClass:$=`${r}-enter-from`,enterActiveClass:V=`${r}-enter-active`,enterToClass:re=`${r}-enter-to`,appearFromClass:ie=$,appearActiveClass:ae=V,appearToClass:oe=re,leaveFromClass:le=`${r}-leave-from`,leaveActiveClass:ue=`${r}-leave-active`,leaveToClass:de=`${r}-leave-to`}=n,he=normalizeDuration(g),pe=he&&he[0],_e=he&&he[1],{onBeforeEnter:Ce,onEnter:xe,onEnterCancelled:Ie,onLeave:Ne,onLeaveCancelled:Oe,onBeforeAppear:$e=Ce,onAppear:Ve=xe,onAppearCancelled:Ue=Ie}=t,Fe=(qe,Et,kt,At)=>{qe._enterCancelled=At,removeTransitionClass(qe,Et?oe:re),removeTransitionClass(qe,Et?ae:V),kt&&kt()},ze=(qe,Et)=>{qe._isLeaving=!1,removeTransitionClass(qe,le),removeTransitionClass(qe,de),removeTransitionClass(qe,ue),Et&&Et()},Pt=qe=>(Et,kt)=>{const At=qe?Ve:xe,Dt=()=>Fe(Et,qe,kt);callHook(At,[Et,Dt]),nextFrame(()=>{removeTransitionClass(Et,qe?ie:$),addTransitionClass(Et,qe?oe:re),hasExplicitCallback(At)||whenTransitionEnds(Et,i,pe,Dt)})};return extend$2(t,{onBeforeEnter(qe){callHook(Ce,[qe]),addTransitionClass(qe,$),addTransitionClass(qe,V)},onBeforeAppear(qe){callHook($e,[qe]),addTransitionClass(qe,ie),addTransitionClass(qe,ae)},onEnter:Pt(!1),onAppear:Pt(!0),onLeave(qe,Et){qe._isLeaving=!0;const kt=()=>ze(qe,Et);addTransitionClass(qe,le),qe._enterCancelled?(addTransitionClass(qe,ue),forceReflow(qe)):(forceReflow(qe),addTransitionClass(qe,ue)),nextFrame(()=>{qe._isLeaving&&(removeTransitionClass(qe,le),addTransitionClass(qe,de),hasExplicitCallback(Ne)||whenTransitionEnds(qe,i,_e,kt))}),callHook(Ne,[qe,kt])},onEnterCancelled(qe){Fe(qe,!1,void 0,!0),callHook(Ie,[qe])},onAppearCancelled(qe){Fe(qe,!0,void 0,!0),callHook(Ue,[qe])},onLeaveCancelled(qe){ze(qe),callHook(Oe,[qe])}})}function normalizeDuration(n){if(n==null)return null;if(isObject$6(n))return[NumberOf(n.enter),NumberOf(n.leave)];{const t=NumberOf(n);return[t,t]}}function NumberOf(n){return toNumber$1(n)}function addTransitionClass(n,t){t.split(/\s+/).forEach(r=>r&&n.classList.add(r)),(n[vtcKey]||(n[vtcKey]=new Set)).add(t)}function removeTransitionClass(n,t){t.split(/\s+/).forEach(i=>i&&n.classList.remove(i));const r=n[vtcKey];r&&(r.delete(t),r.size||(n[vtcKey]=void 0))}function nextFrame(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let endId=0;function whenTransitionEnds(n,t,r,i){const g=n._endId=++endId,$=()=>{g===n._endId&&i()};if(r!=null)return setTimeout($,r);const{type:V,timeout:re,propCount:ie}=getTransitionInfo(n,t);if(!V)return i();const ae=V+"end";let oe=0;const le=()=>{n.removeEventListener(ae,ue),$()},ue=de=>{de.target===n&&++oe>=ie&&le()};setTimeout(()=>{oe(r[he]||"").split(", "),g=i(`${TRANSITION}Delay`),$=i(`${TRANSITION}Duration`),V=getTimeout(g,$),re=i(`${ANIMATION}Delay`),ie=i(`${ANIMATION}Duration`),ae=getTimeout(re,ie);let oe=null,le=0,ue=0;t===TRANSITION?V>0&&(oe=TRANSITION,le=V,ue=$.length):t===ANIMATION?ae>0&&(oe=ANIMATION,le=ae,ue=ie.length):(le=Math.max(V,ae),oe=le>0?V>ae?TRANSITION:ANIMATION:null,ue=oe?oe===TRANSITION?$.length:ie.length:0);const de=oe===TRANSITION&&/\b(?:transform|all)(?:,|$)/.test(i(`${TRANSITION}Property`).toString());return{type:oe,timeout:le,propCount:ue,hasTransform:de}}function getTimeout(n,t){for(;n.lengthtoMs(r)+toMs(n[i])))}function toMs(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function forceReflow(n){return(n?n.ownerDocument:document).body.offsetHeight}function patchClass(n,t,r){const i=n[vtcKey];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?n.removeAttribute("class"):r?n.setAttribute("class",t):n.className=t}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),vShow={name:"show",beforeMount(n,{value:t},{transition:r}){n[vShowOriginalDisplay]=n.style.display==="none"?"":n.style.display,r&&t?r.beforeEnter(n):setDisplay(n,t)},mounted(n,{value:t},{transition:r}){r&&t&&r.enter(n)},updated(n,{value:t,oldValue:r},{transition:i}){!t!=!r&&(i?t?(i.beforeEnter(n),setDisplay(n,!0),i.enter(n)):i.leave(n,()=>{setDisplay(n,!1)}):setDisplay(n,t))},beforeUnmount(n,{value:t}){setDisplay(n,t)}};function setDisplay(n,t){n.style.display=t?n[vShowOriginalDisplay]:"none",n[vShowHidden]=!t}function initVShowForSSR(){vShow.getSSRProps=({value:n})=>{if(!n)return{style:{display:"none"}}}}const CSS_VAR_TEXT=Symbol("");function useCssVars(n){const t=getCurrentInstance();if(!t)return;const r=t.ut=(g=n(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach($=>setVarsOnNode($,g))},i=()=>{const g=n(t.proxy);t.ce?setVarsOnNode(t.ce,g):setVarsOnVNode(t.subTree,g),r(g)};onBeforeUpdate(()=>{queuePostFlushCb(i)}),onMounted(()=>{watch(i,NOOP,{flush:"post"});const g=new MutationObserver(i);g.observe(t.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>g.disconnect())})}function setVarsOnVNode(n,t){if(n.shapeFlag&128){const r=n.suspense;n=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{setVarsOnVNode(r.activeBranch,t)})}for(;n.component;)n=n.component.subTree;if(n.shapeFlag&1&&n.el)setVarsOnNode(n.el,t);else if(n.type===Fragment)n.children.forEach(r=>setVarsOnVNode(r,t));else if(n.type===Static){let{el:r,anchor:i}=n;for(;r&&(setVarsOnNode(r,t),r!==i);)r=r.nextSibling}}function setVarsOnNode(n,t){if(n.nodeType===1){const r=n.style;let i="";for(const g in t){const $=normalizeCssVarValue(t[g]);r.setProperty(`--${g}`,$),i+=`--${g}: ${$};`}r[CSS_VAR_TEXT]=i}}const displayRE=/(?:^|;)\s*display\s*:/;function patchStyle(n,t,r){const i=n.style,g=isString$2(r);let $=!1;if(r&&!g){if(t)if(isString$2(t))for(const V of t.split(";")){const re=V.slice(0,V.indexOf(":")).trim();r[re]==null&&setStyle$1(i,re,"")}else for(const V in t)r[V]==null&&setStyle$1(i,V,"");for(const V in r)V==="display"&&($=!0),setStyle$1(i,V,r[V])}else if(g){if(t!==r){const V=i[CSS_VAR_TEXT];V&&(r+=";"+V),i.cssText=r,$=displayRE.test(r)}}else t&&n.removeAttribute("style");vShowOriginalDisplay in n&&(n[vShowOriginalDisplay]=$?i.display:"",n[vShowHidden]&&(i.display="none"))}const importantRE=/\s*!important$/;function setStyle$1(n,t,r){if(isArray$5(r))r.forEach(i=>setStyle$1(n,t,i));else if(r==null&&(r=""),t.startsWith("--"))n.setProperty(t,r);else{const i=autoPrefix(n,t);importantRE.test(r)?n.setProperty(hyphenate(i),r.replace(importantRE,""),"important"):n[i]=r}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(n,t){const r=prefixCache[t];if(r)return r;let i=camelize(t);if(i!=="filter"&&i in n)return prefixCache[t]=i;i=capitalize$1(i);for(let g=0;gcachedNow||(p$1.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(n,t){const r=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=r.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(i,r.value),t,5,[i])};return r.value=n,r.attached=getNow(),r}function patchStopImmediatePropagation(n,t){if(isArray$5(t)){const r=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{r.call(n),n._stopped=!0},t.map(i=>g=>!g._stopped&&i&&i(g))}else return t}const isNativeOn=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,patchProp=(n,t,r,i,g,$)=>{const V=g==="svg";t==="class"?patchClass(n,i,V):t==="style"?patchStyle(n,r,i):isOn(t)?isModelListener(t)||patchEvent(n,t,r,i,$):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):shouldSetAsProp(n,t,i,V))?(patchDOMProp(n,t,i),!n.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&patchAttr(n,t,i,V,$,t!=="value")):n._isVueCE&&(/[A-Z]/.test(t)||!isString$2(i))?patchDOMProp(n,camelize(t),i,$,t):(t==="true-value"?n._trueValue=i:t==="false-value"&&(n._falseValue=i),patchAttr(n,t,i,V))};function shouldSetAsProp(n,t,r,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in n&&isNativeOn(t)&&isFunction$4(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&n.tagName==="IFRAME"||t==="form"||t==="list"&&n.tagName==="INPUT"||t==="type"&&n.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const g=n.tagName;if(g==="IMG"||g==="VIDEO"||g==="CANVAS"||g==="SOURCE")return!1}return isNativeOn(t)&&isString$2(r)?!1:t in n}const positionMap=new WeakMap,newPositionMap=new WeakMap,moveCbKey=Symbol("_moveCb"),enterCbKey=Symbol("_enterCb"),decorate=n=>(delete n.props.mode,n),TransitionGroupImpl=decorate({name:"TransitionGroup",props:extend$2({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(n,{slots:t}){const r=getCurrentInstance(),i=useTransitionState();let g,$;return onUpdated(()=>{if(!g.length)return;const V=n.moveClass||`${n.name||"v"}-move`;if(!hasCSSTransform(g[0].el,r.vnode.el,V)){g=[];return}g.forEach(callPendingCbs),g.forEach(recordPosition);const re=g.filter(applyTranslation);forceReflow(r.vnode.el),re.forEach(ie=>{const ae=ie.el,oe=ae.style;addTransitionClass(ae,V),oe.transform=oe.webkitTransform=oe.transitionDuration="";const le=ae[moveCbKey]=ue=>{ue&&ue.target!==ae||(!ue||ue.propertyName.endsWith("transform"))&&(ae.removeEventListener("transitionend",le),ae[moveCbKey]=null,removeTransitionClass(ae,V))};ae.addEventListener("transitionend",le)}),g=[]}),()=>{const V=toRaw(n),re=resolveTransitionProps(V);let ie=V.tag||Fragment;if(g=[],$)for(let ae=0;ae<$.length;ae++){const oe=$[ae];oe.el&&oe.el instanceof Element&&(g.push(oe),setTransitionHooks(oe,resolveTransitionHooks(oe,re,i,r)),positionMap.set(oe,{left:oe.el.offsetLeft,top:oe.el.offsetTop}))}$=t.default?getTransitionRawChildren(t.default()):[];for(let ae=0;ae<$.length;ae++){const oe=$[ae];oe.key!=null&&setTransitionHooks(oe,resolveTransitionHooks(oe,re,i,r))}return createVNode$1(ie,null,$)}}}),TransitionGroup=TransitionGroupImpl;function callPendingCbs(n){const t=n.el;t[moveCbKey]&&t[moveCbKey](),t[enterCbKey]&&t[enterCbKey]()}function recordPosition(n){newPositionMap.set(n,{left:n.el.offsetLeft,top:n.el.offsetTop})}function applyTranslation(n){const t=positionMap.get(n),r=newPositionMap.get(n),i=t.left-r.left,g=t.top-r.top;if(i||g){const $=n.el.style;return $.transform=$.webkitTransform=`translate(${i}px,${g}px)`,$.transitionDuration="0s",n}}function hasCSSTransform(n,t,r){const i=n.cloneNode(),g=n[vtcKey];g&&g.forEach(re=>{re.split(/\s+/).forEach(ie=>ie&&i.classList.remove(ie))}),r.split(/\s+/).forEach(re=>re&&i.classList.add(re)),i.style.display="none";const $=t.nodeType===1?t:t.parentNode;$.appendChild(i);const{hasTransform:V}=getTransitionInfo(i);return $.removeChild(i),V}const getModelAssigner=n=>{const t=n.props["onUpdate:modelValue"]||!1;return isArray$5(t)?r=>invokeArrayFns(t,r):t};function onCompositionStart(n){n.target.composing=!0}function onCompositionEnd(n){const t=n.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign");function castValue(n,t,r){return t&&(n=n.trim()),r&&(n=looseToNumber$1(n)),n}const vModelText={created(n,{modifiers:{lazy:t,trim:r,number:i}},g){n[assignKey]=getModelAssigner(g);const $=i||g.props&&g.props.type==="number";addEventListener$1(n,t?"change":"input",V=>{V.target.composing||n[assignKey](castValue(n.value,r,$))}),(r||$)&&addEventListener$1(n,"change",()=>{n.value=castValue(n.value,r,$)}),t||(addEventListener$1(n,"compositionstart",onCompositionStart),addEventListener$1(n,"compositionend",onCompositionEnd),addEventListener$1(n,"change",onCompositionEnd))},mounted(n,{value:t}){n.value=t??""},beforeUpdate(n,{value:t,oldValue:r,modifiers:{lazy:i,trim:g,number:$}},V){if(n[assignKey]=getModelAssigner(V),n.composing)return;const re=($||n.type==="number")&&!/^0\d/.test(n.value)?looseToNumber$1(n.value):n.value,ie=t??"";re!==ie&&(document.activeElement===n&&n.type!=="range"&&(i&&t===r||g&&n.value.trim()===ie)||(n.value=ie))}},vModelCheckbox={deep:!0,created(n,t,r){n[assignKey]=getModelAssigner(r),addEventListener$1(n,"change",()=>{const i=n._modelValue,g=getValue$2(n),$=n.checked,V=n[assignKey];if(isArray$5(i)){const re=looseIndexOf(i,g),ie=re!==-1;if($&&!ie)V(i.concat(g));else if(!$&&ie){const ae=[...i];ae.splice(re,1),V(ae)}}else if(isSet$2(i)){const re=new Set(i);$?re.add(g):re.delete(g),V(re)}else V(getCheckboxValue(n,$))})},mounted:setChecked,beforeUpdate(n,t,r){n[assignKey]=getModelAssigner(r),setChecked(n,t,r)}};function setChecked(n,{value:t,oldValue:r},i){n._modelValue=t;let g;if(isArray$5(t))g=looseIndexOf(t,i.props.value)>-1;else if(isSet$2(t))g=t.has(i.props.value);else{if(t===r)return;g=looseEqual(t,getCheckboxValue(n,!0))}n.checked!==g&&(n.checked=g)}const vModelRadio={created(n,{value:t},r){n.checked=looseEqual(t,r.props.value),n[assignKey]=getModelAssigner(r),addEventListener$1(n,"change",()=>{n[assignKey](getValue$2(n))})},beforeUpdate(n,{value:t,oldValue:r},i){n[assignKey]=getModelAssigner(i),t!==r&&(n.checked=looseEqual(t,i.props.value))}};function getValue$2(n){return"_value"in n?n._value:n.value}function getCheckboxValue(n,t){const r=t?"_trueValue":"_falseValue";return r in n?n[r]:t}function initVModelForSSR(){vModelText.getSSRProps=({value:n})=>({value:n}),vModelRadio.getSSRProps=({value:n},t)=>{if(t.props&&looseEqual(t.props.value,n))return{checked:!0}},vModelCheckbox.getSSRProps=({value:n},t)=>{if(isArray$5(n)){if(t.props&&looseIndexOf(n,t.props.value)>-1)return{checked:!0}}else if(isSet$2(n)){if(t.props&&n.has(t.props.value))return{checked:!0}}else if(n)return{checked:!0}}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,t)=>systemModifiers.some(r=>n[`${r}Key`]&&!t.includes(r))},withModifiers=(n,t)=>{const r=n._withMods||(n._withMods={}),i=t.join(".");return r[i]||(r[i]=(g,...$)=>{for(let V=0;V{const r=n._withKeys||(n._withKeys={}),i=t.join(".");return r[i]||(r[i]=g=>{if(!("key"in g))return;const $=hyphenate(g.key);if(t.some(V=>V===$||keyNames[V]===$))return n(g)})},rendererOptions=extend$2({patchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const render$1=(...n)=>{ensureRenderer().render(...n)},createApp=(...n)=>{const t=ensureRenderer().createApp(...n),{mount:r}=t;return t.mount=i=>{const g=normalizeContainer(i);if(!g)return;const $=t._component;!isFunction$4($)&&!$.render&&!$.template&&($.template=g.innerHTML),g.nodeType===1&&(g.textContent="");const V=r(g,!1,resolveRootNamespace(g));return g instanceof Element&&(g.removeAttribute("v-cloak"),g.setAttribute("data-v-app","")),V},t};function resolveRootNamespace(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function normalizeContainer(n){return isString$2(n)?document.querySelector(n):n}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())},__vite_glob_0_0=`\r \r \r \r `,__vite_glob_0_1=`\r \r \r G\r ~\r `,__vite_glob_0_2=`\r \r \r \r `,__vite_glob_0_3=`\r \r \r `,__vite_glob_1_0=`\r \r \r \r `,__vite_glob_1_1=`\r \r \r \r \r `,__vite_glob_1_2=`\r \r \r \r \r \r `,__vite_glob_1_3=`\r \r \r \r \r \r \r \r \r \r `,__vite_glob_1_4=`\r \r \r \r \r \r \r \r \r \r `,__vite_glob_1_5=`\r \r \r \r `,__vite_glob_1_6=`\r \r \r `,__vite_glob_1_7=`\r \r \r \r \r \r `,__vite_glob_1_8=`\r \r \r \r \r \r \r \r \r `,__vite_glob_1_9=`\r \r \r \r \r \r \r `,__vite_glob_1_10=`\r \r \r \r \r \r \r \r \r `,__vite_glob_1_11=`\r \r \r \r \r \r \r \r \r \r `,__vite_glob_1_12=`\r \r \r \r \r \r \r \r \r `,index$2="",__uno="",cssVars$1="";if(typeof window<"u"){let n=function(){var t=document.body,r=document.getElementById("___mt__edit__icons__dom__");r||(r=document.createElementNS("http://www.w3.org/2000/svg","svg"),r.style.position="absolute",r.style.width="0",r.style.height="0",r.id="___mt__edit__icons__dom__",r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),r.innerHTML=`\r \r \r \r \r \r \r \r \r \r \r \r \r \r \r \r \r \r \r \r \r \r \r `,t.insertBefore(r,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",n):n()}const animate="",custom_ani="",autoDestroyMouseMove=(n,t)=>{const r=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("touchmove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchend",r),document.removeEventListener("mouseleave",r),t&&t()};document.addEventListener("mousemove",n),document.addEventListener("touchmove",n),document.addEventListener("mouseup",r),document.addEventListener("touchend",r),document.addEventListener("mouseleave",r)},alignToGrid$1=(n,t=1)=>{const r=Math.floor(n/t);return n%t>=t/2?(r+1)*t:r*t},calcGrid=(n,t=1)=>{const r=Math.abs(n)%t,i=n>0?t:-t;let g=0;return r>t/2?g=i*Math.ceil(Math.abs(n)/t):g=i*Math.floor(Math.abs(n)/t),g};function getXY(n){let t=0,r=0;if(isTouchEvent$1(n)){const i=n.targetTouches[0];t=i.pageX,r=i.pageY}else t=n.clientX,r=n.clientY;return{clientX:t,clientY:r}}function isTouchEvent$1(n){const t=Object.prototype.toString.call(n);return t.substring(8,t.length-1)==="TouchEvent"}const getLength=(n,t)=>Math.sqrt(n*n+t*t),degToRadian=n=>n*Math.PI/180,cos=n=>Math.cos(degToRadian(n)),sin=n=>Math.sin(degToRadian(n)),getNewStyle=(n,t,r,i,g,$,V)=>{let{width:re,height:ie,centerX:ae,centerY:oe,rotateAngle:le}=t;const ue=re<0?-1:1,de=ie<0?-1:1;switch(re=Math.abs(re),ie=Math.abs(ie),n){case"r":{const he=setWidthAndDeltaW(re,r,$);re=he.width,r=he.deltaW,g?(i=r/g,ie=re/g,ae+=r/2*cos(le)-i/2*sin(le),oe+=r/2*sin(le)+i/2*cos(le)):(ae+=r/2*cos(le),oe+=r/2*sin(le));break}case"tr":{i=-i;const he=setWidthAndDeltaW(re,r,$);re=he.width,r=he.deltaW;const pe=setHeightAndDeltaH(ie,i,V);ie=pe.height,i=pe.deltaH,g&&(r=i*g,re=ie*g),ae+=r/2*cos(le)+i/2*sin(le),oe+=r/2*sin(le)-i/2*cos(le);break}case"br":{const he=setWidthAndDeltaW(re,r,$);re=he.width,r=he.deltaW;const pe=setHeightAndDeltaH(ie,i,V);ie=pe.height,i=pe.deltaH,g&&(r=i*g,re=ie*g),ae+=r/2*cos(le)-i/2*sin(le),oe+=r/2*sin(le)+i/2*cos(le);break}case"bc":{const he=setHeightAndDeltaH(ie,i,V);ie=he.height,i=he.deltaH,g?(r=i*g,re=ie*g,ae+=r/2*cos(le)-i/2*sin(le),oe+=r/2*sin(le)+i/2*cos(le)):(ae-=i/2*sin(le),oe+=i/2*cos(le));break}case"bl":{r=-r;const he=setWidthAndDeltaW(re,r,$);re=he.width,r=he.deltaW;const pe=setHeightAndDeltaH(ie,i,V);ie=pe.height,i=pe.deltaH,g&&(ie=re/g,i=r/g),ae-=r/2*cos(le)+i/2*sin(le),oe-=r/2*sin(le)-i/2*cos(le);break}case"l":{r=-r;const he=setWidthAndDeltaW(re,r,$);re=he.width,r=he.deltaW,g?(ie=re/g,i=r/g,ae-=r/2*cos(le)+i/2*sin(le),oe-=r/2*sin(le)-i/2*cos(le)):(ae-=r/2*cos(le),oe-=r/2*sin(le));break}case"tl":{r=-r,i=-i;const he=setWidthAndDeltaW(re,r,$);re=he.width,r=he.deltaW;const pe=setHeightAndDeltaH(ie,i,V);ie=pe.height,i=pe.deltaH,g&&(re=ie*g,r=i*g),ae-=r/2*cos(le)-i/2*sin(le),oe-=r/2*sin(le)+i/2*cos(le);break}case"tc":{i=-i;const he=setHeightAndDeltaH(ie,i,V);ie=he.height,i=he.deltaH,g?(re=ie*g,r=i*g,ae+=r/2*cos(le)+i/2*sin(le),oe+=r/2*sin(le)-i/2*cos(le)):(ae+=i/2*sin(le),oe-=i/2*cos(le));break}}return{position:{centerX:ae,centerY:oe},size:{width:re*ue,height:ie*de}}},setHeightAndDeltaH=(n,t,r)=>{const i=n+t;return i>r?n=i:(t=r-n,n=r),{height:n,deltaH:t}},setWidthAndDeltaW=(n,t,r)=>{const i=n+t;return i>r?n=i:(t=r-n,n=r),{width:n,deltaW:t}},centerToTL=({centerX:n,centerY:t,width:r,height:i,angle:g})=>({top:t-i/2,left:n-r/2,width:r,height:i,angle:g}),formatData=(n,t,r)=>{const{width:i,height:g}=n;return{width:Math.abs(i),height:Math.abs(g),left:t-Math.abs(i)/2,top:r-Math.abs(g)/2}},randomString$1=n=>{n=n||10;const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=t.length;let i="";for(let g=0;g{dzrStore.dzr_copy_info=n},showDzrCopy:(n,t)=>{dzrStore.setDzrCopyInfo({...dzrStore.dzr_copy_info,show:!0,value:n,gen_id:t})},hideDzrCopy:()=>{dzrStore.setDzrCopyInfo({...dzrStore.dzr_copy_info,show:!1})}}),_hoisted_1$1G=["id","onMousedown","onTouchstartPassive"],_sfc_main$34=defineComponent({__name:"resize-handle",props:{itemInfo:{},targetDom:{},scaleRatio:{default:1},gridAlignSize:{default:1},genId:{},useProportionalScaling:{type:Boolean,default:!1}},emits:["update:itemInfo","onResizeDone","onResizeMove"],setup(n,{emit:t}){const r=n,i=computed(()=>({tl:{left:"0px",top:"0px",cursor:$(0)},tc:{left:r.itemInfo.width/2+"px",top:"0px",cursor:$(45)},tr:{left:r.itemInfo.width+"px",top:"0px",cursor:$(90)},l:{left:"0px",top:r.itemInfo.height/2+"px",cursor:$(315)},r:{left:r.itemInfo.width+"px",top:r.itemInfo.height/2+"px",cursor:$(135)},bl:{left:"0px",top:r.itemInfo.height+"px",cursor:$(270)},bc:{left:r.itemInfo.width/2+"px",top:r.itemInfo.height+"px",cursor:$(225)},br:{left:r.itemInfo.width+"px",top:r.itemInfo.height+"px",cursor:$(180)}})),g=[{start:338,end:23,cursor:"nw"},{start:23,end:68,cursor:"n"},{start:68,end:113,cursor:"ne"},{start:293,end:338,cursor:"w"},{start:113,end:158,cursor:"e"},{start:248,end:293,cursor:"sw"},{start:203,end:248,cursor:"s"},{start:158,end:203,cursor:"se"}],$=ae=>{const oe=(ae+r.itemInfo.angle)%360,le=g.find(ue=>ue.start<=oe&&ue.end>oe);return le?le.cursor+"-resize":"nw-resize"},V=t,re=ref({...r.itemInfo}),ie=(ae,oe)=>{ae.stopPropagation(),re.value={...r.itemInfo};const{clientX:le,clientY:ue}=getXY(ae),{width:de,height:he,left:pe,top:_e}=r.itemInfo,Ce=pe+de/2,xe=_e+he/2,Ie={width:de,height:he,centerX:Ce,centerY:xe,rotateAngle:r.itemInfo.angle};autoDestroyMouseMove(Oe=>{Oe.preventDefault(),dzrStore.showDzrCopy({...re.value},r.genId);const{clientX:$e,clientY:Ve}=getXY(Oe),Ue=($e-le)/r.scaleRatio,Fe=(Ve-ue)/r.scaleRatio,ze=Math.atan2(Fe,Ue),Pt=getLength(Ue,Fe),qe=ze-degToRadian(Ie.rotateAngle),Et=Pt*Math.cos(qe),kt=Pt*Math.sin(qe),At=r.useProportionalScaling||Oe.shiftKey?Ie.width/Ie.height:void 0,{position:{centerX:Dt,centerY:Lt},size:{width:jt,height:hn}}=getNewStyle(oe,{...Ie,rotateAngle:Ie.rotateAngle},Et,kt,At,1,1),vn=centerToTL({centerX:Dt,centerY:Lt,width:jt,height:hn,angle:r.itemInfo.angle}),_n=formatData(vn,Dt,Lt),wn=calcGrid(_n.width,r.gridAlignSize),bn=calcGrid(_n.height,r.gridAlignSize);V("update:itemInfo",{...r.itemInfo,..._n,left:calcGrid(_n.left,r.gridAlignSize),top:calcGrid(_n.top,r.gridAlignSize),width:wn,height:bn}),V("onResizeMove",{width:wn,height:bn})},()=>{dzrStore.hideDzrCopy(),V("onResizeDone")})};return(ae,oe)=>(openBlock(),createElementBlock("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.value,(le,ue)=>(openBlock(),createElementBlock("div",{key:ue,id:`resize_${ue}`,style:normalizeStyle$1(le),class:"mt-dzr-resize mt-dzr-resize-point touch-none",onMousedown:de=>ie(de,ue),onTouchstartPassive:de=>ie(de,ue)},null,44,_hoisted_1$1G))),128))]))}}),resizeHandle_vue_vue_type_style_index_0_scoped_ea13326c_lang="",_export_sfc$1=(n,t)=>{const r=n.__vccOpts||n;for(const[i,g]of t)r[i]=g;return r},ResizeHandle=_export_sfc$1(_sfc_main$34,[["__scopeId","data-v-ea13326c"]]),_sfc_main$33=defineComponent({__name:"rotate-handle",props:{itemInfo:{},targetDom:{},genId:{}},emits:["update:itemInfo","onRotateDone","onRotateMove"],setup(n,{emit:t}){const r=n,i=t,g=ref({...r.itemInfo}),$=ref(!1),V=re=>{if(re.stopPropagation(),!r.targetDom){console.error("target_dom is null");return}const ie=r.targetDom.getBoundingClientRect();if(!ie){console.error("boundingClientRect is null");return}const{clientX:ae,clientY:oe}=getXY(re);g.value={...r.itemInfo},dzrStore.hideDzrCopy();const le=r.itemInfo.angle,ue=ie.left+ie.width/2,de=ie.top+ie.height/2;$.value=!0,autoDestroyMouseMove(pe=>{if(!$.value)return;const{clientX:_e,clientY:Ce}=getXY(pe);dzrStore.showDzrCopy({...g.value},r.genId);const xe=Math.atan2(oe-de,ae-ue)/(Math.PI/180),Ie=Math.atan2(Ce-de,_e-ue)/(Math.PI/180),Ne=alignToGrid$1(le+Ie-xe);i("update:itemInfo",{...r.itemInfo,left:alignToGrid$1(r.itemInfo.left),top:alignToGrid$1(r.itemInfo.top),angle:Ne}),i("onRotateMove",{angle:Ne})},()=>{dzrStore.hideDzrCopy(),$.value=!1,i("onRotateDone")})};return(re,ie)=>(openBlock(),createElementBlock("div",{class:"mt-dzr-rotate touch-none",onMousedown:V,onTouchstartPassive:V},[...ie[0]||(ie[0]=[createBaseVNode("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[createBaseVNode("path",{d:"M929 849a30 30 0 0 1-30-30v-83.137a447.514 447.514 0 0 1-70.921 92.209C722.935 933.225 578.442 975.008 442 953.482a444.917 444.917 0 0 1-241.139-120.591 30 30 0 1 1 37.258-47.01l0.231-0.231A385.175 385.175 0 0 0 442 892.625v-0.006c120.855 22.123 250.206-13.519 343.656-106.975a386.646 386.646 0 0 0 70.6-96.653h-87.247a30 30 0 0 1 0-60H929a30 30 0 0 1 30 30V819a30 30 0 0 1-30 30zM512 392a120 120 0 1 1-120 120 120 120 0 0 1 120-120z m293.005-147.025a29.87 29.87 0 0 1-19.117-6.882l-0.232 0.231A386.5 386.5 0 0 0 689.478 168h-0.011c-145.646-75.182-329.021-51.747-451.117 70.35a386.615 386.615 0 0 0-70.6 96.65H255a30 30 0 0 1 0 60H95a30 30 0 0 1-30-30V205a30 30 0 0 1 60 0v83.129a447.534 447.534 0 0 1 70.923-92.206C317.981 73.866 493.048 37.2 647 85.836v-0.045a444.883 444.883 0 0 1 176.143 105.291 30 30 0 0 1-18.138 53.893z",fill:"#06B7FF"})],-1)])],32))}}),rotateHandle_vue_vue_type_style_index_0_scoped_c2cb7cf8_lang="",RotateHandle=_export_sfc$1(_sfc_main$33,[["__scopeId","data-v-c2cb7cf8"]]),_sfc_main$32={},_hoisted_1$1F={class:"w-1/1 h-1/1 select-none"};function _sfc_render$m(n,t){return openBlock(),createElementBlock("div",_hoisted_1$1F,[renderSlot(n.$slots,"default")])}const renderItem=_export_sfc$1(_sfc_main$32,[["render",_sfc_render$m]]),_hoisted_1$1E=["id"],_hoisted_2$$={key:0},_sfc_main$31=defineComponent({__name:"index",props:{id:{default:randomString$1(16)},modelValue:{default:()=>({left:0,top:0,width:0,height:0,angle:0})},scaleRatio:{default:1},hide:{type:Boolean,default:!1},grid:{default:()=>({enabled:!1,align:!1,size:10})},resize:{type:Boolean,default:!0},rotate:{type:Boolean,default:!0},lock:{type:Boolean,default:!1},active:{type:Boolean,default:!1},useProportionalScaling:{type:Boolean,default:!1},showGhostDom:{type:Boolean,default:!0},class:{},disabled:{type:Boolean,default:!1},adsorp_diff:{default:()=>({x:0,y:0})}},emits:["update:modelValue","mousedown","onItemMove","moveMouseUp","onMouseEnter","onMouseLeave","onResizeMove","onResizeDone","onRotateDone","onRightClick","onRotateMove"],setup(n,{emit:t}){const r=n,i=t,g=ref(),$=randomString$1(16),V=ref({...r.modelValue}),re=ref({...r.modelValue}),ie=Ie=>{const{width:Ne,height:Oe,left:$e,top:Ve,angle:Ue}=Ie;return{width:Ne+"px",height:Oe+"px",left:$e+"px",top:Ve+"px",transform:`rotate(${Ue}deg)`}},ae=computed(()=>!r.grid.align||!r.grid.enabled?1:r.grid.size),oe=computed({get:()=>re.value,set:Ie=>{re.value=Ie,i("update:modelValue",Ie)}}),le=Ie=>{if(i("mousedown",Ie),r.lock||r.disabled)return;const{clientX:Ne,clientY:Oe}=getXY(Ie);V.value={...r.modelValue},re.value={...r.modelValue},dzrStore.hideDzrCopy();const{left:$e,top:Ve}=r.modelValue,{clientWidth:Ue,clientHeight:Fe}=g.value.parentElement,ze=0,Pt=0,qe=Ue-r.modelValue.width,Et=Fe-r.modelValue.height;let kt=$e,At=Ve;autoDestroyMouseMove(Lt=>{dzrStore.showDzrCopy({...V.value},$);const{clientX:jt,clientY:hn}=getXY(Lt),vn=(jt-Ne)/r.scaleRatio,_n=(hn-Oe)/r.scaleRatio,wn=alignToGrid$1($e+vn,ae.value),bn=alignToGrid$1(Ve+_n,ae.value);kt=wnqe?qe:wn,At=bnEt?Et:bn,re.value={...re.value,left:kt,top:At},i("onItemMove",{move_length:{x:wn-$e,y:bn-Ve},new_lt:{left:kt,top:At},move_binfo:{id:r.id,left:kt,top:At,width:re.value.width,height:re.value.height,angle:re.value.angle}}),nextTick(()=>{var Tn,En;const Cn=((Tn=r.adsorp_diff)==null?void 0:Tn.x)??0,Sn=((En=r.adsorp_diff)==null?void 0:En.y)??0;Cn==0&&Sn==0||(kt+=Cn,At+=Sn,re.value={...re.value,left:kt,top:At},i("onItemMove",{new_lt:{left:kt,top:At},move_binfo:{id:r.id,left:kt,top:At,width:re.value.width,height:re.value.height,angle:re.value.angle}}))})},()=>{nextTick(()=>{dzrStore.hideDzrCopy(),i("moveMouseUp"),i("update:modelValue",{...r.modelValue,left:kt,top:At})})})},ue=Ie=>{i("onMouseEnter",Ie)},de=Ie=>{i("onMouseLeave",Ie)},he=Ie=>{i("onResizeMove",Ie)},pe=()=>{i("onResizeDone")},_e=()=>{i("onRotateDone")},Ce=Ie=>{i("onRotateMove",Ie)},xe=Ie=>{i("onRightClick",Ie)};return watch(()=>r.modelValue,Ie=>{re.value=Ie},{deep:!0}),(Ie,Ne)=>(openBlock(),createElementBlock(Fragment,null,[unref(dzrStore).dzr_copy_info.show&&unref(dzrStore).dzr_copy_info.gen_id==unref($)&&r.showGhostDom?(openBlock(),createElementBlock("div",{key:0,class:"absolute select-none opacity-30",style:normalizeStyle$1([{outline:"1px solid #06b7ff"},ie(unref(dzrStore).dzr_copy_info.value)])},[createVNode$1(renderItem,null,{default:withCtx(()=>[renderSlot(Ie.$slots,"default",{},void 0,!0)]),_:3})],4)):createCommentVNode("",!0),r.hide?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:1,id:r.id,ref_key:"dzrRef",ref:g,class:normalizeClass(`${r.class} absolute select-none touch-none ${r.lock?"opacity-50":""} ${r.active&&r.modelValue.width!=0&&r.modelValue.height!=0?"dzr-active":""}`),onMousedown:le,onTouchstartPassive:le,onMouseenter:ue,onMouseleave:de,onContextmenu:withModifiers(xe,["right","prevent"]),style:normalizeStyle$1(ie(re.value))},[createVNode$1(renderItem,null,{default:withCtx(()=>[renderSlot(Ie.$slots,"default",{},void 0,!0)]),_:3}),r.resize&&!r.lock&&r.active&&!r.disabled?(openBlock(),createElementBlock("div",_hoisted_2$$,[createVNode$1(ResizeHandle,{"item-info":oe.value,"onUpdate:itemInfo":Ne[0]||(Ne[0]=Oe=>oe.value=Oe),"target-dom":g.value,"scale-ratio":r.scaleRatio,"grid-align-size":ae.value,"gen-id":unref($),"use-proportional-scaling":r.useProportionalScaling,onOnResizeDone:pe,onOnResizeMove:Ne[1]||(Ne[1]=Oe=>he(Oe))},null,8,["item-info","target-dom","scale-ratio","grid-align-size","gen-id","use-proportional-scaling"])])):createCommentVNode("",!0),r.rotate&&!r.lock&&r.active&&!r.disabled?(openBlock(),createBlock(RotateHandle,{key:1,"item-info":oe.value,"onUpdate:itemInfo":Ne[2]||(Ne[2]=Oe=>oe.value=Oe),"target-dom":g.value,"gen-id":unref($),onOnRotateDone:_e,onOnRotateMove:Ne[3]||(Ne[3]=Oe=>Ce(Oe))},null,8,["item-info","target-dom","gen-id"])):createCommentVNode("",!0)],46,_hoisted_1$1E))],64))}}),index_vue_vue_type_style_index_0_scoped_a8334372_lang="";function computedEager(n,t){var r;const i=shallowRef();return watchEffect(()=>{i.value=n()},{...t,flush:(r=t==null?void 0:t.flush)!=null?r:"sync"}),readonly(i)}function tryOnScopeDispose(n){return getCurrentScope()?(onScopeDispose(n),!0):!1}function toValue(n){return typeof n=="function"?n():unref(n)}function toReactive(n){if(!isRef(n))return reactive(n);const t=new Proxy({},{get(r,i,g){return unref(Reflect.get(n.value,i,g))},set(r,i,g){return isRef(n.value[i])&&!isRef(g)?n.value[i].value=g:n.value[i]=g,!0},deleteProperty(r,i){return Reflect.deleteProperty(n.value,i)},has(r,i){return Reflect.has(n.value,i)},ownKeys(){return Object.keys(n.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return reactive(t)}function reactiveComputed(n){return toReactive(computed(n))}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const isDef$1=n=>typeof n<"u",notNullish=n=>n!=null,toString$2=Object.prototype.toString,isObject$5=n=>toString$2.call(n)==="[object Object]",clamp$4=(n,t,r)=>Math.min(r,Math.max(t,n)),noop$5=()=>{},isIOS=getIsIOS();function getIsIOS(){var n,t;return isClient&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function createFilterWrapper(n,t){function r(...i){return new Promise((g,$)=>{Promise.resolve(n(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(g).catch($)})}return r}const bypassFilter=n=>n();function debounceFilter(n,t={}){let r,i,g=noop$5;const $=re=>{clearTimeout(re),g(),g=noop$5};return re=>{const ie=toValue(n),ae=toValue(t.maxWait);return r&&$(r),ie<=0||ae!==void 0&&ae<=0?(i&&($(i),i=null),Promise.resolve(re())):new Promise((oe,le)=>{g=t.rejectOnCancel?le:oe,ae&&!i&&(i=setTimeout(()=>{r&&$(r),i=null,oe(re())},ae)),r=setTimeout(()=>{i&&$(i),i=null,oe(re())},ie)})}}function throttleFilter(...n){let t=0,r,i=!0,g=noop$5,$,V,re,ie,ae;!isRef(n[0])&&typeof n[0]=="object"?{delay:V,trailing:re=!0,leading:ie=!0,rejectOnCancel:ae=!1}=n[0]:[V,re=!0,ie=!0,ae=!1]=n;const oe=()=>{r&&(clearTimeout(r),r=void 0,g(),g=noop$5)};return ue=>{const de=toValue(V),he=Date.now()-t,pe=()=>$=ue();return oe(),de<=0?(t=Date.now(),pe()):(he>de&&(ie||!i)?(t=Date.now(),pe()):re&&($=new Promise((_e,Ce)=>{g=ae?Ce:_e,r=setTimeout(()=>{t=Date.now(),i=!0,_e(pe()),oe()},Math.max(0,de-he))})),!ie&&!r&&(r=setTimeout(()=>i=!0,de)),i=!1,$)}}function pausableFilter(n=bypassFilter){const t=ref(!0);function r(){t.value=!1}function i(){t.value=!0}const g=(...$)=>{t.value&&n(...$)};return{isActive:readonly(t),pause:r,resume:i,eventFilter:g}}function getLifeCycleTarget(n){return n||getCurrentInstance()}function toRef(...n){if(n.length!==1)return toRef$1(...n);const t=n[0];return typeof t=="function"?readonly(customRef(()=>({get:t,set:noop$5}))):ref(t)}function useDebounceFn(n,t=200,r={}){return createFilterWrapper(debounceFilter(t,r),n)}function refDebounced(n,t=200,r={}){const i=ref(n.value),g=useDebounceFn(()=>{i.value=n.value},t,r);return watch(n,()=>g()),i}function useThrottleFn(n,t=200,r=!1,i=!0,g=!1){return createFilterWrapper(throttleFilter(t,r,i,g),n)}function watchWithFilter(n,t,r={}){const{eventFilter:i=bypassFilter,...g}=r;return watch(n,createFilterWrapper(i,t),g)}function watchPausable(n,t,r={}){const{eventFilter:i,...g}=r,{eventFilter:$,pause:V,resume:re,isActive:ie}=pausableFilter(i);return{stop:watchWithFilter(n,t,{...g,eventFilter:$}),pause:V,resume:re,isActive:ie}}function tryOnMounted(n,t=!0,r){getLifeCycleTarget()?onMounted(n,r):t?n():nextTick(n)}function useTimeoutFn(n,t,r={}){const{immediate:i=!0}=r,g=ref(!1);let $=null;function V(){$&&(clearTimeout($),$=null)}function re(){g.value=!1,V()}function ie(...ae){V(),g.value=!0,$=setTimeout(()=>{g.value=!1,$=null,n(...ae)},toValue(t))}return i&&(g.value=!0,isClient&&ie()),tryOnScopeDispose(re),{isPending:readonly(g),start:ie,stop:re}}function useToggle(n=!1,t={}){const{truthyValue:r=!0,falsyValue:i=!1}=t,g=isRef(n),$=ref(n);function V(re){if(arguments.length)return $.value=re,$.value;{const ie=toValue(r);return $.value=$.value===ie?toValue(i):ie,$.value}}return g?V:[$,V]}function unrefElement(n){var t;const r=toValue(n);return(t=r==null?void 0:r.$el)!=null?t:r}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0;function useEventListener(...n){let t,r,i,g;if(typeof n[0]=="string"||Array.isArray(n[0])?([r,i,g]=n,t=defaultWindow):[t,r,i,g]=n,!t)return noop$5;Array.isArray(r)||(r=[r]),Array.isArray(i)||(i=[i]);const $=[],V=()=>{$.forEach(oe=>oe()),$.length=0},re=(oe,le,ue,de)=>(oe.addEventListener(le,ue,de),()=>oe.removeEventListener(le,ue,de)),ie=watch(()=>[unrefElement(t),toValue(g)],([oe,le])=>{if(V(),!oe)return;const ue=isObject$5(le)?{...le}:le;$.push(...r.flatMap(de=>i.map(he=>re(oe,de,he,ue))))},{immediate:!0,flush:"post"}),ae=()=>{ie(),V()};return tryOnScopeDispose(ae),ae}let _iOSWorkaround=!1;function onClickOutside(n,t,r={}){const{window:i=defaultWindow,ignore:g=[],capture:$=!0,detectIframe:V=!1}=r;if(!i)return noop$5;isIOS&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(i.document.body.children).forEach(ue=>ue.addEventListener("click",noop$5)),i.document.documentElement.addEventListener("click",noop$5));let re=!0;const ie=ue=>g.some(de=>{if(typeof de=="string")return Array.from(i.document.querySelectorAll(de)).some(he=>he===ue.target||ue.composedPath().includes(he));{const he=unrefElement(de);return he&&(ue.target===he||ue.composedPath().includes(he))}}),oe=[useEventListener(i,"click",ue=>{const de=unrefElement(n);if(!(!de||de===ue.target||ue.composedPath().includes(de))){if(ue.detail===0&&(re=!ie(ue)),!re){re=!0;return}t(ue)}},{passive:!0,capture:$}),useEventListener(i,"pointerdown",ue=>{const de=unrefElement(n);re=!ie(ue)&&!!(de&&!ue.composedPath().includes(de))},{passive:!0}),V&&useEventListener(i,"blur",ue=>{setTimeout(()=>{var de;const he=unrefElement(n);((de=i.document.activeElement)==null?void 0:de.tagName)==="IFRAME"&&!(he!=null&&he.contains(i.document.activeElement))&&t(ue)},0)})].filter(Boolean);return()=>oe.forEach(ue=>ue())}function useMounted(){const n=ref(!1),t=getCurrentInstance();return t&&onMounted(()=>{n.value=!0},t),n}function useSupported(n){const t=useMounted();return computed(()=>(t.value,!!n()))}function useMutationObserver(n,t,r={}){const{window:i=defaultWindow,...g}=r;let $;const V=useSupported(()=>i&&"MutationObserver"in i),re=()=>{$&&($.disconnect(),$=void 0)},ie=computed(()=>{const ue=toValue(n),de=(Array.isArray(ue)?ue:[ue]).map(unrefElement).filter(notNullish);return new Set(de)}),ae=watch(()=>ie.value,ue=>{re(),V.value&&ue.size&&($=new MutationObserver(t),ue.forEach(de=>$.observe(de,g)))},{immediate:!0,flush:"post"}),oe=()=>$==null?void 0:$.takeRecords(),le=()=>{re(),ae()};return tryOnScopeDispose(le),{isSupported:V,stop:le,takeRecords:oe}}function useActiveElement(n={}){var t;const{window:r=defaultWindow,deep:i=!0,triggerOnRemoval:g=!1}=n,$=(t=n.document)!=null?t:r==null?void 0:r.document,V=()=>{var ae;let oe=$==null?void 0:$.activeElement;if(i)for(;oe!=null&&oe.shadowRoot;)oe=(ae=oe==null?void 0:oe.shadowRoot)==null?void 0:ae.activeElement;return oe},re=ref(),ie=()=>{re.value=V()};return r&&(useEventListener(r,"blur",ae=>{ae.relatedTarget===null&&ie()},!0),useEventListener(r,"focus",ie,!0)),g&&useMutationObserver($,ae=>{ae.filter(oe=>oe.removedNodes.length).map(oe=>Array.from(oe.removedNodes)).flat().forEach(oe=>{oe===re.value&&ie()})},{childList:!0,subtree:!0}),ie(),re}function useMediaQuery(n,t={}){const{window:r=defaultWindow}=t,i=useSupported(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let g;const $=ref(!1),V=ae=>{$.value=ae.matches},re=()=>{g&&("removeEventListener"in g?g.removeEventListener("change",V):g.removeListener(V))},ie=watchEffect(()=>{i.value&&(re(),g=r.matchMedia(toValue(n)),"addEventListener"in g?g.addEventListener("change",V):g.addListener(V),$.value=g.matches)});return tryOnScopeDispose(()=>{ie(),re(),g=void 0}),$}function cloneFnJSON(n){return JSON.parse(JSON.stringify(n))}const _global$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__",handlers=getHandlers();function getHandlers(){return globalKey in _global$1||(_global$1[globalKey]=_global$1[globalKey]||{}),_global$1[globalKey]}function getSSRHandler(n,t){return handlers[n]||t}function guessSerializerType(n){return n==null?"any":n instanceof Set?"set":n instanceof Map?"map":n instanceof Date?"date":typeof n=="boolean"?"boolean":typeof n=="string"?"string":typeof n=="object"?"object":Number.isNaN(n)?"any":"number"}const StorageSerializers={boolean:{read:n=>n==="true",write:n=>String(n)},object:{read:n=>JSON.parse(n),write:n=>JSON.stringify(n)},number:{read:n=>Number.parseFloat(n),write:n=>String(n)},any:{read:n=>n,write:n=>String(n)},string:{read:n=>n,write:n=>String(n)},map:{read:n=>new Map(JSON.parse(n)),write:n=>JSON.stringify(Array.from(n.entries()))},set:{read:n=>new Set(JSON.parse(n)),write:n=>JSON.stringify(Array.from(n))},date:{read:n=>new Date(n),write:n=>n.toISOString()}},customStorageEventName="vueuse-storage";function useStorage(n,t,r,i={}){var g;const{flush:$="pre",deep:V=!0,listenToStorageChanges:re=!0,writeDefaults:ie=!0,mergeDefaults:ae=!1,shallow:oe,window:le=defaultWindow,eventFilter:ue,onError:de=ze=>{console.error(ze)},initOnMounted:he}=i,pe=(oe?shallowRef:ref)(typeof t=="function"?t():t);if(!r)try{r=getSSRHandler("getDefaultStorage",()=>{var ze;return(ze=defaultWindow)==null?void 0:ze.localStorage})()}catch(ze){de(ze)}if(!r)return pe;const _e=toValue(t),Ce=guessSerializerType(_e),xe=(g=i.serializer)!=null?g:StorageSerializers[Ce],{pause:Ie,resume:Ne}=watchPausable(pe,()=>$e(pe.value),{flush:$,deep:V,eventFilter:ue});le&&re&&tryOnMounted(()=>{useEventListener(le,"storage",Ue),useEventListener(le,customStorageEventName,Fe),he&&Ue()}),he||Ue();function Oe(ze,Pt){le&&le.dispatchEvent(new CustomEvent(customStorageEventName,{detail:{key:n,oldValue:ze,newValue:Pt,storageArea:r}}))}function $e(ze){try{const Pt=r.getItem(n);if(ze==null)Oe(Pt,null),r.removeItem(n);else{const qe=xe.write(ze);Pt!==qe&&(r.setItem(n,qe),Oe(Pt,qe))}}catch(Pt){de(Pt)}}function Ve(ze){const Pt=ze?ze.newValue:r.getItem(n);if(Pt==null)return ie&&_e!=null&&r.setItem(n,xe.write(_e)),_e;if(!ze&&ae){const qe=xe.read(Pt);return typeof ae=="function"?ae(qe,_e):Ce==="object"&&!Array.isArray(qe)?{..._e,...qe}:qe}else return typeof Pt!="string"?Pt:xe.read(Pt)}function Ue(ze){if(!(ze&&ze.storageArea!==r)){if(ze&&ze.key==null){pe.value=_e;return}if(!(ze&&ze.key!==n)){Ie();try{(ze==null?void 0:ze.newValue)!==xe.write(pe.value)&&(pe.value=Ve(ze))}catch(Pt){de(Pt)}finally{ze?nextTick(Ne):Ne()}}}}function Fe(ze){Ue(ze.detail)}return pe}function usePreferredDark(n){return useMediaQuery("(prefers-color-scheme: dark)",n)}function useColorMode(n={}){const{selector:t="html",attribute:r="class",initialValue:i="auto",window:g=defaultWindow,storage:$,storageKey:V="vueuse-color-scheme",listenToStorageChanges:re=!0,storageRef:ie,emitAuto:ae,disableTransition:oe=!0}=n,le={auto:"",light:"light",dark:"dark",...n.modes||{}},ue=usePreferredDark({window:g}),de=computed(()=>ue.value?"dark":"light"),he=ie||(V==null?toRef(i):useStorage(V,i,$,{window:g,listenToStorageChanges:re})),pe=computed(()=>he.value==="auto"?de.value:he.value),_e=getSSRHandler("updateHTMLAttrs",(Ne,Oe,$e)=>{const Ve=typeof Ne=="string"?g==null?void 0:g.document.querySelector(Ne):unrefElement(Ne);if(!Ve)return;let Ue;if(oe){Ue=g.document.createElement("style");const Fe="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";Ue.appendChild(document.createTextNode(Fe)),g.document.head.appendChild(Ue)}if(Oe==="class"){const Fe=$e.split(/\s/g);Object.values(le).flatMap(ze=>(ze||"").split(/\s/g)).filter(Boolean).forEach(ze=>{Fe.includes(ze)?Ve.classList.add(ze):Ve.classList.remove(ze)})}else Ve.setAttribute(Oe,$e);oe&&(g.getComputedStyle(Ue).opacity,document.head.removeChild(Ue))});function Ce(Ne){var Oe;_e(t,r,(Oe=le[Ne])!=null?Oe:Ne)}function xe(Ne){n.onChanged?n.onChanged(Ne,Ce):Ce(Ne)}watch(pe,xe,{flush:"post",immediate:!0}),tryOnMounted(()=>xe(pe.value));const Ie=computed({get(){return ae?he.value:pe.value},set(Ne){he.value=Ne}});try{return Object.assign(Ie,{store:he,system:de,state:pe})}catch{return Ie}}function useCssVar(n,t,r={}){const{window:i=defaultWindow,initialValue:g="",observe:$=!1}=r,V=ref(g),re=computed(()=>{var ae;return unrefElement(t)||((ae=i==null?void 0:i.document)==null?void 0:ae.documentElement)});function ie(){var ae;const oe=toValue(n),le=toValue(re);if(le&&i){const ue=(ae=i.getComputedStyle(le).getPropertyValue(oe))==null?void 0:ae.trim();V.value=ue||g}}return $&&useMutationObserver(re,ie,{attributeFilter:["style","class"],window:i}),watch([re,()=>toValue(n)],ie,{immediate:!0}),watch(V,ae=>{var oe;(oe=re.value)!=null&&oe.style&&re.value.style.setProperty(toValue(n),ae)}),V}function useDark(n={}){const{valueDark:t="dark",valueLight:r="",window:i=defaultWindow}=n,g=useColorMode({...n,onChanged:(re,ie)=>{var ae;n.onChanged?(ae=n.onChanged)==null||ae.call(n,re==="dark",ie,re):ie(re)},modes:{dark:t,light:r}}),$=computed(()=>g.system?g.system.value:usePreferredDark({window:i}).value?"dark":"light");return computed({get(){return g.value==="dark"},set(re){const ie=re?"dark":"light";$.value===ie?g.value="auto":g.value=ie}})}function useDocumentVisibility(n={}){const{document:t=defaultDocument}=n;if(!t)return ref("visible");const r=ref(t.visibilityState);return useEventListener(t,"visibilitychange",()=>{r.value=t.visibilityState}),r}function useResizeObserver(n,t,r={}){const{window:i=defaultWindow,...g}=r;let $;const V=useSupported(()=>i&&"ResizeObserver"in i),re=()=>{$&&($.disconnect(),$=void 0)},ie=computed(()=>Array.isArray(n)?n.map(le=>unrefElement(le)):[unrefElement(n)]),ae=watch(ie,le=>{if(re(),V.value&&i){$=new ResizeObserver(t);for(const ue of le)ue&&$.observe(ue,g)}},{immediate:!0,flush:"post"}),oe=()=>{re(),ae()};return tryOnScopeDispose(oe),{isSupported:V,stop:oe}}function useElementBounding(n,t={}){const{reset:r=!0,windowResize:i=!0,windowScroll:g=!0,immediate:$=!0}=t,V=ref(0),re=ref(0),ie=ref(0),ae=ref(0),oe=ref(0),le=ref(0),ue=ref(0),de=ref(0);function he(){const pe=unrefElement(n);if(!pe){r&&(V.value=0,re.value=0,ie.value=0,ae.value=0,oe.value=0,le.value=0,ue.value=0,de.value=0);return}const _e=pe.getBoundingClientRect();V.value=_e.height,re.value=_e.bottom,ie.value=_e.left,ae.value=_e.right,oe.value=_e.top,le.value=_e.width,ue.value=_e.x,de.value=_e.y}return useResizeObserver(n,he),watch(()=>unrefElement(n),pe=>!pe&&he()),useMutationObserver(n,he,{attributeFilter:["style","class"]}),g&&useEventListener("scroll",he,{capture:!0,passive:!0}),i&&useEventListener("resize",he,{passive:!0}),tryOnMounted(()=>{$&&he()}),{height:V,bottom:re,left:ie,right:ae,top:oe,width:le,x:ue,y:de,update:he}}function useElementSize(n,t={width:0,height:0},r={}){const{window:i=defaultWindow,box:g="content-box"}=r,$=computed(()=>{var le,ue;return(ue=(le=unrefElement(n))==null?void 0:le.namespaceURI)==null?void 0:ue.includes("svg")}),V=ref(t.width),re=ref(t.height),{stop:ie}=useResizeObserver(n,([le])=>{const ue=g==="border-box"?le.borderBoxSize:g==="content-box"?le.contentBoxSize:le.devicePixelContentBoxSize;if(i&&$.value){const de=unrefElement(n);if(de){const he=de.getBoundingClientRect();V.value=he.width,re.value=he.height}}else if(ue){const de=Array.isArray(ue)?ue:[ue];V.value=de.reduce((he,{inlineSize:pe})=>he+pe,0),re.value=de.reduce((he,{blockSize:pe})=>he+pe,0)}else V.value=le.contentRect.width,re.value=le.contentRect.height},r);tryOnMounted(()=>{const le=unrefElement(n);le&&(V.value="offsetWidth"in le?le.offsetWidth:t.width,re.value="offsetHeight"in le?le.offsetHeight:t.height)});const ae=watch(()=>unrefElement(n),le=>{V.value=le?t.width:0,re.value=le?t.height:0});function oe(){ie(),ae()}return{width:V,height:re,stop:oe}}function useIntersectionObserver(n,t,r={}){const{root:i,rootMargin:g="0px",threshold:$=.1,window:V=defaultWindow,immediate:re=!0}=r,ie=useSupported(()=>V&&"IntersectionObserver"in V),ae=computed(()=>{const he=toValue(n);return(Array.isArray(he)?he:[he]).map(unrefElement).filter(notNullish)});let oe=noop$5;const le=ref(re),ue=ie.value?watch(()=>[ae.value,unrefElement(i),le.value],([he,pe])=>{if(oe(),!le.value||!he.length)return;const _e=new IntersectionObserver(t,{root:unrefElement(pe),rootMargin:g,threshold:$});he.forEach(Ce=>Ce&&_e.observe(Ce)),oe=()=>{_e.disconnect(),oe=noop$5}},{immediate:re,flush:"post"}):noop$5,de=()=>{oe(),ue(),le.value=!1};return tryOnScopeDispose(de),{isSupported:ie,isActive:le,pause(){oe(),le.value=!1},resume(){le.value=!0},stop:de}}const eventHandlers=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function useFullscreen(n,t={}){const{document:r=defaultDocument,autoExit:i=!1}=t,g=computed(()=>{var Ce;return(Ce=unrefElement(n))!=null?Ce:r==null?void 0:r.querySelector("html")}),$=ref(!1),V=computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(Ce=>r&&Ce in r||g.value&&Ce in g.value)),re=computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(Ce=>r&&Ce in r||g.value&&Ce in g.value)),ie=computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(Ce=>r&&Ce in r||g.value&&Ce in g.value)),ae=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(Ce=>r&&Ce in r),oe=useSupported(()=>g.value&&r&&V.value!==void 0&&re.value!==void 0&&ie.value!==void 0),le=()=>ae?(r==null?void 0:r[ae])===g.value:!1,ue=()=>{if(ie.value){if(r&&r[ie.value]!=null)return r[ie.value];{const Ce=g.value;if((Ce==null?void 0:Ce[ie.value])!=null)return!!Ce[ie.value]}}return!1};async function de(){if(!(!oe.value||!$.value)){if(re.value)if((r==null?void 0:r[re.value])!=null)await r[re.value]();else{const Ce=g.value;(Ce==null?void 0:Ce[re.value])!=null&&await Ce[re.value]()}$.value=!1}}async function he(){if(!oe.value||$.value)return;ue()&&await de();const Ce=g.value;V.value&&(Ce==null?void 0:Ce[V.value])!=null&&(await Ce[V.value](),$.value=!0)}async function pe(){await($.value?de():he())}const _e=()=>{const Ce=ue();(!Ce||Ce&&le())&&($.value=Ce)};return useEventListener(r,eventHandlers,_e,!1),useEventListener(()=>unrefElement(g),eventHandlers,_e,!1),i&&tryOnScopeDispose(de),{isSupported:oe,isFullscreen:$,enter:he,exit:de,toggle:pe}}function useLocalStorage(n,t,r={}){const{window:i=defaultWindow}=r;return useStorage(n,t,i==null?void 0:i.localStorage,r)}function useVModel(n,t,r,i={}){var g,$,V;const{clone:re=!1,passive:ie=!1,eventName:ae,deep:oe=!1,defaultValue:le,shouldEmit:ue}=i,de=getCurrentInstance(),he=r||(de==null?void 0:de.emit)||((g=de==null?void 0:de.$emit)==null?void 0:g.bind(de))||((V=($=de==null?void 0:de.proxy)==null?void 0:$.$emit)==null?void 0:V.bind(de==null?void 0:de.proxy));let pe=ae;t||(t="modelValue"),pe=pe||`update:${t.toString()}`;const _e=Ie=>re?typeof re=="function"?re(Ie):cloneFnJSON(Ie):Ie,Ce=()=>isDef$1(n[t])?_e(n[t]):le,xe=Ie=>{ue?ue(Ie)&&he(pe,Ie):he(pe,Ie)};if(ie){const Ie=Ce(),Ne=ref(Ie);let Oe=!1;return watch(()=>n[t],$e=>{Oe||(Oe=!0,Ne.value=_e($e),nextTick(()=>Oe=!1))}),watch(Ne,$e=>{!Oe&&($e!==n[t]||oe)&&xe($e)},{deep:oe}),Ne}else return computed({get(){return Ce()},set(Ie){xe(Ie)}})}function useWindowFocus(n={}){const{window:t=defaultWindow}=n;if(!t)return ref(!1);const r=ref(t.document.hasFocus());return useEventListener(t,"blur",()=>{r.value=!1}),useEventListener(t,"focus",()=>{r.value=!0}),r}function useWindowSize(n={}){const{window:t=defaultWindow,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:g=!0,includeScrollbar:$=!0}=n,V=ref(r),re=ref(i),ie=()=>{t&&($?(V.value=t.innerWidth,re.value=t.innerHeight):(V.value=t.document.documentElement.clientWidth,re.value=t.document.documentElement.clientHeight))};if(ie(),tryOnMounted(ie),useEventListener("resize",ie,{passive:!0}),g){const ae=useMediaQuery("(orientation: portrait)");watch(ae,()=>ie())}return{width:V,height:re}}const version="2.13.1",INSTALLED_KEY=Symbol("INSTALLED_KEY"),configProviderContextKey=Symbol(),defaultNamespace="el",statePrefix="is-",_bem=(n,t,r,i,g)=>{let $=`${n}-${t}`;return r&&($+=`-${r}`),i&&($+=`__${i}`),g&&($+=`--${g}`),$},namespaceContextKey=Symbol("namespaceContextKey"),useGetDerivedNamespace=n=>{const t=n||(getCurrentInstance()?inject(namespaceContextKey,ref(defaultNamespace)):ref(defaultNamespace));return computed(()=>unref(t)||defaultNamespace)},useNamespace=(n,t)=>{const r=useGetDerivedNamespace(t);return{namespace:r,b:(pe="")=>_bem(r.value,n,pe,"",""),e:pe=>pe?_bem(r.value,n,"",pe,""):"",m:pe=>pe?_bem(r.value,n,"","",pe):"",be:(pe,_e)=>pe&&_e?_bem(r.value,n,pe,_e,""):"",em:(pe,_e)=>pe&&_e?_bem(r.value,n,"",pe,_e):"",bm:(pe,_e)=>pe&&_e?_bem(r.value,n,pe,"",_e):"",bem:(pe,_e,Ce)=>pe&&_e&&Ce?_bem(r.value,n,pe,_e,Ce):"",is:(pe,..._e)=>{const Ce=_e.length>=1?_e[0]:!0;return pe&&Ce?`${statePrefix}${pe}`:""},cssVar:pe=>{const _e={};for(const Ce in pe)pe[Ce]&&(_e[`--${r.value}-${Ce}`]=pe[Ce]);return _e},cssVarName:pe=>`--${r.value}-${pe}`,cssVarBlock:pe=>{const _e={};for(const Ce in pe)pe[Ce]&&(_e[`--${r.value}-${n}-${Ce}`]=pe[Ce]);return _e},cssVarBlockName:pe=>`--${r.value}-${n}-${pe}`}};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$1=root$1.Symbol;const Symbol$2=Symbol$1;var objectProto$h=Object.prototype,hasOwnProperty$f=objectProto$h.hasOwnProperty,nativeObjectToString$1=objectProto$h.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(n){var t=hasOwnProperty$f.call(n,symToStringTag$1),r=n[symToStringTag$1];try{n[symToStringTag$1]=void 0;var i=!0}catch{}var g=nativeObjectToString$1.call(n);return i&&(t?n[symToStringTag$1]=r:delete n[symToStringTag$1]),g}var objectProto$g=Object.prototype,nativeObjectToString=objectProto$g.toString;function objectToString(n){return nativeObjectToString.call(n)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(n){return n==null?n===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(n)?getRawTag(n):objectToString(n)}function isObjectLike(n){return n!=null&&typeof n=="object"}var symbolTag$3="[object Symbol]";function isSymbol(n){return typeof n=="symbol"||isObjectLike(n)&&baseGetTag(n)==symbolTag$3}function arrayMap(n,t){for(var r=-1,i=n==null?0:n.length,g=Array(i);++r0){if(++t>=HOT_COUNT)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}function constant(n){return function(){return n}}var defineProperty=function(){try{var n=getNative(Object,"defineProperty");return n({},"",{}),n}catch{}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(n,t){return defineProperty$1(n,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity$1;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function arrayEach(n,t){for(var r=-1,i=n==null?0:n.length;++r-1}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(n,t){var r=typeof n;return t=t??MAX_SAFE_INTEGER$1,!!t&&(r=="number"||r!="symbol"&&reIsUint.test(n))&&n>-1&&n%1==0&&n-1&&n%1==0&&n<=MAX_SAFE_INTEGER}function isArrayLike$1(n){return n!=null&&isLength(n.length)&&!isFunction$3(n)}function isIterateeCall(n,t,r){if(!isObject$4(r))return!1;var i=typeof t;return(i=="number"?isArrayLike$1(r)&&isIndex(t,r.length):i=="string"&&t in r)?eq(r[t],n):!1}function createAssigner(n){return baseRest(function(t,r){var i=-1,g=r.length,$=g>1?r[g-1]:void 0,V=g>2?r[2]:void 0;for($=n.length>3&&typeof $=="function"?(g--,$):void 0,V&&isIterateeCall(r[0],r[1],V)&&($=g<3?void 0:$,g=1),t=Object(t);++i-1}function listCacheSet(n,t){var r=this.__data__,i=assocIndexOf(r,n);return i<0?(++this.size,r.push([n,t])):r[i][1]=t,this}function ListCache(n){var t=-1,r=n==null?0:n.length;for(this.clear();++t0&&r(re)?t>1?baseFlatten(re,t-1,r,i,g):arrayPush(g,re):i||(g[g.length]=re)}return g}function flatten$1(n){var t=n==null?0:n.length;return t?baseFlatten(n,1):[]}function flatRest(n){return setToString$1(overRest(n,void 0,flatten$1),n+"")}var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;var objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$6=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$6=objectProto$6.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$2(n){if(!isObjectLike(n)||baseGetTag(n)!=objectTag$3)return!1;var t=getPrototype$1(n);if(t===null)return!0;var r=hasOwnProperty$6.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&funcToString.call(r)==objectCtorString}function baseSlice(n,t,r){var i=-1,g=n.length;t<0&&(t=-t>g?0:g+t),r=r>g?g:r,r<0&&(r+=g),g=t>r?0:r-t>>>0,t>>>=0;for(var $=Array(g);++i=t?n:t)),n}function clamp$3(n,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=toNumber(r),r=r===r?r:0),t!==void 0&&(t=toNumber(t),t=t===t?t:0),baseClamp(toNumber(n),t,r)}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r}function stackGet(n){return this.__data__.get(n)}function stackHas(n){return this.__data__.has(n)}var LARGE_ARRAY_SIZE$1=200;function stackSet(n,t){var r=this.__data__;if(r instanceof ListCache){var i=r.__data__;if(!Map$2||i.lengthre))return!1;var ae=$.get(n),oe=$.get(t);if(ae&&oe)return ae==t&&oe==n;var le=-1,ue=!0,de=r&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for($.set(n,t),$.set(t,n);++le=t||Ve<0||le&&Ue>=$}function Ce(){var $e=now$2();if(_e($e))return xe($e);re=setTimeout(Ce,pe($e))}function xe($e){return re=void 0,ue&&i?de($e):(i=g=void 0,V)}function Ie(){re!==void 0&&clearTimeout(re),ae=0,i=ie=g=re=void 0}function Ne(){return re===void 0?V:xe(now$2())}function Oe(){var $e=now$2(),Ve=_e($e);if(i=arguments,g=this,ie=$e,Ve){if(re===void 0)return he(ie);if(le)return clearTimeout(re),re=setTimeout(Ce,t),de(ie)}return re===void 0&&(re=setTimeout(Ce,t)),V}return Oe.cancel=Ie,Oe.flush=Ne,Oe}function assignMergeValue(n,t,r){(r!==void 0&&!eq(n[t],r)||r===void 0&&!(t in n))&&baseAssignValue(n,t,r)}function isArrayLikeObject(n){return isObjectLike(n)&&isArrayLike$1(n)}function safeGet(n,t){if(!(t==="constructor"&&typeof n[t]=="function")&&t!="__proto__")return n[t]}function toPlainObject(n){return copyObject(n,keysIn(n))}function baseMergeDeep(n,t,r,i,g,$,V){var re=safeGet(n,r),ie=safeGet(t,r),ae=V.get(ie);if(ae){assignMergeValue(n,r,ae);return}var oe=$?$(re,ie,r+"",n,t,V):void 0,le=oe===void 0;if(le){var ue=isArray$4(ie),de=!ue&&isBuffer$2(ie),he=!ue&&!de&&isTypedArray$4(ie);oe=ie,ue||de||he?isArray$4(re)?oe=re:isArrayLikeObject(re)?oe=copyArray$1(re):de?(le=!1,oe=cloneBuffer(ie,!0)):he?(le=!1,oe=cloneTypedArray(ie,!0)):oe=[]:isPlainObject$2(ie)||isArguments$1(ie)?(oe=re,isArguments$1(re)?oe=toPlainObject(re):(!isObject$4(re)||isFunction$3(re))&&(oe=initCloneObject(ie))):le=!1}le&&(V.set(ie,oe),g(oe,ie,i,$,V),V.delete(ie)),assignMergeValue(n,r,oe)}function baseMerge(n,t,r,i,g){n!==t&&baseFor$1(t,function($,V){if(g||(g=new Stack),isObject$4($))baseMergeDeep(n,t,V,r,baseMerge,i,g);else{var re=i?i(safeGet(n,V),$,V+"",n,t,g):void 0;re===void 0&&(re=$),assignMergeValue(n,V,re)}},keysIn)}function arrayIncludesWith(n,t,r){for(var i=-1,g=n==null?0:n.length;++i1),$}),copyObject(n,getAllKeysIn(n),r),i&&(r=baseClone(r,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone));for(var g=t.length;g--;)baseUnset(r,t[g]);return r});const omit$1=omit;function baseSet(n,t,r,i){if(!isObject$4(n))return n;t=castPath(t,n);for(var g=-1,$=t.length,V=$-1,re=n;re!=null&&++g<$;){var ie=toKey(t[g]),ae=r;if(ie==="__proto__"||ie==="constructor"||ie==="prototype")return n;if(g!=V){var oe=re[ie];ae=i?i(oe,ie,re):void 0,ae===void 0&&(ae=isObject$4(oe)?oe:isIndex(t[g+1])?[]:{})}assignValue(re,ie,ae),re=re[ie]}return n}function basePickBy(n,t,r){for(var i=-1,g=t.length,$={};++i=LARGE_ARRAY_SIZE){var ae=t?null:createSet$1(n);if(ae)return setToArray(ae);V=!1,g=cacheHas,ie=new SetCache}else ie=t?[]:re;e:for(;++i<$;){var oe=n[i],le=t?t(oe):oe;if(oe=r||oe!==0?oe:0,V&&le===le){for(var ue=ie.length;ue--;)if(ie[ue]===le)continue e;t&&ie.push(le),re.push(oe)}else g(ie,le,r)||(ie!==re&&ie.push(le),re.push(oe))}return re}var union=baseRest(function(n){return baseUniq(baseFlatten(n,1,isArrayLikeObject,!0))});const union$1=union,isUndefined$1=n=>n===void 0,isBoolean$1=n=>typeof n=="boolean",isNumber$2=n=>typeof n=="number",isEmpty=n=>!n&&n!==0||isArray$5(n)&&n.length===0||isObject$6(n)&&!Object.keys(n).length,isElement$1=n=>typeof Element>"u"?!1:n instanceof Element,isPropAbsent=n=>isNil(n),isStringNumber=n=>isString$2(n)?!Number.isNaN(Number(n)):!1,isWindow=n=>n===window;class ElementPlusError extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function throwError$1(n,t){throw new ElementPlusError(`[${n}] ${t}`)}function debugWarn(n,t){}const initial={current:0},zIndex=ref(0),defaultInitialZIndex=2e3,ZINDEX_INJECTION_KEY=Symbol("elZIndexContextKey"),zIndexContextKey=Symbol("zIndexContextKey"),useZIndex=n=>{const t=getCurrentInstance()?inject(ZINDEX_INJECTION_KEY,initial):initial,r=n||(getCurrentInstance()?inject(zIndexContextKey,void 0):void 0),i=computed(()=>{const V=unref(r);return isNumber$2(V)?V:defaultInitialZIndex}),g=computed(()=>i.value+zIndex.value),$=()=>(t.current++,zIndex.value=t.current,g.value);return!isClient&&inject(ZINDEX_INJECTION_KEY),{initialZIndex:i,currentZIndex:g,nextZIndex:$}};var English={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the 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",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"},mention:{loading:"Loading"},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",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},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"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const buildTranslator=n=>(t,r)=>translate$1(t,r,unref(n)),translate$1=(n,t,r)=>get$1(r,n,n).replace(/\{(\w+)\}/g,(i,g)=>{var $;return`${($=t==null?void 0:t[g])!=null?$:`{${g}}`}`}),buildLocaleContext=n=>{const t=computed(()=>unref(n).name),r=isRef(n)?n:ref(n);return{lang:t,locale:r,t:buildTranslator(n)}},localeContextKey=Symbol("localeContextKey"),useLocale=n=>{const t=n||inject(localeContextKey,ref());return buildLocaleContext(computed(()=>t.value||English))},epPropKey="__epPropKey",definePropType=n=>n,isEpProp=n=>isObject$6(n)&&!!n[epPropKey],buildProp=(n,t)=>{if(!isObject$6(n)||isEpProp(n))return n;const{values:r,required:i,default:g,type:$,validator:V}=n,ie={type:$,required:!!i,validator:r||V?ae=>{let oe=!1,le=[];if(r&&(le=Array.from(r),hasOwn$1(n,"default")&&le.push(g),oe||(oe=le.includes(ae))),V&&(oe||(oe=V(ae))),!oe&&le.length>0){const ue=[...new Set(le)].map(de=>JSON.stringify(de)).join(", ");warn$2(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${ue}], got value ${JSON.stringify(ae)}.`)}return oe}:void 0,[epPropKey]:!0};return hasOwn$1(n,"default")&&(ie.default=g),ie},buildProps=n=>fromPairs(Object.entries(n).map(([t,r])=>[t,buildProp(r,t)])),componentSizes=["","default","small","large"],useSizeProp=buildProp({type:String,values:componentSizes,required:!1}),SIZE_INJECTION_KEY=Symbol("size"),useGlobalSize=()=>{const n=inject(SIZE_INJECTION_KEY,{});return computed(()=>unref(n.size)||"")},emptyValuesContextKey=Symbol("emptyValuesContextKey"),DEFAULT_EMPTY_VALUES=["",void 0,null],DEFAULT_VALUE_ON_CLEAR=void 0,useEmptyValuesProps=buildProps({emptyValues:Array,valueOnClear:{type:definePropType([String,Number,Boolean,Function]),default:void 0,validator:n=>(n=isFunction$4(n)?n():n,isArray$5(n)?n.every(t=>!t):!n)}}),useEmptyValues=(n,t)=>{const r=getCurrentInstance()?inject(emptyValuesContextKey,ref({})):ref({}),i=computed(()=>n.emptyValues||r.value.emptyValues||DEFAULT_EMPTY_VALUES),g=computed(()=>isFunction$4(n.valueOnClear)?n.valueOnClear():n.valueOnClear!==void 0?n.valueOnClear:isFunction$4(r.value.valueOnClear)?r.value.valueOnClear():r.value.valueOnClear!==void 0?r.value.valueOnClear:t!==void 0?t:DEFAULT_VALUE_ON_CLEAR),$=V=>{let re=!0;return isArray$5(V)?re=i.value.some(ie=>isEqual$1(V,ie)):re=i.value.includes(V),re};return $(g.value),{emptyValues:i,valueOnClear:g,isEmptyValue:$}},keysOf=n=>Object.keys(n),entriesOf=n=>Object.entries(n),getProp=(n,t,r)=>({get value(){return get$1(n,t,r)},set value(i){set$1(n,t,i)}}),globalConfig=ref();function useGlobalConfig(n,t=void 0){const r=getCurrentInstance()?inject(configProviderContextKey,globalConfig):globalConfig;return n?computed(()=>{var i,g;return(g=(i=r.value)==null?void 0:i[n])!=null?g:t}):r}function useGlobalComponentSettings(n,t){const r=useGlobalConfig(),i=useNamespace(n,computed(()=>{var re;return((re=r.value)==null?void 0:re.namespace)||defaultNamespace})),g=useLocale(computed(()=>{var re;return(re=r.value)==null?void 0:re.locale})),$=useZIndex(computed(()=>{var re;return((re=r.value)==null?void 0:re.zIndex)||defaultInitialZIndex})),V=computed(()=>{var re;return unref(t)||((re=r.value)==null?void 0:re.size)||""});return provideGlobalConfig(computed(()=>unref(r)||{})),{ns:i,locale:g,zIndex:$,size:V}}const provideGlobalConfig=(n,t,r=!1)=>{var i;const g=!!getCurrentInstance(),$=g?useGlobalConfig():void 0,V=(i=t==null?void 0:t.provide)!=null?i:g?provide:void 0;if(!V)return;const re=computed(()=>{const ie=unref(n);return $!=null&&$.value?mergeConfig$1($.value,ie):ie});return V(configProviderContextKey,re),V(localeContextKey,computed(()=>re.value.locale)),V(namespaceContextKey,computed(()=>re.value.namespace)),V(zIndexContextKey,computed(()=>re.value.zIndex)),V(SIZE_INJECTION_KEY,{size:computed(()=>re.value.size||"")}),V(emptyValuesContextKey,computed(()=>({emptyValues:re.value.emptyValues,valueOnClear:re.value.valueOnClear}))),(r||!globalConfig.value)&&(globalConfig.value=re.value),re},mergeConfig$1=(n,t)=>{const r=[...new Set([...keysOf(n),...keysOf(t)])],i={};for(const g of r)i[g]=t[g]!==void 0?t[g]:n[g];return i},makeInstaller=(n=[])=>({version,install:(r,i)=>{r[INSTALLED_KEY]||(r[INSTALLED_KEY]=!0,n.forEach(g=>r.use(g)),i&&provideGlobalConfig(i,r,!0))}}),teleportProps=buildProps({to:{type:definePropType([String,Object]),required:!0},disabled:Boolean});var _export_sfc=(n,t)=>{const r=n.__vccOpts||n;for(const[i,g]of t)r[i]=g;return r};const _sfc_main$30=defineComponent({__name:"teleport",props:teleportProps,setup(n){return(t,r)=>t.disabled?renderSlot(t.$slots,"default",{key:0}):(openBlock(),createBlock(Teleport$1,{key:1,to:t.to},[renderSlot(t.$slots,"default")],8,["to"]))}});var Teleport=_export_sfc(_sfc_main$30,[["__file","/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);const withInstall=(n,t)=>{if(n.install=r=>{for(const i of[n,...Object.values(t??{})])r.component(i.name,i)},t)for(const[r,i]of Object.entries(t))n[r]=i;return n},withInstallFunction=(n,t)=>(n.install=r=>{n._context=r._context,r.config.globalProperties[t]=n},n),withInstallDirective=(n,t)=>(n.install=r=>{r.directive(t,n)},n),withNoopInstall=n=>(n.install=NOOP,n),ElTeleport=withInstall(Teleport),UPDATE_MODEL_EVENT="update:modelValue",CHANGE_EVENT="change",INPUT_EVENT="input",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"},teleported:Boolean,appendTo:{type:teleportProps.to.type,default:"body"}}),affixEmits={scroll:({scrollTop:n,fixed:t})=>isNumber$2(n)&&isBoolean$1(t),[CHANGE_EVENT]:n=>isBoolean$1(n)};function easeInOutCubic(n,t,r,i){const g=r-t;return n/=i/2,n<1?g/2*n*n*n+t:g/2*((n-=2)*n*n+2)+t}const rAF=n=>isClient?window.requestAnimationFrame(n):setTimeout(n,16),cAF=n=>isClient?window.cancelAnimationFrame(n):clearTimeout(n),classNameToArray=(n="")=>n.split(" ").filter(t=>!!t.trim()),hasClass=(n,t)=>{if(!n||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return n.classList.contains(t)},addClass=(n,t)=>{!n||!t.trim()||n.classList.add(...classNameToArray(t))},removeClass=(n,t)=>{!n||!t.trim()||n.classList.remove(...classNameToArray(t))},getStyle$1=(n,t)=>{var r;if(!isClient||!n||!t)return"";let i=camelize(t);i==="float"&&(i="cssFloat");try{const g=n.style[i];if(g)return g;const $=(r=document.defaultView)==null?void 0:r.getComputedStyle(n,"");return $?$[i]:""}catch{return n.style[i]}},setStyle=(n,t,r)=>{if(!(!n||!t))if(isObject$6(t))entriesOf(t).forEach(([i,g])=>setStyle(n,i,g));else{const i=camelize(t);n.style[i]=r}};function addUnit(n,t="px"){if(!n&&n!==0)return"";if(isNumber$2(n)||isStringNumber(n))return`${n}${t}`;if(isString$2(n))return n}const isScroll=(n,t)=>{if(!isClient)return!1;const r={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],i=getStyle$1(n,r);return["scroll","auto","overlay"].some(g=>i.includes(g))},getScrollContainer=(n,t)=>{if(!isClient)return;let r=n;for(;r;){if([window,document,document.documentElement].includes(r))return window;if(isScroll(r,t))return r;r=r.parentNode}return r};let scrollBarWidth;const getScrollBarWidth=n=>{var t;if(!isClient)return 0;if(scrollBarWidth!==void 0)return scrollBarWidth;const r=document.createElement("div");r.className=`${n}-scrollbar__wrap`,r.style.visibility="hidden",r.style.width="100px",r.style.position="absolute",r.style.top="-9999px",document.body.appendChild(r);const i=r.offsetWidth;r.style.overflow="scroll";const g=document.createElement("div");g.style.width="100%",r.appendChild(g);const $=g.offsetWidth;return(t=r.parentNode)==null||t.removeChild(r),scrollBarWidth=i-$,scrollBarWidth};function scrollIntoView(n,t){if(!isClient)return;if(!t){n.scrollTop=0;return}const r=[];let i=t.offsetParent;for(;i!==null&&n!==i&&n.contains(i);)r.push(i),i=i.offsetParent;const g=t.offsetTop+r.reduce((ie,ae)=>ie+ae.offsetTop,0),$=g+t.offsetHeight,V=n.scrollTop,re=V+n.clientHeight;gre&&(n.scrollTop=$-n.clientHeight)}function animateScrollTo(n,t,r,i,g){const $=Date.now();let V;const re=()=>{const ae=Date.now()-$,oe=easeInOutCubic(ae>i?i:ae,t,r,i);isWindow(n)?n.scrollTo(window.pageXOffset,oe):n.scrollTop=oe,ae{V&&cAF(V)}}const getScrollElement=(n,t)=>isWindow(t)?n.ownerDocument.documentElement:t,getScrollTop=n=>isWindow(n)?window.scrollY:n.scrollTop,COMPONENT_NAME$o="ElAffix",_sfc_main$2$=defineComponent({name:COMPONENT_NAME$o,__name:"affix",props:affixProps,emits:affixEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useNamespace("affix"),V=shallowRef(),re=shallowRef(),ie=shallowRef(),{height:ae}=useWindowSize(),{height:oe,width:le,top:ue,bottom:de,left:he,update:pe}=useElementBounding(re,{windowScroll:!1}),_e=useElementBounding(V),Ce=ref(!1),xe=ref(0),Ie=ref(0),Ne=computed(()=>!i.teleported||!Ce.value),Oe=computed(()=>({height:Ce.value?`${oe.value}px`:"",width:Ce.value?`${le.value}px`:""})),$e=computed(()=>{if(!Ce.value)return{};const ze=addUnit(i.offset);return{height:`${oe.value}px`,width:`${le.value}px`,top:i.position==="top"?ze:"",bottom:i.position==="bottom"?ze:"",left:i.teleported?`${he.value}px`:"",transform:Ie.value?`translateY(${Ie.value}px)`:"",zIndex:i.zIndex}}),Ve=()=>{if(!ie.value)return;xe.value=ie.value instanceof Window?document.documentElement.scrollTop:ie.value.scrollTop||0;const{position:ze,target:Pt,offset:qe}=i,Et=qe+oe.value;if(ze==="top")if(Pt){const kt=_e.bottom.value-Et;Ce.value=qe>ue.value&&_e.bottom.value>0,Ie.value=kt<0?kt:0}else Ce.value=qe>ue.value;else if(Pt){const kt=ae.value-_e.top.value-Et;Ce.value=ae.value-qe_e.top.value,Ie.value=kt<0?-kt:0}else Ce.value=ae.value-qe{if(!Ce.value){pe();return}Ce.value=!1,await nextTick(),pe(),Ce.value=!0},Fe=async()=>{pe(),await nextTick(),g("scroll",{scrollTop:xe.value,fixed:Ce.value})};return watch(Ce,ze=>g(CHANGE_EVENT,ze)),onMounted(()=>{var ze;i.target?(V.value=(ze=document.querySelector(i.target))!=null?ze:void 0,V.value||throwError$1(COMPONENT_NAME$o,`Target does not exist: ${i.target}`)):V.value=document.documentElement,ie.value=getScrollContainer(re.value,!0),pe()}),useEventListener(ie,"scroll",Fe),watchEffect(Ve),t({update:Ve,updateRoot:Ue}),(ze,Pt)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:re,class:normalizeClass(unref($).b()),style:normalizeStyle$1(Oe.value)},[createVNode$1(unref(ElTeleport),{disabled:Ne.value,to:ze.appendTo},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass({[unref($).m("fixed")]:Ce.value}),style:normalizeStyle$1($e.value)},[renderSlot(ze.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}});var Affix=_export_sfc(_sfc_main$2$,[["__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}}),_sfc_main$2_=defineComponent({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:iconProps,setup(n){const t=n,r=useNamespace("icon"),i=computed(()=>{const{size:g,color:$}=t,V=addUnit(g);return!V&&!$?{}:{fontSize:V,"--color":$}});return(g,$)=>(openBlock(),createElementBlock("i",mergeProps({class:unref(r).b(),style:i.value},g.$attrs),[renderSlot(g.$slots,"default")],16))}});var Icon=_export_sfc(_sfc_main$2_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const ElIcon=withInstall(Icon);/*! Element Plus Icons Vue v2.3.2 */var _sfc_main$2Z=defineComponent({name:"AddLocation",__name:"add-location",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),createBaseVNode("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),add_location_default=_sfc_main$2Z,_sfc_main2=defineComponent({name:"Aim",__name:"aim",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),createBaseVNode("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),aim_default=_sfc_main2,_sfc_main3=defineComponent({name:"AlarmClock",__name:"alarm-clock",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),createBaseVNode("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),alarm_clock_default=_sfc_main3,_sfc_main4=defineComponent({name:"Apple",__name:"apple",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M599.872 203.776a189.4 189.4 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a427 427 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664m-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688s81.28 34.688 136.96 33.536c56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152"})]))}}),apple_default=_sfc_main4,_sfc_main5=defineComponent({name:"ArrowDownBold",__name:"arrow-down-bold",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"})]))}}),arrow_down_bold_default=_sfc_main5,_sfc_main6=defineComponent({name:"ArrowDown",__name:"arrow-down",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 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.59 30.59 0 0 0-42.752 0z"})]))}}),arrow_down_default=_sfc_main6,_sfc_main7=defineComponent({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"})]))}}),arrow_left_bold_default=_sfc_main7,_sfc_main8=defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),arrow_left_default=_sfc_main8,_sfc_main9=defineComponent({name:"ArrowRightBold",__name:"arrow-right-bold",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"})]))}}),arrow_right_bold_default=_sfc_main9,_sfc_main10=defineComponent({name:"ArrowRight",__name:"arrow-right",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 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"})]))}}),arrow_right_default=_sfc_main10,_sfc_main11=defineComponent({name:"ArrowUpBold",__name:"arrow-up-bold",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"})]))}}),arrow_up_bold_default=_sfc_main11,_sfc_main12=defineComponent({name:"ArrowUp",__name:"arrow-up",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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 0"})]))}}),arrow_up_default=_sfc_main12,_sfc_main13=defineComponent({name:"Avatar",__name:"avatar",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.87 415.87 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),avatar_default=_sfc_main13,_sfc_main14=defineComponent({name:"Back",__name:"back",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),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.312z"})]))}}),back_default=_sfc_main14,_sfc_main15=defineComponent({name:"Baseball",__name:"baseball",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6m45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),createBaseVNode("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896M108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1737 1737 0 0 1-11.392-65.728"})]))}}),baseball_default=_sfc_main15,_sfc_main16=defineComponent({name:"Basketball",__name:"basketball",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M778.752 788.224a382.46 382.46 0 0 0 116.032-245.632 256.51 256.51 0 0 0-241.728-13.952 762.9 762.9 0 0 1 125.696 259.584m-55.04 44.224a699.65 699.65 0 0 0-125.056-269.632 256.13 256.13 0 0 0-56.064 331.968 382.7 382.7 0 0 0 181.12-62.336m-254.08 61.248A320.13 320.13 0 0 1 557.76 513.6a716 716 0 0 0-48.192-48.128 320.13 320.13 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.13 256.13 0 0 0 331.072-56.448 699.65 699.65 0 0 0-268.8-124.352 382.66 382.66 0 0 0-62.272 180.8m106.56-235.84a762.9 762.9 0 0 1 258.688 125.056 256.51 256.51 0 0 0-13.44-241.088A382.46 382.46 0 0 0 235.84 245.248m318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a780 780 0 0 1 66.176 66.112 320.83 320.83 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),basketball_default=_sfc_main16,_sfc_main17=defineComponent({name:"BellFilled",__name:"bell-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.13 320.13 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),bell_filled_default=_sfc_main17,_sfc_main18=defineComponent({name:"Bell",__name:"bell",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),createBaseVNode("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),createBaseVNode("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),bell_default=_sfc_main18,_sfc_main19=defineComponent({name:"Bicycle",__name:"bicycle",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),createBaseVNode("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),createBaseVNode("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),createBaseVNode("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),bicycle_default=_sfc_main19,_sfc_main20=defineComponent({name:"BottomLeft",__name:"bottom-left",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),createBaseVNode("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312z"})]))}}),bottom_left_default=_sfc_main20,_sfc_main21=defineComponent({name:"BottomRight",__name:"bottom-right",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),createBaseVNode("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),bottom_right_default=_sfc_main21,_sfc_main22=defineComponent({name:"Bottom",__name:"bottom",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),bottom_default=_sfc_main22,_sfc_main23=defineComponent({name:"Bowl",__name:"bowl",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M714.432 704a351.74 351.74 0 0 0 148.16-256H161.408a351.74 351.74 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),bowl_default=_sfc_main23,_sfc_main24=defineComponent({name:"Box",__name:"box",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64"}),createBaseVNode("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),createBaseVNode("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),box_default=_sfc_main24,_sfc_main25=defineComponent({name:"Briefcase",__name:"briefcase",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),briefcase_default=_sfc_main25,_sfc_main26=defineComponent({name:"BrushFilled",__name:"brush-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),brush_filled_default=_sfc_main26,_sfc_main27=defineComponent({name:"Brush",__name:"brush",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a664 664 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168"})]))}}),brush_default=_sfc_main27,_sfc_main28=defineComponent({name:"Burger",__name:"burger",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),burger_default=_sfc_main28,_sfc_main29=defineComponent({name:"Calendar",__name:"calendar",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-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 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),calendar_default=_sfc_main29,_sfc_main30=defineComponent({name:"CameraFilled",__name:"camera-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),camera_filled_default=_sfc_main30,_sfc_main31=defineComponent({name:"Camera",__name:"camera",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),camera_default=_sfc_main31,_sfc_main32=defineComponent({name:"CaretBottom",__name:"caret-bottom",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),caret_bottom_default=_sfc_main32,_sfc_main33=defineComponent({name:"CaretLeft",__name:"caret-left",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),caret_left_default=_sfc_main33,_sfc_main34=defineComponent({name:"CaretRight",__name:"caret-right",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),caret_right_default=_sfc_main34,_sfc_main35=defineComponent({name:"CaretTop",__name:"caret-top",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),caret_top_default=_sfc_main35,_sfc_main36=defineComponent({name:"Cellphone",__name:"cellphone",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),cellphone_default=_sfc_main36,_sfc_main37=defineComponent({name:"ChatDotRound",__name:"chat-dot-round",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),createBaseVNode("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),chat_dot_round_default=_sfc_main37,_sfc_main38=defineComponent({name:"ChatDotSquare",__name:"chat-dot-square",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),createBaseVNode("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),chat_dot_square_default=_sfc_main38,_sfc_main39=defineComponent({name:"ChatLineRound",__name:"chat-line-round",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),createBaseVNode("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),chat_line_round_default=_sfc_main39,_sfc_main40=defineComponent({name:"ChatLineSquare",__name:"chat-line-square",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),createBaseVNode("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),chat_line_square_default=_sfc_main40,_sfc_main41=defineComponent({name:"ChatRound",__name:"chat-round",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),chat_round_default=_sfc_main41,_sfc_main42=defineComponent({name:"ChatSquare",__name:"chat-square",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),chat_square_default=_sfc_main42,_sfc_main43=defineComponent({name:"Check",__name:"check",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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"})]))}}),check_default=_sfc_main43,_sfc_main44=defineComponent({name:"Checked",__name:"checked",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),checked_default=_sfc_main44,_sfc_main45=defineComponent({name:"Cherry",__name:"cherry",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6M288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),cherry_default=_sfc_main45,_sfc_main46=defineComponent({name:"Chicken",__name:"chicken",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.7 106.7 0 0 1-26.176-19.072 106.7 106.7 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112m57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52z"})]))}}),chicken_default=_sfc_main46,_sfc_main47=defineComponent({name:"ChromeFilled",__name:"chrome-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.37 212.37 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67"}),createBaseVNode("path",{fill:"currentColor",d:"M576.79 401.63a127.9 127.9 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128 128 0 0 0-2.16 127.44l1.24 2.13a127.9 127.9 0 0 0 46.36 46.61 127.9 127.9 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.98 127.98 0 0 0 .29-127.46 127.96 127.96 0 0 0-46.36-46.91"}),createBaseVNode("path",{fill:"currentColor",d:"M394.45 333.96A213.34 213.34 0 0 1 512 298.67h369.58A426.5 426.5 0 0 0 512 85.34a425.6 425.6 0 0 0-171.74 35.98 425.6 425.6 0 0 0-142.62 102.22l118.14 204.63a213.4 213.4 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.3 213.3 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.3 213.3 0 0 1-122.77-21.91"})]))}}),chrome_filled_default=_sfc_main47,_sfc_main48=defineComponent({name:"CircleCheckFilled",__name:"circle-check-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),circle_check_filled_default=_sfc_main48,_sfc_main49=defineComponent({name:"CircleCheck",__name:"circle-check",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),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.752z"})]))}}),circle_check_default=_sfc_main49,_sfc_main50=defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 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.336z"})]))}}),circle_close_filled_default=_sfc_main50,_sfc_main51=defineComponent({name:"CircleClose",__name:"circle-close",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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.248z"}),createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),circle_close_default=_sfc_main51,_sfc_main52=defineComponent({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0z"})]))}}),circle_plus_filled_default=_sfc_main52,_sfc_main53=defineComponent({name:"CirclePlus",__name:"circle-plus",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),createBaseVNode("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),circle_plus_default=_sfc_main53,_sfc_main54=defineComponent({name:"Clock",__name:"clock",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),createBaseVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),clock_default=_sfc_main54,_sfc_main55=defineComponent({name:"CloseBold",__name:"close-bold",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"})]))}}),close_bold_default=_sfc_main55,_sfc_main56=defineComponent({name:"Close",__name:"close",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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"})]))}}),close_default=_sfc_main56,_sfc_main57=defineComponent({name:"Cloudy",__name:"cloudy",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),cloudy_default=_sfc_main57,_sfc_main58=defineComponent({name:"CoffeeCup",__name:"coffee-cup",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.13 256.13 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),coffee_cup_default=_sfc_main58,_sfc_main59=defineComponent({name:"Coffee",__name:"coffee",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64zm68.736 64 36.544 512H708.16l36.544-512z"})]))}}),coffee_default=_sfc_main59,_sfc_main60=defineComponent({name:"Coin",__name:"coin",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264"}),createBaseVNode("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264"}),createBaseVNode("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),coin_default=_sfc_main60,_sfc_main61=defineComponent({name:"ColdDrink",__name:"cold-drink",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.06 192.06 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),cold_drink_default=_sfc_main61,_sfc_main62=defineComponent({name:"CollectionTag",__name:"collection-tag",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),collection_tag_default=_sfc_main62,_sfc_main63=defineComponent({name:"Collection",__name:"collection",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),createBaseVNode("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),collection_default=_sfc_main63,_sfc_main64=defineComponent({name:"Comment",__name:"comment",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),comment_default=_sfc_main64,_sfc_main65=defineComponent({name:"Compass",__name:"compass",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),createBaseVNode("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),compass_default=_sfc_main65,_sfc_main66=defineComponent({name:"Connection",__name:"connection",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),createBaseVNode("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),connection_default=_sfc_main66,_sfc_main67=defineComponent({name:"Coordinate",__name:"coordinate",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),createBaseVNode("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),coordinate_default=_sfc_main67,_sfc_main68=defineComponent({name:"CopyDocument",__name:"copy-document",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),createBaseVNode("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),copy_document_default=_sfc_main68,_sfc_main69=defineComponent({name:"Cpu",__name:"cpu",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),createBaseVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),cpu_default=_sfc_main69,_sfc_main70=defineComponent({name:"CreditCard",__name:"credit-card",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.35 52.35 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.35 52.35 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.35 52.35 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.35 52.35 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448S852.928 864 795.968 864H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.3 116.3 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448s41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384s17.088 41.6 17.088 98.56z"}),createBaseVNode("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),credit_card_default=_sfc_main70,_sfc_main71=defineComponent({name:"Crop",__name:"crop",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),createBaseVNode("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),crop_default=_sfc_main71,_sfc_main72=defineComponent({name:"DArrowLeft",__name:"d-arrow-left",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 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.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 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.672z"})]))}}),d_arrow_left_default=_sfc_main72,_sfc_main73=defineComponent({name:"DArrowRight",__name:"d-arrow-right",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-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.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),d_arrow_right_default=_sfc_main73,_sfc_main74=defineComponent({name:"DCaret",__name:"d-caret",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),d_caret_default=_sfc_main74,_sfc_main75=defineComponent({name:"DataAnalysis",__name:"data-analysis",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),data_analysis_default=_sfc_main75,_sfc_main76=defineComponent({name:"DataBoard",__name:"data-board",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),createBaseVNode("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),createBaseVNode("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),data_board_default=_sfc_main76,_sfc_main77=defineComponent({name:"DataLine",__name:"data-line",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),data_line_default=_sfc_main77,_sfc_main78=defineComponent({name:"DeleteFilled",__name:"delete-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),delete_filled_default=_sfc_main78,_sfc_main79=defineComponent({name:"DeleteLocation",__name:"delete-location",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),createBaseVNode("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),delete_location_default=_sfc_main79,_sfc_main80=defineComponent({name:"Delete",__name:"delete",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),delete_default=_sfc_main80,_sfc_main81=defineComponent({name:"Dessert",__name:"dessert",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.81 143.81 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.81 143.81 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),dessert_default=_sfc_main81,_sfc_main82=defineComponent({name:"Discount",__name:"discount",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),createBaseVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),discount_default=_sfc_main82,_sfc_main83=defineComponent({name:"DishDot",__name:"dish-dot",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.19 448.19 0 0 1 955.392 768H68.544A448.19 448.19 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),dish_dot_default=_sfc_main83,_sfc_main84=defineComponent({name:"Dish",__name:"dish",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),dish_default=_sfc_main84,_sfc_main85=defineComponent({name:"DocumentAdd",__name:"document-add",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),document_add_default=_sfc_main85,_sfc_main86=defineComponent({name:"DocumentChecked",__name:"document-checked",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),document_checked_default=_sfc_main86,_sfc_main87=defineComponent({name:"DocumentCopy",__name:"document-copy",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),document_copy_default=_sfc_main87,_sfc_main88=defineComponent({name:"DocumentDelete",__name:"document-delete",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248z"})]))}}),document_delete_default=_sfc_main88,_sfc_main89=defineComponent({name:"DocumentRemove",__name:"document-remove",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),document_remove_default=_sfc_main89,_sfc_main90=defineComponent({name:"Document",__name:"document",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),document_default=_sfc_main90,_sfc_main91=defineComponent({name:"Download",__name:"download",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),download_default=_sfc_main91,_sfc_main92=defineComponent({name:"Drizzling",__name:"drizzling",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),drizzling_default=_sfc_main92,_sfc_main93=defineComponent({name:"EditPen",__name:"edit-pen",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}}),edit_pen_default=_sfc_main93,_sfc_main94=defineComponent({name:"Edit",__name:"edit",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),createBaseVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),edit_default=_sfc_main94,_sfc_main95=defineComponent({name:"ElemeFilled",__name:"eleme-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.69 330.69 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.55 47.55 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.3 234.3 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.55 47.55 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),eleme_filled_default=_sfc_main95,_sfc_main96=defineComponent({name:"Eleme",__name:"eleme",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24m526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.23 63.23 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8z"})]))}}),eleme_default=_sfc_main96,_sfc_main97=defineComponent({name:"ElementPlus",__name:"element-plus",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6q19.2-7.65 38.4 0s279 161.3 309.8 179.2c17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64z"})]))}}),element_plus_default=_sfc_main97,_sfc_main98=defineComponent({name:"Expand",__name:"expand",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),expand_default=_sfc_main98,_sfc_main99=defineComponent({name:"Failed",__name:"failed",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),failed_default=_sfc_main99,_sfc_main100=defineComponent({name:"Female",__name:"female",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),createBaseVNode("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),female_default=_sfc_main100,_sfc_main101=defineComponent({name:"Files",__name:"files",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),files_default=_sfc_main101,_sfc_main102=defineComponent({name:"Film",__name:"film",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),film_default=_sfc_main102,_sfc_main103=defineComponent({name:"Filter",__name:"filter",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),filter_default=_sfc_main103,_sfc_main104=defineComponent({name:"Finished",__name:"finished",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),finished_default=_sfc_main104,_sfc_main105=defineComponent({name:"FirstAidKit",__name:"first-aid-kit",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),createBaseVNode("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),first_aid_kit_default=_sfc_main105,_sfc_main106=defineComponent({name:"Flag",__name:"flag",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),flag_default=_sfc_main106,_sfc_main107=defineComponent({name:"Fold",__name:"fold",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),fold_default=_sfc_main107,_sfc_main108=defineComponent({name:"FolderAdd",__name:"folder-add",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),folder_add_default=_sfc_main108,_sfc_main109=defineComponent({name:"FolderChecked",__name:"folder-checked",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),folder_checked_default=_sfc_main109,_sfc_main110=defineComponent({name:"FolderDelete",__name:"folder-delete",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),folder_delete_default=_sfc_main110,_sfc_main111=defineComponent({name:"FolderOpened",__name:"folder-opened",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),folder_opened_default=_sfc_main111,_sfc_main112=defineComponent({name:"FolderRemove",__name:"folder-remove",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),folder_remove_default=_sfc_main112,_sfc_main113=defineComponent({name:"Folder",__name:"folder",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),folder_default=_sfc_main113,_sfc_main114=defineComponent({name:"Food",__name:"food",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),food_default=_sfc_main114,_sfc_main115=defineComponent({name:"Football",__name:"football",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),createBaseVNode("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a386 386 0 0 1-80.448-91.648m653.696-5.312a385.9 385.9 0 0 1-83.776 96.96l-32.512-56.384a322.9 322.9 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184M465.984 445.248l11.136-63.104a323.6 323.6 0 0 0 69.76 0l11.136 63.104a388 388 0 0 1-92.032 0m-62.72-12.8A381.8 381.8 0 0 1 320 396.544l32-55.424a320 320 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.8 381.8 0 0 1-83.328 35.84l-11.2-63.552A320 320 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.9 385.9 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072m657.536.128a1443 1443 0 0 1-49.024 43.072 321.4 321.4 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408M465.92 578.752a388 388 0 0 1 92.032 0l-11.136 63.104a323.6 323.6 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a320 320 0 0 0-62.464 27.712L320 627.392a381.8 381.8 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.3 318.3 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),football_default=_sfc_main115,_sfc_main116=defineComponent({name:"ForkSpoon",__name:"fork-spoon",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56M672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),fork_spoon_default=_sfc_main116,_sfc_main117=defineComponent({name:"Fries",__name:"fries",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.74 95.74 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128 128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132 132 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),fries_default=_sfc_main117,_sfc_main118=defineComponent({name:"FullScreen",__name:"full-screen",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),full_screen_default=_sfc_main118,_sfc_main119=defineComponent({name:"GobletFull",__name:"goblet-full",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),goblet_full_default=_sfc_main119,_sfc_main120=defineComponent({name:"GobletSquareFull",__name:"goblet-square-full",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952 952 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),goblet_square_full_default=_sfc_main120,_sfc_main121=defineComponent({name:"GobletSquare",__name:"goblet-square",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),goblet_square_default=_sfc_main121,_sfc_main122=defineComponent({name:"Goblet",__name:"goblet",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),goblet_default=_sfc_main122,_sfc_main123=defineComponent({name:"GoldMedal",__name:"gold-medal",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16M640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a360 360 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98"}),createBaseVNode("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),gold_medal_default=_sfc_main123,_sfc_main124=defineComponent({name:"GoodsFilled",__name:"goods-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),goods_filled_default=_sfc_main124,_sfc_main125=defineComponent({name:"Goods",__name:"goods",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),goods_default=_sfc_main125,_sfc_main126=defineComponent({name:"Grape",__name:"grape",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),grape_default=_sfc_main126,_sfc_main127=defineComponent({name:"Grid",__name:"grid",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),grid_default=_sfc_main127,_sfc_main128=defineComponent({name:"Guide",__name:"guide",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),createBaseVNode("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),guide_default=_sfc_main128,_sfc_main129=defineComponent({name:"Handbag",__name:"handbag",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),handbag_default=_sfc_main129,_sfc_main130=defineComponent({name:"Headset",__name:"headset",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),headset_default=_sfc_main130,_sfc_main131=defineComponent({name:"HelpFilled",__name:"help-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M926.784 480H701.312A192.51 192.51 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.51 192.51 0 0 0 701.312 544zM97.28 544h225.472A192.51 192.51 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.51 192.51 0 0 0 322.688 480H97.216z"})]))}}),help_filled_default=_sfc_main131,_sfc_main132=defineComponent({name:"Help",__name:"help",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.9 254.9 0 0 1 512 768a254.9 254.9 0 0 1-156.992-53.76l-90.944 91.008A382.46 382.46 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.46 382.46 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512s-20.096 113.6-53.76 156.992zm-45.312-541.184A382.46 382.46 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.9 254.9 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76zm-541.184 45.312A382.46 382.46 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.9 254.9 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.6 194.6 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.23 191.23 0 0 0-67.968-146.56A191.3 191.3 0 0 0 512 320a191.23 191.23 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.23 191.23 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),help_default=_sfc_main132,_sfc_main133=defineComponent({name:"Hide",__name:"hide",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-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 176S0 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.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 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.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.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.6q-43.2 72-153.6 172.8c-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-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),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 112s-67.2 48-112 48"})]))}}),hide_default=_sfc_main133,_sfc_main134=defineComponent({name:"Histogram",__name:"histogram",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),histogram_default=_sfc_main134,_sfc_main135=defineComponent({name:"HomeFilled",__name:"home-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),home_filled_default=_sfc_main135,_sfc_main136=defineComponent({name:"HotWater",__name:"hot-water",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134M512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133M375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267"})]))}}),hot_water_default=_sfc_main136,_sfc_main137=defineComponent({name:"House",__name:"house",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),house_default=_sfc_main137,_sfc_main138=defineComponent({name:"IceCreamRound",__name:"ice-cream-round",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0"})]))}}),ice_cream_round_default=_sfc_main138,_sfc_main139=defineComponent({name:"IceCreamSquare",__name:"ice-cream-square",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),ice_cream_square_default=_sfc_main139,_sfc_main140=defineComponent({name:"IceCream",__name:"ice-cream",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.13 208.13 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0m351.36 0h286.272a144 144 0 0 0-286.272 0m-294.848 64 271.808 396.608L778.24 512zM511.68 352.64a207.87 207.87 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),ice_cream_default=_sfc_main140,_sfc_main141=defineComponent({name:"IceDrink",__name:"ice-drink",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.13 256.13 0 0 0 512 192.64m-64 8.064A256.45 256.45 0 0 0 264.256 384H448zm64-72.064A320.13 320.13 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.38 320.38 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),ice_drink_default=_sfc_main141,_sfc_main142=defineComponent({name:"IceTea",__name:"ice-tea",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),ice_tea_default=_sfc_main142,_sfc_main143=defineComponent({name:"InfoFilled",__name:"info-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.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.344M590.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.99 12.99 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"})]))}}),info_filled_default=_sfc_main143,_sfc_main144=defineComponent({name:"Iphone",__name:"iphone",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),iphone_default=_sfc_main144,_sfc_main145=defineComponent({name:"Key",__name:"key",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),key_default=_sfc_main145,_sfc_main146=defineComponent({name:"KnifeFork",__name:"knife-fork",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256s32 177.152 32 288z"})]))}}),knife_fork_default=_sfc_main146,_sfc_main147=defineComponent({name:"Lightning",__name:"lightning",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M288 671.36v64.128A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),createBaseVNode("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),lightning_default=_sfc_main147,_sfc_main148=defineComponent({name:"Link",__name:"link",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),link_default=_sfc_main148,_sfc_main149=defineComponent({name:"List",__name:"list",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),list_default=_sfc_main149,_sfc_main150=defineComponent({name:"Loading",__name:"loading",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.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.248m452.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.248M828.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 0m-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 0"})]))}}),loading_default=_sfc_main150,_sfc_main151=defineComponent({name:"LocationFilled",__name:"location-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),location_filled_default=_sfc_main151,_sfc_main152=defineComponent({name:"LocationInformation",__name:"location-information",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),createBaseVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),location_information_default=_sfc_main152,_sfc_main153=defineComponent({name:"Location",__name:"location",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),createBaseVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),location_default=_sfc_main153,_sfc_main154=defineComponent({name:"Lock",__name:"lock",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),createBaseVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),lock_default=_sfc_main154,_sfc_main155=defineComponent({name:"Lollipop",__name:"lollipop",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744m-54.464-36.032a322 322 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),lollipop_default=_sfc_main155,_sfc_main156=defineComponent({name:"MagicStick",__name:"magic-stick",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),magic_stick_default=_sfc_main156,_sfc_main157=defineComponent({name:"Magnet",__name:"magnet",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),magnet_default=_sfc_main157,_sfc_main158=defineComponent({name:"Male",__name:"male",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),createBaseVNode("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),createBaseVNode("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),male_default=_sfc_main158,_sfc_main159=defineComponent({name:"Management",__name:"management",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),management_default=_sfc_main159,_sfc_main160=defineComponent({name:"MapLocation",__name:"map-location",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),createBaseVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),map_location_default=_sfc_main160,_sfc_main161=defineComponent({name:"Medal",__name:"medal",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),createBaseVNode("path",{fill:"currentColor",d:"M576 128H448v200a286.7 286.7 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96s-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),medal_default=_sfc_main161,_sfc_main162=defineComponent({name:"Memo",__name:"memo",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),createBaseVNode("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),createBaseVNode("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),memo_default=_sfc_main162,_sfc_main163=defineComponent({name:"Menu",__name:"menu",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),menu_default=_sfc_main163,_sfc_main164=defineComponent({name:"MessageBox",__name:"message-box",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128"})]))}}),message_box_default=_sfc_main164,_sfc_main165=defineComponent({name:"Message",__name:"message",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),createBaseVNode("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224z"})]))}}),message_default=_sfc_main165,_sfc_main166=defineComponent({name:"Mic",__name:"mic",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),mic_default=_sfc_main166,_sfc_main167=defineComponent({name:"Microphone",__name:"microphone",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),microphone_default=_sfc_main167,_sfc_main168=defineComponent({name:"MilkTea",__name:"milk-tea",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),milk_tea_default=_sfc_main168,_sfc_main169=defineComponent({name:"Minus",__name:"minus",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),minus_default=_sfc_main169,_sfc_main170=defineComponent({name:"Money",__name:"money",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),createBaseVNode("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.06 29.06 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),createBaseVNode("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),money_default=_sfc_main170,_sfc_main171=defineComponent({name:"Monitor",__name:"monitor",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),monitor_default=_sfc_main171,_sfc_main172=defineComponent({name:"MoonNight",__name:"moon-night",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.3 448.3 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),createBaseVNode("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),moon_night_default=_sfc_main172,_sfc_main173=defineComponent({name:"Moon",__name:"moon",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 391 391 0 0 0-17.408 16.384m181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),moon_default=_sfc_main173,_sfc_main174=defineComponent({name:"MoreFilled",__name:"more-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),more_filled_default=_sfc_main174,_sfc_main175=defineComponent({name:"More",__name:"more",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),more_default=_sfc_main175,_sfc_main176=defineComponent({name:"MostlyCloudy",__name:"mostly-cloudy",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.81 207.81 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.81 271.81 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),mostly_cloudy_default=_sfc_main176,_sfc_main177=defineComponent({name:"Mouse",__name:"mouse",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112q-30.144 16.128-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76q16.128 30.144 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112q30.144-16.128 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.46 110.46 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.46 174.46 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.46 174.46 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.46 174.46 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),createBaseVNode("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),mouse_default=_sfc_main177,_sfc_main178=defineComponent({name:"Mug",__name:"mug",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),mug_default=_sfc_main178,_sfc_main179=defineComponent({name:"MuteNotification",__name:"mute-notification",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.13 320.13 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.55 319.55 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),createBaseVNode("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),mute_notification_default=_sfc_main179,_sfc_main180=defineComponent({name:"Mute",__name:"mute",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.23 191.23 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A223 223 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.98 286.98 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),createBaseVNode("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),mute_default=_sfc_main180,_sfc_main181=defineComponent({name:"NoSmoking",__name:"no-smoking",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),no_smoking_default=_sfc_main181,_sfc_main182=defineComponent({name:"Notebook",__name:"notebook",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),notebook_default=_sfc_main182,_sfc_main183=defineComponent({name:"Notification",__name:"notification",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),createBaseVNode("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),notification_default=_sfc_main183,_sfc_main184=defineComponent({name:"Odometer",__name:"odometer",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),createBaseVNode("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),createBaseVNode("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),odometer_default=_sfc_main184,_sfc_main185=defineComponent({name:"OfficeBuilding",__name:"office-building",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),createBaseVNode("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),office_building_default=_sfc_main185,_sfc_main186=defineComponent({name:"Open",__name:"open",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),createBaseVNode("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),open_default=_sfc_main186,_sfc_main187=defineComponent({name:"Operation",__name:"operation",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),operation_default=_sfc_main187,_sfc_main188=defineComponent({name:"Opportunity",__name:"opportunity",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.66 350.66 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.55 351.55 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),opportunity_default=_sfc_main188,_sfc_main189=defineComponent({name:"Orange",__name:"orange",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M544 894.72a382.34 382.34 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.34 382.34 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024zM894.656 480a382.34 382.34 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024zm-134.72-261.248A382.34 382.34 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.34 382.34 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.34 382.34 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.34 382.34 0 0 0 89.408 215.936l182.976-182.912A127.2 127.2 0 0 1 388.032 544zm134.72 261.248A382.34 382.34 0 0 0 480 894.656V635.968a127.2 127.2 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),orange_default=_sfc_main189,_sfc_main190=defineComponent({name:"Paperclip",__name:"paperclip",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744z"})]))}}),paperclip_default=_sfc_main190,_sfc_main191=defineComponent({name:"PartlyCloudy",__name:"partly-cloudy",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),createBaseVNode("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6004 6004 0 0 0-49.28 41.408"})]))}}),partly_cloudy_default=_sfc_main191,_sfc_main192=defineComponent({name:"Pear",__name:"pear",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M542.336 258.816a443 443 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.69 162.69 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.69 162.69 0 0 0-130.112-133.12m-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a317 317 0 0 0-9.792 15.104 226.69 226.69 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),pear_default=_sfc_main192,_sfc_main193=defineComponent({name:"PhoneFilled",__name:"phone-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048"})]))}}),phone_filled_default=_sfc_main193,_sfc_main194=defineComponent({name:"Phone",__name:"phone",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),phone_default=_sfc_main194,_sfc_main195=defineComponent({name:"PictureFilled",__name:"picture-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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 32zm315.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.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),picture_filled_default=_sfc_main195,_sfc_main196=defineComponent({name:"PictureRounded",__name:"picture-rounded",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),createBaseVNode("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64-64-64 64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),picture_rounded_default=_sfc_main196,_sfc_main197=defineComponent({name:"Picture",__name:"picture",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),picture_default=_sfc_main197,_sfc_main198=defineComponent({name:"PieChart",__name:"pie-chart",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.13 384.13 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.13 448.13 0 0 1 448 68.48"}),createBaseVNode("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28M512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),pie_chart_default=_sfc_main198,_sfc_main199=defineComponent({name:"Place",__name:"place",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),createBaseVNode("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),place_default=_sfc_main199,_sfc_main200=defineComponent({name:"Platform",__name:"platform",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),platform_default=_sfc_main200,_sfc_main201=defineComponent({name:"Plus",__name:"plus",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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-64z"})]))}}),plus_default=_sfc_main201,_sfc_main202=defineComponent({name:"Pointer",__name:"pointer",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.27 94.27 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.27 158.27 0 0 1 185.984 8.32z"})]))}}),pointer_default=_sfc_main202,_sfc_main203=defineComponent({name:"Position",__name:"position",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992z"})]))}}),position_default=_sfc_main203,_sfc_main204=defineComponent({name:"Postcard",__name:"postcard",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),createBaseVNode("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),postcard_default=_sfc_main204,_sfc_main205=defineComponent({name:"Pouring",__name:"pouring",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),pouring_default=_sfc_main205,_sfc_main206=defineComponent({name:"Present",__name:"present",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),createBaseVNode("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),createBaseVNode("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),present_default=_sfc_main206,_sfc_main207=defineComponent({name:"PriceTag",__name:"price-tag",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),createBaseVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),price_tag_default=_sfc_main207,_sfc_main208=defineComponent({name:"Printer",__name:"printer",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.3 23.3 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.3 23.3 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),printer_default=_sfc_main208,_sfc_main209=defineComponent({name:"Promotion",__name:"promotion",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),promotion_default=_sfc_main209,_sfc_main210=defineComponent({name:"QuartzWatch",__name:"quartz-watch",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51q-13.005.48-22.5 10.02c-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01s-3.66-16.16-10.02-22.5c-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01q5.025 17.985 22.5 22.5m242.94 0q17.505-4.545 22.02-22.02c3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5q-9.54 9.51-10.02 22.5c-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),createBaseVNode("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),createBaseVNode("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),quartz_watch_default=_sfc_main210,_sfc_main211=defineComponent({name:"QuestionFilled",__name:"question-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.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.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 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.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),question_filled_default=_sfc_main211,_sfc_main212=defineComponent({name:"Rank",__name:"rank",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544z"})]))}}),rank_default=_sfc_main212,_sfc_main213=defineComponent({name:"ReadingLamp",__name:"reading-lamp",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),createBaseVNode("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),reading_lamp_default=_sfc_main213,_sfc_main214=defineComponent({name:"Reading",__name:"reading",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36"}),createBaseVNode("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),reading_default=_sfc_main214,_sfc_main215=defineComponent({name:"RefreshLeft",__name:"refresh-left",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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"})]))}}),refresh_left_default=_sfc_main215,_sfc_main216=defineComponent({name:"RefreshRight",__name:"refresh-right",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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.88"})]))}}),refresh_right_default=_sfc_main216,_sfc_main217=defineComponent({name:"Refresh",__name:"refresh",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),refresh_default=_sfc_main217,_sfc_main218=defineComponent({name:"Refrigerator",__name:"refrigerator",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),refrigerator_default=_sfc_main218,_sfc_main219=defineComponent({name:"RemoveFilled",__name:"remove-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),remove_filled_default=_sfc_main219,_sfc_main220=defineComponent({name:"Remove",__name:"remove",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),remove_default=_sfc_main220,_sfc_main221=defineComponent({name:"Right",__name:"right",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),right_default=_sfc_main221,_sfc_main222=defineComponent({name:"ScaleToOriginal",__name:"scale-to-original",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),scale_to_original_default=_sfc_main222,_sfc_main223=defineComponent({name:"School",__name:"school",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),createBaseVNode("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),school_default=_sfc_main223,_sfc_main224=defineComponent({name:"Scissor",__name:"scissor",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),scissor_default=_sfc_main224,_sfc_main225=defineComponent({name:"Search",__name:"search",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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 704"})]))}}),search_default=_sfc_main225,_sfc_main226=defineComponent({name:"Select",__name:"select",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496"})]))}}),select_default=_sfc_main226,_sfc_main227=defineComponent({name:"Sell",__name:"sell",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248"})]))}}),sell_default=_sfc_main227,_sfc_main228=defineComponent({name:"SemiSelect",__name:"semi-select",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),semi_select_default=_sfc_main228,_sfc_main229=defineComponent({name:"Service",__name:"service",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.06 192.06 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193 193 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),service_default=_sfc_main229,_sfc_main230=defineComponent({name:"SetUp",__name:"set-up",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),createBaseVNode("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),createBaseVNode("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),createBaseVNode("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),set_up_default=_sfc_main230,_sfc_main231=defineComponent({name:"Setting",__name:"setting",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),setting_default=_sfc_main231,_sfc_main232=defineComponent({name:"Share",__name:"share",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.8 127.8 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),share_default=_sfc_main232,_sfc_main233=defineComponent({name:"Ship",__name:"ship",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2z"})]))}}),ship_default=_sfc_main233,_sfc_main234=defineComponent({name:"Shop",__name:"shop",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),shop_default=_sfc_main234,_sfc_main235=defineComponent({name:"ShoppingBag",__name:"shopping-bag",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),createBaseVNode("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),shopping_bag_default=_sfc_main235,_sfc_main236=defineComponent({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"}),createBaseVNode("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648z"})]))}}),shopping_cart_full_default=_sfc_main236,_sfc_main237=defineComponent({name:"ShoppingCart",__name:"shopping-cart",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"})]))}}),shopping_cart_default=_sfc_main237,_sfc_main238=defineComponent({name:"ShoppingTrolley",__name:"shopping-trolley",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),shopping_trolley_default=_sfc_main238,_sfc_main239=defineComponent({name:"Smoking",__name:"smoking",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),smoking_default=_sfc_main239,_sfc_main240=defineComponent({name:"Soccer",__name:"soccer",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.06 573.06 0 0 0 224.832-137.216 573.1 573.1 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.7 567.7 0 0 0 170.432 532.48zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944s-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248z"})]))}}),soccer_default=_sfc_main240,_sfc_main241=defineComponent({name:"SoldOut",__name:"sold-out",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),sold_out_default=_sfc_main241,_sfc_main242=defineComponent({name:"SortDown",__name:"sort-down",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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 0"})]))}}),sort_down_default=_sfc_main242,_sfc_main243=defineComponent({name:"SortUp",__name:"sort-up",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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.248"})]))}}),sort_up_default=_sfc_main243,_sfc_main244=defineComponent({name:"Sort",__name:"sort",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0z"})]))}}),sort_default=_sfc_main244,_sfc_main245=defineComponent({name:"Stamp",__name:"stamp",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),stamp_default=_sfc_main245,_sfc_main246=defineComponent({name:"StarFilled",__name:"star-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.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"})]))}}),star_filled_default=_sfc_main246,_sfc_main247=defineComponent({name:"Star",__name:"star",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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.72zM313.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"})]))}}),star_default=_sfc_main247,_sfc_main248=defineComponent({name:"Stopwatch",__name:"stopwatch",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),createBaseVNode("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),stopwatch_default=_sfc_main248,_sfc_main249=defineComponent({name:"SuccessFilled",__name:"success-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),success_filled_default=_sfc_main249,_sfc_main250=defineComponent({name:"Sugar",__name:"sugar",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16zm-548.8 198.72h447.168v2.24l60.8-60.8a63.8 63.8 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64 64 0 0 0-10.24 13.248zm0 64q4.128 7.104 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),sugar_default=_sfc_main250,_sfc_main251=defineComponent({name:"SuitcaseLine",__name:"suitcase-line",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5S64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),suitcase_line_default=_sfc_main251,_sfc_main252=defineComponent({name:"Suitcase",__name:"suitcase",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),createBaseVNode("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),suitcase_default=_sfc_main252,_sfc_main253=defineComponent({name:"Sunny",__name:"sunny",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0m543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),sunny_default=_sfc_main253,_sfc_main254=defineComponent({name:"Sunrise",__name:"sunrise",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0m-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),sunrise_default=_sfc_main254,_sfc_main255=defineComponent({name:"Sunset",__name:"sunset",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),sunset_default=_sfc_main255,_sfc_main256=defineComponent({name:"SwitchButton",__name:"switch-button",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128"}),createBaseVNode("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),switch_button_default=_sfc_main256,_sfc_main257=defineComponent({name:"SwitchFilled",__name:"switch-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36"}),createBaseVNode("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.66 196.66 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.7 196.7 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42m-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.7 131.7 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.66 196.66 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.7 196.7 0 0 0 139.08-57.61A196.66 196.66 0 0 0 896 699.31V325.29a196.7 196.7 0 0 0-57.61-139.08m-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82"})]))}}),switch_filled_default=_sfc_main257,_sfc_main258=defineComponent({name:"Switch",__name:"switch",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344M64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),switch_default=_sfc_main258,_sfc_main259=defineComponent({name:"TakeawayBox",__name:"takeaway-box",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),takeaway_box_default=_sfc_main259,_sfc_main260=defineComponent({name:"Ticket",__name:"ticket",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),ticket_default=_sfc_main260,_sfc_main261=defineComponent({name:"Tickets",__name:"tickets",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),tickets_default=_sfc_main261,_sfc_main262=defineComponent({name:"Timer",__name:"timer",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),createBaseVNode("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),timer_default=_sfc_main262,_sfc_main263=defineComponent({name:"ToiletPaper",__name:"toilet-paper",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),createBaseVNode("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),toilet_paper_default=_sfc_main263,_sfc_main264=defineComponent({name:"Tools",__name:"tools",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),tools_default=_sfc_main264,_sfc_main265=defineComponent({name:"TopLeft",__name:"top-left",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),createBaseVNode("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312z"})]))}}),top_left_default=_sfc_main265,_sfc_main266=defineComponent({name:"TopRight",__name:"top-right",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),createBaseVNode("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312z"})]))}}),top_right_default=_sfc_main266,_sfc_main267=defineComponent({name:"Top",__name:"top",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),top_default=_sfc_main267,_sfc_main268=defineComponent({name:"TrendCharts",__name:"trend-charts",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),trend_charts_default=_sfc_main268,_sfc_main269=defineComponent({name:"TrophyBase",__name:"trophy-base",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4S745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6S256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6S96 217.6 96 224c3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6S352 790.4 352 800s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4M256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6S320 438.4 320 384V128h384v256q0 81.6-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2M768 896H256c-9.6 0-16 3.2-22.4 9.6S224 918.4 224 928s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6"})]))}}),trophy_base_default=_sfc_main269,_sfc_main270=defineComponent({name:"Trophy",__name:"trophy",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M480 896V702.08A256.26 256.26 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.26 256.26 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),trophy_default=_sfc_main270,_sfc_main271=defineComponent({name:"TurnOff",__name:"turn-off",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),createBaseVNode("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),turn_off_default=_sfc_main271,_sfc_main272=defineComponent({name:"Umbrella",__name:"umbrella",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),umbrella_default=_sfc_main272,_sfc_main273=defineComponent({name:"Unlock",__name:"unlock",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),createBaseVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),unlock_default=_sfc_main273,_sfc_main274=defineComponent({name:"UploadFilled",__name:"upload-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),upload_filled_default=_sfc_main274,_sfc_main275=defineComponent({name:"Upload",__name:"upload",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),upload_default=_sfc_main275,_sfc_main276=defineComponent({name:"UserFilled",__name:"user-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),user_filled_default=_sfc_main276,_sfc_main277=defineComponent({name:"User",__name:"user",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),user_default=_sfc_main277,_sfc_main278=defineComponent({name:"Van",__name:"van",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),van_default=_sfc_main278,_sfc_main279=defineComponent({name:"VideoCameraFilled",__name:"video-camera-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),video_camera_filled_default=_sfc_main279,_sfc_main280=defineComponent({name:"VideoCamera",__name:"video-camera",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),video_camera_default=_sfc_main280,_sfc_main281=defineComponent({name:"VideoPause",__name:"video-pause",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),video_pause_default=_sfc_main281,_sfc_main282=defineComponent({name:"VideoPlay",__name:"video-play",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),video_play_default=_sfc_main282,_sfc_main283=defineComponent({name:"View",__name:"view",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 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-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),view_default=_sfc_main283,_sfc_main284=defineComponent({name:"WalletFilled",__name:"wallet-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),wallet_filled_default=_sfc_main284,_sfc_main285=defineComponent({name:"Wallet",__name:"wallet",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),createBaseVNode("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),wallet_default=_sfc_main285,_sfc_main286=defineComponent({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49s12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),warn_triangle_filled_default=_sfc_main286,_sfc_main287=defineComponent({name:"WarningFilled",__name:"warning-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),warning_filled_default=_sfc_main287,_sfc_main288=defineComponent({name:"Warning",__name:"warning",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),warning_default=_sfc_main288,_sfc_main289=defineComponent({name:"Watch",__name:"watch",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),createBaseVNode("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),watch_default=_sfc_main289,_sfc_main290=defineComponent({name:"Watermelon",__name:"watermelon",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632z"})]))}}),watermelon_default=_sfc_main290,_sfc_main291=defineComponent({name:"WindPower",__name:"wind-power",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),wind_power_default=_sfc_main291,_sfc_main292=defineComponent({name:"ZoomIn",__name:"zoom-in",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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 704m-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-64z"})]))}}),zoom_in_default=_sfc_main292,_sfc_main293=defineComponent({name:"ZoomOut",__name:"zoom-out",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[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 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),zoom_out_default=_sfc_main293;const ElementPlusIconsVue=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:add_location_default,Aim:aim_default,AlarmClock:alarm_clock_default,Apple:apple_default,ArrowDown:arrow_down_default,ArrowDownBold:arrow_down_bold_default,ArrowLeft:arrow_left_default,ArrowLeftBold:arrow_left_bold_default,ArrowRight:arrow_right_default,ArrowRightBold:arrow_right_bold_default,ArrowUp:arrow_up_default,ArrowUpBold:arrow_up_bold_default,Avatar:avatar_default,Back:back_default,Baseball:baseball_default,Basketball:basketball_default,Bell:bell_default,BellFilled:bell_filled_default,Bicycle:bicycle_default,Bottom:bottom_default,BottomLeft:bottom_left_default,BottomRight:bottom_right_default,Bowl:bowl_default,Box:box_default,Briefcase:briefcase_default,Brush:brush_default,BrushFilled:brush_filled_default,Burger:burger_default,Calendar:calendar_default,Camera:camera_default,CameraFilled:camera_filled_default,CaretBottom:caret_bottom_default,CaretLeft:caret_left_default,CaretRight:caret_right_default,CaretTop:caret_top_default,Cellphone:cellphone_default,ChatDotRound:chat_dot_round_default,ChatDotSquare:chat_dot_square_default,ChatLineRound:chat_line_round_default,ChatLineSquare:chat_line_square_default,ChatRound:chat_round_default,ChatSquare:chat_square_default,Check:check_default,Checked:checked_default,Cherry:cherry_default,Chicken:chicken_default,ChromeFilled:chrome_filled_default,CircleCheck:circle_check_default,CircleCheckFilled:circle_check_filled_default,CircleClose:circle_close_default,CircleCloseFilled:circle_close_filled_default,CirclePlus:circle_plus_default,CirclePlusFilled:circle_plus_filled_default,Clock:clock_default,Close:close_default,CloseBold:close_bold_default,Cloudy:cloudy_default,Coffee:coffee_default,CoffeeCup:coffee_cup_default,Coin:coin_default,ColdDrink:cold_drink_default,Collection:collection_default,CollectionTag:collection_tag_default,Comment:comment_default,Compass:compass_default,Connection:connection_default,Coordinate:coordinate_default,CopyDocument:copy_document_default,Cpu:cpu_default,CreditCard:credit_card_default,Crop:crop_default,DArrowLeft:d_arrow_left_default,DArrowRight:d_arrow_right_default,DCaret:d_caret_default,DataAnalysis:data_analysis_default,DataBoard:data_board_default,DataLine:data_line_default,Delete:delete_default,DeleteFilled:delete_filled_default,DeleteLocation:delete_location_default,Dessert:dessert_default,Discount:discount_default,Dish:dish_default,DishDot:dish_dot_default,Document:document_default,DocumentAdd:document_add_default,DocumentChecked:document_checked_default,DocumentCopy:document_copy_default,DocumentDelete:document_delete_default,DocumentRemove:document_remove_default,Download:download_default,Drizzling:drizzling_default,Edit:edit_default,EditPen:edit_pen_default,Eleme:eleme_default,ElemeFilled:eleme_filled_default,ElementPlus:element_plus_default,Expand:expand_default,Failed:failed_default,Female:female_default,Files:files_default,Film:film_default,Filter:filter_default,Finished:finished_default,FirstAidKit:first_aid_kit_default,Flag:flag_default,Fold:fold_default,Folder:folder_default,FolderAdd:folder_add_default,FolderChecked:folder_checked_default,FolderDelete:folder_delete_default,FolderOpened:folder_opened_default,FolderRemove:folder_remove_default,Food:food_default,Football:football_default,ForkSpoon:fork_spoon_default,Fries:fries_default,FullScreen:full_screen_default,Goblet:goblet_default,GobletFull:goblet_full_default,GobletSquare:goblet_square_default,GobletSquareFull:goblet_square_full_default,GoldMedal:gold_medal_default,Goods:goods_default,GoodsFilled:goods_filled_default,Grape:grape_default,Grid:grid_default,Guide:guide_default,Handbag:handbag_default,Headset:headset_default,Help:help_default,HelpFilled:help_filled_default,Hide:hide_default,Histogram:histogram_default,HomeFilled:home_filled_default,HotWater:hot_water_default,House:house_default,IceCream:ice_cream_default,IceCreamRound:ice_cream_round_default,IceCreamSquare:ice_cream_square_default,IceDrink:ice_drink_default,IceTea:ice_tea_default,InfoFilled:info_filled_default,Iphone:iphone_default,Key:key_default,KnifeFork:knife_fork_default,Lightning:lightning_default,Link:link_default,List:list_default,Loading:loading_default,Location:location_default,LocationFilled:location_filled_default,LocationInformation:location_information_default,Lock:lock_default,Lollipop:lollipop_default,MagicStick:magic_stick_default,Magnet:magnet_default,Male:male_default,Management:management_default,MapLocation:map_location_default,Medal:medal_default,Memo:memo_default,Menu:menu_default,Message:message_default,MessageBox:message_box_default,Mic:mic_default,Microphone:microphone_default,MilkTea:milk_tea_default,Minus:minus_default,Money:money_default,Monitor:monitor_default,Moon:moon_default,MoonNight:moon_night_default,More:more_default,MoreFilled:more_filled_default,MostlyCloudy:mostly_cloudy_default,Mouse:mouse_default,Mug:mug_default,Mute:mute_default,MuteNotification:mute_notification_default,NoSmoking:no_smoking_default,Notebook:notebook_default,Notification:notification_default,Odometer:odometer_default,OfficeBuilding:office_building_default,Open:open_default,Operation:operation_default,Opportunity:opportunity_default,Orange:orange_default,Paperclip:paperclip_default,PartlyCloudy:partly_cloudy_default,Pear:pear_default,Phone:phone_default,PhoneFilled:phone_filled_default,Picture:picture_default,PictureFilled:picture_filled_default,PictureRounded:picture_rounded_default,PieChart:pie_chart_default,Place:place_default,Platform:platform_default,Plus:plus_default,Pointer:pointer_default,Position:position_default,Postcard:postcard_default,Pouring:pouring_default,Present:present_default,PriceTag:price_tag_default,Printer:printer_default,Promotion:promotion_default,QuartzWatch:quartz_watch_default,QuestionFilled:question_filled_default,Rank:rank_default,Reading:reading_default,ReadingLamp:reading_lamp_default,Refresh:refresh_default,RefreshLeft:refresh_left_default,RefreshRight:refresh_right_default,Refrigerator:refrigerator_default,Remove:remove_default,RemoveFilled:remove_filled_default,Right:right_default,ScaleToOriginal:scale_to_original_default,School:school_default,Scissor:scissor_default,Search:search_default,Select:select_default,Sell:sell_default,SemiSelect:semi_select_default,Service:service_default,SetUp:set_up_default,Setting:setting_default,Share:share_default,Ship:ship_default,Shop:shop_default,ShoppingBag:shopping_bag_default,ShoppingCart:shopping_cart_default,ShoppingCartFull:shopping_cart_full_default,ShoppingTrolley:shopping_trolley_default,Smoking:smoking_default,Soccer:soccer_default,SoldOut:sold_out_default,Sort:sort_default,SortDown:sort_down_default,SortUp:sort_up_default,Stamp:stamp_default,Star:star_default,StarFilled:star_filled_default,Stopwatch:stopwatch_default,SuccessFilled:success_filled_default,Sugar:sugar_default,Suitcase:suitcase_default,SuitcaseLine:suitcase_line_default,Sunny:sunny_default,Sunrise:sunrise_default,Sunset:sunset_default,Switch:switch_default,SwitchButton:switch_button_default,SwitchFilled:switch_filled_default,TakeawayBox:takeaway_box_default,Ticket:ticket_default,Tickets:tickets_default,Timer:timer_default,ToiletPaper:toilet_paper_default,Tools:tools_default,Top:top_default,TopLeft:top_left_default,TopRight:top_right_default,TrendCharts:trend_charts_default,Trophy:trophy_default,TrophyBase:trophy_base_default,TurnOff:turn_off_default,Umbrella:umbrella_default,Unlock:unlock_default,Upload:upload_default,UploadFilled:upload_filled_default,User:user_default,UserFilled:user_filled_default,Van:van_default,VideoCamera:video_camera_default,VideoCameraFilled:video_camera_filled_default,VideoPause:video_pause_default,VideoPlay:video_play_default,View:view_default,Wallet:wallet_default,WalletFilled:wallet_filled_default,WarnTriangleFilled:warn_triangle_filled_default,Warning:warning_default,WarningFilled:warning_filled_default,Watch:watch_default,Watermelon:watermelon_default,WindPower:wind_power_default,ZoomIn:zoom_in_default,ZoomOut:zoom_out_default},Symbol.toStringTag,{value:"Module"})),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={primary:info_filled_default,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},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"},showAfter:Number,hideAfter:Number,autoClose:Number}),alertEmits={close:n=>n instanceof MouseEvent};var PatchFlags=(n=>(n[n.TEXT=1]="TEXT",n[n.CLASS=2]="CLASS",n[n.STYLE=4]="STYLE",n[n.PROPS=8]="PROPS",n[n.FULL_PROPS=16]="FULL_PROPS",n[n.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",n[n.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",n[n.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",n[n.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",n[n.NEED_PATCH=512]="NEED_PATCH",n[n.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",n[n.HOISTED=-1]="HOISTED",n[n.BAIL=-2]="BAIL",n))(PatchFlags||{});function isFragment(n){return isVNode(n)&&n.type===Fragment}function isComment(n){return isVNode(n)&&n.type===Comment}function isValidElementNode(n){return isVNode(n)&&!isFragment(n)&&!isComment(n)}const getNormalizedProps=n=>{if(!isVNode(n))return{};const t=n.props||{},r=(isVNode(n.type)?n.type.props:void 0)||{},i={};return Object.keys(r).forEach(g=>{hasOwn$1(r[g],"default")&&(i[g]=r[g].default)}),Object.keys(t).forEach(g=>{i[camelize(g)]=t[g]}),i},flattedChildren=n=>{const t=isArray$5(n)?n:[n],r=[];return t.forEach(i=>{var g;isArray$5(i)?r.push(...flattedChildren(i)):isVNode(i)&&((g=i.component)!=null&&g.subTree)?r.push(i,...flattedChildren(i.component.subTree)):isVNode(i)&&isArray$5(i.children)?r.push(...flattedChildren(i.children)):isVNode(i)&&i.shapeFlag===2?r.push(...flattedChildren(i.type())):r.push(i)}),r},_sfc_main$2Y=defineComponent({name:"ElAlert",__name:"alert",props:alertProps,emits:alertEmits,setup(n,{emit:t}){const{Close:r}=TypeComponents,i=n,g=t,$=useSlots(),V=useNamespace("alert"),re=ref(!0),ie=computed(()=>TypeComponentsMap[i.type]),ae=computed(()=>{var le;if(i.description)return!0;const ue=(le=$.default)==null?void 0:le.call($);return ue?flattedChildren(ue).some(he=>!isComment(he)):!1}),oe=le=>{re.value=!1,g("close",le)};return i.showAfter||i.hideAfter||i.autoClose,(le,ue)=>(openBlock(),createBlock(Transition,{name:unref(V).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:normalizeClass([unref(V).b(),unref(V).m(le.type),unref(V).is("center",le.center),unref(V).is(le.effect)]),role:"alert"},[le.showIcon&&(le.$slots.icon||ie.value)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(V).e("icon"),unref(V).is("big",ae.value)])},{default:withCtx(()=>[renderSlot(le.$slots,"icon",{},()=>[(openBlock(),createBlock(resolveDynamicComponent(ie.value)))])]),_:3},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(V).e("content"))},[le.title||le.$slots.title?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(V).e("title"),{"with-description":ae.value}])},[renderSlot(le.$slots,"title",{},()=>[createTextVNode(toDisplayString(le.title),1)])],2)):createCommentVNode("v-if",!0),ae.value?(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(unref(V).e("description"))},[renderSlot(le.$slots,"default",{},()=>[createTextVNode(toDisplayString(le.description),1)])],2)):createCommentVNode("v-if",!0),le.closable?(openBlock(),createElementBlock(Fragment,{key:2},[le.closeText?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(V).e("close-btn"),unref(V).is("customed")]),onClick:oe},toDisplayString(le.closeText),3)):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(V).e("close-btn")),onClick:oe},{default:withCtx(()=>[createVNode$1(unref(r))]),_:1},8,["class"]))],64)):createCommentVNode("v-if",!0)],2)],2),[[vShow,re.value]])]),_:3},8,["name"]))}});var Alert=_export_sfc(_sfc_main$2Y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const ElAlert=withInstall(Alert),isFirefox=()=>isClient&&/firefox/i.test(window.navigator.userAgent),isAndroid=()=>isClient&&/android/i.test(window.navigator.userAgent);let hiddenTextarea;const HIDDEN_STYLE={height:"0",visibility:"hidden",overflow:isFirefox()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},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","word-break"],looseToNumber=n=>{const t=Number.parseFloat(n);return Number.isNaN(t)?n:t};function calculateNodeStyling(n){const t=window.getComputedStyle(n),r=t.getPropertyValue("box-sizing"),i=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),g=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(V=>[V,t.getPropertyValue(V)]),paddingSize:i,borderSize:g,boxSizing:r}}function calcTextareaHeight(n,t=1,r){var i,g;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),((i=n.parentNode)!=null?i:document.body).appendChild(hiddenTextarea));const{paddingSize:$,borderSize:V,boxSizing:re,contextStyle:ie}=calculateNodeStyling(n);ie.forEach(([ue,de])=>hiddenTextarea==null?void 0:hiddenTextarea.style.setProperty(ue,de)),Object.entries(HIDDEN_STYLE).forEach(([ue,de])=>hiddenTextarea==null?void 0:hiddenTextarea.style.setProperty(ue,de,"important")),hiddenTextarea.value=n.value||n.placeholder||"";let ae=hiddenTextarea.scrollHeight;const oe={};re==="border-box"?ae=ae+V:re==="content-box"&&(ae=ae-$),hiddenTextarea.value="";const le=hiddenTextarea.scrollHeight-$;if(isNumber$2(t)){let ue=le*t;re==="border-box"&&(ue=ue+$+V),ae=Math.max(ue,ae),oe.minHeight=`${ue}px`}if(isNumber$2(r)){let ue=le*r;re==="border-box"&&(ue=ue+$+V),ae=Math.min(ue,ae)}return oe.height=`${ae}px`,(g=hiddenTextarea.parentNode)==null||g.removeChild(hiddenTextarea),hiddenTextarea=void 0,oe}const mutable=n=>n,ariaProps=buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),useAriaProps=n=>pick$1(ariaProps,n),inputProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:{type:Boolean,default:void 0},modelValue:{type:definePropType([String,Number,Object]),default:""},modelModifiers:{type:definePropType(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:definePropType(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:definePropType([Boolean,Object]),default:!1},autocomplete:{type:definePropType(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:iconPropType,default:circle_close_default},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:iconPropType},prefixIcon:{type:iconPropType},containerRole:{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:Boolean,rows:{type:Number,default:2},...useAriaProps(["ariaLabel"]),inputmode:{type:definePropType(String),default:void 0},name:String}),inputEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n),input:n=>isString$2(n),change:(n,t)=>isString$2(n)&&(t instanceof Event||t===void 0),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0,mouseleave:n=>n instanceof MouseEvent,mouseenter:n=>n instanceof MouseEvent,keydown:n=>n instanceof Event,compositionstart:n=>n instanceof CompositionEvent,compositionupdate:n=>n instanceof CompositionEvent,compositionend:n=>n instanceof CompositionEvent},DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]/,useAttrs=(n={})=>{const{excludeListeners:t=!1,excludeKeys:r}=n,i=computed(()=>((r==null?void 0:r.value)||[]).concat(DEFAULT_EXCLUDE_KEYS)),g=getCurrentInstance();return computed(g?()=>{var $;return fromPairs(Object.entries(($=g.proxy)==null?void 0:$.$attrs).filter(([V])=>!i.value.includes(V)&&!(t&&LISTENER_PREFIX.test(V))))}:()=>({}))},defaultIdInjection={prefix:Math.floor(Math.random()*1e4),current:0},ID_INJECTION_KEY=Symbol("elIdInjection"),useIdInjection=()=>getCurrentInstance()?inject(ID_INJECTION_KEY,defaultIdInjection):defaultIdInjection,useId=n=>{const t=useIdInjection(),r=useGetDerivedNamespace();return computedEager(()=>unref(n)||`${r.value}-id-${t.prefix}-${t.current++}`)},formContextKey=Symbol("formContextKey"),formItemContextKey=Symbol("formItemContextKey"),useFormItem=()=>{const n=inject(formContextKey,void 0),t=inject(formItemContextKey,void 0);return{form:n,formItem:t}},useFormItemInputId=(n,{formItemContext:t,disableIdGeneration:r,disableIdManagement:i})=>{r||(r=ref(!1)),i||(i=ref(!1));const g=getCurrentInstance(),$=()=>{let ae=g==null?void 0:g.parent;for(;ae;){if(ae.type.name==="ElFormItem")return!1;if(ae.type.name==="ElLabelWrap")return!0;ae=ae.parent}return!1},V=ref();let re;const ie=computed(()=>{var ae;return!!(!(n.label||n.ariaLabel)&&t&&t.inputIds&&((ae=t.inputIds)==null?void 0:ae.length)<=1)});return onMounted(()=>{re=watch([toRef$1(n,"id"),r],([ae,oe])=>{const le=ae??(oe?void 0:useId().value);le!==V.value&&(t!=null&&t.removeInputId&&!$()&&(V.value&&t.removeInputId(V.value),!(i!=null&&i.value)&&!oe&&le&&t.addInputId(le)),V.value=le)},{immediate:!0})}),onUnmounted(()=>{re&&re(),t!=null&&t.removeInputId&&V.value&&t.removeInputId(V.value)}),{isLabeledByFormItem:ie,inputId:V}},useProp=n=>{const t=getCurrentInstance();return computed(()=>{var r,i;return(i=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:i[n]})},useFormSize=(n,t={})=>{const r=ref(void 0),i=t.prop?r:useProp("size"),g=t.global?r:useGlobalSize(),$=t.form?{size:void 0}:inject(formContextKey,void 0),V=t.formItem?{size:void 0}:inject(formItemContextKey,void 0);return computed(()=>i.value||unref(n)||(V==null?void 0:V.size)||($==null?void 0:$.size)||g.value||"")},useFormDisabled=n=>{const t=useProp("disabled"),r=inject(formContextKey,void 0);return computed(()=>{var i,g,$;return($=(g=(i=t.value)!=null?i:unref(n))!=null?g:r==null?void 0:r.disabled)!=null?$:!1})},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])',isHTMLElement$1=n=>typeof Element>"u"?!1:n instanceof Element,isVisible=n=>getComputedStyle(n).position==="fixed"?!1:n.offsetParent!==null,obtainAllFocusableElements$1=n=>Array.from(n.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter(t=>isFocusable(t)&&isVisible(t)),isFocusable=n=>{if(n.tabIndex>0||n.tabIndex===0&&n.getAttribute("tabIndex")!==null)return!0;if(n.tabIndex<0||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true")return!1;switch(n.nodeName){case"A":return!!n.href&&n.rel!=="ignore";case"INPUT":return!(n.type==="hidden"||n.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},triggerEvent=function(n,t,...r){let i;t.includes("mouse")||t.includes("click")?i="MouseEvents":t.includes("key")?i="KeyboardEvent":i="HTMLEvents";const g=document.createEvent(i);return g.initEvent(t,...r),n.dispatchEvent(g),n},isLeaf=n=>!n.getAttribute("aria-owns"),getSibling=(n,t,r)=>{const{parentNode:i}=n;if(!i)return null;const g=i.querySelectorAll(r),$=Array.prototype.indexOf.call(g,n);return g[$+t]||null},focusElement=(n,t)=>{if(!n||!n.focus)return;let r=!1;isHTMLElement$1(n)&&!isFocusable(n)&&!n.getAttribute("tabindex")&&(n.setAttribute("tabindex","-1"),r=!0),n.focus(t),isHTMLElement$1(n)&&r&&n.removeAttribute("tabindex")},focusNode=n=>{n&&(focusElement(n),!isLeaf(n)&&n.click())};function useFocusController(n,{disabled:t,beforeFocus:r,afterFocus:i,beforeBlur:g,afterBlur:$}={}){const V=getCurrentInstance(),{emit:re}=V,ie=shallowRef(),ae=ref(!1),oe=de=>{const he=isFunction$4(r)?r(de):!1;unref(t)||ae.value||he||(ae.value=!0,re("focus",de),i==null||i())},le=de=>{var he;const pe=isFunction$4(g)?g(de):!1;unref(t)||de.relatedTarget&&((he=ie.value)!=null&&he.contains(de.relatedTarget))||pe||(ae.value=!1,re("blur",de),$==null||$())},ue=de=>{var he,pe;unref(t)||isFocusable(de.target)||(he=ie.value)!=null&&he.contains(document.activeElement)&&ie.value!==document.activeElement||(pe=n.value)==null||pe.focus()};return watch([ie,()=>unref(t)],([de,he])=>{de&&(he?de.removeAttribute("tabindex"):de.setAttribute("tabindex","-1"))}),useEventListener(ie,"focus",oe,!0),useEventListener(ie,"blur",le,!0),useEventListener(ie,"click",ue,!0),{isFocused:ae,wrapperRef:ie,handleFocus:oe,handleBlur:le}}const isKorean=n=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(n);function useComposition({afterComposition:n,emit:t}){const r=ref(!1),i=re=>{t==null||t("compositionstart",re),r.value=!0},g=re=>{var ie;t==null||t("compositionupdate",re);const ae=(ie=re.target)==null?void 0:ie.value,oe=ae[ae.length-1]||"";r.value=!isKorean(oe)},$=re=>{t==null||t("compositionend",re),r.value&&(r.value=!1,nextTick(()=>n(re)))};return{isComposing:r,handleComposition:re=>{re.type==="compositionend"?$(re):g(re)},handleCompositionStart:i,handleCompositionUpdate:g,handleCompositionEnd:$}}function useCursor(n){let t;function r(){if(n.value==null)return;const{selectionStart:g,selectionEnd:$,value:V}=n.value;if(g==null||$==null)return;const re=V.slice(0,Math.max(0,g)),ie=V.slice(Math.max(0,$));t={selectionStart:g,selectionEnd:$,value:V,beforeTxt:re,afterTxt:ie}}function i(){if(n.value==null||t==null)return;const{value:g}=n.value,{beforeTxt:$,afterTxt:V,selectionStart:re}=t;if($==null||V==null||re==null)return;let ie=g.length;if(g.endsWith(V))ie=g.length-V.length;else if(g.startsWith($))ie=$.length;else{const ae=$[re-1],oe=g.indexOf(ae,re-1);oe!==-1&&(ie=oe+1)}n.value.setSelectionRange(ie,ie)}return[r,i]}const _hoisted_1$1D=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],_hoisted_2$_=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role"],COMPONENT_NAME$n="ElInput",_sfc_main$2X=defineComponent({name:COMPONENT_NAME$n,inheritAttrs:!1,__name:"input",props:inputProps,emits:inputEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useAttrs$1(),V=useAttrs(),re=useSlots(),ie=computed(()=>[i.type==="textarea"?_e.b():pe.b(),pe.m(de.value),pe.is("disabled",he.value),pe.is("exceed",bn.value),{[pe.b("group")]:re.prepend||re.append,[pe.m("prefix")]:re.prefix||i.prefixIcon,[pe.m("suffix")]:re.suffix||i.suffixIcon||i.clearable||i.showPassword,[pe.bm("suffix","password-clear")]:hn.value&&vn.value,[pe.b("hidden")]:i.type==="hidden"},$.class]),ae=computed(()=>[pe.e("wrapper"),pe.is("focus",Fe.value)]),{form:oe,formItem:le}=useFormItem(),{inputId:ue}=useFormItemInputId(i,{formItemContext:le}),de=useFormSize(),he=useFormDisabled(),pe=useNamespace("input"),_e=useNamespace("textarea"),Ce=shallowRef(),xe=shallowRef(),Ie=ref(!1),Ne=ref(!1),Oe=ref(),$e=shallowRef(i.inputStyle),Ve=computed(()=>Ce.value||xe.value),{wrapperRef:Ue,isFocused:Fe,handleFocus:ze,handleBlur:Pt}=useFocusController(Ve,{disabled:he,afterBlur(){var zn;i.validateEvent&&((zn=le==null?void 0:le.validate)==null||zn.call(le,"blur").catch(jn=>void 0))}}),qe=computed(()=>{var zn;return(zn=oe==null?void 0:oe.statusIcon)!=null?zn:!1}),Et=computed(()=>(le==null?void 0:le.validateState)||""),kt=computed(()=>Et.value&&ValidateComponentsMap[Et.value]),At=computed(()=>Ne.value?view_default:hide_default),Dt=computed(()=>[$.style]),Lt=computed(()=>[i.inputStyle,$e.value,{resize:i.resize}]),jt=computed(()=>isNil(i.modelValue)?"":String(i.modelValue)),hn=computed(()=>i.clearable&&!he.value&&!i.readonly&&!!jt.value&&(Fe.value||Ie.value)),vn=computed(()=>i.showPassword&&!he.value&&!!jt.value),_n=computed(()=>i.showWordLimit&&!!i.maxlength&&(i.type==="text"||i.type==="textarea")&&!he.value&&!i.readonly&&!i.showPassword),wn=computed(()=>jt.value.length),bn=computed(()=>!!_n.value&&wn.value>Number(i.maxlength)),Cn=computed(()=>!!re.suffix||!!i.suffixIcon||hn.value||i.showPassword||_n.value||!!Et.value&&qe.value),Sn=computed(()=>!!Object.keys(i.modelModifiers).length),[Tn,En]=useCursor(Ce);useResizeObserver(xe,zn=>{if(An(),!_n.value||i.resize!=="both"&&i.resize!=="horizontal")return;const jn=zn[0],{width:tr}=jn.contentRect;Oe.value={right:`calc(100% - ${tr+22-10}px)`}});const kn=()=>{const{type:zn,autosize:jn}=i;if(!(!isClient||zn!=="textarea"||!xe.value))if(jn){const tr=isObject$6(jn)?jn.minRows:void 0,hr=isObject$6(jn)?jn.maxRows:void 0,ir=calcTextareaHeight(xe.value,tr,hr);$e.value={overflowY:"hidden",...ir},nextTick(()=>{xe.value.offsetHeight,$e.value=ir})}else $e.value={minHeight:calcTextareaHeight(xe.value).minHeight}},An=(zn=>{let jn=!1;return()=>{var tr;if(jn||!i.autosize)return;((tr=xe.value)==null?void 0:tr.offsetParent)===null||(setTimeout(zn),jn=!0)}})(kn),xn=()=>{const zn=Ve.value,jn=i.formatter?i.formatter(jt.value):jt.value;!zn||zn.value===jn||i.type==="file"||(zn.value=jn)},Ln=zn=>{const{trim:jn,number:tr}=i.modelModifiers;return jn&&(zn=zn.trim()),tr&&(zn=`${looseToNumber(zn)}`),i.formatter&&i.parser&&(zn=i.parser(zn)),zn},Nn=async zn=>{if(On.value)return;const{lazy:jn}=i.modelModifiers;let{value:tr}=zn.target;if(jn){g(INPUT_EVENT,tr);return}if(tr=Ln(tr),String(tr)===jt.value){i.formatter&&xn();return}Tn(),g(UPDATE_MODEL_EVENT,tr),g(INPUT_EVENT,tr),await nextTick(),(i.formatter&&i.parser||!Sn.value)&&xn(),En()},Pn=async zn=>{let{value:jn}=zn.target;jn=Ln(jn),i.modelModifiers.lazy&&g(UPDATE_MODEL_EVENT,jn),g(CHANGE_EVENT,jn,zn),await nextTick(),xn()},{isComposing:On,handleCompositionStart:Hn,handleCompositionUpdate:Xn,handleCompositionEnd:In}=useComposition({emit:g,afterComposition:Nn}),or=()=>{Ne.value=!Ne.value},Qn=()=>{var zn;return(zn=Ve.value)==null?void 0:zn.focus()},Zn=()=>{var zn;return(zn=Ve.value)==null?void 0:zn.blur()},Gn=zn=>{Ie.value=!1,g("mouseleave",zn)},Rn=zn=>{Ie.value=!0,g("mouseenter",zn)},Mn=zn=>{g("keydown",zn)},Bn=()=>{var zn;(zn=Ve.value)==null||zn.select()},qn=()=>{g(UPDATE_MODEL_EVENT,""),g(CHANGE_EVENT,""),g("clear"),g(INPUT_EVENT,"")};return watch(()=>i.modelValue,()=>{var zn;nextTick(()=>kn()),i.validateEvent&&((zn=le==null?void 0:le.validate)==null||zn.call(le,"change").catch(jn=>void 0))}),watch(jt,zn=>{if(!Ve.value)return;const{trim:jn,number:tr}=i.modelModifiers,hr=Ve.value.value,ir=(tr||i.type==="number")&&!/^0\d/.test(hr)?`${looseToNumber(hr)}`:hr;ir!==zn&&(document.activeElement===Ve.value&&Ve.value.type!=="range"&&jn&&ir.trim()===zn||xn())}),watch(()=>i.type,async()=>{await nextTick(),xn(),kn()}),onMounted(()=>{!i.formatter&&i.parser,xn(),nextTick(kn)}),t({input:Ce,textarea:xe,ref:Ve,textareaStyle:Lt,autosize:toRef$1(i,"autosize"),isComposing:On,focus:Qn,blur:Zn,select:Bn,clear:qn,resizeTextarea:kn}),(zn,jn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([ie.value,{[unref(pe).bm("group","append")]:zn.$slots.append,[unref(pe).bm("group","prepend")]:zn.$slots.prepend}]),style:normalizeStyle$1(Dt.value),onMouseenter:Rn,onMouseleave:Gn},[createCommentVNode(" input "),zn.type!=="textarea"?(openBlock(),createElementBlock(Fragment,{key:0},[createCommentVNode(" prepend slot "),zn.$slots.prepend?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(pe).be("group","prepend"))},[renderSlot(zn.$slots,"prepend")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{ref_key:"wrapperRef",ref:Ue,class:normalizeClass(ae.value)},[createCommentVNode(" prefix slot "),zn.$slots.prefix||zn.prefixIcon?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(pe).e("prefix"))},[createBaseVNode("span",{class:normalizeClass(unref(pe).e("prefix-inner"))},[renderSlot(zn.$slots,"prefix"),zn.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(pe).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(zn.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("input",mergeProps({id:unref(ue),ref_key:"input",ref:Ce,class:unref(pe).e("inner")},unref(V),{name:zn.name,minlength:zn.minlength,maxlength:zn.maxlength,type:zn.showPassword?Ne.value?"text":"password":zn.type,disabled:unref(he),readonly:zn.readonly,autocomplete:zn.autocomplete,tabindex:zn.tabindex,"aria-label":zn.ariaLabel,placeholder:zn.placeholder,style:zn.inputStyle,form:zn.form,autofocus:zn.autofocus,role:zn.containerRole,inputmode:zn.inputmode,onCompositionstart:jn[0]||(jn[0]=(...tr)=>unref(Hn)&&unref(Hn)(...tr)),onCompositionupdate:jn[1]||(jn[1]=(...tr)=>unref(Xn)&&unref(Xn)(...tr)),onCompositionend:jn[2]||(jn[2]=(...tr)=>unref(In)&&unref(In)(...tr)),onInput:Nn,onChange:Pn,onKeydown:Mn}),null,16,_hoisted_1$1D),createCommentVNode(" suffix slot "),Cn.value?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(pe).e("suffix"))},[createBaseVNode("span",{class:normalizeClass(unref(pe).e("suffix-inner"))},[!hn.value||!vn.value||!_n.value?(openBlock(),createElementBlock(Fragment,{key:0},[renderSlot(zn.$slots,"suffix"),zn.suffixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(pe).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(zn.suffixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0),hn.value?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(pe).e("icon"),unref(pe).e("clear")]),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:qn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(zn.clearIcon)))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),vn.value?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(pe).e("icon"),unref(pe).e("password")]),onClick:or,onMousedown:withModifiers(unref(NOOP),["prevent"]),onMouseup:withModifiers(unref(NOOP),["prevent"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(At.value)))]),_:1},8,["class","onMousedown","onMouseup"])):createCommentVNode("v-if",!0),_n.value?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass([unref(pe).e("count"),unref(pe).is("outside",zn.wordLimitPosition==="outside")])},[createBaseVNode("span",{class:normalizeClass(unref(pe).e("count-inner"))},toDisplayString(wn.value)+" / "+toDisplayString(zn.maxlength),3)],2)):createCommentVNode("v-if",!0),Et.value&&kt.value&&qe.value?(openBlock(),createBlock(unref(ElIcon),{key:4,class:normalizeClass([unref(pe).e("icon"),unref(pe).e("validateIcon"),unref(pe).is("loading",Et.value==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(kt.value)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0)],2),createCommentVNode(" append slot "),zn.$slots.append?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(pe).be("group","append"))},[renderSlot(zn.$slots,"append")],2)):createCommentVNode("v-if",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" textarea "),createBaseVNode("textarea",mergeProps({id:unref(ue),ref_key:"textarea",ref:xe,class:[unref(_e).e("inner"),unref(pe).is("focus",unref(Fe))]},unref(V),{name:zn.name,minlength:zn.minlength,maxlength:zn.maxlength,tabindex:zn.tabindex,disabled:unref(he),readonly:zn.readonly,autocomplete:zn.autocomplete,style:Lt.value,"aria-label":zn.ariaLabel,placeholder:zn.placeholder,form:zn.form,autofocus:zn.autofocus,rows:zn.rows,role:zn.containerRole,onCompositionstart:jn[3]||(jn[3]=(...tr)=>unref(Hn)&&unref(Hn)(...tr)),onCompositionupdate:jn[4]||(jn[4]=(...tr)=>unref(Xn)&&unref(Xn)(...tr)),onCompositionend:jn[5]||(jn[5]=(...tr)=>unref(In)&&unref(In)(...tr)),onInput:Nn,onFocus:jn[6]||(jn[6]=(...tr)=>unref(ze)&&unref(ze)(...tr)),onBlur:jn[7]||(jn[7]=(...tr)=>unref(Pt)&&unref(Pt)(...tr)),onChange:Pn,onKeydown:Mn}),null,16,_hoisted_2$_),_n.value?(openBlock(),createElementBlock("span",{key:0,style:normalizeStyle$1(Oe.value),class:normalizeClass([unref(pe).e("count"),unref(pe).is("outside",zn.wordLimitPosition==="outside")])},toDisplayString(wn.value)+" / "+toDisplayString(zn.maxlength),7)):createCommentVNode("v-if",!0)],64))],38))}});var Input=_export_sfc(_sfc_main$2X,[["__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:n,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${n}%)`}),scrollbarContextKey=Symbol("scrollbarContextKey"),thumbProps=buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),COMPONENT_NAME$m="Thumb",_sfc_main$2W=defineComponent({__name:"thumb",props:thumbProps,setup(n){const t=n,r=inject(scrollbarContextKey),i=useNamespace("scrollbar");r||throwError$1(COMPONENT_NAME$m,"can not inject scrollbar context");const g=ref(),$=ref(),V=ref({}),re=ref(!1);let ie=!1,ae=!1,oe=0,le=0,ue=isClient?document.onselectstart:null;const de=computed(()=>BAR_MAP[t.vertical?"vertical":"horizontal"]),he=computed(()=>renderThumbStyle$1({size:t.size,move:t.move,bar:de.value})),pe=computed(()=>g.value[de.value.offset]**2/r.wrapElement[de.value.scrollSize]/t.ratio/$.value[de.value.offset]),_e=Ue=>{var Fe;if(Ue.stopPropagation(),Ue.ctrlKey||[1,2].includes(Ue.button))return;(Fe=window.getSelection())==null||Fe.removeAllRanges(),xe(Ue);const ze=Ue.currentTarget;ze&&(V.value[de.value.axis]=ze[de.value.offset]-(Ue[de.value.client]-ze.getBoundingClientRect()[de.value.direction]))},Ce=Ue=>{if(!$.value||!g.value||!r.wrapElement)return;const Fe=Math.abs(Ue.target.getBoundingClientRect()[de.value.direction]-Ue[de.value.client]),ze=$.value[de.value.offset]/2,Pt=(Fe-ze)*100*pe.value/g.value[de.value.offset];r.wrapElement[de.value.scroll]=Pt*r.wrapElement[de.value.scrollSize]/100},xe=Ue=>{Ue.stopImmediatePropagation(),ie=!0,oe=r.wrapElement.scrollHeight,le=r.wrapElement.scrollWidth,document.addEventListener("mousemove",Ie),document.addEventListener("mouseup",Ne),ue=document.onselectstart,document.onselectstart=()=>!1},Ie=Ue=>{if(!g.value||!$.value||ie===!1)return;const Fe=V.value[de.value.axis];if(!Fe)return;const ze=(g.value.getBoundingClientRect()[de.value.direction]-Ue[de.value.client])*-1,Pt=$.value[de.value.offset]-Fe,qe=(ze-Pt)*100*pe.value/g.value[de.value.offset];de.value.scroll==="scrollLeft"?r.wrapElement[de.value.scroll]=qe*le/100:r.wrapElement[de.value.scroll]=qe*oe/100},Ne=()=>{ie=!1,V.value[de.value.axis]=0,document.removeEventListener("mousemove",Ie),document.removeEventListener("mouseup",Ne),Ve(),ae&&(re.value=!1)},Oe=()=>{ae=!1,re.value=!!t.size},$e=()=>{ae=!0,re.value=ie};onBeforeUnmount(()=>{Ve(),document.removeEventListener("mouseup",Ne)});const Ve=()=>{document.onselectstart!==ue&&(document.onselectstart=ue)};return useEventListener(toRef$1(r,"scrollbarElement"),"mousemove",Oe),useEventListener(toRef$1(r,"scrollbarElement"),"mouseleave",$e),(Ue,Fe)=>(openBlock(),createBlock(Transition,{name:unref(i).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{ref_key:"instance",ref:g,class:normalizeClass([unref(i).e("bar"),unref(i).is(de.value.key)]),onMousedown:Ce,onClick:Fe[0]||(Fe[0]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{ref_key:"thumb",ref:$,class:normalizeClass(unref(i).e("thumb")),style:normalizeStyle$1(he.value),onMousedown:_e},null,38)],34),[[vShow,Ue.always||re.value]])]),_:1},8,["name"]))}});var Thumb=_export_sfc(_sfc_main$2W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const barProps=buildProps({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),_sfc_main$2V=defineComponent({__name:"bar",props:barProps,setup(n,{expose:t}){const r=n,i=inject(scrollbarContextKey),g=ref(0),$=ref(0),V=ref(""),re=ref(""),ie=ref(1),ae=ref(1);return t({handleScroll:ue=>{if(ue){const de=ue.offsetHeight-GAP,he=ue.offsetWidth-GAP;$.value=ue.scrollTop*100/de*ie.value,g.value=ue.scrollLeft*100/he*ae.value}},update:()=>{const ue=i==null?void 0:i.wrapElement;if(!ue)return;const de=ue.offsetHeight-GAP,he=ue.offsetWidth-GAP,pe=de**2/ue.scrollHeight,_e=he**2/ue.scrollWidth,Ce=Math.max(pe,r.minSize),xe=Math.max(_e,r.minSize);ie.value=pe/(de-pe)/(Ce/(de-Ce)),ae.value=_e/(he-_e)/(xe/(he-xe)),re.value=Ce+GAP(openBlock(),createElementBlock(Fragment,null,[createVNode$1(Thumb,{move:g.value,ratio:ae.value,size:V.value,always:ue.always},null,8,["move","ratio","size","always"]),createVNode$1(Thumb,{move:$.value,ratio:ie.value,size:re.value,vertical:"",always:ue.always},null,8,["move","ratio","size","always"])],64))}});var Bar=_export_sfc(_sfc_main$2V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const scrollbarProps=buildProps({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,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},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...useAriaProps(["ariaLabel","ariaOrientation"])}),scrollbarEmits={"end-reached":n=>["left","right","top","bottom"].includes(n),scroll:({scrollTop:n,scrollLeft:t})=>[n,t].every(isNumber$2)},_hoisted_1$1C=["tabindex"],COMPONENT_NAME$l="ElScrollbar",_sfc_main$2U=defineComponent({name:COMPONENT_NAME$l,__name:"scrollbar",props:scrollbarProps,emits:scrollbarEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useNamespace("scrollbar");let V,re,ie,ae=0,oe=0,le="";const ue={bottom:!1,top:!1,right:!1,left:!1},de=ref(),he=ref(),pe=ref(),_e=ref(),Ce=computed(()=>{const qe={},Et=addUnit(i.height),kt=addUnit(i.maxHeight);return Et&&(qe.height=Et),kt&&(qe.maxHeight=kt),[i.wrapStyle,qe]}),xe=computed(()=>[i.wrapClass,$.e("wrap"),{[$.em("wrap","hidden-default")]:!i.native}]),Ie=computed(()=>[$.e("view"),i.viewClass]),Ne=qe=>{var Et;return(Et=ue[qe])!=null?Et:!1},Oe={top:"bottom",bottom:"top",left:"right",right:"left"},$e=qe=>{const Et=Oe[le];if(!Et)return;const kt=qe[le],At=qe[Et];kt&&!ue[le]&&(ue[le]=!0),!At&&ue[Et]&&(ue[Et]=!1)},Ve=()=>{var qe;if(he.value){(qe=_e.value)==null||qe.handleScroll(he.value);const Et=ae,kt=oe;ae=he.value.scrollTop,oe=he.value.scrollLeft;const At={bottom:ae+he.value.clientHeight>=he.value.scrollHeight-i.distance,top:ae<=i.distance&&Et!==0,right:oe+he.value.clientWidth>=he.value.scrollWidth-i.distance&&kt!==oe,left:oe<=i.distance&&kt!==0};if(g("scroll",{scrollTop:ae,scrollLeft:oe}),Et!==ae&&(le=ae>Et?"bottom":"top"),kt!==oe&&(le=oe>kt?"right":"left"),i.distance>0){if(Ne(le))return;$e(At)}At[le]&&g("end-reached",le)}};function Ue(qe,Et){isObject$6(qe)?he.value.scrollTo(qe):isNumber$2(qe)&&isNumber$2(Et)&&he.value.scrollTo(qe,Et)}const Fe=qe=>{isNumber$2(qe)&&(he.value.scrollTop=qe)},ze=qe=>{isNumber$2(qe)&&(he.value.scrollLeft=qe)},Pt=()=>{var qe;(qe=_e.value)==null||qe.update(),ue[le]=!1};return watch(()=>i.noresize,qe=>{qe?(V==null||V(),re==null||re(),ie==null||ie()):({stop:V}=useResizeObserver(pe,Pt),{stop:re}=useResizeObserver(he,Pt),ie=useEventListener("resize",Pt))},{immediate:!0}),watch(()=>[i.maxHeight,i.height],()=>{i.native||nextTick(()=>{var qe;Pt(),he.value&&((qe=_e.value)==null||qe.handleScroll(he.value))})}),provide(scrollbarContextKey,reactive({scrollbarElement:de,wrapElement:he})),onActivated(()=>{he.value&&(he.value.scrollTop=ae,he.value.scrollLeft=oe)}),onMounted(()=>{i.native||nextTick(()=>{Pt()})}),onUpdated(()=>Pt()),t({wrapRef:he,update:Pt,scrollTo:Ue,setScrollTop:Fe,setScrollLeft:ze,handleScroll:Ve}),(qe,Et)=>(openBlock(),createElementBlock("div",{ref_key:"scrollbarRef",ref:de,class:normalizeClass(unref($).b())},[createBaseVNode("div",{ref_key:"wrapRef",ref:he,class:normalizeClass(xe.value),style:normalizeStyle$1(Ce.value),tabindex:qe.tabindex,onScroll:Ve},[(openBlock(),createBlock(resolveDynamicComponent(qe.tag),{id:qe.id,ref_key:"resizeRef",ref:pe,class:normalizeClass(Ie.value),style:normalizeStyle$1(qe.viewStyle),role:qe.role,"aria-label":qe.ariaLabel,"aria-orientation":qe.ariaOrientation},{default:withCtx(()=>[renderSlot(qe.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,_hoisted_1$1C),qe.native?createCommentVNode("v-if",!0):(openBlock(),createBlock(Bar,{key:0,ref_key:"barRef",ref:_e,always:qe.always,"min-size":qe.minSize},null,8,["always","min-size"]))],2))}});var Scrollbar=_export_sfc(_sfc_main$2U,[["__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"}}),_sfc_main$2T=defineComponent({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:popperProps,setup(n,{expose:t}){const r=n,i=ref(),g=ref(),$=ref(),V=ref(),re=computed(()=>r.role),ie={triggerRef:i,popperInstanceRef:g,contentRef:$,referenceRef:V,role:re};return t(ie),provide(POPPER_INJECTION_KEY,ie),(ae,oe)=>renderSlot(ae.$slots,"default")}});var Popper=_export_sfc(_sfc_main$2T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const _sfc_main$2S=defineComponent({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(n,{expose:t}){const r=useNamespace("popper"),{arrowRef:i,arrowStyle:g}=inject(POPPER_CONTENT_INJECTION_KEY,void 0);return onBeforeUnmount(()=>{i.value=void 0}),t({arrowRef:i}),($,V)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:i,class:normalizeClass(unref(r).e("arrow")),style:normalizeStyle$1(unref(g)),"data-popper-arrow":""},null,6))}});var ElPopperArrow=_export_sfc(_sfc_main$2S,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);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}),FORWARD_REF_INJECTION_KEY=Symbol("elForwardRef"),useForwardRef=n=>{provide(FORWARD_REF_INJECTION_KEY,{setForwardRef:r=>{n.value=r}})},useForwardRefDirective=n=>({mounted(t){n(t)},updated(t){n(t)},unmounted(){n(null)}}),NAME="ElOnlyChild",OnlyChild=defineComponent({name:NAME,setup(n,{slots:t,attrs:r}){var i;const g=inject(FORWARD_REF_INJECTION_KEY),$=useForwardRefDirective((i=g==null?void 0:g.setForwardRef)!=null?i:NOOP);return()=>{var V;const re=(V=t.default)==null?void 0:V.call(t,r);if(!re)return null;const[ie,ae]=findFirstLegitChild(re);return ie?withDirectives(cloneVNode(ie,r),[[$]]):null}}});function findFirstLegitChild(n){if(!n)return[null,0];const t=n,r=t.filter(i=>i.type!==Comment).length;for(const i of t){if(isObject$6(i))switch(i.type){case Comment:continue;case Text$1:case"svg":return[wrapTextContent(i),r];case Fragment:return findFirstLegitChild(i.children);default:return[i,r]}return[wrapTextContent(i),r]}return[null,0]}function wrapTextContent(n){const t=useNamespace("only-child");return createVNode$1("span",{class:t.e("content")},[n])}const _sfc_main$2R=defineComponent({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:popperTriggerProps,setup(n,{expose:t}){const r=n,{role:i,triggerRef:g}=inject(POPPER_INJECTION_KEY,void 0);useForwardRef(g);const $=computed(()=>re.value?r.id:void 0),V=computed(()=>{if(i&&i.value==="tooltip")return r.open&&r.id?r.id:void 0}),re=computed(()=>{if(i&&i.value!=="tooltip")return i.value}),ie=computed(()=>re.value?`${r.open}`:void 0);let ae;const oe=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return onMounted(()=>{watch(()=>r.virtualRef,le=>{le&&(g.value=unrefElement(le))},{immediate:!0}),watch(g,(le,ue)=>{ae==null||ae(),ae=void 0,isElement$1(ue)&&oe.forEach(de=>{const he=r[de];he&&ue.removeEventListener(de.slice(2).toLowerCase(),he,["onFocus","onBlur"].includes(de))}),isElement$1(le)&&(oe.forEach(de=>{const he=r[de];he&&le.addEventListener(de.slice(2).toLowerCase(),he,["onFocus","onBlur"].includes(de))}),isFocusable(le)&&(ae=watch([$,V,re,ie],de=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((he,pe)=>{isNil(de[pe])?le.removeAttribute(he):le.setAttribute(he,de[pe])})},{immediate:!0}))),isElement$1(ue)&&isFocusable(ue)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(de=>ue.removeAttribute(de))},{immediate:!0})}),onBeforeUnmount(()=>{if(ae==null||ae(),ae=void 0,g.value&&isElement$1(g.value)){const le=g.value;oe.forEach(ue=>{const de=r[ue];de&&le.removeEventListener(ue.slice(2).toLowerCase(),de,["onFocus","onBlur"].includes(ue))}),g.value=void 0}}),t({triggerRef:g}),(le,ue)=>le.virtualTriggering?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(OnlyChild),mergeProps({key:0},le.$attrs,{"aria-controls":$.value,"aria-describedby":V.value,"aria-expanded":ie.value,"aria-haspopup":re.value}),{default:withCtx(()=>[renderSlot(le.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var ElPopperTrigger=_export_sfc(_sfc_main$2R,[["__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=n=>{const t=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const g=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||g?NodeFilter.FILTER_SKIP:i.tabIndex>=0||i===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},getVisibleElement=(n,t)=>{for(const r of n)if(!isHidden(r,t))return r},isHidden=(n,t)=>{if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(t&&n===t)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1},getEdges=n=>{const t=obtainAllFocusableElements(n),r=getVisibleElement(t,n),i=getVisibleElement(t.reverse(),n);return[r,i]},isSelectable=n=>n instanceof HTMLInputElement&&"select"in n,tryFocus=(n,t)=>{if(n){const r=document.activeElement;focusElement(n,{preventScroll:!0}),lastAutomatedFocusTimestamp.value=window.performance.now(),n!==r&&isSelectable(n)&&t&&n.select()}};function removeFromStack(n,t){const r=[...n],i=n.indexOf(t);return i!==-1&&r.splice(i,1),r}const createFocusableStack=()=>{let n=[];return{push:i=>{const g=n[0];g&&i!==g&&g.pause(),n=removeFromStack(n,i),n.unshift(i)},remove:i=>{var g,$;n=removeFromStack(n,i),($=(g=n[0])==null?void 0:g.resume)==null||$.call(g)}}},focusFirstDescendant=(n,t=!1)=>{const r=document.activeElement;for(const i of n)if(tryFocus(i,t),document.activeElement!==r)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=n=>new CustomEvent(FOCUSOUT_PREVENTED,{...FOCUSOUT_PREVENTED_OPTS,detail:n}),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"},composeEventHandlers=(n,t,{checkForDefaultPrevented:r=!0}={})=>g=>{const $=n==null?void 0:n(g);if(r===!1||!$)return t==null?void 0:t(g)},whenMouse=n=>t=>t.pointerType==="mouse"?n(t):void 0,getEventCode=n=>{if(n.code&&n.code!=="Unidentified")return n.code;const t=getEventKey(n);if(t){if(Object.values(EVENT_CODE).includes(t))return t;switch(t){case" ":return EVENT_CODE.space;default:return""}}return""},getEventKey=n=>{let t=n.key&&n.key!=="Unidentified"?n.key:"";if(!t&&n.type==="keyup"&&isAndroid()){const r=n.target;t=r.value.charAt(r.selectionStart-1)}return t};let registeredEscapeHandlers=[];const cachedHandler=n=>{getEventCode(n)===EVENT_CODE.esc&®isteredEscapeHandlers.forEach(r=>r(n))},useEscapeKeydown=n=>{onMounted(()=>{registeredEscapeHandlers.length===0&&document.addEventListener("keydown",cachedHandler),isClient&®isteredEscapeHandlers.push(n)}),onBeforeUnmount(()=>{registeredEscapeHandlers=registeredEscapeHandlers.filter(t=>t!==n),registeredEscapeHandlers.length===0&&isClient&&document.removeEventListener("keydown",cachedHandler)})},_sfc_main$2Q=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(n,{emit:t}){const r=ref();let i,g;const{focusReason:$}=useFocusReason();useEscapeKeydown(he=>{n.trapped&&!V.paused&&t("release-requested",he)});const V={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},re=he=>{if(!n.loop&&!n.trapped||V.paused)return;const{altKey:pe,ctrlKey:_e,metaKey:Ce,currentTarget:xe,shiftKey:Ie}=he,{loop:Ne}=n,$e=getEventCode(he)===EVENT_CODE.tab&&!pe&&!_e&&!Ce,Ve=document.activeElement;if($e&&Ve){const Ue=xe,[Fe,ze]=getEdges(Ue);if(Fe&&ze){if(!Ie&&Ve===ze){const qe=createFocusOutPreventedEvent({focusReason:$.value});t("focusout-prevented",qe),qe.defaultPrevented||(he.preventDefault(),Ne&&tryFocus(Fe,!0))}else if(Ie&&[Fe,Ue].includes(Ve)){const qe=createFocusOutPreventedEvent({focusReason:$.value});t("focusout-prevented",qe),qe.defaultPrevented||(he.preventDefault(),Ne&&tryFocus(ze,!0))}}else if(Ve===Ue){const qe=createFocusOutPreventedEvent({focusReason:$.value});t("focusout-prevented",qe),qe.defaultPrevented||he.preventDefault()}}};provide(FOCUS_TRAP_INJECTION_KEY,{focusTrapRef:r,onKeydown:re}),watch(()=>n.focusTrapEl,he=>{he&&(r.value=he)},{immediate:!0}),watch([r],([he],[pe])=>{he&&(he.addEventListener("keydown",re),he.addEventListener("focusin",oe),he.addEventListener("focusout",le)),pe&&(pe.removeEventListener("keydown",re),pe.removeEventListener("focusin",oe),pe.removeEventListener("focusout",le))});const ie=he=>{t(ON_TRAP_FOCUS_EVT,he)},ae=he=>t(ON_RELEASE_FOCUS_EVT,he),oe=he=>{const pe=unref(r);if(!pe)return;const _e=he.target,Ce=he.relatedTarget,xe=_e&&pe.contains(_e);n.trapped||Ce&&pe.contains(Ce)||(i=Ce),xe&&t("focusin",he),!V.paused&&n.trapped&&(xe?g=_e:tryFocus(g,!0))},le=he=>{const pe=unref(r);if(!(V.paused||!pe))if(n.trapped){const _e=he.relatedTarget;!isNil(_e)&&!pe.contains(_e)&&setTimeout(()=>{if(!V.paused&&n.trapped){const Ce=createFocusOutPreventedEvent({focusReason:$.value});t("focusout-prevented",Ce),Ce.defaultPrevented||tryFocus(g,!0)}},0)}else{const _e=he.target;_e&&pe.contains(_e)||t("focusout",he)}};async function ue(){await nextTick();const he=unref(r);if(he){focusableStack.push(V);const pe=he.contains(document.activeElement)?i:document.activeElement;if(i=pe,!he.contains(pe)){const Ce=new Event(FOCUS_AFTER_TRAPPED,FOCUS_AFTER_TRAPPED_OPTS);he.addEventListener(FOCUS_AFTER_TRAPPED,ie),he.dispatchEvent(Ce),Ce.defaultPrevented||nextTick(()=>{let xe=n.focusStartEl;isString$2(xe)||(tryFocus(xe),document.activeElement!==xe&&(xe="first")),xe==="first"&&focusFirstDescendant(obtainAllFocusableElements(he),!0),(document.activeElement===pe||xe==="container")&&tryFocus(he)})}}}function de(){const he=unref(r);if(he){he.removeEventListener(FOCUS_AFTER_TRAPPED,ie);const pe=new CustomEvent(FOCUS_AFTER_RELEASED,{...FOCUS_AFTER_TRAPPED_OPTS,detail:{focusReason:$.value}});he.addEventListener(FOCUS_AFTER_RELEASED,ae),he.dispatchEvent(pe),!pe.defaultPrevented&&($.value=="keyboard"||!isFocusCausedByUserEvent()||he.contains(document.activeElement))&&tryFocus(i??document.body),he.removeEventListener(FOCUS_AFTER_RELEASED,ae),focusableStack.remove(V),i=null,g=null}}return onMounted(()=>{n.trapped&&ue(),watch(()=>n.trapped,he=>{he?ue():de()})}),onBeforeUnmount(()=>{n.trapped&&de(),r.value&&(r.value.removeEventListener("keydown",re),r.value.removeEventListener("focusin",oe),r.value.removeEventListener("focusout",le),r.value=void 0),i=null,g=null}),{onKeydown:re}}});function _sfc_render$l(n,t,r,i,g,$){return renderSlot(n.$slots,"default",{handleKeydown:n.onKeydown})}var ElFocusTrap=_export_sfc(_sfc_main$2Q,[["render",_sfc_render$l],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]),E$2="top",R="bottom",W="right",P$2="left",me="auto",G=[E$2,R,W,P$2],U$2="start",J="end",Xe="clippingParents",je="viewport",K="popper",Ye="reference",De=G.reduce(function(n,t){return n.concat([t+"-"+U$2,t+"-"+J])},[]),Ee=[].concat(G,[me]).reduce(function(n,t){return n.concat([t,t+"-"+U$2,t+"-"+J])},[]),Ge="beforeRead",Je="read",Ke="afterRead",Qe="beforeMain",Ze="main",et="afterMain",tt="beforeWrite",nt="write",rt$1="afterWrite",ot=[Ge,Je,Ke,Qe,Ze,et,tt,nt,rt$1];function C$1(n){return n?(n.nodeName||"").toLowerCase():null}function H$1(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function Q(n){var t=H$1(n).Element;return n instanceof t||n instanceof Element}function B$1(n){var t=H$1(n).HTMLElement;return n instanceof t||n instanceof HTMLElement}function Pe(n){if(typeof ShadowRoot>"u")return!1;var t=H$1(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function Mt(n){var t=n.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},g=t.attributes[r]||{},$=t.elements[r];!B$1($)||!C$1($)||(Object.assign($.style,i),Object.keys(g).forEach(function(V){var re=g[V];re===!1?$.removeAttribute(V):$.setAttribute(V,re===!0?"":re)}))})}function Rt(n){var t=n.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var g=t.elements[i],$=t.attributes[i]||{},V=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),re=V.reduce(function(ie,ae){return ie[ae]="",ie},{});!B$1(g)||!C$1(g)||(Object.assign(g.style,re),Object.keys($).forEach(function(ie){g.removeAttribute(ie)}))})}}var Ae={name:"applyStyles",enabled:!0,phase:"write",fn:Mt,effect:Rt,requires:["computeStyles"]};function q(n){return n.split("-")[0]}var X$1=Math.max,ve=Math.min,Z=Math.round;function ee(n,t){t===void 0&&(t=!1);var r=n.getBoundingClientRect(),i=1,g=1;if(B$1(n)&&t){var $=n.offsetHeight,V=n.offsetWidth;V>0&&(i=Z(r.width)/V||1),$>0&&(g=Z(r.height)/$||1)}return{width:r.width/i,height:r.height/g,top:r.top/g,right:r.right/i,bottom:r.bottom/g,left:r.left/i,x:r.left/i,y:r.top/g}}function ke(n){var t=ee(n),r=n.offsetWidth,i=n.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:n.offsetLeft,y:n.offsetTop,width:r,height:i}}function it(n,t){var r=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(r&&Pe(r)){var i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function N$1(n){return H$1(n).getComputedStyle(n)}function Wt(n){return["table","td","th"].indexOf(C$1(n))>=0}function I$1(n){return((Q(n)?n.ownerDocument:n.document)||window.document).documentElement}function ge(n){return C$1(n)==="html"?n:n.assignedSlot||n.parentNode||(Pe(n)?n.host:null)||I$1(n)}function at(n){return!B$1(n)||N$1(n).position==="fixed"?null:n.offsetParent}function Bt(n){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&B$1(n)){var i=N$1(n);if(i.position==="fixed")return null}var g=ge(n);for(Pe(g)&&(g=g.host);B$1(g)&&["html","body"].indexOf(C$1(g))<0;){var $=N$1(g);if($.transform!=="none"||$.perspective!=="none"||$.contain==="paint"||["transform","perspective"].indexOf($.willChange)!==-1||t&&$.willChange==="filter"||t&&$.filter&&$.filter!=="none")return g;g=g.parentNode}return null}function se(n){for(var t=H$1(n),r=at(n);r&&Wt(r)&&N$1(r).position==="static";)r=at(r);return r&&(C$1(r)==="html"||C$1(r)==="body"&&N$1(r).position==="static")?t:r||Bt(n)||t}function Le(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function fe(n,t,r){return X$1(n,ve(t,r))}function St(n,t,r){var i=fe(n,t,r);return i>r?r:i}function st(){return{top:0,right:0,bottom:0,left:0}}function ft(n){return Object.assign({},st(),n)}function ct(n,t){return t.reduce(function(r,i){return r[i]=n,r},{})}var Tt=function(n,t){return n=typeof n=="function"?n(Object.assign({},t.rects,{placement:t.placement})):n,ft(typeof n!="number"?n:ct(n,G))};function Ht(n){var t,r=n.state,i=n.name,g=n.options,$=r.elements.arrow,V=r.modifiersData.popperOffsets,re=q(r.placement),ie=Le(re),ae=[P$2,W].indexOf(re)>=0,oe=ae?"height":"width";if(!(!$||!V)){var le=Tt(g.padding,r),ue=ke($),de=ie==="y"?E$2:P$2,he=ie==="y"?R:W,pe=r.rects.reference[oe]+r.rects.reference[ie]-V[ie]-r.rects.popper[oe],_e=V[ie]-r.rects.reference[ie],Ce=se($),xe=Ce?ie==="y"?Ce.clientHeight||0:Ce.clientWidth||0:0,Ie=pe/2-_e/2,Ne=le[de],Oe=xe-ue[oe]-le[he],$e=xe/2-ue[oe]/2+Ie,Ve=fe(Ne,$e,Oe),Ue=ie;r.modifiersData[i]=(t={},t[Ue]=Ve,t.centerOffset=Ve-$e,t)}}function Ct(n){var t=n.state,r=n.options,i=r.element,g=i===void 0?"[data-popper-arrow]":i;g!=null&&(typeof g=="string"&&(g=t.elements.popper.querySelector(g),!g)||!it(t.elements.popper,g)||(t.elements.arrow=g))}var pt={name:"arrow",enabled:!0,phase:"main",fn:Ht,effect:Ct,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te(n){return n.split("-")[1]}var qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt(n){var t=n.x,r=n.y,i=window,g=i.devicePixelRatio||1;return{x:Z(t*g)/g||0,y:Z(r*g)/g||0}}function ut(n){var t,r=n.popper,i=n.popperRect,g=n.placement,$=n.variation,V=n.offsets,re=n.position,ie=n.gpuAcceleration,ae=n.adaptive,oe=n.roundOffsets,le=n.isFixed,ue=V.x,de=ue===void 0?0:ue,he=V.y,pe=he===void 0?0:he,_e=typeof oe=="function"?oe({x:de,y:pe}):{x:de,y:pe};de=_e.x,pe=_e.y;var Ce=V.hasOwnProperty("x"),xe=V.hasOwnProperty("y"),Ie=P$2,Ne=E$2,Oe=window;if(ae){var $e=se(r),Ve="clientHeight",Ue="clientWidth";if($e===H$1(r)&&($e=I$1(r),N$1($e).position!=="static"&&re==="absolute"&&(Ve="scrollHeight",Ue="scrollWidth")),$e=$e,g===E$2||(g===P$2||g===W)&&$===J){Ne=R;var Fe=le&&$e===Oe&&Oe.visualViewport?Oe.visualViewport.height:$e[Ve];pe-=Fe-i.height,pe*=ie?1:-1}if(g===P$2||(g===E$2||g===R)&&$===J){Ie=W;var ze=le&&$e===Oe&&Oe.visualViewport?Oe.visualViewport.width:$e[Ue];de-=ze-i.width,de*=ie?1:-1}}var Pt=Object.assign({position:re},ae&&qt),qe=oe===!0?Vt({x:de,y:pe}):{x:de,y:pe};if(de=qe.x,pe=qe.y,ie){var Et;return Object.assign({},Pt,(Et={},Et[Ne]=xe?"0":"",Et[Ie]=Ce?"0":"",Et.transform=(Oe.devicePixelRatio||1)<=1?"translate("+de+"px, "+pe+"px)":"translate3d("+de+"px, "+pe+"px, 0)",Et))}return Object.assign({},Pt,(t={},t[Ne]=xe?pe+"px":"",t[Ie]=Ce?de+"px":"",t.transform="",t))}function Nt(n){var t=n.state,r=n.options,i=r.gpuAcceleration,g=i===void 0?!0:i,$=r.adaptive,V=$===void 0?!0:$,re=r.roundOffsets,ie=re===void 0?!0:re,ae={placement:q(t.placement),variation:te(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:g,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ut(Object.assign({},ae,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:V,roundOffsets:ie})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ut(Object.assign({},ae,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ie})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nt,data:{}},ye={passive:!0};function It(n){var t=n.state,r=n.instance,i=n.options,g=i.scroll,$=g===void 0?!0:g,V=i.resize,re=V===void 0?!0:V,ie=H$1(t.elements.popper),ae=[].concat(t.scrollParents.reference,t.scrollParents.popper);return $&&ae.forEach(function(oe){oe.addEventListener("scroll",r.update,ye)}),re&&ie.addEventListener("resize",r.update,ye),function(){$&&ae.forEach(function(oe){oe.removeEventListener("scroll",r.update,ye)}),re&&ie.removeEventListener("resize",r.update,ye)}}var Re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:It,data:{}},_t={left:"right",right:"left",bottom:"top",top:"bottom"};function be(n){return n.replace(/left|right|bottom|top/g,function(t){return _t[t]})}var zt={start:"end",end:"start"};function lt$1(n){return n.replace(/start|end/g,function(t){return zt[t]})}function We(n){var t=H$1(n),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Be(n){return ee(I$1(n)).left+We(n).scrollLeft}function Ft(n){var t=H$1(n),r=I$1(n),i=t.visualViewport,g=r.clientWidth,$=r.clientHeight,V=0,re=0;return i&&(g=i.width,$=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(V=i.offsetLeft,re=i.offsetTop)),{width:g,height:$,x:V+Be(n),y:re}}function Ut(n){var t,r=I$1(n),i=We(n),g=(t=n.ownerDocument)==null?void 0:t.body,$=X$1(r.scrollWidth,r.clientWidth,g?g.scrollWidth:0,g?g.clientWidth:0),V=X$1(r.scrollHeight,r.clientHeight,g?g.scrollHeight:0,g?g.clientHeight:0),re=-i.scrollLeft+Be(n),ie=-i.scrollTop;return N$1(g||r).direction==="rtl"&&(re+=X$1(r.clientWidth,g?g.clientWidth:0)-$),{width:$,height:V,x:re,y:ie}}function Se(n){var t=N$1(n),r=t.overflow,i=t.overflowX,g=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+g+i)}function dt(n){return["html","body","#document"].indexOf(C$1(n))>=0?n.ownerDocument.body:B$1(n)&&Se(n)?n:dt(ge(n))}function ce(n,t){var r;t===void 0&&(t=[]);var i=dt(n),g=i===((r=n.ownerDocument)==null?void 0:r.body),$=H$1(i),V=g?[$].concat($.visualViewport||[],Se(i)?i:[]):i,re=t.concat(V);return g?re:re.concat(ce(ge(V)))}function Te(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Xt(n){var t=ee(n);return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function ht(n,t){return t===je?Te(Ft(n)):Q(t)?Xt(t):Te(Ut(I$1(n)))}function Yt(n){var t=ce(ge(n)),r=["absolute","fixed"].indexOf(N$1(n).position)>=0,i=r&&B$1(n)?se(n):n;return Q(i)?t.filter(function(g){return Q(g)&&it(g,i)&&C$1(g)!=="body"}):[]}function Gt(n,t,r){var i=t==="clippingParents"?Yt(n):[].concat(t),g=[].concat(i,[r]),$=g[0],V=g.reduce(function(re,ie){var ae=ht(n,ie);return re.top=X$1(ae.top,re.top),re.right=ve(ae.right,re.right),re.bottom=ve(ae.bottom,re.bottom),re.left=X$1(ae.left,re.left),re},ht(n,$));return V.width=V.right-V.left,V.height=V.bottom-V.top,V.x=V.left,V.y=V.top,V}function mt(n){var t=n.reference,r=n.element,i=n.placement,g=i?q(i):null,$=i?te(i):null,V=t.x+t.width/2-r.width/2,re=t.y+t.height/2-r.height/2,ie;switch(g){case E$2:ie={x:V,y:t.y-r.height};break;case R:ie={x:V,y:t.y+t.height};break;case W:ie={x:t.x+t.width,y:re};break;case P$2:ie={x:t.x-r.width,y:re};break;default:ie={x:t.x,y:t.y}}var ae=g?Le(g):null;if(ae!=null){var oe=ae==="y"?"height":"width";switch($){case U$2:ie[ae]=ie[ae]-(t[oe]/2-r[oe]/2);break;case J:ie[ae]=ie[ae]+(t[oe]/2-r[oe]/2);break}}return ie}function ne(n,t){t===void 0&&(t={});var r=t,i=r.placement,g=i===void 0?n.placement:i,$=r.boundary,V=$===void 0?Xe:$,re=r.rootBoundary,ie=re===void 0?je:re,ae=r.elementContext,oe=ae===void 0?K:ae,le=r.altBoundary,ue=le===void 0?!1:le,de=r.padding,he=de===void 0?0:de,pe=ft(typeof he!="number"?he:ct(he,G)),_e=oe===K?Ye:K,Ce=n.rects.popper,xe=n.elements[ue?_e:oe],Ie=Gt(Q(xe)?xe:xe.contextElement||I$1(n.elements.popper),V,ie),Ne=ee(n.elements.reference),Oe=mt({reference:Ne,element:Ce,strategy:"absolute",placement:g}),$e=Te(Object.assign({},Ce,Oe)),Ve=oe===K?$e:Ne,Ue={top:Ie.top-Ve.top+pe.top,bottom:Ve.bottom-Ie.bottom+pe.bottom,left:Ie.left-Ve.left+pe.left,right:Ve.right-Ie.right+pe.right},Fe=n.modifiersData.offset;if(oe===K&&Fe){var ze=Fe[g];Object.keys(Ue).forEach(function(Pt){var qe=[W,R].indexOf(Pt)>=0?1:-1,Et=[E$2,R].indexOf(Pt)>=0?"y":"x";Ue[Pt]+=ze[Et]*qe})}return Ue}function Jt(n,t){t===void 0&&(t={});var r=t,i=r.placement,g=r.boundary,$=r.rootBoundary,V=r.padding,re=r.flipVariations,ie=r.allowedAutoPlacements,ae=ie===void 0?Ee:ie,oe=te(i),le=oe?re?De:De.filter(function(he){return te(he)===oe}):G,ue=le.filter(function(he){return ae.indexOf(he)>=0});ue.length===0&&(ue=le);var de=ue.reduce(function(he,pe){return he[pe]=ne(n,{placement:pe,boundary:g,rootBoundary:$,padding:V})[q(pe)],he},{});return Object.keys(de).sort(function(he,pe){return de[he]-de[pe]})}function Kt(n){if(q(n)===me)return[];var t=be(n);return[lt$1(n),t,lt$1(t)]}function Qt(n){var t=n.state,r=n.options,i=n.name;if(!t.modifiersData[i]._skip){for(var g=r.mainAxis,$=g===void 0?!0:g,V=r.altAxis,re=V===void 0?!0:V,ie=r.fallbackPlacements,ae=r.padding,oe=r.boundary,le=r.rootBoundary,ue=r.altBoundary,de=r.flipVariations,he=de===void 0?!0:de,pe=r.allowedAutoPlacements,_e=t.options.placement,Ce=q(_e),xe=Ce===_e,Ie=ie||(xe||!he?[be(_e)]:Kt(_e)),Ne=[_e].concat(Ie).reduce(function(Cn,Sn){return Cn.concat(q(Sn)===me?Jt(t,{placement:Sn,boundary:oe,rootBoundary:le,padding:ae,flipVariations:he,allowedAutoPlacements:pe}):Sn)},[]),Oe=t.rects.reference,$e=t.rects.popper,Ve=new Map,Ue=!0,Fe=Ne[0],ze=0;ze=0,At=kt?"width":"height",Dt=ne(t,{placement:Pt,boundary:oe,rootBoundary:le,altBoundary:ue,padding:ae}),Lt=kt?Et?W:P$2:Et?R:E$2;Oe[At]>$e[At]&&(Lt=be(Lt));var jt=be(Lt),hn=[];if($&&hn.push(Dt[qe]<=0),re&&hn.push(Dt[Lt]<=0,Dt[jt]<=0),hn.every(function(Cn){return Cn})){Fe=Pt,Ue=!1;break}Ve.set(Pt,hn)}if(Ue)for(var vn=he?3:1,_n=function(Cn){var Sn=Ne.find(function(Tn){var En=Ve.get(Tn);if(En)return En.slice(0,Cn).every(function(kn){return kn})});if(Sn)return Fe=Sn,"break"},wn=vn;wn>0;wn--){var bn=_n(wn);if(bn==="break")break}t.placement!==Fe&&(t.modifiersData[i]._skip=!0,t.placement=Fe,t.reset=!0)}}var vt={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt(n,t,r){return r===void 0&&(r={x:0,y:0}),{top:n.top-t.height-r.y,right:n.right-t.width+r.x,bottom:n.bottom-t.height+r.y,left:n.left-t.width-r.x}}function yt(n){return[E$2,W,R,P$2].some(function(t){return n[t]>=0})}function Zt(n){var t=n.state,r=n.name,i=t.rects.reference,g=t.rects.popper,$=t.modifiersData.preventOverflow,V=ne(t,{elementContext:"reference"}),re=ne(t,{altBoundary:!0}),ie=gt(V,i),ae=gt(re,g,$),oe=yt(ie),le=yt(ae);t.modifiersData[r]={referenceClippingOffsets:ie,popperEscapeOffsets:ae,isReferenceHidden:oe,hasPopperEscaped:le},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":oe,"data-popper-escaped":le})}var bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en(n,t,r){var i=q(n),g=[P$2,E$2].indexOf(i)>=0?-1:1,$=typeof r=="function"?r(Object.assign({},t,{placement:n})):r,V=$[0],re=$[1];return V=V||0,re=(re||0)*g,[P$2,W].indexOf(i)>=0?{x:re,y:V}:{x:V,y:re}}function tn(n){var t=n.state,r=n.options,i=n.name,g=r.offset,$=g===void 0?[0,0]:g,V=Ee.reduce(function(oe,le){return oe[le]=en(le,t.rects,$),oe},{}),re=V[t.placement],ie=re.x,ae=re.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=ie,t.modifiersData.popperOffsets.y+=ae),t.modifiersData[i]=V}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn};function nn(n){var t=n.state,r=n.name;t.modifiersData[r]=mt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var He={name:"popperOffsets",enabled:!0,phase:"read",fn:nn,data:{}};function rn(n){return n==="x"?"y":"x"}function on(n){var t=n.state,r=n.options,i=n.name,g=r.mainAxis,$=g===void 0?!0:g,V=r.altAxis,re=V===void 0?!1:V,ie=r.boundary,ae=r.rootBoundary,oe=r.altBoundary,le=r.padding,ue=r.tether,de=ue===void 0?!0:ue,he=r.tetherOffset,pe=he===void 0?0:he,_e=ne(t,{boundary:ie,rootBoundary:ae,padding:le,altBoundary:oe}),Ce=q(t.placement),xe=te(t.placement),Ie=!xe,Ne=Le(Ce),Oe=rn(Ne),$e=t.modifiersData.popperOffsets,Ve=t.rects.reference,Ue=t.rects.popper,Fe=typeof pe=="function"?pe(Object.assign({},t.rects,{placement:t.placement})):pe,ze=typeof Fe=="number"?{mainAxis:Fe,altAxis:Fe}:Object.assign({mainAxis:0,altAxis:0},Fe),Pt=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,qe={x:0,y:0};if($e){if($){var Et,kt=Ne==="y"?E$2:P$2,At=Ne==="y"?R:W,Dt=Ne==="y"?"height":"width",Lt=$e[Ne],jt=Lt+_e[kt],hn=Lt-_e[At],vn=de?-Ue[Dt]/2:0,_n=xe===U$2?Ve[Dt]:Ue[Dt],wn=xe===U$2?-Ue[Dt]:-Ve[Dt],bn=t.elements.arrow,Cn=de&&bn?ke(bn):{width:0,height:0},Sn=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:st(),Tn=Sn[kt],En=Sn[At],kn=fe(0,Ve[Dt],Cn[Dt]),$n=Ie?Ve[Dt]/2-vn-kn-Tn-ze.mainAxis:_n-kn-Tn-ze.mainAxis,An=Ie?-Ve[Dt]/2+vn+kn+En+ze.mainAxis:wn+kn+En+ze.mainAxis,xn=t.elements.arrow&&se(t.elements.arrow),Ln=xn?Ne==="y"?xn.clientTop||0:xn.clientLeft||0:0,Nn=(Et=Pt==null?void 0:Pt[Ne])!=null?Et:0,Pn=Lt+$n-Nn-Ln,On=Lt+An-Nn,Hn=fe(de?ve(jt,Pn):jt,Lt,de?X$1(hn,On):hn);$e[Ne]=Hn,qe[Ne]=Hn-Lt}if(re){var Xn,In=Ne==="x"?E$2:P$2,or=Ne==="x"?R:W,Qn=$e[Oe],Zn=Oe==="y"?"height":"width",Gn=Qn+_e[In],Rn=Qn-_e[or],Mn=[E$2,P$2].indexOf(Ce)!==-1,Bn=(Xn=Pt==null?void 0:Pt[Oe])!=null?Xn:0,qn=Mn?Gn:Qn-Ve[Zn]-Ue[Zn]-Bn+ze.altAxis,zn=Mn?Qn+Ve[Zn]+Ue[Zn]-Bn-ze.altAxis:Rn,jn=de&&Mn?St(qn,Qn,zn):fe(de?qn:Gn,Qn,de?zn:Rn);$e[Oe]=jn,qe[Oe]=jn-Qn}t.modifiersData[i]=qe}}var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:on,requiresIfExists:["offset"]};function an(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function sn(n){return n===H$1(n)||!B$1(n)?We(n):an(n)}function fn(n){var t=n.getBoundingClientRect(),r=Z(t.width)/n.offsetWidth||1,i=Z(t.height)/n.offsetHeight||1;return r!==1||i!==1}function cn(n,t,r){r===void 0&&(r=!1);var i=B$1(t),g=B$1(t)&&fn(t),$=I$1(t),V=ee(n,g),re={scrollLeft:0,scrollTop:0},ie={x:0,y:0};return(i||!i&&!r)&&((C$1(t)!=="body"||Se($))&&(re=sn(t)),B$1(t)?(ie=ee(t,!0),ie.x+=t.clientLeft,ie.y+=t.clientTop):$&&(ie.x=Be($))),{x:V.left+re.scrollLeft-ie.x,y:V.top+re.scrollTop-ie.y,width:V.width,height:V.height}}function pn(n){var t=new Map,r=new Set,i=[];n.forEach(function($){t.set($.name,$)});function g($){r.add($.name);var V=[].concat($.requires||[],$.requiresIfExists||[]);V.forEach(function(re){if(!r.has(re)){var ie=t.get(re);ie&&g(ie)}}),i.push($)}return n.forEach(function($){r.has($.name)||g($)}),i}function un(n){var t=pn(n);return ot.reduce(function(r,i){return r.concat(t.filter(function(g){return g.phase===i}))},[])}function ln(n){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(n())})})),t}}function dn(n){var t=n.reduce(function(r,i){var g=r[i.name];return r[i.name]=g?Object.assign({},g,i,{options:Object.assign({},g.options,i.options),data:Object.assign({},g.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var n=arguments.length,t=new Array(n),r=0;r({})},strategy:{type:String,values:POSITIONING_STRATEGIES,default:"absolute"}}),popperContentProps=buildProps({...popperCoreConfigProps,...popperArrowProps,id:String,style:{type:definePropType([String,Array,Object])},className:{type:definePropType([String,Array,Object])},effect:{type:definePropType(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,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},virtualTriggering:Boolean,zIndex:Number,...useAriaProps(["ariaLabel"]),loop:Boolean}),popperContentEmits={mouseenter:n=>n instanceof MouseEvent,mouseleave:n=>n instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},usePopperContentFocusTrap=(n,t)=>{const r=ref(!1),i=ref(),g=()=>{t("focus")},$=ae=>{var oe;((oe=ae.detail)==null?void 0:oe.focusReason)!=="pointer"&&(i.value="first",t("blur"))},V=ae=>{n.visible&&!r.value&&(ae.target&&(i.value=ae.target),r.value=!0)},re=ae=>{n.trapping||(ae.detail.focusReason==="pointer"&&ae.preventDefault(),r.value=!1)},ie=()=>{r.value=!1,t("close")};return onBeforeUnmount(()=>{i.value=void 0}),{focusStartRef:i,trapped:r,onFocusAfterReleased:$,onFocusAfterTrapped:g,onFocusInTrap:V,onFocusoutPrevented:re,onReleaseRequested:ie}},buildPopperOptions=(n,t=[])=>{const{placement:r,strategy:i,popperOptions:g}=n,$={placement:r,strategy:i,...g,modifiers:[...genModifiers(n),...t]};return deriveExtraModifiers($,g==null?void 0:g.modifiers),$},unwrapMeasurableEl=n=>{if(isClient)return unrefElement(n)};function genModifiers(n){const{offset:t,gpuAcceleration:r,fallbackPlacements:i}=n;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:i}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function deriveExtraModifiers(n,t){t&&(n.modifiers=[...n.modifiers,...t??[]])}const usePopper=(n,t,r={})=>{const i={name:"updateState",enabled:!0,phase:"write",fn:({state:ie})=>{const ae=deriveState(ie);Object.assign(V.value,ae)},requires:["computeStyles"]},g=computed(()=>{const{onFirstUpdate:ie,placement:ae,strategy:oe,modifiers:le}=unref(r);return{onFirstUpdate:ie,placement:ae||"bottom",strategy:oe||"absolute",modifiers:[...le||[],i,{name:"applyStyles",enabled:!1}]}}),$=shallowRef(),V=ref({styles:{popper:{position:unref(g).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),re=()=>{$.value&&($.value.destroy(),$.value=void 0)};return watch(g,ie=>{const ae=unref($);ae&&ae.setOptions(ie)},{deep:!0}),watch([n,t],([ie,ae])=>{re(),!(!ie||!ae)&&($.value=yn(ie,ae,unref(g)))}),onBeforeUnmount(()=>{re()}),{state:computed(()=>{var ie;return{...((ie=unref($))==null?void 0:ie.state)||{}}}),styles:computed(()=>unref(V).styles),attributes:computed(()=>unref(V).attributes),update:()=>{var ie;return(ie=unref($))==null?void 0:ie.update()},forceUpdate:()=>{var ie;return(ie=unref($))==null?void 0:ie.forceUpdate()},instanceRef:computed(()=>unref($))}};function deriveState(n){const t=Object.keys(n.elements),r=fromPairs(t.map(g=>[g,n.styles[g]||{}])),i=fromPairs(t.map(g=>[g,n.attributes[g]]));return{styles:r,attributes:i}}const DEFAULT_ARROW_OFFSET=0,usePopperContent=n=>{const{popperInstanceRef:t,contentRef:r,triggerRef:i,role:g}=inject(POPPER_INJECTION_KEY,void 0),$=ref(),V=computed(()=>n.arrowOffset),re=computed(()=>({name:"eventListeners",enabled:!!n.visible})),ie=computed(()=>{var Ce;const xe=unref($),Ie=(Ce=unref(V))!=null?Ce:DEFAULT_ARROW_OFFSET;return{name:"arrow",enabled:!isUndefined$2(xe),options:{element:xe,padding:Ie}}}),ae=computed(()=>({onFirstUpdate:()=>{he()},...buildPopperOptions(n,[unref(ie),unref(re)])})),oe=computed(()=>unwrapMeasurableEl(n.referenceEl)||unref(i)),{attributes:le,state:ue,styles:de,update:he,forceUpdate:pe,instanceRef:_e}=usePopper(oe,r,ae);return watch(_e,Ce=>t.value=Ce,{flush:"sync"}),onMounted(()=>{watch(()=>{var Ce,xe;return(xe=(Ce=unref(oe))==null?void 0:Ce.getBoundingClientRect)==null?void 0:xe.call(Ce)},()=>{he()})}),onBeforeUnmount(()=>{t.value=void 0}),{attributes:le,arrowRef:$,contentRef:r,instanceRef:_e,state:ue,styles:de,role:g,forceUpdate:pe,update:he}},usePopperContentDOM=(n,{attributes:t,styles:r,role:i})=>{const{nextZIndex:g}=useZIndex(),$=useNamespace("popper"),V=computed(()=>unref(t).popper),re=ref(isNumber$2(n.zIndex)?n.zIndex:g()),ie=computed(()=>[$.b(),$.is("pure",n.pure),$.is(n.effect),n.popperClass]),ae=computed(()=>[{zIndex:unref(re)},unref(r).popper,n.popperStyle||{}]),oe=computed(()=>i.value==="dialog"?"false":void 0),le=computed(()=>unref(r).arrow||{});return{ariaModal:oe,arrowStyle:le,contentAttrs:V,contentClass:ie,contentStyle:ae,contentZIndex:re,updateZIndex:()=>{re.value=isNumber$2(n.zIndex)?n.zIndex:g()}}},_sfc_main$2P=defineComponent({name:"ElPopperContent",__name:"content",props:popperContentProps,emits:popperContentEmits,setup(n,{expose:t,emit:r}){const i=r,g=n,{focusStartRef:$,trapped:V,onFocusAfterReleased:re,onFocusAfterTrapped:ie,onFocusInTrap:ae,onFocusoutPrevented:oe,onReleaseRequested:le}=usePopperContentFocusTrap(g,i),{attributes:ue,arrowRef:de,contentRef:he,styles:pe,instanceRef:_e,role:Ce,update:xe}=usePopperContent(g),{ariaModal:Ie,arrowStyle:Ne,contentAttrs:Oe,contentClass:$e,contentStyle:Ve,updateZIndex:Ue}=usePopperContentDOM(g,{styles:pe,attributes:ue,role:Ce}),Fe=inject(formItemContextKey,void 0);provide(POPPER_CONTENT_INJECTION_KEY,{arrowStyle:Ne,arrowRef:de}),Fe&&provide(formItemContextKey,{...Fe,addInputId:NOOP,removeInputId:NOOP});let ze;const Pt=(Et=!0)=>{xe(),Et&&Ue()},qe=()=>{Pt(!1),g.visible&&g.focusOnShow?V.value=!0:g.visible===!1&&(V.value=!1)};return onMounted(()=>{watch(()=>g.triggerTargetEl,(Et,kt)=>{ze==null||ze(),ze=void 0;const At=unref(Et||he.value),Dt=unref(kt||he.value);isElement$1(At)&&(ze=watch([Ce,()=>g.ariaLabel,Ie,()=>g.id],Lt=>{["role","aria-label","aria-modal","id"].forEach((jt,hn)=>{isNil(Lt[hn])?At.removeAttribute(jt):At.setAttribute(jt,Lt[hn])})},{immediate:!0})),Dt!==At&&isElement$1(Dt)&&["role","aria-label","aria-modal","id"].forEach(Lt=>{Dt.removeAttribute(Lt)})},{immediate:!0}),watch(()=>g.visible,qe,{immediate:!0})}),onBeforeUnmount(()=>{ze==null||ze(),ze=void 0,he.value=void 0}),t({popperContentRef:he,popperInstanceRef:_e,updatePopper:Pt,contentStyle:Ve}),(Et,kt)=>(openBlock(),createElementBlock("div",mergeProps({ref_key:"contentRef",ref:he},unref(Oe),{style:unref(Ve),class:unref($e),tabindex:"-1",onMouseenter:kt[0]||(kt[0]=At=>Et.$emit("mouseenter",At)),onMouseleave:kt[1]||(kt[1]=At=>Et.$emit("mouseleave",At))}),[createVNode$1(unref(ElFocusTrap),{loop:Et.loop,trapped:unref(V),"trap-on-focus-in":!0,"focus-trap-el":unref(he),"focus-start-el":unref($),onFocusAfterTrapped:unref(ie),onFocusAfterReleased:unref(re),onFocusin:unref(ae),onFocusoutPrevented:unref(oe),onReleaseRequested:unref(le)},{default:withCtx(()=>[renderSlot(Et.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var ElPopperContent=_export_sfc(_sfc_main$2P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const ElPopper=withInstall(Popper),TOOLTIP_INJECTION_KEY=Symbol("elTooltip");function useTimeout(){let n;const t=(i,g)=>{r(),n=window.setTimeout(i,g)},r=()=>window.clearTimeout(n);return tryOnScopeDispose(()=>r()),{registerTimeout:t,cancelTimeout:r}}const useDelayedToggleProps=buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),useDelayedToggle=({showAfter:n,hideAfter:t,autoClose:r,open:i,close:g})=>{const{registerTimeout:$}=useTimeout(),{registerTimeout:V,cancelTimeout:re}=useTimeout();return{onOpen:(oe,le=unref(n))=>{$(()=>{i(oe);const ue=unref(r);isNumber$2(ue)&&ue>0&&V(()=>{g(oe)},ue)},le)},onClose:(oe,le=unref(t))=>{re(),$(()=>{g(oe)},le)}}},useTooltipContentProps=buildProps({...useDelayedToggleProps,...popperContentProps,appendTo:{type:teleportProps.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:definePropType(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...useAriaProps(["ariaLabel"])}),useTooltipTriggerProps=buildProps({...popperTriggerProps,disabled:Boolean,trigger:{type:definePropType([String,Array]),default:"hover"},triggerKeys:{type:definePropType(Array),default:()=>[EVENT_CODE.enter,EVENT_CODE.numpadEnter,EVENT_CODE.space]},focusOnTarget:Boolean}),_prop=buildProp({type:definePropType(Boolean),default:null}),_event=buildProp({type:definePropType(Function)}),createModelToggleComposable=n=>{const t=`update:${n}`,r=`onUpdate:${n}`,i=[t],g={[n]:_prop,[r]:_event};return{useModelToggle:({indicator:V,toggleReason:re,shouldHideWhenRouteChanges:ie,shouldProceed:ae,onShow:oe,onHide:le})=>{const ue=getCurrentInstance(),{emit:de}=ue,he=ue.props,pe=computed(()=>isFunction$4(he[r])),_e=computed(()=>he[n]===null),Ce=Ve=>{V.value!==!0&&(V.value=!0,re&&(re.value=Ve),isFunction$4(oe)&&oe(Ve))},xe=Ve=>{V.value!==!1&&(V.value=!1,re&&(re.value=Ve),isFunction$4(le)&&le(Ve))},Ie=Ve=>{if(he.disabled===!0||isFunction$4(ae)&&!ae())return;const Ue=pe.value&&isClient;Ue&&de(t,!0),(_e.value||!Ue)&&Ce(Ve)},Ne=Ve=>{if(he.disabled===!0||!isClient)return;const Ue=pe.value&&isClient;Ue&&de(t,!1),(_e.value||!Ue)&&xe(Ve)},Oe=Ve=>{isBoolean$1(Ve)&&(he.disabled&&Ve?pe.value&&de(t,!1):V.value!==Ve&&(Ve?Ce():xe()))},$e=()=>{V.value?Ne():Ie()};return watch(()=>he[n],Oe),ie&&ue.appContext.config.globalProperties.$route!==void 0&&watch(()=>({...ue.proxy.$route}),()=>{ie.value&&V.value&&Ne()}),onMounted(()=>{Oe(he[n])}),{hide:Ne,show:Ie,toggle:$e,hasUpdateHandler:pe}},useModelToggleProps:g,useModelToggleEmits:i}};createModelToggleComposable("modelValue");const{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=(n,t)=>isArray$5(n)?n.includes(t):n===t,whenTrigger=(n,t,r)=>i=>{isTriggerType(unref(n),t)&&r(i)},_sfc_main$2O=defineComponent({name:"ElTooltipTrigger",__name:"trigger",props:useTooltipTriggerProps,setup(n,{expose:t}){const r=n,i=useNamespace("tooltip"),{controlled:g,id:$,open:V,onOpen:re,onClose:ie,onToggle:ae}=inject(TOOLTIP_INJECTION_KEY,void 0),oe=ref(null),le=()=>{if(unref(g)||r.disabled)return!0},ue=toRef$1(r,"trigger"),de=composeEventHandlers(le,whenTrigger(ue,"hover",Ne=>{re(Ne),r.focusOnTarget&&Ne.target&&nextTick(()=>{focusElement(Ne.target,{preventScroll:!0})})})),he=composeEventHandlers(le,whenTrigger(ue,"hover",ie)),pe=composeEventHandlers(le,whenTrigger(ue,"click",Ne=>{Ne.button===0&&ae(Ne)})),_e=composeEventHandlers(le,whenTrigger(ue,"focus",re)),Ce=composeEventHandlers(le,whenTrigger(ue,"focus",ie)),xe=composeEventHandlers(le,whenTrigger(ue,"contextmenu",Ne=>{Ne.preventDefault(),ae(Ne)})),Ie=composeEventHandlers(le,Ne=>{const Oe=getEventCode(Ne);r.triggerKeys.includes(Oe)&&(Ne.preventDefault(),ae(Ne))});return t({triggerRef:oe}),(Ne,Oe)=>(openBlock(),createBlock(unref(ElPopperTrigger),{id:unref($),"virtual-ref":Ne.virtualRef,open:unref(V),"virtual-triggering":Ne.virtualTriggering,class:normalizeClass(unref(i).e("trigger")),onBlur:unref(Ce),onClick:unref(pe),onContextmenu:unref(xe),onFocus:unref(_e),onMouseenter:unref(de),onMouseleave:unref(he),onKeydown:unref(Ie)},{default:withCtx(()=>[renderSlot(Ne.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var ElTooltipTrigger=_export_sfc(_sfc_main$2O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const usePopperContainerId=()=>{const n=useGetDerivedNamespace(),t=useIdInjection(),r=computed(()=>`${n.value}-popper-container-${t.prefix}`),i=computed(()=>`#${r.value}`);return{id:r,selector:i}},createContainer=n=>{const t=document.createElement("div");return t.id=n,document.body.appendChild(t),t},usePopperContainer=()=>{const{id:n,selector:t}=usePopperContainerId();return onBeforeMount(()=>{isClient&&(document.body.querySelector(t.value)||createContainer(n.value))}),{id:n,selector:t}},unique=n=>[...new Set(n)],extractFirst=n=>isArray$5(n)?n[0]:n,castArray=n=>!n&&n!==0?[]:isArray$5(n)?n:[n],_sfc_main$2N=defineComponent({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:useTooltipContentProps,setup(n,{expose:t}){const r=n,{selector:i}=usePopperContainerId(),g=useNamespace("tooltip"),$=ref(),V=computedEager(()=>{var jt;return(jt=$.value)==null?void 0:jt.popperContentRef});let re;const{controlled:ie,id:ae,open:oe,trigger:le,onClose:ue,onOpen:de,onShow:he,onHide:pe,onBeforeShow:_e,onBeforeHide:Ce}=inject(TOOLTIP_INJECTION_KEY,void 0),xe=computed(()=>r.transition||`${g.namespace.value}-fade-in-linear`),Ie=computed(()=>r.persistent);onBeforeUnmount(()=>{re==null||re()});const Ne=computed(()=>unref(Ie)?!0:unref(oe)),Oe=computed(()=>r.disabled?!1:unref(oe)),$e=computed(()=>r.appendTo||i.value),Ve=computed(()=>{var jt;return(jt=r.style)!=null?jt:{}}),Ue=ref(!0),Fe=()=>{pe(),Lt()&&focusElement(document.body,{preventScroll:!0}),Ue.value=!0},ze=()=>{if(unref(ie))return!0},Pt=composeEventHandlers(ze,()=>{r.enterable&&isTriggerType(unref(le),"hover")&&de()}),qe=composeEventHandlers(ze,()=>{isTriggerType(unref(le),"hover")&&ue()}),Et=()=>{var jt,hn;(hn=(jt=$.value)==null?void 0:jt.updatePopper)==null||hn.call(jt),_e==null||_e()},kt=()=>{Ce==null||Ce()},At=()=>{he()},Dt=()=>{r.virtualTriggering||ue()},Lt=jt=>{var hn;const vn=(hn=$.value)==null?void 0:hn.popperContentRef,_n=(jt==null?void 0:jt.relatedTarget)||document.activeElement;return vn==null?void 0:vn.contains(_n)};return watch(()=>unref(oe),jt=>{jt?(Ue.value=!1,re=onClickOutside(V,()=>{if(unref(ie))return;castArray(unref(le)).every(vn=>vn!=="hover"&&vn!=="focus")&&ue()},{detectIframe:!0})):re==null||re()},{flush:"post"}),watch(()=>r.content,()=>{var jt,hn;(hn=(jt=$.value)==null?void 0:jt.updatePopper)==null||hn.call(jt)}),t({contentRef:$,isFocusInsideContent:Lt}),(jt,hn)=>(openBlock(),createBlock(unref(ElTeleport),{disabled:!jt.teleported,to:$e.value},{default:withCtx(()=>[Ne.value||!Ue.value?(openBlock(),createBlock(Transition,{key:0,name:xe.value,appear:!Ie.value,onAfterLeave:Fe,onBeforeEnter:Et,onAfterEnter:At,onBeforeLeave:kt,persisted:""},{default:withCtx(()=>[withDirectives(createVNode$1(unref(ElPopperContent),mergeProps({id:unref(ae),ref_key:"contentRef",ref:$},jt.$attrs,{"aria-label":jt.ariaLabel,"aria-hidden":Ue.value,"boundaries-padding":jt.boundariesPadding,"fallback-placements":jt.fallbackPlacements,"gpu-acceleration":jt.gpuAcceleration,offset:jt.offset,placement:jt.placement,"popper-options":jt.popperOptions,"arrow-offset":jt.arrowOffset,strategy:jt.strategy,effect:jt.effect,enterable:jt.enterable,pure:jt.pure,"popper-class":jt.popperClass,"popper-style":[jt.popperStyle,Ve.value],"reference-el":jt.referenceEl,"trigger-target-el":jt.triggerTargetEl,visible:Oe.value,"z-index":jt.zIndex,loop:jt.loop,onMouseenter:unref(Pt),onMouseleave:unref(qe),onBlur:Dt,onClose:unref(ue)}),{default:withCtx(()=>[renderSlot(jt.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[vShow,Oe.value]])]),_:3},8,["name","appear"])):createCommentVNode("v-if",!0)]),_:3},8,["disabled","to"]))}});var ElTooltipContent=_export_sfc(_sfc_main$2N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const _hoisted_1$1B=["innerHTML"],_hoisted_2$Z={key:1},_sfc_main$2M=defineComponent({name:"ElTooltip",__name:"tooltip",props:useTooltipProps,emits:tooltipEmits,setup(n,{expose:t,emit:r}){const i=n,g=r;usePopperContainer();const $=useNamespace("tooltip"),V=useId(),re=ref(),ie=ref(),ae=()=>{var Ne;const Oe=unref(re);Oe&&((Ne=Oe.popperInstanceRef)==null||Ne.update())},oe=ref(!1),le=ref(),{show:ue,hide:de,hasUpdateHandler:he}=useTooltipModelToggle({indicator:oe,toggleReason:le}),{onOpen:pe,onClose:_e}=useDelayedToggle({showAfter:toRef$1(i,"showAfter"),hideAfter:toRef$1(i,"hideAfter"),autoClose:toRef$1(i,"autoClose"),open:ue,close:de}),Ce=computed(()=>isBoolean$1(i.visible)&&!he.value),xe=computed(()=>[$.b(),i.popperClass]);provide(TOOLTIP_INJECTION_KEY,{controlled:Ce,id:V,open:readonly(oe),trigger:toRef$1(i,"trigger"),onOpen:pe,onClose:_e,onToggle:Ne=>{unref(oe)?_e(Ne):pe(Ne)},onShow:()=>{g("show",le.value)},onHide:()=>{g("hide",le.value)},onBeforeShow:()=>{g("before-show",le.value)},onBeforeHide:()=>{g("before-hide",le.value)},updatePopper:ae}),watch(()=>i.disabled,Ne=>{Ne&&oe.value&&(oe.value=!1)});const Ie=Ne=>{var Oe;return(Oe=ie.value)==null?void 0:Oe.isFocusInsideContent(Ne)};return onDeactivated(()=>oe.value&&de()),onBeforeUnmount(()=>{le.value=void 0}),t({popperRef:re,contentRef:ie,isFocusInsideContent:Ie,updatePopper:ae,onOpen:pe,onClose:_e,hide:de}),(Ne,Oe)=>(openBlock(),createBlock(unref(ElPopper),{ref_key:"popperRef",ref:re,role:Ne.role},{default:withCtx(()=>[createVNode$1(ElTooltipTrigger,{disabled:Ne.disabled,trigger:Ne.trigger,"trigger-keys":Ne.triggerKeys,"virtual-ref":Ne.virtualRef,"virtual-triggering":Ne.virtualTriggering,"focus-on-target":Ne.focusOnTarget},{default:withCtx(()=>[Ne.$slots.default?renderSlot(Ne.$slots,"default",{key:0}):createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),createVNode$1(ElTooltipContent,{ref_key:"contentRef",ref:ie,"aria-label":Ne.ariaLabel,"boundaries-padding":Ne.boundariesPadding,content:Ne.content,disabled:Ne.disabled,effect:Ne.effect,enterable:Ne.enterable,"fallback-placements":Ne.fallbackPlacements,"hide-after":Ne.hideAfter,"gpu-acceleration":Ne.gpuAcceleration,offset:Ne.offset,persistent:Ne.persistent,"popper-class":xe.value,"popper-style":Ne.popperStyle,placement:Ne.placement,"popper-options":Ne.popperOptions,"arrow-offset":Ne.arrowOffset,pure:Ne.pure,"raw-content":Ne.rawContent,"reference-el":Ne.referenceEl,"trigger-target-el":Ne.triggerTargetEl,"show-after":Ne.showAfter,strategy:Ne.strategy,teleported:Ne.teleported,transition:Ne.transition,"virtual-triggering":Ne.virtualTriggering,"z-index":Ne.zIndex,"append-to":Ne.appendTo,loop:Ne.loop},{default:withCtx(()=>[renderSlot(Ne.$slots,"content",{},()=>[Ne.rawContent?(openBlock(),createElementBlock("span",{key:0,innerHTML:Ne.content},null,8,_hoisted_1$1B)):(openBlock(),createElementBlock("span",_hoisted_2$Z,toDisplayString(Ne.content),1))]),Ne.showArrow?(openBlock(),createBlock(unref(ElPopperArrow),{key:0})):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","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}});var Tooltip=_export_sfc(_sfc_main$2M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const ElTooltip=withInstall(Tooltip),autocompleteProps=buildProps({...inputProps,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:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:useTooltipContentProps.teleported,appendTo:useTooltipContentProps.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),autocompleteEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n)||isNumber$2(n),[INPUT_EVENT]:n=>isString$2(n)||isNumber$2(n),[CHANGE_EVENT]:n=>isString$2(n)||isNumber$2(n),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0,select:n=>isObject$6(n)},_hoisted_1$1A=["aria-expanded","aria-owns"],_hoisted_2$Y={key:0},_hoisted_3$q=["id","aria-selected","onClick"],COMPONENT_NAME$k="ElAutocomplete",_sfc_main$2L=defineComponent({name:COMPONENT_NAME$k,inheritAttrs:!1,__name:"autocomplete",props:autocompleteProps,emits:autocompleteEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=computed(()=>pick$1(i,Object.keys(inputProps))),V=useAttrs$1(),re=useFormDisabled(),ie=useNamespace("autocomplete"),ae=ref(),oe=ref(),le=ref(),ue=ref();let de=!1,he=!1;const pe=ref([]),_e=ref(-1),Ce=ref(""),xe=ref(!1),Ie=ref(!1),Ne=ref(!1),Oe=useId(),$e=computed(()=>V.style),Ve=computed(()=>(pe.value.length>0||Ne.value)&&xe.value),Ue=computed(()=>!i.hideLoading&&Ne.value),Fe=computed(()=>ae.value?Array.from(ae.value.$el.querySelectorAll("input")):[]),ze=()=>{Ve.value&&(Ce.value=`${ae.value.$el.offsetWidth}px`)},Pt=()=>{_e.value=-1},qe=async xn=>{if(Ie.value)return;const Ln=Nn=>{Ne.value=!1,!Ie.value&&(isArray$5(Nn)?(pe.value=Nn,_e.value=i.highlightFirstItem?0:-1):throwError$1(COMPONENT_NAME$k,"autocomplete suggestions must be an array"))};if(Ne.value=!0,isArray$5(i.fetchSuggestions))Ln(i.fetchSuggestions);else{const Nn=await i.fetchSuggestions(xn,Ln);isArray$5(Nn)&&Ln(Nn)}},Et=computed(()=>i.debounce),kt=useDebounceFn(qe,Et),At=xn=>{const Ln=!!xn;if(g(INPUT_EVENT,xn),g(UPDATE_MODEL_EVENT,xn),Ie.value=!1,xe.value||(xe.value=Ln),!i.triggerOnFocus&&!xn){Ie.value=!0,pe.value=[];return}kt(xn)},Dt=xn=>{var Ln;re.value||(((Ln=xn.target)==null?void 0:Ln.tagName)!=="INPUT"||Fe.value.includes(document.activeElement))&&(xe.value=!0)},Lt=xn=>{g(CHANGE_EVENT,xn)},jt=xn=>{var Ln;if(he)he=!1;else{xe.value=!0,g("focus",xn);const Nn=(Ln=i.modelValue)!=null?Ln:"";i.triggerOnFocus&&!de&&kt(String(Nn))}},hn=xn=>{setTimeout(()=>{var Ln;if((Ln=le.value)!=null&&Ln.isFocusInsideContent()){he=!0;return}xe.value&&bn(),g("blur",xn)})},vn=()=>{xe.value=!1,g(UPDATE_MODEL_EVENT,""),g("clear")},_n=async()=>{var xn;(xn=ae.value)!=null&&xn.isComposing||(Ve.value&&_e.value>=0&&_e.value{Ve.value&&(xn.preventDefault(),xn.stopPropagation(),bn())},bn=()=>{xe.value=!1},Cn=()=>{var xn;(xn=ae.value)==null||xn.focus()},Sn=()=>{var xn;(xn=ae.value)==null||xn.blur()},Tn=async xn=>{g(INPUT_EVENT,xn[i.valueKey]),g(UPDATE_MODEL_EVENT,xn[i.valueKey]),g("select",xn),pe.value=[],_e.value=-1},En=xn=>{var Ln,Nn;if(!Ve.value||Ne.value)return;if(xn<0){if(!i.loopNavigation){_e.value=-1;return}xn=pe.value.length-1}xn>=pe.value.length&&(xn=i.loopNavigation?0:pe.value.length-1);const[Pn,On]=kn(),Hn=On[xn],Xn=Pn.scrollTop,{offsetTop:In,scrollHeight:or}=Hn;In+or>Xn+Pn.clientHeight&&(Pn.scrollTop=In+or-Pn.clientHeight),In{const xn=oe.value.querySelector(`.${ie.be("suggestion","wrap")}`),Ln=xn.querySelectorAll(`.${ie.be("suggestion","list")} li`);return[xn,Ln]},$n=onClickOutside(ue,()=>{var xn;(xn=le.value)!=null&&xn.isFocusInsideContent()||Ve.value&&bn()}),An=xn=>{switch(getEventCode(xn)){case EVENT_CODE.up:xn.preventDefault(),En(_e.value-1);break;case EVENT_CODE.down:xn.preventDefault(),En(_e.value+1);break;case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:xn.preventDefault(),_n();break;case EVENT_CODE.tab:bn();break;case EVENT_CODE.esc:wn(xn);break;case EVENT_CODE.home:xn.preventDefault(),En(0);break;case EVENT_CODE.end:xn.preventDefault(),En(pe.value.length-1);break;case EVENT_CODE.pageUp:xn.preventDefault(),En(Math.max(0,_e.value-10));break;case EVENT_CODE.pageDown:xn.preventDefault(),En(Math.min(pe.value.length-1,_e.value+10));break}};return onBeforeUnmount(()=>{$n==null||$n()}),onMounted(()=>{var xn;const Ln=(xn=ae.value)==null?void 0:xn.ref;Ln&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:Oe.value},{key:"aria-activedescendant",value:`${Oe.value}-item-${_e.value}`}].forEach(({key:Nn,value:Pn})=>Ln.setAttribute(Nn,Pn)),de=Ln.hasAttribute("readonly"))}),t({highlightedIndex:_e,activated:xe,loading:Ne,inputRef:ae,popperRef:le,suggestions:pe,handleSelect:Tn,handleKeyEnter:_n,focus:Cn,blur:Sn,close:bn,highlight:En,getData:qe}),(xn,Ln)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popperRef",ref:le,visible:Ve.value,placement:xn.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[unref(ie).e("popper"),xn.popperClass],"popper-style":xn.popperStyle,teleported:xn.teleported,"append-to":xn.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${unref(ie).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:ze,onHide:Pt},{content:withCtx(()=>[createBaseVNode("div",{ref_key:"regionRef",ref:oe,class:normalizeClass([unref(ie).b("suggestion"),unref(ie).is("loading",Ue.value)]),style:normalizeStyle$1({[xn.fitInputWidth?"width":"minWidth"]:Ce.value,outline:"none"}),role:"region"},[xn.$slots.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).be("suggestion","header")),onClick:Ln[0]||(Ln[0]=withModifiers(()=>{},["stop"]))},[renderSlot(xn.$slots,"header")],2)):createCommentVNode("v-if",!0),createVNode$1(unref(ElScrollbar),{id:unref(Oe),tag:"ul","wrap-class":unref(ie).be("suggestion","wrap"),"view-class":unref(ie).be("suggestion","list"),role:"listbox"},{default:withCtx(()=>[Ue.value?(openBlock(),createElementBlock("li",_hoisted_2$Y,[renderSlot(xn.$slots,"loading",{},()=>[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(ie).is("loading"))},{default:withCtx(()=>[createVNode$1(unref(loading_default))]),_:1},8,["class"])])])):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(pe.value,(Nn,Pn)=>(openBlock(),createElementBlock("li",{id:`${unref(Oe)}-item-${Pn}`,key:Pn,class:normalizeClass({highlighted:_e.value===Pn}),role:"option","aria-selected":_e.value===Pn,onClick:On=>Tn(Nn)},[renderSlot(xn.$slots,"default",{item:Nn},()=>[createTextVNode(toDisplayString(Nn[xn.valueKey]),1)])],10,_hoisted_3$q))),128))]),_:3},8,["id","wrap-class","view-class"]),xn.$slots.footer?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).be("suggestion","footer")),onClick:Ln[1]||(Ln[1]=withModifiers(()=>{},["stop"]))},[renderSlot(xn.$slots,"footer")],2)):createCommentVNode("v-if",!0)],6)]),default:withCtx(()=>[createBaseVNode("div",{ref_key:"listboxRef",ref:ue,class:normalizeClass([unref(ie).b(),xn.$attrs.class]),style:normalizeStyle$1($e.value),role:"combobox","aria-haspopup":"listbox","aria-expanded":Ve.value,"aria-owns":unref(Oe)},[createVNode$1(unref(ElInput),mergeProps({ref_key:"inputRef",ref:ae},mergeProps($.value,xn.$attrs),{"model-value":xn.modelValue,disabled:unref(re),onInput:At,onChange:Lt,onFocus:jt,onBlur:hn,onClear:vn,onKeydown:An,onMousedown:Dt}),createSlots({_:2},[xn.$slots.prepend?{name:"prepend",fn:withCtx(()=>[renderSlot(xn.$slots,"prepend")]),key:"0"}:void 0,xn.$slots.append?{name:"append",fn:withCtx(()=>[renderSlot(xn.$slots,"append")]),key:"1"}:void 0,xn.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot(xn.$slots,"prefix")]),key:"2"}:void 0,xn.$slots.suffix?{name:"suffix",fn:withCtx(()=>[renderSlot(xn.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","disabled"])],14,_hoisted_1$1A)]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}});var Autocomplete=_export_sfc(_sfc_main$2L,[["__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,validator:n=>isNumber$2(n)},shape:{type:String,values:["circle","square"]},icon:{type:iconPropType},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:definePropType(String),default:"cover"}}),avatarEmits={error:n=>n instanceof Event},avatarGroupContextKey=Symbol("avatarGroupContextKey"),_hoisted_1$1z=["src","alt","srcset"],_sfc_main$2K=defineComponent({name:"ElAvatar",__name:"avatar",props:avatarProps,emits:avatarEmits,setup(n,{emit:t}){const r=n,i=t,g=inject(avatarGroupContextKey,void 0),$=useNamespace("avatar"),V=ref(!1),re=computed(()=>{var de;return(de=r.size)!=null?de:g==null?void 0:g.size}),ie=computed(()=>{var de,he;return(he=(de=r.shape)!=null?de:g==null?void 0:g.shape)!=null?he:"circle"}),ae=computed(()=>{const{icon:de}=r,he=[$.b()];return isString$2(re.value)&&he.push($.m(re.value)),de&&he.push($.m("icon")),ie.value&&he.push($.m(ie.value)),he}),oe=computed(()=>isNumber$2(re.value)?$.cssVarBlock({size:addUnit(re.value)}):void 0),le=computed(()=>({objectFit:r.fit}));watch(()=>r.src,()=>V.value=!1);function ue(de){V.value=!0,i("error",de)}return(de,he)=>(openBlock(),createElementBlock("span",{class:normalizeClass(ae.value),style:normalizeStyle$1(oe.value)},[(de.src||de.srcSet)&&!V.value?(openBlock(),createElementBlock("img",{key:0,src:de.src,alt:de.alt,srcset:de.srcSet,style:normalizeStyle$1(le.value),onError:ue},null,44,_hoisted_1$1z)):de.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(de.icon)))]),_:1})):renderSlot(de.$slots,"default",{key:2})],6))}});var Avatar=_export_sfc(_sfc_main$2K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const avatarGroupProps=buildProps({size:avatarProps.size,shape:avatarProps.shape,collapseAvatars:Boolean,collapseAvatarsTooltip:Boolean,maxCollapseAvatars:{type:Number,default:1},effect:{type:definePropType(String),default:"light"},placement:{type:definePropType(String),values:Ee,default:"top"},popperClass:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,collapseClass:String,collapseStyle:{type:definePropType([String,Array,Object])}});var AvatarGroup=defineComponent({name:"ElAvatarGroup",props:avatarGroupProps,setup(n,{slots:t}){const r=useNamespace("avatar-group");return provide(avatarGroupContextKey,reactive({size:toRef$1(n,"size"),shape:toRef$1(n,"shape")})),()=>{var i,g;const $=flattedChildren((g=(i=t.default)==null?void 0:i.call(t))!=null?g:[]);let V=$;if(n.collapseAvatars&&$.length>n.maxCollapseAvatars){V=$.slice(0,n.maxCollapseAvatars);const ie=$.slice(n.maxCollapseAvatars);V.push(createVNode$1(ElTooltip,{popperClass:n.popperClass,popperStyle:n.popperStyle,placement:n.placement,effect:n.effect,disabled:!n.collapseAvatarsTooltip},{default:()=>createVNode$1(Avatar,{size:n.size,shape:n.shape,class:n.collapseClass,style:n.collapseStyle},{default:()=>[createTextVNode("+ "),ie.length]}),content:()=>createVNode$1("div",{class:r.e("collapse-avatars")},[ie.map((ae,oe)=>{var le;return isVNode(ae)?cloneVNode(ae,{key:(le=ae.key)!=null?le:oe}):ae})])}))}return createVNode$1("div",{class:r.b()},[V])}}});const ElAvatar=withInstall(Avatar,{AvatarGroup}),ElAvatarGroup=withNoopInstall(AvatarGroup),backtopProps={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},backtopEmits={click:n=>n instanceof MouseEvent},useBackTop=(n,t,r)=>{const i=shallowRef(),g=shallowRef(),$=ref(!1),V=()=>{i.value&&($.value=i.value.scrollTop>=n.visibilityHeight)},re=ae=>{var oe;(oe=i.value)==null||oe.scrollTo({top:0,behavior:"smooth"}),t("click",ae)},ie=useThrottleFn(V,300,!0);return useEventListener(g,"scroll",ie),onMounted(()=>{var ae;g.value=document,i.value=document.documentElement,n.target&&(i.value=(ae=document.querySelector(n.target))!=null?ae:void 0,i.value||throwError$1(r,`target does not exist: ${n.target}`),g.value=i.value),V()}),{visible:$,handleClick:re}},COMPONENT_NAME$j="ElBacktop",_sfc_main$2J=defineComponent({name:COMPONENT_NAME$j,__name:"backtop",props:backtopProps,emits:backtopEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("backtop"),{handleClick:$,visible:V}=useBackTop(r,i,COMPONENT_NAME$j),re=computed(()=>({right:`${r.right}px`,bottom:`${r.bottom}px`}));return(ie,ae)=>(openBlock(),createBlock(Transition,{name:`${unref(g).namespace.value}-fade-in`},{default:withCtx(()=>[unref(V)?(openBlock(),createElementBlock("div",{key:0,style:normalizeStyle$1(re.value),class:normalizeClass(unref(g).b()),onClick:ae[0]||(ae[0]=withModifiers((...oe)=>unref($)&&unref($)(...oe),["stop"]))},[renderSlot(ie.$slots,"default",{},()=>[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(g).e("icon"))},{default:withCtx(()=>[createVNode$1(unref(caret_top_default))]),_:1},8,["class"])])],6)):createCommentVNode("v-if",!0)]),_:3},8,["name"]))}});var Backtop=_export_sfc(_sfc_main$2J,[["__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"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:definePropType([String,Object,Array])},offset:{type:definePropType(Array),default:[0,0]},badgeClass:{type:String}}),_sfc_main$2I=defineComponent({name:"ElBadge",__name:"badge",props:badgeProps,setup(n,{expose:t}){const r=n,i=useNamespace("badge"),g=computed(()=>r.isDot?"":isNumber$2(r.value)&&isNumber$2(r.max)?r.max{var V;return[{backgroundColor:r.color,marginRight:addUnit(-r.offset[0]),marginTop:addUnit(r.offset[1])},(V=r.badgeStyle)!=null?V:{}]});return t({content:g}),(V,re)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(i).b())},[renderSlot(V.$slots,"default"),createVNode$1(Transition,{name:`${unref(i).namespace.value}-zoom-in-center`,persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("sup",{class:normalizeClass([unref(i).e("content"),unref(i).em("content",V.type),unref(i).is("fixed",!!V.$slots.default),unref(i).is("dot",V.isDot),unref(i).is("hide-zero",!V.showZero&&V.value===0),V.badgeClass]),style:normalizeStyle$1($.value)},[renderSlot(V.$slots,"content",{value:g.value},()=>[createTextVNode(toDisplayString(g.value),1)])],6),[[vShow,!V.hidden&&(g.value||V.isDot||V.$slots.content)]])]),_:3},8,["name"])],2))}});var Badge=_export_sfc(_sfc_main$2I,[["__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}}),_hoisted_1$1y=["aria-label"],_sfc_main$2H=defineComponent({name:"ElBreadcrumb",__name:"breadcrumb",props:breadcrumbProps,setup(n){const{t}=useLocale(),r=n,i=useNamespace("breadcrumb"),g=ref();return provide(breadcrumbKey,r),onMounted(()=>{const $=g.value.querySelectorAll(`.${i.e("item")}`);$.length&&$[$.length-1].setAttribute("aria-current","page")}),($,V)=>(openBlock(),createElementBlock("div",{ref_key:"breadcrumb",ref:g,class:normalizeClass(unref(i).b()),"aria-label":unref(t)("el.breadcrumb.label"),role:"navigation"},[renderSlot($.$slots,"default")],10,_hoisted_1$1y))}});var Breadcrumb=_export_sfc(_sfc_main$2H,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const breadcrumbItemProps=buildProps({to:{type:definePropType([String,Object]),default:""},replace:Boolean}),_sfc_main$2G=defineComponent({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:breadcrumbItemProps,setup(n){const t=n,r=getCurrentInstance(),i=inject(breadcrumbKey,void 0),g=useNamespace("breadcrumb"),$=r.appContext.config.globalProperties.$router,V=()=>{!t.to||!$||(t.replace?$.replace(t.to):$.push(t.to))};return(re,ie)=>{var ae,oe;return openBlock(),createElementBlock("span",{class:normalizeClass(unref(g).e("item"))},[createBaseVNode("span",{class:normalizeClass([unref(g).e("inner"),unref(g).is("link",!!re.to)]),role:"link",onClick:V},[renderSlot(re.$slots,"default")],2),(ae=unref(i))!=null&&ae.separatorIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(g).e("separator"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(i).separatorIcon)))]),_:1},8,["class"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(g).e("separator")),role:"presentation"},toDisplayString((oe=unref(i))==null?void 0:oe.separator),3))],2)}}});var BreadcrumbItem=_export_sfc(_sfc_main$2G,[["__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"),useDeprecated=({from:n,replacement:t,scope:r,version:i,ref:g,type:$="API"},V)=>{watch(()=>unref(V),re=>{},{immediate:!0})},useButton=(n,t)=>{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(()=>n.type==="text"));const r=inject(buttonGroupContextKey,void 0),i=useGlobalConfig("button"),{form:g}=useFormItem(),$=useFormSize(computed(()=>r==null?void 0:r.size)),V=useFormDisabled(),re=ref(),ie=useSlots(),ae=computed(()=>{var Ce;return n.type||(r==null?void 0:r.type)||((Ce=i.value)==null?void 0:Ce.type)||""}),oe=computed(()=>{var Ce,xe,Ie;return(Ie=(xe=n.autoInsertSpace)!=null?xe:(Ce=i.value)==null?void 0:Ce.autoInsertSpace)!=null?Ie:!1}),le=computed(()=>{var Ce,xe,Ie;return(Ie=(xe=n.plain)!=null?xe:(Ce=i.value)==null?void 0:Ce.plain)!=null?Ie:!1}),ue=computed(()=>{var Ce,xe,Ie;return(Ie=(xe=n.round)!=null?xe:(Ce=i.value)==null?void 0:Ce.round)!=null?Ie:!1}),de=computed(()=>{var Ce,xe,Ie;return(Ie=(xe=n.text)!=null?xe:(Ce=i.value)==null?void 0:Ce.text)!=null?Ie:!1}),he=computed(()=>n.tag==="button"?{ariaDisabled:V.value||n.loading,disabled:V.value||n.loading,autofocus:n.autofocus,type:n.nativeType}:{}),pe=computed(()=>{var Ce;const xe=(Ce=ie.default)==null?void 0:Ce.call(ie);if(oe.value&&(xe==null?void 0:xe.length)===1){const Ie=xe[0];if((Ie==null?void 0:Ie.type)===Text$1){const Ne=Ie.children;return/^\p{Unified_Ideograph}{2}$/u.test(Ne.trim())}}return!1});return{_disabled:V,_size:$,_type:ae,_ref:re,_props:he,_plain:le,_round:ue,_text:de,shouldAddSpace:pe,handleClick:Ce=>{if(V.value||n.loading){Ce.stopPropagation();return}n.nativeType==="reset"&&(g==null||g.resetFields()),t("click",Ce)}}},buttonTypes=["default","primary","success","warning","info","danger","text",""],buttonNativeTypes=["button","submit","reset"],buttonProps=buildProps({size:useSizeProp,disabled:{type:Boolean,default:void 0},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:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:definePropType([String,Object]),default:"button"}}),buttonEmits={click:n=>n instanceof MouseEvent};function bound01(n,t){isOnePointZero(n)&&(n="100%");var r=isPercentage(n);return n=t===360?n:Math.min(t,Math.max(0,parseFloat(n))),r&&(n=parseInt(String(n*t),10)/100),Math.abs(n-t)<1e-6?1:(t===360?n=(n<0?n%t+t:n%t)/parseFloat(String(t)):n=n%t/parseFloat(String(t)),n)}function clamp01(n){return Math.min(1,Math.max(0,n))}function isOnePointZero(n){return typeof n=="string"&&n.indexOf(".")!==-1&&parseFloat(n)===1}function isPercentage(n){return typeof n=="string"&&n.indexOf("%")!==-1}function boundAlpha(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function convertToPercentage(n){return n<=1?"".concat(Number(n)*100,"%"):n}function pad2(n){return n.length===1?"0"+n:String(n)}function rgbToRgb(n,t,r){return{r:bound01(n,255)*255,g:bound01(t,255)*255,b:bound01(r,255)*255}}function rgbToHsl(n,t,r){n=bound01(n,255),t=bound01(t,255),r=bound01(r,255);var i=Math.max(n,t,r),g=Math.min(n,t,r),$=0,V=0,re=(i+g)/2;if(i===g)V=0,$=0;else{var ie=i-g;switch(V=re>.5?ie/(2-i-g):ie/(i+g),i){case n:$=(t-r)/ie+(t1&&(r-=1),r<1/6?n+(t-n)*(6*r):r<1/2?t:r<2/3?n+(t-n)*(2/3-r)*6:n}function hslToRgb(n,t,r){var i,g,$;if(n=bound01(n,360),t=bound01(t,100),r=bound01(r,100),t===0)g=r,$=r,i=r;else{var V=r<.5?r*(1+t):r+t-r*t,re=2*r-V;i=hue2rgb$1(re,V,n+1/3),g=hue2rgb$1(re,V,n),$=hue2rgb$1(re,V,n-1/3)}return{r:i*255,g:g*255,b:$*255}}function rgbToHsv(n,t,r){n=bound01(n,255),t=bound01(t,255),r=bound01(r,255);var i=Math.max(n,t,r),g=Math.min(n,t,r),$=0,V=i,re=i-g,ie=i===0?0:re/i;if(i===g)$=0;else{switch(i){case n:$=(t-r)/re+(t>16,g:(n&65280)>>8,b:n&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(n){var t={r:0,g:0,b:0},r=1,i=null,g=null,$=null,V=!1,re=!1;return typeof n=="string"&&(n=stringInputToObject(n)),typeof n=="object"&&(isValidCSSUnit(n.r)&&isValidCSSUnit(n.g)&&isValidCSSUnit(n.b)?(t=rgbToRgb(n.r,n.g,n.b),V=!0,re=String(n.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(n.h)&&isValidCSSUnit(n.s)&&isValidCSSUnit(n.v)?(i=convertToPercentage(n.s),g=convertToPercentage(n.v),t=hsvToRgb(n.h,i,g),V=!0,re="hsv"):isValidCSSUnit(n.h)&&isValidCSSUnit(n.s)&&isValidCSSUnit(n.l)&&(i=convertToPercentage(n.s),$=convertToPercentage(n.l),t=hslToRgb(n.h,i,$),V=!0,re="hsl"),Object.prototype.hasOwnProperty.call(n,"a")&&(r=n.a)),r=boundAlpha(r),{ok:V,format:n.format||re,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}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(n){if(n=n.trim().toLowerCase(),n.length===0)return!1;var t=!1;if(names[n])n=names[n],t=!0;else if(n==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=matchers.rgb.exec(n);return r?{r:r[1],g:r[2],b:r[3]}:(r=matchers.rgba.exec(n),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=matchers.hsl.exec(n),r?{h:r[1],s:r[2],l:r[3]}:(r=matchers.hsla.exec(n),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=matchers.hsv.exec(n),r?{h:r[1],s:r[2],v:r[3]}:(r=matchers.hsva.exec(n),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=matchers.hex8.exec(n),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),a:convertHexToDecimal(r[4]),format:t?"name":"hex8"}:(r=matchers.hex6.exec(n),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),format:t?"name":"hex"}:(r=matchers.hex4.exec(n),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),a:convertHexToDecimal(r[4]+r[4]),format:t?"name":"hex8"}:(r=matchers.hex3.exec(n),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function isValidCSSUnit(n){return!!matchers.CSS_UNIT.exec(String(n))}var TinyColor=function(){function n(t,r){t===void 0&&(t=""),r===void 0&&(r={});var i;if(t instanceof n)return t;typeof t=="number"&&(t=numberInputToObject(t)),this.originalInput=t;var g=inputToRGB(t);this.originalInput=t,this.r=g.r,this.g=g.g,this.b=g.b,this.a=g.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=r.format)!==null&&i!==void 0?i:g.format,this.gradientType=r.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=g.ok}return n.prototype.isDark=function(){return this.getBrightness()<128},n.prototype.isLight=function(){return!this.isDark()},n.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},n.prototype.getLuminance=function(){var t=this.toRgb(),r,i,g,$=t.r/255,V=t.g/255,re=t.b/255;return $<=.03928?r=$/12.92:r=Math.pow(($+.055)/1.055,2.4),V<=.03928?i=V/12.92:i=Math.pow((V+.055)/1.055,2.4),re<=.03928?g=re/12.92:g=Math.pow((re+.055)/1.055,2.4),.2126*r+.7152*i+.0722*g},n.prototype.getAlpha=function(){return this.a},n.prototype.setAlpha=function(t){return this.a=boundAlpha(t),this.roundA=Math.round(100*this.a)/100,this},n.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},n.prototype.toHsv=function(){var t=rgbToHsv(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},n.prototype.toHsvString=function(){var t=rgbToHsv(this.r,this.g,this.b),r=Math.round(t.h*360),i=Math.round(t.s*100),g=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(i,"%, ").concat(g,"%)"):"hsva(".concat(r,", ").concat(i,"%, ").concat(g,"%, ").concat(this.roundA,")")},n.prototype.toHsl=function(){var t=rgbToHsl(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},n.prototype.toHslString=function(){var t=rgbToHsl(this.r,this.g,this.b),r=Math.round(t.h*360),i=Math.round(t.s*100),g=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(i,"%, ").concat(g,"%)"):"hsla(".concat(r,", ").concat(i,"%, ").concat(g,"%, ").concat(this.roundA,")")},n.prototype.toHex=function(t){return t===void 0&&(t=!1),rgbToHex(this.r,this.g,this.b,t)},n.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},n.prototype.toHex8=function(t){return t===void 0&&(t=!1),rgbaToHex(this.r,this.g,this.b,this.a,t)},n.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},n.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},n.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},n.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(i,")"):"rgba(".concat(t,", ").concat(r,", ").concat(i,", ").concat(this.roundA,")")},n.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(bound01(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},n.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(bound01(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},n.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+rgbToHex(this.r,this.g,this.b,!1),r=0,i=Object.entries(names);r=0,$=!r&&g&&(t.startsWith("hex")||t==="name");return $?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},n.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},n.prototype.clone=function(){return new n(this.toString())},n.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=clamp01(r.l),new n(r)},n.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new n(r)},n.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=clamp01(r.l),new n(r)},n.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},n.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},n.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=clamp01(r.s),new n(r)},n.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=clamp01(r.s),new n(r)},n.prototype.greyscale=function(){return this.desaturate(100)},n.prototype.spin=function(t){var r=this.toHsl(),i=(r.h+t)%360;return r.h=i<0?360+i:i,new n(r)},n.prototype.mix=function(t,r){r===void 0&&(r=50);var i=this.toRgb(),g=new n(t).toRgb(),$=r/100,V={r:(g.r-i.r)*$+i.r,g:(g.g-i.g)*$+i.g,b:(g.b-i.b)*$+i.b,a:(g.a-i.a)*$+i.a};return new n(V)},n.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var i=this.toHsl(),g=360/r,$=[this];for(i.h=(i.h-(g*t>>1)+720)%360;--t;)i.h=(i.h+g)%360,$.push(new n(i));return $},n.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new n(t)},n.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),i=r.h,g=r.s,$=r.v,V=[],re=1/t;t--;)V.push(new n({h:i,s:g,v:$})),$=($+re)%1;return V},n.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new n({h:(r+72)%360,s:t.s,l:t.l}),new n({h:(r+216)%360,s:t.s,l:t.l})]},n.prototype.onBackground=function(t){var r=this.toRgb(),i=new n(t).toRgb(),g=r.a+i.a*(1-r.a);return new n({r:(r.r*r.a+i.r*i.a*(1-r.a))/g,g:(r.g*r.a+i.g*i.a*(1-r.a))/g,b:(r.b*r.a+i.b*i.a*(1-r.a))/g,a:g})},n.prototype.triad=function(){return this.polyad(3)},n.prototype.tetrad=function(){return this.polyad(4)},n.prototype.polyad=function(t){for(var r=this.toHsl(),i=r.h,g=[this],$=360/t,V=1;V{let i={},g=n.color;if(g){const $=g.match(/var\((.*?)\)/);$&&(g=window.getComputedStyle(window.document.documentElement).getPropertyValue($[1]));const V=new TinyColor(g),re=n.dark?V.tint(20).toString():darken(V,20);if(n.plain)i=r.cssVarBlock({"bg-color":n.dark?darken(V,90):V.tint(90).toString(),"text-color":g,"border-color":n.dark?darken(V,50):V.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":g,"hover-border-color":g,"active-bg-color":re,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":re}),t.value&&(i[r.cssVarBlockName("disabled-bg-color")]=n.dark?darken(V,90):V.tint(90).toString(),i[r.cssVarBlockName("disabled-text-color")]=n.dark?darken(V,50):V.tint(50).toString(),i[r.cssVarBlockName("disabled-border-color")]=n.dark?darken(V,80):V.tint(80).toString());else{const ie=n.dark?darken(V,30):V.tint(30).toString(),ae=V.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(i=r.cssVarBlock({"bg-color":g,"text-color":ae,"border-color":g,"hover-bg-color":ie,"hover-text-color":ae,"hover-border-color":ie,"active-bg-color":re,"active-border-color":re}),t.value){const oe=n.dark?darken(V,50):V.tint(50).toString();i[r.cssVarBlockName("disabled-bg-color")]=oe,i[r.cssVarBlockName("disabled-text-color")]=n.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,i[r.cssVarBlockName("disabled-border-color")]=oe}}}return i})}const _sfc_main$2F=defineComponent({name:"ElButton",__name:"button",props:buttonProps,emits:buttonEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useButtonCustomStyle(i),V=useNamespace("button"),{_ref:re,_size:ie,_type:ae,_disabled:oe,_props:le,_plain:ue,_round:de,_text:he,shouldAddSpace:pe,handleClick:_e}=useButton(i,g),Ce=computed(()=>[V.b(),V.m(ae.value),V.m(ie.value),V.is("disabled",oe.value),V.is("loading",i.loading),V.is("plain",ue.value),V.is("round",de.value),V.is("circle",i.circle),V.is("text",he.value),V.is("link",i.link),V.is("has-bg",i.bg)]);return t({ref:re,size:ie,type:ae,disabled:oe,shouldAddSpace:pe}),(xe,Ie)=>(openBlock(),createBlock(resolveDynamicComponent(xe.tag),mergeProps({ref_key:"_ref",ref:re},unref(le),{class:Ce.value,style:unref($),onClick:unref(_e)}),{default:withCtx(()=>[xe.loading?(openBlock(),createElementBlock(Fragment,{key:0},[xe.$slots.loading?renderSlot(xe.$slots,"loading",{key:0}):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(V).is("loading"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(xe.loadingIcon)))]),_:1},8,["class"]))],64)):xe.icon||xe.$slots.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[xe.icon?(openBlock(),createBlock(resolveDynamicComponent(xe.icon),{key:0})):renderSlot(xe.$slots,"icon",{key:1})]),_:3})):createCommentVNode("v-if",!0),xe.$slots.default?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass({[unref(V).em("text","expand")]:unref(pe)})},[renderSlot(xe.$slots,"default")],2)):createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Button=_export_sfc(_sfc_main$2F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const buttonGroupProps={size:buttonProps.size,type:buttonProps.type,direction:{type:definePropType(String),values:["horizontal","vertical"],default:"horizontal"}},_sfc_main$2E=defineComponent({name:"ElButtonGroup",__name:"button-group",props:buttonGroupProps,setup(n){const t=n;provide(buttonGroupContextKey,reactive({size:toRef$1(t,"size"),type:toRef$1(t,"type")}));const r=useNamespace("button");return(i,g)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(r).b("group"),unref(r).bm("group",t.direction)])},[renderSlot(i.$slots,"default")],2))}});var ButtonGroup=_export_sfc(_sfc_main$2E,[["__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(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var dayjs_min={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){var r=1e3,i=6e4,g=36e5,$="millisecond",V="second",re="minute",ie="hour",ae="day",oe="week",le="month",ue="quarter",de="year",he="date",pe="Invalid Date",_e=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Ce=/\[([^\]]+)]|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,xe={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(kt){var At=["th","st","nd","rd"],Dt=kt%100;return"["+kt+(At[(Dt-20)%10]||At[Dt]||At[0])+"]"}},Ie=function(kt,At,Dt){var Lt=String(kt);return!Lt||Lt.length>=At?kt:""+Array(At+1-Lt.length).join(Dt)+kt},Ne={s:Ie,z:function(kt){var At=-kt.utcOffset(),Dt=Math.abs(At),Lt=Math.floor(Dt/60),jt=Dt%60;return(At<=0?"+":"-")+Ie(Lt,2,"0")+":"+Ie(jt,2,"0")},m:function kt(At,Dt){if(At.date()1)return kt(vn[0])}else{var _n=At.name;$e[_n]=At,jt=_n}return!Lt&&jt&&(Oe=jt),jt||!Lt&&Oe},ze=function(kt,At){if(Ue(kt))return kt.clone();var Dt=typeof At=="object"?At:{};return Dt.date=kt,Dt.args=arguments,new qe(Dt)},Pt=Ne;Pt.l=Fe,Pt.i=Ue,Pt.w=function(kt,At){return ze(kt,{locale:At.$L,utc:At.$u,x:At.$x,$offset:At.$offset})};var qe=function(){function kt(Dt){this.$L=Fe(Dt.locale,null,!0),this.parse(Dt),this.$x=this.$x||Dt.x||{},this[Ve]=!0}var At=kt.prototype;return At.parse=function(Dt){this.$d=function(Lt){var jt=Lt.date,hn=Lt.utc;if(jt===null)return new Date(NaN);if(Pt.u(jt))return new Date;if(jt instanceof Date)return new Date(jt);if(typeof jt=="string"&&!/Z$/i.test(jt)){var vn=jt.match(_e);if(vn){var _n=vn[2]-1||0,wn=(vn[7]||"0").substring(0,3);return hn?new Date(Date.UTC(vn[1],_n,vn[3]||1,vn[4]||0,vn[5]||0,vn[6]||0,wn)):new Date(vn[1],_n,vn[3]||1,vn[4]||0,vn[5]||0,vn[6]||0,wn)}}return new Date(jt)}(Dt),this.init()},At.init=function(){var Dt=this.$d;this.$y=Dt.getFullYear(),this.$M=Dt.getMonth(),this.$D=Dt.getDate(),this.$W=Dt.getDay(),this.$H=Dt.getHours(),this.$m=Dt.getMinutes(),this.$s=Dt.getSeconds(),this.$ms=Dt.getMilliseconds()},At.$utils=function(){return Pt},At.isValid=function(){return this.$d.toString()!==pe},At.isSame=function(Dt,Lt){var jt=ze(Dt);return this.startOf(Lt)<=jt&&jt<=this.endOf(Lt)},At.isAfter=function(Dt,Lt){return ze(Dt)[n>0?n-1:void 0,n,nArray.from(Array.from({length:n}).keys()),extractDateFormat=n=>n.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),extractTimeFormat=n=>n.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),dateEquals=function(n,t){const r=isDate$1(n),i=isDate$1(t);return r&&i?n.getTime()===t.getTime():!r&&!i?n===t:!1},valueEquals=function(n,t){const r=isArray$5(n),i=isArray$5(t);return r&&i?n.length!==t.length?!1:n.every((g,$)=>dateEquals(g,t[$])):!r&&!i?dateEquals(n,t):!1},parseDate$1=function(n,t,r){const i=isEmpty(t)||t==="x"?dayjs(n).locale(r):dayjs(n,t).locale(r);return i.isValid()?i:void 0},formatter=function(n,t,r){return isEmpty(t)?n:t==="x"?+n:dayjs(n).locale(r).format(t)},makeList=(n,t)=>{var r;const i=[],g=t==null?void 0:t();for(let $=0;$isArray$5(n)?n.map(t=>t.toDate()):n.toDate(),getPrevMonthLastDays=(n,t)=>{const r=n.subtract(1,"month").endOf("month").date();return rangeArr(t).map((i,g)=>r-(t-g-1))},getMonthDays=n=>{const t=n.daysInMonth();return rangeArr(t).map((r,i)=>i+1)},toNestedArr=n=>rangeArr(n.length/7).map(t=>{const r=t*7;return n.slice(r,r+7)}),dateTableProps=buildProps({selectedDay:{type:definePropType(Object)},range:{type:definePropType(Array)},date:{type:definePropType(Object),required:!0},hideHeader:{type:Boolean}}),dateTableEmits={pick:n=>isObject$6(n)};var localeData$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){return function(r,i,g){var $=i.prototype,V=function(le){return le&&(le.indexOf?le:le.s)},re=function(le,ue,de,he,pe){var _e=le.name?le:le.$locale(),Ce=V(_e[ue]),xe=V(_e[de]),Ie=Ce||xe.map(function(Oe){return Oe.slice(0,he)});if(!pe)return Ie;var Ne=_e.weekStart;return Ie.map(function(Oe,$e){return Ie[($e+(Ne||0))%7]})},ie=function(){return g.Ls[g.locale()]},ae=function(le,ue){return le.formats[ue]||function(de){return de.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(he,pe,_e){return pe||_e.slice(1)})}(le.formats[ue.toUpperCase()])},oe=function(){var le=this;return{months:function(ue){return ue?ue.format("MMMM"):re(le,"months")},monthsShort:function(ue){return ue?ue.format("MMM"):re(le,"monthsShort","months",3)},firstDayOfWeek:function(){return le.$locale().weekStart||0},weekdays:function(ue){return ue?ue.format("dddd"):re(le,"weekdays")},weekdaysMin:function(ue){return ue?ue.format("dd"):re(le,"weekdaysMin","weekdays",2)},weekdaysShort:function(ue){return ue?ue.format("ddd"):re(le,"weekdaysShort","weekdays",3)},longDateFormat:function(ue){return ae(le.$locale(),ue)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};$.localeData=function(){return oe.bind(this)()},g.localeData=function(){var le=ie();return{firstDayOfWeek:function(){return le.weekStart||0},weekdays:function(){return g.weekdays()},weekdaysShort:function(){return g.weekdaysShort()},weekdaysMin:function(){return g.weekdaysMin()},months:function(){return g.months()},monthsShort:function(){return g.monthsShort()},longDateFormat:function(ue){return ae(le,ue)},meridiem:le.meridiem,ordinal:le.ordinal}},g.months=function(){return re(ie(),"months")},g.monthsShort=function(){return re(ie(),"monthsShort","months",3)},g.weekdays=function(le){return re(ie(),"weekdays",null,null,le)},g.weekdaysShort=function(le){return re(ie(),"weekdaysShort","weekdays",3,le)},g.weekdaysMin=function(le){return re(ie(),"weekdaysMin","weekdays",2,le)}}})})(localeData$1);var localeDataExports=localeData$1.exports;const localeData=getDefaultExportFromCjs(localeDataExports),datePickTypes=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],WEEK_DAYS=["sun","mon","tue","wed","thu","fri","sat"],useDateTable=(n,t)=>{dayjs.extend(localeData);const r=dayjs.localeData().firstDayOfWeek(),{t:i,lang:g}=useLocale(),$=dayjs().locale(g.value),V=computed(()=>!!n.range&&!!n.range.length),re=computed(()=>{let ue=[];if(V.value){const[de,he]=n.range,pe=rangeArr(he.date()-de.date()+1).map(xe=>({text:de.date()+xe,type:"current"}));let _e=pe.length%7;_e=_e===0?0:7-_e;const Ce=rangeArr(_e).map((xe,Ie)=>({text:Ie+1,type:"next"}));ue=pe.concat(Ce)}else{const de=n.date.startOf("month").day(),he=getPrevMonthLastDays(n.date,(de-r+7)%7).map(xe=>({text:xe,type:"prev"})),pe=getMonthDays(n.date).map(xe=>({text:xe,type:"current"}));ue=[...he,...pe];const _e=7-(ue.length%7||7),Ce=rangeArr(_e).map((xe,Ie)=>({text:Ie+1,type:"next"}));ue=ue.concat(Ce)}return toNestedArr(ue)}),ie=computed(()=>{const ue=r;return ue===0?WEEK_DAYS.map(de=>i(`el.datepicker.weeks.${de}`)):WEEK_DAYS.slice(ue).concat(WEEK_DAYS.slice(0,ue)).map(de=>i(`el.datepicker.weeks.${de}`))}),ae=(ue,de)=>{switch(de){case"prev":return n.date.startOf("month").subtract(1,"month").date(ue);case"next":return n.date.startOf("month").add(1,"month").date(ue);case"current":return n.date.date(ue)}};return{now:$,isInRange:V,rows:re,weekDays:ie,getFormattedDate:ae,handlePickDay:({text:ue,type:de})=>{const he=ae(ue,de);t("pick",he)},getSlotData:({text:ue,type:de})=>{const he=ae(ue,de);return{isSelected:he.isSame(n.selectedDay),type:`${de}-month`,day:he.format("YYYY-MM-DD"),date:he.toDate()}}}},_hoisted_1$1x={key:0},_hoisted_2$X=["onClick"],_sfc_main$2D=defineComponent({name:"DateTable",__name:"date-table",props:dateTableProps,emits:dateTableEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{isInRange:$,now:V,rows:re,weekDays:ie,getFormattedDate:ae,handlePickDay:oe,getSlotData:le}=useDateTable(i,g),ue=useNamespace("calendar-table"),de=useNamespace("calendar-day"),he=({text:pe,type:_e})=>{const Ce=[_e];if(_e==="current"){const xe=ae(pe,_e);xe.isSame(i.selectedDay,"day")&&Ce.push(de.is("selected")),xe.isSame(V,"day")&&Ce.push(de.is("today"))}return Ce};return t({getFormattedDate:ae}),(pe,_e)=>(openBlock(),createElementBlock("table",{class:normalizeClass([unref(ue).b(),unref(ue).is("range",unref($))]),cellspacing:"0",cellpadding:"0"},[pe.hideHeader?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("thead",_hoisted_1$1x,[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ie),Ce=>(openBlock(),createElementBlock("th",{key:Ce,scope:"col"},toDisplayString(Ce),1))),128))])])),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(re),(Ce,xe)=>(openBlock(),createElementBlock("tr",{key:xe,class:normalizeClass({[unref(ue).e("row")]:!0,[unref(ue).em("row","hide-border")]:xe===0&&pe.hideHeader})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ce,(Ie,Ne)=>(openBlock(),createElementBlock("td",{key:Ne,class:normalizeClass(he(Ie)),onClick:Oe=>unref(oe)(Ie)},[createBaseVNode("div",{class:normalizeClass(unref(de).b())},[renderSlot(pe.$slots,"date-cell",{data:unref(le)(Ie)},()=>[createBaseVNode("span",null,toDisplayString(Ie.text),1)])],2)],10,_hoisted_2$X))),128))],2))),128))])],2))}});var DateTable$1=_export_sfc(_sfc_main$2D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const adjacentMonth=(n,t)=>{const r=n.endOf("month"),i=t.startOf("month"),$=r.isSame(i,"week")?i.add(1,"week"):i;return[[n,r],[$.startOf("week"),t]]},threeConsecutiveMonth=(n,t)=>{const r=n.endOf("month"),i=n.add(1,"month").startOf("month"),g=r.isSame(i,"week")?i.add(1,"week"):i,$=g.endOf("month"),V=t.startOf("month"),re=$.isSame(V,"week")?V.add(1,"week"):V;return[[n,r],[g.startOf("week"),$],[re.startOf("week"),t]]},useCalendar=(n,t,r)=>{const{lang:i}=useLocale(),g=ref(),$=dayjs().locale(i.value),V=computed({get(){return n.modelValue?ie.value:g.value},set(Ce){if(!Ce)return;g.value=Ce;const xe=Ce.toDate();t(INPUT_EVENT,xe),t(UPDATE_MODEL_EVENT,xe)}}),re=computed(()=>{if(!n.range||!isArray$5(n.range)||n.range.length!==2||n.range.some(Ne=>!isDate$1(Ne)))return[];const Ce=n.range.map(Ne=>dayjs(Ne).locale(i.value)),[xe,Ie]=Ce;return xe.isAfter(Ie)?[]:xe.isSame(Ie,"month")?de(xe,Ie):xe.add(1,"month").month()!==Ie.month()?[]:de(xe,Ie)}),ie=computed(()=>n.modelValue?dayjs(n.modelValue).locale(i.value):V.value||(re.value.length?re.value[0][0]:$)),ae=computed(()=>ie.value.subtract(1,"month").date(1)),oe=computed(()=>ie.value.add(1,"month").date(1)),le=computed(()=>ie.value.subtract(1,"year").date(1)),ue=computed(()=>ie.value.add(1,"year").date(1)),de=(Ce,xe)=>{const Ie=Ce.startOf("week"),Ne=xe.endOf("week"),Oe=Ie.get("month"),$e=Ne.get("month");return Oe===$e?[[Ie,Ne]]:(Oe+1)%12===$e?adjacentMonth(Ie,Ne):Oe+2===$e||(Oe+1)%11===$e?threeConsecutiveMonth(Ie,Ne):[]},he=Ce=>{V.value=Ce},pe=Ce=>{const Ie={"prev-month":ae.value,"next-month":oe.value,"prev-year":le.value,"next-year":ue.value,today:$}[Ce];Ie.isSame(ie.value,"day")||he(Ie)};return{calculateValidatedDateRange:de,date:ie,realSelectedDay:V,pickDay:he,selectDate:pe,validatedRange:re,handleDateChange:Ce=>{Ce==="today"?pe("today"):he(Ce)}}},isValidRange$1=n=>isArray$5(n)&&n.length===2&&n.every(t=>isDate$1(t)),calendarProps=buildProps({modelValue:{type:Date},range:{type:definePropType(Array),validator:isValidRange$1},controllerType:{type:String,values:["button","select"],default:"button"},formatter:{type:definePropType(Function)}}),calendarEmits={[UPDATE_MODEL_EVENT]:n=>isDate$1(n),[INPUT_EVENT]:n=>isDate$1(n)},tagProps=buildProps({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:componentSizes},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),tagEmits={close:n=>n instanceof MouseEvent,click:n=>n instanceof MouseEvent},_hoisted_1$1w=["aria-label"],_hoisted_2$W=["aria-label"],_sfc_main$2C=defineComponent({name:"ElTag",__name:"tag",props:tagProps,emits:tagEmits,setup(n,{emit:t}){const r=n,i=t,g=useFormSize(),{t:$}=useLocale(),V=useNamespace("tag"),re=computed(()=>{const{type:le,hit:ue,effect:de,closable:he,round:pe}=r;return[V.b(),V.is("closable",he),V.m(le||"primary"),V.m(g.value),V.m(de),V.is("hit",ue),V.is("round",pe)]}),ie=le=>{i("close",le)},ae=le=>{i("click",le)},oe=le=>{var ue,de,he;(he=(de=(ue=le==null?void 0:le.component)==null?void 0:ue.subTree)==null?void 0:de.component)!=null&&he.bum&&(le.component.subTree.component.bum=null)};return(le,ue)=>le.disableTransitions?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(re.value),style:normalizeStyle$1({backgroundColor:le.color}),onClick:ae},[createBaseVNode("span",{class:normalizeClass(unref(V).e("content"))},[renderSlot(le.$slots,"default")],2),le.closable?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref($)("el.tag.close"),class:normalizeClass(unref(V).e("close")),type:"button",onClick:withModifiers(ie,["stop"])},[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(close_default))]),_:1})],10,_hoisted_1$1w)):createCommentVNode("v-if",!0)],6)):(openBlock(),createBlock(Transition,{key:1,name:`${unref(V).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:oe},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(re.value),style:normalizeStyle$1({backgroundColor:le.color}),onClick:ae},[createBaseVNode("span",{class:normalizeClass(unref(V).e("content"))},[renderSlot(le.$slots,"default")],2),le.closable?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref($)("el.tag.close"),class:normalizeClass(unref(V).e("close")),type:"button",onClick:withModifiers(ie,["stop"])},[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(close_default))]),_:1})],10,_hoisted_2$W)):createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var Tag=_export_sfc(_sfc_main$2C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const ElTag=withInstall(Tag),defaultProps$4={label:"label",value:"value",disabled:"disabled",options:"options"};function useProps(n){const t=ref({...defaultProps$4,...n.props});let r={...n.props};return watch(()=>n.props,re=>{isEqual$1(re,r)||(t.value={...defaultProps$4,...re},r={...re})},{deep:!0}),{aliasProps:t,getLabel:re=>get$1(re,t.value.label),getValue:re=>get$1(re,t.value.value),getDisabled:re=>get$1(re,t.value.disabled),getOptions:re=>get$1(re,t.value.options)}}const selectGroupKey=Symbol("ElSelectGroup"),selectKey=Symbol("ElSelect"),COMPONENT_NAME$i="ElOption",optionProps=buildProps({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),escapeStringRegexp=(n="")=>n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),capitalize=n=>capitalize$1(n);function useOption$1(n,t){const r=inject(selectKey);r||throwError$1(COMPONENT_NAME$i,"usage: ");const i=inject(selectGroupKey,{disabled:!1}),g=computed(()=>oe(castArray$1(r.props.modelValue),n.value)),$=computed(()=>{var de;if(r.props.multiple){const he=castArray$1((de=r.props.modelValue)!=null?de:[]);return!g.value&&he.length>=r.props.multipleLimit&&r.props.multipleLimit>0}else return!1}),V=computed(()=>{var de;return(de=n.label)!=null?de:isObject$6(n.value)?"":n.value}),re=computed(()=>n.value||n.label||""),ie=computed(()=>n.disabled||t.groupDisabled||$.value),ae=getCurrentInstance(),oe=(de=[],he)=>{if(isObject$6(n.value)){const pe=r.props.valueKey;return de&&de.some(_e=>toRaw(get$1(_e,pe))===get$1(he,pe))}else return de&&de.includes(he)},le=()=>{ie.value||(r.states.hoveringIndex=r.optionsArray.indexOf(ae.proxy))},ue=de=>{const he=new RegExp(escapeStringRegexp(de),"i");t.visible=he.test(String(V.value))||n.created};return watch(()=>V.value,()=>{!n.created&&!r.props.remote&&r.setSelected()}),watch(()=>n.value,(de,he)=>{const{remote:pe,valueKey:_e}=r.props;if((pe?de!==he:!isEqual$1(de,he))&&(r.onOptionDestroy(he,ae.proxy),r.onOptionCreate(ae.proxy)),!n.created&&!pe){if(_e&&isObject$6(de)&&isObject$6(he)&&de[_e]===he[_e])return;r.setSelected()}}),watch(()=>i.disabled,()=>{t.groupDisabled=i.disabled},{immediate:!0}),{select:r,currentLabel:V,currentValue:re,itemSelected:g,isDisabled:ie,hoverItem:le,updateOption:ue}}const _sfc_main$2B=defineComponent({name:COMPONENT_NAME$i,componentName:COMPONENT_NAME$i,props:optionProps,setup(n){const t=useNamespace("select"),r=useId(),i=computed(()=>[t.be("dropdown","item"),t.is("disabled",unref(re)),t.is("selected",unref(V)),t.is("hovering",unref(ue))]),g=reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:$,itemSelected:V,isDisabled:re,select:ie,hoverItem:ae,updateOption:oe}=useOption$1(n,g),{visible:le,hover:ue}=toRefs(g),de=getCurrentInstance().proxy;ie.onOptionCreate(de),onBeforeUnmount(()=>{const pe=de.value;nextTick(()=>{const{selected:_e}=ie.states,Ce=_e.some(xe=>xe.value===de.value);ie.states.cachedOptions.get(pe)===de&&!Ce&&ie.states.cachedOptions.delete(pe)}),ie.onOptionDestroy(pe,de)});function he(){re.value||ie.handleOptionSelect(de)}return{ns:t,id:r,containerKls:i,currentLabel:$,itemSelected:V,isDisabled:re,select:ie,visible:le,hover:ue,states:g,hoverItem:ae,updateOption:oe,selectOptionClick:he}}}),_hoisted_1$1v=["id","aria-disabled","aria-selected"];function _sfc_render$k(n,t,r,i,g,$){return withDirectives((openBlock(),createElementBlock("li",{id:n.id,class:normalizeClass(n.containerKls),role:"option","aria-disabled":n.isDisabled||void 0,"aria-selected":n.itemSelected,onMousemove:t[0]||(t[0]=(...V)=>n.hoverItem&&n.hoverItem(...V)),onClick:t[1]||(t[1]=withModifiers((...V)=>n.selectOptionClick&&n.selectOptionClick(...V),["stop"]))},[renderSlot(n.$slots,"default",{},()=>[createBaseVNode("span",null,toDisplayString(n.currentLabel),1)])],42,_hoisted_1$1v)),[[vShow,n.visible]])}var Option=_export_sfc(_sfc_main$2B,[["render",_sfc_render$k],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const MINIMUM_INPUT_WIDTH=11,BORDER_HORIZONTAL_WIDTH=2,_sfc_main$2A=defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const n=inject(selectKey),t=useNamespace("select"),r=computed(()=>n.props.popperClass),i=computed(()=>n.props.multiple),g=computed(()=>n.props.fitInputWidth),$=ref("");function V(){var re;const ie=(re=n.selectRef)==null?void 0:re.offsetWidth;ie?$.value=`${ie-BORDER_HORIZONTAL_WIDTH}px`:$.value=""}return onMounted(()=>{V(),useResizeObserver(n.selectRef,V)}),{ns:t,minWidth:$,popperClass:r,isMultiple:i,isFitInputWidth:g}}});function _sfc_render$j(n,t,r,i,g,$){return openBlock(),createElementBlock("div",{class:normalizeClass([n.ns.b("dropdown"),n.ns.is("multiple",n.isMultiple),n.popperClass]),style:normalizeStyle$1({[n.isFitInputWidth?"width":"minWidth"]:n.minWidth})},[n.$slots.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(n.ns.be("dropdown","header"))},[renderSlot(n.$slots,"header")],2)):createCommentVNode("v-if",!0),renderSlot(n.$slots,"default"),n.$slots.footer?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(n.ns.be("dropdown","footer"))},[renderSlot(n.$slots,"footer")],2)):createCommentVNode("v-if",!0)],6)}var ElSelectMenu$1=_export_sfc(_sfc_main$2A,[["render",_sfc_render$j],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);const useSelect$2=(n,t)=>{const{t:r}=useLocale(),i=useSlots(),g=useId(),$=useNamespace("select"),V=useNamespace("input"),re=reactive({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),ie=ref(),ae=ref(),oe=ref(),le=ref(),ue=ref(),de=ref(),he=ref(),pe=ref(),_e=ref(),Ce=ref(),xe=ref(),Ie=ref(!1),Ne=ref(),Oe=ref(!1),{form:$e,formItem:Ve}=useFormItem(),{inputId:Ue}=useFormItemInputId(n,{formItemContext:Ve}),{valueOnClear:Fe,isEmptyValue:ze}=useEmptyValues(n),{isComposing:Pt,handleCompositionStart:qe,handleCompositionUpdate:Et,handleCompositionEnd:kt}=useComposition({afterComposition:ar=>hr(ar)}),At=useFormDisabled(),{wrapperRef:Dt,isFocused:Lt,handleBlur:jt}=useFocusController(ue,{disabled:At,afterFocus(){n.automaticDropdown&&!Ie.value&&(Ie.value=!0,re.menuVisibleOnFocus=!0)},beforeBlur(ar){var wr,Mr;return((wr=oe.value)==null?void 0:wr.isFocusInsideContent(ar))||((Mr=le.value)==null?void 0:Mr.isFocusInsideContent(ar))},afterBlur(){var ar;Ie.value=!1,re.menuVisibleOnFocus=!1,n.validateEvent&&((ar=Ve==null?void 0:Ve.validate)==null||ar.call(Ve,"blur").catch(wr=>void 0))}}),hn=computed(()=>isArray$5(n.modelValue)?n.modelValue.length>0:!ze(n.modelValue)),vn=computed(()=>{var ar;return(ar=$e==null?void 0:$e.statusIcon)!=null?ar:!1}),_n=computed(()=>n.clearable&&!At.value&&hn.value&&(Lt.value||re.inputHovering)),wn=computed(()=>n.remote&&n.filterable&&!n.remoteShowSuffix?"":n.suffixIcon),bn=computed(()=>$.is("reverse",!!(wn.value&&Ie.value))),Cn=computed(()=>(Ve==null?void 0:Ve.validateState)||""),Sn=computed(()=>Cn.value&&ValidateComponentsMap[Cn.value]),Tn=computed(()=>n.remote?n.debounce:0),En=computed(()=>n.remote&&!re.inputValue&&re.options.size===0),kn=computed(()=>n.loading?n.loadingText||r("el.select.loading"):n.filterable&&re.inputValue&&re.options.size>0&&$n.value===0?n.noMatchText||r("el.select.noMatch"):re.options.size===0?n.noDataText||r("el.select.noData"):null),$n=computed(()=>An.value.filter(ar=>ar.visible).length),An=computed(()=>{const ar=Array.from(re.options.values()),wr=[];return re.optionValues.forEach(Mr=>{const Rr=ar.findIndex(Dr=>Dr.value===Mr);Rr>-1&&wr.push(ar[Rr])}),wr.length>=ar.length?wr:ar}),xn=computed(()=>Array.from(re.cachedOptions.values())),Ln=computed(()=>{const ar=An.value.filter(wr=>!wr.created).some(wr=>wr.currentLabel===re.inputValue);return n.filterable&&n.allowCreate&&re.inputValue!==""&&!ar}),Nn=()=>{n.filterable&&isFunction$4(n.filterMethod)||n.filterable&&n.remote&&isFunction$4(n.remoteMethod)||An.value.forEach(ar=>{var wr;(wr=ar.updateOption)==null||wr.call(ar,re.inputValue)})},Pn=useFormSize(),On=computed(()=>["small"].includes(Pn.value)?"small":"default"),Hn=computed({get(){return Ie.value&&(n.loading||!En.value||n.remote&&!!i.empty)&&(!Oe.value||!isEmpty(re.previousQuery))},set(ar){Ie.value=ar}}),Xn=computed(()=>{if(n.multiple&&!isUndefined$1(n.modelValue))return castArray$1(n.modelValue).length===0&&!re.inputValue;const ar=isArray$5(n.modelValue)?n.modelValue[0]:n.modelValue;return n.filterable||isUndefined$1(ar)?!re.inputValue:!0}),In=computed(()=>{var ar;const wr=(ar=n.placeholder)!=null?ar:r("el.select.placeholder");return n.multiple||!hn.value?wr:re.selectedLabel}),or=computed(()=>isIOS?null:"mouseenter");watch(()=>n.modelValue,(ar,wr)=>{n.multiple&&n.filterable&&!n.reserveKeyword&&(re.inputValue="",Qn("")),Gn(),!isEqual$1(ar,wr)&&n.validateEvent&&(Ve==null||Ve.validate("change").catch(Mr=>void 0))},{flush:"post",deep:!0}),watch(()=>Ie.value,ar=>{ar?Qn(re.inputValue):(re.inputValue="",re.previousQuery=null,re.isBeforeHide=!0)}),watch(()=>re.options.entries(),()=>{isClient&&(Gn(),n.defaultFirstOption&&(n.filterable||n.remote)&&$n.value&&Zn())},{flush:"post"}),watch([()=>re.hoveringIndex,An],([ar])=>{isNumber$2(ar)&&ar>-1?Ne.value=An.value[ar]||{}:Ne.value={},An.value.forEach(wr=>{wr.hover=Ne.value===wr})}),watchEffect(()=>{re.isBeforeHide||Nn()});const Qn=ar=>{re.previousQuery===ar||Pt.value||(re.previousQuery=ar,n.filterable&&isFunction$4(n.filterMethod)?n.filterMethod(ar):n.filterable&&n.remote&&isFunction$4(n.remoteMethod)&&n.remoteMethod(ar),n.defaultFirstOption&&(n.filterable||n.remote)&&$n.value?nextTick(Zn):nextTick(Mn))},Zn=()=>{const ar=An.value.filter(Dr=>Dr.visible&&!Dr.disabled&&!Dr.states.groupDisabled),wr=ar.find(Dr=>Dr.created),Mr=ar[0],Rr=An.value.map(Dr=>Dr.value);re.hoveringIndex=cr(Rr,wr||Mr)},Gn=()=>{if(n.multiple)re.selectedLabel="";else{const wr=isArray$5(n.modelValue)?n.modelValue[0]:n.modelValue,Mr=Rn(wr);re.selectedLabel=Mr.currentLabel,re.selected=[Mr];return}const ar=[];isUndefined$1(n.modelValue)||castArray$1(n.modelValue).forEach(wr=>{ar.push(Rn(wr))}),re.selected=ar},Rn=ar=>{let wr;const Mr=isPlainObject$3(ar);for(let Gr=re.cachedOptions.size-1;Gr>=0;Gr--){const Hr=xn.value[Gr];if(Mr?get$1(Hr.value,n.valueKey)===get$1(ar,n.valueKey):Hr.value===ar){wr={index:An.value.filter(Dn=>!Dn.created).indexOf(Hr),value:ar,currentLabel:Hr.currentLabel,get isDisabled(){return Hr.isDisabled}};break}}if(wr)return wr;const Rr=Mr?ar.label:ar??"";return{index:-1,value:ar,currentLabel:Rr}},Mn=()=>{const ar=re.selected.length;if(ar>0){const wr=re.selected[ar-1];re.hoveringIndex=An.value.findIndex(Mr=>zr(wr)===zr(Mr))}else re.hoveringIndex=-1},Bn=()=>{re.selectionWidth=Number.parseFloat(window.getComputedStyle(ae.value).width)},qn=()=>{re.collapseItemWidth=Ce.value.getBoundingClientRect().width},zn=()=>{var ar,wr;(wr=(ar=oe.value)==null?void 0:ar.updatePopper)==null||wr.call(ar)},jn=()=>{var ar,wr;(wr=(ar=le.value)==null?void 0:ar.updatePopper)==null||wr.call(ar)},tr=()=>{re.inputValue.length>0&&!Ie.value&&(Ie.value=!0),Qn(re.inputValue)},hr=ar=>{if(re.inputValue=ar.target.value,n.remote)Oe.value=!0,ir();else return tr()},ir=useDebounceFn(()=>{tr(),Oe.value=!1},Tn),pr=ar=>{isEqual$1(n.modelValue,ar)||t(CHANGE_EVENT,ar)},rr=ar=>findLastIndex(ar,wr=>{const Mr=re.cachedOptions.get(wr);return!(Mr!=null&&Mr.disabled)&&!(Mr!=null&&Mr.states.groupDisabled)}),lr=ar=>{const wr=getEventCode(ar);if(n.multiple&&wr!==EVENT_CODE.delete&&ar.target.value.length<=0){const Mr=castArray$1(n.modelValue).slice(),Rr=rr(Mr);if(Rr<0)return;const Dr=Mr[Rr];Mr.splice(Rr,1),t(UPDATE_MODEL_EVENT,Mr),pr(Mr),t("remove-tag",Dr)}},Yn=(ar,wr)=>{const Mr=re.selected.indexOf(wr);if(Mr>-1&&!At.value){const Rr=castArray$1(n.modelValue).slice();Rr.splice(Mr,1),t(UPDATE_MODEL_EVENT,Rr),pr(Rr),t("remove-tag",wr.value)}ar.stopPropagation(),Jn()},er=ar=>{ar.stopPropagation();const wr=n.multiple?[]:Fe.value;if(n.multiple)for(const Mr of re.selected)Mr.isDisabled&&wr.push(Mr.value);t(UPDATE_MODEL_EVENT,wr),pr(wr),re.hoveringIndex=-1,Ie.value=!1,t("clear"),Jn()},Fn=ar=>{var wr;if(n.multiple){const Mr=castArray$1((wr=n.modelValue)!=null?wr:[]).slice(),Rr=cr(Mr,ar);Rr>-1?Mr.splice(Rr,1):(n.multipleLimit<=0||Mr.length{Un(ar)})},cr=(ar,wr)=>isUndefined$1(wr)?-1:isObject$6(wr.value)?ar.findIndex(Mr=>isEqual$1(get$1(Mr,n.valueKey),zr(wr))):ar.indexOf(wr.value),Un=ar=>{var wr,Mr,Rr,Dr,Gr;const Hr=isArray$5(ar)?ar[ar.length-1]:ar;let Qr=null;if(!isNil(Hr==null?void 0:Hr.value)){const Dn=An.value.filter(nr=>nr.value===Hr.value);Dn.length>0&&(Qr=Dn[0].$el)}if(oe.value&&Qr){const Dn=(Dr=(Rr=(Mr=(wr=oe.value)==null?void 0:wr.popperRef)==null?void 0:Mr.contentRef)==null?void 0:Rr.querySelector)==null?void 0:Dr.call(Rr,`.${$.be("dropdown","wrap")}`);Dn&&scrollIntoView(Dn,Qr)}(Gr=xe.value)==null||Gr.handleScroll()},gr=ar=>{re.options.set(ar.value,ar),re.cachedOptions.set(ar.value,ar)},vr=(ar,wr)=>{re.options.get(ar)===wr&&re.options.delete(ar)},yr=computed(()=>{var ar,wr;return(wr=(ar=oe.value)==null?void 0:ar.popperRef)==null?void 0:wr.contentRef}),Wn=()=>{re.isBeforeHide=!1,nextTick(()=>{var ar;(ar=xe.value)==null||ar.update(),Un(re.selected)})},Jn=()=>{var ar;(ar=ue.value)==null||ar.focus()},sr=()=>{var ar;if(Ie.value){Ie.value=!1,nextTick(()=>{var wr;return(wr=ue.value)==null?void 0:wr.blur()});return}(ar=ue.value)==null||ar.blur()},Sr=ar=>{er(ar)},Tr=ar=>{if(Ie.value=!1,Lt.value){const wr=new FocusEvent("blur",ar);nextTick(()=>jt(wr))}},fr=()=>{re.inputValue.length>0?re.inputValue="":Ie.value=!1},_r=ar=>{var wr;At.value||n.filterable&&Ie.value&&ar&&!((wr=he.value)!=null&&wr.contains(ar.target))||(isIOS&&(re.inputHovering=!0),re.menuVisibleOnFocus?re.menuVisibleOnFocus=!1:Ie.value=!Ie.value)},Cr=()=>{if(!Ie.value)_r();else{const ar=An.value[re.hoveringIndex];ar&&!ar.isDisabled&&Fn(ar)}},zr=ar=>isObject$6(ar.value)?get$1(ar.value,n.valueKey):ar.value,Ur=computed(()=>An.value.filter(ar=>ar.visible).every(ar=>ar.isDisabled)),jr=computed(()=>n.multiple?n.collapseTags?re.selected.slice(0,n.maxCollapseTags):re.selected:[]),ai=computed(()=>n.multiple?n.collapseTags?re.selected.slice(n.maxCollapseTags):[]:[]),ti=ar=>{if(!Ie.value){Ie.value=!0;return}if(!(re.options.size===0||$n.value===0||Pt.value)&&!Ur.value){ar==="next"?(re.hoveringIndex++,re.hoveringIndex===re.options.size&&(re.hoveringIndex=0)):ar==="prev"&&(re.hoveringIndex--,re.hoveringIndex<0&&(re.hoveringIndex=re.options.size-1));const wr=An.value[re.hoveringIndex];(wr.isDisabled||!wr.visible)&&ti(ar),nextTick(()=>Un(Ne.value))}},ri=(ar,wr,Mr,Rr)=>{for(let Dr=wr;Dr>=0&&Dr{var Mr;const Rr=re.options.size;if(Rr===0)return;const Dr=clamp$3(ar,0,Rr-1),Gr=An.value,Hr=wr==="up"?-1:1,Qr=(Mr=ri(Gr,Dr,Hr,Rr))!=null?Mr:ri(Gr,Dr-Hr,-Hr,Rr);Qr!=null&&(re.hoveringIndex=Qr,nextTick(()=>Un(Ne.value)))},ii=ar=>{const wr=getEventCode(ar);let Mr=!0;switch(wr){case EVENT_CODE.up:ti("prev");break;case EVENT_CODE.down:ti("next");break;case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:Pt.value||Cr();break;case EVENT_CODE.esc:fr();break;case EVENT_CODE.backspace:Mr=!1,lr(ar);return;case EVENT_CODE.home:if(!Ie.value)return;Wr(0,"down");break;case EVENT_CODE.end:if(!Ie.value)return;Wr(re.options.size-1,"up");break;case EVENT_CODE.pageUp:if(!Ie.value)return;Wr(re.hoveringIndex-10,"up");break;case EVENT_CODE.pageDown:if(!Ie.value)return;Wr(re.hoveringIndex+10,"down");break;default:Mr=!1;break}Mr&&(ar.preventDefault(),ar.stopPropagation())},si=()=>{if(!ae.value)return 0;const ar=window.getComputedStyle(ae.value);return Number.parseFloat(ar.gap||"6px")},li=computed(()=>{const ar=si(),wr=n.filterable?ar+MINIMUM_INPUT_WIDTH:0;return{maxWidth:`${Ce.value&&n.maxCollapseTags===1?re.selectionWidth-re.collapseItemWidth-ar-wr:re.selectionWidth-wr}px`}}),ni=computed(()=>({maxWidth:`${re.selectionWidth}px`})),ci=ar=>{t("popup-scroll",ar)};useResizeObserver(ae,Bn),useResizeObserver(Dt,zn),useResizeObserver(_e,jn),useResizeObserver(Ce,qn);let Jr;return watch(()=>Hn.value,ar=>{ar?Jr=useResizeObserver(pe,zn).stop:(Jr==null||Jr(),Jr=void 0),t("visible-change",ar)}),onMounted(()=>{Gn()}),{inputId:Ue,contentId:g,nsSelect:$,nsInput:V,states:re,isFocused:Lt,expanded:Ie,optionsArray:An,hoverOption:Ne,selectSize:Pn,filteredOptionsCount:$n,updateTooltip:zn,updateTagTooltip:jn,debouncedOnInputChange:ir,onInput:hr,deletePrevTag:lr,deleteTag:Yn,deleteSelected:er,handleOptionSelect:Fn,scrollToOption:Un,hasModelValue:hn,shouldShowPlaceholder:Xn,currentPlaceholder:In,mouseEnterEventName:or,needStatusIcon:vn,showClearBtn:_n,iconComponent:wn,iconReverse:bn,validateState:Cn,validateIcon:Sn,showNewOption:Ln,updateOptions:Nn,collapseTagSize:On,setSelected:Gn,selectDisabled:At,emptyText:kn,handleCompositionStart:qe,handleCompositionUpdate:Et,handleCompositionEnd:kt,handleKeydown:ii,onOptionCreate:gr,onOptionDestroy:vr,handleMenuEnter:Wn,focus:Jn,blur:sr,handleClearClick:Sr,handleClickOutside:Tr,handleEsc:fr,toggleMenu:_r,selectOption:Cr,getValueKey:zr,navigateOptions:ti,dropdownMenuVisible:Hn,showTagList:jr,collapseTagList:ai,popupScroll:ci,getOption:Rn,tagStyle:li,collapseTagStyle:ni,popperRef:yr,inputRef:ue,tooltipRef:oe,tagTooltipRef:le,prefixRef:de,suffixRef:he,selectRef:ie,wrapperRef:Dt,selectionRef:ae,scrollbarRef:xe,menuRef:pe,tagMenuRef:_e,collapseItemRef:Ce}};var ElOptions=defineComponent({name:"ElOptions",setup(n,{slots:t}){const r=inject(selectKey);let i=[];return()=>{var g,$;const V=(g=t.default)==null?void 0:g.call(t),re=[];function ie(ae){isArray$5(ae)&&ae.forEach(oe=>{var le,ue,de,he;const pe=(le=(oe==null?void 0:oe.type)||{})==null?void 0:le.name;pe==="ElOptionGroup"?ie(!isString$2(oe.children)&&!isArray$5(oe.children)&&isFunction$4((ue=oe.children)==null?void 0:ue.default)?(de=oe.children)==null?void 0:de.default():oe.children):pe==="ElOption"?re.push((he=oe.props)==null?void 0:he.value):isArray$5(oe.children)&&ie(oe.children)})}return V.length&&ie(($=V[0])==null?void 0:$.children),isEqual$1(re,i)||(i=re,r&&(r.states.optionValues=re)),V}}});const selectProps=buildProps({name:String,id:String,modelValue:{type:definePropType([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:useSizeProp,effect:{type:definePropType(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:definePropType([String,Object])},popperOptions:{type:definePropType(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:definePropType(Function)},filterMethod:{type:definePropType(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"},tagEffect:{...tagProps.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:definePropType(String),values:Ee,default:"bottom-start"},fallbackPlacements:{type:definePropType(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:useTooltipContentProps.appendTo,options:{type:definePropType(Array)},props:{type:definePropType(Object),default:()=>defaultProps$4},...useEmptyValuesProps,...useAriaProps(["ariaLabel"])});UPDATE_MODEL_EVENT+"",CHANGE_EVENT+"",scrollbarEmits.scroll;const _sfc_main$2z=defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(n){const t=useNamespace("select"),r=ref(),i=getCurrentInstance(),g=ref([]);provide(selectGroupKey,reactive({...toRefs(n)}));const $=computed(()=>g.value.some(ae=>ae.visible===!0)),V=ae=>{var oe;return ae.type.name==="ElOption"&&!!((oe=ae.component)!=null&&oe.proxy)},re=ae=>{const oe=castArray$1(ae),le=[];return oe.forEach(ue=>{var de;isVNode(ue)&&(V(ue)?le.push(ue.component.proxy):isArray$5(ue.children)&&ue.children.length?le.push(...re(ue.children)):(de=ue.component)!=null&&de.subTree&&le.push(...re(ue.component.subTree)))}),le},ie=()=>{g.value=re(i.subTree)};return onMounted(()=>{ie()}),useMutationObserver(r,ie,{attributes:!0,subtree:!0,childList:!0}),{groupRef:r,visible:$,ns:t}}});function _sfc_render$i(n,t,r,i,g,$){return withDirectives((openBlock(),createElementBlock("ul",{ref:"groupRef",class:normalizeClass(n.ns.be("group","wrap"))},[createBaseVNode("li",{class:normalizeClass(n.ns.be("group","title"))},toDisplayString(n.label),3),createBaseVNode("li",null,[createBaseVNode("ul",{class:normalizeClass(n.ns.b("group"))},[renderSlot(n.$slots,"default")],2)])],2)),[[vShow,n.visible]])}var OptionGroup=_export_sfc(_sfc_main$2z,[["render",_sfc_render$i],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const nodeList=new Map;if(isClient){let n;document.addEventListener("mousedown",t=>n=t),document.addEventListener("mouseup",t=>{if(n){for(const r of nodeList.values())for(const{documentHandler:i}of r)i(t,n);n=void 0}})}function createDocumentHandler(n,t){let r=[];return isArray$5(t.arg)?r=t.arg:isElement$1(t.arg)&&r.push(t.arg),function(i,g){const $=t.instance.popperRef,V=i.target,re=g==null?void 0:g.target,ie=!t||!t.instance,ae=!V||!re,oe=n.contains(V)||n.contains(re),le=n===V,ue=r.length&&r.some(he=>he==null?void 0:he.contains(V))||r.length&&r.includes(re),de=$&&($.contains(V)||$.contains(re));ie||ae||oe||le||ue||de||t.value(i,g)}}const ClickOutside={beforeMount(n,t){nodeList.has(n)||nodeList.set(n,[]),nodeList.get(n).push({documentHandler:createDocumentHandler(n,t),bindingFn:t.value})},updated(n,t){nodeList.has(n)||nodeList.set(n,[]);const r=nodeList.get(n),i=r.findIndex($=>$.bindingFn===t.oldValue),g={documentHandler:createDocumentHandler(n,t),bindingFn:t.value};i>=0?r.splice(i,1,g):r.push(g)},unmounted(n){nodeList.delete(n)}};function useCalcInputWidth(){const n=shallowRef(),t=ref(0),r=computed(()=>({minWidth:`${Math.max(t.value,MINIMUM_INPUT_WIDTH)}px`}));return useResizeObserver(n,()=>{var g,$;t.value=($=(g=n.value)==null?void 0:g.getBoundingClientRect().width)!=null?$:0}),{calculatorRef:n,calculatorWidth:t,inputStyle:r}}const COMPONENT_NAME$h="ElSelect",warnHandlerMap=new WeakMap,createSelectWarnHandler=n=>(...t)=>{var r,i;const g=t[0];if(!g||g.includes('Slot "default" invoked outside of the render function')&&((r=t[2])!=null&&r.includes("ElTreeSelect")))return;const $=(i=warnHandlerMap.get(n))==null?void 0:i.originalWarnHandler;if($){$(...t);return}console.warn(...t)},getWarnHandlerRecord=n=>{let t=warnHandlerMap.get(n);return t||(t={originalWarnHandler:n.config.warnHandler,handler:createSelectWarnHandler(n),count:0},warnHandlerMap.set(n,t)),t},_sfc_main$2y=defineComponent({name:COMPONENT_NAME$h,componentName:COMPONENT_NAME$h,components:{ElSelectMenu:ElSelectMenu$1,ElOption:Option,ElOptions,ElOptionGroup:OptionGroup,ElTag,ElScrollbar,ElTooltip,ElIcon},directives:{ClickOutside},props:selectProps,emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(n,{emit:t,slots:r}){const i=getCurrentInstance(),g=getWarnHandlerRecord(i.appContext);g.count+=1,i.appContext.config.warnHandler=g.handler;const $=computed(()=>{const{modelValue:xe,multiple:Ie}=n,Ne=Ie?[]:void 0;return isArray$5(xe)?Ie?xe:Ne:Ie?Ne:xe}),V=reactive({...toRefs(n),modelValue:$}),re=useSelect$2(V,t),{calculatorRef:ie,inputStyle:ae}=useCalcInputWidth(),{getLabel:oe,getValue:le,getOptions:ue,getDisabled:de}=useProps(n),he=xe=>({label:oe(xe),value:le(xe),disabled:de(xe)}),pe=xe=>xe.reduce((Ie,Ne)=>(Ie.push(Ne),Ne.children&&Ne.children.length>0&&Ie.push(...pe(Ne.children)),Ie),[]),_e=xe=>{flattedChildren(xe||[]).forEach(Ne=>{var Oe;if(isObject$6(Ne)&&(Ne.type.name==="ElOption"||Ne.type.name==="ElTree")){const $e=Ne.type.name;if($e==="ElTree"){const Ve=((Oe=Ne.props)==null?void 0:Oe.data)||[];pe(Ve).forEach(Fe=>{Fe.currentLabel=Fe.label||(isObject$6(Fe.value)?"":Fe.value),re.onOptionCreate(Fe)})}else if($e==="ElOption"){const Ve={...Ne.props};Ve.currentLabel=Ve.label||(isObject$6(Ve.value)?"":Ve.value),re.onOptionCreate(Ve)}}})};watch(()=>{var xe;return[(xe=r.default)==null?void 0:xe.call(r),$.value]},()=>{var xe;n.persistent||re.expanded.value||(re.states.options.clear(),_e((xe=r.default)==null?void 0:xe.call(r)))},{immediate:!0}),provide(selectKey,reactive({props:V,states:re.states,selectRef:re.selectRef,optionsArray:re.optionsArray,setSelected:re.setSelected,handleOptionSelect:re.handleOptionSelect,onOptionCreate:re.onOptionCreate,onOptionDestroy:re.onOptionDestroy}));const Ce=computed(()=>n.multiple?re.states.selected.map(xe=>xe.currentLabel):re.states.selectedLabel);return onBeforeUnmount(()=>{const xe=warnHandlerMap.get(i.appContext);xe&&(xe.count-=1,xe.count<=0&&(i.appContext.config.warnHandler=xe.originalWarnHandler,warnHandlerMap.delete(i.appContext)))}),{...re,modelValue:$,selectedLabel:Ce,calculatorRef:ie,inputStyle:ae,getLabel:oe,getValue:le,getOptions:ue,getDisabled:de,getOptionProps:he}}}),_hoisted_1$1u=["id","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],_hoisted_2$V=["textContent"],_hoisted_3$p={key:1};function _sfc_render$h(n,t,r,i,g,$){const V=resolveComponent("el-tag"),re=resolveComponent("el-tooltip"),ie=resolveComponent("el-icon"),ae=resolveComponent("el-option"),oe=resolveComponent("el-option-group"),le=resolveComponent("el-options"),ue=resolveComponent("el-scrollbar"),de=resolveComponent("el-select-menu"),he=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",mergeProps({ref:"selectRef",class:[n.nsSelect.b(),n.nsSelect.m(n.selectSize)]},{[toHandlerKey(n.mouseEnterEventName)]:t[11]||(t[11]=pe=>n.states.inputHovering=!0)},{onMouseleave:t[12]||(t[12]=pe=>n.states.inputHovering=!1)}),[createVNode$1(re,{ref:"tooltipRef",visible:n.dropdownMenuVisible,placement:n.placement,teleported:n.teleported,"popper-class":[n.nsSelect.e("popper"),n.popperClass],"popper-style":n.popperStyle,"popper-options":n.popperOptions,"fallback-placements":n.fallbackPlacements,effect:n.effect,pure:"",trigger:"click",transition:`${n.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:n.persistent,"append-to":n.appendTo,"show-arrow":n.showArrow,offset:n.offset,onBeforeShow:n.handleMenuEnter,onHide:t[10]||(t[10]=pe=>n.states.isBeforeHide=!1)},{default:withCtx(()=>{var pe;return[createBaseVNode("div",{ref:"wrapperRef",class:normalizeClass([n.nsSelect.e("wrapper"),n.nsSelect.is("focused",n.isFocused),n.nsSelect.is("hovering",n.states.inputHovering),n.nsSelect.is("filterable",n.filterable),n.nsSelect.is("disabled",n.selectDisabled)]),onClick:t[7]||(t[7]=withModifiers((..._e)=>n.toggleMenu&&n.toggleMenu(..._e),["prevent"]))},[n.$slots.prefix?(openBlock(),createElementBlock("div",{key:0,ref:"prefixRef",class:normalizeClass(n.nsSelect.e("prefix"))},[renderSlot(n.$slots,"prefix")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"selectionRef",class:normalizeClass([n.nsSelect.e("selection"),n.nsSelect.is("near",n.multiple&&!n.$slots.prefix&&!!n.states.selected.length)])},[n.multiple?renderSlot(n.$slots,"tag",{key:0,data:n.states.selected,deleteTag:n.deleteTag,selectDisabled:n.selectDisabled},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.showTagList,_e=>(openBlock(),createElementBlock("div",{key:n.getValueKey(_e),class:normalizeClass(n.nsSelect.e("selected-item"))},[createVNode$1(V,{closable:!n.selectDisabled&&!_e.isDisabled,size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",style:normalizeStyle$1(n.tagStyle),onClose:Ce=>n.deleteTag(Ce,_e)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(n.nsSelect.e("tags-text"))},[renderSlot(n.$slots,"label",{index:_e.index,label:_e.currentLabel,value:_e.value},()=>[createTextVNode(toDisplayString(_e.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),n.collapseTags&&n.states.selected.length>n.maxCollapseTags?(openBlock(),createBlock(re,{key:0,ref:"tagTooltipRef",disabled:n.dropdownMenuVisible||!n.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:n.effect,placement:"bottom","popper-class":n.popperClass,"popper-style":n.popperStyle,teleported:n.teleported,"popper-options":n.popperOptions},{default:withCtx(()=>[createBaseVNode("div",{ref:"collapseItemRef",class:normalizeClass(n.nsSelect.e("selected-item"))},[createVNode$1(V,{closable:!1,size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",style:normalizeStyle$1(n.collapseTagStyle)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(n.nsSelect.e("tags-text"))}," + "+toDisplayString(n.states.selected.length-n.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:withCtx(()=>[createBaseVNode("div",{ref:"tagMenuRef",class:normalizeClass(n.nsSelect.e("selection"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.collapseTagList,_e=>(openBlock(),createElementBlock("div",{key:n.getValueKey(_e),class:normalizeClass(n.nsSelect.e("selected-item"))},[createVNode$1(V,{class:"in-tooltip",closable:!n.selectDisabled&&!_e.isDisabled,size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",onClose:Ce=>n.deleteTag(Ce,_e)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(n.nsSelect.e("tags-text"))},[renderSlot(n.$slots,"label",{index:_e.index,label:_e.currentLabel,value:_e.value},()=>[createTextVNode(toDisplayString(_e.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported","popper-options"])):createCommentVNode("v-if",!0)]):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([n.nsSelect.e("selected-item"),n.nsSelect.e("input-wrapper"),n.nsSelect.is("hidden",!n.filterable||n.selectDisabled)])},[withDirectives(createBaseVNode("input",{id:n.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=_e=>n.states.inputValue=_e),type:"text",name:n.name,class:normalizeClass([n.nsSelect.e("input"),n.nsSelect.is(n.selectSize)]),disabled:n.selectDisabled,autocomplete:n.autocomplete,style:normalizeStyle$1(n.inputStyle),tabindex:n.tabindex,role:"combobox",readonly:!n.filterable,spellcheck:"false","aria-activedescendant":((pe=n.hoverOption)==null?void 0:pe.id)||"","aria-controls":n.contentId,"aria-expanded":n.dropdownMenuVisible,"aria-label":n.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[1]||(t[1]=(..._e)=>n.handleKeydown&&n.handleKeydown(..._e)),onCompositionstart:t[2]||(t[2]=(..._e)=>n.handleCompositionStart&&n.handleCompositionStart(..._e)),onCompositionupdate:t[3]||(t[3]=(..._e)=>n.handleCompositionUpdate&&n.handleCompositionUpdate(..._e)),onCompositionend:t[4]||(t[4]=(..._e)=>n.handleCompositionEnd&&n.handleCompositionEnd(..._e)),onInput:t[5]||(t[5]=(..._e)=>n.onInput&&n.onInput(..._e)),onClick:t[6]||(t[6]=withModifiers((..._e)=>n.toggleMenu&&n.toggleMenu(..._e),["stop"]))},null,46,_hoisted_1$1u),[[vModelText,n.states.inputValue]]),n.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass(n.nsSelect.e("input-calculator")),textContent:toDisplayString(n.states.inputValue)},null,10,_hoisted_2$V)):createCommentVNode("v-if",!0)],2),n.shouldShowPlaceholder?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([n.nsSelect.e("selected-item"),n.nsSelect.e("placeholder"),n.nsSelect.is("transparent",!n.hasModelValue||n.expanded&&!n.states.inputValue)])},[n.hasModelValue?renderSlot(n.$slots,"label",{key:0,index:n.getOption(n.modelValue).index,label:n.currentPlaceholder,value:n.modelValue},()=>[createBaseVNode("span",null,toDisplayString(n.currentPlaceholder),1)]):(openBlock(),createElementBlock("span",_hoisted_3$p,toDisplayString(n.currentPlaceholder),1))],2)):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{ref:"suffixRef",class:normalizeClass(n.nsSelect.e("suffix"))},[n.iconComponent&&!n.showClearBtn?(openBlock(),createBlock(ie,{key:0,class:normalizeClass([n.nsSelect.e("caret"),n.nsSelect.e("icon"),n.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),n.showClearBtn&&n.clearIcon?(openBlock(),createBlock(ie,{key:1,class:normalizeClass([n.nsSelect.e("caret"),n.nsSelect.e("icon"),n.nsSelect.e("clear")]),onClick:n.handleClearClick},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),n.validateState&&n.validateIcon&&n.needStatusIcon?(openBlock(),createBlock(ie,{key:2,class:normalizeClass([n.nsInput.e("icon"),n.nsInput.e("validateIcon"),n.nsInput.is("loading",n.validateState==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.validateIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)]}),content:withCtx(()=>[createVNode$1(de,{ref:"menuRef"},{default:withCtx(()=>[n.$slots.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(n.nsSelect.be("dropdown","header")),onClick:t[8]||(t[8]=withModifiers(()=>{},["stop"]))},[renderSlot(n.$slots,"header")],2)):createCommentVNode("v-if",!0),withDirectives(createVNode$1(ue,{id:n.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":n.nsSelect.be("dropdown","wrap"),"view-class":n.nsSelect.be("dropdown","list"),class:normalizeClass([n.nsSelect.is("empty",n.filteredOptionsCount===0)]),role:"listbox","aria-label":n.ariaLabel,"aria-orientation":"vertical",onScroll:n.popupScroll},{default:withCtx(()=>[n.showNewOption?(openBlock(),createBlock(ae,{key:0,value:n.states.inputValue,created:!0},null,8,["value"])):createCommentVNode("v-if",!0),createVNode$1(le,null,{default:withCtx(()=>[renderSlot(n.$slots,"default",{},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.options,(pe,_e)=>{var Ce;return openBlock(),createElementBlock(Fragment,{key:_e},[(Ce=n.getOptions(pe))!=null&&Ce.length?(openBlock(),createBlock(oe,{key:0,label:n.getLabel(pe),disabled:n.getDisabled(pe)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.getOptions(pe),xe=>(openBlock(),createBlock(ae,mergeProps({key:n.getValue(xe)},{ref_for:!0},n.getOptionProps(xe)),null,16))),128))]),_:2},1032,["label","disabled"])):(openBlock(),createBlock(ae,mergeProps({key:1,ref_for:!0},n.getOptionProps(pe)),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[vShow,n.states.options.size>0&&!n.loading]]),n.$slots.loading&&n.loading?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(n.nsSelect.be("dropdown","loading"))},[renderSlot(n.$slots,"loading")],2)):n.loading||n.filteredOptionsCount===0?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(n.nsSelect.be("dropdown","empty"))},[renderSlot(n.$slots,"empty",{},()=>[createBaseVNode("span",null,toDisplayString(n.emptyText),1)])],2)):createCommentVNode("v-if",!0),n.$slots.footer?(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(n.nsSelect.be("dropdown","footer")),onClick:t[9]||(t[9]=withModifiers(()=>{},["stop"]))},[renderSlot(n.$slots,"footer")],2)):createCommentVNode("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],16)),[[he,n.handleClickOutside,n.popperRef]])}var Select$1=_export_sfc(_sfc_main$2y,[["render",_sfc_render$h],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const ElSelect=withInstall(Select$1,{Option,OptionGroup}),ElOption=withNoopInstall(Option),ElOptionGroup=withNoopInstall(OptionGroup),selectControllerProps=buildProps({date:{type:definePropType(Object),required:!0},formatter:{type:definePropType(Function)}}),selectControllerEmits={"date-change":n=>isObject$6(n)||isString$2(n)},_sfc_main$2x=defineComponent({name:"SelectController",__name:"select-controller",props:selectControllerProps,emits:selectControllerEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("calendar-select"),{t:$,lang:V}=useLocale(),re=Array.from({length:12},(he,pe)=>{const _e=pe+1,Ce=isFunction$4(r.formatter)?r.formatter(_e,"month"):_e;return{value:_e,label:Ce}}),ie=computed(()=>r.date.year()),ae=computed(()=>r.date.month()+1),oe=computed(()=>{const he=[];for(let pe=-10;pe<10;pe++){const _e=ie.value+pe;if(_e>0){const Ce=isFunction$4(r.formatter)?r.formatter(_e,"year"):_e;he.push({value:_e,label:Ce})}}return he}),le=he=>{i("date-change",dayjs(new Date(he,ae.value-1,1)).locale(V.value))},ue=he=>{i("date-change",dayjs(new Date(ie.value,he-1,1)).locale(V.value))},de=()=>{i("date-change","today")};return(he,pe)=>(openBlock(),createElementBlock(Fragment,null,[createVNode$1(unref(ElSelect),{"model-value":ie.value,size:"small",class:normalizeClass(unref(g).e("year")),"validate-event":!1,options:oe.value,onChange:le},null,8,["model-value","class","options"]),createVNode$1(unref(ElSelect),{"model-value":ae.value,size:"small",class:normalizeClass(unref(g).e("month")),"validate-event":!1,options:unref(re),onChange:ue},null,8,["model-value","class","options"]),createVNode$1(unref(ElButton),{size:"small",onClick:de},{default:withCtx(()=>[createTextVNode(toDisplayString(unref($)("el.datepicker.today")),1)]),_:1})],64))}});var SelectController=_export_sfc(_sfc_main$2x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/select-controller.vue"]]);const COMPONENT_NAME$g="ElCalendar",_sfc_main$2w=defineComponent({name:COMPONENT_NAME$g,__name:"calendar",props:calendarProps,emits:calendarEmits,setup(n,{expose:t,emit:r}){const i=useNamespace("calendar"),g=n,$=r,{calculateValidatedDateRange:V,date:re,pickDay:ie,realSelectedDay:ae,selectDate:oe,validatedRange:le,handleDateChange:ue}=useCalendar(g,$),{t:de}=useLocale(),he=computed(()=>{const pe=`el.datepicker.month${re.value.format("M")}`;return`${re.value.year()} ${de("el.datepicker.year")} ${de(pe)}`});return t({selectedDay:ae,pickDay:ie,selectDate:oe,calculateValidatedDateRange:V}),(pe,_e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(i).b())},[createBaseVNode("div",{class:normalizeClass(unref(i).e("header"))},[renderSlot(pe.$slots,"header",{date:he.value},()=>[createBaseVNode("div",{class:normalizeClass(unref(i).e("title"))},toDisplayString(he.value),3),unref(le).length===0&&pe.controllerType==="button"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).e("button-group"))},[createVNode$1(unref(ElButtonGroup$1),null,{default:withCtx(()=>[createVNode$1(unref(ElButton),{size:"small",onClick:_e[0]||(_e[0]=Ce=>unref(oe)("prev-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(de)("el.datepicker.prevMonth")),1)]),_:1}),createVNode$1(unref(ElButton),{size:"small",onClick:_e[1]||(_e[1]=Ce=>unref(oe)("today"))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(de)("el.datepicker.today")),1)]),_:1}),createVNode$1(unref(ElButton),{size:"small",onClick:_e[2]||(_e[2]=Ce=>unref(oe)("next-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(de)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):unref(le).length===0&&pe.controllerType==="select"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(i).e("select-controller"))},[createVNode$1(SelectController,{date:unref(re),formatter:pe.formatter,onDateChange:unref(ue)},null,8,["date","formatter","onDateChange"])],2)):createCommentVNode("v-if",!0)])],2),unref(le).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).e("body"))},[createVNode$1(DateTable$1,{date:unref(re),"selected-day":unref(ae),onPick:unref(ie)},createSlots({_:2},[pe.$slots["date-cell"]?{name:"date-cell",fn:withCtx(Ce=>[renderSlot(pe.$slots,"date-cell",normalizeProps(guardReactiveProps(Ce)))]),key:"0"}:void 0]),1032,["date","selected-day","onPick"])],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(i).e("body"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(le),(Ce,xe)=>(openBlock(),createBlock(DateTable$1,{key:xe,date:Ce[0],"selected-day":unref(ae),range:Ce,"hide-header":xe!==0,onPick:unref(ie)},createSlots({_:2},[pe.$slots["date-cell"]?{name:"date-cell",fn:withCtx(Ie=>[renderSlot(pe.$slots,"date-cell",mergeProps({ref_for:!0},Ie))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var Calendar=_export_sfc(_sfc_main$2w,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const ElCalendar=withInstall(Calendar),cardProps=buildProps({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:definePropType([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}}),_sfc_main$2v=defineComponent({name:"ElCard",__name:"card",props:cardProps,setup(n){const t=useGlobalConfig("card"),r=useNamespace("card");return(i,g)=>{var $;return openBlock(),createElementBlock("div",{class:normalizeClass([unref(r).b(),unref(r).is(`${i.shadow||(($=unref(t))==null?void 0:$.shadow)||"always"}-shadow`)])},[i.$slots.header||i.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(r).e("header"),i.headerClass])},[renderSlot(i.$slots,"header",{},()=>[createTextVNode(toDisplayString(i.header),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([unref(r).e("body"),i.bodyClass]),style:normalizeStyle$1(i.bodyStyle)},[renderSlot(i.$slots,"default")],6),i.$slots.footer||i.footer?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(r).e("footer"),i.footerClass])},[renderSlot(i.$slots,"footer",{},()=>[createTextVNode(toDisplayString(i.footer),1)])],2)):createCommentVNode("v-if",!0)],2)}}});var Card=_export_sfc(_sfc_main$2v,[["__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:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),carouselEmits={change:(n,t)=>[n,t].every(isNumber$2)},carouselContextKey=Symbol("carouselContextKey"),CAROUSEL_ITEM_NAME="ElCarouselItem",getOrderedChildren=(n,t,r)=>flattedChildren(n.subTree).filter($=>{var V;return isVNode($)&&((V=$.type)==null?void 0:V.name)===t&&!!$.component}).map($=>$.component.uid).map($=>r[$]).filter($=>!!$),useOrderedChildren=(n,t)=>{const r=shallowRef({}),i=shallowRef([]),g=new WeakMap,$=oe=>{r.value[oe.uid]=oe,triggerRef(r),onMounted(()=>{const le=oe.getVnode().el,ue=le.parentNode;if(!g.has(ue)){g.set(ue,[]);const de=ue.insertBefore.bind(ue);ue.insertBefore=(he,pe)=>(g.get(ue).some(Ce=>he===Ce||pe===Ce)&&triggerRef(r),de(he,pe))}g.get(ue).push(le)})},V=oe=>{delete r.value[oe.uid],triggerRef(r);const le=oe.getVnode().el,ue=le.parentNode,de=g.get(ue),he=de.indexOf(le);de.splice(he,1)},re=()=>{i.value=getOrderedChildren(n,t,r.value)},ie=oe=>oe.render();return{children:i,addChild:$,removeChild:V,ChildrenSorter:defineComponent({setup(oe,{slots:le}){return()=>(re(),le.default?h$1(ie,{render:le.default}):null)}})}},THROTTLE_TIME=300,useCarousel=(n,t,r)=>{const{children:i,addChild:g,removeChild:$,ChildrenSorter:V}=useOrderedChildren(getCurrentInstance(),CAROUSEL_ITEM_NAME),re=useSlots(),ie=ref(-1),ae=ref(null),oe=ref(!1),le=ref(),ue=ref(0),de=ref(!0),he=computed(()=>n.arrow!=="never"&&!unref(Ce)),pe=computed(()=>i.value.some(Sn=>Sn.props.label.toString().length>0)),_e=computed(()=>n.type==="card"),Ce=computed(()=>n.direction==="vertical"),xe=computed(()=>n.height!=="auto"?{height:n.height}:{height:`${ue.value}px`,overflow:"hidden"}),Ie=throttle$3(Sn=>{Fe(Sn)},THROTTLE_TIME,{trailing:!0}),Ne=throttle$3(Sn=>{Lt(Sn)},THROTTLE_TIME),Oe=Sn=>de.value?ie.value<=1?Sn<=1:Sn>1:!0;function $e(){ae.value&&(clearInterval(ae.value),ae.value=null)}function Ve(){n.interval<=0||!n.autoplay||ae.value||(ae.value=setInterval(()=>Ue(),n.interval))}const Ue=()=>{ie.value$n.props.name===Sn);kn.length>0&&(Sn=i.value.indexOf(kn[0]))}if(Sn=Number(Sn),Number.isNaN(Sn)||Sn!==Math.floor(Sn))return;const Tn=i.value.length,En=ie.value;Sn<0?ie.value=n.loop?Tn-1:0:Sn>=Tn?ie.value=n.loop?0:Tn-1:ie.value=Sn,En===ie.value&&ze(En),vn()}function ze(Sn){i.value.forEach((Tn,En)=>{Tn.translateItem(En,ie.value,Sn)})}function Pt(Sn,Tn){var En,kn,$n,An;const xn=unref(i),Ln=xn.length;if(Ln===0||!Sn.states.inStage)return!1;const Nn=Tn+1,Pn=Tn-1,On=Ln-1,Hn=xn[On].states.active,Xn=xn[0].states.active,In=(kn=(En=xn[Nn])==null?void 0:En.states)==null?void 0:kn.active,or=(An=($n=xn[Pn])==null?void 0:$n.states)==null?void 0:An.active;return Tn===On&&Xn||In?"left":Tn===0&&Hn||or?"right":!1}function qe(){oe.value=!0,n.pauseOnHover&&$e()}function Et(){oe.value=!1,Ve()}function kt(Sn){unref(Ce)||i.value.forEach((Tn,En)=>{Sn===Pt(Tn,En)&&(Tn.states.hover=!0)})}function At(){unref(Ce)||i.value.forEach(Sn=>{Sn.states.hover=!1})}function Dt(Sn){ie.value=Sn}function Lt(Sn){n.trigger==="hover"&&Sn!==ie.value&&(ie.value=Sn)}function jt(){Fe(ie.value-1)}function hn(){Fe(ie.value+1)}function vn(){$e(),n.pauseOnHover||Ve()}function _n(Sn){n.height==="auto"&&(ue.value=Sn)}function wn(){var Sn;const Tn=(Sn=re.default)==null?void 0:Sn.call(re);if(!Tn)return null;const kn=flattedChildren(Tn).filter($n=>isVNode($n)&&$n.type.name===CAROUSEL_ITEM_NAME);return(kn==null?void 0:kn.length)===2&&n.loop&&!_e.value?(de.value=!0,kn):(de.value=!1,null)}watch(()=>ie.value,(Sn,Tn)=>{ze(Tn),de.value&&(Sn=Sn%2,Tn=Tn%2),Tn>-1&&t(CHANGE_EVENT,Sn,Tn)});const bn=computed({get:()=>de.value?ie.value%2:ie.value,set:Sn=>ie.value=Sn});watch(()=>n.autoplay,Sn=>{Sn?Ve():$e()}),watch(()=>n.loop,()=>{Fe(ie.value)}),watch(()=>n.interval,()=>{vn()});const Cn=shallowRef();return onMounted(()=>{watch(()=>i.value,()=>{i.value.length>0&&Fe(n.initialIndex)},{immediate:!0}),Cn.value=useResizeObserver(le.value,()=>{ze()}),Ve()}),onBeforeUnmount(()=>{$e(),le.value&&Cn.value&&Cn.value.stop()}),provide(carouselContextKey,{root:le,isCardType:_e,isVertical:Ce,items:i,loop:n.loop,cardScale:n.cardScale,addItem:g,removeItem:$,setActiveItem:Fe,setContainerHeight:_n}),{root:le,activeIndex:ie,exposeActiveIndex:bn,arrowDisplay:he,hasLabel:pe,hover:oe,isCardType:_e,items:i,isVertical:Ce,containerStyle:xe,isItemsTwoLength:de,handleButtonEnter:kt,handleButtonLeave:At,handleIndicatorClick:Dt,handleMouseEnter:qe,handleMouseLeave:Et,setActiveItem:Fe,prev:jt,next:hn,PlaceholderItem:wn,isTwoLengthShow:Oe,ItemsSorter:V,throttledArrowClick:Ie,throttledIndicatorHover:Ne}},_hoisted_1$1t=["aria-label"],_hoisted_2$U=["aria-label"],_hoisted_3$o=["onMouseenter","onClick"],_hoisted_4$i=["aria-label"],_hoisted_5$a={key:0},_hoisted_6$4={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},COMPONENT_NAME$f="ElCarousel",_sfc_main$2u=defineComponent({name:COMPONENT_NAME$f,__name:"carousel",props:carouselProps,emits:carouselEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{root:$,activeIndex:V,exposeActiveIndex:re,arrowDisplay:ie,hasLabel:ae,hover:oe,isCardType:le,items:ue,isVertical:de,containerStyle:he,handleButtonEnter:pe,handleButtonLeave:_e,handleIndicatorClick:Ce,handleMouseEnter:xe,handleMouseLeave:Ie,setActiveItem:Ne,prev:Oe,next:$e,PlaceholderItem:Ve,isTwoLengthShow:Ue,ItemsSorter:Fe,throttledArrowClick:ze,throttledIndicatorHover:Pt}=useCarousel(i,g),qe=useNamespace("carousel"),{t:Et}=useLocale(),kt=computed(()=>{const jt=[qe.b(),qe.m(i.direction)];return unref(le)&&jt.push(qe.m("card")),jt}),At=computed(()=>{const jt=[qe.e("indicators"),qe.em("indicators",i.direction)];return unref(ae)&&jt.push(qe.em("indicators","labels")),i.indicatorPosition==="outside"&&jt.push(qe.em("indicators","outside")),unref(de)&&jt.push(qe.em("indicators","right")),jt});function Dt(jt){if(!i.motionBlur)return;const hn=unref(de)?`${qe.namespace.value}-transitioning-vertical`:`${qe.namespace.value}-transitioning`;jt.currentTarget.classList.add(hn)}function Lt(jt){if(!i.motionBlur)return;const hn=unref(de)?`${qe.namespace.value}-transitioning-vertical`:`${qe.namespace.value}-transitioning`;jt.currentTarget.classList.remove(hn)}return t({activeIndex:re,setActiveItem:Ne,prev:Oe,next:$e}),(jt,hn)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:$,class:normalizeClass(kt.value),onMouseenter:hn[6]||(hn[6]=withModifiers((...vn)=>unref(xe)&&unref(xe)(...vn),["stop"])),onMouseleave:hn[7]||(hn[7]=withModifiers((...vn)=>unref(Ie)&&unref(Ie)(...vn),["stop"]))},[unref(ie)?(openBlock(),createBlock(Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(qe).e("arrow"),unref(qe).em("arrow","left")]),"aria-label":unref(Et)("el.carousel.leftArrow"),onMouseenter:hn[0]||(hn[0]=vn=>unref(pe)("left")),onMouseleave:hn[1]||(hn[1]=(...vn)=>unref(_e)&&unref(_e)(...vn)),onClick:hn[2]||(hn[2]=withModifiers(vn=>unref(ze)(unref(V)-1),["stop"]))},[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_left_default))]),_:1})],42,_hoisted_1$1t),[[vShow,(jt.arrow==="always"||unref(oe))&&(jt.loop||unref(V)>0)]])]),_:1})):createCommentVNode("v-if",!0),unref(ie)?(openBlock(),createBlock(Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(qe).e("arrow"),unref(qe).em("arrow","right")]),"aria-label":unref(Et)("el.carousel.rightArrow"),onMouseenter:hn[3]||(hn[3]=vn=>unref(pe)("right")),onMouseleave:hn[4]||(hn[4]=(...vn)=>unref(_e)&&unref(_e)(...vn)),onClick:hn[5]||(hn[5]=withModifiers(vn=>unref(ze)(unref(V)+1),["stop"]))},[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1})],42,_hoisted_2$U),[[vShow,(jt.arrow==="always"||unref(oe))&&(jt.loop||unref(V)[jt.indicatorPosition!=="none"?(openBlock(),createElementBlock("ul",{key:0,class:normalizeClass(At.value)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ue),(vn,_n)=>withDirectives((openBlock(),createElementBlock("li",{key:_n,class:normalizeClass([unref(qe).e("indicator"),unref(qe).em("indicator",jt.direction),unref(qe).is("active",_n===unref(V))]),onMouseenter:wn=>unref(Pt)(_n),onClick:withModifiers(wn=>unref(Ce)(_n),["stop"])},[createBaseVNode("button",{class:normalizeClass(unref(qe).e("button")),"aria-label":unref(Et)("el.carousel.indicator",{index:_n+1})},[unref(ae)?(openBlock(),createElementBlock("span",_hoisted_5$a,toDisplayString(vn.props.label),1)):createCommentVNode("v-if",!0)],10,_hoisted_4$i)],42,_hoisted_3$o)),[[vShow,unref(Ue)(_n)]])),128))],2)):createCommentVNode("v-if",!0)]),_:1}),jt.motionBlur?(openBlock(),createElementBlock("svg",_hoisted_6$4,[...hn[8]||(hn[8]=[createBaseVNode("defs",null,[createBaseVNode("filter",{id:"elCarouselHorizontal"},[createBaseVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),createBaseVNode("filter",{id:"elCarouselVertical"},[createBaseVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)])])):createCommentVNode("v-if",!0)],34))}});var Carousel=_export_sfc(_sfc_main$2u,[["__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=n=>{const t=inject(carouselContextKey),r=getCurrentInstance(),i=ref(),g=ref(!1),$=ref(0),V=ref(1),re=ref(!1),ie=ref(!1),ae=ref(!1),oe=ref(!1),{isCardType:le,isVertical:ue,cardScale:de}=t;function he(Ne,Oe,$e){const Ve=$e-1,Ue=Oe-1,Fe=Oe+1,ze=$e/2;return Oe===0&&Ne===Ve?-1:Oe===Ve&&Ne===0?$e:Ne=ze?$e+1:Ne>Fe&&Ne-Oe>=ze?-2:Ne}function pe(Ne,Oe){var $e,Ve;const Ue=unref(ue)?(($e=t.root.value)==null?void 0:$e.offsetHeight)||0:((Ve=t.root.value)==null?void 0:Ve.offsetWidth)||0;return ae.value?Ue*((2-de)*(Ne-Oe)+1)/4:Ne{var Ve;const Ue=unref(le),Fe=(Ve=t.items.value.length)!=null?Ve:Number.NaN,ze=Ne===Oe;!Ue&&!isUndefined$1($e)&&(oe.value=ze||Ne===$e),!ze&&Fe>2&&t.loop&&(Ne=he(Ne,Oe,Fe));const Pt=unref(ue);re.value=ze,Ue?(ae.value=Math.round(Math.abs(Ne-Oe))<=1,$.value=pe(Ne,Oe),V.value=unref(re)?1:de):$.value=_e(Ne,Oe,Pt),ie.value=!0,ze&&i.value&&t.setContainerHeight(i.value.offsetHeight)};function xe(){if(t&&unref(le)){const Ne=t.items.value.findIndex(({uid:Oe})=>Oe===r.uid);t.setActiveItem(Ne)}}const Ie={props:n,states:reactive({hover:g,translate:$,scale:V,active:re,ready:ie,inStage:ae,animating:oe}),uid:r.uid,getVnode:()=>r.vnode,translateItem:Ce};return t.addItem(Ie),onBeforeUnmount(()=>{t.removeItem(Ie)}),{carouselItemRef:i,active:re,animating:oe,hover:g,inStage:ae,isVertical:ue,translate:$,isCardType:le,scale:V,ready:ie,handleItemClick:xe}},_sfc_main$2t=defineComponent({name:CAROUSEL_ITEM_NAME,__name:"carousel-item",props:carouselItemProps,setup(n){const t=n,r=useNamespace("carousel"),{carouselItemRef:i,active:g,animating:$,hover:V,inStage:re,isVertical:ie,translate:ae,isCardType:oe,scale:le,ready:ue,handleItemClick:de}=useCarouselItem(t),he=computed(()=>[r.e("item"),r.is("active",g.value),r.is("in-stage",re.value),r.is("hover",V.value),r.is("animating",$.value),{[r.em("item","card")]:oe.value,[r.em("item","card-vertical")]:oe.value&&ie.value}]),pe=computed(()=>{const Ce=`${`translate${unref(ie)?"Y":"X"}`}(${unref(ae)}px)`,xe=`scale(${unref(le)})`;return{transform:[Ce,xe].join(" ")}});return(_e,Ce)=>withDirectives((openBlock(),createElementBlock("div",{ref_key:"carouselItemRef",ref:i,class:normalizeClass(he.value),style:normalizeStyle$1(pe.value),onClick:Ce[0]||(Ce[0]=(...xe)=>unref(de)&&unref(de)(...xe))},[unref(oe)?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("mask"))},null,2)),[[vShow,!unref(g)]]):createCommentVNode("v-if",!0),renderSlot(_e.$slots,"default")],6)),[[vShow,unref(ue)]])}});var CarouselItem=_export_sfc(_sfc_main$2t,[["__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],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:useSizeProp,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...useAriaProps(["ariaControls"])},checkboxEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n)||isNumber$2(n)||isBoolean$1(n),change:n=>isString$2(n)||isNumber$2(n)||isBoolean$1(n)},checkboxGroupContextKey=Symbol("checkboxGroupContextKey"),useCheckboxDisabled=({model:n,isChecked:t})=>{const r=inject(checkboxGroupContextKey,void 0),i=inject(formContextKey,void 0),g=computed(()=>{var V,re;const ie=(V=r==null?void 0:r.max)==null?void 0:V.value,ae=(re=r==null?void 0:r.min)==null?void 0:re.value;return!isUndefined$1(ie)&&n.value.length>=ie&&!t.value||!isUndefined$1(ae)&&n.value.length<=ae&&t.value});return{isDisabled:useFormDisabled(computed(()=>{var V,re;return r===void 0?(V=i==null?void 0:i.disabled)!=null?V:g.value:((re=r.disabled)==null?void 0:re.value)||g.value})),isLimitDisabled:g}},useCheckboxEvent=(n,{model:t,isLimitExceeded:r,hasOwnLabel:i,isDisabled:g,isLabeledByFormItem:$})=>{const V=inject(checkboxGroupContextKey,void 0),{formItem:re}=useFormItem(),{emit:ie}=getCurrentInstance();function ae(he){var pe,_e,Ce,xe;return[!0,n.trueValue,n.trueLabel].includes(he)?(_e=(pe=n.trueValue)!=null?pe:n.trueLabel)!=null?_e:!0:(xe=(Ce=n.falseValue)!=null?Ce:n.falseLabel)!=null?xe:!1}function oe(he,pe){ie(CHANGE_EVENT,ae(he),pe)}function le(he){if(r.value)return;const pe=he.target;ie(CHANGE_EVENT,ae(pe.checked),he)}async function ue(he){r.value||!i.value&&!g.value&&$.value&&(he.composedPath().some(Ce=>Ce.tagName==="LABEL")||(t.value=ae([!1,n.falseValue,n.falseLabel].includes(t.value)),await nextTick(),oe(t.value,he)))}const de=computed(()=>(V==null?void 0:V.validateEvent)||n.validateEvent);return watch(()=>n.modelValue,()=>{de.value&&(re==null||re.validate("change").catch(he=>void 0))}),{handleChange:le,onClickRoot:ue}},useCheckboxModel=n=>{const t=ref(!1),{emit:r}=getCurrentInstance(),i=inject(checkboxGroupContextKey,void 0),g=computed(()=>isUndefined$1(i)===!1),$=ref(!1),V=computed({get(){var re,ie;return g.value?(re=i==null?void 0:i.modelValue)==null?void 0:re.value:(ie=n.modelValue)!=null?ie:t.value},set(re){var ie,ae;g.value&&isArray$5(re)?($.value=((ie=i==null?void 0:i.max)==null?void 0:ie.value)!==void 0&&re.length>(i==null?void 0:i.max.value)&&re.length>V.value.length,$.value===!1&&((ae=i==null?void 0:i.changeEvent)==null||ae.call(i,re))):(r(UPDATE_MODEL_EVENT,re),t.value=re)}});return{model:V,isGroup:g,isLimitExceeded:$}},useCheckboxStatus=(n,t,{model:r})=>{const i=inject(checkboxGroupContextKey,void 0),g=ref(!1),$=computed(()=>isPropAbsent(n.value)?n.label:n.value),V=computed(()=>{const oe=r.value;return isBoolean$1(oe)?oe:isArray$5(oe)?isObject$6($.value)?oe.map(toRaw).some(le=>isEqual$1(le,$.value)):oe.map(toRaw).includes($.value):oe!=null?oe===n.trueValue||oe===n.trueLabel:!!oe}),re=useFormSize(computed(()=>{var oe;return(oe=i==null?void 0:i.size)==null?void 0:oe.value}),{prop:!0}),ie=useFormSize(computed(()=>{var oe;return(oe=i==null?void 0:i.size)==null?void 0:oe.value})),ae=computed(()=>!!t.default||!isPropAbsent($.value));return{checkboxButtonSize:re,isChecked:V,isFocused:g,checkboxSize:ie,hasOwnLabel:ae,actualValue:$}},useCheckbox=(n,t)=>{const{formItem:r}=useFormItem(),{model:i,isGroup:g,isLimitExceeded:$}=useCheckboxModel(n),{isFocused:V,isChecked:re,checkboxButtonSize:ie,checkboxSize:ae,hasOwnLabel:oe,actualValue:le}=useCheckboxStatus(n,t,{model:i}),{isDisabled:ue}=useCheckboxDisabled({model:i,isChecked:re}),{inputId:de,isLabeledByFormItem:he}=useFormItemInputId(n,{formItemContext:r,disableIdGeneration:oe,disableIdManagement:g}),{handleChange:pe,onClickRoot:_e}=useCheckboxEvent(n,{model:i,isLimitExceeded:$,hasOwnLabel:oe,isDisabled:ue,isLabeledByFormItem:he});return(()=>{function xe(){var Ie,Ne;isArray$5(i.value)&&!i.value.includes(le.value)?i.value.push(le.value):i.value=(Ne=(Ie=n.trueValue)!=null?Ie:n.trueLabel)!=null?Ne:!0}n.checked&&xe()})(),useDeprecated({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},computed(()=>g.value&&isPropAbsent(n.value))),useDeprecated({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},computed(()=>!!n.trueLabel)),useDeprecated({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},computed(()=>!!n.falseLabel)),{inputId:de,isLabeledByFormItem:he,isChecked:re,isDisabled:ue,isFocused:V,checkboxButtonSize:ie,checkboxSize:ae,hasOwnLabel:oe,model:i,actualValue:le,handleChange:pe,onClickRoot:_e}},_hoisted_1$1s=["id","indeterminate","name","tabindex","disabled"],_sfc_main$2s=defineComponent({name:"ElCheckbox",__name:"checkbox",props:checkboxProps,emits:checkboxEmits,setup(n){const t=n,r=useSlots(),{inputId:i,isLabeledByFormItem:g,isChecked:$,isDisabled:V,isFocused:re,checkboxSize:ie,hasOwnLabel:ae,model:oe,actualValue:le,handleChange:ue,onClickRoot:de}=useCheckbox(t,r),he=computed(()=>{var xe,Ie,Ne,Oe;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(Ie=(xe=t.trueValue)!=null?xe:t.trueLabel)!=null?Ie:!0,"false-value":(Oe=(Ne=t.falseValue)!=null?Ne:t.falseLabel)!=null?Oe:!1}:{value:le.value}}),pe=useNamespace("checkbox"),_e=computed(()=>[pe.b(),pe.m(ie.value),pe.is("disabled",V.value),pe.is("bordered",t.border),pe.is("checked",$.value)]),Ce=computed(()=>[pe.e("input"),pe.is("disabled",V.value),pe.is("checked",$.value),pe.is("indeterminate",t.indeterminate),pe.is("focus",re.value)]);return(xe,Ie)=>(openBlock(),createBlock(resolveDynamicComponent(!unref(ae)&&unref(g)?"span":"label"),{for:!unref(ae)&&unref(g)?null:unref(i),class:normalizeClass(_e.value),"aria-controls":xe.indeterminate?xe.ariaControls:null,"aria-checked":xe.indeterminate?"mixed":void 0,"aria-label":xe.ariaLabel,onClick:unref(de)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(Ce.value)},[withDirectives(createBaseVNode("input",mergeProps({id:unref(i),"onUpdate:modelValue":Ie[0]||(Ie[0]=Ne=>isRef(oe)?oe.value=Ne:null),class:unref(pe).e("original"),type:"checkbox",indeterminate:xe.indeterminate,name:xe.name,tabindex:xe.tabindex,disabled:unref(V)},he.value,{onChange:Ie[1]||(Ie[1]=(...Ne)=>unref(ue)&&unref(ue)(...Ne)),onFocus:Ie[2]||(Ie[2]=Ne=>re.value=!0),onBlur:Ie[3]||(Ie[3]=Ne=>re.value=!1),onClick:Ie[4]||(Ie[4]=withModifiers(()=>{},["stop"]))}),null,16,_hoisted_1$1s),[[vModelCheckbox,unref(oe)]]),createBaseVNode("span",{class:normalizeClass(unref(pe).e("inner"))},null,2)],2),unref(ae)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(pe).e("label"))},[renderSlot(xe.$slots,"default"),xe.$slots.default?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(xe.label),1)],64))],2)):createCommentVNode("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}});var Checkbox=_export_sfc(_sfc_main$2s,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const _hoisted_1$1r=["name","tabindex","disabled"],_sfc_main$2r=defineComponent({name:"ElCheckboxButton",__name:"checkbox-button",props:checkboxProps,emits:checkboxEmits,setup(n){const t=n,r=useSlots(),{isFocused:i,isChecked:g,isDisabled:$,checkboxButtonSize:V,model:re,actualValue:ie,handleChange:ae}=useCheckbox(t,r),oe=computed(()=>{var pe,_e,Ce,xe;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(_e=(pe=t.trueValue)!=null?pe:t.trueLabel)!=null?_e:!0,"false-value":(xe=(Ce=t.falseValue)!=null?Ce:t.falseLabel)!=null?xe:!1}:{value:ie.value}}),le=inject(checkboxGroupContextKey,void 0),ue=useNamespace("checkbox"),de=computed(()=>{var pe,_e,Ce,xe;const Ie=(_e=(pe=le==null?void 0:le.fill)==null?void 0:pe.value)!=null?_e:"";return{backgroundColor:Ie,borderColor:Ie,color:(xe=(Ce=le==null?void 0:le.textColor)==null?void 0:Ce.value)!=null?xe:"",boxShadow:Ie?`-1px 0 0 0 ${Ie}`:void 0}}),he=computed(()=>[ue.b("button"),ue.bm("button",V.value),ue.is("disabled",$.value),ue.is("checked",g.value),ue.is("focus",i.value)]);return(pe,_e)=>(openBlock(),createElementBlock("label",{class:normalizeClass(he.value)},[withDirectives(createBaseVNode("input",mergeProps({"onUpdate:modelValue":_e[0]||(_e[0]=Ce=>isRef(re)?re.value=Ce:null),class:unref(ue).be("button","original"),type:"checkbox",name:pe.name,tabindex:pe.tabindex,disabled:unref($)},oe.value,{onChange:_e[1]||(_e[1]=(...Ce)=>unref(ae)&&unref(ae)(...Ce)),onFocus:_e[2]||(_e[2]=Ce=>i.value=!0),onBlur:_e[3]||(_e[3]=Ce=>i.value=!1),onClick:_e[4]||(_e[4]=withModifiers(()=>{},["stop"]))}),null,16,_hoisted_1$1r),[[vModelCheckbox,unref(re)]]),pe.$slots.default||pe.label?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ue).be("button","inner")),style:normalizeStyle$1(unref(g)?de.value:void 0)},[renderSlot(pe.$slots,"default",{},()=>[createTextVNode(toDisplayString(pe.label),1)])],6)):createCommentVNode("v-if",!0)],2))}});var CheckboxButton=_export_sfc(_sfc_main$2r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const checkboxGroupProps=buildProps({modelValue:{type:definePropType(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:useSizeProp,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:definePropType(Array)},props:{type:definePropType(Object),default:()=>checkboxDefaultProps},type:{type:String,values:["checkbox","button"],default:"checkbox"},...useAriaProps(["ariaLabel"])}),checkboxGroupEmits={[UPDATE_MODEL_EVENT]:n=>isArray$5(n),change:n=>isArray$5(n)},checkboxDefaultProps={label:"label",value:"value",disabled:"disabled"},_sfc_main$2q=defineComponent({name:"ElCheckboxGroup",__name:"checkbox-group",props:checkboxGroupProps,emits:checkboxGroupEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("checkbox"),$=useFormDisabled(),{formItem:V}=useFormItem(),{inputId:re,isLabeledByFormItem:ie}=useFormItemInputId(r,{formItemContext:V}),ae=async he=>{i(UPDATE_MODEL_EVENT,he),await nextTick(),i(CHANGE_EVENT,he)},oe=computed({get(){return r.modelValue},set(he){ae(he)}}),le=computed(()=>({...checkboxDefaultProps,...r.props})),ue=he=>{const{label:pe,value:_e,disabled:Ce}=le.value,xe={label:he[pe],value:he[_e],disabled:he[Ce]};return{...omit$1(he,[pe,_e,Ce]),...xe}},de=computed(()=>r.type==="button"?CheckboxButton:Checkbox);return provide(checkboxGroupContextKey,{...pick$1(toRefs(r),["size","min","max","validateEvent","fill","textColor"]),disabled:$,modelValue:oe,changeEvent:ae}),watch(()=>r.modelValue,(he,pe)=>{r.validateEvent&&!isEqual$1(he,pe)&&(V==null||V.validate("change").catch(_e=>void 0))}),(he,pe)=>{var _e;return openBlock(),createBlock(resolveDynamicComponent(he.tag),{id:unref(re),class:normalizeClass(unref(g).b("group")),role:"group","aria-label":unref(ie)?void 0:he.ariaLabel||"checkbox-group","aria-labelledby":unref(ie)?(_e=unref(V))==null?void 0:_e.labelId:void 0},{default:withCtx(()=>[renderSlot(he.$slots,"default",{},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(he.options,(Ce,xe)=>(openBlock(),createBlock(resolveDynamicComponent(de.value),mergeProps({key:xe},{ref_for:!0},ue(Ce)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var CheckboxGroup=_export_sfc(_sfc_main$2q,[["__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=withNoopInstall(CheckboxGroup),radioPropsBase=buildProps({modelValue:{type:[String,Number,Boolean],default:void 0},size:useSizeProp,disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),radioProps=buildProps({...radioPropsBase,border:Boolean}),radioEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n)||isNumber$2(n)||isBoolean$1(n),[CHANGE_EVENT]:n=>isString$2(n)||isNumber$2(n)||isBoolean$1(n)},radioGroupKey=Symbol("radioGroupKey"),useRadio=(n,t)=>{const r=ref(),i=inject(radioGroupKey,void 0),g=computed(()=>!!i),$=computed(()=>isPropAbsent(n.value)?n.label:n.value),V=computed({get(){return g.value?i.modelValue:n.modelValue},set(le){g.value?i.changeEvent(le):t&&t(UPDATE_MODEL_EVENT,le),r.value.checked=n.modelValue===$.value}}),re=useFormSize(computed(()=>i==null?void 0:i.size)),ie=useFormDisabled(computed(()=>i==null?void 0:i.disabled)),ae=ref(!1),oe=computed(()=>ie.value||g.value&&V.value!==$.value?-1:0);return useDeprecated({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},computed(()=>g.value&&isPropAbsent(n.value))),{radioRef:r,isGroup:g,radioGroup:i,focus:ae,size:re,disabled:ie,tabIndex:oe,modelValue:V,actualValue:$}},_hoisted_1$1q=["value","name","disabled","checked"],_sfc_main$2p=defineComponent({name:"ElRadio",__name:"radio",props:radioProps,emits:radioEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("radio"),{radioRef:$,radioGroup:V,focus:re,size:ie,disabled:ae,modelValue:oe,actualValue:le}=useRadio(r,i);function ue(){nextTick(()=>i(CHANGE_EVENT,oe.value))}return(de,he)=>{var pe;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(g).b(),unref(g).is("disabled",unref(ae)),unref(g).is("focus",unref(re)),unref(g).is("bordered",de.border),unref(g).is("checked",unref(oe)===unref(le)),unref(g).m(unref(ie))])},[createBaseVNode("span",{class:normalizeClass([unref(g).e("input"),unref(g).is("disabled",unref(ae)),unref(g).is("checked",unref(oe)===unref(le))])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:$,"onUpdate:modelValue":he[0]||(he[0]=_e=>isRef(oe)?oe.value=_e:null),class:normalizeClass(unref(g).e("original")),value:unref(le),name:de.name||((pe=unref(V))==null?void 0:pe.name),disabled:unref(ae),checked:unref(oe)===unref(le),type:"radio",onFocus:he[1]||(he[1]=_e=>re.value=!0),onBlur:he[2]||(he[2]=_e=>re.value=!1),onChange:ue,onClick:he[3]||(he[3]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_1$1q),[[vModelRadio,unref(oe)]]),createBaseVNode("span",{class:normalizeClass(unref(g).e("inner"))},null,2)],2),createBaseVNode("span",{class:normalizeClass(unref(g).e("label")),onKeydown:he[4]||(he[4]=withModifiers(()=>{},["stop"]))},[renderSlot(de.$slots,"default",{},()=>[createTextVNode(toDisplayString(de.label),1)])],34)],2)}}});var Radio=_export_sfc(_sfc_main$2p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const radioButtonProps=buildProps({...radioPropsBase}),_hoisted_1$1p=["value","name","disabled"],_sfc_main$2o=defineComponent({name:"ElRadioButton",__name:"radio-button",props:radioButtonProps,setup(n){const t=n,r=useNamespace("radio"),{radioRef:i,focus:g,size:$,disabled:V,modelValue:re,radioGroup:ie,actualValue:ae}=useRadio(t),oe=computed(()=>({backgroundColor:(ie==null?void 0:ie.fill)||"",borderColor:(ie==null?void 0:ie.fill)||"",boxShadow:ie!=null&&ie.fill?`-1px 0 0 0 ${ie.fill}`:"",color:(ie==null?void 0:ie.textColor)||""}));return(le,ue)=>{var de;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(r).b("button"),unref(r).is("active",unref(re)===unref(ae)),unref(r).is("disabled",unref(V)),unref(r).is("focus",unref(g)),unref(r).bm("button",unref($))])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":ue[0]||(ue[0]=he=>isRef(re)?re.value=he:null),class:normalizeClass(unref(r).be("button","original-radio")),value:unref(ae),type:"radio",name:le.name||((de=unref(ie))==null?void 0:de.name),disabled:unref(V),onFocus:ue[1]||(ue[1]=he=>g.value=!0),onBlur:ue[2]||(ue[2]=he=>g.value=!1),onClick:ue[3]||(ue[3]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_1$1p),[[vModelRadio,unref(re)]]),createBaseVNode("span",{class:normalizeClass(unref(r).be("button","inner")),style:normalizeStyle$1(unref(re)===unref(ae)?oe.value:{}),onKeydown:ue[4]||(ue[4]=withModifiers(()=>{},["stop"]))},[renderSlot(le.$slots,"default",{},()=>[createTextVNode(toDisplayString(le.label),1)])],38)],2)}}});var RadioButton=_export_sfc(_sfc_main$2o,[["__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:{type:Boolean,default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},options:{type:definePropType(Array)},props:{type:definePropType(Object),default:()=>radioDefaultProps},type:{type:String,values:["radio","button"],default:"radio"},...useAriaProps(["ariaLabel"])}),radioGroupEmits=radioEmits,radioDefaultProps={label:"label",value:"value",disabled:"disabled"},_hoisted_1$1o=["id","aria-label","aria-labelledby"],_sfc_main$2n=defineComponent({name:"ElRadioGroup",__name:"radio-group",props:radioGroupProps,emits:radioGroupEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("radio"),$=useId(),V=ref(),{formItem:re}=useFormItem(),{inputId:ie,isLabeledByFormItem:ae}=useFormItemInputId(r,{formItemContext:re}),oe=pe=>{i(UPDATE_MODEL_EVENT,pe),nextTick(()=>i(CHANGE_EVENT,pe))};onMounted(()=>{const pe=V.value.querySelectorAll("[type=radio]"),_e=pe[0];!Array.from(pe).some(Ce=>Ce.checked)&&_e&&(_e.tabIndex=0)});const le=computed(()=>r.name||$.value),ue=computed(()=>({...radioDefaultProps,...r.props})),de=pe=>{const{label:_e,value:Ce,disabled:xe}=ue.value,Ie={label:pe[_e],value:pe[Ce],disabled:pe[xe]};return{...omit$1(pe,[_e,Ce,xe]),...Ie}},he=computed(()=>r.type==="button"?RadioButton:Radio);return provide(radioGroupKey,reactive({...toRefs(r),changeEvent:oe,name:le})),watch(()=>r.modelValue,(pe,_e)=>{r.validateEvent&&!isEqual$1(pe,_e)&&(re==null||re.validate("change").catch(Ce=>void 0))}),(pe,_e)=>(openBlock(),createElementBlock("div",{id:unref(ie),ref_key:"radioGroupRef",ref:V,class:normalizeClass(unref(g).b("group")),role:"radiogroup","aria-label":unref(ae)?void 0:pe.ariaLabel||"radio-group","aria-labelledby":unref(ae)?unref(re).labelId:void 0},[renderSlot(pe.$slots,"default",{},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(pe.options,(Ce,xe)=>(openBlock(),createBlock(resolveDynamicComponent(he.value),mergeProps({key:xe},{ref_for:!0},de(Ce)),null,16))),128))])],10,_hoisted_1$1o))}});var RadioGroup=_export_sfc(_sfc_main$2n,[["__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),CASCADER_PANEL_INJECTION_KEY=Symbol();function isVNodeEmpty(n){return!!(isArray$5(n)?n.every(({type:t})=>t===Comment):(n==null?void 0:n.type)===Comment)}var NodeContent$1=defineComponent({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(n){const t=useNamespace("cascader-node"),{renderLabelFn:r}=inject(CASCADER_PANEL_INJECTION_KEY),{node:i}=n,{data:g,label:$}=i,V=()=>{const re=r==null?void 0:r({node:i,data:g});return isVNodeEmpty(re)?$:re??$};return()=>createVNode$1("span",{class:t.e("label")},[V()])}});const _hoisted_1$1n=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],_sfc_main$2m=defineComponent({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(n,{emit:t}){const r=n,i=t,g=inject(CASCADER_PANEL_INJECTION_KEY),$=useNamespace("cascader-node"),V=computed(()=>g.isHoverMenu),re=computed(()=>g.config.multiple),ie=computed(()=>g.config.checkStrictly),ae=computed(()=>g.config.showPrefix),oe=computed(()=>{var Fe;return(Fe=g.checkedNodes[0])==null?void 0:Fe.uid}),le=computed(()=>r.node.isDisabled),ue=computed(()=>r.node.isLeaf),de=computed(()=>ie.value&&!ue.value||!le.value),he=computed(()=>_e(g.expandingNode)),pe=computed(()=>ie.value&&g.checkedNodes.some(_e)),_e=Fe=>{var ze;const{level:Pt,uid:qe}=r.node;return((ze=Fe==null?void 0:Fe.pathNodes[Pt-1])==null?void 0:ze.uid)===qe},Ce=()=>{he.value||g.expandNode(r.node)},xe=Fe=>{const{node:ze}=r;Fe!==ze.checked&&g.handleCheckChange(ze,Fe)},Ie=()=>{g.lazyLoad(r.node,()=>{ue.value||Ce()})},Ne=Fe=>{V.value&&(Oe(),!ue.value&&i("expand",Fe))},Oe=()=>{const{node:Fe}=r;!de.value||Fe.loading||(Fe.loaded?Ce():Ie())},$e=()=>{ue.value&&!le.value&&!ie.value&&!re.value?Ue(!0):(g.config.checkOnClickNode&&(re.value||ie.value)||ue.value&&g.config.checkOnClickLeaf)&&!le.value?Ve(!r.node.checked):V.value||Oe()},Ve=Fe=>{ie.value?(xe(Fe),r.node.loaded&&Ce()):Ue(Fe)},Ue=Fe=>{r.node.loaded?(xe(Fe),!ie.value&&Ce()):Ie()};return(Fe,ze)=>(openBlock(),createElementBlock("li",{id:`${n.menuId}-${n.node.uid}`,role:"menuitem","aria-haspopup":!ue.value,"aria-owns":ue.value?void 0:n.menuId,"aria-expanded":he.value,tabindex:de.value?-1:void 0,class:normalizeClass([unref($).b(),unref($).is("selectable",ie.value),unref($).is("active",n.node.checked),unref($).is("disabled",!de.value),he.value&&"in-active-path",pe.value&&"in-checked-path"]),onMouseenter:Ne,onFocus:Ne,onClick:$e},[createCommentVNode(" prefix "),re.value&&ae.value?(openBlock(),createBlock(unref(ElCheckbox),{key:0,"model-value":n.node.checked,indeterminate:n.node.indeterminate,disabled:le.value,onClick:ze[0]||(ze[0]=withModifiers(()=>{},["stop"])),"onUpdate:modelValue":Ve},null,8,["model-value","indeterminate","disabled"])):ie.value&&ae.value?(openBlock(),createBlock(unref(ElRadio),{key:1,"model-value":oe.value,label:n.node.uid,disabled:le.value,"onUpdate:modelValue":Ve,onClick:ze[1]||(ze[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 `),ze[2]||(ze[2]=createBaseVNode("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):ue.value&&n.node.checked?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref($).e("prefix"))},{default:withCtx(()=>[createVNode$1(unref(check_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createCommentVNode(" content "),createVNode$1(unref(NodeContent$1),{node:n.node},null,8,["node"]),createCommentVNode(" postfix "),ue.value?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:3},[n.node.loading?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref($).is("loading"),unref($).e("postfix")])},{default:withCtx(()=>[createVNode$1(unref(loading_default))]),_:1},8,["class"])):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(["arrow-right",unref($).e("postfix")])},{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1},8,["class"]))],64))],42,_hoisted_1$1n))}});var ElCascaderNode=_export_sfc(_sfc_main$2m,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const _sfc_main$2l=defineComponent({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(n){const t=n,r=getCurrentInstance(),i=useNamespace("cascader-menu"),{t:g}=useLocale(),$=useId();let V,re;const ie=inject(CASCADER_PANEL_INJECTION_KEY),ae=ref(),oe=computed(()=>!t.nodes.length),le=computed(()=>!ie.initialLoaded),ue=computed(()=>`${$.value}-${t.index}`),de=Ce=>{V=Ce.target},he=Ce=>{var xe;if(!(!ie.isHoverMenu||!V||!ae.value))if(V.contains(Ce.target)){pe();const Ie=r.vnode.el,{left:Ne}=Ie.getBoundingClientRect(),{offsetWidth:Oe,offsetHeight:$e}=Ie,Ve=Ce.clientX-Ne,Ue=V.offsetTop,Fe=Ue+V.offsetHeight,ze=((xe=Ie.querySelector(`.${i.e("wrap")}`))==null?void 0:xe.scrollTop)||0;ae.value.innerHTML=` `}else re||(re=window.setTimeout(_e,ie.config.hoverThreshold))},pe=()=>{re&&(clearTimeout(re),re=void 0)},_e=()=>{ae.value&&(ae.value.innerHTML="",pe())};return(Ce,xe)=>(openBlock(),createBlock(unref(ElScrollbar),{key:ue.value,tag:"ul",role:"menu",class:normalizeClass(unref(i).b()),"wrap-class":unref(i).e("wrap"),"view-class":[unref(i).e("list"),unref(i).is("empty",oe.value)],onMousemove:he,onMouseleave:_e},{default:withCtx(()=>{var Ie;return[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.nodes,Ne=>(openBlock(),createBlock(ElCascaderNode,{key:Ne.uid,node:Ne,"menu-id":ue.value,onExpand:de},null,8,["node","menu-id"]))),128)),le.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).e("empty-text"))},[createVNode$1(unref(ElIcon),{size:"14",class:normalizeClass(unref(i).is("loading"))},{default:withCtx(()=>[createVNode$1(unref(loading_default))]),_:1},8,["class"]),createTextVNode(" "+toDisplayString(unref(g)("el.cascader.loading")),1)],2)):oe.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(i).e("empty-text"))},[renderSlot(Ce.$slots,"empty",{},()=>[createTextVNode(toDisplayString(unref(g)("el.cascader.noData")),1)])],2)):(Ie=unref(ie))!=null&&Ie.isHoverMenu?(openBlock(),createElementBlock(Fragment,{key:2},[createCommentVNode(" eslint-disable vue/html-self-closing "),(openBlock(),createElementBlock("svg",{ref_key:"hoverZone",ref:ae,class:normalizeClass(unref(i).e("hover-zone"))},null,2))],2112)):createCommentVNode("v-if",!0),createCommentVNode(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}});var ElCascaderMenu=_export_sfc(_sfc_main$2l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let uid=0;const calculatePathNodes=n=>{const t=[n];let{parent:r}=n;for(;r;)t.unshift(r),r=r.parent;return t};let Node$2=class mi{constructor(t,r,i,g=!1){this.data=t,this.config=r,this.parent=i,this.root=g,this.uid=uid++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:$,label:V,children:re}=r,ie=t[re],ae=calculatePathNodes(this);this.level=g?0:i?i.level+1:1,this.value=t[$],this.label=t[V],this.pathNodes=ae,this.pathValues=ae.map(oe=>oe.value),this.pathLabels=ae.map(oe=>oe.label),this.childrenData=ie,this.children=(ie||[]).map(oe=>new mi(oe,r,this)),this.loaded=!r.lazy||this.isLeaf||!isEmpty(ie),this.text=""}get isDisabled(){const{data:t,parent:r,config:i}=this,{disabled:g,checkStrictly:$}=i;return(isFunction$4(g)?g(t,this):!!t[g])||!$&&!!(r!=null&&r.isDisabled)}get isLeaf(){const{data:t,config:r,childrenData:i,loaded:g}=this,{lazy:$,leaf:V}=r,re=isFunction$4(V)?V(t,this):t[V];return isUndefined$1(re)?$&&!g?!1:!(isArray$5(i)&&i.length):!!re}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:r,children:i}=this,g=new mi(t,this.config,this);return isArray$5(r)?r.push(t):this.childrenData=[t],i.push(g),g}calcText(t,r){const i=t?this.pathLabels.join(r):this.label;return this.text=i,i}broadcast(t){this.children.forEach(r=>{var i;r&&(r.broadcast(t),(i=r.onParentCheck)==null||i.call(r,t))})}emit(){var t;const{parent:r}=this;r&&((t=r.onChildCheck)==null||t.call(r),r.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,r=t.filter(g=>!g.isDisabled),i=r.length?r.every(g=>g.checked):!1;this.setCheckState(i)}setCheckState(t){const r=this.children.length,i=this.children.reduce((g,$)=>{const V=$.checked?1:$.indeterminate?.5:0;return g+V},0);this.checked=this.loaded&&this.children.filter(g=>!g.isDisabled).every(g=>g.loaded&&g.checked)&&t,this.indeterminate=this.loaded&&i!==r&&i>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:r,multiple:i}=this.config;r||!i?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const flatNodes=(n,t)=>n.reduce((r,i)=>(i.isLeaf?r.push(i):(!t&&r.push(i),r=r.concat(flatNodes(i.children,t))),r),[]);class Store{constructor(t,r){this.config=r;const i=(t||[]).map(g=>new Node$2(g,this.config));this.nodes=i,this.allNodes=flatNodes(i,!1),this.leafNodes=flatNodes(i,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,r){const i=r?r.appendChild(t):new Node$2(t,this.config);r||this.nodes.push(i),this.appendAllNodesAndLeafNodes(i)}appendNodes(t,r){t.length>0?t.forEach(i=>this.appendNode(i,r)):r&&r.isLeaf&&this.leafNodes.push(r)}appendAllNodesAndLeafNodes(t){this.allNodes.push(t),t.isLeaf&&this.leafNodes.push(t),t.children&&t.children.forEach(r=>{this.appendAllNodesAndLeafNodes(r)})}getNodeByValue(t,r=!1){return isPropAbsent(t)?null:this.getFlattedNodes(r).find(g=>isEqual$1(g.value,t)||isEqual$1(g.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:i,level:g})=>isEqual$1(t.value,i)&&t.level===g)||null}}const CommonProps=buildProps({modelValue:{type:definePropType([Number,String,Array,Object])},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,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},cascaderPanelProps=buildProps({...CommonProps,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),emitChangeFn$2=n=>!0,cascaderPanelEmits={[UPDATE_MODEL_EVENT]:emitChangeFn$2,[CHANGE_EVENT]:emitChangeFn$2,close:()=>!0,"expand-change":n=>n},useCascaderConfig=n=>computed(()=>({...DefaultProps,...n.props})),getMenuIndex=n=>{if(!n)return 0;const t=n.id.split("-");return Number(t[t.length-2])},checkNode=n=>{if(!n)return;const t=n.querySelector("input");t?t.click():isLeaf(n)&&n.click()},sortByOriginalOrder=(n,t)=>{const r=t.slice(0),i=r.map($=>$.uid),g=n.reduce(($,V)=>{const re=i.indexOf(V.uid);return re>-1&&($.push(V),r.splice(re,1),i.splice(re,1)),$},[]);return g.push(...r),g},_sfc_main$2k=defineComponent({name:"ElCascaderPanel",__name:"index",props:cascaderPanelProps,emits:cascaderPanelEmits,setup(n,{expose:t,emit:r}){const i=n,g=r;let $=!1;const V=useNamespace("cascader"),re=useCascaderConfig(i),ie=useSlots();let ae;const oe=ref(!0),le=ref(!1),ue=ref([]),de=ref(),he=ref([]),pe=ref(),_e=ref([]),Ce=computed(()=>re.value.expandTrigger==="hover"),xe=computed(()=>i.renderLabel||ie.default),Ie=()=>{const{options:Lt}=i,jt=re.value;$=!1,ae=new Store(Lt,jt),he.value=[ae.getNodes()],jt.lazy&&isEmpty(i.options)?(oe.value=!1,Ne(void 0,hn=>{hn&&(ae=new Store(hn,jt),he.value=[ae.getNodes()]),oe.value=!0,qe(!1,!0)})):qe(!1,!0)},Ne=(Lt,jt)=>{const hn=re.value;Lt=Lt||new Node$2({},hn,void 0,!0),Lt.loading=!0;const vn=wn=>{const bn=Lt,Cn=bn.root?null:bn;bn.loading=!1,bn.loaded=!0,bn.childrenData=bn.childrenData||[],wn&&(ae==null||ae.appendNodes(wn,Cn)),wn&&(jt==null||jt(wn)),Lt.level===0&&(le.value=!0)},_n=()=>{Lt.loading=!1,Lt.loaded=!1,Lt.level===0&&(oe.value=!0)};hn.lazyLoad(Lt,vn,_n)},Oe=(Lt,jt)=>{var hn;const{level:vn}=Lt,_n=he.value.slice(0,vn);let wn;Lt.isLeaf?wn=Lt.pathNodes[vn-2]:(wn=Lt,_n.push(Lt.children)),((hn=pe.value)==null?void 0:hn.uid)!==(wn==null?void 0:wn.uid)&&(pe.value=Lt,he.value=_n,!jt&&g("expand-change",(Lt==null?void 0:Lt.pathValues)||[]))},$e=(Lt,jt,hn=!0)=>{const{checkStrictly:vn,multiple:_n}=re.value,wn=_e.value[0];$=!0,!_n&&(wn==null||wn.doCheck(!1)),Lt.doCheck(jt),Pt(),hn&&!_n&&!vn&&g("close"),!hn&&!_n&&Ve(Lt)},Ve=Lt=>{Lt&&(Lt=Lt.parent,Ve(Lt),Lt&&Oe(Lt))},Ue=Lt=>ae==null?void 0:ae.getFlattedNodes(Lt),Fe=Lt=>{var jt;return(jt=Ue(Lt))==null?void 0:jt.filter(({checked:hn})=>hn!==!1)},ze=()=>{_e.value.forEach(Lt=>Lt.doCheck(!1)),Pt(),he.value=he.value.slice(0,1),pe.value=void 0,g("expand-change",[])},Pt=()=>{var Lt;const{checkStrictly:jt,multiple:hn}=re.value,vn=_e.value,_n=Fe(!jt),wn=sortByOriginalOrder(vn,_n),bn=wn.map(Cn=>Cn.valueByOption);_e.value=wn,de.value=hn?bn:(Lt=bn[0])!=null?Lt:null},qe=(Lt=!1,jt=!1)=>{const{modelValue:hn}=i,{lazy:vn,multiple:_n,checkStrictly:wn}=re.value,bn=!wn;if(!(!oe.value||$||!jt&&isEqual$1(hn,de.value)))if(vn&&!Lt){const Sn=unique(flattenDeep(castArray(hn))).map(Tn=>ae==null?void 0:ae.getNodeByValue(Tn)).filter(Tn=>!!Tn&&!Tn.loaded&&!Tn.loading);Sn.length?Sn.forEach(Tn=>{Ne(Tn,()=>qe(!1,jt))}):qe(!0,jt)}else{const Cn=_n?castArray(hn):[hn],Sn=unique(Cn.map(Tn=>ae==null?void 0:ae.getNodeByValue(Tn,bn)));Et(Sn,jt),de.value=cloneDeep(hn??void 0)}},Et=(Lt,jt=!0)=>{const{checkStrictly:hn}=re.value,vn=_e.value,_n=Lt.filter(Cn=>!!Cn&&(hn||Cn.isLeaf)),wn=ae==null?void 0:ae.getSameNode(pe.value),bn=jt&&wn||_n[0];bn?bn.pathNodes.forEach(Cn=>Oe(Cn,!0)):pe.value=void 0,vn.forEach(Cn=>Cn.doCheck(!1)),reactive(_n).forEach(Cn=>Cn.doCheck(!0)),_e.value=_n,nextTick(kt)},kt=()=>{isClient&&ue.value.forEach(Lt=>{const jt=Lt==null?void 0:Lt.$el;if(jt){const hn=jt.querySelector(`.${V.namespace.value}-scrollbar__wrap`);let vn=jt.querySelector(`.${V.b("node")}.in-active-path`);if(!vn){const _n=jt.querySelectorAll(`.${V.b("node")}.${V.is("active")}`);vn=_n[_n.length-1]}scrollIntoView(hn,vn)}})},At=Lt=>{const jt=Lt.target,hn=getEventCode(Lt);switch(hn){case EVENT_CODE.up:case EVENT_CODE.down:{Lt.preventDefault();const vn=hn===EVENT_CODE.up?-1:1;focusNode(getSibling(jt,vn,`.${V.b("node")}[tabindex="-1"]`));break}case EVENT_CODE.left:{Lt.preventDefault();const vn=ue.value[getMenuIndex(jt)-1],_n=vn==null?void 0:vn.$el.querySelector(`.${V.b("node")}[aria-expanded="true"]`);focusNode(_n);break}case EVENT_CODE.right:{Lt.preventDefault();const vn=ue.value[getMenuIndex(jt)+1],_n=vn==null?void 0:vn.$el.querySelector(`.${V.b("node")}[tabindex="-1"]`);focusNode(_n);break}case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:checkNode(jt);break}};provide(CASCADER_PANEL_INJECTION_KEY,reactive({config:re,expandingNode:pe,checkedNodes:_e,isHoverMenu:Ce,initialLoaded:oe,renderLabelFn:xe,lazyLoad:Ne,expandNode:Oe,handleCheckChange:$e})),watch(re,(Lt,jt)=>{isEqual$1(Lt,jt)||Ie()},{immediate:!0}),watch(()=>i.options,Ie,{deep:!0}),watch(()=>i.modelValue,()=>{$=!1,qe()},{deep:!0}),watch(()=>de.value,Lt=>{isEqual$1(Lt,i.modelValue)||(g(UPDATE_MODEL_EVENT,Lt),g(CHANGE_EVENT,Lt))});const Dt=()=>{le.value||Ie()};return onBeforeUpdate(()=>ue.value=[]),onMounted(()=>!isEmpty(i.modelValue)&&qe()),t({menuList:ue,menus:he,checkedNodes:_e,handleKeyDown:At,handleCheckChange:$e,getFlattedNodes:Ue,getCheckedNodes:Fe,clearCheckedNodes:ze,calculateCheckedValue:Pt,scrollToExpandingNode:kt,loadLazyRootNodes:Dt}),(Lt,jt)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(V).b("panel"),unref(V).is("bordered",Lt.border)]),onKeydown:At},[(openBlock(!0),createElementBlock(Fragment,null,renderList(he.value,(hn,vn)=>(openBlock(),createBlock(ElCascaderMenu,{key:vn,ref_for:!0,ref:_n=>ue.value[vn]=_n,index:vn,nodes:[...hn]},{empty:withCtx(()=>[renderSlot(Lt.$slots,"empty")]),_:3},8,["index","nodes"]))),128))],34))}});var CascaderPanel=_export_sfc(_sfc_main$2k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);const ElCascaderPanel=withInstall(CascaderPanel),cascaderProps=buildProps({...CommonProps,size:useSizeProp,placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:iconPropType,default:circle_close_default},filterable:Boolean,filterMethod:{type:definePropType(Function),default:(n,t)=>n.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:definePropType(Function),default:()=>!0},placement:{type:definePropType(String),values:Ee,default:"bottom-start"},fallbackPlacements:{type:definePropType(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,teleported:useTooltipContentProps.teleported,effect:{type:definePropType(String),default:"light"},tagType:{...tagProps.type,default:"info"},tagEffect:{...tagProps.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},...useEmptyValuesProps}),emitChangeFn$1=n=>!0,cascaderEmits={[UPDATE_MODEL_EVENT]:emitChangeFn$1,[CHANGE_EVENT]:emitChangeFn$1,focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0,visibleChange:n=>isBoolean$1(n),expandChange:n=>!!n,removeTag:n=>!!n},_hoisted_1$1m=["placeholder"],_hoisted_2$T=["onClick"],_sfc_main$2j=defineComponent({name:"ElCascader",__name:"cascader",props:cascaderProps,emits:cascaderEmits,setup(n,{expose:t,emit:r}){const i={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Wn})=>{const{modifiersData:Jn,placement:sr}=Wn;["right","left","bottom","top"].includes(sr)||Jn.arrow&&(Jn.arrow.x=35)},requires:["arrow"]}]},g=n,$=r,V=useAttrs$1(),re=useSlots();let ie=0,ae=0;const oe=useNamespace("cascader"),le=useNamespace("input"),ue={small:7,default:11,large:15},{t:de}=useLocale(),{formItem:he}=useFormItem(),pe=useFormDisabled(),{valueOnClear:_e}=useEmptyValues(g),{isComposing:Ce,handleComposition:xe}=useComposition({afterComposition(Wn){var Jn;const sr=(Jn=Wn.target)==null?void 0:Jn.value;Un(sr)}}),Ie=ref(),Ne=ref(),Oe=ref(),$e=ref(),Ve=ref(),Ue=ref(),Fe=ref(!1),ze=ref(!1),Pt=ref(!1),qe=ref(""),Et=ref(""),kt=ref([]),At=ref([]),Dt=computed(()=>g.props.multiple?g.collapseTags?kt.value.slice(0,g.maxCollapseTags):kt.value:[]),Lt=computed(()=>g.props.multiple?g.collapseTags?kt.value.slice(g.maxCollapseTags):[]:[]),jt=computed(()=>V.style),hn=computed(()=>{var Wn;return(Wn=g.placeholder)!=null?Wn:de("el.cascader.placeholder")}),vn=computed(()=>Et.value||kt.value.length>0||Ce.value?"":hn.value),_n=useFormSize(),wn=computed(()=>_n.value==="small"?"small":"default"),bn=computed(()=>!!g.props.multiple),Cn=computed(()=>!g.filterable||bn.value),Sn=computed(()=>bn.value?Et.value:qe.value),Tn=computed(()=>{var Wn;return((Wn=Ve.value)==null?void 0:Wn.checkedNodes)||[]}),{wrapperRef:En,isFocused:kn,handleBlur:$n}=useFocusController(Oe,{disabled:pe,beforeBlur(Wn){var Jn,sr;return((Jn=Ie.value)==null?void 0:Jn.isFocusInsideContent(Wn))||((sr=Ne.value)==null?void 0:sr.isFocusInsideContent(Wn))},afterBlur(){var Wn;g.validateEvent&&((Wn=he==null?void 0:he.validate)==null||Wn.call(he,"blur").catch(Jn=>void 0))}}),An=computed(()=>!g.clearable||pe.value||Pt.value||!ze.value&&!kn.value?!1:!!Tn.value.length),xn=computed(()=>{const{showAllLevels:Wn,separator:Jn}=g,sr=Tn.value;return sr.length?bn.value?"":sr[0].calcText(Wn,Jn):""}),Ln=computed(()=>(he==null?void 0:he.validateState)||""),Nn=computed({get(){return cloneDeep(g.modelValue)},set(Wn){const Jn=Wn??_e.value;$(UPDATE_MODEL_EVENT,Jn),$(CHANGE_EVENT,Jn),g.validateEvent&&(he==null||he.validate("change").catch(sr=>void 0))}}),Pn=computed(()=>[oe.b(),oe.m(_n.value),oe.is("disabled",pe.value),V.class]),On=computed(()=>[le.e("icon"),"icon-arrow-down",oe.is("reverse",Fe.value)]),Hn=computed(()=>oe.is("focus",kn.value)),Xn=computed(()=>{var Wn,Jn;return(Jn=(Wn=Ie.value)==null?void 0:Wn.popperRef)==null?void 0:Jn.contentRef}),In=Wn=>{if(kn.value){const Jn=new FocusEvent("blur",Wn);$n(Jn)}or(!1)},or=Wn=>{var Jn,sr;pe.value||(Wn=Wn??!Fe.value,Wn!==Fe.value&&(Fe.value=Wn,(sr=(Jn=Oe.value)==null?void 0:Jn.input)==null||sr.setAttribute("aria-expanded",`${Wn}`),Wn?(Qn(),Ve.value&&nextTick(Ve.value.scrollToExpandingNode)):g.filterable&&rr(),$("visibleChange",Wn)))},Qn=()=>{nextTick(()=>{var Wn;(Wn=Ie.value)==null||Wn.updatePopper()})},Zn=()=>{Pt.value=!1},Gn=Wn=>{const{showAllLevels:Jn,separator:sr}=g;return{node:Wn,key:Wn.uid,text:Wn.calcText(Jn,sr),hitState:!1,closable:!pe.value&&!Wn.isDisabled}},Rn=Wn=>{var Jn;const sr=Wn.node;sr.doCheck(!1),(Jn=Ve.value)==null||Jn.calculateCheckedValue(),$("removeTag",sr.valueByOption)},Mn=()=>{switch(g.showCheckedStrategy){case"child":return Tn.value;case"parent":{const Wn=tr(!1),Jn=Wn.map(Sr=>Sr.value);return Wn.filter(Sr=>!Sr.parent||!Jn.includes(Sr.parent.value))}default:return[]}},Bn=()=>{if(!bn.value)return;const Wn=Mn(),Jn=[];Wn.forEach(sr=>Jn.push(Gn(sr))),kt.value=Jn},qn=()=>{var Wn,Jn;const{filterMethod:sr,showAllLevels:Sr,separator:Tr}=g,fr=(Jn=(Wn=Ve.value)==null?void 0:Wn.getFlattedNodes(!g.props.checkStrictly))==null?void 0:Jn.filter(_r=>_r.isDisabled?!1:(_r.calcText(Sr,Tr),sr(_r,Sn.value)));bn.value&&kt.value.forEach(_r=>{_r.hitState=!1}),Pt.value=!0,At.value=fr,Qn()},zn=()=>{var Wn;let Jn;Pt.value&&Ue.value?Jn=Ue.value.$el.querySelector(`.${oe.e("suggestion-item")}`):Jn=(Wn=Ve.value)==null?void 0:Wn.$el.querySelector(`.${oe.b("node")}[tabindex="-1"]`),Jn&&(Jn.focus(),!Pt.value&&Jn.click())},jn=()=>{var Wn,Jn,sr;const Sr=(Wn=Oe.value)==null?void 0:Wn.input,Tr=$e.value,fr=(Jn=Ue.value)==null?void 0:Jn.$el;if(!(!isClient||!Sr)){if(fr){const _r=fr.querySelector(`.${oe.e("suggestion-list")}`);_r.style.minWidth=`${Sr.offsetWidth}px`}if(Tr){const{offsetHeight:_r}=Tr,Cr=kt.value.length>0?`${Math.max(_r,ie)-2}px`:`${ie}px`;if(Sr.style.height=Cr,re.prefix){const zr=(sr=Oe.value)==null?void 0:sr.$el.querySelector(`.${le.e("prefix")}`);let Ur=0;zr&&(Ur=zr.offsetWidth,Ur>0&&(Ur+=ue[_n.value||"default"])),Tr.style.left=`${Ur}px`}else Tr.style.left="0";Qn()}}},tr=Wn=>{var Jn;return(Jn=Ve.value)==null?void 0:Jn.getCheckedNodes(Wn)},hr=Wn=>{Qn(),$("expandChange",Wn)},ir=Wn=>{if(Ce.value)return;switch(getEventCode(Wn)){case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:or();break;case EVENT_CODE.down:or(!0),nextTick(zn),Wn.preventDefault();break;case EVENT_CODE.esc:Fe.value===!0&&(Wn.preventDefault(),Wn.stopPropagation(),or(!1));break;case EVENT_CODE.tab:or(!1);break}},pr=()=>{var Wn;(Wn=Ve.value)==null||Wn.clearCheckedNodes(),!Fe.value&&g.filterable&&rr(),or(!1),$("clear")},rr=()=>{const{value:Wn}=xn;qe.value=Wn,Et.value=Wn},lr=Wn=>{var Jn,sr;const{checked:Sr}=Wn;bn.value?(Jn=Ve.value)==null||Jn.handleCheckChange(Wn,!Sr,!1):(!Sr&&((sr=Ve.value)==null||sr.handleCheckChange(Wn,!0,!1)),or(!1))},Yn=Wn=>{const Jn=Wn.target,sr=getEventCode(Wn);switch(sr){case EVENT_CODE.up:case EVENT_CODE.down:{Wn.preventDefault();const Sr=sr===EVENT_CODE.up?-1:1;focusNode(getSibling(Jn,Sr,`.${oe.e("suggestion-item")}[tabindex="-1"]`));break}case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:Jn.click();break}},er=()=>{const Wn=kt.value[kt.value.length-1];ae=Et.value?0:ae+1,!(!Wn||!ae||g.collapseTags&&kt.value.length>1)&&(Wn.hitState?Rn(Wn):Wn.hitState=!0)},Fn=computed(()=>g.debounce),cr=useDebounceFn(()=>{const{value:Wn}=Sn;if(!Wn)return;const Jn=g.beforeFilter(Wn);isPromise(Jn)?Jn.then(qn).catch(()=>{}):Jn!==!1?qn():Zn()},Fn),Un=(Wn,Jn)=>{!Fe.value&&or(!0),!(Jn!=null&&Jn.isComposing)&&(Wn?cr():Zn())},gr=Wn=>Number.parseFloat(useCssVar(le.cssVarName("input-height"),Wn).value)-2,vr=()=>{var Wn;(Wn=Oe.value)==null||Wn.focus()},yr=()=>{var Wn;(Wn=Oe.value)==null||Wn.blur()};return watch(Pt,Qn),watch([Tn,pe,()=>g.collapseTags,()=>g.maxCollapseTags],Bn),watch(kt,()=>{nextTick(()=>jn())}),watch(_n,async()=>{await nextTick();const Wn=Oe.value.input;ie=gr(Wn)||ie,jn()}),watch(xn,rr,{immediate:!0}),watch(()=>Fe.value,Wn=>{var Jn;Wn&&g.props.lazy&&g.props.lazyLoad&&((Jn=Ve.value)==null||Jn.loadLazyRootNodes())}),onMounted(()=>{const Wn=Oe.value.input,Jn=gr(Wn);ie=Wn.offsetHeight||Jn,useResizeObserver(Wn,jn)}),t({getCheckedNodes:tr,cascaderPanelRef:Ve,togglePopperVisible:or,contentRef:Xn,presentText:xn,focus:vr,blur:yr}),(Wn,Jn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"tooltipRef",ref:Ie,visible:Fe.value,teleported:Wn.teleported,"popper-class":[unref(oe).e("dropdown"),Wn.popperClass],"popper-style":Wn.popperStyle,"popper-options":i,"fallback-placements":Wn.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:Wn.placement,transition:`${unref(oe).namespace.value}-zoom-in-top`,effect:Wn.effect,pure:"",persistent:Wn.persistent,onHide:Zn},{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{ref_key:"wrapperRef",ref:En,class:normalizeClass(Pn.value),style:normalizeStyle$1(jt.value),onClick:Jn[8]||(Jn[8]=()=>or(Cn.value?void 0:!0)),onKeydown:ir,onMouseenter:Jn[9]||(Jn[9]=sr=>ze.value=!0),onMouseleave:Jn[10]||(Jn[10]=sr=>ze.value=!1)},[createVNode$1(unref(ElInput),{ref_key:"inputRef",ref:Oe,modelValue:qe.value,"onUpdate:modelValue":Jn[1]||(Jn[1]=sr=>qe.value=sr),placeholder:vn.value,readonly:Cn.value,disabled:unref(pe),"validate-event":!1,size:unref(_n),class:normalizeClass(Hn.value),tabindex:bn.value&&Wn.filterable&&!unref(pe)?-1:void 0,onCompositionstart:unref(xe),onCompositionupdate:unref(xe),onCompositionend:unref(xe),onInput:Un},createSlots({suffix:withCtx(()=>[An.value?(openBlock(),createBlock(unref(ElIcon),{key:"clear",class:normalizeClass([unref(le).e("icon"),"icon-circle-close"]),onClick:withModifiers(pr,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Wn.clearIcon)))]),_:1},8,["class"])):(openBlock(),createBlock(unref(ElIcon),{key:"arrow-down",class:normalizeClass(On.value),onClick:Jn[0]||(Jn[0]=withModifiers(sr=>or(),["stop"]))},{default:withCtx(()=>[createVNode$1(unref(arrow_down_default))]),_:1},8,["class"]))]),_:2},[Wn.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot(Wn.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),bn.value?(openBlock(),createElementBlock("div",{key:0,ref_key:"tagWrapper",ref:$e,class:normalizeClass([unref(oe).e("tags"),unref(oe).is("validate",!!Ln.value)])},[renderSlot(Wn.$slots,"tag",{data:kt.value,deleteTag:Rn},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Dt.value,sr=>(openBlock(),createBlock(unref(ElTag),{key:sr.key,type:Wn.tagType,size:wn.value,effect:Wn.tagEffect,hit:sr.hitState,closable:sr.closable,"disable-transitions":"",onClose:Sr=>Rn(sr)},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString(sr.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),Wn.collapseTags&&kt.value.length>Wn.maxCollapseTags?(openBlock(),createBlock(unref(ElTooltip),{key:0,ref_key:"tagTooltipRef",ref:Ne,disabled:Fe.value||!Wn.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":Wn.popperClass,"popper-style":Wn.popperStyle,effect:Wn.effect,persistent:Wn.persistent},{default:withCtx(()=>[createVNode$1(unref(ElTag),{closable:!1,size:wn.value,type:Wn.tagType,effect:Wn.tagEffect,"disable-transitions":""},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(oe).e("tags-text"))}," + "+toDisplayString(kt.value.length-Wn.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:withCtx(()=>[createVNode$1(unref(ElScrollbar),{"max-height":Wn.maxCollapseTagsTooltipHeight},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(oe).e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Lt.value,(sr,Sr)=>(openBlock(),createElementBlock("div",{key:Sr,class:normalizeClass(unref(oe).e("collapse-tag"))},[(openBlock(),createBlock(unref(ElTag),{key:sr.key,class:"in-tooltip",type:Wn.tagType,size:wn.value,effect:Wn.tagEffect,hit:sr.hitState,closable:sr.closable,"disable-transitions":"",onClose:Tr=>Rn(sr)},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString(sr.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:1},8,["disabled","popper-class","popper-style","effect","persistent"])):createCommentVNode("v-if",!0),Wn.filterable&&!unref(pe)?withDirectives((openBlock(),createElementBlock("input",{key:1,"onUpdate:modelValue":Jn[2]||(Jn[2]=sr=>Et.value=sr),type:"text",class:normalizeClass(unref(oe).e("search-input")),placeholder:xn.value?"":hn.value,onInput:Jn[3]||(Jn[3]=sr=>Un(Et.value,sr)),onClick:Jn[4]||(Jn[4]=withModifiers(sr=>or(!0),["stop"])),onKeydown:withKeys(er,["delete"]),onCompositionstart:Jn[5]||(Jn[5]=(...sr)=>unref(xe)&&unref(xe)(...sr)),onCompositionupdate:Jn[6]||(Jn[6]=(...sr)=>unref(xe)&&unref(xe)(...sr)),onCompositionend:Jn[7]||(Jn[7]=(...sr)=>unref(xe)&&unref(xe)(...sr))},null,42,_hoisted_1$1m)),[[vModelText,Et.value]]):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],38)),[[unref(ClickOutside),In,Xn.value]])]),content:withCtx(()=>[Wn.$slots.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("header")),onClick:Jn[11]||(Jn[11]=withModifiers(()=>{},["stop"]))},[renderSlot(Wn.$slots,"header")],2)):createCommentVNode("v-if",!0),withDirectives(createVNode$1(unref(ElCascaderPanel),{ref_key:"cascaderPanelRef",ref:Ve,modelValue:Nn.value,"onUpdate:modelValue":Jn[12]||(Jn[12]=sr=>Nn.value=sr),options:Wn.options,props:g.props,border:!1,"render-label":Wn.$slots.default,onExpandChange:hr,onClose:Jn[13]||(Jn[13]=sr=>Wn.$nextTick(()=>or(!1)))},{empty:withCtx(()=>[renderSlot(Wn.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label"]),[[vShow,!Pt.value]]),Wn.filterable?withDirectives((openBlock(),createBlock(unref(ElScrollbar),{key:1,ref_key:"suggestionPanel",ref:Ue,tag:"ul",class:normalizeClass(unref(oe).e("suggestion-panel")),"view-class":unref(oe).e("suggestion-list"),onKeydown:Yn},{default:withCtx(()=>[At.value.length?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(At.value,sr=>(openBlock(),createElementBlock("li",{key:sr.uid,class:normalizeClass([unref(oe).e("suggestion-item"),unref(oe).is("checked",sr.checked)]),tabindex:-1,onClick:Sr=>lr(sr)},[renderSlot(Wn.$slots,"suggestion-item",{item:sr},()=>[createBaseVNode("span",null,toDisplayString(sr.text),1),sr.checked?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[createVNode$1(unref(check_default))]),_:1})):createCommentVNode("v-if",!0)])],10,_hoisted_2$T))),128)):renderSlot(Wn.$slots,"empty",{key:1},()=>[createBaseVNode("li",{class:normalizeClass(unref(oe).e("empty-text"))},toDisplayString(unref(de)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[vShow,Pt.value]]):createCommentVNode("v-if",!0),Wn.$slots.footer?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(oe).e("footer")),onClick:Jn[14]||(Jn[14]=withModifiers(()=>{},["stop"]))},[renderSlot(Wn.$slots,"footer")],2)):createCommentVNode("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}});var Cascader=_export_sfc(_sfc_main$2j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);const ElCascader=withInstall(Cascader),checkTagProps=buildProps({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),checkTagEmits={"update:checked":n=>isBoolean$1(n),[CHANGE_EVENT]:n=>isBoolean$1(n)},_sfc_main$2i=defineComponent({name:"ElCheckTag",__name:"check-tag",props:checkTagProps,emits:checkTagEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("check-tag"),$=computed(()=>[g.b(),g.is("checked",r.checked),g.is("disabled",r.disabled),g.m(r.type||"primary")]),V=()=>{if(r.disabled)return;const re=!r.checked;i(CHANGE_EVENT,re),i("update:checked",re)};return(re,ie)=>(openBlock(),createElementBlock("span",{class:normalizeClass($.value),onClick:V},[renderSlot(re.$slots,"default")],2))}});var CheckTag=_export_sfc(_sfc_main$2i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const ElCheckTag=withInstall(CheckTag),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({})}}),rowContextKey=Symbol("rowContextKey"),_sfc_main$2h=defineComponent({name:"ElCol",__name:"col",props:colProps,setup(n){const t=n,{gutter:r}=inject(rowContextKey,{gutter:computed(()=>0)}),i=useNamespace("col"),g=computed(()=>{const V={};return r.value&&(V.paddingLeft=V.paddingRight=`${r.value/2}px`),V}),$=computed(()=>{const V=[];return["span","offset","pull","push"].forEach(ae=>{const oe=t[ae];isNumber$2(oe)&&(ae==="span"?V.push(i.b(`${t[ae]}`)):oe>0&&V.push(i.b(`${ae}-${t[ae]}`)))}),["xs","sm","md","lg","xl"].forEach(ae=>{isNumber$2(t[ae])?V.push(i.b(`${ae}-${t[ae]}`)):isObject$6(t[ae])&&Object.entries(t[ae]).forEach(([oe,le])=>{V.push(oe!=="span"?i.b(`${ae}-${oe}-${le}`):i.b(`${ae}-${le}`))})}),r.value&&V.push(i.is("guttered")),[i.b(),V]});return(V,re)=>(openBlock(),createBlock(resolveDynamicComponent(V.tag),{class:normalizeClass($.value),style:normalizeStyle$1(g.value)},{default:withCtx(()=>[renderSlot(V.$slots,"default")]),_:3},8,["class","style"]))}});var Col=_export_sfc(_sfc_main$2h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const ElCol=withInstall(Col),emitChangeFn=n=>isNumber$2(n)||isString$2(n)||isArray$5(n),collapseProps=buildProps({accordion:Boolean,modelValue:{type:definePropType([Array,String,Number]),default:()=>mutable([])},expandIconPosition:{type:definePropType([String]),default:"right"},beforeCollapse:{type:definePropType(Function)}}),collapseEmits={[UPDATE_MODEL_EVENT]:emitChangeFn,[CHANGE_EVENT]:emitChangeFn},collapseContextKey=Symbol("collapseContextKey"),SCOPE$5="ElCollapse",useCollapse=(n,t)=>{const r=ref(castArray$1(n.modelValue)),i=V=>{r.value=V;const re=n.accordion?r.value[0]:r.value;t(UPDATE_MODEL_EVENT,re),t(CHANGE_EVENT,re)},g=V=>{if(n.accordion)i([r.value[0]===V?"":V]);else{const re=[...r.value],ie=re.indexOf(V);ie>-1?re.splice(ie,1):re.push(V),i(re)}},$=async V=>{const{beforeCollapse:re}=n;if(!re){g(V);return}const ie=re(V);[isPromise(ie),isBoolean$1(ie)].includes(!0)||throwError$1(SCOPE$5,"beforeCollapse must return type `Promise` or `boolean`"),isPromise(ie)?ie.then(oe=>{oe!==!1&&g(V)}).catch(oe=>{}):ie&&g(V)};return watch(()=>n.modelValue,()=>r.value=castArray$1(n.modelValue),{deep:!0}),provide(collapseContextKey,{activeNames:r,handleItemClick:$}),{activeNames:r,setActiveNames:i}},useCollapseDOM=n=>{const t=useNamespace("collapse");return{rootKls:computed(()=>[t.b(),t.b(`icon-position-${n.expandIconPosition}`)])}},_sfc_main$2g=defineComponent({name:"ElCollapse",__name:"collapse",props:collapseProps,emits:collapseEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{activeNames:$,setActiveNames:V}=useCollapse(i,g),{rootKls:re}=useCollapseDOM(i);return t({activeNames:$,setActiveNames:V}),(ie,ae)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(re))},[renderSlot(ie.$slots,"default")],2))}});var Collapse=_export_sfc(_sfc_main$2g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const _sfc_main$2f=defineComponent({name:"ElCollapseTransition",__name:"collapse-transition",setup(n){const t=useNamespace("collapse-transition"),r=g=>{g.style.maxHeight="",g.style.overflow=g.dataset.oldOverflow,g.style.paddingTop=g.dataset.oldPaddingTop,g.style.paddingBottom=g.dataset.oldPaddingBottom},i={beforeEnter(g){g.dataset||(g.dataset={}),g.dataset.oldPaddingTop=g.style.paddingTop,g.dataset.oldPaddingBottom=g.style.paddingBottom,g.style.height&&(g.dataset.elExistsHeight=g.style.height),g.style.maxHeight=0,g.style.paddingTop=0,g.style.paddingBottom=0},enter(g){requestAnimationFrame(()=>{g.dataset.oldOverflow=g.style.overflow,g.dataset.elExistsHeight?g.style.maxHeight=g.dataset.elExistsHeight:g.scrollHeight!==0?g.style.maxHeight=`${g.scrollHeight}px`:g.style.maxHeight=0,g.style.paddingTop=g.dataset.oldPaddingTop,g.style.paddingBottom=g.dataset.oldPaddingBottom,g.style.overflow="hidden"})},afterEnter(g){g.style.maxHeight="",g.style.overflow=g.dataset.oldOverflow},enterCancelled(g){r(g)},beforeLeave(g){g.dataset||(g.dataset={}),g.dataset.oldPaddingTop=g.style.paddingTop,g.dataset.oldPaddingBottom=g.style.paddingBottom,g.dataset.oldOverflow=g.style.overflow,g.style.maxHeight=`${g.scrollHeight}px`,g.style.overflow="hidden"},leave(g){g.scrollHeight!==0&&(g.style.maxHeight=0,g.style.paddingTop=0,g.style.paddingBottom=0)},afterLeave(g){r(g)},leaveCancelled(g){r(g)}};return(g,$)=>(openBlock(),createBlock(Transition,mergeProps({name:unref(t).b()},toHandlers(i)),{default:withCtx(()=>[renderSlot(g.$slots,"default")]),_:3},16,["name"]))}});var CollapseTransition=_export_sfc(_sfc_main$2f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);const ElCollapseTransition=withInstall(CollapseTransition),collapseItemProps=buildProps({title:{type:String,default:""},name:{type:definePropType([String,Number]),default:void 0},icon:{type:iconPropType,default:arrow_right_default},disabled:Boolean}),useCollapseItem=n=>{const t=inject(collapseContextKey),{namespace:r}=useNamespace("collapse"),i=ref(!1),g=ref(!1),$=useIdInjection(),V=computed(()=>$.current++),re=computed(()=>{var ue;return(ue=n.name)!=null?ue:`${r.value}-id-${$.prefix}-${unref(V)}`}),ie=computed(()=>t==null?void 0:t.activeNames.value.includes(unref(re)));return{focusing:i,id:V,isActive:ie,handleFocus:()=>{setTimeout(()=>{g.value?g.value=!1:i.value=!0},50)},handleHeaderClick:ue=>{if(n.disabled)return;const de=ue.target;de!=null&&de.closest("input, textarea, select")||(t==null||t.handleItemClick(unref(re)),i.value=!1,g.value=!0)},handleEnterClick:ue=>{const de=ue.target;de!=null&&de.closest("input, textarea, select")||(ue.preventDefault(),t==null||t.handleItemClick(unref(re)))}}},useCollapseItemDOM=(n,{focusing:t,isActive:r,id:i})=>{const g=useNamespace("collapse"),$=computed(()=>[g.b("item"),g.is("active",unref(r)),g.is("disabled",n.disabled)]),V=computed(()=>[g.be("item","header"),g.is("active",unref(r)),{focusing:unref(t)&&!n.disabled}]),re=computed(()=>[g.be("item","arrow"),g.is("active",unref(r))]),ie=computed(()=>[g.be("item","title")]),ae=computed(()=>g.be("item","wrap")),oe=computed(()=>g.be("item","content")),le=computed(()=>g.b(`content-${unref(i)}`)),ue=computed(()=>g.b(`head-${unref(i)}`));return{itemTitleKls:ie,arrowKls:re,headKls:V,rootKls:$,itemWrapperKls:ae,itemContentKls:oe,scopedContentId:le,scopedHeadId:ue}},_hoisted_1$1l=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],_hoisted_2$S=["id","aria-hidden","aria-labelledby"],_sfc_main$2e=defineComponent({name:"ElCollapseItem",__name:"collapse-item",props:collapseItemProps,setup(n,{expose:t}){const r=n,{focusing:i,id:g,isActive:$,handleFocus:V,handleHeaderClick:re,handleEnterClick:ie}=useCollapseItem(r),{arrowKls:ae,headKls:oe,rootKls:le,itemTitleKls:ue,itemWrapperKls:de,itemContentKls:he,scopedContentId:pe,scopedHeadId:_e}=useCollapseItemDOM(r,{focusing:i,isActive:$,id:g});return t({isActive:$}),(Ce,xe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(le))},[createBaseVNode("div",{id:unref(_e),class:normalizeClass(unref(oe)),"aria-expanded":unref($),"aria-controls":unref(pe),"aria-describedby":unref(pe),tabindex:Ce.disabled?void 0:0,"aria-disabled":Ce.disabled,role:"button",onClick:xe[0]||(xe[0]=(...Ie)=>unref(re)&&unref(re)(...Ie)),onKeydown:xe[1]||(xe[1]=withKeys(withModifiers((...Ie)=>unref(ie)&&unref(ie)(...Ie),["stop"]),["space","enter"])),onFocus:xe[2]||(xe[2]=(...Ie)=>unref(V)&&unref(V)(...Ie)),onBlur:xe[3]||(xe[3]=Ie=>i.value=!1)},[createBaseVNode("span",{class:normalizeClass(unref(ue))},[renderSlot(Ce.$slots,"title",{isActive:unref($)},()=>[createTextVNode(toDisplayString(Ce.title),1)])],2),renderSlot(Ce.$slots,"icon",{isActive:unref($)},()=>[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(ae))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ce.icon)))]),_:1},8,["class"])])],42,_hoisted_1$1l),createVNode$1(unref(ElCollapseTransition),null,{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:unref(pe),role:"region",class:normalizeClass(unref(de)),"aria-hidden":!unref($),"aria-labelledby":unref(_e)},[createBaseVNode("div",{class:normalizeClass(unref(he))},[renderSlot(Ce.$slots,"default")],2)],10,_hoisted_2$S),[[vShow,unref($)]])]),_:3})],2))}});var CollapseItem=_export_sfc(_sfc_main$2e,[["__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:Boolean,disabled:Boolean}),hueSliderProps=alphaSliderProps;let isDragging=!1;function draggable(n,t){if(!isClient)return;const r=function($){var V;(V=t.drag)==null||V.call(t,$)},i=function($){var V;document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),document.removeEventListener("touchmove",r),document.removeEventListener("touchend",i),document.onselectstart=null,document.ondragstart=null,isDragging=!1,(V=t.end)==null||V.call(t,$)},g=function($){var V;isDragging||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r),document.addEventListener("mouseup",i),document.addEventListener("touchmove",r),document.addEventListener("touchend",i),isDragging=!0,(V=t.start)==null||V.call(t,$))};n.addEventListener("mousedown",g),n.addEventListener("touchstart",g,{passive:!1})}const getOffsetTop=n=>{let t=0,r=n;for(;r;)t+=r.offsetTop,r=r.offsetParent;return t},getOffsetTopDistance=(n,t)=>Math.abs(getOffsetTop(n)-getOffsetTop(t)),getClientXY=n=>{let t,r;return n.type==="touchend"?(r=n.changedTouches[0].clientY,t=n.changedTouches[0].clientX):n.type.startsWith("touch")?(r=n.touches[0].clientY,t=n.touches[0].clientX):(r=n.clientY,t=n.clientX),{clientX:t,clientY:r}},useSlider=(n,{key:t,minValue:r,maxValue:i})=>{const g=getCurrentInstance(),$=shallowRef(),V=shallowRef(),re=computed(()=>n.color.get(t));function ie(ue){var de;if(n.disabled)return;ue.target!==$.value&&ae(ue),(de=$.value)==null||de.focus()}function ae(ue){if(!V.value||!$.value||n.disabled)return;const he=g.vnode.el.getBoundingClientRect(),{clientX:pe,clientY:_e}=getClientXY(ue);let Ce;if(n.vertical){let xe=_e-he.top;xe=Math.max($.value.offsetHeight/2,xe),xe=Math.min(xe,he.height-$.value.offsetHeight/2),Ce=Math.round((xe-$.value.offsetHeight/2)/(he.height-$.value.offsetHeight)*i)}else{let xe=pe-he.left;xe=Math.max($.value.offsetWidth/2,xe),xe=Math.min(xe,he.width-$.value.offsetWidth/2),Ce=Math.round((xe-$.value.offsetWidth/2)/(he.width-$.value.offsetWidth)*i)}n.color.set(t,Ce)}function oe(ue){if(n.disabled)return;const{shiftKey:de}=ue,he=getEventCode(ue),pe=de?10:1,_e=t==="hue"?-1:1;let Ce=!0;switch(he){case EVENT_CODE.left:case EVENT_CODE.down:le(-pe*_e);break;case EVENT_CODE.right:case EVENT_CODE.up:le(pe*_e);break;case EVENT_CODE.home:n.color.set(t,t==="hue"?i:r);break;case EVENT_CODE.end:n.color.set(t,t==="hue"?r:i);break;case EVENT_CODE.pageDown:le(-4*_e);break;case EVENT_CODE.pageUp:le(4*_e);break;default:Ce=!1;break}Ce&&ue.preventDefault()}function le(ue){let de=re.value+ue;de=dei?i:de,n.color.set(t,de)}return{thumb:$,bar:V,currentValue:re,handleDrag:ae,handleClick:ie,handleKeydown:oe}},useSliderDOM=(n,{namespace:t,maxValue:r,bar:i,thumb:g,currentValue:$,handleDrag:V,getBackground:re})=>{const ie=getCurrentInstance(),ae=useNamespace(t),oe=ref(0),le=ref(0),ue=ref();function de(){if(!g.value||n.vertical)return 0;const Oe=ie.vnode.el,$e=$.value;return Oe?Math.round($e*(Oe.offsetWidth-g.value.offsetWidth/2)/r):0}function he(){if(!g.value)return 0;const Oe=ie.vnode.el;if(!n.vertical)return 0;const $e=$.value;return Oe?Math.round($e*(Oe.offsetHeight-g.value.offsetHeight/2)/r):0}function pe(){oe.value=de(),le.value=he(),ue.value=re==null?void 0:re()}onMounted(()=>{if(!i.value||!g.value)return;const Oe={drag:$e=>{V($e)},end:$e=>{V($e)}};draggable(i.value,Oe),draggable(g.value,Oe),pe()}),watch($,()=>pe()),watch(()=>n.color.value,()=>pe());const _e=computed(()=>[ae.b(),ae.is("vertical",n.vertical),ae.is("disabled",n.disabled)]),Ce=computed(()=>ae.e("bar")),xe=computed(()=>ae.e("thumb")),Ie=computed(()=>({background:ue.value})),Ne=computed(()=>({left:addUnit(oe.value),top:addUnit(le.value)}));return{rootKls:_e,barKls:Ce,barStyle:Ie,thumbKls:xe,thumbStyle:Ne,thumbLeft:oe,thumbTop:le,update:pe}},_hoisted_1$1k=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],minValue$1=0,maxValue$1=100,_sfc_main$2d=defineComponent({name:"ElColorAlphaSlider",__name:"alpha-slider",props:alphaSliderProps,setup(n,{expose:t}){const r=n,{currentValue:i,bar:g,thumb:$,handleDrag:V,handleClick:re,handleKeydown:ie}=useSlider(r,{key:"alpha",minValue:minValue$1,maxValue:maxValue$1}),{rootKls:ae,barKls:oe,barStyle:le,thumbKls:ue,thumbStyle:de,update:he}=useSliderDOM(r,{namespace:"color-alpha-slider",maxValue:maxValue$1,currentValue:i,bar:g,thumb:$,handleDrag:V,getBackground:xe}),{t:pe}=useLocale(),_e=computed(()=>pe("el.colorpicker.alphaLabel")),Ce=computed(()=>pe("el.colorpicker.alphaDescription",{alpha:i.value,color:r.color.value}));function xe(){if(r.color&&r.color.value){const{r:Ie,g:Ne,b:Oe}=r.color.toRgb();return`linear-gradient(to right, rgba(${Ie}, ${Ne}, ${Oe}, 0) 0%, rgba(${Ie}, ${Ne}, ${Oe}, 1) 100%)`}return""}return t({update:he,bar:g,thumb:$}),(Ie,Ne)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ae))},[createBaseVNode("div",{ref_key:"bar",ref:g,class:normalizeClass(unref(oe)),style:normalizeStyle$1(unref(le)),onClick:Ne[0]||(Ne[0]=(...Oe)=>unref(re)&&unref(re)(...Oe))},null,6),createBaseVNode("div",{ref_key:"thumb",ref:$,class:normalizeClass(unref(ue)),style:normalizeStyle$1(unref(de)),"aria-label":_e.value,"aria-valuenow":unref(i),"aria-valuetext":Ce.value,"aria-orientation":Ie.vertical?"vertical":"horizontal","aria-valuemin":minValue$1,"aria-valuemax":maxValue$1,role:"slider",tabindex:Ie.disabled?void 0:0,"aria-disabled":Ie.disabled,onKeydown:Ne[1]||(Ne[1]=(...Oe)=>unref(ie)&&unref(ie)(...Oe))},null,46,_hoisted_1$1k)],2))}});var AlphaSlider=_export_sfc(_sfc_main$2d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/alpha-slider.vue"]]);const _hoisted_1$1j=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],minValue=0,maxValue=360,_sfc_main$2c=defineComponent({name:"ElColorHueSlider",__name:"hue-slider",props:hueSliderProps,setup(n,{expose:t}){const r=n,{currentValue:i,bar:g,thumb:$,handleDrag:V,handleClick:re,handleKeydown:ie}=useSlider(r,{key:"hue",minValue,maxValue}),{rootKls:ae,barKls:oe,thumbKls:le,thumbStyle:ue,thumbTop:de,update:he}=useSliderDOM(r,{namespace:"color-hue-slider",maxValue,currentValue:i,bar:g,thumb:$,handleDrag:V}),{t:pe}=useLocale(),_e=computed(()=>pe("el.colorpicker.hueLabel")),Ce=computed(()=>pe("el.colorpicker.hueDescription",{hue:i.value,color:r.color.value}));return t({bar:g,thumb:$,thumbTop:de,update:he}),(xe,Ie)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ae))},[createBaseVNode("div",{ref_key:"bar",ref:g,class:normalizeClass(unref(oe)),onClick:Ie[0]||(Ie[0]=(...Ne)=>unref(re)&&unref(re)(...Ne))},null,2),createBaseVNode("div",{ref_key:"thumb",ref:$,class:normalizeClass(unref(le)),style:normalizeStyle$1(unref(ue)),"aria-label":_e.value,"aria-valuenow":unref(i),"aria-valuetext":Ce.value,"aria-orientation":xe.vertical?"vertical":"horizontal","aria-valuemin":minValue,"aria-valuemax":maxValue,role:"slider",tabindex:xe.disabled?void 0:0,"aria-disabled":xe.disabled,onKeydown:Ie[1]||(Ie[1]=(...Ne)=>unref(ie)&&unref(ie)(...Ne))},null,46,_hoisted_1$1j)],2))}});var HueSlider=_export_sfc(_sfc_main$2c,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/hue-slider.vue"]]);const predefineProps=buildProps({colors:{type:definePropType(Array),required:!0},color:{type:definePropType(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean}),colorPickerPanelProps=buildProps({modelValue:{type:definePropType(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:String,disabled:Boolean,predefine:{type:definePropType(Array)},validateEvent:{type:Boolean,default:!0}}),colorPickerPanelEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n)||isNil(n)},ROOT_COMMON_COLOR_INJECTION_KEY=Symbol("colorCommonPickerKey"),colorPickerPanelContextKey=Symbol("colorPickerPanelContextKey");let Color$1=class{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new TinyColor,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const r in t)hasOwn$1(t,r)&&(this[r]=t[r]);t.value?this.fromString(t.value):this.doOnChange()}set(t,r){if(arguments.length===1&&typeof t=="object"){for(const i in t)hasOwn$1(t,i)&&this.set(i,t[i]);return}this[`_${t}`]=r,this._isValid=!0,this.doOnChange()}get(t){return["hue","saturation","value","alpha"].includes(t)?Math.round(this[`_${t}`]):this[`_${t}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(t){const r=new TinyColor(t);if(this._isValid=r.isValid,r.isValid){const{h:i,s:g,v:$,a:V}=r.toHsv();this._hue=i,this._saturation=g*100,this._value=$*100,this._alpha=V*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}clear(){this._isValid=!1,this.value="",this._hue=0,this._saturation=100,this._value=100,this._alpha=100}compare(t){const r=new TinyColor({h:t._hue,s:t._saturation/100,v:t._value/100,a:t._alpha/100});return this._tiny.equals(r)}doOnChange(){const{_hue:t,_saturation:r,_value:i,_alpha:g,format:$,enableAlpha:V}=this;let re=$||(V?"rgb":"hex");$==="hex"&&V&&(re="hex8"),this._tiny=new TinyColor({h:t,s:r/100,v:i/100,a:g/100}),this.value=this._isValid?this._tiny.toString(re):""}};const usePredefine=n=>{const{currentColor:t}=inject(colorPickerPanelContextKey),r=ref(g(n.colors,n.color));watch(()=>t.value,$=>{const V=new Color$1({value:$,enableAlpha:n.enableAlpha});r.value.forEach(re=>{re.selected=V.compare(re)})}),watchEffect(()=>{r.value=g(n.colors,n.color)});function i($){n.color.fromString(n.colors[$])}function g($,V){return $.map(re=>{const ie=new Color$1({value:re,enableAlpha:n.enableAlpha});return ie.selected=ie.compare(V),ie})}return{rgbaColors:r,handleSelect:i}},usePredefineDOM=n=>{const t=useNamespace("color-predefine"),r=computed(()=>[t.b(),t.is("disabled",n.disabled)]),i=computed(()=>t.e("colors"));function g($){return[t.e("color-selector"),t.is("alpha",$.get("alpha")<100),{selected:$.selected}]}return{rootKls:r,colorsKls:i,colorSelectorKls:g}},_hoisted_1$1i=["disabled","aria-label","onClick"],_sfc_main$2b=defineComponent({name:"ElColorPredefine",__name:"predefine",props:predefineProps,setup(n){const t=n,{rgbaColors:r,handleSelect:i}=usePredefine(t),{rootKls:g,colorsKls:$,colorSelectorKls:V}=usePredefineDOM(t),{t:re}=useLocale(),ie=ae=>re("el.colorpicker.predefineDescription",{value:ae});return(ae,oe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(g))},[createBaseVNode("div",{class:normalizeClass(unref($))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(r),(le,ue)=>(openBlock(),createElementBlock("button",{key:ae.colors[ue],type:"button",disabled:ae.disabled,"aria-label":ie(le.value),class:normalizeClass(unref(V)(le)),onClick:de=>unref(i)(ue)},[createBaseVNode("div",{style:normalizeStyle$1({backgroundColor:le.value})},null,4)],10,_hoisted_1$1i))),128))],2)],2))}});var Predefine=_export_sfc(_sfc_main$2b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/predefine.vue"]]);const svPanelProps=buildProps({color:{type:definePropType(Object),required:!0},disabled:Boolean}),useSvPanel=n=>{const t=getCurrentInstance(),r=ref(),i=ref(0),g=ref(0),$=ref("hsl(0, 100%, 50%)"),V=computed(()=>n.color.get("saturation")),re=computed(()=>n.color.get("value")),ie=computed(()=>n.color.get("hue"));function ae(he){var pe;if(n.disabled)return;he.target!==r.value&&oe(he),(pe=r.value)==null||pe.focus({preventScroll:!0})}function oe(he){if(n.disabled)return;const _e=t.vnode.el.getBoundingClientRect(),{clientX:Ce,clientY:xe}=getClientXY(he);let Ie=Ce-_e.left,Ne=xe-_e.top;Ie=Math.max(0,Ie),Ie=Math.min(Ie,_e.width),Ne=Math.max(0,Ne),Ne=Math.min(Ne,_e.height),g.value=Ie,i.value=Ne,n.color.set({saturation:Ie/_e.width*100,value:100-Ne/_e.height*100})}function le(he){if(n.disabled)return;const{shiftKey:pe}=he,_e=getEventCode(he),Ce=pe?10:1;let xe=!0;switch(_e){case EVENT_CODE.left:ue(-Ce);break;case EVENT_CODE.right:ue(Ce);break;case EVENT_CODE.up:de(Ce);break;case EVENT_CODE.down:de(-Ce);break;default:xe=!1;break}xe&&he.preventDefault()}function ue(he){let pe=V.value+he;pe=pe<0?0:pe>100?100:pe,n.color.set("saturation",pe)}function de(he){let pe=re.value+he;pe=pe<0?0:pe>100?100:pe,n.color.set("value",pe)}return{cursorRef:r,cursorTop:i,cursorLeft:g,background:$,saturation:V,brightness:re,hue:ie,handleClick:ae,handleDrag:oe,handleKeydown:le}},useSvPanelDOM=(n,{cursorTop:t,cursorLeft:r,background:i,handleDrag:g})=>{const $=getCurrentInstance(),V=useNamespace("color-svpanel");function re(){const ue=n.color.get("saturation"),de=n.color.get("value"),he=$.vnode.el,{clientWidth:pe,clientHeight:_e}=he;r.value=ue*pe/100,t.value=(100-de)*_e/100,i.value=`hsl(${n.color.get("hue")}, 100%, 50%)`}onMounted(()=>{draggable($.vnode.el,{drag:ue=>{g(ue)},end:ue=>{g(ue)}}),re()}),watch([()=>n.color.get("hue"),()=>n.color.get("value"),()=>n.color.value],()=>re());const ie=computed(()=>V.b()),ae=computed(()=>V.e("cursor")),oe=computed(()=>({backgroundColor:i.value})),le=computed(()=>({top:addUnit(t.value),left:addUnit(r.value)}));return{rootKls:ie,cursorKls:ae,rootStyle:oe,cursorStyle:le,update:re}},_hoisted_1$1h=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"],_sfc_main$2a=defineComponent({name:"ElSvPanel",__name:"sv-panel",props:svPanelProps,setup(n,{expose:t}){const r=n,{cursorRef:i,cursorTop:g,cursorLeft:$,background:V,saturation:re,brightness:ie,handleClick:ae,handleDrag:oe,handleKeydown:le}=useSvPanel(r),{rootKls:ue,cursorKls:de,rootStyle:he,cursorStyle:pe,update:_e}=useSvPanelDOM(r,{cursorTop:g,cursorLeft:$,background:V,handleDrag:oe}),{t:Ce}=useLocale(),xe=computed(()=>Ce("el.colorpicker.svLabel")),Ie=computed(()=>Ce("el.colorpicker.svDescription",{saturation:re.value,brightness:ie.value,color:r.color.value}));return t({update:_e}),(Ne,Oe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ue)),style:normalizeStyle$1(unref(he)),onClick:Oe[1]||(Oe[1]=(...$e)=>unref(ae)&&unref(ae)(...$e))},[createBaseVNode("div",{ref_key:"cursorRef",ref:i,class:normalizeClass(unref(de)),style:normalizeStyle$1(unref(pe)),tabindex:Ne.disabled?void 0:0,"aria-disabled":Ne.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":xe.value,"aria-valuenow":`${unref(re)},${unref(ie)}`,"aria-valuetext":Ie.value,onKeydown:Oe[0]||(Oe[0]=(...$e)=>unref(le)&&unref(le)(...$e))},null,46,_hoisted_1$1h)],6))}});var SvPanel=_export_sfc(_sfc_main$2a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/sv-panel.vue"]]);const useCommonColor=(n,t)=>{const r=reactive(new Color$1({enableAlpha:n.showAlpha,format:n.colorFormat||"",value:n.modelValue}));return watch(()=>[n.colorFormat,n.showAlpha],()=>{r.enableAlpha=n.showAlpha,r.format=n.colorFormat||r.format,r.doOnChange(),t(UPDATE_MODEL_EVENT,r.value)}),{color:r}},_sfc_main$29=defineComponent({name:"ElColorPickerPanel",__name:"color-picker-panel",props:colorPickerPanelProps,emits:colorPickerPanelEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useNamespace("color-picker-panel"),{formItem:V}=useFormItem(),re=useFormDisabled(),ie=ref(),ae=ref(),oe=ref(),le=ref(),ue=ref(""),{color:de}=inject(ROOT_COMMON_COLOR_INJECTION_KEY,()=>useCommonColor(i,g),!0);function he(){de.fromString(ue.value),de.value!==ue.value&&(ue.value=de.value)}function pe(){var Ce;i.validateEvent&&((Ce=V==null?void 0:V.validate)==null||Ce.call(V,"blur").catch(xe=>void 0))}function _e(){var Ce,xe,Ie;(Ce=ie.value)==null||Ce.update(),(xe=ae.value)==null||xe.update(),(Ie=oe.value)==null||Ie.update()}return onMounted(()=>{i.modelValue&&(ue.value=de.value),nextTick(_e)}),watch(()=>i.modelValue,Ce=>{Ce!==de.value&&(Ce?de.fromString(Ce):de.clear())}),watch(()=>de.value,Ce=>{g(UPDATE_MODEL_EVENT,Ce),ue.value=Ce,i.validateEvent&&(V==null||V.validate("change").catch(xe=>void 0))}),provide(colorPickerPanelContextKey,{currentColor:computed(()=>de.value)}),t({color:de,inputRef:le,update:_e}),(Ce,xe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref($).b(),unref($).is("disabled",unref(re)),unref($).is("border",Ce.border)]),onFocusout:pe},[createBaseVNode("div",{class:normalizeClass(unref($).e("wrapper"))},[createVNode$1(HueSlider,{ref_key:"hueRef",ref:ie,class:"hue-slider",color:unref(de),vertical:"",disabled:unref(re)},null,8,["color","disabled"]),createVNode$1(SvPanel,{ref_key:"svRef",ref:ae,color:unref(de),disabled:unref(re)},null,8,["color","disabled"])],2),Ce.showAlpha?(openBlock(),createBlock(AlphaSlider,{key:0,ref_key:"alphaRef",ref:oe,color:unref(de),disabled:unref(re)},null,8,["color","disabled"])):createCommentVNode("v-if",!0),Ce.predefine?(openBlock(),createBlock(Predefine,{key:1,ref:"predefine","enable-alpha":Ce.showAlpha,color:unref(de),colors:Ce.predefine,disabled:unref(re)},null,8,["enable-alpha","color","colors","disabled"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref($).e("footer"))},[createVNode$1(unref(ElInput),{ref_key:"inputRef",ref:le,modelValue:ue.value,"onUpdate:modelValue":xe[0]||(xe[0]=Ie=>ue.value=Ie),"validate-event":!1,size:"small",disabled:unref(re),onChange:he},null,8,["modelValue","disabled"]),renderSlot(Ce.$slots,"footer")],2)],34))}});var ColorPickerPanel=_export_sfc(_sfc_main$29,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/color-picker-panel.vue"]]);const ElColorPickerPanel=withInstall(ColorPickerPanel),colorPickerProps=buildProps({persistent:{type:Boolean,default:!0},modelValue:{type:definePropType(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:String,disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},size:useSizeProp,popperClass:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,tabindex:{type:[String,Number],default:0},teleported:useTooltipContentProps.teleported,appendTo:useTooltipContentProps.appendTo,predefine:{type:definePropType(Array)},validateEvent:{type:Boolean,default:!0},...useEmptyValuesProps,...useAriaProps(["ariaLabel"])}),colorPickerEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n)||isNil(n),[CHANGE_EVENT]:n=>isString$2(n)||isNil(n),activeChange:n=>isString$2(n)||isNil(n),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0},_hoisted_1$1g=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],_sfc_main$28=defineComponent({name:"ElColorPicker",__name:"color-picker",props:colorPickerProps,emits:colorPickerEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{t:$}=useLocale(),V=useNamespace("color"),{formItem:re}=useFormItem(),ie=useFormSize(),ae=useFormDisabled(),{valueOnClear:oe,isEmptyValue:le}=useEmptyValues(i,null),ue=useCommonColor(i,g),{inputId:de,isLabeledByFormItem:he}=useFormItemInputId(i,{formItemContext:re}),pe=ref(),_e=ref(),Ce=ref(),xe=ref(!1),Ie=ref(!1);let Ne=!0;const{isFocused:Oe,handleFocus:$e,handleBlur:Ve}=useFocusController(_e,{disabled:ae,beforeBlur(An){var xn;return(xn=pe.value)==null?void 0:xn.isFocusInsideContent(An)},afterBlur(){var An;Dt(!1),vn(),i.validateEvent&&((An=re==null?void 0:re.validate)==null||An.call(re,"blur").catch(xn=>void 0))}}),Ue=reactiveComputed(()=>{var An,xn;return(xn=(An=Ce.value)==null?void 0:An.color)!=null?xn:ue.color}),Fe=computed(()=>pick$1(i,Object.keys(colorPickerPanelProps))),ze=computed(()=>!i.modelValue&&!Ie.value?"transparent":At(Ue,i.showAlpha)),Pt=computed(()=>!i.modelValue&&!Ie.value?"":Ue.value),qe=computed(()=>he.value?void 0:i.ariaLabel||$("el.colorpicker.defaultLabel")),Et=computed(()=>he.value?re==null?void 0:re.labelId:void 0),kt=computed(()=>[V.b("picker"),V.is("disabled",ae.value),V.bm("picker",ie.value),V.is("focused",Oe.value)]);function At(An,xn){const{r:Ln,g:Nn,b:Pn,a:On}=An.toRgb();return xn?`rgba(${Ln}, ${Nn}, ${Pn}, ${On})`:`rgb(${Ln}, ${Nn}, ${Pn})`}function Dt(An){xe.value=An}const Lt=debounce(Dt,100,{leading:!0});function jt(){ae.value||Dt(!0)}function hn(){Lt(!1),vn()}function vn(){nextTick(()=>{i.modelValue?Ue.fromString(i.modelValue):(Ue.value="",nextTick(()=>{Ie.value=!1}))})}function _n(){ae.value||(xe.value&&vn(),Lt(!xe.value))}function wn(){const An=le(Ue.value)?oe.value:Ue.value;g(UPDATE_MODEL_EVENT,An),g(CHANGE_EVENT,An),i.validateEvent&&(re==null||re.validate("change").catch(xn=>void 0)),Lt(!1),nextTick(()=>{const xn=new Color$1({enableAlpha:i.showAlpha,format:i.colorFormat||"",value:i.modelValue});Ue.compare(xn)||vn()})}function bn(){Lt(!1),g(UPDATE_MODEL_EVENT,oe.value),g(CHANGE_EVENT,oe.value),i.modelValue!==oe.value&&i.validateEvent&&(re==null||re.validate("change").catch(An=>void 0)),vn(),g("clear")}function Cn(){var An,xn;(xn=(An=Ce==null?void 0:Ce.value)==null?void 0:An.inputRef)==null||xn.focus()}function Sn(){xe.value&&(hn(),Oe.value&&kn())}function Tn(An){An.preventDefault(),An.stopPropagation(),Dt(!1),vn()}function En(An){switch(getEventCode(An)){case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:case EVENT_CODE.space:An.preventDefault(),An.stopPropagation(),jt();break;case EVENT_CODE.esc:Tn(An);break}}function kn(){_e.value.focus()}function $n(){_e.value.blur()}return watch(()=>Pt.value,An=>{Ne&&g("activeChange",An),Ne=!0}),watch(()=>Ue.value,()=>{!i.modelValue&&!Ie.value&&(Ie.value=!0)}),watch(()=>i.modelValue,An=>{An?An&&An!==Ue.value&&(Ne=!1,Ue.fromString(An)):Ie.value=!1}),watch(()=>xe.value,()=>{Ce.value&&nextTick(Ce.value.update)}),provide(ROOT_COMMON_COLOR_INJECTION_KEY,ue),t({color:Ue,show:jt,hide:hn,focus:kn,blur:$n}),(An,xn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popper",ref:pe,visible:xe.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[unref(V).be("picker","panel"),An.popperClass],"popper-style":An.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:An.teleported,transition:`${unref(V).namespace.value}-zoom-in-top`,persistent:An.persistent,"append-to":An.appendTo,onShow:Cn,onHide:xn[2]||(xn[2]=Ln=>Dt(!1))},{content:withCtx(()=>[withDirectives((openBlock(),createBlock(unref(ElColorPickerPanel),mergeProps({ref_key:"pickerPanelRef",ref:Ce},Fe.value,{border:!1,"validate-event":!1,onKeydown:withKeys(Tn,["esc"])}),{footer:withCtx(()=>[createBaseVNode("div",null,[An.clearable?(openBlock(),createBlock(unref(ElButton),{key:0,class:normalizeClass(unref(V).be("footer","link-btn")),text:"",size:"small",onClick:bn},{default:withCtx(()=>[createTextVNode(toDisplayString(unref($)("el.colorpicker.clear")),1)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode$1(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(V).be("footer","btn")),onClick:wn},{default:withCtx(()=>[createTextVNode(toDisplayString(unref($)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[unref(ClickOutside),Sn,_e.value]])]),default:withCtx(()=>[createBaseVNode("div",mergeProps({id:unref(de),ref_key:"triggerRef",ref:_e},An.$attrs,{class:kt.value,role:"button","aria-label":qe.value,"aria-labelledby":Et.value,"aria-description":unref($)("el.colorpicker.description",{color:An.modelValue||""}),"aria-disabled":unref(ae),tabindex:unref(ae)?void 0:An.tabindex,onKeydown:En,onFocus:xn[0]||(xn[0]=(...Ln)=>unref($e)&&unref($e)(...Ln)),onBlur:xn[1]||(xn[1]=(...Ln)=>unref(Ve)&&unref(Ve)(...Ln))}),[createBaseVNode("div",{class:normalizeClass(unref(V).be("picker","trigger")),onClick:_n},[createBaseVNode("span",{class:normalizeClass([unref(V).be("picker","color"),unref(V).is("alpha",An.showAlpha)])},[createBaseVNode("span",{class:normalizeClass(unref(V).be("picker","color-inner")),style:normalizeStyle$1({backgroundColor:ze.value})},[withDirectives(createVNode$1(unref(ElIcon),{class:normalizeClass([unref(V).be("picker","icon"),unref(V).is("icon-arrow-down")])},{default:withCtx(()=>[createVNode$1(unref(arrow_down_default))]),_:1},8,["class"]),[[vShow,An.modelValue||Ie.value]]),withDirectives(createVNode$1(unref(ElIcon),{class:normalizeClass([unref(V).be("picker","empty"),unref(V).is("icon-close")])},{default:withCtx(()=>[createVNode$1(unref(close_default))]),_:1},8,["class"]),[[vShow,!An.modelValue&&!Ie.value]])],6)],2)],2)],16,_hoisted_1$1g)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}});var ColorPicker=_export_sfc(_sfc_main$28,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const ElColorPicker=withInstall(ColorPicker),configProviderProps=buildProps({a11y:{type:Boolean,default:!0},locale:{type:definePropType(Object)},size:useSizeProp,button:{type:definePropType(Object)},card:{type:definePropType(Object)},dialog:{type:definePropType(Object)},link:{type:definePropType(Object)},experimentalFeatures:{type:definePropType(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:definePropType(Object)},zIndex:Number,namespace:{type:String,default:"el"},...useEmptyValuesProps}),messageConfig={placement:"top"},ConfigProvider=defineComponent({name:"ElConfigProvider",props:configProviderProps,setup(n,{slots:t}){const r=provideGlobalConfig(n);return watch(()=>n.message,i=>{var g,$;Object.assign(messageConfig,($=(g=r==null?void 0:r.value)==null?void 0:g.message)!=null?$:{},i??{})},{immediate:!0,deep:!0}),()=>renderSlot(t,"default",{config:r==null?void 0:r.value})}}),ElConfigProvider=withInstall(ConfigProvider),_sfc_main$27=defineComponent({name:"ElContainer",__name:"container",props:buildProps({direction:{type:String,values:["horizontal","vertical"]}}),setup(n){const t=n,r=useSlots(),i=useNamespace("container"),g=computed(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:r&&r.default?r.default().some(V=>{const re=V.type.name;return re==="ElHeader"||re==="ElFooter"}):!1);return($,V)=>(openBlock(),createElementBlock("section",{class:normalizeClass([unref(i).b(),unref(i).is("vertical",g.value)])},[renderSlot($.$slots,"default")],2))}});var Container=_export_sfc(_sfc_main$27,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const _sfc_main$26=defineComponent({name:"ElAside",__name:"aside",props:{width:{type:String,default:null}},setup(n){const t=n,r=useNamespace("aside"),i=computed(()=>t.width?r.cssVarBlock({width:t.width}):{});return(g,$)=>(openBlock(),createElementBlock("aside",{class:normalizeClass(unref(r).b()),style:normalizeStyle$1(i.value)},[renderSlot(g.$slots,"default")],6))}});var Aside=_export_sfc(_sfc_main$26,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const _sfc_main$25=defineComponent({name:"ElFooter",__name:"footer",props:{height:{type:String,default:null}},setup(n){const t=n,r=useNamespace("footer"),i=computed(()=>t.height?r.cssVarBlock({height:t.height}):{});return(g,$)=>(openBlock(),createElementBlock("footer",{class:normalizeClass(unref(r).b()),style:normalizeStyle$1(i.value)},[renderSlot(g.$slots,"default")],6))}});var Footer$2=_export_sfc(_sfc_main$25,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const _sfc_main$24=defineComponent({name:"ElHeader",__name:"header",props:{height:{type:String,default:null}},setup(n){const t=n,r=useNamespace("header"),i=computed(()=>t.height?r.cssVarBlock({height:t.height}):{});return(g,$)=>(openBlock(),createElementBlock("header",{class:normalizeClass(unref(r).b()),style:normalizeStyle$1(i.value)},[renderSlot(g.$slots,"default")],6))}});var Header$2=_export_sfc(_sfc_main$24,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const _sfc_main$23=defineComponent({name:"ElMain",__name:"main",setup(n){const t=useNamespace("main");return(r,i)=>(openBlock(),createElementBlock("main",{class:normalizeClass(unref(t).b())},[renderSlot(r.$slots,"default")],2))}});var Main=_export_sfc(_sfc_main$23,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const ElContainer=withInstall(Container,{Aside,Footer:Footer$2,Header:Header$2,Main}),ElAside=withNoopInstall(Aside),ElFooter=withNoopInstall(Footer$2),ElHeader=withNoopInstall(Header$2),ElMain=withNoopInstall(Main);var customParseFormat$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,g=/\d/,$=/\d\d/,V=/\d\d?/,re=/\d*[^-_:/,()\s\d]+/,ie={},ae=function(_e){return(_e=+_e)+(_e>68?1900:2e3)},oe=function(_e){return function(Ce){this[_e]=+Ce}},le=[/[+-]\d\d:?(\d\d)?|Z/,function(_e){(this.zone||(this.zone={})).offset=function(Ce){if(!Ce||Ce==="Z")return 0;var xe=Ce.match(/([+-]|\d\d)/g),Ie=60*xe[1]+(+xe[2]||0);return Ie===0?0:xe[0]==="+"?-Ie:Ie}(_e)}],ue=function(_e){var Ce=ie[_e];return Ce&&(Ce.indexOf?Ce:Ce.s.concat(Ce.f))},de=function(_e,Ce){var xe,Ie=ie.meridiem;if(Ie){for(var Ne=1;Ne<=24;Ne+=1)if(_e.indexOf(Ie(Ne,0,Ce))>-1){xe=Ne>12;break}}else xe=_e===(Ce?"pm":"PM");return xe},he={A:[re,function(_e){this.afternoon=de(_e,!1)}],a:[re,function(_e){this.afternoon=de(_e,!0)}],Q:[g,function(_e){this.month=3*(_e-1)+1}],S:[g,function(_e){this.milliseconds=100*+_e}],SS:[$,function(_e){this.milliseconds=10*+_e}],SSS:[/\d{3}/,function(_e){this.milliseconds=+_e}],s:[V,oe("seconds")],ss:[V,oe("seconds")],m:[V,oe("minutes")],mm:[V,oe("minutes")],H:[V,oe("hours")],h:[V,oe("hours")],HH:[V,oe("hours")],hh:[V,oe("hours")],D:[V,oe("day")],DD:[$,oe("day")],Do:[re,function(_e){var Ce=ie.ordinal,xe=_e.match(/\d+/);if(this.day=xe[0],Ce)for(var Ie=1;Ie<=31;Ie+=1)Ce(Ie).replace(/\[|\]/g,"")===_e&&(this.day=Ie)}],w:[V,oe("week")],ww:[$,oe("week")],M:[V,oe("month")],MM:[$,oe("month")],MMM:[re,function(_e){var Ce=ue("months"),xe=(ue("monthsShort")||Ce.map(function(Ie){return Ie.slice(0,3)})).indexOf(_e)+1;if(xe<1)throw new Error;this.month=xe%12||xe}],MMMM:[re,function(_e){var Ce=ue("months").indexOf(_e)+1;if(Ce<1)throw new Error;this.month=Ce%12||Ce}],Y:[/[+-]?\d+/,oe("year")],YY:[$,function(_e){this.year=ae(_e)}],YYYY:[/\d{4}/,oe("year")],Z:le,ZZ:le};function pe(_e){var Ce,xe;Ce=_e,xe=ie&&ie.formats;for(var Ie=(_e=Ce.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(ze,Pt,qe){var Et=qe&&qe.toUpperCase();return Pt||xe[qe]||r[qe]||xe[Et].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(kt,At,Dt){return At||Dt.slice(1)})})).match(i),Ne=Ie.length,Oe=0;Oe-1)return new Date((jt==="X"?1e3:1)*Lt);var _n=pe(jt)(Lt),wn=_n.year,bn=_n.month,Cn=_n.day,Sn=_n.hours,Tn=_n.minutes,En=_n.seconds,kn=_n.milliseconds,$n=_n.zone,An=_n.week,xn=new Date,Ln=Cn||(wn||bn?1:xn.getDate()),Nn=wn||xn.getFullYear(),Pn=0;wn&&!bn||(Pn=bn>0?bn-1:xn.getMonth());var On,Hn=Sn||0,Xn=Tn||0,In=En||0,or=kn||0;return $n?new Date(Date.UTC(Nn,Pn,Ln,Hn,Xn,In,or+60*$n.offset*1e3)):hn?new Date(Date.UTC(Nn,Pn,Ln,Hn,Xn,In,or)):(On=new Date(Nn,Pn,Ln,Hn,Xn,In,or),An&&(On=vn(On).week(An).toDate()),On)}catch{return new Date("")}}($e,Fe,Ve,xe),this.init(),Et&&Et!==!0&&(this.$L=this.locale(Et).$L),qe&&$e!=this.format(Fe)&&(this.$d=new Date("")),ie={}}else if(Fe instanceof Array)for(var kt=Fe.length,At=1;At<=kt;At+=1){Ue[1]=Fe[At-1];var Dt=xe.apply(this,Ue);if(Dt.isValid()){this.$d=Dt.$d,this.$L=Dt.$L,this.init();break}At===kt&&(this.$d=new Date(""))}else Ne.call(this,Oe)}}})})(customParseFormat$1);var customParseFormatExports=customParseFormat$1.exports;const customParseFormat=getDefaultExportFromCjs(customParseFormatExports),timeUnits$1=["hours","minutes","seconds"],PICKER_BASE_INJECTION_KEY="EP_PICKER_BASE",PICKER_POPPER_OPTIONS_INJECTION_KEY="ElPopperOptions",ROOT_COMMON_PICKER_INJECTION_KEY=Symbol("commonPickerContextKey"),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",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:DEFAULT_FORMATS_DATE,datetimerange:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`},useCommonPicker=(n,t)=>{const{lang:r}=useLocale(),i=ref(!1),g=ref(!1),$=ref(null),V=computed(()=>{const{modelValue:he}=n;return!he||isArray$5(he)&&!he.filter(Boolean).length}),re=he=>{if(!valueEquals(n.modelValue,he)){let pe;isArray$5(he)?pe=he.map(Ce=>formatter(Ce,n.valueFormat,r.value)):he&&(pe=formatter(he,n.valueFormat,r.value)),t(UPDATE_MODEL_EVENT,he&&pe,r.value)}},ie=computed(()=>{var he;let pe;if(V.value?ae.value.getDefaultValue&&(pe=ae.value.getDefaultValue()):isArray$5(n.modelValue)?pe=n.modelValue.map(_e=>parseDate$1(_e,n.valueFormat,r.value)):pe=parseDate$1((he=n.modelValue)!=null?he:"",n.valueFormat,r.value),ae.value.getRangeAvailableTime){const _e=ae.value.getRangeAvailableTime(pe);isEqual$1(_e,pe)||(pe=_e,V.value||re(dayOrDaysToDate(pe)))}return isArray$5(pe)&&pe.some(_e=>!_e)&&(pe=[]),pe}),ae=ref({});return{parsedValue:ie,pickerActualVisible:g,pickerOptions:ae,pickerVisible:i,userInput:$,valueIsEmpty:V,emitInput:re,onCalendarChange:he=>{t("calendar-change",he)},onPanelChange:(he,pe,_e)=>{t("panel-change",he,pe,_e)},onPick:(he="",pe=!1)=>{i.value=pe;let _e;isArray$5(he)?_e=he.map(Ce=>Ce.toDate()):_e=he&&he.toDate(),$.value=null,re(_e)},onSetPickerOption:he=>{ae.value[he[0]]=he[1],ae.value.panelReady=!0}}},disabledTimeListsProps=buildProps({disabledHours:{type:definePropType(Function)},disabledMinutes:{type:definePropType(Function)},disabledSeconds:{type:definePropType(Function)}}),timePanelSharedProps=buildProps({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),timePickerDefaultProps=buildProps({automaticDropdown:{type:Boolean,default:!0},id:{type:definePropType([Array,String])},name:{type:definePropType([Array,String])},popperClass:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:definePropType([String,Object]),default:circle_close_default},editable:{type:Boolean,default:!0},prefixIcon:{type:definePropType([String,Object]),default:""},size:useSizeProp,readonly:Boolean,disabled:{type:Boolean,default:void 0},placeholder:{type:String,default:""},popperOptions:{type:definePropType(Object),default:()=>({})},modelValue:{type:definePropType([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:definePropType([Date,Array])},defaultTime:{type:definePropType([Date,Array])},isRange:Boolean,...disabledTimeListsProps,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:definePropType([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:definePropType(String),values:Ee,default:"bottom"},fallbackPlacements:{type:definePropType(Array),default:["bottom","top","right","left"]},...useEmptyValuesProps,...useAriaProps(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),timePickerRangeTriggerProps=buildProps({id:{type:definePropType(Array)},name:{type:definePropType(Array)},modelValue:{type:definePropType([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),_hoisted_1$1f=["id","name","placeholder","value","disabled"],_hoisted_2$R=["id","name","placeholder","value","disabled"],_sfc_main$22=defineComponent({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:timePickerRangeTriggerProps,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(n,{expose:t,emit:r}){const i=n,g=r,{formItem:$}=useFormItem(),{inputId:V}=useFormItemInputId(reactive({id:computed(()=>{var Ue;return(Ue=i.id)==null?void 0:Ue[0]})}),{formItemContext:$}),re=useAttrs(),ie=useNamespace("date"),ae=useNamespace("range"),oe=ref(),le=ref(),{wrapperRef:ue,isFocused:de}=useFocusController(oe,{disabled:computed(()=>i.disabled)}),he=Ue=>{g("click",Ue)},pe=Ue=>{g("mouseenter",Ue)},_e=Ue=>{g("mouseleave",Ue)},Ce=Ue=>{g("touchstart",Ue)},xe=Ue=>{g("startInput",Ue)},Ie=Ue=>{g("endInput",Ue)},Ne=Ue=>{g("startChange",Ue)},Oe=Ue=>{g("endChange",Ue)};return t({focus:()=>{var Ue;(Ue=oe.value)==null||Ue.focus()},blur:()=>{var Ue,Fe;(Ue=oe.value)==null||Ue.blur(),(Fe=le.value)==null||Fe.blur()}}),(Ue,Fe)=>(openBlock(),createElementBlock("div",{ref_key:"wrapperRef",ref:ue,class:normalizeClass([unref(ie).is("active",unref(de)),Ue.$attrs.class]),style:normalizeStyle$1(Ue.$attrs.style),onClick:he,onMouseenter:pe,onMouseleave:_e,onTouchstartPassive:Ce},[renderSlot(Ue.$slots,"prefix"),createBaseVNode("input",mergeProps(unref(re),{id:unref(V),ref_key:"inputRef",ref:oe,name:Ue.name&&Ue.name[0],placeholder:Ue.startPlaceholder,value:Ue.modelValue&&Ue.modelValue[0],class:unref(ae).b("input"),disabled:Ue.disabled,onInput:xe,onChange:Ne}),null,16,_hoisted_1$1f),renderSlot(Ue.$slots,"range-separator"),createBaseVNode("input",mergeProps(unref(re),{id:Ue.id&&Ue.id[1],ref_key:"endInputRef",ref:le,name:Ue.name&&Ue.name[1],placeholder:Ue.endPlaceholder,value:Ue.modelValue&&Ue.modelValue[1],class:unref(ae).b("input"),disabled:Ue.disabled,onInput:Ie,onChange:Oe}),null,16,_hoisted_2$R),renderSlot(Ue.$slots,"suffix")],38))}});var PickerRangeTrigger=_export_sfc(_sfc_main$22,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker-range-trigger.vue"]]);const _sfc_main$21=defineComponent({name:"Picker",__name:"picker",props:timePickerDefaultProps,emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(n,{expose:t,emit:r}){const i=n,g=r,$=useAttrs$1(),V=useNamespace("date"),re=useNamespace("input"),ie=useNamespace("range"),{formItem:ae}=useFormItem(),oe=inject(PICKER_POPPER_OPTIONS_INJECTION_KEY,{}),le=useEmptyValues(i,null),ue=ref(),de=ref(),he=ref(null);let pe=!1;const _e=useFormDisabled(),Ce=useCommonPicker(i,g),{parsedValue:xe,pickerActualVisible:Ie,userInput:Ne,pickerVisible:Oe,pickerOptions:$e,valueIsEmpty:Ve,emitInput:Ue,onPick:Fe,onSetPickerOption:ze,onCalendarChange:Pt,onPanelChange:qe}=Ce,{isFocused:Et,handleFocus:kt,handleBlur:At}=useFocusController(de,{disabled:_e,beforeFocus(){return i.readonly},afterFocus(){i.automaticDropdown&&(Oe.value=!0)},beforeBlur(Fn){var cr;return!pe&&((cr=ue.value)==null?void 0:cr.isFocusInsideContent(Fn))},afterBlur(){Bn(),Oe.value=!1,pe=!1,i.validateEvent&&(ae==null||ae.validate("blur").catch(Fn=>void 0))}}),Dt=ref(!1),Lt=computed(()=>[V.b("editor"),V.bm("editor",i.type),re.e("wrapper"),V.is("disabled",_e.value),V.is("active",Oe.value),ie.b("editor"),Gn?ie.bm("editor",Gn.value):"",$.class]),jt=computed(()=>[re.e("icon"),ie.e("close-icon"),On.value?"":ie.em("close-icon","hidden")]);watch(Oe,Fn=>{Fn?nextTick(()=>{Fn&&(he.value=i.modelValue)}):(Ne.value=null,nextTick(()=>{hn(i.modelValue)}))});const hn=(Fn,cr)=>{(cr||!valueEquals(Fn,he.value))&&(g(CHANGE_EVENT,Fn),cr&&(he.value=Fn),i.validateEvent&&(ae==null||ae.validate("change").catch(Un=>void 0)))},vn=Fn=>{g("keydown",Fn)},_n=computed(()=>de.value?Array.from(de.value.$el.querySelectorAll("input")):[]),wn=(Fn,cr,Un)=>{const gr=_n.value;gr.length&&(!Un||Un==="min"?(gr[0].setSelectionRange(Fn,cr),gr[0].focus()):Un==="max"&&(gr[1].setSelectionRange(Fn,cr),gr[1].focus()))},bn=()=>{Ie.value=!0},Cn=()=>{g("visible-change",!0)},Sn=()=>{Ie.value=!1,Oe.value=!1,g("visible-change",!1)},Tn=()=>{Oe.value=!0},En=()=>{Oe.value=!1},kn=computed(()=>{const Fn=zn(xe.value);return isArray$5(Ne.value)?[Ne.value[0]||Fn&&Fn[0]||"",Ne.value[1]||Fn&&Fn[1]||""]:Ne.value!==null?Ne.value:!An.value&&Ve.value||!Oe.value&&Ve.value?"":Fn?xn.value||Ln.value||Nn.value?Fn.join(", "):Fn:""}),$n=computed(()=>i.type.includes("time")),An=computed(()=>i.type.startsWith("time")),xn=computed(()=>i.type==="dates"),Ln=computed(()=>i.type==="months"),Nn=computed(()=>i.type==="years"),Pn=computed(()=>i.prefixIcon||($n.value?clock_default:calendar_default)),On=computed(()=>i.clearable&&!_e.value&&!i.readonly&&!Ve.value&&(Dt.value||Et.value)),Hn=Fn=>{i.readonly||_e.value||(On.value&&(Fn==null||Fn.stopPropagation(),$e.value.handleClear?$e.value.handleClear():Ue(le.valueOnClear.value),hn(le.valueOnClear.value,!0),Sn()),g("clear"))},Xn=async Fn=>{var cr;i.readonly||_e.value||(((cr=Fn.target)==null?void 0:cr.tagName)!=="INPUT"||Et.value||!i.automaticDropdown)&&(Oe.value=!0)},In=()=>{i.readonly||_e.value||!Ve.value&&i.clearable&&(Dt.value=!0)},or=()=>{Dt.value=!1},Qn=Fn=>{var cr;i.readonly||_e.value||(((cr=Fn.touches[0].target)==null?void 0:cr.tagName)!=="INPUT"||Et.value||!i.automaticDropdown)&&(Oe.value=!0)},Zn=computed(()=>i.type.includes("range")),Gn=useFormSize(),Rn=computed(()=>{var Fn,cr;return(cr=(Fn=unref(ue))==null?void 0:Fn.popperRef)==null?void 0:cr.contentRef}),Mn=onClickOutside(de,Fn=>{const cr=unref(Rn),Un=unrefElement(de);cr&&(Fn.target===cr||Fn.composedPath().includes(cr))||Fn.target===Un||Un&&Fn.composedPath().includes(Un)||(Oe.value=!1)});onBeforeUnmount(()=>{Mn==null||Mn()});const Bn=()=>{if(Ne.value){const Fn=qn(kn.value);Fn&&(jn(Fn)&&Ue(dayOrDaysToDate(Fn)),Ne.value=null)}Ne.value===""&&(Ue(le.valueOnClear.value),hn(le.valueOnClear.value,!0),Ne.value=null)},qn=Fn=>Fn?$e.value.parseUserInput(Fn):null,zn=Fn=>Fn?isArray$5(Fn)?Fn.map(Un=>Un.format(i.format)):Fn.format(i.format):null,jn=Fn=>$e.value.isValidValue(Fn),tr=async Fn=>{if(i.readonly||_e.value)return;const cr=getEventCode(Fn);if(vn(Fn),cr===EVENT_CODE.esc){Oe.value===!0&&(Oe.value=!1,Fn.preventDefault(),Fn.stopPropagation());return}if(cr===EVENT_CODE.down&&($e.value.handleFocusPicker&&(Fn.preventDefault(),Fn.stopPropagation()),Oe.value===!1&&(Oe.value=!0,await nextTick()),$e.value.handleFocusPicker)){$e.value.handleFocusPicker();return}if(cr===EVENT_CODE.tab){pe=!0;return}if(cr===EVENT_CODE.enter||cr===EVENT_CODE.numpadEnter){Oe.value?(Ne.value===null||Ne.value===""||jn(qn(kn.value)))&&(Bn(),Oe.value=!1):Oe.value=!0,Fn.preventDefault(),Fn.stopPropagation();return}if(Ne.value){Fn.stopPropagation();return}$e.value.handleKeydownInput&&$e.value.handleKeydownInput(Fn)},hr=Fn=>{Ne.value=Fn,Oe.value||(Oe.value=!0)},ir=Fn=>{const cr=Fn.target;Ne.value?Ne.value=[cr.value,Ne.value[1]]:Ne.value=[cr.value,null]},pr=Fn=>{const cr=Fn.target;Ne.value?Ne.value=[Ne.value[0],cr.value]:Ne.value=[null,cr.value]},rr=()=>{var Fn;const cr=Ne.value,Un=qn(cr&&cr[0]),gr=unref(xe);if(Un&&Un.isValid()){Ne.value=[zn(Un),((Fn=kn.value)==null?void 0:Fn[1])||null];const vr=[Un,gr&&(gr[1]||null)];jn(vr)&&(Ue(dayOrDaysToDate(vr)),Ne.value=null)}},lr=()=>{var Fn;const cr=unref(Ne),Un=qn(cr&&cr[1]),gr=unref(xe);if(Un&&Un.isValid()){Ne.value=[((Fn=unref(kn))==null?void 0:Fn[0])||null,zn(Un)];const vr=[gr&&gr[0],Un];jn(vr)&&(Ue(dayOrDaysToDate(vr)),Ne.value=null)}},Yn=()=>{var Fn;(Fn=de.value)==null||Fn.focus()},er=()=>{var Fn;(Fn=de.value)==null||Fn.blur()};return provide(PICKER_BASE_INJECTION_KEY,{props:i,emptyValues:le}),provide(ROOT_COMMON_PICKER_INJECTION_KEY,Ce),t({focus:Yn,blur:er,handleOpen:Tn,handleClose:En,onPick:Fe}),(Fn,cr)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"refPopper",ref:ue,visible:unref(Oe),effect:"light",pure:"",trigger:"click"},Fn.$attrs,{role:"dialog",teleported:"",transition:`${unref(V).namespace.value}-zoom-in-top`,"popper-class":[`${unref(V).namespace.value}-picker__popper`,Fn.popperClass],"popper-style":Fn.popperStyle,"popper-options":unref(oe),"fallback-placements":Fn.fallbackPlacements,"gpu-acceleration":!1,placement:Fn.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:bn,onShow:Cn,onHide:Sn}),{default:withCtx(()=>[Zn.value?(openBlock(),createBlock(PickerRangeTrigger,{key:1,id:Fn.id,ref_key:"inputRef",ref:de,"model-value":kn.value,name:Fn.name,disabled:unref(_e),readonly:!Fn.editable||Fn.readonly,"start-placeholder":Fn.startPlaceholder,"end-placeholder":Fn.endPlaceholder,class:normalizeClass(Lt.value),style:normalizeStyle$1(Fn.$attrs.style),"aria-label":Fn.ariaLabel,tabindex:Fn.tabindex,autocomplete:"off",role:"combobox",onClick:Xn,onFocus:unref(kt),onBlur:unref(At),onStartInput:ir,onStartChange:rr,onEndInput:pr,onEndChange:lr,onMousedown:Xn,onMouseenter:In,onMouseleave:or,onTouchstartPassive:Qn,onKeydown:tr},{prefix:withCtx(()=>[Pn.value?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(re).e("icon"),unref(ie).e("icon")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Pn.value)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)]),"range-separator":withCtx(()=>[renderSlot(Fn.$slots,"range-separator",{},()=>[createBaseVNode("span",{class:normalizeClass(unref(ie).b("separator"))},toDisplayString(Fn.rangeSeparator),3)])]),suffix:withCtx(()=>[Fn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(jt.value),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:Hn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Fn.clearIcon)))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(openBlock(),createBlock(unref(ElInput),{key:0,id:Fn.id,ref_key:"inputRef",ref:de,"container-role":"combobox","model-value":kn.value,name:Fn.name,size:unref(Gn),disabled:unref(_e),placeholder:Fn.placeholder,class:normalizeClass([unref(V).b("editor"),unref(V).bm("editor",Fn.type),unref(V).is("focus",unref(Oe)),Fn.$attrs.class]),style:normalizeStyle$1(Fn.$attrs.style),readonly:!Fn.editable||Fn.readonly||xn.value||Ln.value||Nn.value||Fn.type==="week","aria-label":Fn.ariaLabel,tabindex:Fn.tabindex,"validate-event":!1,onInput:hr,onFocus:unref(kt),onBlur:unref(At),onKeydown:tr,onChange:Bn,onMousedown:Xn,onMouseenter:In,onMouseleave:or,onTouchstartPassive:Qn,onClick:cr[0]||(cr[0]=withModifiers(()=>{},["stop"]))},{prefix:withCtx(()=>[Pn.value?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(re).e("icon")),onMousedown:withModifiers(Xn,["prevent"]),onTouchstartPassive:Qn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Pn.value)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)]),suffix:withCtx(()=>[On.value&&Fn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(`${unref(re).e("icon")} clear-icon`),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:Hn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Fn.clearIcon)))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur"]))]),content:withCtx(()=>[renderSlot(Fn.$slots,"default",{visible:unref(Oe),actualVisible:unref(Ie),parsedValue:unref(xe),format:Fn.format,dateFormat:Fn.dateFormat,timeFormat:Fn.timeFormat,unlinkPanels:Fn.unlinkPanels,type:Fn.type,defaultValue:Fn.defaultValue,showNow:Fn.showNow,showConfirm:Fn.showConfirm,showFooter:Fn.showFooter,showWeekNumber:Fn.showWeekNumber,onPick:cr[1]||(cr[1]=(...Un)=>unref(Fe)&&unref(Fe)(...Un)),onSelectRange:wn,onSetPickerOption:cr[2]||(cr[2]=(...Un)=>unref(ze)&&unref(ze)(...Un)),onCalendarChange:cr[3]||(cr[3]=(...Un)=>unref(Pt)&&unref(Pt)(...Un)),onClear:Hn,onPanelChange:cr[4]||(cr[4]=(...Un)=>unref(qe)&&unref(qe)(...Un)),onMousedown:cr[5]||(cr[5]=withModifiers(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}});var CommonPicker=_export_sfc(_sfc_main$21,[["__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:n,getAvailableMinutes:t,getAvailableSeconds:r})=>{const i=(V,re,ie,ae)=>{const oe={hour:n,minute:t,second:r};let le=V;return["hour","minute","second"].forEach(ue=>{if(oe[ue]){let de;const he=oe[ue];switch(ue){case"minute":{de=he(le.hour(),re,ae);break}case"second":{de=he(le.hour(),le.minute(),re,ae);break}default:{de=he(re,ae);break}}if(de!=null&&de.length&&!de.includes(le[ue]())){const pe=ie?0:de.length-1;le=le[ue](de[pe])}}}),le},g={};return{timePickerOptions:g,getAvailableTime:i,onSetOption:([V,re])=>{g[V]=re}}},makeAvailableArr=n=>{const t=(i,g)=>i||g,r=i=>i!==!0;return n.map(t).filter(r)},getTimeLists=(n,t,r)=>({getHoursList:(V,re)=>makeList(24,n&&(()=>n==null?void 0:n(V,re))),getMinutesList:(V,re,ie)=>makeList(60,t&&(()=>t==null?void 0:t(V,re,ie))),getSecondsList:(V,re,ie,ae)=>makeList(60,r&&(()=>r==null?void 0:r(V,re,ie,ae)))}),buildAvailableTimeSlotGetter=(n,t,r)=>{const{getHoursList:i,getMinutesList:g,getSecondsList:$}=getTimeLists(n,t,r);return{getAvailableHours:(ae,oe)=>makeAvailableArr(i(ae,oe)),getAvailableMinutes:(ae,oe,le)=>makeAvailableArr(g(ae,oe,le)),getAvailableSeconds:(ae,oe,le,ue)=>makeAvailableArr($(ae,oe,le,ue))}},useOldValue=n=>{const t=ref(n.parsedValue);return watch(()=>n.visible,r=>{r||(t.value=n.parsedValue)}),t},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}),REPEAT_INTERVAL=100,REPEAT_DELAY=600,SCOPE$4="_RepeatClick",vRepeatClick={beforeMount(n,t){const r=t.value,{interval:i=REPEAT_INTERVAL,delay:g=REPEAT_DELAY}=isFunction$4(r)?{}:r;let $,V;const re=()=>isFunction$4(r)?r():r.handler(),ie=()=>{V&&(clearTimeout(V),V=void 0),$&&(clearInterval($),$=void 0)},ae=oe=>{oe.button===0&&(ie(),re(),document.addEventListener("mouseup",ie,{once:!0}),V=setTimeout(()=>{$=setInterval(()=>{re()},i)},g))};n[SCOPE$4]={start:ae,clear:ie},n.addEventListener("mousedown",ae)},unmounted(n){if(!n[SCOPE$4])return;const{start:t,clear:r}=n[SCOPE$4];t&&n.removeEventListener("mousedown",t),r&&(r(),document.removeEventListener("mouseup",r)),n[SCOPE$4]=null}},_hoisted_1$1e=["onClick"],_hoisted_2$Q=["onMouseenter"],_sfc_main$20=defineComponent({__name:"basic-time-spinner",props:basicTimeSpinnerProps,emits:[CHANGE_EVENT,"select-range","set-option"],setup(n,{emit:t}){const r=n,i=inject(PICKER_BASE_INJECTION_KEY),{isRange:g,format:$}=i.props,V=t,re=useNamespace("time"),{getHoursList:ie,getMinutesList:ae,getSecondsList:oe}=getTimeLists(r.disabledHours,r.disabledMinutes,r.disabledSeconds);let le=!1;const ue=ref(),de=ref(),he=ref(),pe=ref(),_e={hours:de,minutes:he,seconds:pe},Ce=computed(()=>r.showSeconds?timeUnits$1:timeUnits$1.slice(0,2)),xe=computed(()=>{const{spinnerDate:bn}=r,Cn=bn.hour(),Sn=bn.minute(),Tn=bn.second();return{hours:Cn,minutes:Sn,seconds:Tn}}),Ie=computed(()=>{const{hours:bn,minutes:Cn}=unref(xe),{role:Sn,spinnerDate:Tn}=r,En=g?void 0:Tn;return{hours:ie(Sn,En),minutes:ae(bn,Sn,En),seconds:oe(bn,Cn,Sn,En)}}),Ne=computed(()=>{const{hours:bn,minutes:Cn,seconds:Sn}=unref(xe);return{hours:buildTimeList(bn,23),minutes:buildTimeList(Cn,59),seconds:buildTimeList(Sn,59)}}),Oe=debounce(bn=>{le=!1,Ue(bn)},200),$e=bn=>{if(!!!r.amPmMode)return"";const Sn=r.amPmMode==="A";let Tn=bn<12?" am":" pm";return Sn&&(Tn=Tn.toUpperCase()),Tn},Ve=bn=>{let Cn=[0,0];const Sn=$||DEFAULT_FORMATS_TIME,Tn=Sn.indexOf("HH"),En=Sn.indexOf("mm"),kn=Sn.indexOf("ss");switch(bn){case"hours":Tn!==-1&&(Cn=[Tn,Tn+2]);break;case"minutes":En!==-1&&(Cn=[En,En+2]);break;case"seconds":kn!==-1&&(Cn=[kn,kn+2]);break}const[$n,An]=Cn;V("select-range",$n,An),ue.value=bn},Ue=bn=>{Pt(bn,unref(xe)[bn])},Fe=()=>{Ue("hours"),Ue("minutes"),Ue("seconds")},ze=bn=>bn.querySelector(`.${re.namespace.value}-scrollbar__wrap`),Pt=(bn,Cn)=>{if(r.arrowControl)return;const Sn=unref(_e[bn]);Sn&&Sn.$el&&(ze(Sn.$el).scrollTop=Math.max(0,Cn*qe(bn)))},qe=bn=>{const Cn=unref(_e[bn]),Sn=Cn==null?void 0:Cn.$el.querySelector("li");return Sn&&Number.parseFloat(getStyle$1(Sn,"height"))||0},Et=()=>{At(1)},kt=()=>{At(-1)},At=bn=>{ue.value||Ve("hours");const Cn=ue.value,Sn=unref(xe)[Cn],Tn=ue.value==="hours"?24:60,En=Dt(Cn,Sn,bn,Tn);Lt(Cn,En),Pt(Cn,En),nextTick(()=>Ve(Cn))},Dt=(bn,Cn,Sn,Tn)=>{let En=(Cn+Sn+Tn)%Tn;const kn=unref(Ie)[bn];for(;kn[En]&&En!==Cn;)En=(En+Sn+Tn)%Tn;return En},Lt=(bn,Cn)=>{if(unref(Ie)[bn][Cn])return;const{hours:En,minutes:kn,seconds:$n}=unref(xe);let An;switch(bn){case"hours":An=r.spinnerDate.hour(Cn).minute(kn).second($n);break;case"minutes":An=r.spinnerDate.hour(En).minute(Cn).second($n);break;case"seconds":An=r.spinnerDate.hour(En).minute(kn).second(Cn);break}V(CHANGE_EVENT,An)},jt=(bn,{value:Cn,disabled:Sn})=>{Sn||(Lt(bn,Cn),Ve(bn),Pt(bn,Cn))},hn=bn=>{const Cn=unref(_e[bn]);if(!Cn)return;le=!0,Oe(bn);const Sn=Math.min(Math.round((ze(Cn.$el).scrollTop-(vn(bn)*.5-10)/qe(bn)+3)/qe(bn)),bn==="hours"?23:59);Lt(bn,Sn)},vn=bn=>unref(_e[bn]).$el.offsetHeight,_n=()=>{const bn=Cn=>{const Sn=unref(_e[Cn]);Sn&&Sn.$el&&(ze(Sn.$el).onscroll=()=>{hn(Cn)})};bn("hours"),bn("minutes"),bn("seconds")};onMounted(()=>{nextTick(()=>{!r.arrowControl&&_n(),Fe(),r.role==="start"&&Ve("hours")})});const wn=(bn,Cn)=>{_e[Cn].value=bn??void 0};return V("set-option",[`${r.role}_scrollDown`,At]),V("set-option",[`${r.role}_emitSelectRange`,Ve]),watch(()=>r.spinnerDate,()=>{le||Fe()}),(bn,Cn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(re).b("spinner"),{"has-seconds":bn.showSeconds}])},[bn.arrowControl?createCommentVNode("v-if",!0):(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(Ce.value,Sn=>(openBlock(),createBlock(unref(ElScrollbar),{key:Sn,ref_for:!0,ref:Tn=>wn(Tn,Sn),class:normalizeClass(unref(re).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":unref(re).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:Tn=>Ve(Sn),onMousemove:Tn=>Ue(Sn)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ie.value[Sn],(Tn,En)=>(openBlock(),createElementBlock("li",{key:En,class:normalizeClass([unref(re).be("spinner","item"),unref(re).is("active",En===xe.value[Sn]),unref(re).is("disabled",Tn)]),onClick:kn=>jt(Sn,{value:En,disabled:Tn})},[Sn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(("0"+(bn.amPmMode?En%12||12:En)).slice(-2))+toDisplayString($e(En)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(("0"+En).slice(-2)),1)],64))],10,_hoisted_1$1e))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),bn.arrowControl?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(Ce.value,Sn=>(openBlock(),createElementBlock("div",{key:Sn,class:normalizeClass([unref(re).be("spinner","wrapper"),unref(re).is("arrow")]),onMouseenter:Tn=>Ve(Sn)},[withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-up",unref(re).be("spinner","arrow")])},{default:withCtx(()=>[createVNode$1(unref(arrow_up_default))]),_:1},8,["class"])),[[unref(vRepeatClick),kt]]),withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-down",unref(re).be("spinner","arrow")])},{default:withCtx(()=>[createVNode$1(unref(arrow_down_default))]),_:1},8,["class"])),[[unref(vRepeatClick),Et]]),createBaseVNode("ul",{class:normalizeClass(unref(re).be("spinner","list"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ne.value[Sn],(Tn,En)=>(openBlock(),createElementBlock("li",{key:En,class:normalizeClass([unref(re).be("spinner","item"),unref(re).is("active",Tn===xe.value[Sn]),unref(re).is("disabled",Ie.value[Sn][Tn])])},[unref(isNumber$2)(Tn)?(openBlock(),createElementBlock(Fragment,{key:0},[Sn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(("0"+(bn.amPmMode?Tn%12||12:Tn)).slice(-2))+toDisplayString($e(Tn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(("0"+Tn).slice(-2)),1)],64))],64)):createCommentVNode("v-if",!0)],2))),128))],2)],42,_hoisted_2$Q))),128)):createCommentVNode("v-if",!0)],2))}});var TimeSpinner=_export_sfc(_sfc_main$20,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const _sfc_main$1$=defineComponent({__name:"panel-time-pick",props:panelTimePickerProps,emits:["pick","select-range","set-picker-option"],setup(n,{emit:t}){const r=n,i=t,g=inject(PICKER_BASE_INJECTION_KEY),{arrowControl:$,disabledHours:V,disabledMinutes:re,disabledSeconds:ie,defaultValue:ae}=g.props,{getAvailableHours:oe,getAvailableMinutes:le,getAvailableSeconds:ue}=buildAvailableTimeSlotGetter(V,re,ie),de=useNamespace("time"),{t:he,lang:pe}=useLocale(),_e=ref([0,2]),Ce=useOldValue(r),xe=computed(()=>isUndefined$1(r.actualVisible)?`${de.namespace.value}-zoom-in-top`:""),Ie=computed(()=>r.format.includes("ss")),Ne=computed(()=>r.format.includes("A")?"A":r.format.includes("a")?"a":""),Oe=jt=>{const hn=dayjs(jt).locale(pe.value),vn=At(hn);return hn.isSame(vn)},$e=()=>{const jt=Ce.value;i("pick",jt,!1),nextTick(()=>{Ce.value=jt})},Ve=(jt=!1,hn=!1)=>{hn||i("pick",r.parsedValue,jt)},Ue=jt=>{if(!r.visible)return;const hn=At(jt).millisecond(0);i("pick",hn,!0)},Fe=(jt,hn)=>{i("select-range",jt,hn),_e.value=[jt,hn]},ze=jt=>{const hn=r.format,vn=hn.indexOf("HH"),_n=hn.indexOf("mm"),wn=hn.indexOf("ss"),bn=[],Cn=[];vn!==-1&&(bn.push(vn),Cn.push("hours")),_n!==-1&&(bn.push(_n),Cn.push("minutes")),wn!==-1&&Ie.value&&(bn.push(wn),Cn.push("seconds"));const Tn=(bn.indexOf(_e.value[0])+jt+bn.length)%bn.length;qe.start_emitSelectRange(Cn[Tn])},Pt=jt=>{const hn=getEventCode(jt),{left:vn,right:_n,up:wn,down:bn}=EVENT_CODE;if([vn,_n].includes(hn)){ze(hn===vn?-1:1),jt.preventDefault();return}if([wn,bn].includes(hn)){const Cn=hn===wn?-1:1;qe.start_scrollDown(Cn),jt.preventDefault();return}},{timePickerOptions:qe,onSetOption:Et,getAvailableTime:kt}=useTimePanel({getAvailableHours:oe,getAvailableMinutes:le,getAvailableSeconds:ue}),At=jt=>kt(jt,r.datetimeRole||"",!0),Dt=jt=>jt?dayjs(jt,r.format).locale(pe.value):null,Lt=()=>dayjs(ae).locale(pe.value);return i("set-picker-option",["isValidValue",Oe]),i("set-picker-option",["parseUserInput",Dt]),i("set-picker-option",["handleKeydownInput",Pt]),i("set-picker-option",["getRangeAvailableTime",At]),i("set-picker-option",["getDefaultValue",Lt]),(jt,hn)=>(openBlock(),createBlock(Transition,{name:xe.value},{default:withCtx(()=>[jt.actualVisible||jt.visible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(de).b("panel"))},[createBaseVNode("div",{class:normalizeClass([unref(de).be("panel","content"),{"has-seconds":Ie.value}])},[createVNode$1(TimeSpinner,{ref:"spinner",role:jt.datetimeRole||"start","arrow-control":unref($),"show-seconds":Ie.value,"am-pm-mode":Ne.value,"spinner-date":jt.parsedValue,"disabled-hours":unref(V),"disabled-minutes":unref(re),"disabled-seconds":unref(ie),onChange:Ue,onSetOption:unref(Et),onSelectRange:Fe},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(de).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(de).be("panel","btn"),"cancel"]),onClick:$e},toDisplayString(unref(he)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(de).be("panel","btn"),"confirm"]),onClick:hn[0]||(hn[0]=vn=>Ve())},toDisplayString(unref(he)("el.datepicker.confirm")),3)],2)],2)):createCommentVNode("v-if",!0)]),_:1},8,["name"]))}});var TimePickPanel=_export_sfc(_sfc_main$1$,[["__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$1d=["disabled"],_sfc_main$1_=defineComponent({__name:"panel-time-range",props:panelTimeRangeProps,emits:["pick","select-range","set-picker-option"],setup(n,{emit:t}){const r=n,i=t,g=(xn,Ln)=>{const Nn=[];for(let Pn=xn;Pn<=Ln;Pn++)Nn.push(Pn);return Nn},{t:$,lang:V}=useLocale(),re=useNamespace("time"),ie=useNamespace("picker"),ae=inject(PICKER_BASE_INJECTION_KEY),{arrowControl:oe,disabledHours:le,disabledMinutes:ue,disabledSeconds:de,defaultValue:he}=ae.props,pe=computed(()=>[re.be("range-picker","body"),re.be("panel","content"),re.is("arrow",oe),Oe.value?"has-seconds":""]),_e=computed(()=>[re.be("range-picker","body"),re.be("panel","content"),re.is("arrow",oe),Oe.value?"has-seconds":""]),Ce=computed(()=>r.parsedValue[0]),xe=computed(()=>r.parsedValue[1]),Ie=useOldValue(r),Ne=()=>{const xn=Ie.value;i("pick",xn,!1),nextTick(()=>{Ie.value=xn})},Oe=computed(()=>r.format.includes("ss")),$e=computed(()=>r.format.includes("A")?"A":r.format.includes("a")?"a":""),Ve=(xn=!1)=>{i("pick",[Ce.value,xe.value],xn)},Ue=xn=>{Pt(xn.millisecond(0),xe.value)},Fe=xn=>{Pt(Ce.value,xn.millisecond(0))},ze=xn=>{const Ln=xn.map(Pn=>dayjs(Pn).locale(V.value)),Nn=wn(Ln);return Ln[0].isSame(Nn[0])&&Ln[1].isSame(Nn[1])},Pt=(xn,Ln)=>{r.visible&&i("pick",[xn,Ln],!0)},qe=computed(()=>Ce.value>xe.value),Et=ref([0,2]),kt=(xn,Ln)=>{i("select-range",xn,Ln,"min"),Et.value=[xn,Ln]},At=computed(()=>Oe.value?11:8),Dt=(xn,Ln)=>{i("select-range",xn,Ln,"max");const Nn=unref(At);Et.value=[xn+Nn,Ln+Nn]},Lt=xn=>{const Ln=Oe.value?[0,3,6,11,14,17]:[0,3,8,11],Nn=["hours","minutes"].concat(Oe.value?["seconds"]:[]),On=(Ln.indexOf(Et.value[0])+xn+Ln.length)%Ln.length,Hn=Ln.length/2;On{const Ln=getEventCode(xn),{left:Nn,right:Pn,up:On,down:Hn}=EVENT_CODE;if([Nn,Pn].includes(Ln)){Lt(Ln===Nn?-1:1),xn.preventDefault();return}if([On,Hn].includes(Ln)){const Xn=Ln===On?-1:1,In=Et.value[0]{const Nn=le?le(xn):[],Pn=xn==="start",Hn=(Ln||(Pn?xe.value:Ce.value)).hour(),Xn=Pn?g(Hn+1,23):g(0,Hn-1);return union$1(Nn,Xn)},vn=(xn,Ln,Nn)=>{const Pn=ue?ue(xn,Ln):[],On=Ln==="start",Hn=Nn||(On?xe.value:Ce.value),Xn=Hn.hour();if(xn!==Xn)return Pn;const In=Hn.minute(),or=On?g(In+1,59):g(0,In-1);return union$1(Pn,or)},_n=(xn,Ln,Nn,Pn)=>{const On=de?de(xn,Ln,Nn):[],Hn=Nn==="start",Xn=Pn||(Hn?xe.value:Ce.value),In=Xn.hour(),or=Xn.minute();if(xn!==In||Ln!==or)return On;const Qn=Xn.second(),Zn=Hn?g(Qn+1,59):g(0,Qn-1);return union$1(On,Zn)},wn=([xn,Ln])=>[En(xn,"start",!0,Ln),En(Ln,"end",!1,xn)],{getAvailableHours:bn,getAvailableMinutes:Cn,getAvailableSeconds:Sn}=buildAvailableTimeSlotGetter(hn,vn,_n),{timePickerOptions:Tn,getAvailableTime:En,onSetOption:kn}=useTimePanel({getAvailableHours:bn,getAvailableMinutes:Cn,getAvailableSeconds:Sn}),$n=xn=>xn?isArray$5(xn)?xn.map(Ln=>dayjs(Ln,r.format).locale(V.value)):dayjs(xn,r.format).locale(V.value):null,An=()=>{if(isArray$5(he))return he.map(Ln=>dayjs(Ln).locale(V.value));const xn=dayjs(he).locale(V.value);return[xn,xn.add(60,"m")]};return i("set-picker-option",["parseUserInput",$n]),i("set-picker-option",["isValidValue",ze]),i("set-picker-option",["handleKeydownInput",jt]),i("set-picker-option",["getDefaultValue",An]),i("set-picker-option",["getRangeAvailableTime",wn]),(xn,Ln)=>xn.actualVisible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(re).b("range-picker"),unref(ie).b("panel")])},[createBaseVNode("div",{class:normalizeClass(unref(re).be("range-picker","content"))},[createBaseVNode("div",{class:normalizeClass(unref(re).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(re).be("range-picker","header"))},toDisplayString(unref($)("el.datepicker.startTime")),3),createBaseVNode("div",{class:normalizeClass(pe.value)},[createVNode$1(TimeSpinner,{ref:"minSpinner",role:"start","show-seconds":Oe.value,"am-pm-mode":$e.value,"arrow-control":unref(oe),"spinner-date":Ce.value,"disabled-hours":hn,"disabled-minutes":vn,"disabled-seconds":_n,onChange:Ue,onSetOption:unref(kn),onSelectRange:kt},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),createBaseVNode("div",{class:normalizeClass(unref(re).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(re).be("range-picker","header"))},toDisplayString(unref($)("el.datepicker.endTime")),3),createBaseVNode("div",{class:normalizeClass(_e.value)},[createVNode$1(TimeSpinner,{ref:"maxSpinner",role:"end","show-seconds":Oe.value,"am-pm-mode":$e.value,"arrow-control":unref(oe),"spinner-date":xe.value,"disabled-hours":hn,"disabled-minutes":vn,"disabled-seconds":_n,onChange:Fe,onSetOption:unref(kn),onSelectRange:Dt},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),createBaseVNode("div",{class:normalizeClass(unref(re).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(re).be("panel","btn"),"cancel"]),onClick:Ln[0]||(Ln[0]=Nn=>Ne())},toDisplayString(unref($)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(re).be("panel","btn"),"confirm"]),disabled:qe.value,onClick:Ln[1]||(Ln[1]=Nn=>Ve())},toDisplayString(unref($)("el.datepicker.confirm")),11,_hoisted_1$1d)],2)],2)):createCommentVNode("v-if",!0)}});var TimeRangePanel=_export_sfc(_sfc_main$1_,[["__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:Boolean},emits:[UPDATE_MODEL_EVENT],setup(n,t){const r=ref(),[i,g]=n.isRange?["timerange",TimeRangePanel]:["time",TimePickPanel],$=V=>t.emit(UPDATE_MODEL_EVENT,V);return provide(PICKER_POPPER_OPTIONS_INJECTION_KEY,n.popperOptions),t.expose({focus:()=>{var V;(V=r.value)==null||V.focus()},blur:()=>{var V;(V=r.value)==null||V.blur()},handleOpen:()=>{var V;(V=r.value)==null||V.handleOpen()},handleClose:()=>{var V;(V=r.value)==null||V.handleClose()}}),()=>{var V;const re=(V=n.format)!=null?V:DEFAULT_FORMATS_TIME;return createVNode$1(CommonPicker,mergeProps(n,{ref:r,type:i,format:re,"onUpdate:modelValue":$}),{default:ie=>createVNode$1(g,ie,null)})}}});const ElTimePicker=withInstall(TimePicker);var advancedFormat$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){return function(r,i){var g=i.prototype,$=g.format;g.format=function(V){var re=this,ie=this.$locale();if(!this.isValid())return $.bind(this)(V);var ae=this.$utils(),oe=(V||"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(le){switch(le){case"Q":return Math.ceil((re.$M+1)/3);case"Do":return ie.ordinal(re.$D);case"gggg":return re.weekYear();case"GGGG":return re.isoWeekYear();case"wo":return ie.ordinal(re.week(),"W");case"w":case"ww":return ae.s(re.week(),le==="w"?1:2,"0");case"W":case"WW":return ae.s(re.isoWeek(),le==="W"?1:2,"0");case"k":case"kk":return ae.s(String(re.$H===0?24:re.$H),le==="k"?1:2,"0");case"X":return Math.floor(re.$d.getTime()/1e3);case"x":return re.$d.getTime();case"z":return"["+re.offsetName()+"]";case"zzz":return"["+re.offsetName("long")+"]";default:return le}});return $.bind(this)(oe)}}})})(advancedFormat$1);var advancedFormatExports=advancedFormat$1.exports;const advancedFormat=getDefaultExportFromCjs(advancedFormatExports);var weekOfYear$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){var r="week",i="year";return function(g,$,V){var re=$.prototype;re.week=function(ie){if(ie===void 0&&(ie=null),ie!==null)return this.add(7*(ie-this.week()),"day");var ae=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var oe=V(this).startOf(i).add(1,i).date(ae),le=V(this).endOf(r);if(oe.isBefore(le))return 1}var ue=V(this).startOf(i).date(ae).startOf(r).subtract(1,"millisecond"),de=this.diff(ue,r,!0);return de<0?V(this).startOf("week").week():Math.ceil(de)},re.weeks=function(ie){return ie===void 0&&(ie=null),this.week(ie)}}})})(weekOfYear$1);var weekOfYearExports=weekOfYear$1.exports;const weekOfYear=getDefaultExportFromCjs(weekOfYearExports);var weekYear$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){return function(r,i){i.prototype.weekYear=function(){var g=this.month(),$=this.week(),V=this.year();return $===1&&g===11?V+1:g===0&&$>=52?V-1:V}}})})(weekYear$1);var weekYearExports=weekYear$1.exports;const weekYear=getDefaultExportFromCjs(weekYearExports);var dayOfYear$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){return function(r,i,g){i.prototype.dayOfYear=function($){var V=Math.round((g(this).startOf("day")-g(this).startOf("year"))/864e5)+1;return $==null?V:this.add($-V,"day")}}})})(dayOfYear$1);var dayOfYearExports=dayOfYear$1.exports;const dayOfYear=getDefaultExportFromCjs(dayOfYearExports);var isSameOrAfter$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){return function(r,i){i.prototype.isSameOrAfter=function(g,$){return this.isSame(g,$)||this.isAfter(g,$)}}})})(isSameOrAfter$1);var isSameOrAfterExports=isSameOrAfter$1.exports;const isSameOrAfter=getDefaultExportFromCjs(isSameOrAfterExports);var isSameOrBefore$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){return function(r,i){i.prototype.isSameOrBefore=function(g,$){return this.isSame(g,$)||this.isBefore(g,$)}}})})(isSameOrBefore$1);var isSameOrBeforeExports=isSameOrBefore$1.exports;const isSameOrBefore=getDefaultExportFromCjs(isSameOrBeforeExports),datePickerPanelProps=buildProps({valueFormat:String,dateFormat:String,timeFormat:String,disabled:{type:Boolean,default:void 0},modelValue:{type:definePropType([Date,Array,String,Number]),default:""},defaultValue:{type:definePropType([Date,Array])},defaultTime:{type:definePropType([Date,Array])},isRange:Boolean,...disabledTimeListsProps,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:definePropType(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}}),ROOT_PICKER_INJECTION_KEY=Symbol("rootPickerContextKey"),ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY="ElIsDefaultFormat",selectionModes=["date","dates","year","years","month","months","week","range"],datePickerSharedProps=buildProps({cellClassName:{type:definePropType(Function)},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})},disabled:Boolean}),panelSharedProps=buildProps({type:{type:definePropType(String),required:!0,values:datePickTypes},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean,editable:{type:Boolean,default:!0}}),panelRangeSharedProps=buildProps({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:definePropType(Array)}}),selectionModeWithDefault=n=>({type:String,values:selectionModes,default:n}),panelDatePickProps=buildProps({...panelSharedProps,parsedValue:{type:definePropType([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),isValidRange=n=>{if(!isArray$5(n))return!1;const[t,r]=n;return dayjs.isDayjs(t)&&dayjs.isDayjs(r)&&dayjs(t).isValid()&&dayjs(r).isValid()&&t.isSameOrBefore(r)},getDefaultValue=(n,{lang:t,step:r=1,unit:i,unlinkPanels:g})=>{let $;if(isArray$5(n)){let[V,re]=n.map(ie=>dayjs(ie).locale(t));return g||(re=V.add(r,i)),[V,re]}else n?$=dayjs(n):$=dayjs();return $=$.locale(t),[$,$.add(r,i)]},buildPickerTable=(n,t,{columnIndexOffset:r,startDate:i,nextEndDate:g,now:$,unit:V,relativeDateGetter:re,setCellMetadata:ie,setRowMetadata:ae})=>{for(let oe=0;oe{const g=dayjs().locale(i).startOf("month").month(r).year(t).hour(n.hour()).minute(n.minute()).second(n.second()),$=g.daysInMonth();return rangeArr($).map(V=>g.add(V,"day").toDate())},getValidDateOfMonth=(n,t,r,i,g)=>{const $=dayjs().year(t).month(r).startOf("month").hour(n.hour()).minute(n.minute()).second(n.second()),V=datesInMonth(n,t,r,i).find(re=>!(g!=null&&g(re)));return V?dayjs(V).locale(i):$.locale(i)},getValidDateOfYear=(n,t,r)=>{const i=n.year();if(!(r!=null&&r(n.toDate())))return n.locale(t);const g=n.month();if(!datesInMonth(n,i,g,t).every(r))return getValidDateOfMonth(n,i,g,t,r);for(let $=0;$<12;$++)if(!datesInMonth(n,i,$,t).every(r))return getValidDateOfMonth(n,i,$,t,r);return n},correctlyParseUserInput=(n,t,r,i)=>{if(isArray$5(n))return n.map(g=>correctlyParseUserInput(g,t,r,i));if(isString$2(n)){const g=i!=null&&i.value?dayjs(n):dayjs(n,t);if(!g.isValid())return g}return dayjs(n,t).locale(r)},basicDateTableProps=buildProps({...datePickerSharedProps,showWeekNumber:Boolean,selectionMode:selectionModeWithDefault("date")}),basicDateTableEmits=["changerange","pick","select"],isNormalDay=(n="")=>["normal","today"].includes(n),useBasicDateTable=(n,t)=>{const{lang:r}=useLocale(),i=ref(),g=ref(),$=ref(),V=ref(),re=ref([[],[],[],[],[],[]]);let ie=!1;const ae=n.date.$locale().weekStart||7,oe=n.date.locale("en").localeData().weekdaysShort().map(hn=>hn.toLowerCase()),le=computed(()=>ae>3?7-ae:-ae),ue=computed(()=>{const hn=n.date.startOf("month");return hn.subtract(hn.day()||7,"day")}),de=computed(()=>oe.concat(oe).slice(ae,ae+7)),he=computed(()=>flatten$1(unref(Ne)).some(hn=>hn.isCurrent)),pe=computed(()=>{const hn=n.date.startOf("month"),vn=hn.day()||7,_n=hn.daysInMonth(),wn=hn.subtract(1,"month").daysInMonth();return{startOfMonthDay:vn,dateCountOfMonth:_n,dateCountOfLastMonth:wn}}),_e=computed(()=>n.selectionMode==="dates"?castArray(n.parsedValue):[]),Ce=(hn,{count:vn,rowIndex:_n,columnIndex:wn})=>{const{startOfMonthDay:bn,dateCountOfMonth:Cn,dateCountOfLastMonth:Sn}=unref(pe),Tn=unref(le);if(_n>=0&&_n<=1){const En=bn+Tn<0?7+bn+Tn:bn+Tn;if(wn+_n*7>=En)return hn.text=vn,!0;hn.text=Sn-(En-wn%7)+1+_n*7,hn.type="prev-month"}else return vn<=Cn?hn.text=vn:(hn.text=vn-Cn,hn.type="next-month"),!0;return!1},xe=(hn,{columnIndex:vn,rowIndex:_n},wn)=>{const{disabledDate:bn,cellClassName:Cn}=n,Sn=unref(_e),Tn=Ce(hn,{count:wn,rowIndex:_n,columnIndex:vn}),En=hn.dayjs.toDate();return hn.selected=Sn.find(kn=>kn.isSame(hn.dayjs,"day")),hn.isSelected=!!hn.selected,hn.isCurrent=$e(hn),hn.disabled=bn==null?void 0:bn(En),hn.customClass=Cn==null?void 0:Cn(En),Tn},Ie=hn=>{if(n.selectionMode==="week"){const[vn,_n]=n.showWeekNumber?[1,7]:[0,6],wn=jt(hn[vn+1]);hn[vn].inRange=wn,hn[vn].start=wn,hn[_n].inRange=wn,hn[_n].end=wn}},Ne=computed(()=>{const{minDate:hn,maxDate:vn,rangeState:_n,showWeekNumber:wn}=n,bn=unref(le),Cn=unref(re),Sn="day";let Tn=1;if(buildPickerTable({row:6,column:7},Cn,{startDate:hn,columnIndexOffset:wn?1:0,nextEndDate:_n.endDate||vn||_n.selecting&&hn||null,now:dayjs().locale(unref(r)).startOf(Sn),unit:Sn,relativeDateGetter:En=>unref(ue).add(En-bn,Sn),setCellMetadata:(...En)=>{xe(...En,Tn)&&(Tn+=1)},setRowMetadata:Ie}),wn)for(let En=0;En<6;En++)Cn[En][1].dayjs&&(Cn[En][0]={type:"week",text:Cn[En][1].dayjs.week()});return Cn});watch(()=>n.date,async()=>{var hn;(hn=unref(i))!=null&&hn.contains(document.activeElement)&&(await nextTick(),await Oe())});const Oe=async()=>{var hn;return(hn=unref(g))==null?void 0:hn.focus()},$e=hn=>n.selectionMode==="date"&&isNormalDay(hn.type)&&Ve(hn,n.parsedValue),Ve=(hn,vn)=>vn?dayjs(vn).locale(unref(r)).isSame(n.date.date(Number(hn.text)),"day"):!1,Ue=(hn,vn)=>{const _n=hn*7+(vn-(n.showWeekNumber?1:0))-unref(le);return unref(ue).add(_n,"day")},Fe=hn=>{var vn;if(!n.rangeState.selecting)return;let _n=hn.target;if(_n.tagName==="SPAN"&&(_n=(vn=_n.parentNode)==null?void 0:vn.parentNode),_n.tagName==="DIV"&&(_n=_n.parentNode),_n.tagName!=="TD")return;const wn=_n.parentNode.rowIndex-1,bn=_n.cellIndex;unref(Ne)[wn][bn].disabled||(wn!==unref($)||bn!==unref(V))&&($.value=wn,V.value=bn,t("changerange",{selecting:!0,endDate:Ue(wn,bn)}))},ze=hn=>!unref(he)&&(hn==null?void 0:hn.text)===1&&isNormalDay(hn.type)||hn.isCurrent,Pt=hn=>{ie||unref(he)||n.selectionMode!=="date"||Lt(hn,!0)},qe=hn=>{hn.target.closest("td")&&(ie=!0)},Et=hn=>{hn.target.closest("td")&&(ie=!1)},kt=hn=>{!n.rangeState.selecting||!n.minDate?(t("pick",{minDate:hn,maxDate:null}),t("select",!0)):(hn>=n.minDate?t("pick",{minDate:n.minDate,maxDate:hn}):t("pick",{minDate:hn,maxDate:n.minDate}),t("select",!1))},At=hn=>{const vn=hn.week(),_n=`${hn.year()}w${vn}`;t("pick",{year:hn.year(),week:vn,value:_n,date:hn.startOf("week")})},Dt=(hn,vn)=>{const _n=vn?castArray(n.parsedValue).filter(wn=>(wn==null?void 0:wn.valueOf())!==hn.valueOf()):castArray(n.parsedValue).concat([hn]);t("pick",_n)},Lt=(hn,vn=!1)=>{if(n.disabled)return;const _n=hn.target.closest("td");if(!_n)return;const wn=_n.parentNode.rowIndex-1,bn=_n.cellIndex,Cn=unref(Ne)[wn][bn];if(Cn.disabled||Cn.type==="week")return;const Sn=Ue(wn,bn);switch(n.selectionMode){case"range":{kt(Sn);break}case"date":{t("pick",Sn,vn);break}case"week":{At(Sn);break}case"dates":{Dt(Sn,!!Cn.selected);break}}},jt=hn=>{if(n.selectionMode!=="week")return!1;let vn=n.date.startOf("day");if(hn.type==="prev-month"&&(vn=vn.subtract(1,"month")),hn.type==="next-month"&&(vn=vn.add(1,"month")),vn=vn.date(Number.parseInt(hn.text,10)),n.parsedValue&&!isArray$5(n.parsedValue)){const _n=(n.parsedValue.day()-ae+7)%7-1;return n.parsedValue.subtract(_n,"day").isSame(vn,"day")}return!1};return{WEEKS:de,rows:Ne,tbodyRef:i,currentCellRef:g,focus:Oe,isCurrent:$e,isWeekActive:jt,isSelectedCell:ze,handlePickDate:Lt,handleMouseUp:Et,handleMouseDown:qe,handleMouseMove:Fe,handleFocus:Pt}},useBasicDateTableDOM=(n,{isCurrent:t,isWeekActive:r})=>{const i=useNamespace("date-table"),{t:g}=useLocale(),$=computed(()=>[i.b(),i.is("week-mode",n.selectionMode==="week"&&!n.disabled)]),V=computed(()=>g("el.datepicker.dateTablePrompt")),re=ae=>{const oe=[];return isNormalDay(ae.type)&&!ae.disabled?(oe.push("available"),ae.type==="today"&&oe.push("today")):oe.push(ae.type),t(ae)&&oe.push("current"),ae.inRange&&(isNormalDay(ae.type)||n.selectionMode==="week")&&(oe.push("in-range"),ae.start&&oe.push("start-date"),ae.end&&oe.push("end-date")),(ae.disabled||n.disabled)&&oe.push("disabled"),ae.selected&&oe.push("selected"),ae.customClass&&oe.push(ae.customClass),oe.join(" ")},ie=ae=>[i.e("row"),{current:r(ae)}];return{tableKls:$,tableLabel:V,weekHeaderClass:i.e("week-header"),getCellClasses:re,getRowKls:ie,t:g}},basicCellProps=buildProps({cell:{type:definePropType(Object)}});var ElDatePickerCell=defineComponent({name:"ElDatePickerCell",props:basicCellProps,setup(n){const t=useNamespace("date-table-cell"),{slots:r}=inject(ROOT_PICKER_INJECTION_KEY);return()=>{const{cell:i}=n;return renderSlot(r,"default",{...i},()=>{var g;return[createVNode$1("div",{class:t.b()},[createVNode$1("span",{class:t.e("text")},[(g=i==null?void 0:i.renderText)!=null?g:i==null?void 0:i.text])])]})}}});const _hoisted_1$1c=["aria-label"],_hoisted_2$P=["aria-label"],_hoisted_3$n=["aria-current","aria-selected","tabindex","aria-disabled"],_sfc_main$1Z=defineComponent({__name:"basic-date-table",props:basicDateTableProps,emits:basicDateTableEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{WEEKS:$,rows:V,tbodyRef:re,currentCellRef:ie,focus:ae,isCurrent:oe,isWeekActive:le,isSelectedCell:ue,handlePickDate:de,handleMouseUp:he,handleMouseDown:pe,handleMouseMove:_e,handleFocus:Ce}=useBasicDateTable(i,g),{tableLabel:xe,tableKls:Ie,getCellClasses:Ne,getRowKls:Oe,weekHeaderClass:$e,t:Ve}=useBasicDateTableDOM(i,{isCurrent:oe,isWeekActive:le});let Ue=!1;return onBeforeUnmount(()=>{Ue=!0}),t({focus:ae}),(Fe,ze)=>(openBlock(),createElementBlock("table",{"aria-label":unref(xe),class:normalizeClass(unref(Ie)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:ze[1]||(ze[1]=(...Pt)=>unref(de)&&unref(de)(...Pt)),onMousemove:ze[2]||(ze[2]=(...Pt)=>unref(_e)&&unref(_e)(...Pt)),onMousedown:ze[3]||(ze[3]=(...Pt)=>unref(pe)&&unref(pe)(...Pt)),onMouseup:ze[4]||(ze[4]=(...Pt)=>unref(he)&&unref(he)(...Pt))},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:re},[createBaseVNode("tr",null,[Fe.showWeekNumber?(openBlock(),createElementBlock("th",{key:0,scope:"col",class:normalizeClass(unref($e))},null,2)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref($),(Pt,qe)=>(openBlock(),createElementBlock("th",{key:qe,"aria-label":unref(Ve)("el.datepicker.weeksFull."+Pt),scope:"col"},toDisplayString(unref(Ve)("el.datepicker.weeks."+Pt)),9,_hoisted_2$P))),128))]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(V),(Pt,qe)=>(openBlock(),createElementBlock("tr",{key:qe,class:normalizeClass(unref(Oe)(Fe.showWeekNumber?Pt[2]:Pt[1]))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Pt,(Et,kt)=>(openBlock(),createElementBlock("td",{key:`${qe}.${kt}`,ref_for:!0,ref:At=>!unref(Ue)&&unref(ue)(Et)&&(ie.value=At),class:normalizeClass(unref(Ne)(Et)),"aria-current":Et.isCurrent?"date":void 0,"aria-selected":Et.isCurrent,tabindex:Fe.disabled?void 0:unref(ue)(Et)?0:-1,"aria-disabled":Fe.disabled,onFocus:ze[0]||(ze[0]=(...At)=>unref(Ce)&&unref(Ce)(...At))},[createVNode$1(unref(ElDatePickerCell),{cell:Et},null,8,["cell"])],42,_hoisted_3$n))),128))],2))),128))],512)],42,_hoisted_1$1c))}});var DateTable=_export_sfc(_sfc_main$1Z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/basic-date-table.vue"]]);const basicMonthTableProps=buildProps({...datePickerSharedProps,selectionMode:selectionModeWithDefault("month")}),_hoisted_1$1b=["aria-label"],_hoisted_2$O=["aria-selected","aria-label","tabindex","onKeydown"],_sfc_main$1Y=defineComponent({__name:"basic-month-table",props:basicMonthTableProps,emits:["changerange","pick","select"],setup(n,{expose:t,emit:r}){const i=n,g=r,$=useNamespace("month-table"),{t:V,lang:re}=useLocale(),ie=ref(),ae=ref(),oe=ref(i.date.locale("en").localeData().monthsShort().map(Ne=>Ne.toLowerCase())),le=ref([[],[],[]]),ue=ref(),de=ref(),he=computed(()=>{var Ne,Oe,$e;const Ve=le.value,Ue=dayjs().locale(re.value).startOf("month");for(let Fe=0;Fe<3;Fe++){const ze=Ve[Fe];for(let Pt=0;Pt<4;Pt++){const qe=ze[Pt]||(ze[Pt]={row:Fe,column:Pt,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});qe.type="normal";const Et=Fe*4+Pt,kt=i.date.startOf("year").month(Et),At=i.rangeState.endDate||i.maxDate||i.rangeState.selecting&&i.minDate||null;qe.inRange=!!(i.minDate&&kt.isSameOrAfter(i.minDate,"month")&&At&&kt.isSameOrBefore(At,"month"))||!!(i.minDate&&kt.isSameOrBefore(i.minDate,"month")&&At&&kt.isSameOrAfter(At,"month")),(Ne=i.minDate)!=null&&Ne.isSameOrAfter(At)?(qe.start=!!(At&&kt.isSame(At,"month")),qe.end=i.minDate&&kt.isSame(i.minDate,"month")):(qe.start=!!(i.minDate&&kt.isSame(i.minDate,"month")),qe.end=!!(At&&kt.isSame(At,"month"))),Ue.isSame(kt)&&(qe.type="today");const Lt=kt.toDate();qe.text=Et,qe.disabled=((Oe=i.disabledDate)==null?void 0:Oe.call(i,Lt))||!1,qe.date=Lt,qe.customClass=($e=i.cellClassName)==null?void 0:$e.call(i,Lt),qe.dayjs=kt,qe.timestamp=kt.valueOf(),qe.isSelected=Ce(qe)}}return Ve}),pe=()=>{var Ne;(Ne=ae.value)==null||Ne.focus()},_e=Ne=>{const Oe={},$e=i.date.year(),Ve=new Date,Ue=Ne.text;return Oe.disabled=i.disabled||(i.disabledDate?datesInMonth(i.date,$e,Ue,re.value).every(i.disabledDate):!1),Oe.current=castArray(i.parsedValue).some(Fe=>dayjs.isDayjs(Fe)&&Fe.year()===$e&&Fe.month()===Ue),Oe.today=Ve.getFullYear()===$e&&Ve.getMonth()===Ue,Ne.customClass&&(Oe[Ne.customClass]=!0),Ne.inRange&&(Oe["in-range"]=!0,Ne.start&&(Oe["start-date"]=!0),Ne.end&&(Oe["end-date"]=!0)),Oe},Ce=Ne=>{const Oe=i.date.year(),$e=Ne.text;return castArray(i.date).some(Ve=>Ve.year()===Oe&&Ve.month()===$e)},xe=Ne=>{var Oe;if(!i.rangeState.selecting)return;let $e=Ne.target;if($e.tagName==="SPAN"&&($e=(Oe=$e.parentNode)==null?void 0:Oe.parentNode),$e.tagName==="DIV"&&($e=$e.parentNode),$e.tagName!=="TD")return;const Ve=$e.parentNode.rowIndex,Ue=$e.cellIndex;he.value[Ve][Ue].disabled||(Ve!==ue.value||Ue!==de.value)&&(ue.value=Ve,de.value=Ue,g("changerange",{selecting:!0,endDate:i.date.startOf("year").month(Ve*4+Ue)}))},Ie=Ne=>{var Oe;if(i.disabled)return;const $e=(Oe=Ne.target)==null?void 0:Oe.closest("td");if(($e==null?void 0:$e.tagName)!=="TD"||hasClass($e,"disabled"))return;const Ve=$e.cellIndex,Fe=$e.parentNode.rowIndex*4+Ve,ze=i.date.startOf("year").month(Fe);if(i.selectionMode==="months"){if(Ne.type==="keydown"){g("pick",castArray(i.parsedValue),!1);return}const Pt=getValidDateOfMonth(i.date,i.date.year(),Fe,re.value,i.disabledDate),qe=hasClass($e,"current")?castArray(i.parsedValue).filter(Et=>(Et==null?void 0:Et.year())!==Pt.year()||(Et==null?void 0:Et.month())!==Pt.month()):castArray(i.parsedValue).concat([dayjs(Pt)]);g("pick",qe)}else i.selectionMode==="range"?i.rangeState.selecting?(i.minDate&&ze>=i.minDate?g("pick",{minDate:i.minDate,maxDate:ze}):g("pick",{minDate:ze,maxDate:i.minDate}),g("select",!1)):(g("pick",{minDate:ze,maxDate:null}),g("select",!0)):g("pick",Fe)};return watch(()=>i.date,async()=>{var Ne,Oe;(Ne=ie.value)!=null&&Ne.contains(document.activeElement)&&(await nextTick(),(Oe=ae.value)==null||Oe.focus())}),t({focus:pe}),(Ne,Oe)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(V)("el.datepicker.monthTablePrompt"),class:normalizeClass(unref($).b()),onClick:Ie,onMousemove:xe},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:ie},[(openBlock(!0),createElementBlock(Fragment,null,renderList(he.value,($e,Ve)=>(openBlock(),createElementBlock("tr",{key:Ve},[(openBlock(!0),createElementBlock(Fragment,null,renderList($e,(Ue,Fe)=>(openBlock(),createElementBlock("td",{key:Fe,ref_for:!0,ref:ze=>Ue.isSelected&&(ae.value=ze),class:normalizeClass(_e(Ue)),"aria-selected":!!Ue.isSelected,"aria-label":unref(V)(`el.datepicker.month${+Ue.text+1}`),tabindex:Ue.isSelected?0:-1,onKeydown:[withKeys(withModifiers(Ie,["prevent","stop"]),["space"]),withKeys(withModifiers(Ie,["prevent","stop"]),["enter"])]},[createVNode$1(unref(ElDatePickerCell),{cell:{...Ue,renderText:unref(V)("el.datepicker.months."+oe.value[Ue.text])}},null,8,["cell"])],42,_hoisted_2$O))),128))]))),128))],512)],42,_hoisted_1$1b))}});var MonthTable=_export_sfc(_sfc_main$1Y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/basic-month-table.vue"]]);const basicYearTableProps=buildProps({...datePickerSharedProps,selectionMode:selectionModeWithDefault("year")}),_hoisted_1$1a=["aria-label"],_hoisted_2$N=["aria-selected","aria-label","tabindex","onKeydown"],_sfc_main$1X=defineComponent({__name:"basic-year-table",props:basicYearTableProps,emits:["changerange","pick","select"],setup(n,{expose:t,emit:r}){const i=(Oe,$e)=>{const Ve=dayjs(String(Oe)).locale($e).startOf("year"),Fe=Ve.endOf("year").dayOfYear();return rangeArr(Fe).map(ze=>Ve.add(ze,"day").toDate())},g=n,$=r,V=useNamespace("year-table"),{t:re,lang:ie}=useLocale(),ae=ref(),oe=ref(),le=computed(()=>Math.floor(g.date.year()/10)*10),ue=ref([[],[],[]]),de=ref(),he=ref(),pe=computed(()=>{var Oe,$e,Ve;const Ue=ue.value,Fe=dayjs().locale(ie.value).startOf("year");for(let ze=0;ze<3;ze++){const Pt=Ue[ze];for(let qe=0;qe<4&&!(ze*4+qe>=10);qe++){let Et=Pt[qe];Et||(Et={row:ze,column:qe,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),Et.type="normal";const kt=ze*4+qe+le.value,At=dayjs().year(kt),Dt=g.rangeState.endDate||g.maxDate||g.rangeState.selecting&&g.minDate||null;Et.inRange=!!(g.minDate&&At.isSameOrAfter(g.minDate,"year")&&Dt&&At.isSameOrBefore(Dt,"year"))||!!(g.minDate&&At.isSameOrBefore(g.minDate,"year")&&Dt&&At.isSameOrAfter(Dt,"year")),(Oe=g.minDate)!=null&&Oe.isSameOrAfter(Dt)?(Et.start=!!(Dt&&At.isSame(Dt,"year")),Et.end=!!(g.minDate&&At.isSame(g.minDate,"year"))):(Et.start=!!(g.minDate&&At.isSame(g.minDate,"year")),Et.end=!!(Dt&&At.isSame(Dt,"year"))),Fe.isSame(At)&&(Et.type="today"),Et.text=kt;const jt=At.toDate();Et.disabled=(($e=g.disabledDate)==null?void 0:$e.call(g,jt))||!1,Et.date=jt,Et.customClass=(Ve=g.cellClassName)==null?void 0:Ve.call(g,jt),Et.dayjs=At,Et.timestamp=At.valueOf(),Et.isSelected=xe(Et),Pt[qe]=Et}}return Ue}),_e=()=>{var Oe;(Oe=oe.value)==null||Oe.focus()},Ce=Oe=>{const $e={},Ve=dayjs().locale(ie.value),Ue=Oe.text;return $e.disabled=g.disabled||(g.disabledDate?i(Ue,ie.value).every(g.disabledDate):!1),$e.today=Ve.year()===Ue,$e.current=castArray(g.parsedValue).some(Fe=>Fe.year()===Ue),Oe.customClass&&($e[Oe.customClass]=!0),Oe.inRange&&($e["in-range"]=!0,Oe.start&&($e["start-date"]=!0),Oe.end&&($e["end-date"]=!0)),$e},xe=Oe=>{const $e=Oe.text;return castArray(g.date).some(Ve=>Ve.year()===$e)},Ie=Oe=>{var $e;if(g.disabled)return;const Ve=($e=Oe.target)==null?void 0:$e.closest("td");if(!Ve||!Ve.textContent||hasClass(Ve,"disabled"))return;const Ue=Ve.cellIndex,ze=Ve.parentNode.rowIndex*4+Ue+le.value,Pt=dayjs().year(ze);if(g.selectionMode==="range")g.rangeState.selecting?(g.minDate&&Pt>=g.minDate?$("pick",{minDate:g.minDate,maxDate:Pt}):$("pick",{minDate:Pt,maxDate:g.minDate}),$("select",!1)):($("pick",{minDate:Pt,maxDate:null}),$("select",!0));else if(g.selectionMode==="years"){if(Oe.type==="keydown"){$("pick",castArray(g.parsedValue),!1);return}const qe=getValidDateOfYear(Pt.startOf("year"),ie.value,g.disabledDate),Et=hasClass(Ve,"current")?castArray(g.parsedValue).filter(kt=>(kt==null?void 0:kt.year())!==ze):castArray(g.parsedValue).concat([qe]);$("pick",Et)}else $("pick",ze)},Ne=Oe=>{var $e;if(!g.rangeState.selecting)return;const Ve=($e=Oe.target)==null?void 0:$e.closest("td");if(!Ve)return;const Ue=Ve.parentNode.rowIndex,Fe=Ve.cellIndex;pe.value[Ue][Fe].disabled||(Ue!==de.value||Fe!==he.value)&&(de.value=Ue,he.value=Fe,$("changerange",{selecting:!0,endDate:dayjs().year(le.value).add(Ue*4+Fe,"year")}))};return watch(()=>g.date,async()=>{var Oe,$e;(Oe=ae.value)!=null&&Oe.contains(document.activeElement)&&(await nextTick(),($e=oe.value)==null||$e.focus())}),t({focus:_e}),(Oe,$e)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(re)("el.datepicker.yearTablePrompt"),class:normalizeClass(unref(V).b()),onClick:Ie,onMousemove:Ne},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:ae},[(openBlock(!0),createElementBlock(Fragment,null,renderList(pe.value,(Ve,Ue)=>(openBlock(),createElementBlock("tr",{key:Ue},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ve,(Fe,ze)=>(openBlock(),createElementBlock("td",{key:`${Ue}_${ze}`,ref_for:!0,ref:Pt=>Fe.isSelected&&(oe.value=Pt),class:normalizeClass(["available",Ce(Fe)]),"aria-selected":Fe.isSelected,"aria-label":String(Fe.text),tabindex:Fe.isSelected?0:-1,onKeydown:[withKeys(withModifiers(Ie,["prevent","stop"]),["space"]),withKeys(withModifiers(Ie,["prevent","stop"]),["enter"])]},[createVNode$1(unref(ElDatePickerCell),{cell:Fe},null,8,["cell"])],42,_hoisted_2$N))),128))]))),128))],512)],42,_hoisted_1$1a))}});var YearTable=_export_sfc(_sfc_main$1X,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/basic-year-table.vue"]]);const _hoisted_1$19=["disabled","onClick"],_hoisted_2$M=["aria-label","disabled"],_hoisted_3$m=["aria-label","disabled"],_hoisted_4$h=["tabindex","aria-disabled"],_hoisted_5$9=["tabindex","aria-disabled"],_hoisted_6$3=["aria-label","disabled"],_hoisted_7$2=["aria-label","disabled"],_sfc_main$1W=defineComponent({__name:"panel-date-pick",props:panelDatePickProps,emits:["pick","set-picker-option","panel-change"],setup(n,{emit:t}){const r=(Yn,er,Fn)=>!0,i=n,g=t,$=useNamespace("picker-panel"),V=useNamespace("date-picker"),re=useAttrs$1(),ie=useSlots(),{t:ae,lang:oe}=useLocale(),le=inject(PICKER_BASE_INJECTION_KEY),ue=inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,void 0),{shortcuts:de,disabledDate:he,cellClassName:pe,defaultTime:_e}=le.props,Ce=toRef$1(le.props,"defaultValue"),xe=ref(),Ie=ref(dayjs().locale(oe.value)),Ne=ref(!1);let Oe=!1;const $e=computed(()=>dayjs(_e).locale(oe.value)),Ve=computed(()=>Ie.value.month()),Ue=computed(()=>Ie.value.year()),Fe=ref([]),ze=ref(null),Pt=ref(null),qe=Yn=>Fe.value.length>0?r(Yn,Fe.value,i.format||"HH:mm:ss"):!0,Et=Yn=>_e&&!In.value&&!Ne.value&&!Oe?$e.value.year(Yn.year()).month(Yn.month()).date(Yn.date()):$n.value?Yn.millisecond(0):Yn.startOf("day"),kt=(Yn,...er)=>{if(!Yn)g("pick",Yn,...er);else if(isArray$5(Yn)){const Fn=Yn.map(Et);g("pick",Fn,...er)}else g("pick",Et(Yn),...er);ze.value=null,Pt.value=null,Ne.value=!1,Oe=!1},At=async(Yn,er)=>{if(_n.value==="date"&&dayjs.isDayjs(Yn)){const Fn=extractFirst(i.parsedValue);let cr=Fn?Fn.year(Yn.year()).month(Yn.month()).date(Yn.date()):Yn;qe(cr)||(cr=Fe.value[0][0].year(Yn.year()).month(Yn.month()).date(Yn.date())),Ie.value=cr,kt(cr,$n.value||er)}else _n.value==="week"?kt(Yn.date):_n.value==="dates"&&kt(Yn,!0)},Dt=Yn=>{const er=Yn?"add":"subtract";Ie.value=Ie.value[er](1,"month"),lr("month")},Lt=Yn=>{const er=Ie.value,Fn=Yn?"add":"subtract";Ie.value=jt.value==="year"?er[Fn](10,"year"):er[Fn](1,"year"),lr("year")},jt=ref("date"),hn=computed(()=>{const Yn=ae("el.datepicker.year");if(jt.value==="year"){const er=Math.floor(Ue.value/10)*10;return Yn?`${er} ${Yn} - ${er+9} ${Yn}`:`${er} - ${er+9}`}return`${Ue.value} ${Yn}`}),vn=Yn=>{const er=isFunction$4(Yn.value)?Yn.value():Yn.value;if(er){Oe=!0,kt(dayjs(er).locale(oe.value));return}Yn.onClick&&Yn.onClick({attrs:re,slots:ie,emit:g})},_n=computed(()=>{const{type:Yn}=i;return["week","month","months","year","years","dates"].includes(Yn)?Yn:"date"}),wn=computed(()=>_n.value==="dates"||_n.value==="months"||_n.value==="years"),bn=computed(()=>_n.value==="date"?jt.value:_n.value),Cn=computed(()=>!!de.length),Sn=async(Yn,er)=>{_n.value==="month"?(Ie.value=getValidDateOfMonth(Ie.value,Ie.value.year(),Yn,oe.value,he),kt(Ie.value,!1)):_n.value==="months"?kt(Yn,er??!0):(Ie.value=getValidDateOfMonth(Ie.value,Ie.value.year(),Yn,oe.value,he),jt.value="date",["month","year","date","week"].includes(_n.value)&&(kt(Ie.value,!0),await nextTick(),hr())),lr("month")},Tn=async(Yn,er)=>{if(_n.value==="year"){const Fn=Ie.value.startOf("year").year(Yn);Ie.value=getValidDateOfYear(Fn,oe.value,he),kt(Ie.value,!1)}else if(_n.value==="years")kt(Yn,er??!0);else{const Fn=Ie.value.year(Yn);Ie.value=getValidDateOfYear(Fn,oe.value,he),jt.value="month",["month","year","date","week"].includes(_n.value)&&(kt(Ie.value,!0),await nextTick(),hr())}lr("year")},En=useFormDisabled(),kn=async Yn=>{En.value||(jt.value=Yn,await nextTick(),hr())},$n=computed(()=>i.type==="datetime"||i.type==="datetimerange"),An=computed(()=>{const Yn=$n.value||_n.value==="dates",er=_n.value==="years",Fn=_n.value==="months",cr=jt.value==="date",Un=jt.value==="year",gr=jt.value==="month";return Yn&&cr||er&&Un||Fn&&gr}),xn=computed(()=>!wn.value&&i.showNow||i.showConfirm),Ln=computed(()=>he?i.parsedValue?isArray$5(i.parsedValue)?he(i.parsedValue[0].toDate()):he(i.parsedValue.toDate()):!0:!1),Nn=()=>{if(wn.value)kt(i.parsedValue);else{let Yn=extractFirst(i.parsedValue);if(!Yn){const er=dayjs(_e).locale(oe.value),Fn=tr();Yn=er.year(Fn.year()).month(Fn.month()).date(Fn.date())}Ie.value=Yn,kt(Yn)}},Pn=computed(()=>he?he(dayjs().locale(oe.value).toDate()):!1),On=()=>{const er=dayjs().locale(oe.value).toDate();Ne.value=!0,(!he||!he(er))&&qe(er)&&(Ie.value=dayjs().locale(oe.value),kt(Ie.value))},Hn=computed(()=>i.timeFormat||extractTimeFormat(i.format)||DEFAULT_FORMATS_TIME),Xn=computed(()=>i.dateFormat||extractDateFormat(i.format)||DEFAULT_FORMATS_DATE),In=computed(()=>Pt.value?Pt.value:!i.parsedValue&&!Ce.value?void 0:(extractFirst(i.parsedValue)||Ie.value).format(Hn.value)),or=computed(()=>ze.value?ze.value:!i.parsedValue&&!Ce.value?void 0:(extractFirst(i.parsedValue)||Ie.value).format(Xn.value)),Qn=ref(!1),Zn=()=>{Qn.value=!0},Gn=()=>{Qn.value=!1},Rn=Yn=>({hour:Yn.hour(),minute:Yn.minute(),second:Yn.second(),year:Yn.year(),month:Yn.month(),date:Yn.date()}),Mn=(Yn,er,Fn)=>{const{hour:cr,minute:Un,second:gr}=Rn(Yn),vr=extractFirst(i.parsedValue),yr=vr?vr.hour(cr).minute(Un).second(gr):Yn;Ie.value=yr,kt(Ie.value,!0),Fn||(Qn.value=er)},Bn=Yn=>{const er=dayjs(Yn,Hn.value).locale(oe.value);if(er.isValid()&&qe(er)){const{year:Fn,month:cr,date:Un}=Rn(Ie.value);Ie.value=er.year(Fn).month(cr).date(Un),Pt.value=null,Qn.value=!1,kt(Ie.value,!0)}},qn=Yn=>{const er=correctlyParseUserInput(Yn,Xn.value,oe.value,ue);if(er.isValid()){if(he&&he(er.toDate()))return;const{hour:Fn,minute:cr,second:Un}=Rn(Ie.value);Ie.value=er.hour(Fn).minute(cr).second(Un),ze.value=null,kt(Ie.value,!0)}},zn=Yn=>dayjs.isDayjs(Yn)&&Yn.isValid()&&(he?!he(Yn.toDate()):!0),jn=Yn=>correctlyParseUserInput(Yn,i.format,oe.value,ue),tr=()=>{const Yn=dayjs(Ce.value).locale(oe.value);if(!Ce.value){const er=$e.value;return dayjs().hour(er.hour()).minute(er.minute()).second(er.second()).locale(oe.value)}return Yn},hr=()=>{var Yn;["week","month","year","date"].includes(_n.value)&&((Yn=xe.value)==null||Yn.focus())},ir=()=>{hr(),_n.value==="week"&&rr(EVENT_CODE.down)},pr=Yn=>{const er=getEventCode(Yn);[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(er)&&(rr(er),Yn.stopPropagation(),Yn.preventDefault()),[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.numpadEnter].includes(er)&&ze.value===null&&Pt.value===null&&(Yn.preventDefault(),kt(Ie.value,!1))},rr=Yn=>{var er;const{up:Fn,down:cr,left:Un,right:gr,home:vr,end:yr,pageUp:Wn,pageDown:Jn}=EVENT_CODE,sr={year:{[Fn]:-4,[cr]:4,[Un]:-1,[gr]:1,offset:(Tr,fr)=>Tr.setFullYear(Tr.getFullYear()+fr)},month:{[Fn]:-4,[cr]:4,[Un]:-1,[gr]:1,offset:(Tr,fr)=>Tr.setMonth(Tr.getMonth()+fr)},week:{[Fn]:-1,[cr]:1,[Un]:-1,[gr]:1,offset:(Tr,fr)=>Tr.setDate(Tr.getDate()+fr*7)},date:{[Fn]:-7,[cr]:7,[Un]:-1,[gr]:1,[vr]:Tr=>-Tr.getDay(),[yr]:Tr=>-Tr.getDay()+6,[Wn]:Tr=>-new Date(Tr.getFullYear(),Tr.getMonth(),0).getDate(),[Jn]:Tr=>new Date(Tr.getFullYear(),Tr.getMonth()+1,0).getDate(),offset:(Tr,fr)=>Tr.setDate(Tr.getDate()+fr)}},Sr=Ie.value.toDate();for(;Math.abs(Ie.value.diff(Sr,"year",!0))<1;){const Tr=sr[bn.value];if(!Tr)return;if(Tr.offset(Sr,isFunction$4(Tr[Yn])?Tr[Yn](Sr):(er=Tr[Yn])!=null?er:0),he&&he(Sr))break;const fr=dayjs(Sr).locale(oe.value);Ie.value=fr,g("pick",fr,!0);break}},lr=Yn=>{g("panel-change",Ie.value.toDate(),Yn,jt.value)};return watch(()=>_n.value,Yn=>{if(["month","year"].includes(Yn)){jt.value=Yn;return}else if(Yn==="years"){jt.value="year";return}else if(Yn==="months"){jt.value="month";return}jt.value="date"},{immediate:!0}),watch(()=>Ce.value,Yn=>{Yn&&(Ie.value=tr())},{immediate:!0}),watch(()=>i.parsedValue,Yn=>{if(Yn){if(wn.value||isArray$5(Yn))return;Ie.value=Yn}else Ie.value=tr()},{immediate:!0}),g("set-picker-option",["isValidValue",zn]),g("set-picker-option",["parseUserInput",jn]),g("set-picker-option",["handleFocusPicker",ir]),(Yn,er)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref($).b(),unref(V).b(),unref($).is("border",Yn.border),unref($).is("disabled",unref(En)),{"has-sidebar":Yn.$slots.sidebar||Cn.value,"has-time":$n.value}])},[createBaseVNode("div",{class:normalizeClass(unref($).e("body-wrapper"))},[renderSlot(Yn.$slots,"sidebar",{class:normalizeClass(unref($).e("sidebar"))}),Cn.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(de),(Fn,cr)=>(openBlock(),createElementBlock("button",{key:cr,type:"button",disabled:unref(En),class:normalizeClass(unref($).e("shortcut")),onClick:Un=>vn(Fn)},toDisplayString(Fn.text),11,_hoisted_1$19))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref($).e("body"))},[$n.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(V).e("editor-wrap"))},[createVNode$1(unref(ElInput),{placeholder:unref(ae)("el.datepicker.selectDate"),"model-value":or.value,size:"small","validate-event":!1,disabled:unref(En),readonly:!Yn.editable,onInput:er[0]||(er[0]=Fn=>ze.value=Fn),onChange:qn},null,8,["placeholder","model-value","disabled","readonly"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(V).e("editor-wrap"))},[createVNode$1(unref(ElInput),{placeholder:unref(ae)("el.datepicker.selectTime"),"model-value":In.value,size:"small","validate-event":!1,disabled:unref(En),readonly:!Yn.editable,onFocus:Zn,onInput:er[1]||(er[1]=Fn=>Pt.value=Fn),onChange:Bn},null,8,["placeholder","model-value","disabled","readonly"]),createVNode$1(unref(TimePickPanel),{visible:Qn.value,format:Hn.value,"parsed-value":Ie.value,onPick:Mn},null,8,["visible","format","parsed-value"])],2)),[[unref(ClickOutside),Gn]])],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{class:normalizeClass([unref(V).e("header"),(jt.value==="year"||jt.value==="month")&&unref(V).em("header","bordered")])},[createBaseVNode("span",{class:normalizeClass(unref(V).e("prev-btn"))},[createBaseVNode("button",{type:"button","aria-label":unref(ae)("el.datepicker.prevYear"),class:normalizeClass(["d-arrow-left",unref($).e("icon-btn")]),disabled:unref(En),onClick:er[2]||(er[2]=Fn=>Lt(!1))},[renderSlot(Yn.$slots,"prev-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_left_default))]),_:1})])],10,_hoisted_2$M),withDirectives(createBaseVNode("button",{type:"button","aria-label":unref(ae)("el.datepicker.prevMonth"),class:normalizeClass([unref($).e("icon-btn"),"arrow-left"]),disabled:unref(En),onClick:er[3]||(er[3]=Fn=>Dt(!1))},[renderSlot(Yn.$slots,"prev-month",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_left_default))]),_:1})])],10,_hoisted_3$m),[[vShow,jt.value==="date"]])],2),createBaseVNode("span",{role:"button",class:normalizeClass(unref(V).e("header-label")),"aria-live":"polite",tabindex:Yn.disabled?void 0:0,"aria-disabled":Yn.disabled,onKeydown:er[4]||(er[4]=withKeys(Fn=>kn("year"),["enter"])),onClick:er[5]||(er[5]=Fn=>kn("year"))},toDisplayString(hn.value),43,_hoisted_4$h),withDirectives(createBaseVNode("span",{role:"button","aria-live":"polite",tabindex:Yn.disabled?void 0:0,"aria-disabled":Yn.disabled,class:normalizeClass([unref(V).e("header-label"),{active:jt.value==="month"}]),onKeydown:er[6]||(er[6]=withKeys(Fn=>kn("month"),["enter"])),onClick:er[7]||(er[7]=Fn=>kn("month"))},toDisplayString(unref(ae)(`el.datepicker.month${Ve.value+1}`)),43,_hoisted_5$9),[[vShow,jt.value==="date"]]),createBaseVNode("span",{class:normalizeClass(unref(V).e("next-btn"))},[withDirectives(createBaseVNode("button",{type:"button","aria-label":unref(ae)("el.datepicker.nextMonth"),class:normalizeClass([unref($).e("icon-btn"),"arrow-right"]),disabled:unref(En),onClick:er[8]||(er[8]=Fn=>Dt(!0))},[renderSlot(Yn.$slots,"next-month",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1})])],10,_hoisted_6$3),[[vShow,jt.value==="date"]]),createBaseVNode("button",{type:"button","aria-label":unref(ae)("el.datepicker.nextYear"),class:normalizeClass([unref($).e("icon-btn"),"d-arrow-right"]),disabled:unref(En),onClick:er[9]||(er[9]=Fn=>Lt(!0))},[renderSlot(Yn.$slots,"next-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_right_default))]),_:1})])],10,_hoisted_7$2)],2)],2),[[vShow,jt.value!=="time"]]),createBaseVNode("div",{class:normalizeClass(unref($).e("content")),onKeydown:pr},[jt.value==="date"?(openBlock(),createBlock(DateTable,{key:0,ref_key:"currentViewRef",ref:xe,"selection-mode":_n.value,date:Ie.value,"parsed-value":Yn.parsedValue,"disabled-date":unref(he),disabled:unref(En),"cell-class-name":unref(pe),"show-week-number":Yn.showWeekNumber,onPick:At},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):createCommentVNode("v-if",!0),jt.value==="year"?(openBlock(),createBlock(YearTable,{key:1,ref_key:"currentViewRef",ref:xe,"selection-mode":_n.value,date:Ie.value,"disabled-date":unref(he),disabled:unref(En),"parsed-value":Yn.parsedValue,"cell-class-name":unref(pe),onPick:Tn},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):createCommentVNode("v-if",!0),jt.value==="month"?(openBlock(),createBlock(MonthTable,{key:2,ref_key:"currentViewRef",ref:xe,"selection-mode":_n.value,date:Ie.value,"parsed-value":Yn.parsedValue,"disabled-date":unref(he),disabled:unref(En),"cell-class-name":unref(pe),onPick:Sn},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):createCommentVNode("v-if",!0)],34)],2)],2),Yn.showFooter&&An.value&&xn.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($).e("footer"))},[withDirectives(createVNode$1(unref(ElButton),{text:"",size:"small",class:normalizeClass(unref($).e("link-btn")),disabled:Pn.value,onClick:On},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(ae)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[vShow,!wn.value&&Yn.showNow]]),Yn.showConfirm?(openBlock(),createBlock(unref(ElButton),{key:0,plain:"",size:"small",class:normalizeClass(unref($).e("link-btn")),disabled:Ln.value,onClick:Nn},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(ae)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],2))}});var DatePickPanel=_export_sfc(_sfc_main$1W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue"]]);const panelDateRangeProps=buildProps({...panelSharedProps,...panelRangeSharedProps}),useShortcut=n=>{const{emit:t}=getCurrentInstance(),r=useAttrs$1(),i=useSlots();return $=>{const V=isFunction$4($.value)?$.value():$.value;if(V){t("pick",[dayjs(V[0]).locale(n.value),dayjs(V[1]).locale(n.value)]);return}$.onClick&&$.onClick({attrs:r,slots:i,emit:t})}},useRangePicker=(n,{defaultValue:t,defaultTime:r,leftDate:i,rightDate:g,step:$,unit:V,sortDates:re})=>{const{emit:ie}=getCurrentInstance(),{pickerNs:ae}=inject(ROOT_PICKER_INJECTION_KEY),oe=useNamespace("date-range-picker"),{t:le,lang:ue}=useLocale(),de=useShortcut(ue),he=ref(),pe=ref(),_e=ref({endDate:null,selecting:!1}),Ce=$e=>{_e.value=$e},xe=($e=!1)=>{const Ve=unref(he),Ue=unref(pe);isValidRange([Ve,Ue])&&ie("pick",[Ve,Ue],$e)},Ie=$e=>{_e.value.selecting=$e,$e||(_e.value.endDate=null)},Ne=$e=>{if(isArray$5($e)&&$e.length===2){const[Ve,Ue]=$e;he.value=Ve,i.value=Ve,pe.value=Ue,re(unref(he),unref(pe))}else Oe()},Oe=()=>{let[$e,Ve]=getDefaultValue(unref(t),{lang:unref(ue),step:$,unit:V,unlinkPanels:n.unlinkPanels});const Ue=ze=>ze.diff(ze.startOf("d"),"ms"),Fe=unref(r);if(Fe){let ze=0,Pt=0;if(isArray$5(Fe)){const[qe,Et]=Fe.map(dayjs);ze=Ue(qe),Pt=Ue(Et)}else{const qe=Ue(dayjs(Fe));ze=qe,Pt=qe}$e=$e.startOf("d").add(ze,"ms"),Ve=Ve.startOf("d").add(Pt,"ms")}he.value=void 0,pe.value=void 0,i.value=$e,g.value=Ve};return watch(t,$e=>{$e&&Oe()},{immediate:!0}),watch(()=>n.parsedValue,$e=>{(!($e!=null&&$e.length)||!isEqual$1($e,[he.value,pe.value]))&&Ne($e)},{immediate:!0}),watch(()=>n.visible,()=>{n.visible&&Ne(n.parsedValue)},{immediate:!0}),{minDate:he,maxDate:pe,rangeState:_e,lang:ue,ppNs:ae,drpNs:oe,handleChangeRange:Ce,handleRangeConfirm:xe,handleShortcutClick:de,onSelect:Ie,parseValue:Ne,t:le}},usePanelDateRange=(n,t,r,i)=>{const g=ref("date"),$=ref(),V=ref("date"),re=ref(),ie=inject(PICKER_BASE_INJECTION_KEY),{disabledDate:ae}=ie.props,{t:oe,lang:le}=useLocale(),ue=computed(()=>r.value.year()),de=computed(()=>r.value.month()),he=computed(()=>i.value.year()),pe=computed(()=>i.value.month());function _e($e,Ve){const Ue=oe("el.datepicker.year");if($e.value==="year"){const Fe=Math.floor(Ve.value/10)*10;return Ue?`${Fe} ${Ue} - ${Fe+9} ${Ue}`:`${Fe} - ${Fe+9}`}return`${Ve.value} ${Ue}`}function Ce($e){$e==null||$e.focus()}async function xe($e,Ve){if(n.disabled)return;const Ue=$e==="left"?g:V,Fe=$e==="left"?$:re;Ue.value=Ve,await nextTick(),Ce(Fe.value)}async function Ie($e,Ve,Ue){if(n.disabled)return;const Fe=Ve==="left",ze=Fe?r:i,Pt=Fe?i:r,qe=Fe?g:V,Et=Fe?$:re;if($e==="year"){const kt=ze.value.year(Ue);ze.value=getValidDateOfYear(kt,le.value,ae)}$e==="month"&&(ze.value=getValidDateOfMonth(ze.value,ze.value.year(),Ue,le.value,ae)),n.unlinkPanels||(Pt.value=Ve==="left"?ze.value.add(1,"month"):ze.value.subtract(1,"month")),qe.value=$e==="year"?"month":"date",await nextTick(),Ce(Et.value),Ne($e)}function Ne($e){t("panel-change",[r.value.toDate(),i.value.toDate()],$e)}function Oe($e,Ve,Ue){const Fe=Ue?"add":"subtract";return $e==="year"?Ve[Fe](10,"year"):Ve[Fe](1,"year")}return{leftCurrentView:g,rightCurrentView:V,leftCurrentViewRef:$,rightCurrentViewRef:re,leftYear:ue,rightYear:he,leftMonth:de,rightMonth:pe,leftYearLabel:computed(()=>_e(g,ue)),rightYearLabel:computed(()=>_e(V,he)),showLeftPicker:$e=>xe("left",$e),showRightPicker:$e=>xe("right",$e),handleLeftYearPick:$e=>Ie("year","left",$e),handleRightYearPick:$e=>Ie("year","right",$e),handleLeftMonthPick:$e=>Ie("month","left",$e),handleRightMonthPick:$e=>Ie("month","right",$e),handlePanelChange:Ne,adjustDateByView:Oe}},_hoisted_1$18=["disabled","onClick"],_hoisted_2$L=["aria-label","disabled"],_hoisted_3$l=["aria-label","disabled"],_hoisted_4$g=["disabled","aria-label"],_hoisted_5$8=["disabled","aria-label"],_hoisted_6$2=["tabindex","aria-disabled"],_hoisted_7$1=["tabindex","aria-disabled"],_hoisted_8$1=["disabled","aria-label"],_hoisted_9$1=["disabled","aria-label"],_hoisted_10$1=["aria-label","disabled"],_hoisted_11$1=["disabled","aria-label"],_hoisted_12$1=["tabindex","aria-disabled"],_hoisted_13$1=["tabindex","aria-disabled"],unit$2="month",_sfc_main$1V=defineComponent({__name:"panel-date-range",props:panelDateRangeProps,emits:["pick","set-picker-option","calendar-change","panel-change","clear"],setup(n,{emit:t}){const r=n,i=t,g=inject(PICKER_BASE_INJECTION_KEY),$=inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,void 0),{disabledDate:V,cellClassName:re,defaultTime:ie,clearable:ae}=g.props,oe=toRef$1(g.props,"format"),le=toRef$1(g.props,"shortcuts"),ue=toRef$1(g.props,"defaultValue"),{lang:de}=useLocale(),he=ref(dayjs().locale(de.value)),pe=ref(dayjs().locale(de.value).add(1,unit$2)),{minDate:_e,maxDate:Ce,rangeState:xe,ppNs:Ie,drpNs:Ne,handleChangeRange:Oe,handleRangeConfirm:$e,handleShortcutClick:Ve,onSelect:Ue,parseValue:Fe,t:ze}=useRangePicker(r,{defaultValue:ue,defaultTime:ie,leftDate:he,rightDate:pe,unit:unit$2,sortDates:Tr});watch(()=>r.visible,fr=>{!fr&&xe.value.selecting&&(Fe(r.parsedValue),Ue(!1))});const Pt=ref({min:null,max:null}),qe=ref({min:null,max:null}),{leftCurrentView:Et,rightCurrentView:kt,leftCurrentViewRef:At,rightCurrentViewRef:Dt,leftYear:Lt,rightYear:jt,leftMonth:hn,rightMonth:vn,leftYearLabel:_n,rightYearLabel:wn,showLeftPicker:bn,showRightPicker:Cn,handleLeftYearPick:Sn,handleRightYearPick:Tn,handleLeftMonthPick:En,handleRightMonthPick:kn,handlePanelChange:$n,adjustDateByView:An}=usePanelDateRange(r,i,he,pe),xn=computed(()=>!!le.value.length),Ln=computed(()=>Pt.value.min!==null?Pt.value.min:_e.value?_e.value.format(Xn.value):""),Nn=computed(()=>Pt.value.max!==null?Pt.value.max:Ce.value||_e.value?(Ce.value||_e.value).format(Xn.value):""),Pn=computed(()=>qe.value.min!==null?qe.value.min:_e.value?_e.value.format(Hn.value):""),On=computed(()=>qe.value.max!==null?qe.value.max:Ce.value||_e.value?(Ce.value||_e.value).format(Hn.value):""),Hn=computed(()=>r.timeFormat||extractTimeFormat(oe.value||"")||DEFAULT_FORMATS_TIME),Xn=computed(()=>r.dateFormat||extractDateFormat(oe.value||"")||DEFAULT_FORMATS_DATE),In=fr=>isValidRange(fr)&&(V?!V(fr[0].toDate())&&!V(fr[1].toDate()):!0),or=()=>{he.value=An(Et.value,he.value,!1),r.unlinkPanels||(pe.value=he.value.add(1,"month")),$n("year")},Qn=()=>{he.value=he.value.subtract(1,"month"),r.unlinkPanels||(pe.value=he.value.add(1,"month")),$n("month")},Zn=()=>{r.unlinkPanels?pe.value=An(kt.value,pe.value,!0):(he.value=An(kt.value,he.value,!0),pe.value=he.value.add(1,"month")),$n("year")},Gn=()=>{r.unlinkPanels?pe.value=pe.value.add(1,"month"):(he.value=he.value.add(1,"month"),pe.value=he.value.add(1,"month")),$n("month")},Rn=()=>{he.value=An(Et.value,he.value,!0),$n("year")},Mn=()=>{he.value=he.value.add(1,"month"),$n("month")},Bn=()=>{pe.value=An(kt.value,pe.value,!1),$n("year")},qn=()=>{pe.value=pe.value.subtract(1,"month"),$n("month")},zn=computed(()=>{const fr=(hn.value+1)%12,_r=hn.value+1>=12?1:0;return r.unlinkPanels&&new Date(Lt.value+_r,fr)r.unlinkPanels&&jt.value*12+vn.value-(Lt.value*12+hn.value+1)>=12),tr=useFormDisabled(),hr=computed(()=>!(_e.value&&Ce.value&&!xe.value.selecting&&isValidRange([_e.value,Ce.value])&&!tr.value)),ir=computed(()=>r.type==="datetime"||r.type==="datetimerange"),pr=(fr,_r)=>{if(fr)return ie?dayjs(ie[_r]||ie).locale(de.value).year(fr.year()).month(fr.month()).date(fr.date()):fr},rr=(fr,_r=!0)=>{const Cr=fr.minDate,zr=fr.maxDate,Ur=pr(Cr,0),jr=pr(zr,1);Ce.value===jr&&_e.value===Ur||(i("calendar-change",[Cr.toDate(),zr&&zr.toDate()]),Ce.value=jr,_e.value=Ur,!ir.value&&_r&&(_r=!Ur||!jr),$e(_r))},lr=ref(!1),Yn=ref(!1),er=()=>{lr.value=!1},Fn=()=>{Yn.value=!1},cr=(fr,_r)=>{Pt.value[_r]=fr;const Cr=dayjs(fr,Xn.value).locale(de.value);if(Cr.isValid()){if(V&&V(Cr.toDate()))return;_r==="min"?(he.value=Cr,_e.value=(_e.value||he.value).year(Cr.year()).month(Cr.month()).date(Cr.date()),!r.unlinkPanels&&(!Ce.value||Ce.value.isBefore(_e.value))&&(pe.value=Cr.add(1,"month"),Ce.value=_e.value.add(1,"month"))):(pe.value=Cr,Ce.value=(Ce.value||pe.value).year(Cr.year()).month(Cr.month()).date(Cr.date()),!r.unlinkPanels&&(!_e.value||_e.value.isAfter(Ce.value))&&(he.value=Cr.subtract(1,"month"),_e.value=Ce.value.subtract(1,"month"))),Tr(_e.value,Ce.value),$e(!0)}},Un=(fr,_r)=>{Pt.value[_r]=null},gr=(fr,_r)=>{qe.value[_r]=fr;const Cr=dayjs(fr,Hn.value).locale(de.value);Cr.isValid()&&(_r==="min"?(lr.value=!0,_e.value=(_e.value||he.value).hour(Cr.hour()).minute(Cr.minute()).second(Cr.second()),he.value=_e.value):(Yn.value=!0,Ce.value=(Ce.value||pe.value).hour(Cr.hour()).minute(Cr.minute()).second(Cr.second()),pe.value=Ce.value))},vr=(fr,_r)=>{qe.value[_r]=null,_r==="min"?(he.value=_e.value,lr.value=!1,(!Ce.value||Ce.value.isBefore(_e.value))&&(Ce.value=_e.value)):(pe.value=Ce.value,Yn.value=!1,Ce.value&&Ce.value.isBefore(_e.value)&&(_e.value=Ce.value)),$e(!0)},yr=(fr,_r,Cr)=>{qe.value.min||(fr&&(_e.value=(_e.value||he.value).hour(fr.hour()).minute(fr.minute()).second(fr.second())),Cr||(lr.value=_r),(!Ce.value||Ce.value.isBefore(_e.value))&&(Ce.value=_e.value,pe.value=fr,nextTick(()=>{Fe(r.parsedValue)})),$e(!0))},Wn=(fr,_r,Cr)=>{qe.value.max||(fr&&(Ce.value=(Ce.value||pe.value).hour(fr.hour()).minute(fr.minute()).second(fr.second())),Cr||(Yn.value=_r),Ce.value&&Ce.value.isBefore(_e.value)&&(_e.value=Ce.value),$e(!0))},Jn=()=>{sr(),i("clear")},sr=()=>{let fr=null;g!=null&&g.emptyValues&&(fr=g.emptyValues.valueOnClear.value),he.value=getDefaultValue(unref(ue),{lang:unref(de),unit:"month",unlinkPanels:r.unlinkPanels})[0],pe.value=he.value.add(1,"month"),Ce.value=void 0,_e.value=void 0,$e(!0),i("pick",fr)},Sr=fr=>correctlyParseUserInput(fr,oe.value||"",de.value,$);function Tr(fr,_r){if(r.unlinkPanels&&_r){const Cr=(fr==null?void 0:fr.year())||0,zr=(fr==null?void 0:fr.month())||0,Ur=_r.year(),jr=_r.month();pe.value=Cr===Ur&&zr===jr?_r.add(1,unit$2):_r}else pe.value=he.value.add(1,unit$2),_r&&(pe.value=pe.value.hour(_r.hour()).minute(_r.minute()).second(_r.second()))}return i("set-picker-option",["isValidValue",In]),i("set-picker-option",["parseUserInput",Sr]),i("set-picker-option",["handleClear",sr]),(fr,_r)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(Ie).b(),unref(Ne).b(),unref(Ie).is("border",fr.border),unref(Ie).is("disabled",unref(tr)),{"has-sidebar":fr.$slots.sidebar||xn.value,"has-time":ir.value}])},[createBaseVNode("div",{class:normalizeClass(unref(Ie).e("body-wrapper"))},[renderSlot(fr.$slots,"sidebar",{class:normalizeClass(unref(Ie).e("sidebar"))}),xn.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ie).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(le.value,(Cr,zr)=>(openBlock(),createElementBlock("button",{key:zr,type:"button",disabled:unref(tr),class:normalizeClass(unref(Ie).e("shortcut")),onClick:Ur=>unref(Ve)(Cr)},toDisplayString(Cr.text),11,_hoisted_1$18))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Ie).e("body"))},[ir.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ne).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(Ne).e("editors-wrap"))},[createBaseVNode("span",{class:normalizeClass(unref(Ne).e("time-picker-wrap"))},[createVNode$1(unref(ElInput),{size:"small",disabled:unref(xe).selecting||unref(tr),placeholder:unref(ze)("el.datepicker.startDate"),class:normalizeClass(unref(Ne).e("editor")),"model-value":Ln.value,"validate-event":!1,readonly:!fr.editable,onInput:_r[0]||(_r[0]=Cr=>cr(Cr,"min")),onChange:_r[1]||(_r[1]=Cr=>Un(Cr,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(Ne).e("time-picker-wrap"))},[createVNode$1(unref(ElInput),{size:"small",class:normalizeClass(unref(Ne).e("editor")),disabled:unref(xe).selecting||unref(tr),placeholder:unref(ze)("el.datepicker.startTime"),"model-value":Pn.value,"validate-event":!1,readonly:!fr.editable,onFocus:_r[2]||(_r[2]=Cr=>lr.value=!0),onInput:_r[3]||(_r[3]=Cr=>gr(Cr,"min")),onChange:_r[4]||(_r[4]=Cr=>vr(Cr,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),createVNode$1(unref(TimePickPanel),{visible:lr.value,format:Hn.value,"datetime-role":"start","parsed-value":unref(_e)||he.value,onPick:yr},null,8,["visible","format","parsed-value"])],2)),[[unref(ClickOutside),er]])],2),createBaseVNode("span",null,[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1})]),createBaseVNode("span",{class:normalizeClass([unref(Ne).e("editors-wrap"),"is-right"])},[createBaseVNode("span",{class:normalizeClass(unref(Ne).e("time-picker-wrap"))},[createVNode$1(unref(ElInput),{size:"small",class:normalizeClass(unref(Ne).e("editor")),disabled:unref(xe).selecting||unref(tr),placeholder:unref(ze)("el.datepicker.endDate"),"model-value":Nn.value,readonly:!unref(_e)||!fr.editable,"validate-event":!1,onInput:_r[5]||(_r[5]=Cr=>cr(Cr,"max")),onChange:_r[6]||(_r[6]=Cr=>Un(Cr,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(Ne).e("time-picker-wrap"))},[createVNode$1(unref(ElInput),{size:"small",class:normalizeClass(unref(Ne).e("editor")),disabled:unref(xe).selecting||unref(tr),placeholder:unref(ze)("el.datepicker.endTime"),"model-value":On.value,readonly:!unref(_e)||!fr.editable,"validate-event":!1,onFocus:_r[7]||(_r[7]=Cr=>unref(_e)&&(Yn.value=!0)),onInput:_r[8]||(_r[8]=Cr=>gr(Cr,"max")),onChange:_r[9]||(_r[9]=Cr=>vr(Cr,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),createVNode$1(unref(TimePickPanel),{"datetime-role":"end",visible:Yn.value,format:Hn.value,"parsed-value":unref(Ce)||pe.value,onPick:Wn},null,8,["visible","format","parsed-value"])],2)),[[unref(ClickOutside),Fn]])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([[unref(Ie).e("content"),unref(Ne).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(Ne).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ie).e("icon-btn"),"d-arrow-left"]),"aria-label":unref(ze)("el.datepicker.prevYear"),disabled:unref(tr),onClick:or},[renderSlot(fr.$slots,"prev-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_left_default))]),_:1})])],10,_hoisted_2$L),withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ie).e("icon-btn"),"arrow-left"]),"aria-label":unref(ze)("el.datepicker.prevMonth"),disabled:unref(tr),onClick:Qn},[renderSlot(fr.$slots,"prev-month",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_left_default))]),_:1})])],10,_hoisted_3$l),[[vShow,unref(Et)==="date"]]),fr.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!jn.value||unref(tr),class:normalizeClass([[unref(Ie).e("icon-btn"),unref(Ie).is("disabled",!jn.value||unref(tr))],"d-arrow-right"]),"aria-label":unref(ze)("el.datepicker.nextYear"),onClick:Rn},[renderSlot(fr.$slots,"next-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_right_default))]),_:1})])],10,_hoisted_4$g)):createCommentVNode("v-if",!0),fr.unlinkPanels&&unref(Et)==="date"?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!zn.value||unref(tr),class:normalizeClass([[unref(Ie).e("icon-btn"),unref(Ie).is("disabled",!zn.value||unref(tr))],"arrow-right"]),"aria-label":unref(ze)("el.datepicker.nextMonth"),onClick:Mn},[renderSlot(fr.$slots,"next-month",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1})])],10,_hoisted_5$8)):createCommentVNode("v-if",!0),createBaseVNode("div",null,[createBaseVNode("span",{role:"button",class:normalizeClass(unref(Ne).e("header-label")),"aria-live":"polite",tabindex:fr.disabled?void 0:0,"aria-disabled":fr.disabled,onKeydown:_r[10]||(_r[10]=withKeys(Cr=>unref(bn)("year"),["enter"])),onClick:_r[11]||(_r[11]=Cr=>unref(bn)("year"))},toDisplayString(unref(_n)),43,_hoisted_6$2),withDirectives(createBaseVNode("span",{role:"button","aria-live":"polite",tabindex:fr.disabled?void 0:0,"aria-disabled":fr.disabled,class:normalizeClass([unref(Ne).e("header-label"),{active:unref(Et)==="month"}]),onKeydown:_r[12]||(_r[12]=withKeys(Cr=>unref(bn)("month"),["enter"])),onClick:_r[13]||(_r[13]=Cr=>unref(bn)("month"))},toDisplayString(unref(ze)(`el.datepicker.month${he.value.month()+1}`)),43,_hoisted_7$1),[[vShow,unref(Et)==="date"]])])],2),unref(Et)==="date"?(openBlock(),createBlock(DateTable,{key:0,ref_key:"leftCurrentViewRef",ref:At,"selection-mode":"range",date:he.value,"min-date":unref(_e),"max-date":unref(Ce),"range-state":unref(xe),"disabled-date":unref(V),"cell-class-name":unref(re),"show-week-number":fr.showWeekNumber,disabled:unref(tr),onChangerange:unref(Oe),onPick:rr,onSelect:unref(Ue)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):createCommentVNode("v-if",!0),unref(Et)==="year"?(openBlock(),createBlock(YearTable,{key:1,ref_key:"leftCurrentViewRef",ref:At,"selection-mode":"year",date:he.value,"disabled-date":unref(V),"parsed-value":fr.parsedValue,disabled:unref(tr),onPick:unref(Sn)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):createCommentVNode("v-if",!0),unref(Et)==="month"?(openBlock(),createBlock(MonthTable,{key:2,ref_key:"leftCurrentViewRef",ref:At,"selection-mode":"month",date:he.value,"parsed-value":fr.parsedValue,"disabled-date":unref(V),disabled:unref(tr),onPick:unref(En)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{class:normalizeClass([[unref(Ie).e("content"),unref(Ne).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(Ne).e("header"))},[fr.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!jn.value||unref(tr),class:normalizeClass([unref(Ie).e("icon-btn"),"d-arrow-left"]),"aria-label":unref(ze)("el.datepicker.prevYear"),onClick:Bn},[renderSlot(fr.$slots,"prev-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_left_default))]),_:1})])],10,_hoisted_8$1)):createCommentVNode("v-if",!0),fr.unlinkPanels&&unref(kt)==="date"?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!zn.value||unref(tr),class:normalizeClass([unref(Ie).e("icon-btn"),"arrow-left"]),"aria-label":unref(ze)("el.datepicker.prevMonth"),onClick:qn},[renderSlot(fr.$slots,"prev-month",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_left_default))]),_:1})])],10,_hoisted_9$1)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button","aria-label":unref(ze)("el.datepicker.nextYear"),class:normalizeClass([unref(Ie).e("icon-btn"),"d-arrow-right"]),disabled:unref(tr),onClick:Zn},[renderSlot(fr.$slots,"next-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_right_default))]),_:1})])],10,_hoisted_10$1),withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ie).e("icon-btn"),"arrow-right"]),disabled:unref(tr),"aria-label":unref(ze)("el.datepicker.nextMonth"),onClick:Gn},[renderSlot(fr.$slots,"next-month",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1})])],10,_hoisted_11$1),[[vShow,unref(kt)==="date"]]),createBaseVNode("div",null,[createBaseVNode("span",{role:"button",class:normalizeClass(unref(Ne).e("header-label")),"aria-live":"polite",tabindex:fr.disabled?void 0:0,"aria-disabled":fr.disabled,onKeydown:_r[14]||(_r[14]=withKeys(Cr=>unref(Cn)("year"),["enter"])),onClick:_r[15]||(_r[15]=Cr=>unref(Cn)("year"))},toDisplayString(unref(wn)),43,_hoisted_12$1),withDirectives(createBaseVNode("span",{role:"button","aria-live":"polite",tabindex:fr.disabled?void 0:0,"aria-disabled":fr.disabled,class:normalizeClass([unref(Ne).e("header-label"),{active:unref(kt)==="month"}]),onKeydown:_r[16]||(_r[16]=withKeys(Cr=>unref(Cn)("month"),["enter"])),onClick:_r[17]||(_r[17]=Cr=>unref(Cn)("month"))},toDisplayString(unref(ze)(`el.datepicker.month${pe.value.month()+1}`)),43,_hoisted_13$1),[[vShow,unref(kt)==="date"]])])],2),unref(kt)==="date"?(openBlock(),createBlock(DateTable,{key:0,ref_key:"rightCurrentViewRef",ref:Dt,"selection-mode":"range",date:pe.value,"min-date":unref(_e),"max-date":unref(Ce),"range-state":unref(xe),"disabled-date":unref(V),"cell-class-name":unref(re),"show-week-number":fr.showWeekNumber,disabled:unref(tr),onChangerange:unref(Oe),onPick:rr,onSelect:unref(Ue)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):createCommentVNode("v-if",!0),unref(kt)==="year"?(openBlock(),createBlock(YearTable,{key:1,ref_key:"rightCurrentViewRef",ref:Dt,"selection-mode":"year",date:pe.value,"disabled-date":unref(V),"parsed-value":fr.parsedValue,disabled:unref(tr),onPick:unref(Tn)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):createCommentVNode("v-if",!0),unref(kt)==="month"?(openBlock(),createBlock(MonthTable,{key:2,ref_key:"rightCurrentViewRef",ref:Dt,"selection-mode":"month",date:pe.value,"parsed-value":fr.parsedValue,"disabled-date":unref(V),disabled:unref(tr),onPick:unref(kn)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):createCommentVNode("v-if",!0)],2)],2)],2),fr.showFooter&&ir.value&&(fr.showConfirm||unref(ae))?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ie).e("footer"))},[unref(ae)?(openBlock(),createBlock(unref(ElButton),{key:0,text:"",size:"small",class:normalizeClass(unref(Ie).e("link-btn")),onClick:Jn},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(ze)("el.datepicker.clear")),1)]),_:1},8,["class"])):createCommentVNode("v-if",!0),fr.showConfirm?(openBlock(),createBlock(unref(ElButton),{key:1,plain:"",size:"small",class:normalizeClass(unref(Ie).e("link-btn")),disabled:hr.value,onClick:_r[18]||(_r[18]=Cr=>unref($e)(!1))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(ze)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],2))}});var DateRangePickPanel=_export_sfc(_sfc_main$1V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/panel-date-range.vue"]]);const panelMonthRangeProps=buildProps({...panelRangeSharedProps}),panelMonthRangeEmits=["pick","set-picker-option","calendar-change"],useMonthRangeHeader=({unlinkPanels:n,leftDate:t,rightDate:r})=>{const{t:i}=useLocale(),g=()=>{t.value=t.value.subtract(1,"year"),n.value||(r.value=r.value.subtract(1,"year"))},$=()=>{n.value||(t.value=t.value.add(1,"year")),r.value=r.value.add(1,"year")},V=()=>{t.value=t.value.add(1,"year")},re=()=>{r.value=r.value.subtract(1,"year")},ie=computed(()=>`${t.value.year()} ${i("el.datepicker.year")}`),ae=computed(()=>`${r.value.year()} ${i("el.datepicker.year")}`),oe=computed(()=>t.value.year()),le=computed(()=>r.value.year()===t.value.year()?t.value.year()+1:r.value.year());return{leftPrevYear:g,rightNextYear:$,leftNextYear:V,rightPrevYear:re,leftLabel:ie,rightLabel:ae,leftYear:oe,rightYear:le}},_hoisted_1$17=["disabled","onClick"],_hoisted_2$K=["disabled"],_hoisted_3$k=["disabled"],_hoisted_4$f=["disabled"],_hoisted_5$7=["disabled"],unit$1="year",_sfc_main$1U=defineComponent({name:"DatePickerMonthRange",__name:"panel-month-range",props:panelMonthRangeProps,emits:panelMonthRangeEmits,setup(n,{emit:t}){const r=n,i=t,{lang:g}=useLocale(),$=inject(PICKER_BASE_INJECTION_KEY),V=inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,void 0),{shortcuts:re,disabledDate:ie,cellClassName:ae}=$.props,oe=toRef$1($.props,"format"),le=toRef$1($.props,"defaultValue"),ue=ref(dayjs().locale(g.value)),de=ref(dayjs().locale(g.value).add(1,unit$1)),{minDate:he,maxDate:pe,rangeState:_e,ppNs:Ce,drpNs:xe,handleChangeRange:Ie,handleRangeConfirm:Ne,handleShortcutClick:Oe,onSelect:$e,parseValue:Ve}=useRangePicker(r,{defaultValue:le,leftDate:ue,rightDate:de,unit:unit$1,sortDates:_n}),Ue=computed(()=>!!re.length),{leftPrevYear:Fe,rightNextYear:ze,leftNextYear:Pt,rightPrevYear:qe,leftLabel:Et,rightLabel:kt,leftYear:At,rightYear:Dt}=useMonthRangeHeader({unlinkPanels:toRef$1(r,"unlinkPanels"),leftDate:ue,rightDate:de}),Lt=computed(()=>r.unlinkPanels&&Dt.value>At.value+1),jt=(bn,Cn=!0)=>{const Sn=bn.minDate,Tn=bn.maxDate;pe.value===Tn&&he.value===Sn||(i("calendar-change",[Sn.toDate(),Tn&&Tn.toDate()]),pe.value=Tn,he.value=Sn,Cn&&Ne())},hn=()=>{let bn=null;$!=null&&$.emptyValues&&(bn=$.emptyValues.valueOnClear.value),ue.value=getDefaultValue(unref(le),{lang:unref(g),unit:"year",unlinkPanels:r.unlinkPanels})[0],de.value=ue.value.add(1,"year"),i("pick",bn)},vn=bn=>correctlyParseUserInput(bn,oe.value,g.value,V);function _n(bn,Cn){if(r.unlinkPanels&&Cn){const Sn=(bn==null?void 0:bn.year())||0,Tn=Cn.year();de.value=Sn===Tn?Cn.add(1,unit$1):Cn}else de.value=ue.value.add(1,unit$1)}const wn=useFormDisabled();return watch(()=>r.visible,bn=>{!bn&&_e.value.selecting&&(Ve(r.parsedValue),$e(!1))}),i("set-picker-option",["isValidValue",isValidRange]),i("set-picker-option",["parseUserInput",vn]),i("set-picker-option",["handleClear",hn]),(bn,Cn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(Ce).b(),unref(xe).b(),unref(Ce).is("border",bn.border),unref(Ce).is("disabled",unref(wn)),{"has-sidebar":!!bn.$slots.sidebar||Ue.value}])},[createBaseVNode("div",{class:normalizeClass(unref(Ce).e("body-wrapper"))},[renderSlot(bn.$slots,"sidebar",{class:normalizeClass(unref(Ce).e("sidebar"))}),Ue.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ce).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(re),(Sn,Tn)=>(openBlock(),createElementBlock("button",{key:Tn,type:"button",class:normalizeClass(unref(Ce).e("shortcut")),disabled:unref(wn),onClick:En=>unref(Oe)(Sn)},toDisplayString(Sn.text),11,_hoisted_1$17))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Ce).e("body"))},[createBaseVNode("div",{class:normalizeClass([[unref(Ce).e("content"),unref(xe).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(xe).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ce).e("icon-btn"),"d-arrow-left"]),disabled:unref(wn),onClick:Cn[0]||(Cn[0]=(...Sn)=>unref(Fe)&&unref(Fe)(...Sn))},[renderSlot(bn.$slots,"prev-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_left_default))]),_:1})])],10,_hoisted_2$K),bn.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!Lt.value||unref(wn),class:normalizeClass([[unref(Ce).e("icon-btn"),unref(Ce).is("disabled",!Lt.value||unref(wn))],"d-arrow-right"]),onClick:Cn[1]||(Cn[1]=(...Sn)=>unref(Pt)&&unref(Pt)(...Sn))},[renderSlot(bn.$slots,"next-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_right_default))]),_:1})])],10,_hoisted_3$k)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString(unref(Et)),1)],2),createVNode$1(MonthTable,{"selection-mode":"range",date:ue.value,"min-date":unref(he),"max-date":unref(pe),"range-state":unref(_e),"disabled-date":unref(ie),disabled:unref(wn),"cell-class-name":unref(ae),onChangerange:unref(Ie),onPick:jt,onSelect:unref($e)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(Ce).e("content"),unref(xe).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(xe).e("header"))},[bn.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!Lt.value||unref(wn),class:normalizeClass([[unref(Ce).e("icon-btn"),unref(Ce).is("disabled",!Lt.value||unref(wn))],"d-arrow-left"]),onClick:Cn[2]||(Cn[2]=(...Sn)=>unref(qe)&&unref(qe)(...Sn))},[renderSlot(bn.$slots,"prev-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_left_default))]),_:1})])],10,_hoisted_4$f)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ce).e("icon-btn"),"d-arrow-right"]),disabled:unref(wn),onClick:Cn[3]||(Cn[3]=(...Sn)=>unref(ze)&&unref(ze)(...Sn))},[renderSlot(bn.$slots,"next-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_right_default))]),_:1})])],10,_hoisted_5$7),createBaseVNode("div",null,toDisplayString(unref(kt)),1)],2),createVNode$1(MonthTable,{"selection-mode":"range",date:de.value,"min-date":unref(he),"max-date":unref(pe),"range-state":unref(_e),"disabled-date":unref(ie),disabled:unref(wn),"cell-class-name":unref(ae),onChangerange:unref(Ie),onPick:jt,onSelect:unref($e)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});var MonthRangePickPanel=_export_sfc(_sfc_main$1U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/panel-month-range.vue"]]);const panelYearRangeProps=buildProps({...panelRangeSharedProps}),panelYearRangeEmits=["pick","set-picker-option","calendar-change"],useYearRangeHeader=({unlinkPanels:n,leftDate:t,rightDate:r})=>{const i=()=>{t.value=t.value.subtract(10,"year"),n.value||(r.value=r.value.subtract(10,"year"))},g=()=>{n.value||(t.value=t.value.add(10,"year")),r.value=r.value.add(10,"year")},$=()=>{t.value=t.value.add(10,"year")},V=()=>{r.value=r.value.subtract(10,"year")},re=computed(()=>{const le=Math.floor(t.value.year()/10)*10;return`${le}-${le+9}`}),ie=computed(()=>{const le=Math.floor(r.value.year()/10)*10;return`${le}-${le+9}`}),ae=computed(()=>Math.floor(t.value.year()/10)*10+9),oe=computed(()=>Math.floor(r.value.year()/10)*10);return{leftPrevYear:i,rightNextYear:g,leftNextYear:$,rightPrevYear:V,leftLabel:re,rightLabel:ie,leftYear:ae,rightYear:oe}},_hoisted_1$16=["disabled","onClick"],_hoisted_2$J=["disabled"],_hoisted_3$j=["disabled"],_hoisted_4$e=["disabled"],_hoisted_5$6=["disabled"],step=10,unit="year",_sfc_main$1T=defineComponent({name:"DatePickerYearRange",__name:"panel-year-range",props:panelYearRangeProps,emits:panelYearRangeEmits,setup(n,{emit:t}){const r=n,i=t,{lang:g}=useLocale(),$=ref(dayjs().locale(g.value)),V=ref(dayjs().locale(g.value).add(step,unit)),re=inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,void 0),ie=inject(PICKER_BASE_INJECTION_KEY),{shortcuts:ae,disabledDate:oe,cellClassName:le}=ie.props,ue=toRef$1(ie.props,"format"),de=toRef$1(ie.props,"defaultValue"),{minDate:he,maxDate:pe,rangeState:_e,ppNs:Ce,drpNs:xe,handleChangeRange:Ie,handleRangeConfirm:Ne,handleShortcutClick:Oe,onSelect:$e,parseValue:Ve}=useRangePicker(r,{defaultValue:de,leftDate:$,rightDate:V,step,unit,sortDates:Tn}),{leftPrevYear:Ue,rightNextYear:Fe,leftNextYear:ze,rightPrevYear:Pt,leftLabel:qe,rightLabel:Et,leftYear:kt,rightYear:At}=useYearRangeHeader({unlinkPanels:toRef$1(r,"unlinkPanels"),leftDate:$,rightDate:V}),Dt=useFormDisabled(),Lt=computed(()=>!!ae.length),jt=computed(()=>[Ce.b(),xe.b(),Ce.is("border",r.border),Ce.is("disabled",Dt.value),{"has-sidebar":!!useSlots().sidebar||Lt.value}]),hn=computed(()=>({content:[Ce.e("content"),xe.e("content"),"is-left"],arrowLeftBtn:[Ce.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[Ce.e("icon-btn"),Ce.is("disabled",!_n.value||Dt.value),"d-arrow-right"]})),vn=computed(()=>({content:[Ce.e("content"),xe.e("content"),"is-right"],arrowLeftBtn:[Ce.e("icon-btn"),Ce.is("disabled",!_n.value||Dt.value),"d-arrow-left"],arrowRightBtn:[Ce.e("icon-btn"),"d-arrow-right"]})),_n=computed(()=>r.unlinkPanels&&At.value>kt.value+1),wn=(En,kn=!0)=>{const $n=En.minDate,An=En.maxDate;pe.value===An&&he.value===$n||(i("calendar-change",[$n.toDate(),An&&An.toDate()]),pe.value=An,he.value=$n,kn&&Ne())},bn=En=>correctlyParseUserInput(En,ue.value,g.value,re),Cn=En=>isValidRange(En)&&(oe?!oe(En[0].toDate())&&!oe(En[1].toDate()):!0),Sn=()=>{let En=null;ie!=null&&ie.emptyValues&&(En=ie.emptyValues.valueOnClear.value);const kn=getDefaultValue(unref(de),{lang:unref(g),step,unit,unlinkPanels:r.unlinkPanels});$.value=kn[0],V.value=kn[1],i("pick",En)};function Tn(En,kn){if(r.unlinkPanels&&kn){const $n=(En==null?void 0:En.year())||0,An=kn.year();V.value=$n+step>An?kn.add(step,unit):kn}else V.value=$.value.add(step,unit)}return watch(()=>r.visible,En=>{!En&&_e.value.selecting&&(Ve(r.parsedValue),$e(!1))}),i("set-picker-option",["isValidValue",Cn]),i("set-picker-option",["parseUserInput",bn]),i("set-picker-option",["handleClear",Sn]),(En,kn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(jt.value)},[createBaseVNode("div",{class:normalizeClass(unref(Ce).e("body-wrapper"))},[renderSlot(En.$slots,"sidebar",{class:normalizeClass(unref(Ce).e("sidebar"))}),Lt.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ce).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ae),($n,An)=>(openBlock(),createElementBlock("button",{key:An,type:"button",class:normalizeClass(unref(Ce).e("shortcut")),disabled:unref(Dt),onClick:xn=>unref(Oe)($n)},toDisplayString($n.text),11,_hoisted_1$16))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Ce).e("body"))},[createBaseVNode("div",{class:normalizeClass(hn.value.content)},[createBaseVNode("div",{class:normalizeClass(unref(xe).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass(hn.value.arrowLeftBtn),disabled:unref(Dt),onClick:kn[0]||(kn[0]=(...$n)=>unref(Ue)&&unref(Ue)(...$n))},[renderSlot(En.$slots,"prev-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_left_default))]),_:1})])],10,_hoisted_2$J),En.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!_n.value||unref(Dt),class:normalizeClass(hn.value.arrowRightBtn),onClick:kn[1]||(kn[1]=(...$n)=>unref(ze)&&unref(ze)(...$n))},[renderSlot(En.$slots,"next-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_right_default))]),_:1})])],10,_hoisted_3$j)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString(unref(qe)),1)],2),createVNode$1(YearTable,{"selection-mode":"range",date:$.value,"min-date":unref(he),"max-date":unref(pe),"range-state":unref(_e),"disabled-date":unref(oe),disabled:unref(Dt),"cell-class-name":unref(le),onChangerange:unref(Ie),onPick:wn,onSelect:unref($e)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass(vn.value.content)},[createBaseVNode("div",{class:normalizeClass(unref(xe).e("header"))},[En.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!_n.value||unref(Dt),class:normalizeClass(vn.value.arrowLeftBtn),onClick:kn[2]||(kn[2]=(...$n)=>unref(Pt)&&unref(Pt)(...$n))},[renderSlot(En.$slots,"prev-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_left_default))]),_:1})])],10,_hoisted_4$e)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass(vn.value.arrowRightBtn),disabled:unref(Dt),onClick:kn[3]||(kn[3]=(...$n)=>unref(Fe)&&unref(Fe)(...$n))},[renderSlot(En.$slots,"next-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_right_default))]),_:1})])],10,_hoisted_5$6),createBaseVNode("div",null,toDisplayString(unref(Et)),1)],2),createVNode$1(YearTable,{"selection-mode":"range",date:V.value,"min-date":unref(he),"max-date":unref(pe),"range-state":unref(_e),"disabled-date":unref(oe),disabled:unref(Dt),"cell-class-name":unref(le),onChangerange:unref(Ie),onPick:wn,onSelect:unref($e)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});var YearRangePickPanel=_export_sfc(_sfc_main$1T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/panel-year-range.vue"]]);const getPanel=function(n){switch(n){case"daterange":case"datetimerange":return DateRangePickPanel;case"monthrange":return MonthRangePickPanel;case"yearrange":return YearRangePickPanel;default:return DatePickPanel}};function _isSlot$7(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}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 DatePickerPanel=defineComponent({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:datePickerPanelProps,emits:[UPDATE_MODEL_EVENT,"calendar-change","panel-change","visible-change","clear"],setup(n,{slots:t,emit:r,attrs:i}){const g=useNamespace("picker-panel"),$=inject(PICKER_BASE_INJECTION_KEY,void 0);if(isUndefined$1($)){const le=reactive({...toRefs(n)});provide(PICKER_BASE_INJECTION_KEY,{props:le})}provide(ROOT_PICKER_INJECTION_KEY,{slots:t,pickerNs:g});const{parsedValue:V,onCalendarChange:re,onPanelChange:ie,onSetPickerOption:ae,onPick:oe}=inject(ROOT_COMMON_PICKER_INJECTION_KEY,()=>useCommonPicker(n,r),!0);return()=>{const le=getPanel(n.type);return createVNode$1(le,mergeProps(omit$1(i,"onPick"),n,{parsedValue:V.value,"onSet-picker-option":ae,"onCalendar-change":re,"onPanel-change":ie,onClear:()=>r("clear"),onPick:oe}),_isSlot$7(t)?t:{default:()=>[t]})}}});const ElDatePickerPanel=withInstall(DatePickerPanel),datePickerProps=buildProps({...timePickerDefaultProps,type:{type:definePropType(String),default:"date"}});function _isSlot$6(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}var DatePicker=defineComponent({name:"ElDatePicker",install:null,props:datePickerProps,emits:[UPDATE_MODEL_EVENT],setup(n,{expose:t,emit:r,slots:i}){const g=computed(()=>!n.format);provide(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,g),provide(PICKER_POPPER_OPTIONS_INJECTION_KEY,reactive(toRef$1(n,"popperOptions")));const $=ref();t({focus:()=>{var ie;(ie=$.value)==null||ie.focus()},blur:()=>{var ie;(ie=$.value)==null||ie.blur()},handleOpen:()=>{var ie;(ie=$.value)==null||ie.handleOpen()},handleClose:()=>{var ie;(ie=$.value)==null||ie.handleClose()}});const re=ie=>{r(UPDATE_MODEL_EVENT,ie)};return()=>{var ie;const ae=(ie=n.format)!=null?ie:DEFAULT_FORMATS_DATEPICKER[n.type]||DEFAULT_FORMATS_DATE;return createVNode$1(CommonPicker,mergeProps(n,{format:ae,type:n.type,ref:$,"onUpdate:modelValue":re}),{default:oe=>createVNode$1(ElDatePickerPanel,mergeProps({disabled:n.disabled,editable:n.editable,border:!1},oe),_isSlot$6(i)?i:{default:()=>[i]}),"range-separator":i["range-separator"]})}}});const ElDatePicker=withInstall(DatePicker),descriptionsKey=Symbol("elDescriptions");var ElDescriptionsCell=defineComponent({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:inject(descriptionsKey,{})}},render(){var n,t,r,i;const g=getNormalizedProps(this.cell),$=(((n=this.cell)==null?void 0:n.dirs)||[]).map(Ne=>{const{dir:Oe,arg:$e,modifiers:Ve,value:Ue}=Ne;return[Oe,Ue,$e,Ve]}),{border:V,direction:re}=this.descriptions,ie=re==="vertical",ae=()=>{var Ne,Oe,$e;return(($e=(Oe=(Ne=this.cell)==null?void 0:Ne.children)==null?void 0:Oe.label)==null?void 0:$e.call(Oe))||g.label},oe=()=>{var Ne,Oe,$e;return($e=(Oe=(Ne=this.cell)==null?void 0:Ne.children)==null?void 0:Oe.default)==null?void 0:$e.call(Oe)},le=g.span,ue=g.rowspan,de=g.align?`is-${g.align}`:"",he=g.labelAlign?`is-${g.labelAlign}`:de,pe=g.className,_e=g.labelClassName,Ce=this.type==="label"&&(r=(t=g.labelWidth)!=null?t:this.descriptions.labelWidth)!=null?r:g.width,xe={width:addUnit(Ce),minWidth:addUnit(g.minWidth)},Ie=useNamespace("descriptions");switch(this.type){case"label":return withDirectives(h$1(this.tag,{style:xe,class:[Ie.e("cell"),Ie.e("label"),Ie.is("bordered-label",V),Ie.is("vertical-label",ie),he,_e],colSpan:ie?le:1,rowspan:ie?1:ue},ae()),$);case"content":return withDirectives(h$1(this.tag,{style:xe,class:[Ie.e("cell"),Ie.e("content"),Ie.is("bordered-content",V),Ie.is("vertical-content",ie),de,pe],colSpan:ie?le:le*2-1,rowspan:ie?ue*2-1:ue},oe()),$);default:{const Ne=ae(),Oe={},$e=addUnit((i=g.labelWidth)!=null?i:this.descriptions.labelWidth);return $e&&(Oe.width=$e,Oe.display="inline-block"),withDirectives(h$1("td",{style:xe,class:[Ie.e("cell"),de],colSpan:le,rowspan:ue},[isNil(Ne)?void 0:h$1("span",{style:Oe,class:[Ie.e("label"),_e]},Ne),h$1("span",{class:[Ie.e("content"),pe]},oe())]),$)}}}});const descriptionsRowProps=buildProps({row:{type:definePropType(Array),default:()=>[]}}),_hoisted_1$15={key:1},_sfc_main$1S=defineComponent({name:"ElDescriptionsRow",__name:"descriptions-row",props:descriptionsRowProps,setup(n){const t=inject(descriptionsKey,{});return(r,i)=>unref(t).direction==="vertical"?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.row,(g,$)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr1-${$}`,cell:g,tag:"th",type:"label"},null,8,["cell"]))),128))]),createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.row,(g,$)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr2-${$}`,cell:g,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(openBlock(),createElementBlock("tr",_hoisted_1$15,[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.row,(g,$)=>(openBlock(),createElementBlock(Fragment,{key:`tr3-${$}`},[unref(t).border?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode$1(unref(ElDescriptionsCell),{cell:g,tag:"td",type:"label"},null,8,["cell"]),createVNode$1(unref(ElDescriptionsCell),{cell:g,tag:"td",type:"content"},null,8,["cell"])],64)):(openBlock(),createBlock(unref(ElDescriptionsCell),{key:1,cell:g,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var ElDescriptionsRow=_export_sfc(_sfc_main$1S,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const descriptionProps=buildProps({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:useSizeProp,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number]}}),COMPONENT_NAME$e="ElDescriptionsItem",_sfc_main$1R=defineComponent({name:"ElDescriptions",__name:"description",props:descriptionProps,setup(n){const t=n,r=useNamespace("descriptions"),i=useFormSize(),g=useSlots();provide(descriptionsKey,t);const $=computed(()=>[r.b(),r.m(i.value)]),V=(ie,ae,oe,le=!1)=>(ie.props||(ie.props={}),ae>oe&&(ie.props.span=oe),le&&(ie.props.span=ae),ie),re=()=>{if(!g.default)return[];const ie=flattedChildren(g.default()).filter(he=>{var pe;return((pe=he==null?void 0:he.type)==null?void 0:pe.name)===COMPONENT_NAME$e}),ae=[];let oe=[],le=t.column,ue=0;const de=[];return ie.forEach((he,pe)=>{var _e,Ce,xe;const Ie=((_e=he.props)==null?void 0:_e.span)||1,Ne=((Ce=he.props)==null?void 0:Ce.rowspan)||1,Oe=ae.length;if(de[Oe]||(de[Oe]=0),Ne>1)for(let $e=1;$e0&&(le-=de[Oe],de[Oe]=0),pele?le:Ie),pe===ie.length-1){const $e=t.column-ue%t.column;oe.push(V(he,$e,le,!0)),ae.push(oe);return}Ie(openBlock(),createElementBlock("div",{class:normalizeClass($.value)},[ie.title||ie.extra||ie.$slots.title||ie.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(r).e("title"))},[renderSlot(ie.$slots,"title",{},()=>[createTextVNode(toDisplayString(ie.title),1)])],2),createBaseVNode("div",{class:normalizeClass(unref(r).e("extra"))},[renderSlot(ie.$slots,"extra",{},()=>[createTextVNode(toDisplayString(ie.extra),1)])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(r).e("body"))},[createBaseVNode("table",{class:normalizeClass([unref(r).e("table"),unref(r).is("bordered",ie.border)])},[createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(re(),(oe,le)=>(openBlock(),createBlock(ElDescriptionsRow,{key:le,row:oe},null,8,["row"]))),128))])],2)],2)],2))}});var Descriptions=_export_sfc(_sfc_main$1R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]);const columnAlignment=["left","center","right"],descriptionItemProps=buildProps({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number]},align:{type:String,values:columnAlignment,default:"left"},labelAlign:{type:String,values:columnAlignment},className:{type:String,default:""},labelClassName:{type:String,default:""}}),DescriptionItem=defineComponent({name:COMPONENT_NAME$e,props:descriptionItemProps}),ElDescriptions=withInstall(Descriptions,{DescriptionsItem:DescriptionItem}),ElDescriptionsItem=withNoopInstall(DescriptionItem),useSameTarget=n=>{if(!n)return{onClick:NOOP,onMousedown:NOOP,onMouseup:NOOP};let t=!1,r=!1;return{onClick:V=>{t&&r&&n(V),t=r=!1},onMousedown:V=>{t=V.target===V.currentTarget},onMouseup:V=>{r=V.target===V.currentTarget}}},overlayProps=buildProps({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:definePropType([String,Array,Object])},zIndex:{type:definePropType([String,Number])}}),overlayEmits={click:n=>n instanceof MouseEvent},BLOCK="overlay";var Overlay$2=defineComponent({name:"ElOverlay",props:overlayProps,emits:overlayEmits,setup(n,{slots:t,emit:r}){const i=useNamespace(BLOCK),g=ie=>{r("click",ie)},{onClick:$,onMousedown:V,onMouseup:re}=useSameTarget(n.customMaskEvent?void 0:g);return()=>n.mask?createVNode$1("div",{class:[i.b(),n.overlayClass],style:{zIndex:n.zIndex},onClick:$,onMousedown:V,onMouseup:re},[renderSlot(t,"default")],PatchFlags.STYLE|PatchFlags.CLASS|PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):h$1("div",{class:n.overlayClass,style:{zIndex:n.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[renderSlot(t,"default")])}});const ElOverlay=Overlay$2,dialogInjectionKey=Symbol("dialogInjectionKey"),DEFAULT_DIALOG_TRANSITION="dialog-fade",dialogContentProps=buildProps({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:iconPropType},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),dialogContentEmits={close:()=>!0},useDraggable=(n,t,r,i)=>{const g={offsetX:0,offsetY:0},$=ref(!1),V=(ue,de)=>{if(n.value){const{offsetX:he,offsetY:pe}=g,_e=n.value.getBoundingClientRect(),Ce=_e.left,xe=_e.top,Ie=_e.width,Ne=_e.height,Oe=document.documentElement.clientWidth,$e=document.documentElement.clientHeight,Ve=-Ce+he,Ue=-xe+pe,Fe=Oe-Ce-Ie+he,ze=$e-xe-(Ne<$e?Ne:0)+pe;i!=null&&i.value||(ue=Math.min(Math.max(ue,Ve),Fe),de=Math.min(Math.max(de,Ue),ze)),g.offsetX=ue,g.offsetY=de,n.value.style.transform=`translate(${addUnit(ue)}, ${addUnit(de)})`}},re=ue=>{const de=ue.clientX,he=ue.clientY,{offsetX:pe,offsetY:_e}=g,Ce=Ie=>{$.value||($.value=!0);const Ne=pe+Ie.clientX-de,Oe=_e+Ie.clientY-he;V(Ne,Oe)},xe=()=>{$.value=!1,document.removeEventListener("mousemove",Ce),document.removeEventListener("mouseup",xe)};document.addEventListener("mousemove",Ce),document.addEventListener("mouseup",xe)},ie=()=>{t.value&&n.value&&(t.value.addEventListener("mousedown",re),window.addEventListener("resize",le))},ae=()=>{t.value&&n.value&&(t.value.removeEventListener("mousedown",re),window.removeEventListener("resize",le))},oe=()=>{g.offsetX=0,g.offsetY=0,n.value&&(n.value.style.transform="")},le=()=>{const{offsetX:ue,offsetY:de}=g;V(ue,de)};return onMounted(()=>{watchEffect(()=>{r.value?ie():ae()})}),onBeforeUnmount(()=>{ae()}),{isDragging:$,resetPosition:oe,updatePosition:le}},composeRefs=(...n)=>t=>{n.forEach(r=>{r.value=t})},_hoisted_1$14=["aria-level"],_hoisted_2$I=["aria-label"],_hoisted_3$i=["id"],_sfc_main$1Q=defineComponent({name:"ElDialogContent",__name:"dialog-content",props:dialogContentProps,emits:dialogContentEmits,setup(n,{expose:t}){const{t:r}=useLocale(),{Close:i}=CloseComponents,g=n,{dialogRef:$,headerRef:V,bodyId:re,ns:ie,style:ae}=inject(dialogInjectionKey),{focusTrapRef:oe}=inject(FOCUS_TRAP_INJECTION_KEY),le=composeRefs(oe,$),ue=computed(()=>!!g.draggable),de=computed(()=>!!g.overflow),{resetPosition:he,updatePosition:pe,isDragging:_e}=useDraggable($,V,ue,de),Ce=computed(()=>[ie.b(),ie.is("fullscreen",g.fullscreen),ie.is("draggable",ue.value),ie.is("dragging",_e.value),ie.is("align-center",!!g.alignCenter),{[ie.m("center")]:g.center}]);return t({resetPosition:he,updatePosition:pe}),(xe,Ie)=>(openBlock(),createElementBlock("div",{ref:unref(le),class:normalizeClass(Ce.value),style:normalizeStyle$1(unref(ae)),tabindex:"-1"},[createBaseVNode("header",{ref_key:"headerRef",ref:V,class:normalizeClass([unref(ie).e("header"),xe.headerClass,{"show-close":xe.showClose}])},[renderSlot(xe.$slots,"header",{},()=>[createBaseVNode("span",{role:"heading","aria-level":xe.ariaLevel,class:normalizeClass(unref(ie).e("title"))},toDisplayString(xe.title),11,_hoisted_1$14)]),xe.showClose?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref(r)("el.dialog.close"),class:normalizeClass(unref(ie).e("headerbtn")),type:"button",onClick:Ie[0]||(Ie[0]=Ne=>xe.$emit("close"))},[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(ie).e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(xe.closeIcon||unref(i))))]),_:1},8,["class"])],10,_hoisted_2$I)):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{id:unref(re),class:normalizeClass([unref(ie).e("body"),xe.bodyClass])},[renderSlot(xe.$slots,"default")],10,_hoisted_3$i),xe.$slots.footer?(openBlock(),createElementBlock("footer",{key:0,class:normalizeClass([unref(ie).e("footer"),xe.footerClass])},[renderSlot(xe.$slots,"footer")],2)):createCommentVNode("v-if",!0)],6))}});var ElDialogContent=_export_sfc(_sfc_main$1Q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const dialogProps=buildProps({...dialogContentProps,appendToBody:Boolean,appendTo:{type:teleportProps.to.type,default:"body"},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},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:definePropType([String,Object]),default:void 0}}),dialogEmits={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[UPDATE_MODEL_EVENT]:n=>isBoolean$1(n),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},useLockscreen=(n,t={})=>{isRef(n)||throwError$1("[useLockscreen]","You need to pass a ref param to this function");const r=t.ns||useNamespace("popup"),i=computed(()=>r.bm("parent","hidden"));let g=0,$=!1,V="0",re=!1;const ie=()=>{re||(re=!0,setTimeout(()=>{typeof document>"u"||$&&document&&(document.body.style.width=V,removeClass(document.body,i.value))},200))};watch(n,ae=>{if(!ae){ie();return}re=!1,$=!hasClass(document.body,i.value),$&&(V=document.body.style.width,addClass(document.body,i.value)),g=getScrollBarWidth(r.namespace.value);const oe=document.documentElement.clientHeight0&&(oe||le==="scroll")&&$&&(document.body.style.width=`calc(100% - ${g}px)`)}),onScopeDispose(()=>ie())},useDialog=(n,t)=>{var r;const g=getCurrentInstance().emit,{nextZIndex:$}=useZIndex();let V="";const re=useId(),ie=useId(),ae=ref(!1),oe=ref(!1),le=ref(!1),ue=ref((r=n.zIndex)!=null?r:$()),de=ref(!1);let he,pe;const _e=useGlobalConfig(),Ce=computed(()=>{var wn,bn;return(bn=(wn=_e.value)==null?void 0:wn.namespace)!=null?bn:defaultNamespace}),xe=computed(()=>{var wn;return(wn=_e.value)==null?void 0:wn.dialog}),Ie=computed(()=>{const wn={},bn=`--${Ce.value}-dialog`;if(!n.fullscreen){n.top&&(wn[`${bn}-margin-top`]=n.top);const Cn=addUnit(n.width);Cn&&(wn[`${bn}-width`]=Cn)}return wn}),Ne=computed(()=>{var wn,bn,Cn;return((Cn=(bn=n.draggable)!=null?bn:(wn=xe.value)==null?void 0:wn.draggable)!=null?Cn:!1)&&!n.fullscreen}),Oe=computed(()=>{var wn,bn,Cn;return(Cn=(bn=n.alignCenter)!=null?bn:(wn=xe.value)==null?void 0:wn.alignCenter)!=null?Cn:!1}),$e=computed(()=>{var wn,bn,Cn;return(Cn=(bn=n.overflow)!=null?bn:(wn=xe.value)==null?void 0:wn.overflow)!=null?Cn:!1}),Ve=computed(()=>Oe.value?{display:"flex"}:{}),Ue=computed(()=>{var wn,bn,Cn;const Sn=(Cn=(bn=n.transition)!=null?bn:(wn=xe.value)==null?void 0:wn.transition)!=null?Cn:DEFAULT_DIALOG_TRANSITION,Tn={name:Sn,onAfterEnter:Fe,onBeforeLeave:Pt,onAfterLeave:ze};if(isObject$6(Sn)){const En={...Sn},kn=($n,An)=>xn=>{isArray$5($n)?$n.forEach(Ln=>{isFunction$4(Ln)&&Ln(xn)}):isFunction$4($n)&&$n(xn),An()};return En.onAfterEnter=kn(En.onAfterEnter,Fe),En.onBeforeLeave=kn(En.onBeforeLeave,Pt),En.onAfterLeave=kn(En.onAfterLeave,ze),En.name||(En.name=DEFAULT_DIALOG_TRANSITION),En}return Tn});function Fe(){g("opened")}function ze(){g("closed"),g(UPDATE_MODEL_EVENT,!1),n.destroyOnClose&&(le.value=!1),de.value=!1}function Pt(){de.value=!0,g("close")}function qe(){pe==null||pe(),he==null||he(),n.openDelay&&n.openDelay>0?{stop:he}=useTimeoutFn(()=>Dt(),n.openDelay):Dt()}function Et(){he==null||he(),pe==null||pe(),n.closeDelay&&n.closeDelay>0?{stop:pe}=useTimeoutFn(()=>Lt(),n.closeDelay):Lt()}function kt(){function wn(bn){bn||(oe.value=!0,ae.value=!1)}n.beforeClose?n.beforeClose(wn):Et()}function At(){n.closeOnClickModal&&kt()}function Dt(){isClient&&(ae.value=!0)}function Lt(){ae.value=!1}function jt(){g("openAutoFocus")}function hn(){g("closeAutoFocus")}function vn(wn){var bn;((bn=wn.detail)==null?void 0:bn.focusReason)==="pointer"&&wn.preventDefault()}n.lockScroll&&useLockscreen(ae);function _n(){n.closeOnPressEscape&&kt()}return watch(()=>n.zIndex,()=>{var wn;ue.value=(wn=n.zIndex)!=null?wn:$()}),watch(()=>n.modelValue,wn=>{var bn;wn?(oe.value=!1,de.value=!1,qe(),le.value=!0,ue.value=(bn=n.zIndex)!=null?bn:$(),nextTick(()=>{g("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):ae.value&&Et()}),watch(()=>n.fullscreen,wn=>{t.value&&(wn?(V=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=V)}),onMounted(()=>{n.modelValue&&(ae.value=!0,le.value=!0,qe())}),{afterEnter:Fe,afterLeave:ze,beforeLeave:Pt,handleClose:kt,onModalClick:At,close:Et,doClose:Lt,onOpenAutoFocus:jt,onCloseAutoFocus:hn,onCloseRequested:_n,onFocusoutPrevented:vn,titleId:re,bodyId:ie,closed:oe,style:Ie,overlayDialogStyle:Ve,rendered:le,visible:ae,zIndex:ue,transitionConfig:Ue,_draggable:Ne,_alignCenter:Oe,_overflow:$e,closing:de}},_hoisted_1$13=["aria-label","aria-labelledby","aria-describedby"],_sfc_main$1P=defineComponent({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:dialogProps,emits:dialogEmits,setup(n,{expose:t}){const r=n,i=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(()=>!!i.title));const g=useNamespace("dialog"),$=ref(),V=ref(),re=ref(),{visible:ie,titleId:ae,bodyId:oe,style:le,overlayDialogStyle:ue,rendered:de,transitionConfig:he,zIndex:pe,_draggable:_e,_alignCenter:Ce,_overflow:xe,handleClose:Ie,onModalClick:Ne,onOpenAutoFocus:Oe,onCloseAutoFocus:$e,onCloseRequested:Ve,onFocusoutPrevented:Ue,closing:Fe}=useDialog(r,$);provide(dialogInjectionKey,{dialogRef:$,headerRef:V,bodyId:oe,ns:g,rendered:de,style:le});const ze=useSameTarget(Ne),Pt=computed(()=>r.modalPenetrable&&!r.modal&&!r.fullscreen);return t({visible:ie,dialogContentRef:re,resetPosition:()=>{var Et;(Et=re.value)==null||Et.resetPosition()},handleClose:Ie}),(Et,kt)=>(openBlock(),createBlock(unref(ElTeleport),{to:Et.appendTo,disabled:Et.appendTo!=="body"?!1:!Et.appendToBody},{default:withCtx(()=>[createVNode$1(Transition,mergeProps(unref(he),{persisted:""}),{default:withCtx(()=>{var At;return[withDirectives(createVNode$1(unref(ElOverlay),{"custom-mask-event":"",mask:Et.modal,"overlay-class":[(At=Et.modalClass)!=null?At:"",`${unref(g).namespace.value}-modal-dialog`,unref(g).is("penetrable",Pt.value)],"z-index":unref(pe)},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-modal":"true","aria-label":Et.title||void 0,"aria-labelledby":Et.title?void 0:unref(ae),"aria-describedby":unref(oe),class:normalizeClass([`${unref(g).namespace.value}-overlay-dialog`,unref(g).is("closing",unref(Fe))]),style:normalizeStyle$1(unref(ue)),onClick:kt[0]||(kt[0]=(...Dt)=>unref(ze).onClick&&unref(ze).onClick(...Dt)),onMousedown:kt[1]||(kt[1]=(...Dt)=>unref(ze).onMousedown&&unref(ze).onMousedown(...Dt)),onMouseup:kt[2]||(kt[2]=(...Dt)=>unref(ze).onMouseup&&unref(ze).onMouseup(...Dt))},[createVNode$1(unref(ElFocusTrap),{loop:"",trapped:unref(ie),"focus-start-el":"container",onFocusAfterTrapped:unref(Oe),onFocusAfterReleased:unref($e),onFocusoutPrevented:unref(Ue),onReleaseRequested:unref(Ve)},{default:withCtx(()=>[unref(de)?(openBlock(),createBlock(ElDialogContent,mergeProps({key:0,ref_key:"dialogContentRef",ref:re},Et.$attrs,{center:Et.center,"align-center":unref(Ce),"close-icon":Et.closeIcon,draggable:unref(_e),overflow:unref(xe),fullscreen:Et.fullscreen,"header-class":Et.headerClass,"body-class":Et.bodyClass,"footer-class":Et.footerClass,"show-close":Et.showClose,title:Et.title,"aria-level":Et.headerAriaLevel,onClose:unref(Ie)}),createSlots({header:withCtx(()=>[Et.$slots.title?renderSlot(Et.$slots,"title",{key:1}):renderSlot(Et.$slots,"header",{key:0,close:unref(Ie),titleId:unref(ae),titleClass:unref(g).e("title")})]),default:withCtx(()=>[renderSlot(Et.$slots,"default")]),_:2},[Et.$slots.footer?{name:"footer",fn:withCtx(()=>[renderSlot(Et.$slots,"footer")]),key:"0"}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,_hoisted_1$13)]),_:3},8,["mask","overlay-class","z-index"]),[[vShow,unref(ie)]])]}),_:3},16)]),_:3},8,["to","disabled"]))}});var Dialog=_export_sfc(_sfc_main$1P,[["__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"}}),_sfc_main$1O=defineComponent({name:"ElDivider",__name:"divider",props:dividerProps,setup(n){const t=n,r=useNamespace("divider"),i=computed(()=>r.cssVar({"border-style":t.borderStyle}));return(g,$)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(r).b(),unref(r).m(g.direction)]),style:normalizeStyle$1(i.value),role:"separator"},[g.$slots.default&&g.direction!=="vertical"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(r).e("text"),unref(r).is(g.contentPosition)])},[renderSlot(g.$slots,"default")],2)):createCommentVNode("v-if",!0)],6))}});var Divider=_export_sfc(_sfc_main$1O,[["__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"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),drawerEmits={...dialogEmits,"resize-start":(n,t)=>n instanceof MouseEvent&&typeof t=="number",resize:(n,t)=>n instanceof MouseEvent&&typeof t=="number","resize-end":(n,t)=>n instanceof MouseEvent&&typeof t=="number"};function useResizable(n,t,r){const{width:i,height:g}=useWindowSize(),$=computed(()=>["ltr","rtl"].includes(n.direction)),V=computed(()=>["ltr","ttb"].includes(n.direction)?1:-1),re=computed(()=>$.value?i.value:g.value),ie=computed(()=>clamp$4(ae.value+V.value*oe.value,4,re.value)),ae=ref(0),oe=ref(0),le=ref(!1),ue=ref(!1);let de=[],he=[];const pe=()=>{var Ne;const Oe=(Ne=t.value)==null?void 0:Ne.closest('[aria-modal="true"]');return Oe?$.value?Oe.offsetWidth:Oe.offsetHeight:100};watch(()=>[n.size,n.resizable],()=>{ue.value=!1,ae.value=0,oe.value=0,xe()});const _e=Ne=>{n.resizable&&(ue.value||(ae.value=pe(),ue.value=!0),de=[Ne.pageX,Ne.pageY],le.value=!0,r("resize-start",Ne,ae.value),he.push(useEventListener(window,"mouseup",xe),useEventListener(window,"mousemove",Ce)))},Ce=Ne=>{const{pageX:Oe,pageY:$e}=Ne,Ve=Oe-de[0],Ue=$e-de[1];oe.value=$.value?Ve:Ue,r("resize",Ne,ie.value)},xe=Ne=>{le.value&&(de=[],ae.value=ie.value,oe.value=0,le.value=!1,he.forEach(Oe=>Oe==null?void 0:Oe()),he=[],Ne&&r("resize-end",Ne,ae.value))},Ie=useEventListener(t,"mousedown",_e);return onBeforeUnmount(()=>{Ie(),xe()}),{size:computed(()=>ue.value?`${ie.value}px`:addUnit(n.size)),isResizing:le,isHorizontal:$}}const _hoisted_1$12=["aria-label","aria-labelledby","aria-describedby"],_hoisted_2$H=["id","aria-level"],_hoisted_3$h=["aria-label"],_hoisted_4$d=["id"],_sfc_main$1N=defineComponent({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:drawerProps,emits:drawerEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useSlots();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(()=>!!$.title));const V=ref(),re=ref(),ie=ref(),ae=useNamespace("drawer"),{t:oe}=useLocale(),{afterEnter:le,afterLeave:ue,beforeLeave:de,visible:he,rendered:pe,titleId:_e,bodyId:Ce,zIndex:xe,onModalClick:Ie,onOpenAutoFocus:Ne,onCloseAutoFocus:Oe,onFocusoutPrevented:$e,onCloseRequested:Ve,handleClose:Ue}=useDialog(i,V),{isHorizontal:Fe,size:ze,isResizing:Pt}=useResizable(i,ie,g),qe=computed(()=>i.modalPenetrable&&!i.modal);return t({handleClose:Ue,afterEnter:le,afterLeave:ue}),(Et,kt)=>(openBlock(),createBlock(unref(ElTeleport),{to:Et.appendTo,disabled:Et.appendTo!=="body"?!1:!Et.appendToBody},{default:withCtx(()=>[createVNode$1(Transition,{name:unref(ae).b("fade"),onAfterEnter:unref(le),onAfterLeave:unref(ue),onBeforeLeave:unref(de),persisted:""},{default:withCtx(()=>{var At;return[withDirectives(createVNode$1(unref(ElOverlay),{mask:Et.modal,"overlay-class":[unref(ae).is("drawer"),(At=Et.modalClass)!=null?At:"",`${unref(ae).namespace.value}-modal-drawer`,unref(ae).is("penetrable",qe.value)],"z-index":unref(xe),onClick:unref(Ie)},{default:withCtx(()=>[createVNode$1(unref(ElFocusTrap),{loop:"",trapped:unref(he),"focus-trap-el":V.value,"focus-start-el":re.value,onFocusAfterTrapped:unref(Ne),onFocusAfterReleased:unref(Oe),onFocusoutPrevented:unref($e),onReleaseRequested:unref(Ve)},{default:withCtx(()=>[createBaseVNode("div",mergeProps({ref_key:"drawerRef",ref:V,"aria-modal":"true","aria-label":Et.title||void 0,"aria-labelledby":Et.title?void 0:unref(_e),"aria-describedby":unref(Ce)},Et.$attrs,{class:[unref(ae).b(),Et.direction,unref(he)&&"open",unref(ae).is("dragging",unref(Pt))],style:{[unref(Fe)?"width":"height"]:unref(ze)},role:"dialog",onClick:kt[1]||(kt[1]=withModifiers(()=>{},["stop"]))}),[createBaseVNode("span",{ref_key:"focusStartRef",ref:re,class:normalizeClass(unref(ae).e("sr-focus")),tabindex:"-1"},null,2),Et.withHeader?(openBlock(),createElementBlock("header",{key:0,class:normalizeClass([unref(ae).e("header"),Et.headerClass])},[Et.$slots.title?renderSlot(Et.$slots,"title",{key:1},()=>[createCommentVNode(" DEPRECATED SLOT ")]):renderSlot(Et.$slots,"header",{key:0,close:unref(Ue),titleId:unref(_e),titleClass:unref(ae).e("title")},()=>[createBaseVNode("span",{id:unref(_e),role:"heading","aria-level":Et.headerAriaLevel,class:normalizeClass(unref(ae).e("title"))},toDisplayString(Et.title),11,_hoisted_2$H)]),Et.showClose?(openBlock(),createElementBlock("button",{key:2,"aria-label":unref(oe)("el.drawer.close"),class:normalizeClass(unref(ae).e("close-btn")),type:"button",onClick:kt[0]||(kt[0]=(...Dt)=>unref(Ue)&&unref(Ue)(...Dt))},[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(ae).e("close"))},{default:withCtx(()=>[createVNode$1(unref(close_default))]),_:1},8,["class"])],10,_hoisted_3$h)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),unref(pe)?(openBlock(),createElementBlock("div",{key:1,id:unref(Ce),class:normalizeClass([unref(ae).e("body"),Et.bodyClass])},[renderSlot(Et.$slots,"default")],10,_hoisted_4$d)):createCommentVNode("v-if",!0),Et.$slots.footer?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass([unref(ae).e("footer"),Et.footerClass])},[renderSlot(Et.$slots,"footer")],2)):createCommentVNode("v-if",!0),Et.resizable?(openBlock(),createElementBlock("div",{key:3,ref_key:"draggerRef",ref:ie,style:normalizeStyle$1({zIndex:unref(xe)}),class:normalizeClass(unref(ae).e("dragger"))},null,6)):createCommentVNode("v-if",!0)],16,_hoisted_1$12)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[vShow,unref(he)]])]}),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var Drawer=_export_sfc(_sfc_main$1N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const ElDrawer=withInstall(Drawer),_sfc_main$1M=defineComponent({inheritAttrs:!1});function _sfc_render$g(n,t,r,i,g,$){return renderSlot(n.$slots,"default")}var Collection=_export_sfc(_sfc_main$1M,[["render",_sfc_render$g],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const _sfc_main$1L=defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function _sfc_render$f(n,t,r,i,g,$){return renderSlot(n.$slots,"default")}var CollectionItem=_export_sfc(_sfc_main$1L,[["render",_sfc_render$f],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const COLLECTION_ITEM_SIGN="data-el-collection-item",createCollectionWithScope=n=>{const t=`El${n}Collection`,r=`${t}Item`,i=Symbol(t),g=Symbol(r),$=Object.assign({},Collection,{name:t,setup(){const re=ref(),ie=new Map;provide(i,{itemMap:ie,getItems:()=>{const oe=unref(re);if(!oe)return[];const le=Array.from(oe.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));return[...ie.values()].sort((de,he)=>le.indexOf(de.ref)-le.indexOf(he.ref))},collectionRef:re})}}),V=Object.assign({},CollectionItem,{name:r,setup(re,{attrs:ie}){const ae=ref(),oe=inject(i,void 0);provide(g,{collectionItemRef:ae}),onMounted(()=>{const le=unref(ae);le&&oe.itemMap.set(le,{ref:le,...ie})}),onBeforeUnmount(()=>{const le=unref(ae);oe.itemMap.delete(le)})}});return{COLLECTION_INJECTION_KEY:i,COLLECTION_ITEM_INJECTION_KEY:g,ElCollection:$,ElCollectionItem:V}},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,ElCollectionItem,COLLECTION_INJECTION_KEY,COLLECTION_ITEM_INJECTION_KEY}=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=(n,t)=>{if(t!=="rtl")return n;switch(n){case EVENT_CODE.right:return EVENT_CODE.left;case EVENT_CODE.left:return EVENT_CODE.right;default:return n}},getFocusIntent=(n,t,r)=>{const i=getEventCode(n),g=getDirectionAwareKey(i,r);if(!(t==="vertical"&&[EVENT_CODE.left,EVENT_CODE.right].includes(g))&&!(t==="horizontal"&&[EVENT_CODE.up,EVENT_CODE.down].includes(g)))return MAP_KEY_TO_FOCUS_INTENT[g]},reorderArray=(n,t)=>n.map((r,i)=>n[(i+t)%n.length]),focusFirst=n=>{const{activeElement:t}=document;for(const r of n)if(r===t||(r.focus(),t!==document.activeElement))return},CURRENT_TAB_ID_CHANGE_EVT="currentTabIdChange",ENTRY_FOCUS_EVT="rovingFocusGroup.entryFocus",EVT_OPTS={bubbles:!1,cancelable:!0},_sfc_main$1K=defineComponent({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:rovingFocusGroupProps,emits:[CURRENT_TAB_ID_CHANGE_EVT,"entryFocus"],setup(n,{emit:t}){var r;const i=ref((r=n.currentTabId||n.defaultCurrentTabId)!=null?r:null),g=ref(!1),$=ref(!1),V=ref(),{getItems:re}=inject(COLLECTION_INJECTION_KEY,void 0),ie=computed(()=>[{outline:"none"},n.style]),ae=_e=>{t(CURRENT_TAB_ID_CHANGE_EVT,_e)},oe=()=>{g.value=!0},le=composeEventHandlers(_e=>{var Ce;(Ce=n.onMousedown)==null||Ce.call(n,_e)},()=>{$.value=!0}),ue=composeEventHandlers(_e=>{var Ce;(Ce=n.onFocus)==null||Ce.call(n,_e)},_e=>{const Ce=!unref($),{target:xe,currentTarget:Ie}=_e;if(xe===Ie&&Ce&&!unref(g)){const Ne=new Event(ENTRY_FOCUS_EVT,EVT_OPTS);if(Ie==null||Ie.dispatchEvent(Ne),!Ne.defaultPrevented){const Oe=re().filter(ze=>ze.focusable),$e=Oe.find(ze=>ze.active),Ve=Oe.find(ze=>ze.id===unref(i)),Fe=[$e,Ve,...Oe].filter(Boolean).map(ze=>ze.ref);focusFirst(Fe)}}$.value=!1}),de=composeEventHandlers(_e=>{var Ce;(Ce=n.onBlur)==null||Ce.call(n,_e)},()=>{g.value=!1}),he=(..._e)=>{t("entryFocus",..._e)},pe=_e=>{const Ce=getFocusIntent(_e);if(Ce){_e.preventDefault();let Ie=re().filter(Ne=>Ne.focusable).map(Ne=>Ne.ref);switch(Ce){case"last":{Ie.reverse();break}case"prev":case"next":{Ce==="prev"&&Ie.reverse();const Ne=Ie.indexOf(_e.currentTarget);Ie=n.loop?reorderArray(Ie,Ne+1):Ie.slice(Ne+1);break}}nextTick(()=>{focusFirst(Ie)})}};provide(ROVING_FOCUS_GROUP_INJECTION_KEY,{currentTabbedId:readonly(i),loop:toRef$1(n,"loop"),tabIndex:computed(()=>unref(g)?-1:0),rovingFocusGroupRef:V,rovingFocusGroupRootStyle:ie,orientation:toRef$1(n,"orientation"),dir:toRef$1(n,"dir"),onItemFocus:ae,onItemShiftTab:oe,onBlur:de,onFocus:ue,onMousedown:le,onKeydown:pe}),watch(()=>n.currentTabId,_e=>{i.value=_e??null}),useEventListener(V,ENTRY_FOCUS_EVT,he)}});function _sfc_render$e(n,t,r,i,g,$){return renderSlot(n.$slots,"default")}var ElRovingFocusGroupImpl=_export_sfc(_sfc_main$1K,[["render",_sfc_render$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const _sfc_main$1J=defineComponent({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:ElCollection,ElRovingFocusGroupImpl}});function _sfc_render$d(n,t,r,i,g,$){const V=resolveComponent("el-roving-focus-group-impl"),re=resolveComponent("el-focus-group-collection");return openBlock(),createBlock(re,null,{default:withCtx(()=>[createVNode$1(V,normalizeProps(guardReactiveProps(n.$attrs)),{default:withCtx(()=>[renderSlot(n.$slots,"default")]),_:3},16)]),_:3})}var ElRovingFocusGroup=_export_sfc(_sfc_main$1J,[["render",_sfc_render$d],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const dropdownProps=buildProps({trigger:{...useTooltipTriggerProps.trigger,type:definePropType([String,Array])},triggerKeys:{type:definePropType(Array),default:()=>[EVENT_CODE.enter,EVENT_CODE.numpadEnter,EVENT_CODE.space,EVENT_CODE.down]},virtualTriggering:useTooltipTriggerProps.virtualTriggering,virtualRef:useTooltipTriggerProps.virtualRef,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},showArrow:{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:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,disabled:Boolean,role:{type:String,values:roleTypes,default:"menu"},buttonProps:{type:definePropType(Object)},teleported:useTooltipContentProps.teleported,appendTo:useTooltipContentProps.appendTo,persistent:{type:Boolean,default:!0}}),dropdownItemProps=buildProps({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:iconPropType}}),dropdownMenuProps=buildProps({onKeydown:{type:definePropType(Function)}}),DROPDOWN_INJECTION_KEY=Symbol("elDropdown"),DROPDOWN_INSTANCE_INJECTION_KEY="elDropdown",{ButtonGroup:ElButtonGroup}=ElButton,_sfc_main$1I=defineComponent({name:"ElDropdown",components:{ElButton,ElButtonGroup,ElScrollbar,ElTooltip,ElRovingFocusGroup,ElOnlyChild:OnlyChild,ElIcon,ArrowDown:arrow_down_default},props:dropdownProps,emits:["visible-change","click","command"],setup(n,{emit:t}){const r=getCurrentInstance(),i=useNamespace("dropdown"),{t:g}=useLocale(),$=ref(),V=ref(),re=ref(),ie=ref(),ae=ref(null),oe=ref(null),le=ref(!1),ue=computed(()=>({maxHeight:addUnit(n.maxHeight)})),de=computed(()=>[i.m(Ne.value)]),he=computed(()=>castArray$1(n.trigger)),pe=useId().value,_e=computed(()=>n.id||pe);function Ce(){var Et;(Et=re.value)==null||Et.onClose(void 0,0)}function xe(){var Et;(Et=re.value)==null||Et.onClose()}function Ie(){var Et;(Et=re.value)==null||Et.onOpen()}const Ne=useFormSize();function Oe(...Et){t("command",...Et)}function $e(){}function Ve(){const Et=unref(ie);he.value.includes("hover")&&(Et==null||Et.focus({preventScroll:!0})),oe.value=null}function Ue(Et){oe.value=Et}function Fe(){t("visible-change",!0)}function ze(Et){var kt;le.value=(Et==null?void 0:Et.type)==="keydown",(kt=ie.value)==null||kt.focus()}function Pt(){t("visible-change",!1)}return provide(DROPDOWN_INJECTION_KEY,{contentRef:ie,role:computed(()=>n.role),triggerId:_e,isUsingKeyboard:le,onItemEnter:$e,onItemLeave:Ve,handleClose:xe}),provide(DROPDOWN_INSTANCE_INJECTION_KEY,{instance:r,dropdownSize:Ne,handleClick:Ce,commandHandler:Oe,trigger:toRef$1(n,"trigger"),hideOnClick:toRef$1(n,"hideOnClick")}),{t:g,ns:i,scrollbar:ae,wrapStyle:ue,dropdownTriggerKls:de,dropdownSize:Ne,triggerId:_e,currentTabId:oe,handleCurrentTabIdChange:Ue,handlerMainButtonClick:Et=>{t("click",Et)},handleClose:xe,handleOpen:Ie,handleBeforeShowTooltip:Fe,handleShowTooltip:ze,handleBeforeHideTooltip:Pt,popperRef:re,contentRef:ie,triggeringElementRef:$,referenceElementRef:V}}});function _sfc_render$c(n,t,r,i,g,$){var V;const re=resolveComponent("el-roving-focus-group"),ie=resolveComponent("el-scrollbar"),ae=resolveComponent("el-only-child"),oe=resolveComponent("el-tooltip"),le=resolveComponent("el-button"),ue=resolveComponent("arrow-down"),de=resolveComponent("el-icon"),he=resolveComponent("el-button-group");return openBlock(),createElementBlock("div",{class:normalizeClass([n.ns.b(),n.ns.is("disabled",n.disabled)])},[createVNode$1(oe,{ref:"popperRef",role:n.role,effect:n.effect,"fallback-placements":["bottom","top"],"popper-options":n.popperOptions,"gpu-acceleration":!1,placement:n.placement,"popper-class":[n.ns.e("popper"),n.popperClass],"popper-style":n.popperStyle,trigger:n.trigger,"trigger-keys":n.triggerKeys,"trigger-target-el":n.contentRef,"show-arrow":n.showArrow,"show-after":n.trigger==="hover"?n.showTimeout:0,"hide-after":n.trigger==="hover"?n.hideTimeout:0,"virtual-ref":(V=n.virtualRef)!=null?V:n.triggeringElementRef,"virtual-triggering":n.virtualTriggering||n.splitButton,disabled:n.disabled,transition:`${n.ns.namespace.value}-zoom-in-top`,teleported:n.teleported,"append-to":n.appendTo,pure:"","focus-on-target":"",persistent:n.persistent,onBeforeShow:n.handleBeforeShowTooltip,onShow:n.handleShowTooltip,onBeforeHide:n.handleBeforeHideTooltip},createSlots({content:withCtx(()=>[createVNode$1(ie,{ref:"scrollbar","wrap-style":n.wrapStyle,tag:"div","view-class":n.ns.e("list")},{default:withCtx(()=>[createVNode$1(re,{loop:n.loop,"current-tab-id":n.currentTabId,orientation:"horizontal",onCurrentTabIdChange:n.handleCurrentTabIdChange},{default:withCtx(()=>[renderSlot(n.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[n.splitButton?void 0:{name:"default",fn:withCtx(()=>[createVNode$1(ae,{id:n.triggerId,ref:"triggeringElementRef",role:"button",tabindex:n.tabindex},{default:withCtx(()=>[renderSlot(n.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),n.splitButton?(openBlock(),createBlock(he,{key:0},{default:withCtx(()=>[createVNode$1(le,mergeProps({ref:"referenceElementRef"},n.buttonProps,{size:n.dropdownSize,type:n.type,disabled:n.disabled,tabindex:n.tabindex,onClick:n.handlerMainButtonClick}),{default:withCtx(()=>[renderSlot(n.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),createVNode$1(le,mergeProps({id:n.triggerId,ref:"triggeringElementRef"},n.buttonProps,{role:"button",size:n.dropdownSize,type:n.type,class:n.ns.e("caret-button"),disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.t("el.dropdown.toggleDropdown")}),{default:withCtx(()=>[createVNode$1(de,{class:normalizeClass(n.ns.e("icon"))},{default:withCtx(()=>[createVNode$1(ue)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):createCommentVNode("v-if",!0)],2)}var Dropdown=_export_sfc(_sfc_main$1I,[["render",_sfc_render$c],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const _sfc_main$1H=defineComponent({components:{ElRovingFocusCollectionItem:ElCollectionItem},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(n,{emit:t}){const{currentTabbedId:r,onItemFocus:i,onItemShiftTab:g,onKeydown:$}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),V=useId(),re=ref(),ie=composeEventHandlers(ue=>{t("mousedown",ue)},ue=>{n.focusable?i(unref(V)):ue.preventDefault()}),ae=composeEventHandlers(ue=>{t("focus",ue)},()=>{i(unref(V))}),oe=composeEventHandlers(ue=>{t("keydown",ue)},ue=>{const{shiftKey:de,target:he,currentTarget:pe}=ue;if(getEventCode(ue)===EVENT_CODE.tab&&de){g();return}he===pe&&$(ue)}),le=computed(()=>r.value===unref(V));return provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,{rovingFocusGroupItemRef:re,tabIndex:computed(()=>unref(le)?0:-1),handleMousedown:ie,handleFocus:ae,handleKeydown:oe}),{id:V,handleKeydown:oe,handleFocus:ae,handleMousedown:ie}}});function _sfc_render$b(n,t,r,i,g,$){const V=resolveComponent("el-roving-focus-collection-item");return openBlock(),createBlock(V,{id:n.id,focusable:n.focusable,active:n.active},{default:withCtx(()=>[renderSlot(n.$slots,"default")]),_:3},8,["id","focusable","active"])}var ElRovingFocusItem=_export_sfc(_sfc_main$1H,[["render",_sfc_render$b],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const _sfc_main$1G=defineComponent({name:"DropdownItemImpl",components:{ElIcon},props:dropdownItemProps,emits:["pointermove","pointerleave","click","clickimpl"],setup(n,{emit:t}){const r=useNamespace("dropdown"),{role:i}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionItemRef:g}=inject(COLLECTION_ITEM_INJECTION_KEY,void 0),{rovingFocusGroupItemRef:$,tabIndex:V,handleFocus:re,handleKeydown:ie,handleMousedown:ae}=inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,void 0),oe=composeRefs(g,$),le=computed(()=>i.value==="menu"?"menuitem":i.value==="navigation"?"link":"button"),ue=composeEventHandlers(de=>{const he=getEventCode(de);if([EVENT_CODE.enter,EVENT_CODE.numpadEnter,EVENT_CODE.space].includes(he))return de.preventDefault(),de.stopImmediatePropagation(),t("clickimpl",de),!0},ie);return{ns:r,itemRef:oe,dataset:{[COLLECTION_ITEM_SIGN]:""},role:le,tabIndex:V,handleFocus:re,handleKeydown:ue,handleMousedown:ae}}}),_hoisted_1$11=["aria-disabled","tabindex","role"];function _sfc_render$a(n,t,r,i,g,$){const V=resolveComponent("el-icon");return openBlock(),createElementBlock(Fragment,null,[n.divided?(openBlock(),createElementBlock("li",{key:0,role:"separator",class:normalizeClass(n.ns.bem("menu","item","divided"))},null,2)):createCommentVNode("v-if",!0),createBaseVNode("li",mergeProps({ref:n.itemRef},{...n.dataset,...n.$attrs},{"aria-disabled":n.disabled,class:[n.ns.be("menu","item"),n.ns.is("disabled",n.disabled)],tabindex:n.tabIndex,role:n.role,onClick:t[0]||(t[0]=re=>n.$emit("clickimpl",re)),onFocus:t[1]||(t[1]=(...re)=>n.handleFocus&&n.handleFocus(...re)),onKeydown:t[2]||(t[2]=withModifiers((...re)=>n.handleKeydown&&n.handleKeydown(...re),["self"])),onMousedown:t[3]||(t[3]=(...re)=>n.handleMousedown&&n.handleMousedown(...re)),onPointermove:t[4]||(t[4]=re=>n.$emit("pointermove",re)),onPointerleave:t[5]||(t[5]=re=>n.$emit("pointerleave",re))}),[n.icon||n.$slots.icon?(openBlock(),createBlock(V,{key:0},{default:withCtx(()=>[renderSlot(n.$slots,"icon",{},()=>[(openBlock(),createBlock(resolveDynamicComponent(n.icon)))])]),_:3})):createCommentVNode("v-if",!0),renderSlot(n.$slots,"default")],16,_hoisted_1$11)],64)}var ElDropdownItemImpl=_export_sfc(_sfc_main$1G,[["render",_sfc_render$a],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const useDropdown=()=>{const n=inject(DROPDOWN_INSTANCE_INJECTION_KEY,{}),t=computed(()=>n==null?void 0:n.dropdownSize);return{elDropdown:n,_elDropdownSize:t}},_sfc_main$1F=defineComponent({name:"ElDropdownItem",components:{ElRovingFocusItem,ElDropdownItemImpl},inheritAttrs:!1,props:dropdownItemProps,emits:["pointermove","pointerleave","click"],setup(n,{emit:t,attrs:r}){const{elDropdown:i}=useDropdown(),g=getCurrentInstance(),{onItemEnter:$,onItemLeave:V}=inject(DROPDOWN_INJECTION_KEY,void 0),re=composeEventHandlers(le=>(t("pointermove",le),le.defaultPrevented),whenMouse(le=>{if(n.disabled){V(le);return}const ue=le.currentTarget;ue===document.activeElement||ue.contains(document.activeElement)||($(le),le.defaultPrevented||ue==null||ue.focus({preventScroll:!0}))})),ie=composeEventHandlers(le=>(t("pointerleave",le),le.defaultPrevented),whenMouse(V)),ae=composeEventHandlers(le=>{if(!n.disabled)return t("click",le),le.type!=="keydown"&&le.defaultPrevented},le=>{var ue,de,he;if(n.disabled){le.stopImmediatePropagation();return}(ue=i==null?void 0:i.hideOnClick)!=null&&ue.value&&((de=i.handleClick)==null||de.call(i)),(he=i.commandHandler)==null||he.call(i,n.command,g,le)}),oe=computed(()=>({...n,...r}));return{handleClick:ae,handlePointerMove:re,handlePointerLeave:ie,propsAndAttrs:oe}}});function _sfc_render$9(n,t,r,i,g,$){const V=resolveComponent("el-dropdown-item-impl"),re=resolveComponent("el-roving-focus-item");return openBlock(),createBlock(re,{focusable:!n.disabled},{default:withCtx(()=>[createVNode$1(V,mergeProps(n.propsAndAttrs,{onPointerleave:n.handlePointerLeave,onPointermove:n.handlePointerMove,onClickimpl:n.handleClick}),createSlots({default:withCtx(()=>[renderSlot(n.$slots,"default")]),_:2},[n.$slots.icon?{name:"icon",fn:withCtx(()=>[renderSlot(n.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var DropdownItem=_export_sfc(_sfc_main$1F,[["render",_sfc_render$9],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const _sfc_main$1E=defineComponent({name:"ElDropdownMenu",props:dropdownMenuProps,setup(n){const t=useNamespace("dropdown"),{_elDropdownSize:r}=useDropdown(),i=r.value,{contentRef:g,role:$,triggerId:V,isUsingKeyboard:re,handleClose:ie}=inject(DROPDOWN_INJECTION_KEY,void 0),{rovingFocusGroupRef:ae,rovingFocusGroupRootStyle:oe,onBlur:le,onFocus:ue,onKeydown:de,onMousedown:he}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{collectionRef:pe}=inject(COLLECTION_INJECTION_KEY,void 0),_e=computed(()=>[t.b("menu"),t.bm("menu",i==null?void 0:i.value)]),Ce=composeRefs(g,ae,pe),xe=composeEventHandlers(Ne=>{var Oe;(Oe=n.onKeydown)==null||Oe.call(n,Ne)},Ne=>{const{currentTarget:Oe,target:$e}=Ne,Ve=getEventCode(Ne);if(Oe.contains($e),EVENT_CODE.tab===Ve)return ie();de(Ne)});function Ie(Ne){re.value&&ue(Ne)}return{size:i,rovingFocusGroupRootStyle:oe,dropdownKls:_e,role:$,triggerId:V,dropdownListWrapperRef:Ce,handleKeydown:xe,onBlur:le,handleFocus:Ie,onMousedown:he}}}),_hoisted_1$10=["role","aria-labelledby"];function _sfc_render$8(n,t,r,i,g,$){return openBlock(),createElementBlock("ul",{ref:n.dropdownListWrapperRef,class:normalizeClass(n.dropdownKls),style:normalizeStyle$1(n.rovingFocusGroupRootStyle),tabindex:-1,role:n.role,"aria-labelledby":n.triggerId,onFocusin:t[0]||(t[0]=(...V)=>n.handleFocus&&n.handleFocus(...V)),onFocusout:t[1]||(t[1]=(...V)=>n.onBlur&&n.onBlur(...V)),onKeydown:t[2]||(t[2]=withModifiers((...V)=>n.handleKeydown&&n.handleKeydown(...V),["self"])),onMousedown:t[3]||(t[3]=withModifiers((...V)=>n.onMousedown&&n.onMousedown(...V),["self"]))},[renderSlot(n.$slots,"default")],46,_hoisted_1$10)}var DropdownMenu=_export_sfc(_sfc_main$1E,[["render",_sfc_render$8],["__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$$={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$G=["id"],_hoisted_3$g=["stop-color"],_hoisted_4$c=["stop-color"],_hoisted_5$5=["id"],_hoisted_6$1=["stop-color"],_hoisted_7=["stop-color"],_hoisted_8=["id"],_hoisted_9={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},_hoisted_10={transform:"translate(-1268.000000, -535.000000)"},_hoisted_11={transform:"translate(1268.000000, 535.000000)"},_hoisted_12=["fill"],_hoisted_13=["fill"],_hoisted_14={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={transform:"translate(53.000000, 45.000000)"},_hoisted_21=["fill","xlink:href"],_hoisted_22=["fill","mask"],_hoisted_23=["fill"],_sfc_main$1D=defineComponent({name:"ImgEmpty",__name:"img-empty",setup(n){const t=useNamespace("empty"),r=useId();return(i,g)=>(openBlock(),createElementBlock("svg",_hoisted_1$$,[createBaseVNode("defs",null,[createBaseVNode("linearGradient",{id:`linearGradient-1-${unref(r)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[createBaseVNode("stop",{"stop-color":`var(${unref(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_3$g),createBaseVNode("stop",{"stop-color":`var(${unref(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,_hoisted_4$c)],8,_hoisted_2$G),createBaseVNode("linearGradient",{id:`linearGradient-2-${unref(r)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[createBaseVNode("stop",{"stop-color":`var(${unref(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_6$1),createBaseVNode("stop",{"stop-color":`var(${unref(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,_hoisted_7)],8,_hoisted_5$5),createBaseVNode("rect",{id:`path-3-${unref(r)}`,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",{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(t).cssVarBlockName("fill-color-3")})`},null,8,_hoisted_12),createBaseVNode("polygon",{fill:`var(${unref(t).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",{fill:`var(${unref(t).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",{fill:`var(${unref(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,_hoisted_16),createBaseVNode("rect",{fill:`url(#linearGradient-1-${unref(r)})`,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",{fill:`var(${unref(t).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",{fill:`url(#linearGradient-2-${unref(r)})`,x:"13",y:"45",width:"40",height:"36"},null,8,_hoisted_19),createBaseVNode("g",_hoisted_20,[createBaseVNode("use",{fill:`var(${unref(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${unref(r)}`},null,8,_hoisted_21),createBaseVNode("polygon",{fill:`var(${unref(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${unref(r)})`,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",{fill:`var(${unref(t).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(_sfc_main$1D,[["__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$_=["src"],_hoisted_2$F={key:1},_sfc_main$1C=defineComponent({name:"ElEmpty",__name:"empty",props:emptyProps,setup(n){const t=n,{t:r}=useLocale(),i=useNamespace("empty"),g=computed(()=>t.description||r("el.table.emptyText")),$=computed(()=>({width:addUnit(t.imageSize)}));return(V,re)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(i).b())},[createBaseVNode("div",{class:normalizeClass(unref(i).e("image")),style:normalizeStyle$1($.value)},[V.image?(openBlock(),createElementBlock("img",{key:0,src:V.image,ondragstart:"return false"},null,8,_hoisted_1$_)):renderSlot(V.$slots,"image",{key:1},()=>[createVNode$1(ImgEmpty)])],6),createBaseVNode("div",{class:normalizeClass(unref(i).e("description"))},[V.$slots.description?renderSlot(V.$slots,"description",{key:0}):(openBlock(),createElementBlock("p",_hoisted_2$F,toDisplayString(g.value),1))],2),V.$slots.default?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).e("bottom"))},[renderSlot(V.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var Empty$1=_export_sfc(_sfc_main$1C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const ElEmpty=withInstall(Empty$1),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:definePropType([Object,Boolean]),default:!0}}),formEmits={validate:(n,t,r)=>(isArray$5(n)||isString$2(n))&&isBoolean$1(t)&&isString$2(r)};function useFormLabelWidth(){const n=ref([]),t=computed(()=>{if(!n.value.length)return"0";const $=Math.max(...n.value);return $?`${$}px`:""});function r($){const V=n.value.indexOf($);return V===-1&&t.value,V}function i($,V){if($&&V){const re=r(V);n.value.splice(re,1,$)}else $&&n.value.push($)}function g($){const V=r($);V>-1&&n.value.splice(V,1)}return{autoLabelWidth:t,registerLabelWidth:i,deregisterLabelWidth:g}}const filterFields=(n,t)=>{const r=castArray$1(t).map(i=>isArray$5(i)?i.join("."):i);return r.length>0?n.filter(i=>i.propString&&r.includes(i.propString)):n},COMPONENT_NAME$d="ElForm",_sfc_main$1B=defineComponent({name:COMPONENT_NAME$d,__name:"form",props:formProps,emits:formEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=ref(),V=reactive([]),re=useFormSize(),ie=useNamespace("form"),ae=computed(()=>{const{labelPosition:$e,inline:Ve}=i;return[ie.b(),ie.m(re.value||"default"),{[ie.m(`label-${$e}`)]:$e,[ie.m("inline")]:Ve}]}),oe=$e=>filterFields(V,[$e])[0],le=$e=>{V.push($e)},ue=$e=>{$e.prop&&V.splice(V.indexOf($e),1)},de=$e=>{i.model&&$e&&V.forEach(Ve=>{if(Ve.prop&&has($e,Ve.prop)){const Ue=getProp($e,Ve.prop).value;Ve.setInitialValue(Ue)}})},he=($e=[])=>{i.model&&filterFields(V,$e).forEach(Ve=>Ve.resetField())},pe=($e=[])=>{filterFields(V,$e).forEach(Ve=>Ve.clearValidate())},_e=computed(()=>!!i.model),Ce=$e=>{if(V.length===0)return[];const Ve=filterFields(V,$e);return Ve.length?Ve:[]},xe=async $e=>Ne(void 0,$e),Ie=async($e=[])=>{if(!_e.value)return!1;const Ve=Ce($e);if(Ve.length===0)return!0;let Ue={};for(const Fe of Ve)try{await Fe.validate(""),Fe.validateState==="error"&&!Fe.error&&Fe.resetField()}catch(ze){Ue={...Ue,...ze}}return Object.keys(Ue).length===0?!0:Promise.reject(Ue)},Ne=async($e=[],Ve)=>{let Ue=!1;const Fe=!isFunction$4(Ve);try{return Ue=await Ie($e),Ue===!0&&await(Ve==null?void 0:Ve(Ue)),Ue}catch(ze){if(ze instanceof Error)throw ze;const Pt=ze;if(i.scrollToError&&$.value){const qe=$.value.querySelector(`.${ie.b()}-item.is-error`);qe==null||qe.scrollIntoView(i.scrollIntoViewOptions)}return!Ue&&await(Ve==null?void 0:Ve(!1,Pt)),Fe&&Promise.reject(Pt)}},Oe=$e=>{var Ve;const Ue=oe($e);Ue&&((Ve=Ue.$el)==null||Ve.scrollIntoView(i.scrollIntoViewOptions))};return watch(()=>i.rules,()=>{i.validateOnRuleChange&&xe().catch($e=>void 0)},{deep:!0,flush:"post"}),provide(formContextKey,reactive({...toRefs(i),emit:g,resetFields:he,clearValidate:pe,validateField:Ne,getField:oe,addField:le,removeField:ue,setInitialValues:de,...useFormLabelWidth()})),t({validate:xe,validateField:Ne,resetFields:he,clearValidate:pe,scrollToField:Oe,getField:oe,fields:V,setInitialValues:de}),($e,Ve)=>(openBlock(),createElementBlock("form",{ref_key:"formRef",ref:$,class:normalizeClass(ae.value)},[renderSlot($e.$slots,"default")],2))}});var Form=_export_sfc(_sfc_main$1B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var t=1;t"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(n,t,r){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(g,$,V){var re=[null];re.push.apply(re,$);var ie=Function.bind.apply(g,re),ae=new ie;return V&&_setPrototypeOf(ae,V.prototype),ae},_construct.apply(null,arguments)}function _isNativeFunction(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function _wrapNativeSuper(n){var t=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(i){if(i===null||!_isNativeFunction(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(i))return t.get(i);t.set(i,g)}function g(){return _construct(i,arguments,_getPrototypeOf(this).constructor)}return g.prototype=Object.create(i.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(g,i)},_wrapNativeSuper(n)}var formatRegExp=/%[sdj%]/g,warning=function(){};typeof process<"u"&&process.env;function convertFieldsError(n){if(!n||!n.length)return null;var t={};return n.forEach(function(r){var i=r.field;t[i]=t[i]||[],t[i].push(r)}),t}function format$1(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i=$)return re;switch(re){case"%s":return String(r[g++]);case"%d":return Number(r[g++]);case"%j":try{return JSON.stringify(r[g++])}catch{return"[Circular]"}break;default:return re}});return V}return n}function isNativeStringType(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function isEmptyValue(n,t){return!!(n==null||t==="array"&&Array.isArray(n)&&!n.length||isNativeStringType(t)&&typeof n=="string"&&!n)}function asyncParallelArray(n,t,r){var i=[],g=0,$=n.length;function V(re){i.push.apply(i,re||[]),g++,g===$&&r(i)}n.forEach(function(re){t(re,V)})}function asyncSerialArray(n,t,r){var i=0,g=n.length;function $(V){if(V&&V.length){r(V);return}var re=i;i=i+1,re()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types={integer:function(t){return types.number(t)&&parseInt(t,10)===t},float:function(t){return types.number(t)&&!types.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!types.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(pattern$2.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(getUrlRegex())},hex:function(t){return typeof t=="string"&&!!t.match(pattern$2.hex)}},type$1=function(t,r,i,g,$){if(t.required&&r===void 0){required$1(t,r,i,g,$);return}var V=["integer","float","array","regexp","object","method","email","number","date","url","hex"],re=t.type;V.indexOf(re)>-1?types[re](r)||g.push(format$1($.messages.types[re],t.fullField,t.type)):re&&typeof r!==t.type&&g.push(format$1($.messages.types[re],t.fullField,t.type))},range=function(t,r,i,g,$){var V=typeof t.len=="number",re=typeof t.min=="number",ie=typeof t.max=="number",ae=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,oe=r,le=null,ue=typeof r=="number",de=typeof r=="string",he=Array.isArray(r);if(ue?le="number":de?le="string":he&&(le="array"),!le)return!1;he&&(oe=r.length),de&&(oe=r.replace(ae,"_").length),V?oe!==t.len&&g.push(format$1($.messages[le].len,t.fullField,t.len)):re&&!ie&&oet.max?g.push(format$1($.messages[le].max,t.fullField,t.max)):re&&ie&&(oet.max)&&g.push(format$1($.messages[le].range,t.fullField,t.min,t.max))},ENUM$1="enum",enumerable$1=function(t,r,i,g,$){t[ENUM$1]=Array.isArray(t[ENUM$1])?t[ENUM$1]:[],t[ENUM$1].indexOf(r)===-1&&g.push(format$1($.messages[ENUM$1],t.fullField,t[ENUM$1].join(", ")))},pattern$1=function(t,r,i,g,$){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||g.push(format$1($.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var V=new RegExp(t.pattern);V.test(r)||g.push(format$1($.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r,"string")&&!t.required)return i();rules.required(t,r,g,V,$,"string"),isEmptyValue(r,"string")||(rules.type(t,r,g,V,$),rules.range(t,r,g,V,$),rules.pattern(t,r,g,V,$),t.whitespace===!0&&rules.whitespace(t,r,g,V,$))}i(V)},method=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),r!==void 0&&rules.type(t,r,g,V,$)}i(V)},number=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(r===""&&(r=void 0),isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),r!==void 0&&(rules.type(t,r,g,V,$),rules.range(t,r,g,V,$))}i(V)},_boolean=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),r!==void 0&&rules.type(t,r,g,V,$)}i(V)},regexp$1=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),isEmptyValue(r)||rules.type(t,r,g,V,$)}i(V)},integer=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),r!==void 0&&(rules.type(t,r,g,V,$),rules.range(t,r,g,V,$))}i(V)},floatFn=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),r!==void 0&&(rules.type(t,r,g,V,$),rules.range(t,r,g,V,$))}i(V)},array=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(r==null&&!t.required)return i();rules.required(t,r,g,V,$,"array"),r!=null&&(rules.type(t,r,g,V,$),rules.range(t,r,g,V,$))}i(V)},object=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),r!==void 0&&rules.type(t,r,g,V,$)}i(V)},ENUM="enum",enumerable=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),r!==void 0&&rules[ENUM](t,r,g,V,$)}i(V)},pattern=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r,"string")&&!t.required)return i();rules.required(t,r,g,V,$),isEmptyValue(r,"string")||rules.pattern(t,r,g,V,$)}i(V)},date=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r,"date")&&!t.required)return i();if(rules.required(t,r,g,V,$),!isEmptyValue(r,"date")){var ie;r instanceof Date?ie=r:ie=new Date(r),rules.type(t,ie,g,V,$),ie&&rules.range(t,ie.getTime(),g,V,$)}}i(V)},required=function(t,r,i,g,$){var V=[],re=Array.isArray(r)?"array":typeof r;rules.required(t,r,g,V,$,re),i(V)},type=function(t,r,i,g,$){var V=t.type,re=[],ie=t.required||!t.required&&g.hasOwnProperty(t.field);if(ie){if(isEmptyValue(r,V)&&!t.required)return i();rules.required(t,r,g,re,$,V),isEmptyValue(r,V)||rules.type(t,r,g,re,$)}i(re)},any=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$)}i(V)},validators$2={string,method,number,boolean:_boolean,regexp:regexp$1,integer,float:floatFn,array,object,enum:enumerable,pattern,date,url:type,hex:type,email:type,required,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var messages=newMessages(),Schema=function(){function n(r){this.rules=null,this._messages=messages,this.define(r)}var t=n.prototype;return t.define=function(i){var g=this;if(!i)throw new Error("Cannot configure a schema with no rules");if(typeof i!="object"||Array.isArray(i))throw new Error("Rules must be an object");this.rules={},Object.keys(i).forEach(function($){var V=i[$];g.rules[$]=Array.isArray(V)?V:[V]})},t.messages=function(i){return i&&(this._messages=deepMerge(newMessages(),i)),this._messages},t.validate=function(i,g,$){var V=this;g===void 0&&(g={}),$===void 0&&($=function(){});var re=i,ie=g,ae=$;if(typeof ie=="function"&&(ae=ie,ie={}),!this.rules||Object.keys(this.rules).length===0)return ae&&ae(null,re),Promise.resolve(re);function oe(pe){var _e=[],Ce={};function xe(Ne){if(Array.isArray(Ne)){var Oe;_e=(Oe=_e).concat.apply(Oe,Ne)}else _e.push(Ne)}for(var Ie=0;Ie");const g=useNamespace("form"),$=ref(),V=ref(0),re=()=>{var oe;if((oe=$.value)!=null&&oe.firstElementChild){const le=window.getComputedStyle($.value.firstElementChild).width;return Math.ceil(Number.parseFloat(le))}else return 0},ie=(oe="update")=>{nextTick(()=>{t.default&&n.isAutoWidth&&(oe==="update"?V.value=re():oe==="remove"&&(r==null||r.deregisterLabelWidth(V.value)))})},ae=()=>ie("update");return onMounted(()=>{ae()}),onBeforeUnmount(()=>{ie("remove")}),onUpdated(()=>ae()),watch(V,(oe,le)=>{n.updateAll&&(r==null||r.registerLabelWidth(oe,le))}),useResizeObserver(computed(()=>{var oe,le;return(le=(oe=$.value)==null?void 0:oe.firstElementChild)!=null?le:null}),ae),()=>{var oe,le;if(!t)return null;const{isAutoWidth:ue}=n;if(ue){const de=r==null?void 0:r.autoLabelWidth,he=i==null?void 0:i.hasLabel,pe={};if(he&&de&&de!=="auto"){const _e=Math.max(0,Number.parseInt(de,10)-V.value),xe=(i.labelPosition||r.labelPosition)==="left"?"marginRight":"marginLeft";_e&&(pe[xe]=`${_e}px`)}return createVNode$1("div",{ref:$,class:[g.be("item","label-wrap")],style:pe},[(oe=t.default)==null?void 0:oe.call(t)])}else return createVNode$1(Fragment,{ref:$},[(le=t.default)==null?void 0:le.call(t)])}}});const _hoisted_1$Z=["role","aria-labelledby"],_sfc_main$1A=defineComponent({name:"ElFormItem",__name:"form-item",props:formItemProps,setup(n,{expose:t}){const r=n,i=useSlots(),g=inject(formContextKey,void 0),$=inject(formItemContextKey,void 0),V=useFormSize(void 0,{formItem:!1}),re=useNamespace("form-item"),ie=useId().value,ae=ref([]),oe=ref(""),le=refDebounced(oe,100),ue=ref(""),de=ref();let he,pe=!1;const _e=computed(()=>r.labelPosition||(g==null?void 0:g.labelPosition)),Ce=computed(()=>{var $n;return _e.value==="top"?{}:{width:addUnit(($n=r.labelWidth)!=null?$n:g==null?void 0:g.labelWidth)}}),xe=computed(()=>{var $n;if(_e.value==="top"||g!=null&&g.inline)return{};if(!r.label&&!r.labelWidth&&ze)return{};const An=addUnit(($n=r.labelWidth)!=null?$n:g==null?void 0:g.labelWidth);return!r.label&&!i.label?{marginLeft:An}:{}}),Ie=computed(()=>[re.b(),re.m(V.value),re.is("error",oe.value==="error"),re.is("validating",oe.value==="validating"),re.is("success",oe.value==="success"),re.is("required",At.value||r.required),re.is("no-asterisk",g==null?void 0:g.hideRequiredAsterisk),(g==null?void 0:g.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[re.m("feedback")]:g==null?void 0:g.statusIcon,[re.m(`label-${_e.value}`)]:_e.value}]),Ne=computed(()=>isBoolean$1(r.inlineMessage)?r.inlineMessage:(g==null?void 0:g.inlineMessage)||!1),Oe=computed(()=>[re.e("error"),{[re.em("error","inline")]:Ne.value}]),$e=computed(()=>r.prop?isArray$5(r.prop)?r.prop.join("."):r.prop:""),Ve=computed(()=>!!(r.label||i.label)),Ue=computed(()=>{var $n;return($n=r.for)!=null?$n:ae.value.length===1?ae.value[0]:void 0}),Fe=computed(()=>!Ue.value&&Ve.value),ze=!!$,Pt=computed(()=>{const $n=g==null?void 0:g.model;if(!(!$n||!r.prop))return getProp($n,r.prop).value}),qe=computed(()=>{const{required:$n}=r,An=[];r.rules&&An.push(...castArray$1(r.rules));const xn=g==null?void 0:g.rules;if(xn&&r.prop){const Ln=getProp(xn,r.prop).value;Ln&&An.push(...castArray$1(Ln))}if($n!==void 0){const Ln=An.map((Nn,Pn)=>[Nn,Pn]).filter(([Nn])=>"required"in Nn);if(Ln.length>0)for(const[Nn,Pn]of Ln)Nn.required!==$n&&(An[Pn]={...Nn,required:$n});else An.push({required:$n})}return An}),Et=computed(()=>qe.value.length>0),kt=$n=>qe.value.filter(xn=>!xn.trigger||!$n?!0:isArray$5(xn.trigger)?xn.trigger.includes($n):xn.trigger===$n).map(({trigger:xn,...Ln})=>Ln),At=computed(()=>qe.value.some($n=>$n.required)),Dt=computed(()=>{var $n;return le.value==="error"&&r.showMessage&&(($n=g==null?void 0:g.showMessage)!=null?$n:!0)}),Lt=computed(()=>`${r.label||""}${(g==null?void 0:g.labelSuffix)||""}`),jt=$n=>{oe.value=$n},hn=$n=>{var An,xn;const{errors:Ln,fields:Nn}=$n;(!Ln||!Nn)&&console.error($n),jt("error"),ue.value=Ln?(xn=(An=Ln==null?void 0:Ln[0])==null?void 0:An.message)!=null?xn:`${r.prop} is required`:"",g==null||g.emit("validate",r.prop,!1,ue.value)},vn=()=>{jt("success"),g==null||g.emit("validate",r.prop,!0,"")},_n=async $n=>{const An=$e.value;return new Schema({[An]:$n}).validate({[An]:Pt.value},{firstFields:!0}).then(()=>(vn(),!0)).catch(Ln=>(hn(Ln),Promise.reject(Ln)))},wn=async($n,An)=>{if(pe||!r.prop)return!1;const xn=isFunction$4(An);if(!Et.value)return An==null||An(!1),!1;const Ln=kt($n);return Ln.length===0?(An==null||An(!0),!0):(jt("validating"),_n(Ln).then(()=>(An==null||An(!0),!0)).catch(Nn=>{const{fields:Pn}=Nn;return An==null||An(!1,Pn),xn?!1:Promise.reject(Pn)}))},bn=()=>{jt(""),ue.value="",pe=!1},Cn=async()=>{const $n=g==null?void 0:g.model;if(!$n||!r.prop)return;const An=getProp($n,r.prop);pe=!0,An.value=clone$3(he),await nextTick(),bn(),pe=!1},Sn=$n=>{ae.value.includes($n)||ae.value.push($n)},Tn=$n=>{ae.value=ae.value.filter(An=>An!==$n)},En=$n=>{he=clone$3($n)};watch(()=>r.error,$n=>{ue.value=$n||"",jt($n?"error":"")},{immediate:!0}),watch(()=>r.validateStatus,$n=>jt($n||""));const kn=reactive({...toRefs(r),$el:de,size:V,validateMessage:ue,validateState:oe,labelId:ie,inputIds:ae,isGroup:Fe,hasLabel:Ve,fieldValue:Pt,addInputId:Sn,removeInputId:Tn,resetField:Cn,clearValidate:bn,validate:wn,propString:$e,setInitialValue:En});return provide(formItemContextKey,kn),onMounted(()=>{r.prop&&(g==null||g.addField(kn),he=clone$3(Pt.value))}),onBeforeUnmount(()=>{g==null||g.removeField(kn)}),t({size:V,validateMessage:ue,validateState:oe,validate:wn,clearValidate:bn,resetField:Cn,setInitialValue:En}),($n,An)=>{var xn;return openBlock(),createElementBlock("div",{ref_key:"formItemRef",ref:de,class:normalizeClass(Ie.value),role:Fe.value?"group":void 0,"aria-labelledby":Fe.value?unref(ie):void 0},[createVNode$1(unref(FormLabelWrap),{"is-auto-width":Ce.value.width==="auto","update-all":((xn=unref(g))==null?void 0:xn.labelWidth)==="auto"},{default:withCtx(()=>[$n.label||$n.$slots.label?(openBlock(),createBlock(resolveDynamicComponent(Ue.value?"label":"div"),{key:0,id:unref(ie),for:Ue.value,class:normalizeClass(unref(re).e("label")),style:normalizeStyle$1(Ce.value)},{default:withCtx(()=>[renderSlot($n.$slots,"label",{label:Lt.value},()=>[createTextVNode(toDisplayString(Lt.value),1)])]),_:3},8,["id","for","class","style"])):createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),createBaseVNode("div",{class:normalizeClass(unref(re).e("content")),style:normalizeStyle$1(xe.value)},[renderSlot($n.$slots,"default"),createVNode$1(TransitionGroup,{name:`${unref(re).namespace.value}-zoom-in-top`},{default:withCtx(()=>[Dt.value?renderSlot($n.$slots,"error",{key:0,error:ue.value},()=>[createBaseVNode("div",{class:normalizeClass(Oe.value)},toDisplayString(ue.value),3)]):createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,_hoisted_1$Z)}}});var FormItem=_export_sfc(_sfc_main$1A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const ElForm=withInstall(Form,{FormItem}),ElFormItem=withNoopInstall(FormItem),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},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:definePropType(String)}}),imageViewerEmits={close:()=>!0,error:n=>n instanceof Event,switch:n=>isNumber$2(n),rotate:n=>isNumber$2(n)},_hoisted_1$Y=["src","crossorigin"],_sfc_main$1z=defineComponent({name:"ElImageViewer",__name:"image-viewer",props:imageViewerProps,emits:imageViewerEmits,setup(n,{expose:t,emit:r}){var i;const g={CONTAIN:{name:"contain",icon:markRaw(full_screen_default)},ORIGINAL:{name:"original",icon:markRaw(scale_to_original_default)}},$=n,V=r;let re;const{t:ie}=useLocale(),ae=useNamespace("image-viewer"),{nextZIndex:oe}=useZIndex(),le=ref(),ue=ref(),de=effectScope(),he=computed(()=>{const{scale:An,minScale:xn,maxScale:Ln}=$;return clamp$4(An,xn,Ln)}),pe=ref(!0),_e=ref(!1),Ce=ref(!1),xe=ref($.initialIndex),Ie=shallowRef(g.CONTAIN),Ne=ref({scale:he.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),Oe=ref((i=$.zIndex)!=null?i:oe());useLockscreen(Ce,{ns:ae});const $e=computed(()=>{const{urlList:An}=$;return An.length<=1}),Ve=computed(()=>xe.value===0),Ue=computed(()=>xe.value===$.urlList.length-1),Fe=computed(()=>$.urlList[xe.value]),ze=computed(()=>[ae.e("btn"),ae.e("prev"),ae.is("disabled",!$.infinite&&Ve.value)]),Pt=computed(()=>[ae.e("btn"),ae.e("next"),ae.is("disabled",!$.infinite&&Ue.value)]),qe=computed(()=>{const{scale:An,deg:xn,offsetX:Ln,offsetY:Nn,enableTransition:Pn}=Ne.value;let On=Ln/An,Hn=Nn/An;const Xn=xn*Math.PI/180,In=Math.cos(Xn),or=Math.sin(Xn);On=On*In+Hn*or,Hn=Hn*In-Ln/An*or;const Qn={transform:`scale(${An}) rotate(${xn}deg) translate(${On}px, ${Hn}px)`,transition:Pn?"transform .3s":""};return Ie.value.name===g.CONTAIN.name&&(Qn.maxWidth=Qn.maxHeight="100%"),Qn}),Et=computed(()=>`${xe.value+1} / ${$.urlList.length}`);function kt(){Dt(),re==null||re(),Ce.value=!1,V("close")}function At(){const An=throttle$3(Ln=>{switch(getEventCode(Ln)){case EVENT_CODE.esc:$.closeOnPressEscape&&kt();break;case EVENT_CODE.space:wn();break;case EVENT_CODE.left:Cn();break;case EVENT_CODE.up:Tn("zoomIn");break;case EVENT_CODE.right:Sn();break;case EVENT_CODE.down:Tn("zoomOut");break}}),xn=throttle$3(Ln=>{const Nn=Ln.deltaY||Ln.deltaX;Tn(Nn<0?"zoomIn":"zoomOut",{zoomRate:$.zoomRate,enableTransition:!1})});de.run(()=>{useEventListener(document,"keydown",An),useEventListener(le,"wheel",xn)})}function Dt(){de.stop()}function Lt(){pe.value=!1}function jt(An){_e.value=!0,pe.value=!1,V("error",An),An.target.alt=ie("el.image.error")}function hn(An){if(pe.value||An.button!==0||!le.value)return;Ne.value.enableTransition=!1;const{offsetX:xn,offsetY:Ln}=Ne.value,Nn=An.pageX,Pn=An.pageY,On=throttle$3(In=>{Ne.value={...Ne.value,offsetX:xn+In.pageX-Nn,offsetY:Ln+In.pageY-Pn}}),Hn=useEventListener(document,"mousemove",On),Xn=useEventListener(document,"mouseup",()=>{Hn(),Xn()});An.preventDefault()}function vn(An){if(pe.value||!le.value||An.touches.length!==1)return;Ne.value.enableTransition=!1;const{offsetX:xn,offsetY:Ln}=Ne.value,{pageX:Nn,pageY:Pn}=An.touches[0],On=throttle$3(In=>{const or=In.touches[0];Ne.value={...Ne.value,offsetX:xn+or.pageX-Nn,offsetY:Ln+or.pageY-Pn}}),Hn=useEventListener(document,"touchmove",On),Xn=useEventListener(document,"touchend",()=>{Hn(),Xn()});An.preventDefault()}function _n(){Ne.value={scale:he.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function wn(){if(pe.value||_e.value)return;const An=keysOf(g),xn=Object.values(g),Ln=Ie.value.name,Pn=(xn.findIndex(On=>On.name===Ln)+1)%An.length;Ie.value=g[An[Pn]],_n()}function bn(An){_e.value=!1;const xn=$.urlList.length;xe.value=(An+xn)%xn}function Cn(){Ve.value&&!$.infinite||bn(xe.value-1)}function Sn(){Ue.value&&!$.infinite||bn(xe.value+1)}function Tn(An,xn={}){if(pe.value||_e.value)return;const{minScale:Ln,maxScale:Nn}=$,{zoomRate:Pn,rotateDeg:On,enableTransition:Hn}={zoomRate:$.zoomRate,rotateDeg:90,enableTransition:!0,...xn};switch(An){case"zoomOut":Ne.value.scale>Ln&&(Ne.value.scale=Number.parseFloat((Ne.value.scale/Pn).toFixed(3)));break;case"zoomIn":Ne.value.scale0)return An.preventDefault(),!1}}return watch(()=>he.value,An=>{Ne.value.scale=An}),watch(Fe,()=>{nextTick(()=>{const An=ue.value;An!=null&&An.complete||(pe.value=!0)})}),watch(xe,An=>{_n(),V("switch",An)}),onMounted(()=>{Ce.value=!0,At(),re=useEventListener("wheel",$n,{passive:!1})}),t({setActiveItem:bn}),(An,xn)=>(openBlock(),createBlock(unref(ElTeleport),{to:"body",disabled:!An.teleported},{default:withCtx(()=>[createVNode$1(Transition,{name:"viewer-fade",appear:""},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"wrapper",ref:le,tabindex:-1,class:normalizeClass(unref(ae).e("wrapper")),style:normalizeStyle$1({zIndex:Oe.value})},[createVNode$1(unref(ElFocusTrap),{loop:"",trapped:"","focus-trap-el":le.value,"focus-start-el":"container",onFocusoutPrevented:En,onReleaseRequested:kn},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(ae).e("mask")),onClick:xn[0]||(xn[0]=withModifiers(Ln=>An.hideOnClickModal&&kt(),["self"]))},null,2),createCommentVNode(" CLOSE "),createBaseVNode("span",{class:normalizeClass([unref(ae).e("btn"),unref(ae).e("close")]),onClick:kt},[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(close_default))]),_:1})],2),createCommentVNode(" ARROW "),$e.value?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("span",{class:normalizeClass(ze.value),onClick:Cn},[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_left_default))]),_:1})],2),createBaseVNode("span",{class:normalizeClass(Pt.value),onClick:Sn},[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1})],2)],64)),An.$slots.progress||An.showProgress?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(ae).e("btn"),unref(ae).e("progress")])},[renderSlot(An.$slots,"progress",{activeIndex:xe.value,total:An.urlList.length},()=>[createTextVNode(toDisplayString(Et.value),1)])],2)):createCommentVNode("v-if",!0),createCommentVNode(" ACTIONS "),createBaseVNode("div",{class:normalizeClass([unref(ae).e("btn"),unref(ae).e("actions")])},[createBaseVNode("div",{class:normalizeClass(unref(ae).e("actions__inner"))},[renderSlot(An.$slots,"toolbar",{actions:Tn,prev:Cn,next:Sn,reset:wn,activeIndex:xe.value,setActiveItem:bn},()=>[createVNode$1(unref(ElIcon),{onClick:xn[1]||(xn[1]=Ln=>Tn("zoomOut"))},{default:withCtx(()=>[createVNode$1(unref(zoom_out_default))]),_:1}),createVNode$1(unref(ElIcon),{onClick:xn[2]||(xn[2]=Ln=>Tn("zoomIn"))},{default:withCtx(()=>[createVNode$1(unref(zoom_in_default))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(ae).e("actions__divider"))},null,2),createVNode$1(unref(ElIcon),{onClick:wn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ie.value.icon)))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(ae).e("actions__divider"))},null,2),createVNode$1(unref(ElIcon),{onClick:xn[3]||(xn[3]=Ln=>Tn("anticlockwise"))},{default:withCtx(()=>[createVNode$1(unref(refresh_left_default))]),_:1}),createVNode$1(unref(ElIcon),{onClick:xn[4]||(xn[4]=Ln=>Tn("clockwise"))},{default:withCtx(()=>[createVNode$1(unref(refresh_right_default))]),_:1})])],2)],2),createCommentVNode(" CANVAS "),createBaseVNode("div",{class:normalizeClass(unref(ae).e("canvas"))},[_e.value&&An.$slots["viewer-error"]?renderSlot(An.$slots,"viewer-error",{key:0,activeIndex:xe.value,src:Fe.value}):(openBlock(),createElementBlock("img",{ref_key:"imgRef",ref:ue,key:Fe.value,src:Fe.value,style:normalizeStyle$1(qe.value),class:normalizeClass(unref(ae).e("img")),crossorigin:An.crossorigin,onLoad:Lt,onError:jt,onMousedown:hn,onTouchstart:vn},null,46,_hoisted_1$Y))],2),renderSlot(An.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var ImageViewer=_export_sfc(_sfc_main$1z,[["__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},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:definePropType(String)}}),imageEmits={load:n=>n instanceof Event,error:n=>n instanceof Event,switch:n=>isNumber$2(n),close:()=>!0,show:()=>!0},_hoisted_1$X=["src","loading","crossorigin"],_hoisted_2$E={key:0},_sfc_main$1y=defineComponent({name:"ElImage",inheritAttrs:!1,__name:"image",props:imageProps,emits:imageEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{t:$}=useLocale(),V=useNamespace("image"),re=useAttrs$1(),ie=computed(()=>fromPairs(Object.entries(re).filter(([Lt])=>/^(data-|on[A-Z])/i.test(Lt)||["id","style"].includes(Lt)))),ae=useAttrs({excludeListeners:!0,excludeKeys:computed(()=>Object.keys(ie.value))}),oe=ref(),le=ref(!1),ue=ref(!0),de=ref(!1),he=ref(),pe=ref(),_e=isClient&&"loading"in HTMLImageElement.prototype;let Ce;const xe=computed(()=>[V.e("inner"),Ne.value&&V.e("preview"),ue.value&&V.is("loading")]),Ie=computed(()=>{const{fit:Lt}=i;return isClient&&Lt?{objectFit:Lt}:{}}),Ne=computed(()=>{const{previewSrcList:Lt}=i;return isArray$5(Lt)&&Lt.length>0}),Oe=computed(()=>{const{previewSrcList:Lt,initialIndex:jt}=i;let hn=jt;return jt>Lt.length-1&&(hn=0),hn}),$e=computed(()=>i.loading==="eager"?!1:!_e&&i.loading==="lazy"||i.lazy),Ve=()=>{isClient&&(ue.value=!0,le.value=!1,oe.value=i.src)};function Ue(Lt){ue.value=!1,le.value=!1,g("load",Lt)}function Fe(Lt){ue.value=!1,le.value=!0,g("error",Lt)}function ze(Lt){Lt&&(Ve(),Et())}const Pt=useThrottleFn(ze,200,!0);async function qe(){var Lt;if(!isClient)return;await nextTick();const{scrollContainer:jt}=i;if(isElement$1(jt))pe.value=jt;else if(isString$2(jt)&&jt!=="")pe.value=(Lt=document.querySelector(jt))!=null?Lt:void 0;else if(he.value){const vn=getScrollContainer(he.value);pe.value=isWindow(vn)?void 0:vn}const{stop:hn}=useIntersectionObserver(he,([vn])=>{Pt(vn.isIntersecting)},{root:pe});Ce=hn}function Et(){!isClient||!Pt||(Ce==null||Ce(),pe.value=void 0,Ce=void 0)}function kt(){Ne.value&&(de.value=!0,g("show"))}function At(){de.value=!1,g("close")}function Dt(Lt){g("switch",Lt)}return watch(()=>i.src,()=>{$e.value?(ue.value=!0,le.value=!1,Et(),qe()):Ve()}),onMounted(()=>{$e.value?qe():Ve()}),t({showPreview:kt}),(Lt,jt)=>(openBlock(),createElementBlock("div",mergeProps({ref_key:"container",ref:he},ie.value,{class:[unref(V).b(),Lt.$attrs.class]}),[le.value?renderSlot(Lt.$slots,"error",{key:0},()=>[createBaseVNode("div",{class:normalizeClass(unref(V).e("error"))},toDisplayString(unref($)("el.image.error")),3)]):(openBlock(),createElementBlock(Fragment,{key:1},[oe.value!==void 0?(openBlock(),createElementBlock("img",mergeProps({key:0},unref(ae),{src:oe.value,loading:Lt.loading,style:Ie.value,class:xe.value,crossorigin:Lt.crossorigin,onClick:kt,onLoad:Ue,onError:Fe}),null,16,_hoisted_1$X)):createCommentVNode("v-if",!0),ue.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(V).e("wrapper"))},[renderSlot(Lt.$slots,"placeholder",{},()=>[createBaseVNode("div",{class:normalizeClass(unref(V).e("placeholder"))},null,2)])],2)):createCommentVNode("v-if",!0)],64)),Ne.value?(openBlock(),createElementBlock(Fragment,{key:2},[de.value?(openBlock(),createBlock(unref(ElImageViewer),{key:0,"z-index":Lt.zIndex,"initial-index":Oe.value,infinite:Lt.infinite,"zoom-rate":Lt.zoomRate,"min-scale":Lt.minScale,"max-scale":Lt.maxScale,"show-progress":Lt.showProgress,"url-list":Lt.previewSrcList,scale:Lt.scale,crossorigin:Lt.crossorigin,"hide-on-click-modal":Lt.hideOnClickModal,teleported:Lt.previewTeleported,"close-on-press-escape":Lt.closeOnPressEscape,onClose:At,onSwitch:Dt},createSlots({toolbar:withCtx(hn=>[renderSlot(Lt.$slots,"toolbar",normalizeProps(guardReactiveProps(hn)))]),default:withCtx(()=>[Lt.$slots.viewer?(openBlock(),createElementBlock("div",_hoisted_2$E,[renderSlot(Lt.$slots,"viewer")])):createCommentVNode("v-if",!0)]),_:2},[Lt.$slots.progress?{name:"progress",fn:withCtx(hn=>[renderSlot(Lt.$slots,"progress",normalizeProps(guardReactiveProps(hn)))]),key:"0"}:void 0,Lt.$slots["viewer-error"]?{name:"viewer-error",fn:withCtx(hn=>[renderSlot(Lt.$slots,"viewer-error",normalizeProps(guardReactiveProps(hn)))]),key:"1"}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","scale","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0)],16))}});var Image$1=_export_sfc(_sfc_main$1y,[["__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.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:{type:Boolean,default:void 0},size:useSizeProp,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:definePropType([String,Number,null]),validator:n=>n===null||isNumber$2(n)||["min","max"].includes(n),default:null},name:String,placeholder:String,precision:{type:Number,validator:n=>n>=0&&n===Number.parseInt(`${n}`,10)},validateEvent:{type:Boolean,default:!0},...useAriaProps(["ariaLabel"]),inputmode:{type:definePropType(String),default:void 0},align:{type:definePropType(String),default:"center"},disabledScientific:Boolean}),inputNumberEmits={[CHANGE_EVENT]:(n,t)=>t!==n,blur:n=>n instanceof FocusEvent,focus:n=>n instanceof FocusEvent,[INPUT_EVENT]:n=>isNumber$2(n)||isNil(n),[UPDATE_MODEL_EVENT]:n=>isNumber$2(n)||isNil(n)},_hoisted_1$W=["aria-label"],_hoisted_2$D=["aria-label"],_sfc_main$1x=defineComponent({name:"ElInputNumber",__name:"input-number",props:inputNumberProps,emits:inputNumberEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{t:$}=useLocale(),V=useNamespace("input-number"),re=ref(),ie=reactive({currentValue:i.modelValue,userInput:null}),{formItem:ae}=useFormItem(),oe=computed(()=>isNumber$2(i.modelValue)&&i.modelValue<=i.min),le=computed(()=>isNumber$2(i.modelValue)&&i.modelValue>=i.max),ue=computed(()=>{const Lt=xe(i.step);return isUndefined$1(i.precision)?Math.max(xe(i.modelValue),Lt):(Lt>i.precision,i.precision)}),de=computed(()=>i.controls&&i.controlsPosition==="right"),he=useFormSize(),pe=useFormDisabled(),_e=computed(()=>{if(ie.userInput!==null)return ie.userInput;let Lt=ie.currentValue;if(isNil(Lt))return"";if(isNumber$2(Lt)){if(Number.isNaN(Lt))return"";isUndefined$1(i.precision)||(Lt=Lt.toFixed(i.precision))}return Lt}),Ce=(Lt,jt)=>{if(isUndefined$1(jt)&&(jt=ue.value),jt===0)return Math.round(Lt);let hn=String(Lt);const vn=hn.indexOf(".");if(vn===-1||!hn.replace(".","").split("")[vn+jt])return Lt;const bn=hn.length;return hn.charAt(bn-1)==="5"&&(hn=`${hn.slice(0,Math.max(0,bn-1))}6`),Number.parseFloat(Number(hn).toFixed(jt))},xe=Lt=>{if(isNil(Lt))return 0;const jt=Lt.toString(),hn=jt.indexOf(".");let vn=0;return hn!==-1&&(vn=jt.length-hn-1),vn},Ie=(Lt,jt=1)=>isNumber$2(Lt)?Lt>=Number.MAX_SAFE_INTEGER&&jt===1||Lt<=Number.MIN_SAFE_INTEGER&&jt===-1?Lt:Ce(Lt+i.step*jt):ie.currentValue,Ne=Lt=>{const jt=getEventCode(Lt),hn=getEventKey(Lt);if(i.disabledScientific&&["e","E"].includes(hn)){Lt.preventDefault();return}switch(jt){case EVENT_CODE.up:{Lt.preventDefault(),Oe();break}case EVENT_CODE.down:{Lt.preventDefault(),$e();break}}},Oe=()=>{if(i.readonly||pe.value||le.value)return;const Lt=Number(_e.value)||0,jt=Ie(Lt);Ue(jt),g(INPUT_EVENT,ie.currentValue),At()},$e=()=>{if(i.readonly||pe.value||oe.value)return;const Lt=Number(_e.value)||0,jt=Ie(Lt,-1);Ue(jt),g(INPUT_EVENT,ie.currentValue),At()},Ve=(Lt,jt)=>{const{max:hn,min:vn,step:_n,precision:wn,stepStrictly:bn,valueOnClear:Cn}=i;hnhn||Snhn?hn:vn,jt&&g(UPDATE_MODEL_EVENT,Sn)),Sn},Ue=(Lt,jt=!0)=>{var hn;const vn=ie.currentValue,_n=Ve(Lt);if(!jt){g(UPDATE_MODEL_EVENT,_n);return}ie.userInput=null,!(vn===_n&&Lt)&&(g(UPDATE_MODEL_EVENT,_n),vn!==_n&&g(CHANGE_EVENT,_n,vn),i.validateEvent&&((hn=ae==null?void 0:ae.validate)==null||hn.call(ae,"change").catch(wn=>void 0)),ie.currentValue=_n)},Fe=Lt=>{ie.userInput=Lt;const jt=Lt===""?null:Number(Lt);g(INPUT_EVENT,jt),Ue(jt,!1)},ze=Lt=>{const jt=Lt!==""?Number(Lt):"";(isNumber$2(jt)&&!Number.isNaN(jt)||Lt==="")&&Ue(jt),At(),ie.userInput=null},Pt=()=>{var Lt,jt;(jt=(Lt=re.value)==null?void 0:Lt.focus)==null||jt.call(Lt)},qe=()=>{var Lt,jt;(jt=(Lt=re.value)==null?void 0:Lt.blur)==null||jt.call(Lt)},Et=Lt=>{g("focus",Lt)},kt=Lt=>{var jt,hn;ie.userInput=null,ie.currentValue===null&&((jt=re.value)!=null&&jt.input)&&(re.value.input.value=""),g("blur",Lt),i.validateEvent&&((hn=ae==null?void 0:ae.validate)==null||hn.call(ae,"blur").catch(vn=>void 0))},At=()=>{ie.currentValue!==i.modelValue&&(ie.currentValue=i.modelValue)},Dt=Lt=>{document.activeElement===Lt.target&&Lt.preventDefault()};return watch(()=>i.modelValue,(Lt,jt)=>{const hn=Ve(Lt,!0);ie.userInput===null&&hn!==jt&&(ie.currentValue=hn)},{immediate:!0}),watch(()=>i.precision,()=>{ie.currentValue=Ve(i.modelValue)}),onMounted(()=>{var Lt;const{min:jt,max:hn,modelValue:vn}=i,_n=(Lt=re.value)==null?void 0:Lt.input;if(_n.setAttribute("role","spinbutton"),Number.isFinite(hn)?_n.setAttribute("aria-valuemax",String(hn)):_n.removeAttribute("aria-valuemax"),Number.isFinite(jt)?_n.setAttribute("aria-valuemin",String(jt)):_n.removeAttribute("aria-valuemin"),_n.setAttribute("aria-valuenow",ie.currentValue||ie.currentValue===0?String(ie.currentValue):""),_n.setAttribute("aria-disabled",String(pe.value)),!isNumber$2(vn)&&vn!=null){let wn=Number(vn);Number.isNaN(wn)&&(wn=null),g(UPDATE_MODEL_EVENT,wn)}_n.addEventListener("wheel",Dt,{passive:!1})}),onUpdated(()=>{var Lt,jt;const hn=(Lt=re.value)==null?void 0:Lt.input;hn==null||hn.setAttribute("aria-valuenow",`${(jt=ie.currentValue)!=null?jt:""}`)}),t({focus:Pt,blur:qe}),(Lt,jt)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(V).b(),unref(V).m(unref(he)),unref(V).is("disabled",unref(pe)),unref(V).is("without-controls",!Lt.controls),unref(V).is("controls-right",de.value),unref(V).is(Lt.align,!!Lt.align)]),onDragstart:jt[0]||(jt[0]=withModifiers(()=>{},["prevent"]))},[Lt.controls?withDirectives((openBlock(),createElementBlock("span",{key:0,role:"button","aria-label":unref($)("el.inputNumber.decrease"),class:normalizeClass([unref(V).e("decrease"),unref(V).is("disabled",oe.value)]),onKeydown:withKeys($e,["enter"])},[renderSlot(Lt.$slots,"decrease-icon",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[de.value?(openBlock(),createBlock(unref(arrow_down_default),{key:0})):(openBlock(),createBlock(unref(minus_default),{key:1}))]),_:1})])],42,_hoisted_1$W)),[[unref(vRepeatClick),$e]]):createCommentVNode("v-if",!0),Lt.controls?withDirectives((openBlock(),createElementBlock("span",{key:1,role:"button","aria-label":unref($)("el.inputNumber.increase"),class:normalizeClass([unref(V).e("increase"),unref(V).is("disabled",le.value)]),onKeydown:withKeys(Oe,["enter"])},[renderSlot(Lt.$slots,"increase-icon",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[de.value?(openBlock(),createBlock(unref(arrow_up_default),{key:0})):(openBlock(),createBlock(unref(plus_default),{key:1}))]),_:1})])],42,_hoisted_2$D)),[[unref(vRepeatClick),Oe]]):createCommentVNode("v-if",!0),createVNode$1(unref(ElInput),{id:Lt.id,ref_key:"input",ref:re,type:"number",step:Lt.step,"model-value":_e.value,placeholder:Lt.placeholder,readonly:Lt.readonly,disabled:unref(pe),size:unref(he),max:Lt.max,min:Lt.min,name:Lt.name,"aria-label":Lt.ariaLabel,"validate-event":!1,inputmode:Lt.inputmode,onKeydown:Ne,onBlur:kt,onFocus:Et,onInput:Fe,onChange:ze},createSlots({_:2},[Lt.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot(Lt.$slots,"prefix")]),key:"0"}:void 0,Lt.$slots.suffix?{name:"suffix",fn:withCtx(()=>[renderSlot(Lt.$slots,"suffix")]),key:"1"}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],34))}});var InputNumber=_export_sfc(_sfc_main$1x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const ElInputNumber=withInstall(InputNumber),inputTagProps=buildProps({modelValue:{type:definePropType(Array)},max:Number,tagType:{...tagProps.type,default:"info"},tagEffect:tagProps.effect,trigger:{type:definePropType(String),default:EVENT_CODE.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:useSizeProp,clearable:Boolean,clearIcon:{type:iconPropType,default:circle_close_default},disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:definePropType(String),default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),inputTagEmits={[UPDATE_MODEL_EVENT]:n=>isArray$5(n)||isUndefined$1(n),[CHANGE_EVENT]:n=>isArray$5(n)||isUndefined$1(n),[INPUT_EVENT]:n=>isString$2(n),"add-tag":n=>isString$2(n)||isArray$5(n),"remove-tag":(n,t)=>isString$2(n)&&isNumber$2(t),"drag-tag":(n,t,r)=>isNumber$2(n)&&isNumber$2(t)&&isString$2(r),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0};function useInputTag({props:n,emit:t,formItem:r}){const i=useFormDisabled(),g=useFormSize(),$=shallowRef(),V=ref(),re=ref(),ie=computed(()=>["small"].includes(g.value)?"small":"default"),ae=computed(()=>{var At;return(At=n.modelValue)!=null&&At.length?void 0:n.placeholder}),oe=computed(()=>!(n.readonly||i.value)),le=computed(()=>{var At,Dt;return isUndefined$1(n.max)?!1:((Dt=(At=n.modelValue)==null?void 0:At.length)!=null?Dt:0)>=n.max}),ue=computed(()=>{var At;return n.collapseTags?(At=n.modelValue)==null?void 0:At.slice(0,n.maxCollapseTags):n.modelValue}),de=computed(()=>{var At;return n.collapseTags?(At=n.modelValue)==null?void 0:At.slice(n.maxCollapseTags):[]}),he=At=>{var Dt;const Lt=[...(Dt=n.modelValue)!=null?Dt:[],...castArray$1(At)];t(UPDATE_MODEL_EVENT,Lt),t(CHANGE_EVENT,Lt),t("add-tag",At),V.value=void 0},pe=At=>{var Dt,Lt;const jt=At.split(n.delimiter).filter(hn=>hn&&hn!==At);if(n.max){const hn=n.max-((Lt=(Dt=n.modelValue)==null?void 0:Dt.length)!=null?Lt:0);jt.splice(hn)}return jt.length===1?jt[0]:jt},_e=At=>{if(le.value){V.value=void 0;return}if(!Pt.value){if(n.delimiter&&V.value){const Dt=pe(V.value);Dt.length&&he(Dt)}t(INPUT_EVENT,At.target.value)}},Ce=At=>{var Dt;if(Pt.value)return;switch(getEventCode(At)){case n.trigger:At.preventDefault(),At.stopPropagation(),Ie();break;case EVENT_CODE.numpadEnter:n.trigger===EVENT_CODE.enter&&(At.preventDefault(),At.stopPropagation(),Ie());break;case EVENT_CODE.backspace:!V.value&&((Dt=n.modelValue)!=null&&Dt.length)&&(At.preventDefault(),At.stopPropagation(),Ne(n.modelValue.length-1));break}},xe=At=>{if(Pt.value||!isAndroid())return;switch(getEventCode(At)){case EVENT_CODE.space:n.trigger===EVENT_CODE.space&&(At.preventDefault(),At.stopPropagation(),Ie());break}},Ie=()=>{var At;const Dt=(At=V.value)==null?void 0:At.trim();!Dt||le.value||he(Dt)},Ne=At=>{var Dt;const Lt=((Dt=n.modelValue)!=null?Dt:[]).slice(),[jt]=Lt.splice(At,1);t(UPDATE_MODEL_EVENT,Lt),t(CHANGE_EVENT,Lt),t("remove-tag",jt,At)},Oe=()=>{V.value=void 0,t(UPDATE_MODEL_EVENT,void 0),t(CHANGE_EVENT,void 0),t("clear")},$e=(At,Dt,Lt)=>{var jt;const hn=((jt=n.modelValue)!=null?jt:[]).slice(),[vn]=hn.splice(At,1),_n=Dt>At&&Lt==="before"?-1:Dt{var At;(At=$.value)==null||At.focus()},Ue=()=>{var At;(At=$.value)==null||At.blur()},{wrapperRef:Fe,isFocused:ze}=useFocusController($,{disabled:i,beforeBlur(At){var Dt;return(Dt=re.value)==null?void 0:Dt.isFocusInsideContent(At)},afterBlur(){var At;n.saveOnBlur?Ie():V.value=void 0,n.validateEvent&&((At=r==null?void 0:r.validate)==null||At.call(r,"blur").catch(Dt=>void 0))}}),{isComposing:Pt,handleCompositionStart:qe,handleCompositionUpdate:Et,handleCompositionEnd:kt}=useComposition({afterComposition:_e});return watch(()=>n.modelValue,()=>{var At;n.validateEvent&&((At=r==null?void 0:r.validate)==null||At.call(r,CHANGE_EVENT).catch(Dt=>void 0))}),{inputRef:$,wrapperRef:Fe,tagTooltipRef:re,isFocused:ze,isComposing:Pt,inputValue:V,size:g,tagSize:ie,placeholder:ae,closable:oe,disabled:i,inputLimit:le,showTagList:ue,collapseTagList:de,handleDragged:$e,handleInput:_e,handleKeydown:Ce,handleKeyup:xe,handleAddTag:Ie,handleRemoveTag:Ne,handleClear:Oe,handleCompositionStart:qe,handleCompositionUpdate:Et,handleCompositionEnd:kt,focus:Ve,blur:Ue}}function useHovering(){const n=ref(!1);return{hovering:n,handleMouseEnter:()=>{n.value=!0},handleMouseLeave:()=>{n.value=!1}}}function useDragTag({wrapperRef:n,handleDragged:t,afterDragged:r}){const i=useNamespace("input-tag"),g=shallowRef(),$=ref(!1);let V,re,ie,ae;function oe(he){return`.${i.e("inner")} .${i.namespace.value}-tag:nth-child(${he+1})`}function le(he,pe){V=pe,re=n.value.querySelector(oe(pe)),re&&(re.style.opacity="0.5"),he.dataTransfer.effectAllowed="move"}function ue(he,pe){if(ie=pe,he.preventDefault(),he.dataTransfer.dropEffect="move",isUndefined$1(V)||V===pe){$.value=!1;return}const _e=n.value.querySelector(oe(pe)).getBoundingClientRect(),Ce=V+1!==pe,xe=V-1!==pe,Ie=he.clientX-_e.left,Ne=Ce?xe?.5:1:-1,Oe=xe?Ce?.5:0:1;Ie<=_e.width*Ne?ae="before":Ie>_e.width*Oe?ae="after":ae=void 0;const $e=n.value.querySelector(`.${i.e("inner")}`),Ve=$e.getBoundingClientRect(),Ue=Number.parseFloat(getStyle$1($e,"gap"))/2,Fe=_e.top-Ve.top;let ze=-9999;if(ae==="before")ze=Math.max(_e.left-Ve.left-Ue,Math.floor(-Ue/2));else if(ae==="after"){const Pt=_e.right-Ve.left;ze=Pt+(Ve.width===Pt?Math.floor(Ue/2):Ue)}setStyle(g.value,{top:`${Fe}px`,left:`${ze}px`}),$.value=!!ae}function de(he){he.preventDefault(),re&&(re.style.opacity=""),ae&&!isUndefined$1(V)&&!isUndefined$1(ie)&&V!==ie&&t(V,ie,ae),$.value=!1,V=void 0,re=null,ie=void 0,ae=void 0,r==null||r()}return{dropIndicatorRef:g,showDropIndicator:$,handleDragStart:le,handleDragOver:ue,handleDragEnd:de}}function useInputTagDom({props:n,isFocused:t,hovering:r,disabled:i,inputValue:g,size:$,validateState:V,validateIcon:re,needStatusIcon:ie}){const ae=useAttrs$1(),oe=useSlots(),le=useNamespace("input-tag"),ue=useNamespace("input"),de=ref(),he=ref(),pe=computed(()=>[le.b(),le.is("focused",t.value),le.is("hovering",r.value),le.is("disabled",i.value),le.m($.value),le.e("wrapper"),ae.class]),_e=computed(()=>[ae.style]),Ce=computed(()=>{var Fe,ze;return[le.e("inner"),le.is("draggable",n.draggable),le.is("left-space",!((Fe=n.modelValue)!=null&&Fe.length)&&!oe.prefix),le.is("right-space",!((ze=n.modelValue)!=null&&ze.length)&&!Ie.value)]}),xe=computed(()=>{var Fe;return n.clearable&&!i.value&&!n.readonly&&(((Fe=n.modelValue)==null?void 0:Fe.length)||g.value)&&(t.value||r.value)}),Ie=computed(()=>oe.suffix||xe.value||V.value&&re.value&&ie.value),Ne=reactive({innerWidth:0,collapseItemWidth:0}),Oe=()=>{if(!he.value)return 0;const Fe=window.getComputedStyle(he.value);return Number.parseFloat(Fe.gap||"6px")},$e=()=>{Ne.innerWidth=Number.parseFloat(window.getComputedStyle(he.value).width)},Ve=()=>{Ne.collapseItemWidth=de.value.getBoundingClientRect().width},Ue=computed(()=>{if(!n.collapseTags)return{};const Fe=Oe(),ze=Fe+MINIMUM_INPUT_WIDTH,Pt=de.value&&n.maxCollapseTags===1?Ne.innerWidth-Ne.collapseItemWidth-Fe-ze:Ne.innerWidth-ze;return{maxWidth:`${Math.max(Pt,0)}px`}});return useResizeObserver(he,$e),useResizeObserver(de,Ve),{ns:le,nsInput:ue,containerKls:pe,containerStyle:_e,innerKls:Ce,showClear:xe,showSuffix:Ie,tagStyle:Ue,collapseItemRef:de,innerRef:he}}const _hoisted_1$V=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],_hoisted_2$C=["textContent"],_sfc_main$1w=defineComponent({name:"ElInputTag",inheritAttrs:!1,__name:"input-tag",props:inputTagProps,emits:inputTagEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useAttrs(),V=useSlots(),{form:re,formItem:ie}=useFormItem(),{inputId:ae}=useFormItemInputId(i,{formItemContext:ie}),oe=computed(()=>{var Qn;return(Qn=re==null?void 0:re.statusIcon)!=null?Qn:!1}),le=computed(()=>(ie==null?void 0:ie.validateState)||""),ue=computed(()=>le.value&&ValidateComponentsMap[le.value]),{inputRef:de,wrapperRef:he,tagTooltipRef:pe,isFocused:_e,inputValue:Ce,size:xe,tagSize:Ie,placeholder:Ne,closable:Oe,disabled:$e,showTagList:Ve,collapseTagList:Ue,handleDragged:Fe,handleInput:ze,handleKeydown:Pt,handleKeyup:qe,handleRemoveTag:Et,handleClear:kt,handleCompositionStart:At,handleCompositionUpdate:Dt,handleCompositionEnd:Lt,focus:jt,blur:hn}=useInputTag({props:i,emit:g,formItem:ie}),{hovering:vn,handleMouseEnter:_n,handleMouseLeave:wn}=useHovering(),{calculatorRef:bn,inputStyle:Cn}=useCalcInputWidth(),{dropIndicatorRef:Sn,showDropIndicator:Tn,handleDragStart:En,handleDragOver:kn,handleDragEnd:$n}=useDragTag({wrapperRef:he,handleDragged:Fe,afterDragged:jt}),{ns:An,nsInput:xn,containerKls:Ln,containerStyle:Nn,innerKls:Pn,showClear:On,showSuffix:Hn,tagStyle:Xn,collapseItemRef:In,innerRef:or}=useInputTagDom({props:i,hovering:vn,isFocused:_e,inputValue:Ce,disabled:$e,size:xe,validateState:le,validateIcon:ue,needStatusIcon:oe});return t({focus:jt,blur:hn}),(Qn,Zn)=>(openBlock(),createElementBlock("div",{ref_key:"wrapperRef",ref:he,class:normalizeClass(unref(Ln)),style:normalizeStyle$1(unref(Nn)),onMouseenter:Zn[8]||(Zn[8]=(...Gn)=>unref(_n)&&unref(_n)(...Gn)),onMouseleave:Zn[9]||(Zn[9]=(...Gn)=>unref(wn)&&unref(wn)(...Gn))},[unref(V).prefix?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(An).e("prefix"))},[renderSlot(Qn.$slots,"prefix")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{ref_key:"innerRef",ref:or,class:normalizeClass(unref(Pn))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ve),(Gn,Rn)=>(openBlock(),createBlock(unref(ElTag),{key:Rn,size:unref(Ie),closable:unref(Oe),type:Qn.tagType,effect:Qn.tagEffect,draggable:unref(Oe)&&Qn.draggable,style:normalizeStyle$1(unref(Xn)),"disable-transitions":"",onClose:Mn=>unref(Et)(Rn),onDragstart:Mn=>unref(En)(Mn,Rn),onDragover:Mn=>unref(kn)(Mn,Rn),onDragend:unref($n),onDrop:Zn[0]||(Zn[0]=withModifiers(()=>{},["stop"]))},{default:withCtx(()=>[renderSlot(Qn.$slots,"tag",{value:Gn,index:Rn},()=>[createTextVNode(toDisplayString(Gn),1)])]),_:2},1032,["size","closable","type","effect","draggable","style","onClose","onDragstart","onDragover","onDragend"]))),128)),Qn.collapseTags&&Qn.modelValue&&Qn.modelValue.length>Qn.maxCollapseTags?(openBlock(),createBlock(unref(ElTooltip),{key:0,ref_key:"tagTooltipRef",ref:pe,disabled:!Qn.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:Qn.tagEffect,placement:"bottom"},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"collapseItemRef",ref:In},[createVNode$1(unref(ElTag),{closable:!1,size:unref(Ie),type:Qn.tagType,effect:Qn.tagEffect,"disable-transitions":""},{default:withCtx(()=>[createTextVNode(" + "+toDisplayString(Qn.modelValue.length-Qn.maxCollapseTags),1)]),_:1},8,["size","type","effect"])],512)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(An).e("input-tag-list"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ue),(Gn,Rn)=>(openBlock(),createBlock(unref(ElTag),{key:Rn,size:unref(Ie),closable:unref(Oe),type:Qn.tagType,effect:Qn.tagEffect,"disable-transitions":"",onClose:Mn=>unref(Et)(Rn+Qn.maxCollapseTags)},{default:withCtx(()=>[renderSlot(Qn.$slots,"tag",{value:Gn,index:Rn+Qn.maxCollapseTags},()=>[createTextVNode(toDisplayString(Gn),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(An).e("input-wrapper"))},[withDirectives(createBaseVNode("input",mergeProps({id:unref(ae),ref_key:"inputRef",ref:de,"onUpdate:modelValue":Zn[1]||(Zn[1]=Gn=>isRef(Ce)?Ce.value=Gn:null)},unref($),{type:"text",minlength:Qn.minlength,maxlength:Qn.maxlength,disabled:unref($e),readonly:Qn.readonly,autocomplete:Qn.autocomplete,tabindex:Qn.tabindex,placeholder:unref(Ne),autofocus:Qn.autofocus,ariaLabel:Qn.ariaLabel,class:unref(An).e("input"),style:unref(Cn),onCompositionstart:Zn[2]||(Zn[2]=(...Gn)=>unref(At)&&unref(At)(...Gn)),onCompositionupdate:Zn[3]||(Zn[3]=(...Gn)=>unref(Dt)&&unref(Dt)(...Gn)),onCompositionend:Zn[4]||(Zn[4]=(...Gn)=>unref(Lt)&&unref(Lt)(...Gn)),onInput:Zn[5]||(Zn[5]=(...Gn)=>unref(ze)&&unref(ze)(...Gn)),onKeydown:Zn[6]||(Zn[6]=(...Gn)=>unref(Pt)&&unref(Pt)(...Gn)),onKeyup:Zn[7]||(Zn[7]=(...Gn)=>unref(qe)&&unref(qe)(...Gn))}),null,16,_hoisted_1$V),[[vModelText,unref(Ce)]]),createBaseVNode("span",{ref_key:"calculatorRef",ref:bn,"aria-hidden":"true",class:normalizeClass(unref(An).e("input-calculator")),textContent:toDisplayString(unref(Ce))},null,10,_hoisted_2$C)],2),withDirectives(createBaseVNode("div",{ref_key:"dropIndicatorRef",ref:Sn,class:normalizeClass(unref(An).e("drop-indicator"))},null,2),[[vShow,unref(Tn)]])],2),unref(Hn)?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(An).e("suffix"))},[renderSlot(Qn.$slots,"suffix"),unref(On)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(An).e("icon"),unref(An).e("clear")]),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:unref(kt)},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Qn.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):createCommentVNode("v-if",!0),le.value&&ue.value&&oe.value?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(xn).e("icon"),unref(xn).e("validateIcon"),unref(xn).is("loading",le.value==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ue.value)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],38))}});var InputTag=_export_sfc(_sfc_main$1w,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-tag/src/input-tag.vue"]]);const ElInputTag=withInstall(InputTag),linkProps=buildProps({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:iconPropType}}),linkEmits={click:n=>n instanceof MouseEvent},_hoisted_1$U=["href","target"],_sfc_main$1v=defineComponent({name:"ElLink",__name:"link",props:linkProps,emits:linkEmits,setup(n,{emit:t}){const r=n,i=t,g=useGlobalConfig("link");useDeprecated({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},computed(()=>isBoolean$1(r.underline)));const $=useNamespace("link"),V=computed(()=>{var ae,oe,le;return[$.b(),$.m((le=(oe=r.type)!=null?oe:(ae=g.value)==null?void 0:ae.type)!=null?le:"default"),$.is("disabled",r.disabled),$.is("underline",re.value==="always"),$.is("hover-underline",re.value==="hover"&&!r.disabled)]}),re=computed(()=>{var ae,oe,le;return isBoolean$1(r.underline)?r.underline?"hover":"never":(le=(oe=r.underline)!=null?oe:(ae=g.value)==null?void 0:ae.underline)!=null?le:"hover"});function ie(ae){r.disabled||i("click",ae)}return(ae,oe)=>(openBlock(),createElementBlock("a",{class:normalizeClass(V.value),href:ae.disabled||!ae.href?void 0:ae.href,target:ae.disabled||!ae.href?void 0:ae.target,onClick:ie},[ae.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ae.icon)))]),_:1})):createCommentVNode("v-if",!0),ae.$slots.default?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref($).e("inner"))},[renderSlot(ae.$slots,"default")],2)):createCommentVNode("v-if",!0),ae.$slots.icon?renderSlot(ae.$slots,"icon",{key:2}):createCommentVNode("v-if",!0)],10,_hoisted_1$U))}});var Link=_export_sfc(_sfc_main$1v,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const ElLink=withInstall(Link);let SubMenu$1=class{constructor(t,r){this.parent=t,this.domNode=r,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,r=>{r.addEventListener("keydown",i=>{const g=getEventCode(i);let $=!1;switch(g){case EVENT_CODE.down:{this.gotoSubIndex(this.subIndex+1),$=!0;break}case EVENT_CODE.up:{this.gotoSubIndex(this.subIndex-1),$=!0;break}case EVENT_CODE.tab:{triggerEvent(t,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:case EVENT_CODE.space:{$=!0,i.currentTarget.click();break}}return $&&(i.preventDefault(),i.stopPropagation()),!1})})}},MenuItem$1=class{constructor(t,r){this.domNode=t,this.submenu=null,this.submenu=null,this.init(r)}init(t){this.domNode.setAttribute("tabindex","0");const r=this.domNode.querySelector(`.${t}-menu`);r&&(this.submenu=new SubMenu$1(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{const r=getEventCode(t);let i=!1;switch(r){case EVENT_CODE.down:{triggerEvent(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),i=!0;break}case EVENT_CODE.up:{triggerEvent(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),i=!0;break}case EVENT_CODE.tab:{triggerEvent(t.currentTarget,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:case EVENT_CODE.space:{i=!0,t.currentTarget.click();break}}i&&t.preventDefault()})}},Menu$1=class{constructor(t,r){this.domNode=t,this.init(r)}init(t){const r=this.domNode.childNodes;Array.from(r).forEach(i=>{i.nodeType===1&&new MenuItem$1(i,t)})}};const _sfc_main$1u=defineComponent({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(n){const t=useNamespace("menu"),r={onBeforeEnter:i=>i.style.opacity="0.2",onEnter(i,g){addClass(i,`${t.namespace.value}-opacity-transition`),i.style.opacity="1",g()},onAfterEnter(i){removeClass(i,`${t.namespace.value}-opacity-transition`),i.style.opacity=""},onBeforeLeave(i){i.dataset||(i.dataset={}),hasClass(i,t.m("collapse"))?(removeClass(i,t.m("collapse")),i.dataset.oldOverflow=i.style.overflow,i.dataset.scrollWidth=i.clientWidth.toString(),addClass(i,t.m("collapse"))):(addClass(i,t.m("collapse")),i.dataset.oldOverflow=i.style.overflow,i.dataset.scrollWidth=i.clientWidth.toString(),removeClass(i,t.m("collapse"))),i.style.width=`${i.scrollWidth}px`,i.style.overflow="hidden"},onLeave(i){addClass(i,"horizontal-collapse-transition"),i.style.width=`${i.dataset.scrollWidth}px`}};return(i,g)=>(openBlock(),createBlock(Transition,mergeProps({mode:"out-in"},r),{default:withCtx(()=>[renderSlot(i.$slots,"default")]),_:3},16))}});var ElMenuCollapseTransition=_export_sfc(_sfc_main$1u,[["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function useMenu(n,t){const r=computed(()=>{let g=n.parent;const $=[t.value];for(;g.type.name!=="ElMenu";)g.props.index&&$.unshift(g.props.index),g=g.parent;return $});return{parentMenu:computed(()=>{let g=n.parent;for(;g&&!["ElMenu","ElSubMenu"].includes(g.type.name);)g=g.parent;return g}),indexPath:r}}function useMenuColor(n){return computed(()=>{const r=n.backgroundColor;return r?new TinyColor(r).shade(20).toString():""})}const useMenuCssVar=(n,t)=>{const r=useNamespace("menu");return computed(()=>r.cssVarBlock({"text-color":n.textColor||"","hover-text-color":n.textColor||"","bg-color":n.backgroundColor||"","hover-bg-color":useMenuColor(n).value||"","active-color":n.activeTextColor||"",level:`${t}`}))},MENU_INJECTION_KEY="rootMenu",SUB_MENU_INJECTION_KEY="subMenu:",subMenuProps=buildProps({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:definePropType([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:iconPropType},expandOpenIcon:{type:iconPropType},collapseCloseIcon:{type:iconPropType},collapseOpenIcon:{type:iconPropType}}),COMPONENT_NAME$b="ElSubMenu";var SubMenu=defineComponent({name:COMPONENT_NAME$b,props:subMenuProps,setup(n,{slots:t,expose:r}){const i=getCurrentInstance(),{indexPath:g,parentMenu:$}=useMenu(i,computed(()=>n.index)),V=useNamespace("menu"),re=useNamespace("sub-menu"),ie=inject(MENU_INJECTION_KEY);ie||throwError$1(COMPONENT_NAME$b,"can not inject root menu");const ae=inject(`${SUB_MENU_INJECTION_KEY}${$.value.uid}`);ae||throwError$1(COMPONENT_NAME$b,"can not inject sub menu");const oe=ref({}),le=ref({});let ue;const de=ref(!1),he=ref(),pe=ref(),_e=computed(()=>ae.level===0),Ce=computed(()=>Ue.value==="horizontal"&&_e.value?"bottom-start":"right-start"),xe=computed(()=>Ue.value==="horizontal"&&_e.value||Ue.value==="vertical"&&!ie.props.collapse?n.expandCloseIcon&&n.expandOpenIcon?$e.value?n.expandOpenIcon:n.expandCloseIcon:arrow_down_default:n.collapseCloseIcon&&n.collapseOpenIcon?$e.value?n.collapseOpenIcon:n.collapseCloseIcon:arrow_right_default),Ie=computed(()=>{const wn=n.teleported;return isUndefined$1(wn)?_e.value:wn}),Ne=computed(()=>ie.props.collapse?`${V.namespace.value}-zoom-in-left`:`${V.namespace.value}-zoom-in-top`),Oe=computed(()=>Ue.value==="horizontal"&&_e.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"]),$e=computed(()=>ie.openedMenus.includes(n.index)),Ve=computed(()=>[...Object.values(oe.value),...Object.values(le.value)].some(({active:wn})=>wn)),Ue=computed(()=>ie.props.mode),Fe=computed(()=>ie.props.persistent),ze=reactive({index:n.index,indexPath:g,active:Ve}),Pt=useMenuCssVar(ie.props,ae.level+1),qe=computed(()=>{var wn;return(wn=n.popperOffset)!=null?wn:ie.props.popperOffset}),Et=computed(()=>{var wn;return(wn=n.popperClass)!=null?wn:ie.props.popperClass}),kt=computed(()=>{var wn;return(wn=n.popperStyle)!=null?wn:ie.props.popperStyle}),At=computed(()=>{var wn;return(wn=n.showTimeout)!=null?wn:ie.props.showTimeout}),Dt=computed(()=>{var wn;return(wn=n.hideTimeout)!=null?wn:ie.props.hideTimeout}),Lt=()=>{var wn,bn,Cn;return(Cn=(bn=(wn=pe.value)==null?void 0:wn.popperRef)==null?void 0:bn.popperInstanceRef)==null?void 0:Cn.destroy()},jt=wn=>{wn||Lt()},hn=()=>{ie.props.menuTrigger==="hover"&&ie.props.mode==="horizontal"||ie.props.collapse&&ie.props.mode==="vertical"||n.disabled||ie.handleSubMenuClick({index:n.index,indexPath:g.value,active:Ve.value})},vn=(wn,bn=At.value)=>{var Cn;if(wn.type!=="focus"){if(ie.props.menuTrigger==="click"&&ie.props.mode==="horizontal"||!ie.props.collapse&&ie.props.mode==="vertical"||n.disabled){ae.mouseInChild.value=!0;return}ae.mouseInChild.value=!0,ue==null||ue(),{stop:ue}=useTimeoutFn(()=>{ie.openMenu(n.index,g.value)},bn),Ie.value&&((Cn=$.value.vnode.el)==null||Cn.dispatchEvent(new MouseEvent("mouseenter"))),wn.type==="mouseenter"&&wn.target&&nextTick(()=>{focusElement(wn.target,{preventScroll:!0})})}},_n=(wn=!1)=>{var bn;if(ie.props.menuTrigger==="click"&&ie.props.mode==="horizontal"||!ie.props.collapse&&ie.props.mode==="vertical"){ae.mouseInChild.value=!1;return}ue==null||ue(),ae.mouseInChild.value=!1,{stop:ue}=useTimeoutFn(()=>!de.value&&ie.closeMenu(n.index,g.value),Dt.value),Ie.value&&wn&&((bn=ae.handleMouseleave)==null||bn.call(ae,!0))};watch(()=>ie.props.collapse,wn=>jt(!!wn));{const wn=Cn=>{le.value[Cn.index]=Cn},bn=Cn=>{delete le.value[Cn.index]};provide(`${SUB_MENU_INJECTION_KEY}${i.uid}`,{addSubMenu:wn,removeSubMenu:bn,handleMouseleave:_n,mouseInChild:de,level:ae.level+1})}return r({opened:$e}),onMounted(()=>{ie.addSubMenu(ze),ae.addSubMenu(ze)}),onBeforeUnmount(()=>{ae.removeSubMenu(ze),ie.removeSubMenu(ze)}),()=>{var wn;const bn=[(wn=t.title)==null?void 0:wn.call(t),h$1(ElIcon,{class:re.e("icon-arrow"),style:{transform:$e.value?n.expandCloseIcon&&n.expandOpenIcon||n.collapseCloseIcon&&n.collapseOpenIcon&&ie.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>isString$2(xe.value)?h$1(i.appContext.components[xe.value]):h$1(xe.value)})],Cn=ie.isMenuPopup?h$1(ElTooltip,{ref:pe,visible:$e.value,effect:"light",pure:!0,offset:qe.value,showArrow:!1,persistent:Fe.value,popperClass:Et.value,popperStyle:kt.value,placement:Ce.value,teleported:Ie.value,fallbackPlacements:Oe.value,transition:Ne.value,gpuAcceleration:!1},{content:()=>{var Sn;return h$1("div",{class:[V.m(Ue.value),V.m("popup-container"),Et.value],onMouseenter:Tn=>vn(Tn,100),onMouseleave:()=>_n(!0),onFocus:Tn=>vn(Tn,100)},[h$1("ul",{class:[V.b(),V.m("popup"),V.m(`popup-${Ce.value}`)],style:Pt.value},[(Sn=t.default)==null?void 0:Sn.call(t)])])},default:()=>h$1("div",{class:re.e("title"),onClick:hn},bn)}):h$1(Fragment,{},[h$1("div",{class:re.e("title"),ref:he,onClick:hn},bn),h$1(ElCollapseTransition,{},{default:()=>{var Sn;return withDirectives(h$1("ul",{role:"menu",class:[V.b(),V.m("inline")],style:Pt.value},[(Sn=t.default)==null?void 0:Sn.call(t)]),[[vShow,$e.value]])}})]);return h$1("li",{class:[re.b(),re.is("active",Ve.value),re.is("opened",$e.value),re.is("disabled",n.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:$e.value,onMouseenter:vn,onMouseleave:()=>_n(),onFocus:vn},[Cn])}}});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,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:iconPropType,default:()=>more_default},popperEffect:{type:definePropType(String),default:"dark"},popperClass:String,popperStyle:{type:definePropType([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),checkIndexPath=n=>isArray$5(n)&&n.every(t=>isString$2(t)),menuEmits={close:(n,t)=>isString$2(n)&&checkIndexPath(t),open:(n,t)=>isString$2(n)&&checkIndexPath(t),select:(n,t,r,i)=>isString$2(n)&&checkIndexPath(t)&&isObject$6(r)&&(isUndefined$1(i)||i instanceof Promise)},DEFAULT_MORE_ITEM_WIDTH=64;var Menu=defineComponent({name:"ElMenu",props:menuProps,emits:menuEmits,setup(n,{emit:t,slots:r,expose:i}){const g=getCurrentInstance(),$=g.appContext.config.globalProperties.$router,V=ref(),re=ref(),ie=useNamespace("menu"),ae=useNamespace("sub-menu");let oe=DEFAULT_MORE_ITEM_WIDTH;const le=ref(-1),ue=ref(n.defaultOpeneds&&!n.collapse?n.defaultOpeneds.slice(0):[]),de=ref(n.defaultActive),he=ref({}),pe=ref({}),_e=computed(()=>n.mode==="horizontal"||n.mode==="vertical"&&n.collapse),Ce=()=>{const Lt=de.value&&he.value[de.value];if(!Lt||n.mode==="horizontal"||n.collapse)return;Lt.indexPath.forEach(hn=>{const vn=pe.value[hn];vn&&xe(hn,vn.indexPath)})},xe=(Lt,jt)=>{ue.value.includes(Lt)||(n.uniqueOpened&&(ue.value=ue.value.filter(hn=>jt.includes(hn))),ue.value.push(Lt),t("open",Lt,jt))},Ie=Lt=>{const jt=ue.value.indexOf(Lt);jt!==-1&&ue.value.splice(jt,1)},Ne=(Lt,jt)=>{Ie(Lt),t("close",Lt,jt)},Oe=({index:Lt,indexPath:jt})=>{ue.value.includes(Lt)?Ne(Lt,jt):xe(Lt,jt)},$e=Lt=>{(n.mode==="horizontal"||n.collapse)&&(ue.value=[]);const{index:jt,indexPath:hn}=Lt;if(!(isNil(jt)||isNil(hn)))if(n.router&&$){const vn=Lt.route||jt,_n=$.push(vn).then(wn=>(wn||(de.value=jt),wn));t("select",jt,hn,{index:jt,indexPath:hn,route:vn},_n)}else de.value=jt,t("select",jt,hn,{index:jt,indexPath:hn})},Ve=Lt=>{var jt;const hn=he.value,vn=hn[Lt]||de.value&&hn[de.value]||hn[n.defaultActive];de.value=(jt=vn==null?void 0:vn.index)!=null?jt:Lt},Ue=Lt=>{const jt=getComputedStyle(Lt),hn=Number.parseInt(jt.marginLeft,10),vn=Number.parseInt(jt.marginRight,10);return Lt.offsetWidth+hn+vn||0},Fe=()=>{if(!V.value)return-1;const Lt=Array.from(V.value.childNodes).filter(Cn=>Cn.nodeName!=="#comment"&&(Cn.nodeName!=="#text"||Cn.nodeValue)),jt=getComputedStyle(V.value),hn=Number.parseInt(jt.paddingLeft,10),vn=Number.parseInt(jt.paddingRight,10),_n=V.value.clientWidth-hn-vn;let wn=0,bn=0;return Lt.forEach((Cn,Sn)=>{wn+=Ue(Cn),wn<=_n-oe&&(bn=Sn+1)}),bn===Lt.length?-1:bn},ze=Lt=>pe.value[Lt].indexPath,Pt=(Lt,jt=33.34)=>{let hn;return()=>{hn&&clearTimeout(hn),hn=setTimeout(()=>{Lt()},jt)}};let qe=!0;const Et=()=>{const Lt=unrefElement(re);if(Lt&&(oe=Ue(Lt)||DEFAULT_MORE_ITEM_WIDTH),le.value===Fe())return;const jt=()=>{le.value=-1,nextTick(()=>{le.value=Fe()})};qe?jt():Pt(jt)(),qe=!1};watch(()=>n.defaultActive,Lt=>{he.value[Lt]||(de.value=""),Ve(Lt)}),watch(()=>n.collapse,Lt=>{Lt&&(ue.value=[])}),watch(he.value,Ce);let kt;watchEffect(()=>{n.mode==="horizontal"&&n.ellipsis?kt=useResizeObserver(V,Et).stop:kt==null||kt()});const At=ref(!1);{const Lt=_n=>{pe.value[_n.index]=_n},jt=_n=>{delete pe.value[_n.index]};provide(MENU_INJECTION_KEY,reactive({props:n,openedMenus:ue,items:he,subMenus:pe,activeIndex:de,isMenuPopup:_e,addMenuItem:_n=>{he.value[_n.index]=_n},removeMenuItem:_n=>{delete he.value[_n.index]},addSubMenu:Lt,removeSubMenu:jt,openMenu:xe,closeMenu:Ne,handleMenuItemClick:$e,handleSubMenuClick:Oe})),provide(`${SUB_MENU_INJECTION_KEY}${g.uid}`,{addSubMenu:Lt,removeSubMenu:jt,mouseInChild:At,level:0})}onMounted(()=>{n.mode==="horizontal"&&new Menu$1(g.vnode.el,ie.namespace.value)}),i({open:jt=>{const{indexPath:hn}=pe.value[jt];hn.forEach(vn=>xe(vn,hn))},close:Ie,updateActiveIndex:Ve,handleResize:Et});const Dt=useMenuCssVar(n,0);return()=>{var Lt,jt;let hn=(jt=(Lt=r.default)==null?void 0:Lt.call(r))!=null?jt:[];const vn=[];if(n.mode==="horizontal"&&V.value){const bn=flattedChildren(hn).filter(Tn=>(Tn==null?void 0:Tn.shapeFlag)!==8),Cn=le.value===-1?bn:bn.slice(0,le.value),Sn=le.value===-1?[]:bn.slice(le.value);Sn!=null&&Sn.length&&n.ellipsis&&(hn=Cn,vn.push(h$1(SubMenu,{ref:re,index:"sub-menu-more",class:ae.e("hide-arrow"),popperOffset:n.popperOffset},{title:()=>h$1(ElIcon,{class:ae.e("icon-more")},{default:()=>h$1(n.ellipsisIcon)}),default:()=>Sn})))}const _n=n.closeOnClickOutside?[[ClickOutside,()=>{ue.value.length&&(At.value||(ue.value.forEach(bn=>t("close",bn,ze(bn))),ue.value=[]))}]]:[],wn=withDirectives(h$1("ul",{key:String(n.collapse),role:"menubar",ref:V,style:Dt.value,class:{[ie.b()]:!0,[ie.m(n.mode)]:!0,[ie.m("collapse")]:n.collapse}},[...hn,...vn]),_n);return n.collapseTransition&&n.mode==="vertical"?h$1(ElMenuCollapseTransition,()=>wn):wn}}});const menuItemProps=buildProps({index:{type:definePropType([String,null]),default:null},route:{type:definePropType([String,Object])},disabled:Boolean}),menuItemEmits={click:n=>isString$2(n.index)&&isArray$5(n.indexPath)},COMPONENT_NAME$a="ElMenuItem",_sfc_main$1t=defineComponent({name:COMPONENT_NAME$a,__name:"menu-item",props:menuItemProps,emits:menuItemEmits,setup(n,{expose:t,emit:r}){const i=n,g=r;isPropAbsent(i.index)&&void 0;const $=getCurrentInstance(),V=inject(MENU_INJECTION_KEY),re=useNamespace("menu"),ie=useNamespace("menu-item");V||throwError$1(COMPONENT_NAME$a,"can not inject root menu");const{parentMenu:ae,indexPath:oe}=useMenu($,toRef$1(i,"index")),le=inject(`${SUB_MENU_INJECTION_KEY}${ae.value.uid}`);le||throwError$1(COMPONENT_NAME$a,"can not inject sub menu");const ue=computed(()=>i.index===V.activeIndex),de=reactive({index:i.index,indexPath:oe,active:ue}),he=()=>{i.disabled||(V.handleMenuItemClick({index:i.index,indexPath:oe.value,route:i.route}),g("click",de))};return onMounted(()=>{le.addSubMenu(de),V.addMenuItem(de)}),onBeforeUnmount(()=>{le.removeSubMenu(de),V.removeMenuItem(de)}),t({parentMenu:ae,rootMenu:V,active:ue,nsMenu:re,nsMenuItem:ie,handleClick:he}),(pe,_e)=>(openBlock(),createElementBlock("li",{class:normalizeClass([unref(ie).b(),unref(ie).is("active",ue.value),unref(ie).is("disabled",pe.disabled)]),role:"menuitem",tabindex:"-1",onClick:he},[unref(ae).type.name==="ElMenu"&&unref(V).props.collapse&&pe.$slots.title?(openBlock(),createBlock(unref(ElTooltip),{key:0,effect:unref(V).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":unref(V).props.popperClass,"popper-style":unref(V).props.popperStyle,persistent:unref(V).props.persistent,"focus-on-target":""},{content:withCtx(()=>[renderSlot(pe.$slots,"title")]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(re).be("tooltip","trigger"))},[renderSlot(pe.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(openBlock(),createElementBlock(Fragment,{key:1},[renderSlot(pe.$slots,"default"),renderSlot(pe.$slots,"title")],64))],2))}});var MenuItem=_export_sfc(_sfc_main$1t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const menuItemGroupProps={title:String},_sfc_main$1s=defineComponent({name:"ElMenuItemGroup",__name:"menu-item-group",props:menuItemGroupProps,setup(n){const t=useNamespace("menu-item-group");return(r,i)=>(openBlock(),createElementBlock("li",{class:normalizeClass(unref(t).b())},[createBaseVNode("div",{class:normalizeClass(unref(t).e("title"))},[r.$slots.title?renderSlot(r.$slots,"title",{key:1}):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(r.title),1)],64))],2),createBaseVNode("ul",null,[renderSlot(r.$slots,"default")])],2))}});var MenuItemGroup=_export_sfc(_sfc_main$1s,[["__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"],_sfc_main$1r=defineComponent({name:"ElPageHeader",__name:"page-header",props:pageHeaderProps,emits:pageHeaderEmits,setup(n,{emit:t}){const r=t,{t:i}=useLocale(),g=useNamespace("page-header");function $(){r("back")}return(V,re)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(g).b(),unref(g).is("contentful",!!V.$slots.default),{[unref(g).m("has-breadcrumb")]:!!V.$slots.breadcrumb,[unref(g).m("has-extra")]:!!V.$slots.extra}])},[V.$slots.breadcrumb?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(g).e("breadcrumb"))},[renderSlot(V.$slots,"breadcrumb")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(g).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(g).e("left"))},[createBaseVNode("div",{class:normalizeClass(unref(g).e("back")),role:"button",tabindex:"0",onClick:$},[V.icon||V.$slots.icon?(openBlock(),createElementBlock("div",{key:0,"aria-label":V.title||unref(i)("el.pageHeader.title"),class:normalizeClass(unref(g).e("icon"))},[renderSlot(V.$slots,"icon",{},()=>[V.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(V.icon)))]),_:1})):createCommentVNode("v-if",!0)])],10,_hoisted_1$T)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(g).e("title"))},[renderSlot(V.$slots,"title",{},()=>[createTextVNode(toDisplayString(V.title||unref(i)("el.pageHeader.title")),1)])],2)],2),createVNode$1(unref(ElDivider),{direction:"vertical"}),createBaseVNode("div",{class:normalizeClass(unref(g).e("content"))},[renderSlot(V.$slots,"content",{},()=>[createTextVNode(toDisplayString(V.content),1)])],2)],2),V.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(g).e("extra"))},[renderSlot(V.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2),V.$slots.default?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(g).e("main"))},[renderSlot(V.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var PageHeader=_export_sfc(_sfc_main$1r,[["__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:n=>n instanceof MouseEvent},_hoisted_1$S=["disabled","aria-label","aria-disabled"],_hoisted_2$B={key:0},_sfc_main$1q=defineComponent({name:"ElPaginationPrev",__name:"prev",props:paginationPrevProps,emits:paginationPrevEmits,setup(n){const t=n,{t:r}=useLocale(),i=computed(()=>t.disabled||t.currentPage<=1);return(g,$)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-prev",disabled:i.value,"aria-label":g.prevText||unref(r)("el.pagination.prev"),"aria-disabled":i.value,onClick:$[0]||($[0]=V=>g.$emit("click",V))},[g.prevText?(openBlock(),createElementBlock("span",_hoisted_2$B,toDisplayString(g.prevText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(g.prevIcon)))]),_:1}))],8,_hoisted_1$S))}});var Prev=_export_sfc(_sfc_main$1q,[["__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$A={key:0},_sfc_main$1p=defineComponent({name:"ElPaginationNext",__name:"next",props:paginationNextProps,emits:["click"],setup(n){const t=n,{t:r}=useLocale(),i=computed(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(g,$)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-next",disabled:i.value,"aria-label":g.nextText||unref(r)("el.pagination.next"),"aria-disabled":i.value,onClick:$[0]||($[0]=V=>g.$emit("click",V))},[g.nextText?(openBlock(),createElementBlock("span",_hoisted_2$A,toDisplayString(g.nextText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(g.nextIcon)))]),_:1}))],8,_hoisted_1$R))}});var Next=_export_sfc(_sfc_main$1p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const 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},popperStyle:{type:definePropType([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:componentSizes},appendSizeTo:String}),_sfc_main$1o=defineComponent({name:"ElPaginationSizes",__name:"sizes",props:paginationSizesProps,emits:["page-size-change"],setup(n,{emit:t}){const r=n,i=t,{t:g}=useLocale(),$=useNamespace("pagination"),V=usePagination(),re=ref(r.pageSize);watch(()=>r.pageSizes,(oe,le)=>{if(!isEqual$1(oe,le)&&isArray$5(oe)){const ue=oe.includes(r.pageSize)?r.pageSize:r.pageSizes[0];i("page-size-change",ue)}}),watch(()=>r.pageSize,oe=>{re.value=oe});const ie=computed(()=>r.pageSizes);function ae(oe){var le;oe!==re.value&&(re.value=oe,(le=V.handleSizeChange)==null||le.call(V,Number(oe)))}return(oe,le)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref($).e("sizes"))},[createVNode$1(unref(ElSelect),{"model-value":re.value,disabled:oe.disabled,"popper-class":oe.popperClass,"popper-style":oe.popperStyle,size:oe.size,teleported:oe.teleported,"validate-event":!1,"append-to":oe.appendSizeTo,onChange:ae},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(ie.value,ue=>(openBlock(),createBlock(unref(ElOption),{key:ue,value:ue,label:ue+unref(g)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}});var Sizes=_export_sfc(_sfc_main$1o,[["__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$Q=["disabled"],_sfc_main$1n=defineComponent({name:"ElPaginationJumper",__name:"jumper",props:paginationJumperProps,setup(n){const{t}=useLocale(),r=useNamespace("pagination"),{pageCount:i,disabled:g,currentPage:$,changeEvent:V}=usePagination(),re=ref(),ie=computed(()=>{var le;return(le=re.value)!=null?le:$==null?void 0:$.value});function ae(le){re.value=le?+le:""}function oe(le){le=Math.trunc(+le),V==null||V(le),re.value=void 0}return(le,ue)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(r).e("jump")),disabled:unref(g)},[createBaseVNode("span",{class:normalizeClass([unref(r).e("goto")])},toDisplayString(unref(t)("el.pagination.goto")),3),createVNode$1(unref(ElInput),{size:le.size,class:normalizeClass([unref(r).e("editor"),unref(r).is("in-pagination")]),min:1,max:unref(i),disabled:unref(g),"model-value":ie.value,"validate-event":!1,"aria-label":unref(t)("el.pagination.page"),type:"number","onUpdate:modelValue":ae,onChange:oe},null,8,["size","class","max","disabled","model-value","aria-label"]),createBaseVNode("span",{class:normalizeClass([unref(r).e("classifier")])},toDisplayString(unref(t)("el.pagination.pageClassifier")),3)],10,_hoisted_1$Q))}});var Jumper=_export_sfc(_sfc_main$1n,[["__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$P=["disabled"],_sfc_main$1m=defineComponent({name:"ElPaginationTotal",__name:"total",props:paginationTotalProps,setup(n){const{t}=useLocale(),r=useNamespace("pagination"),{disabled:i}=usePagination();return(g,$)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(r).e("total")),disabled:unref(i)},toDisplayString(unref(t)("el.pagination.total",{total:g.total})),11,_hoisted_1$P))}});var Total=_export_sfc(_sfc_main$1m,[["__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$O=["aria-current","aria-label","tabindex"],_hoisted_2$z=["tabindex","aria-label"],_hoisted_3$f=["aria-current","aria-label","tabindex"],_hoisted_4$b=["tabindex","aria-label"],_hoisted_5$4=["aria-current","aria-label","tabindex"],_sfc_main$1l=defineComponent({name:"ElPaginationPager",__name:"pager",props:paginationPagerProps,emits:[CHANGE_EVENT],setup(n,{emit:t}){const r=n,i=t,g=useNamespace("pager"),$=useNamespace("icon"),{t:V}=useLocale(),re=ref(!1),ie=ref(!1),ae=ref(!1),oe=ref(!1),le=ref(!1),ue=ref(!1),de=computed(()=>{const Oe=r.pagerCount,$e=(Oe-1)/2,Ve=Number(r.currentPage),Ue=Number(r.pageCount);let Fe=!1,ze=!1;Ue>Oe&&(Ve>Oe-$e&&(Fe=!0),Ve["more","btn-quickprev",$.b(),g.is("disabled",r.disabled)]),pe=computed(()=>["more","btn-quicknext",$.b(),g.is("disabled",r.disabled)]),_e=computed(()=>r.disabled?-1:0);watch(()=>[r.pageCount,r.pagerCount,r.currentPage],([Oe,$e,Ve])=>{const Ue=($e-1)/2;let Fe=!1,ze=!1;Oe>$e&&(Fe=Ve>$e-Ue,ze=VeUe&&(Ve=Ue)),Ve!==Fe&&i(CHANGE_EVENT,Ve)}return(Oe,$e)=>(openBlock(),createElementBlock("ul",{class:normalizeClass(unref(g).b()),onClick:Ne,onKeyup:withKeys(Ie,["enter"])},[Oe.pageCount>0?(openBlock(),createElementBlock("li",{key:0,class:normalizeClass([[unref(g).is("active",Oe.currentPage===1),unref(g).is("disabled",Oe.disabled)],"number"]),"aria-current":Oe.currentPage===1,"aria-label":unref(V)("el.pagination.currentPage",{pager:1}),tabindex:_e.value}," 1 ",10,_hoisted_1$O)):createCommentVNode("v-if",!0),re.value?(openBlock(),createElementBlock("li",{key:1,class:normalizeClass(he.value),tabindex:_e.value,"aria-label":unref(V)("el.pagination.prevPages",{pager:Oe.pagerCount-2}),onMouseenter:$e[0]||($e[0]=Ve=>Ce(!0)),onMouseleave:$e[1]||($e[1]=Ve=>ae.value=!1),onFocus:$e[2]||($e[2]=Ve=>xe(!0)),onBlur:$e[3]||($e[3]=Ve=>le.value=!1)},[(ae.value||le.value)&&!Oe.disabled?(openBlock(),createBlock(unref(d_arrow_left_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_2$z)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(de.value,Ve=>(openBlock(),createElementBlock("li",{key:Ve,class:normalizeClass([[unref(g).is("active",Oe.currentPage===Ve),unref(g).is("disabled",Oe.disabled)],"number"]),"aria-current":Oe.currentPage===Ve,"aria-label":unref(V)("el.pagination.currentPage",{pager:Ve}),tabindex:_e.value},toDisplayString(Ve),11,_hoisted_3$f))),128)),ie.value?(openBlock(),createElementBlock("li",{key:2,class:normalizeClass(pe.value),tabindex:_e.value,"aria-label":unref(V)("el.pagination.nextPages",{pager:Oe.pagerCount-2}),onMouseenter:$e[4]||($e[4]=Ve=>Ce()),onMouseleave:$e[5]||($e[5]=Ve=>oe.value=!1),onFocus:$e[6]||($e[6]=Ve=>xe()),onBlur:$e[7]||($e[7]=Ve=>ue.value=!1)},[(oe.value||ue.value)&&!Oe.disabled?(openBlock(),createBlock(unref(d_arrow_right_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_4$b)):createCommentVNode("v-if",!0),Oe.pageCount>1?(openBlock(),createElementBlock("li",{key:3,class:normalizeClass([[unref(g).is("active",Oe.currentPage===Oe.pageCount),unref(g).is("disabled",Oe.disabled)],"number"]),"aria-current":Oe.currentPage===Oe.pageCount,"aria-label":unref(V)("el.pagination.currentPage",{pager:Oe.pageCount}),tabindex:_e.value},toDisplayString(Oe.pageCount),11,_hoisted_5$4)):createCommentVNode("v-if",!0)],34))}});var Pager=_export_sfc(_sfc_main$1l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const isAbsent=n=>typeof n!="number",paginationProps=buildProps({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:n=>isNumber$2(n)&&Math.trunc(n)===n&&n>4&&n<22&&n%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:""},popperStyle:{type:definePropType([String,Object])},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,size:useSizeProp,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),paginationEmits={"update:current-page":n=>isNumber$2(n),"update:page-size":n=>isNumber$2(n),"size-change":n=>isNumber$2(n),change:(n,t)=>isNumber$2(n)&&isNumber$2(t),"current-change":n=>isNumber$2(n),"prev-click":n=>isNumber$2(n),"next-click":n=>isNumber$2(n)},componentName="ElPagination";var Pagination=defineComponent({name:componentName,props:paginationProps,emits:paginationEmits,setup(n,{emit:t,slots:r}){const{t:i}=useLocale(),g=useNamespace("pagination"),$=getCurrentInstance().vnode.props||{},V=useGlobalSize(),re=computed(()=>{var Oe;return n.small?"small":(Oe=n.size)!=null?Oe:V.value});useDeprecated({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},computed(()=>!!n.small));const ie="onUpdate:currentPage"in $||"onUpdate:current-page"in $||"onCurrentChange"in $,ae="onUpdate:pageSize"in $||"onUpdate:page-size"in $||"onSizeChange"in $,oe=computed(()=>{if(isAbsent(n.total)&&isAbsent(n.pageCount)||!isAbsent(n.currentPage)&&!ie)return!1;if(n.layout.includes("sizes")){if(isAbsent(n.pageCount)){if(!isAbsent(n.total)&&!isAbsent(n.pageSize)&&!ae)return!1}else if(!ae)return!1}return!0}),le=ref(isAbsent(n.defaultPageSize)?10:n.defaultPageSize),ue=ref(isAbsent(n.defaultCurrentPage)?1:n.defaultCurrentPage),de=computed({get(){return isAbsent(n.pageSize)?le.value:n.pageSize},set(Oe){isAbsent(n.pageSize)&&(le.value=Oe),ae&&(t("update:page-size",Oe),t("size-change",Oe))}}),he=computed(()=>{let Oe=0;return isAbsent(n.pageCount)?isAbsent(n.total)||(Oe=Math.max(1,Math.ceil(n.total/de.value))):Oe=n.pageCount,Oe}),pe=computed({get(){return isAbsent(n.currentPage)?ue.value:n.currentPage},set(Oe){let $e=Oe;Oe<1?$e=1:Oe>he.value&&($e=he.value),isAbsent(n.currentPage)&&(ue.value=$e),ie&&(t("update:current-page",$e),t("current-change",$e))}});watch(he,Oe=>{pe.value>Oe&&(pe.value=Oe)}),watch([pe,de],Oe=>{t(CHANGE_EVENT,...Oe)},{flush:"post"});function _e(Oe){pe.value=Oe}function Ce(Oe){de.value=Oe;const $e=he.value;pe.value>$e&&(pe.value=$e)}function xe(){n.disabled||(pe.value-=1,t("prev-click",pe.value))}function Ie(){n.disabled||(pe.value+=1,t("next-click",pe.value))}function Ne(Oe,$e){Oe&&(Oe.props||(Oe.props={}),Oe.props.class=[Oe.props.class,$e].join(" "))}return provide(elPaginationKey,{pageCount:he,disabled:computed(()=>n.disabled),currentPage:pe,changeEvent:_e,handleSizeChange:Ce}),()=>{var Oe,$e;if(!oe.value)return i("el.pagination.deprecationWarning"),null;if(!n.layout||n.hideOnSinglePage&&he.value<=1)return null;const Ve=[],Ue=[],Fe=h$1("div",{class:g.e("rightwrapper")},Ue),ze={prev:h$1(Prev,{disabled:n.disabled,currentPage:pe.value,prevText:n.prevText,prevIcon:n.prevIcon,onClick:xe}),jumper:h$1(Jumper,{size:re.value}),pager:h$1(Pager,{currentPage:pe.value,pageCount:he.value,pagerCount:n.pagerCount,onChange:_e,disabled:n.disabled}),next:h$1(Next,{disabled:n.disabled,currentPage:pe.value,pageCount:he.value,nextText:n.nextText,nextIcon:n.nextIcon,onClick:Ie}),sizes:h$1(Sizes,{pageSize:de.value,pageSizes:n.pageSizes,popperClass:n.popperClass,popperStyle:n.popperStyle,disabled:n.disabled,teleported:n.teleported,size:re.value,appendSizeTo:n.appendSizeTo}),slot:($e=(Oe=r==null?void 0:r.default)==null?void 0:Oe.call(r))!=null?$e:null,total:h$1(Total,{total:isAbsent(n.total)?0:n.total})},Pt=n.layout.split(",").map(Et=>Et.trim());let qe=!1;return Pt.forEach(Et=>{if(Et==="->"){qe=!0;return}qe?Ue.push(ze[Et]):Ve.push(ze[Et])}),Ne(Ve[0],g.is("first")),Ne(Ve[Ve.length-1],g.is("last")),qe&&Ue.length>0&&(Ne(Ue[0],g.is("first")),Ne(Ue[Ue.length-1],g.is("last")),Ve.push(Fe)),h$1("div",{class:[g.b(),g.is("background",n.background),g.m(re.value)]},Ve)}}});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:Boolean,hideAfter:{type:Number,default:200},effect:{...useTooltipContentProps.effect,default:"light"},teleported:useTooltipContentProps.teleported,persistent:useTooltipContentProps.persistent,width:{type:[String,Number],default:150},virtualTriggering:useTooltipTriggerProps.virtualTriggering,virtualRef:useTooltipTriggerProps.virtualRef}),popconfirmEmits={confirm:n=>n instanceof MouseEvent,cancel:n=>n instanceof MouseEvent},_sfc_main$1k=defineComponent({name:"ElPopconfirm",__name:"popconfirm",props:popconfirmProps,emits:popconfirmEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{t:$}=useLocale(),V=useNamespace("popconfirm"),re=ref(),ie=ref(),ae=computed(()=>{var Ce;return(Ce=unref(re))==null?void 0:Ce.popperRef}),oe=()=>{var Ce,xe;(xe=(Ce=ie.value)==null?void 0:Ce.focus)==null||xe.call(Ce)},le=()=>{var Ce,xe;(xe=(Ce=re.value)==null?void 0:Ce.onClose)==null||xe.call(Ce)},ue=computed(()=>({width:addUnit(i.width)})),de=Ce=>{g("confirm",Ce),le()},he=Ce=>{g("cancel",Ce),le()},pe=computed(()=>i.confirmButtonText||$("el.popconfirm.confirmButtonText")),_e=computed(()=>i.cancelButtonText||$("el.popconfirm.cancelButtonText"));return t({popperRef:ae,hide:le}),(Ce,xe)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:re,trigger:"click",effect:Ce.effect},Ce.$attrs,{"virtual-triggering":Ce.virtualTriggering,"virtual-ref":Ce.virtualRef,"popper-class":`${unref(V).namespace.value}-popover`,"popper-style":ue.value,teleported:Ce.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":Ce.hideAfter,persistent:Ce.persistent,loop:"",onShow:oe}),{content:withCtx(()=>[createBaseVNode("div",{ref_key:"rootRef",ref:ie,tabindex:"-1",class:normalizeClass(unref(V).b())},[createBaseVNode("div",{class:normalizeClass(unref(V).e("main"))},[!Ce.hideIcon&&Ce.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(V).e("icon")),style:normalizeStyle$1({color:Ce.iconColor})},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ce.icon)))]),_:1},8,["class","style"])):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString(Ce.title),1)],2),createBaseVNode("div",{class:normalizeClass(unref(V).e("action"))},[renderSlot(Ce.$slots,"actions",{confirm:de,cancel:he},()=>[createVNode$1(unref(ElButton),{size:"small",type:Ce.cancelButtonType==="text"?"":Ce.cancelButtonType,text:Ce.cancelButtonType==="text",onClick:he},{default:withCtx(()=>[createTextVNode(toDisplayString(_e.value),1)]),_:1},8,["type","text"]),createVNode$1(unref(ElButton),{size:"small",type:Ce.confirmButtonType==="text"?"":Ce.confirmButtonType,text:Ce.confirmButtonType==="text",onClick:de},{default:withCtx(()=>[createTextVNode(toDisplayString(pe.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:withCtx(()=>[Ce.$slots.reference?renderSlot(Ce.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}});var Popconfirm=_export_sfc(_sfc_main$1k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const ElPopconfirm=withInstall(Popconfirm),popoverProps=buildProps({trigger:useTooltipTriggerProps.trigger,triggerKeys:useTooltipTriggerProps.triggerKeys,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,appendTo:useTooltipContentProps.appendTo,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":n=>isBoolean$1(n),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},updateEventKeyRaw="onUpdate:visible",_sfc_main$1j=defineComponent({name:"ElPopover",__name:"popover",props:popoverProps,emits:popoverEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=computed(()=>i[updateEventKeyRaw]),V=useNamespace("popover"),re=ref(),ie=computed(()=>{var Ce;return(Ce=unref(re))==null?void 0:Ce.popperRef}),ae=computed(()=>[{width:addUnit(i.width)},i.popperStyle]),oe=computed(()=>[V.b(),i.popperClass,{[V.m("plain")]:!!i.content}]),le=computed(()=>i.transition===`${V.namespace.value}-fade-in-linear`),ue=()=>{var Ce;(Ce=re.value)==null||Ce.hide()},de=()=>{g("before-enter")},he=()=>{g("before-leave")},pe=()=>{g("after-enter")},_e=()=>{g("update:visible",!1),g("after-leave")};return t({popperRef:ie,hide:ue}),(Ce,xe)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:re},Ce.$attrs,{trigger:Ce.trigger,"trigger-keys":Ce.triggerKeys,placement:Ce.placement,disabled:Ce.disabled,visible:Ce.visible,transition:Ce.transition,"popper-options":Ce.popperOptions,tabindex:Ce.tabindex,content:Ce.content,offset:Ce.offset,"show-after":Ce.showAfter,"hide-after":Ce.hideAfter,"auto-close":Ce.autoClose,"show-arrow":Ce.showArrow,"aria-label":Ce.title,effect:Ce.effect,enterable:Ce.enterable,"popper-class":oe.value,"popper-style":ae.value,teleported:Ce.teleported,"append-to":Ce.appendTo,persistent:Ce.persistent,"gpu-acceleration":le.value,"onUpdate:visible":$.value,onBeforeShow:de,onBeforeHide:he,onShow:pe,onHide:_e}),{content:withCtx(()=>[Ce.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V).e("title")),role:"title"},toDisplayString(Ce.title),3)):createCommentVNode("v-if",!0),renderSlot(Ce.$slots,"default",{},()=>[createTextVNode(toDisplayString(Ce.content),1)])]),default:withCtx(()=>[Ce.$slots.reference?renderSlot(Ce.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},16,["trigger","trigger-keys","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","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});var Popover=_export_sfc(_sfc_main$1j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const attachEvents=(n,t)=>{const r=t.arg||t.value,i=r==null?void 0:r.popperRef;i&&(i.triggerRef=n)};var PopoverDirective={mounted(n,t){attachEvents(n,t)},updated(n,t){attachEvents(n,t)}};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:n=>n>=0&&n<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:definePropType(String),default:"round"},textInside:Boolean,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:n=>`${n}%`}}),_hoisted_1$N=["aria-valuenow"],_hoisted_2$y={viewBox:"0 0 100 100"},_hoisted_3$e=["d","stroke","stroke-linecap","stroke-width"],_hoisted_4$a=["d","stroke","opacity","stroke-linecap","stroke-width"],_hoisted_5$3={key:0},_sfc_main$1i=defineComponent({name:"ElProgress",__name:"progress",props:progressProps,setup(n){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=n,i=useNamespace("progress"),g=computed(()=>{const Ie={width:`${r.percentage}%`,animationDuration:`${r.duration}s`},Ne=xe(r.percentage);return Ne.includes("gradient")?Ie.background=Ne:Ie.backgroundColor=Ne,Ie}),$=computed(()=>(r.strokeWidth/r.width*100).toFixed(1)),V=computed(()=>["circle","dashboard"].includes(r.type)?Number.parseInt(`${50-Number.parseFloat($.value)/2}`,10):0),re=computed(()=>{const Ie=V.value,Ne=r.type==="dashboard";return` M 50 50 m 0 ${Ne?"":"-"}${Ie} a ${Ie} ${Ie} 0 1 1 0 ${Ne?"-":""}${Ie*2} a ${Ie} ${Ie} 0 1 1 0 ${Ne?"":"-"}${Ie*2} `}),ie=computed(()=>2*Math.PI*V.value),ae=computed(()=>r.type==="dashboard"?.75:1),oe=computed(()=>`${-1*ie.value*(1-ae.value)/2}px`),le=computed(()=>({strokeDasharray:`${ie.value*ae.value}px, ${ie.value}px`,strokeDashoffset:oe.value})),ue=computed(()=>({strokeDasharray:`${ie.value*ae.value*(r.percentage/100)}px, ${ie.value}px`,strokeDashoffset:oe.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),de=computed(()=>{let Ie;return r.color?Ie=xe(r.percentage):Ie=t[r.status]||t.default,Ie}),he=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),pe=computed(()=>r.type==="line"?12+r.strokeWidth*.4:r.width*.111111+2),_e=computed(()=>r.format(r.percentage));function Ce(Ie){const Ne=100/Ie.length;return Ie.map(($e,Ve)=>isString$2($e)?{color:$e,percentage:(Ve+1)*Ne}:$e).sort(($e,Ve)=>$e.percentage-Ve.percentage)}const xe=Ie=>{var Ne;const{color:Oe}=r;if(isFunction$4(Oe))return Oe(Ie);if(isString$2(Oe))return Oe;{const $e=Ce(Oe);for(const Ve of $e)if(Ve.percentage>Ie)return Ve.color;return(Ne=$e[$e.length-1])==null?void 0:Ne.color}};return(Ie,Ne)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(i).b(),unref(i).m(Ie.type),unref(i).is(Ie.status),{[unref(i).m("without-text")]:!Ie.showText,[unref(i).m("text-inside")]:Ie.textInside}]),role:"progressbar","aria-valuenow":Ie.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[Ie.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(i).be("bar","outer")),style:normalizeStyle$1({height:`${Ie.strokeWidth}px`})},[createBaseVNode("div",{class:normalizeClass([unref(i).be("bar","inner"),{[unref(i).bem("bar","inner","indeterminate")]:Ie.indeterminate},{[unref(i).bem("bar","inner","striped")]:Ie.striped},{[unref(i).bem("bar","inner","striped-flow")]:Ie.stripedFlow}]),style:normalizeStyle$1(g.value)},[(Ie.showText||Ie.$slots.default)&&Ie.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).be("bar","innerText"))},[renderSlot(Ie.$slots,"default",{percentage:Ie.percentage},()=>[createBaseVNode("span",null,toDisplayString(_e.value),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(i).b("circle")),style:normalizeStyle$1({height:`${Ie.width}px`,width:`${Ie.width}px`})},[(openBlock(),createElementBlock("svg",_hoisted_2$y,[createBaseVNode("path",{class:normalizeClass(unref(i).be("circle","track")),d:re.value,stroke:`var(${unref(i).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":Ie.strokeLinecap,"stroke-width":$.value,fill:"none",style:normalizeStyle$1(le.value)},null,14,_hoisted_3$e),createBaseVNode("path",{class:normalizeClass(unref(i).be("circle","path")),d:re.value,stroke:de.value,fill:"none",opacity:Ie.percentage?1:0,"stroke-linecap":Ie.strokeLinecap,"stroke-width":$.value,style:normalizeStyle$1(ue.value)},null,14,_hoisted_4$a)]))],6)),(Ie.showText||Ie.$slots.default)&&!Ie.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(i).e("text")),style:normalizeStyle$1({fontSize:`${pe.value}px`})},[renderSlot(Ie.$slots,"default",{percentage:Ie.percentage},()=>[Ie.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(he.value)))]),_:1})):(openBlock(),createElementBlock("span",_hoisted_5$3,toDisplayString(_e.value),1))])],6)):createCommentVNode("v-if",!0)],10,_hoisted_1$N))}});var Progress=_export_sfc(_sfc_main$1i,[["__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:{type:Boolean,default:void 0},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,clearable:Boolean,...useAriaProps(["ariaLabel"])}),rateEmits={[CHANGE_EVENT]:n=>isNumber$2(n),[UPDATE_MODEL_EVENT]:n=>isNumber$2(n)},_hoisted_1$M=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],_hoisted_2$x=["onMousemove","onClick"],_sfc_main$1h=defineComponent({name:"ElRate",__name:"rate",props:rateProps,emits:rateEmits,setup(n,{expose:t,emit:r}){function i(jt,hn){const vn=bn=>isObject$6(bn),_n=Object.keys(hn).map(bn=>+bn).filter(bn=>{const Cn=hn[bn];return(vn(Cn)?Cn.excluded:!1)?jtbn-Cn),wn=hn[_n[0]];return vn(wn)&&wn.value||wn}const g=n,$=r,V=inject(formItemContextKey,void 0),re=useFormSize(),ie=useNamespace("rate"),{inputId:ae,isLabeledByFormItem:oe}=useFormItemInputId(g,{formItemContext:V}),le=ref(g.modelValue),ue=ref(-1),de=ref(!0),he=ref([]),pe=computed(()=>he.value.map(jt=>jt.$el.clientWidth)),_e=computed(()=>[ie.b(),ie.m(re.value)]),Ce=useFormDisabled(),xe=computed(()=>ie.cssVarBlock({"void-color":g.voidColor,"disabled-void-color":g.disabledVoidColor,"fill-color":$e.value})),Ie=computed(()=>{let jt="";return g.showScore?jt=g.scoreTemplate.replace(/\{\s*value\s*\}/,Ce.value?`${g.modelValue}`:`${le.value}`):g.showText&&(jt=g.texts[Math.ceil(le.value)-1]),jt}),Ne=computed(()=>g.modelValue*100-Math.floor(g.modelValue)*100),Oe=computed(()=>isArray$5(g.colors)?{[g.lowThreshold]:g.colors[0],[g.highThreshold]:{value:g.colors[1],excluded:!0},[g.max]:g.colors[2]}:g.colors),$e=computed(()=>{const jt=i(le.value,Oe.value);return isObject$6(jt)?"":jt}),Ve=computed(()=>{let jt="";return Ce.value?jt=`${Ne.value}%`:g.allowHalf&&(jt="50%"),{color:$e.value,width:jt}}),Ue=computed(()=>{let jt=isArray$5(g.icons)?[...g.icons]:{...g.icons};return jt=markRaw(jt),isArray$5(jt)?{[g.lowThreshold]:jt[0],[g.highThreshold]:{value:jt[1],excluded:!0},[g.max]:jt[2]}:jt}),Fe=computed(()=>i(g.modelValue,Ue.value)),ze=computed(()=>Ce.value?isString$2(g.disabledVoidIcon)?g.disabledVoidIcon:markRaw(g.disabledVoidIcon):isString$2(g.voidIcon)?g.voidIcon:markRaw(g.voidIcon)),Pt=computed(()=>i(le.value,Ue.value));function qe(jt){const hn=Ce.value&&Ne.value>0&&jt-1g.modelValue,vn=g.allowHalf&&de.value&&jt-.5<=le.value&&jt>le.value;return hn||vn}function Et(jt){g.clearable&&jt===g.modelValue&&(jt=0),$(UPDATE_MODEL_EVENT,jt),g.modelValue!==jt&&$(CHANGE_EVENT,jt)}function kt(jt){Ce.value||(g.allowHalf&&de.value?Et(le.value):Et(jt))}function At(jt){if(Ce.value)return;const hn=getEventCode(jt),vn=g.allowHalf?.5:1;let _n=le.value;switch(hn){case EVENT_CODE.up:case EVENT_CODE.right:_n+=vn;break;case EVENT_CODE.left:case EVENT_CODE.down:_n-=vn;break}if(_n=clamp$3(_n,0,g.max),_n!==le.value)return jt.stopPropagation(),jt.preventDefault(),$(UPDATE_MODEL_EVENT,_n),$(CHANGE_EVENT,_n),_n}function Dt(jt,hn){Ce.value||(g.allowHalf&&hn?(de.value=hn.offsetX*2<=pe.value[jt-1],le.value=de.value?jt-.5:jt):le.value=jt,ue.value=jt)}function Lt(){Ce.value||(g.allowHalf&&(de.value=g.modelValue!==Math.floor(g.modelValue)),le.value=g.modelValue,ue.value=-1)}return watch(()=>g.modelValue,jt=>{le.value=jt,de.value=g.modelValue!==Math.floor(g.modelValue)}),g.modelValue||$(UPDATE_MODEL_EVENT,0),t({setCurrentValue:Dt,resetCurrentValue:Lt}),(jt,hn)=>{var vn;return openBlock(),createElementBlock("div",{id:unref(ae),class:normalizeClass([_e.value,unref(ie).is("disabled",unref(Ce))]),role:"slider","aria-label":unref(oe)?void 0:jt.ariaLabel||"rating","aria-labelledby":unref(oe)?(vn=unref(V))==null?void 0:vn.labelId:void 0,"aria-valuenow":le.value,"aria-valuetext":Ie.value||void 0,"aria-valuemin":"0","aria-valuemax":jt.max,tabindex:"0",style:normalizeStyle$1(xe.value),onKeydown:At},[(openBlock(!0),createElementBlock(Fragment,null,renderList(jt.max,(_n,wn)=>(openBlock(),createElementBlock("span",{key:wn,class:normalizeClass(unref(ie).e("item")),onMousemove:bn=>Dt(_n,bn),onMouseleave:Lt,onClick:bn=>kt(_n)},[createVNode$1(unref(ElIcon),{ref_for:!0,ref_key:"iconRefs",ref:he,class:normalizeClass([unref(ie).e("icon"),{hover:ue.value===_n},unref(ie).is("active",_n<=le.value),unref(ie).is("focus-visible",_n===Math.ceil(le.value||1))])},{default:withCtx(()=>[withDirectives((openBlock(),createBlock(resolveDynamicComponent(Pt.value),null,null,512)),[[vShow,!qe(_n)&&_n<=le.value]]),withDirectives((openBlock(),createBlock(resolveDynamicComponent(ze.value),null,null,512)),[[vShow,!qe(_n)&&_n>le.value]]),withDirectives((openBlock(),createBlock(resolveDynamicComponent(ze.value),{class:normalizeClass([unref(ie).em("decimal","box")])},null,8,["class"])),[[vShow,qe(_n)]]),withDirectives(createVNode$1(unref(ElIcon),{style:normalizeStyle$1(Ve.value),class:normalizeClass([unref(ie).e("icon"),unref(ie).e("decimal")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Fe.value)))]),_:1},8,["style","class"]),[[vShow,qe(_n)]])]),_:2},1032,["class"])],42,_hoisted_2$x))),128)),jt.showText||jt.showScore?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ie).e("text")),style:normalizeStyle$1({color:jt.textColor})},toDisplayString(Ie.value),7)):createCommentVNode("v-if",!0)],46,_hoisted_1$M)}}});var Rate=_export_sfc(_sfc_main$1h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const ElRate=withInstall(Rate),IconMap={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},IconComponentMap={[IconMap.primary]:info_filled_default,[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:["primary","success","warning","info","error"],default:"info"}}),_sfc_main$1g=defineComponent({name:"ElResult",__name:"result",props:resultProps,setup(n){const t=n,r=useNamespace("result"),i=computed(()=>{const g=t.icon,$=g&&IconMap[g]?IconMap[g]:"icon-info",V=IconComponentMap[$]||IconComponentMap["icon-info"];return{class:$,component:V}});return(g,$)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(r).b())},[createBaseVNode("div",{class:normalizeClass(unref(r).e("icon"))},[renderSlot(g.$slots,"icon",{},()=>[i.value.component?(openBlock(),createBlock(resolveDynamicComponent(i.value.component),{key:0,class:normalizeClass(i.value.class)},null,8,["class"])):createCommentVNode("v-if",!0)])],2),g.title||g.$slots.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("title"))},[renderSlot(g.$slots,"title",{},()=>[createBaseVNode("p",null,toDisplayString(g.title),1)])],2)):createCommentVNode("v-if",!0),g.subTitle||g.$slots["sub-title"]?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(r).e("subtitle"))},[renderSlot(g.$slots,"sub-title",{},()=>[createBaseVNode("p",null,toDisplayString(g.subTitle),1)])],2)):createCommentVNode("v-if",!0),g.$slots.extra?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(r).e("extra"))},[renderSlot(g.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2))}});var Result=_export_sfc(_sfc_main$1g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const ElResult=withInstall(Result),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}}),_sfc_main$1f=defineComponent({name:"ElRow",__name:"row",props:rowProps,setup(n){const t=n,r=useNamespace("row"),i=computed(()=>t.gutter);provide(rowContextKey,{gutter:i});const g=computed(()=>{const V={};return t.gutter&&(V.marginRight=V.marginLeft=`-${t.gutter/2}px`),V}),$=computed(()=>[r.b(),r.is(`justify-${t.justify}`,t.justify!=="start"),r.is(`align-${t.align}`,!!t.align)]);return(V,re)=>(openBlock(),createBlock(resolveDynamicComponent(V.tag),{class:normalizeClass($.value),style:normalizeStyle$1(g.value)},{default:withCtx(()=>[renderSlot(V.$slots,"default")]),_:3},8,["class","style"]))}});var Row$2=_export_sfc(_sfc_main$1f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const ElRow=withInstall(Row$2),_sfc_main$1e=defineComponent({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:useNamespace("select")}}});function _sfc_render$7(n,t,r,i,g,$){return openBlock(),createElementBlock("div",{class:normalizeClass(n.ns.be("group","title")),style:normalizeStyle$1({...n.style,lineHeight:`${n.height}px`})},toDisplayString(n.item.label),7)}var GroupItem=_export_sfc(_sfc_main$1e,[["render",_sfc_render$7],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function useOption(n,{emit:t}){return{hoverItem:()=>{n.disabled||t("hover",n.index)},selectOptionClick:()=>{n.disabled||t("select",n.item,n.index)}}}const selectV2Props=buildProps({allowCreate:Boolean,autocomplete:{type:definePropType(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:iconPropType,default:circle_close_default},effect:{type:definePropType(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:definePropType(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:definePropType([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:definePropType(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:definePropType(Array),required:!0},placeholder:{type:String},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},popperClass:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,popperOptions:{type:definePropType(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:useSizeProp,props:{type:definePropType(Object),default:()=>defaultProps$4},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:definePropType(String),values:Ee,default:"bottom-start"},fallbackPlacements:{type:definePropType(Array),default:["bottom-start","top-start","right","left"]},tagType:{...tagProps.type,default:"info"},tagEffect:{...tagProps.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:useTooltipContentProps.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(n){return isBoolean$1(n)||isNumber$2(n)}},suffixIcon:{type:iconPropType,default:arrow_down_default},...useEmptyValuesProps,...useAriaProps(["ariaLabel"])}),optionV2Props=buildProps({data:Array,disabled:Boolean,hovering:Boolean,item:{type:definePropType(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),selectV2Emits={[UPDATE_MODEL_EVENT]:n=>!0,[CHANGE_EVENT]:n=>!0,"remove-tag":n=>!0,"visible-change":n=>!0,focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0},optionV2Emits={hover:n=>isNumber$2(n),select:(n,t)=>!0},selectV2InjectionKey=Symbol("ElSelectV2Injection"),_sfc_main$1d=defineComponent({props:optionV2Props,emits:optionV2Emits,setup(n,{emit:t}){const r=inject(selectV2InjectionKey),i=useNamespace("select"),{hoverItem:g,selectOptionClick:$}=useOption(n,{emit:t}),{getLabel:V}=useProps(r.props),re=r.contentId;return{ns:i,contentId:re,hoverItem:g,selectOptionClick:$,getLabel:V}}}),_hoisted_1$L=["id","aria-selected","aria-disabled"];function _sfc_render$6(n,t,r,i,g,$){return openBlock(),createElementBlock("li",{id:`${n.contentId}-${n.index}`,role:"option","aria-selected":n.selected,"aria-disabled":n.disabled||void 0,style:normalizeStyle$1(n.style),class:normalizeClass([n.ns.be("dropdown","item"),n.ns.is("selected",n.selected),n.ns.is("disabled",n.disabled),n.ns.is("created",n.created),n.ns.is("hovering",n.hovering)]),onMousemove:t[0]||(t[0]=(...V)=>n.hoverItem&&n.hoverItem(...V)),onClick:t[1]||(t[1]=withModifiers((...V)=>n.selectOptionClick&&n.selectOptionClick(...V),["stop"]))},[renderSlot(n.$slots,"default",{item:n.item,index:n.index,disabled:n.disabled},()=>[createBaseVNode("span",null,toDisplayString(n.getLabel(n.item)),1)])],46,_hoisted_1$L)}var OptionItem=_export_sfc(_sfc_main$1d,[["render",_sfc_render$6],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]),safeIsNaN=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function isEqual(n,t){return!!(n===t||safeIsNaN(n)&&safeIsNaN(t))}function areInputsEqual(n,t){if(n.length!==t.length)return!1;for(var r=0;r{const t=getCurrentInstance().proxy.$props;return computed(()=>{const r=(i,g,$)=>({});return t.perfMode?memoize(r):memoizeOne(r)})},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="horizontal",VERTICAL="vertical",LTR="ltr",RTL="rtl",RTL_OFFSET_NAG="negative",RTL_OFFSET_POS_ASC="positive-ascending",RTL_OFFSET_POS_DESC="positive-descending",ScrollbarDirKey={[HORIZONTAL]:"left",[VERTICAL]:"top"},SCROLLBAR_MIN_SIZE=20,useWheel=({atEndEdge:n,atStartEdge:t,layout:r},i)=>{let g,$=0;const V=ie=>ie<0&&t.value||ie>0&&n.value;return{hasReachedEdge:V,onWheel:ie=>{cAF(g);let{deltaX:ae,deltaY:oe}=ie;ie.shiftKey&&oe!==0&&(ae=oe,oe=0);const le=r.value===HORIZONTAL?ae:oe;V(le)||($+=le,!isFirefox()&&le!==0&&ie.preventDefault(),g=rAF(()=>{i($),$=0}))}}},itemSize$1=buildProp({type:definePropType([Number,Function]),required:!0}),estimatedItemSize=buildProp({type:Number}),cache=buildProp({type:Number,default:2}),direction=buildProp({type:String,values:["ltr","rtl"],default:"ltr"}),initScrollOffset=buildProp({type:Number,default:0}),total$1=buildProp({type:Number,required:!0}),layout$1=buildProp({type:String,values:["horizontal","vertical"],default:VERTICAL}),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"},innerProps:{type:definePropType(Object),default:()=>({})},style:{type:definePropType([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),virtualizedListProps=buildProps({cache,estimatedItemSize,layout:layout$1,initScrollOffset,total:total$1,itemSize:itemSize$1,...virtualizedProps}),scrollbarSize={type:Number,default:6},startGap={type:Number,default:0},endGap={type:Number,default:2},virtualizedGridProps=buildProps({columnCache:cache,columnWidth:itemSize$1,estimatedColumnWidth:estimatedItemSize,estimatedRowHeight:estimatedItemSize,initScrollLeft:initScrollOffset,initScrollTop:initScrollOffset,itemKey:{type:definePropType(Function),default:({columnIndex:n,rowIndex:t})=>`${t}:${n}`},rowCache:cache,rowHeight:itemSize$1,totalColumn:total$1,totalRow:total$1,hScrollbarSize:scrollbarSize,vScrollbarSize:scrollbarSize,scrollbarStartGap:startGap,scrollbarEndGap:endGap,role:String,...virtualizedProps}),virtualizedScrollbarProps=buildProps({alwaysOn:Boolean,class:String,layout:layout$1,total:total$1,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize,startGap,endGap,visible:Boolean}),getScrollDir=(n,t)=>nn===LTR||n===RTL||n===HORIZONTAL,isRTL$1=n=>n===RTL;let cachedRTLResult=null;function getRTLOffsetType(n=!1){if(cachedRTLResult===null||n){const t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";const i=document.createElement("div"),g=i.style;return g.width="100px",g.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?cachedRTLResult=RTL_OFFSET_POS_DESC:(t.scrollLeft=1,t.scrollLeft===0?cachedRTLResult=RTL_OFFSET_NAG:cachedRTLResult=RTL_OFFSET_POS_ASC),document.body.removeChild(t),cachedRTLResult}return cachedRTLResult}function renderThumbStyle({move:n,size:t,bar:r},i){const g={},$=`translate${r.axis}(${n}px)`;return g[r.size]=t,g.transform=$,i==="horizontal"?g.height="100%":g.width="100%",g}const ScrollBar=defineComponent({name:"ElVirtualScrollBar",props:virtualizedScrollbarProps,emits:["scroll","start-move","stop-move"],setup(n,{emit:t}){const r=computed(()=>n.startGap+n.endGap),i=useNamespace("virtual-scrollbar"),g=useNamespace("scrollbar"),$=ref(),V=ref();let re=null,ie=null;const ae=reactive({isDragging:!1,traveled:0}),oe=computed(()=>BAR_MAP[n.layout]),le=computed(()=>n.clientSize-unref(r)),ue=computed(()=>({position:"absolute",width:`${HORIZONTAL===n.layout?le.value:n.scrollbarSize}px`,height:`${HORIZONTAL===n.layout?n.scrollbarSize:le.value}px`,[ScrollbarDirKey[n.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),de=computed(()=>{const $e=n.ratio;if($e>=100)return Number.POSITIVE_INFINITY;if($e>=50)return $e*le.value/100;const Ve=le.value/3;return Math.floor(Math.min(Math.max($e*le.value/100,SCROLLBAR_MIN_SIZE),Ve))}),he=computed(()=>{if(!Number.isFinite(de.value))return{display:"none"};const $e=`${de.value}px`;return renderThumbStyle({bar:oe.value,size:$e,move:ae.traveled},n.layout)}),pe=computed(()=>Math.ceil(n.clientSize-de.value-unref(r))),_e=()=>{window.addEventListener("mousemove",Ne),window.addEventListener("mouseup",Ie);const $e=unref(V);$e&&(ie=document.onselectstart,document.onselectstart=()=>!1,$e.addEventListener("touchmove",Ne,{passive:!0}),$e.addEventListener("touchend",Ie))},Ce=()=>{window.removeEventListener("mousemove",Ne),window.removeEventListener("mouseup",Ie),document.onselectstart=ie,ie=null;const $e=unref(V);$e&&($e.removeEventListener("touchmove",Ne),$e.removeEventListener("touchend",Ie))},xe=$e=>{$e.stopImmediatePropagation(),!($e.ctrlKey||[1,2].includes($e.button))&&(ae.isDragging=!0,ae[oe.value.axis]=$e.currentTarget[oe.value.offset]-($e[oe.value.client]-$e.currentTarget.getBoundingClientRect()[oe.value.direction]),t("start-move"),_e())},Ie=()=>{ae.isDragging=!1,ae[oe.value.axis]=0,t("stop-move"),Ce()},Ne=$e=>{const{isDragging:Ve}=ae;if(!Ve||!V.value||!$.value)return;const Ue=ae[oe.value.axis];if(!Ue)return;cAF(re);const Fe=($.value.getBoundingClientRect()[oe.value.direction]-$e[oe.value.client])*-1,ze=V.value[oe.value.offset]-Ue,Pt=Fe-ze;re=rAF(()=>{ae.traveled=Math.max(0,Math.min(Pt,pe.value)),t("scroll",Pt,pe.value)})},Oe=$e=>{const Ve=Math.abs($e.target.getBoundingClientRect()[oe.value.direction]-$e[oe.value.client]),Ue=V.value[oe.value.offset]/2,Fe=Ve-Ue;ae.traveled=Math.max(0,Math.min(Fe,pe.value)),t("scroll",Fe,pe.value)};return watch(()=>n.scrollFrom,$e=>{ae.isDragging||(ae.traveled=Math.ceil($e*pe.value))}),onBeforeUnmount(()=>{Ce()}),()=>h$1("div",{role:"presentation",ref:$,class:[i.b(),n.class,(n.alwaysOn||ae.isDragging)&&"always-on"],style:ue.value,onMousedown:withModifiers(Oe,["stop","prevent"]),onTouchstartPrevent:xe},h$1("div",{ref:V,class:g.e("thumb"),style:he.value,onMousedown:xe},[]))}}),createList=({name:n,getOffset:t,getItemSize:r,getItemOffset:i,getEstimatedTotalSize:g,getStartIndexForOffset:$,getStopIndexForStartIndex:V,initCache:re,clearCache:ie,validateProps:ae})=>defineComponent({name:n??"ElVirtualList",props:virtualizedListProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(oe,{emit:le,expose:ue}){ae(oe);const de=getCurrentInstance(),he=useNamespace("vl"),pe=ref(re(oe,de)),_e=useCache(),Ce=ref(),xe=ref(),Ie=ref(),Ne=ref({isScrolling:!1,scrollDir:"forward",scrollOffset:isNumber$2(oe.initScrollOffset)?oe.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:oe.scrollbarAlwaysOn}),Oe=computed(()=>{const{total:bn,cache:Cn}=oe,{isScrolling:Sn,scrollDir:Tn,scrollOffset:En}=unref(Ne);if(bn===0)return[0,0,0,0];const kn=$(oe,En,unref(pe)),$n=V(oe,kn,En,unref(pe)),An=!Sn||Tn===BACKWARD?Math.max(1,Cn):1,xn=!Sn||Tn===FORWARD?Math.max(1,Cn):1;return[Math.max(0,kn-An),Math.max(0,Math.min(bn-1,$n+xn)),kn,$n]}),$e=computed(()=>g(oe,unref(pe))),Ve=computed(()=>isHorizontal(oe.layout)),Ue=computed(()=>[{position:"relative",[`overflow-${Ve.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:oe.direction,height:isNumber$2(oe.height)?`${oe.height}px`:oe.height,width:isNumber$2(oe.width)?`${oe.width}px`:oe.width},oe.style]),Fe=computed(()=>{const bn=unref($e),Cn=unref(Ve);return{height:Cn?"100%":`${bn}px`,pointerEvents:unref(Ne).isScrolling?"none":void 0,width:Cn?`${bn}px`:"100%",margin:0,boxSizing:"border-box"}}),ze=computed(()=>Ve.value?oe.width:oe.height),{onWheel:Pt}=useWheel({atStartEdge:computed(()=>Ne.value.scrollOffset<=0),atEndEdge:computed(()=>Ne.value.scrollOffset>=$e.value),layout:computed(()=>oe.layout)},bn=>{var Cn,Sn;(Sn=(Cn=Ie.value).onMouseUp)==null||Sn.call(Cn),Lt(Math.min(Ne.value.scrollOffset+bn,$e.value-ze.value))});useEventListener(Ce,"wheel",Pt,{passive:!1});const qe=()=>{const{total:bn}=oe;if(bn>0){const[En,kn,$n,An]=unref(Oe);le(ITEM_RENDER_EVT,En,kn,$n,An)}const{scrollDir:Cn,scrollOffset:Sn,updateRequested:Tn}=unref(Ne);le(SCROLL_EVT,Cn,Sn,Tn)},Et=bn=>{const{clientHeight:Cn,scrollHeight:Sn,scrollTop:Tn}=bn.currentTarget,En=unref(Ne);if(En.scrollOffset===Tn)return;const kn=Math.max(0,Math.min(Tn,Sn-Cn));Ne.value={...En,isScrolling:!0,scrollDir:getScrollDir(En.scrollOffset,kn),scrollOffset:kn,updateRequested:!1},nextTick(vn)},kt=bn=>{const{clientWidth:Cn,scrollLeft:Sn,scrollWidth:Tn}=bn.currentTarget,En=unref(Ne);if(En.scrollOffset===Sn)return;const{direction:kn}=oe;let $n=Sn;if(kn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{$n=-Sn;break}case RTL_OFFSET_POS_DESC:{$n=Tn-Cn-Sn;break}}$n=Math.max(0,Math.min($n,Tn-Cn)),Ne.value={...En,isScrolling:!0,scrollDir:getScrollDir(En.scrollOffset,$n),scrollOffset:$n,updateRequested:!1},nextTick(vn)},At=bn=>{unref(Ve)?kt(bn):Et(bn),qe()},Dt=(bn,Cn)=>{const Sn=($e.value-ze.value)/Cn*bn;Lt(Math.min($e.value-ze.value,Sn))},Lt=bn=>{bn=Math.max(bn,0),bn!==unref(Ne).scrollOffset&&(Ne.value={...unref(Ne),scrollOffset:bn,scrollDir:getScrollDir(unref(Ne).scrollOffset,bn),updateRequested:!0},nextTick(vn))},jt=(bn,Cn=AUTO_ALIGNMENT)=>{const{scrollOffset:Sn}=unref(Ne);bn=Math.max(0,Math.min(bn,oe.total-1)),Lt(t(oe,bn,Cn,Sn,unref(pe)))},hn=bn=>{const{direction:Cn,itemSize:Sn,layout:Tn}=oe,En=_e.value(ie&&Sn,ie&&Tn,ie&&Cn);let kn;if(hasOwn$1(En,String(bn)))kn=En[bn];else{const $n=i(oe,bn,unref(pe)),An=r(oe,bn,unref(pe)),xn=unref(Ve),Ln=Cn===RTL,Nn=xn?$n:0;En[bn]=kn={position:"absolute",left:Ln?void 0:`${Nn}px`,right:Ln?`${Nn}px`:void 0,top:xn?0:`${$n}px`,height:xn?"100%":`${An}px`,width:xn?`${An}px`:"100%"}}return kn},vn=()=>{Ne.value.isScrolling=!1,nextTick(()=>{_e.value(-1,null,null)})},_n=()=>{const bn=Ce.value;bn&&(bn.scrollTop=0)};onMounted(()=>{if(!isClient)return;const{initScrollOffset:bn}=oe,Cn=unref(Ce);isNumber$2(bn)&&Cn&&(unref(Ve)?Cn.scrollLeft=bn:Cn.scrollTop=bn),qe()}),onUpdated(()=>{const{direction:bn,layout:Cn}=oe,{scrollOffset:Sn,updateRequested:Tn}=unref(Ne),En=unref(Ce);if(Tn&&En)if(Cn===HORIZONTAL)if(bn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{En.scrollLeft=-Sn;break}case RTL_OFFSET_POS_ASC:{En.scrollLeft=Sn;break}default:{const{clientWidth:kn,scrollWidth:$n}=En;En.scrollLeft=$n-kn-Sn;break}}else En.scrollLeft=Sn;else En.scrollTop=Sn}),onActivated(()=>{unref(Ce).scrollTop=unref(Ne).scrollOffset});const wn={ns:he,clientSize:ze,estimatedTotalSize:$e,windowStyle:Ue,windowRef:Ce,innerRef:xe,innerStyle:Fe,itemsToRender:Oe,scrollbarRef:Ie,states:Ne,getItemStyle:hn,onScroll:At,onScrollbarScroll:Dt,onWheel:Pt,scrollTo:Lt,scrollToItem:jt,resetScrollTop:_n};return ue({windowRef:Ce,innerRef:xe,getItemStyleCache:_e,scrollTo:Lt,scrollToItem:jt,resetScrollTop:_n,states:Ne}),wn},render(oe){var le;const{$slots:ue,className:de,clientSize:he,containerElement:pe,data:_e,getItemStyle:Ce,innerElement:xe,itemsToRender:Ie,innerStyle:Ne,layout:Oe,total:$e,onScroll:Ve,onScrollbarScroll:Ue,states:Fe,useIsScrolling:ze,windowStyle:Pt,ns:qe}=oe,[Et,kt]=Ie,At=resolveDynamicComponent(pe),Dt=resolveDynamicComponent(xe),Lt=[];if($e>0)for(let _n=Et;_n<=kt;_n++)Lt.push(h$1(Fragment,{key:_n},(le=ue.default)==null?void 0:le.call(ue,{data:_e,index:_n,isScrolling:ze?Fe.isScrolling:void 0,style:Ce(_n)})));const jt=[h$1(Dt,mergeProps(oe.innerProps,{style:Ne,ref:"innerRef"}),isString$2(Dt)?Lt:{default:()=>Lt})],hn=h$1(ScrollBar,{ref:"scrollbarRef",clientSize:he,layout:Oe,onScroll:Ue,ratio:he*100/this.estimatedTotalSize,scrollFrom:Fe.scrollOffset/(this.estimatedTotalSize-he),total:$e,alwaysOn:Fe.scrollbarAlwaysOn}),vn=h$1(At,{class:[qe.e("window"),de],style:Pt,onScroll:Ve,ref:"windowRef",key:0},isString$2(At)?[jt]:{default:()=>[jt]});return h$1("div",{key:0,class:[qe.e("wrapper"),Fe.scrollbarAlwaysOn?"always-on":""]},[vn,hn])}}),FixedSizeList=createList({name:"ElFixedSizeList",getItemOffset:({itemSize:n},t)=>t*n,getItemSize:({itemSize:n})=>n,getEstimatedTotalSize:({total:n,itemSize:t})=>t*n,getOffset:({height:n,total:t,itemSize:r,layout:i,width:g},$,V,re)=>{const ie=isHorizontal(i)?g:n,ae=Math.max(0,t*r-ie),oe=Math.min(ae,$*r),le=Math.max(0,($+1)*r-ie);switch(V===SMART_ALIGNMENT&&(re>=le-ie&&re<=oe+ie?V=AUTO_ALIGNMENT:V=CENTERED_ALIGNMENT),V){case START_ALIGNMENT:return oe;case END_ALIGNMENT:return le;case CENTERED_ALIGNMENT:{const ue=Math.round(le+(oe-le)/2);return ueae+Math.floor(ie/2)?ae:ue}case AUTO_ALIGNMENT:default:return re>=le&&re<=oe?re:reMath.max(0,Math.min(n-1,Math.floor(r/t))),getStopIndexForStartIndex:({height:n,total:t,itemSize:r,layout:i,width:g},$,V)=>{const re=$*r,ie=isHorizontal(i)?g:n,ae=Math.ceil((ie+V-re)/r);return Math.max(0,Math.min(t-1,$+ae-1))},initCache(){},clearCache:!0,validateProps(){}}),getItemFromCache$1=(n,t,r)=>{const{itemSize:i}=n,{items:g,lastVisitedIndex:$}=r;if(t>$){let V=0;if($>=0){const re=g[$];V=re.offset+re.size}for(let re=$+1;re<=t;re++){const ie=i(re);g[re]={offset:V,size:ie},V+=ie}r.lastVisitedIndex=t}return g[t]},findItem$1=(n,t,r)=>{const{items:i,lastVisitedIndex:g}=t;return(g>0?i[g].offset:0)>=r?bs$1(n,t,0,g,r):es$1(n,t,Math.max(0,g),r)},bs$1=(n,t,r,i,g)=>{for(;r<=i;){const $=r+Math.floor((i-r)/2),V=getItemFromCache$1(n,$,t).offset;if(V===g)return $;Vg&&(i=$-1)}return Math.max(0,r-1)},es$1=(n,t,r,i)=>{const{total:g}=n;let $=1;for(;r{let g=0;if(i>=n&&(i=n-1),i>=0){const re=t[i];g=re.offset+re.size}const V=(n-i-1)*r;return g+V},DynamicSizeList=createList({name:"ElDynamicSizeList",getItemOffset:(n,t,r)=>getItemFromCache$1(n,t,r).offset,getItemSize:(n,t,{items:r})=>r[t].size,getEstimatedTotalSize,getOffset:(n,t,r,i,g)=>{const{height:$,layout:V,width:re}=n,ie=isHorizontal(V)?re:$,ae=getItemFromCache$1(n,t,g),oe=getEstimatedTotalSize(n,g),le=Math.max(0,Math.min(oe-ie,ae.offset)),ue=Math.max(0,ae.offset-ie+ae.size);switch(r===SMART_ALIGNMENT&&(i>=ue-ie&&i<=le+ie?r=AUTO_ALIGNMENT:r=CENTERED_ALIGNMENT),r){case START_ALIGNMENT:return le;case END_ALIGNMENT:return ue;case CENTERED_ALIGNMENT:return Math.round(ue+(le-ue)/2);case AUTO_ALIGNMENT:default:return i>=ue&&i<=le?i:ifindItem$1(n,r,t),getStopIndexForStartIndex:(n,t,r,i)=>{const{height:g,total:$,layout:V,width:re}=n,ie=isHorizontal(V)?re:g,ae=getItemFromCache$1(n,t,i),oe=r+ie;let le=ae.offset+ae.size,ue=t;for(;ue<$-1&&le{var $,V;r.lastVisitedIndex=Math.min(r.lastVisitedIndex,i-1),($=t.exposed)==null||$.getItemStyleCache(-1),g&&((V=t.proxy)==null||V.$forceUpdate())},r},clearCache:!1,validateProps:({itemSize:n})=>{}}),props={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var ElSelectMenu=defineComponent({name:"ElSelectDropdown",props,setup(n,{slots:t,expose:r}){const i=inject(selectV2InjectionKey),g=useNamespace("select"),{getLabel:$,getValue:V,getDisabled:re}=useProps(i.props),ie=ref([]),ae=ref(),oe=computed(()=>n.data.length);watch(()=>oe.value,()=>{var Pt,qe;(qe=(Pt=i.tooltipRef.value)==null?void 0:Pt.updatePopper)==null||qe.call(Pt)});const le=computed(()=>isUndefined$1(i.props.estimatedOptionHeight)),ue=computed(()=>le.value?{itemSize:i.props.itemHeight}:{estimatedSize:i.props.estimatedOptionHeight,itemSize:Pt=>ie.value[Pt]}),de=(Pt=[],qe)=>{const{props:{valueKey:Et}}=i;return isObject$6(qe)?Pt&&Pt.some(kt=>toRaw(get$1(kt,Et))===get$1(qe,Et)):Pt.includes(qe)},he=(Pt,qe)=>{if(isObject$6(qe)){const{valueKey:Et}=i.props;return get$1(Pt,Et)===get$1(qe,Et)}else return Pt===qe},pe=(Pt,qe)=>i.props.multiple?de(Pt,V(qe)):he(Pt,V(qe)),_e=(Pt,qe)=>{const{disabled:Et,multiple:kt,multipleLimit:At}=i.props;return Et||!qe&&(kt?At>0&&Pt.length>=At:!1)},Ce=Pt=>n.hoveringIndex===Pt;r({listRef:ae,isSized:le,isItemDisabled:_e,isItemHovering:Ce,isItemSelected:pe,scrollToItem:Pt=>{const qe=ae.value;qe&&qe.scrollToItem(Pt)},resetScrollTop:()=>{const Pt=ae.value;Pt&&Pt.resetScrollTop()}});const Oe=Pt=>{const{index:qe,data:Et,style:kt}=Pt,At=unref(le),{itemSize:Dt,estimatedSize:Lt}=unref(ue),{modelValue:jt}=i.props,{onSelect:hn,onHover:vn}=i,_n=Et[qe];if(_n.type==="Group")return createVNode$1(GroupItem,{item:_n,style:kt,height:At?Dt:Lt},null);const wn=pe(jt,_n),bn=_e(jt,wn),Cn=Ce(qe);return createVNode$1(OptionItem,mergeProps(Pt,{selected:wn,disabled:re(_n)||bn,created:!!_n.created,hovering:Cn,item:_n,onSelect:hn,onHover:vn}),{default:Sn=>{var Tn;return((Tn=t.default)==null?void 0:Tn.call(t,Sn))||createVNode$1("span",null,[$(_n)])}})},{onKeyboardNavigate:$e,onKeyboardSelect:Ve}=i,Ue=()=>{$e("forward")},Fe=()=>{$e("backward")},ze=Pt=>{const qe=getEventCode(Pt),{tab:Et,esc:kt,down:At,up:Dt,enter:Lt,numpadEnter:jt}=EVENT_CODE;switch([kt,At,Dt,Lt,jt].includes(qe)&&(Pt.preventDefault(),Pt.stopPropagation()),qe){case Et:case kt:break;case At:Ue();break;case Dt:Fe();break;case Lt:case jt:Ve();break}};return()=>{var Pt,qe,Et,kt;const{data:At,width:Dt}=n,{height:Lt,multiple:jt,scrollbarAlwaysOn:hn}=i.props,vn=computed(()=>isIOS?!0:hn),_n=unref(le)?FixedSizeList:DynamicSizeList;return createVNode$1("div",{class:[g.b("dropdown"),g.is("multiple",jt)],style:{width:`${Dt}px`}},[(Pt=t.header)==null?void 0:Pt.call(t),((qe=t.loading)==null?void 0:qe.call(t))||((Et=t.empty)==null?void 0:Et.call(t))||createVNode$1(_n,mergeProps({ref:ae},unref(ue),{className:g.be("dropdown","list"),scrollbarAlwaysOn:vn.value,data:At,height:Lt,width:Dt,total:At.length,innerElement:"ul",innerProps:{id:n.id,role:"listbox","aria-label":n.ariaLabel,"aria-orientation":"vertical"},onKeydown:ze}),{default:wn=>createVNode$1(Oe,wn,null)}),(kt=t.footer)==null?void 0:kt.call(t)])}}});function useAllowCreate(n,t){const{aliasProps:r,getLabel:i,getValue:g}=useProps(n),$=ref(0),V=ref(),re=computed(()=>n.allowCreate&&n.filterable);watch(()=>n.options,de=>{const he=new Set(de.map(pe=>i(pe)));t.createdOptions=t.createdOptions.filter(pe=>!he.has(i(pe)))});function ie(de){const he=pe=>i(pe)===de;return n.options&&n.options.some(he)||t.createdOptions.some(he)}function ae(de){re.value&&(n.multiple&&de.created?$.value++:V.value=de)}function oe(de){if(re.value)if(de&&de.length>0){if(ie(de)){t.createdOptions=t.createdOptions.filter(pe=>i(pe)!==t.previousQuery);return}const he={[r.value.value]:de,[r.value.label]:de,created:!0,[r.value.disabled]:!1};t.createdOptions.length>=$.value?t.createdOptions[$.value]=he:t.createdOptions.push(he)}else if(n.multiple)t.createdOptions.length=$.value;else{const he=V.value;t.createdOptions.length=0,he&&he.created&&t.createdOptions.push(he)}}function le(de){if(!re.value||!de||!de.created||de.created&&n.reserveKeyword&&t.inputValue===i(de))return;const he=t.createdOptions.findIndex(pe=>g(pe)===g(de));~he&&(t.createdOptions.splice(he,1),$.value--)}function ue(){re.value&&(t.createdOptions.length=0,$.value=0)}return{createNewOption:oe,removeNewOption:le,selectNewOption:ae,clearAllNewOption:ue}}const useSelect$1=(n,t)=>{const{t:r}=useLocale(),i=useSlots(),g=useNamespace("select"),$=useNamespace("input"),{form:V,formItem:re}=useFormItem(),{inputId:ie}=useFormItemInputId(n,{formItemContext:re}),{aliasProps:ae,getLabel:oe,getValue:le,getDisabled:ue,getOptions:de}=useProps(n),{valueOnClear:he,isEmptyValue:pe}=useEmptyValues(n),_e=reactive({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),Ce=ref(-1),xe=ref(!1),Ie=ref(),Ne=ref(),Oe=ref(),$e=ref(),Ve=ref(),Ue=ref(),Fe=ref(),ze=ref(),Pt=ref(),qe=ref(),{isComposing:Et,handleCompositionStart:kt,handleCompositionEnd:At,handleCompositionUpdate:Dt}=useComposition({afterComposition:Vn=>Rr(Vn)}),Lt=useFormDisabled(),{wrapperRef:jt,isFocused:hn,handleBlur:vn}=useFocusController(Ve,{disabled:Lt,afterFocus(){n.automaticDropdown&&!Cn.value&&(Cn.value=!0,_e.menuVisibleOnFocus=!0)},beforeBlur(Vn){var Kn,dr;return((Kn=Oe.value)==null?void 0:Kn.isFocusInsideContent(Vn))||((dr=$e.value)==null?void 0:dr.isFocusInsideContent(Vn))},afterBlur(){var Vn;Cn.value=!1,_e.menuVisibleOnFocus=!1,n.validateEvent&&((Vn=re==null?void 0:re.validate)==null||Vn.call(re,"blur").catch(Kn=>void 0))}}),_n=computed(()=>In("")),wn=computed(()=>n.loading?!1:n.options.length>0||_e.createdOptions.length>0),bn=ref([]),Cn=ref(!1),Sn=computed(()=>{var Vn;return(Vn=V==null?void 0:V.statusIcon)!=null?Vn:!1}),Tn=computed(()=>{const Vn=bn.value.length*n.itemHeight;return Vn>n.height?n.height:Vn}),En=computed(()=>n.multiple?isArray$5(n.modelValue)&&n.modelValue.length>0:!pe(n.modelValue)),kn=computed(()=>n.clearable&&!Lt.value&&En.value&&(hn.value||_e.inputHovering)),$n=computed(()=>n.remote&&n.filterable&&!n.remoteShowSuffix?"":n.suffixIcon),An=computed(()=>$n.value&&g.is("reverse",Cn.value)),xn=computed(()=>(re==null?void 0:re.validateState)||""),Ln=computed(()=>{if(xn.value)return ValidateComponentsMap[xn.value]}),Nn=computed(()=>n.remote?n.debounce:0),Pn=computed(()=>n.remote&&!_e.inputValue&&!wn.value),On=computed(()=>n.loading?n.loadingText||r("el.select.loading"):n.filterable&&_e.inputValue&&wn.value&&bn.value.length===0?n.noMatchText||r("el.select.noMatch"):wn.value?null:n.noDataText||r("el.select.noData")),Hn=computed(()=>n.filterable&&isFunction$4(n.filterMethod)),Xn=computed(()=>n.filterable&&n.remote&&isFunction$4(n.remoteMethod)),In=Vn=>{const Kn=new RegExp(escapeStringRegexp(Vn),"i"),dr=mr=>Hn.value||Xn.value?!0:Vn?Kn.test(oe(mr)||""):!0;return n.loading?[]:[..._e.createdOptions,...n.options].reduce((mr,br)=>{const Er=de(br);if(isArray$5(Er)){const xr=Er.filter(dr);xr.length>0&&mr.push({label:oe(br),type:"Group"},...xr)}else(n.remote||dr(br))&&mr.push(br);return mr},[])},or=()=>{bn.value=In(_e.inputValue)},Qn=computed(()=>{const Vn=new Map;return _n.value.forEach((Kn,dr)=>{Vn.set(_r(le(Kn)),{option:Kn,index:dr})}),Vn}),Zn=computed(()=>{const Vn=new Map;return bn.value.forEach((Kn,dr)=>{Vn.set(_r(le(Kn)),{option:Kn,index:dr})}),Vn}),Gn=computed(()=>bn.value.every(Vn=>ue(Vn))),Rn=useFormSize(),Mn=computed(()=>Rn.value==="small"?"small":"default"),Bn=()=>{var Vn;if(isNumber$2(n.fitInputWidth)){Ce.value=n.fitInputWidth;return}const Kn=((Vn=Ie.value)==null?void 0:Vn.offsetWidth)||200;!n.fitInputWidth&&wn.value?nextTick(()=>{Ce.value=Math.max(Kn,qn())}):Ce.value=Kn},qn=()=>{var Vn,Kn;const mr=document.createElement("canvas").getContext("2d"),br=g.be("dropdown","item"),xr=(((Kn=(Vn=ze.value)==null?void 0:Vn.listRef)==null?void 0:Kn.innerRef)||document).querySelector(`.${br}`);if(xr===null||mr===null)return 0;const Nr=getComputedStyle(xr),Ar=Number.parseFloat(Nr.paddingLeft)+Number.parseFloat(Nr.paddingRight);return mr.font=`bold ${Nr.font.replace(new RegExp(`\\b${Nr.fontWeight}\\b`),"")}`,bn.value.reduce((Ir,Vr)=>{const Fr=mr.measureText(oe(Vr));return Math.max(Fr.width,Ir)},0)+Ar},zn=()=>{if(!Ne.value)return 0;const Vn=window.getComputedStyle(Ne.value);return Number.parseFloat(Vn.gap||"6px")},jn=computed(()=>{const Vn=zn(),Kn=n.filterable?Vn+MINIMUM_INPUT_WIDTH:0;return{maxWidth:`${qe.value&&n.maxCollapseTags===1?_e.selectionWidth-_e.collapseItemWidth-Vn-Kn:_e.selectionWidth-Kn}px`}}),tr=computed(()=>({maxWidth:`${_e.selectionWidth}px`})),hr=computed(()=>isArray$5(n.modelValue)?n.modelValue.length===0&&!_e.inputValue:n.filterable?!_e.inputValue:!0),ir=computed(()=>{var Vn;const Kn=(Vn=n.placeholder)!=null?Vn:r("el.select.placeholder");return n.multiple||!En.value?Kn:_e.selectedLabel}),pr=computed(()=>{var Vn,Kn;return(Kn=(Vn=Oe.value)==null?void 0:Vn.popperRef)==null?void 0:Kn.contentRef}),rr=computed(()=>{if(n.multiple){const Vn=n.modelValue.length;if(Vn>0&&Zn.value.has(n.modelValue[Vn-1])){const{index:Kn}=Zn.value.get(n.modelValue[Vn-1]);return Kn}}else if(!pe(n.modelValue)&&Zn.value.has(n.modelValue)){const{index:Vn}=Zn.value.get(n.modelValue);return Vn}return-1}),lr=computed({get(){return Cn.value&&(n.loading||!Pn.value||n.remote&&!!i.empty)&&(!xe.value||!isEmpty(_e.previousQuery))},set(Vn){Cn.value=Vn}}),Yn=computed(()=>n.multiple?n.collapseTags?_e.cachedOptions.slice(0,n.maxCollapseTags):_e.cachedOptions:[]),er=computed(()=>n.multiple?n.collapseTags?_e.cachedOptions.slice(n.maxCollapseTags):[]:[]),{createNewOption:Fn,removeNewOption:cr,selectNewOption:Un,clearAllNewOption:gr}=useAllowCreate(n,_e),vr=Vn=>{var Kn;Lt.value||n.filterable&&Cn.value&&Vn&&!((Kn=Fe.value)!=null&&Kn.contains(Vn.target))||(_e.menuVisibleOnFocus?_e.menuVisibleOnFocus=!1:Cn.value=!Cn.value)},yr=()=>{_e.inputValue.length>0&&!Cn.value&&(Cn.value=!0),Fn(_e.inputValue),nextTick(()=>{Jn(_e.inputValue)})},Wn=useDebounceFn(()=>{yr(),xe.value=!1},Nn),Jn=Vn=>{_e.previousQuery===Vn||Et.value||(_e.previousQuery=Vn,n.filterable&&isFunction$4(n.filterMethod)?n.filterMethod(Vn):n.filterable&&n.remote&&isFunction$4(n.remoteMethod)&&n.remoteMethod(Vn),n.defaultFirstOption&&(n.filterable||n.remote)&&bn.value.length?nextTick(sr):nextTick(Mr))},sr=()=>{const Vn=bn.value.filter(mr=>!mr.disabled&&mr.type!=="Group"),Kn=Vn.find(mr=>mr.created),dr=Vn[0];_e.hoveringIndex=fr(bn.value,Kn||dr)},Sr=Vn=>{isEqual$1(n.modelValue,Vn)||t(CHANGE_EVENT,Vn)},Tr=Vn=>{t(UPDATE_MODEL_EVENT,Vn),Sr(Vn),_e.previousValue=n.multiple?String(Vn):Vn,nextTick(()=>{if(n.multiple&&isArray$5(n.modelValue)){const Kn=_e.cachedOptions.slice(),dr=n.modelValue.map(mr=>Qr(mr,Kn));isEqual$1(_e.cachedOptions,dr)||(_e.cachedOptions=dr)}else nr(!0)})},fr=(Vn=[],Kn)=>{if(!isObject$6(Kn))return Vn.indexOf(Kn);const dr=n.valueKey;let mr=-1;return Vn.some((br,Er)=>get$1(br,dr)===get$1(Kn,dr)?(mr=Er,!0):!1),mr},_r=Vn=>isObject$6(Vn)?get$1(Vn,n.valueKey):Vn,Cr=()=>{Bn()},zr=()=>{_e.selectionWidth=Number.parseFloat(window.getComputedStyle(Ne.value).width)},Ur=()=>{_e.collapseItemWidth=qe.value.getBoundingClientRect().width},jr=()=>{var Vn,Kn;(Kn=(Vn=Oe.value)==null?void 0:Vn.updatePopper)==null||Kn.call(Vn)},ai=()=>{var Vn,Kn;(Kn=(Vn=$e.value)==null?void 0:Vn.updatePopper)==null||Kn.call(Vn)},ti=Vn=>{const Kn=le(Vn);if(n.multiple){let dr=n.modelValue.slice();const mr=fr(dr,Kn);mr>-1?(dr=[...dr.slice(0,mr),...dr.slice(mr+1)],_e.cachedOptions.splice(mr,1),cr(Vn)):(n.multipleLimit<=0||dr.length{let dr=n.modelValue.slice();const mr=fr(dr,le(Kn));mr>-1&&!Lt.value&&(dr=[...n.modelValue.slice(0,mr),...n.modelValue.slice(mr+1)],_e.cachedOptions.splice(mr,1),Tr(dr),t("remove-tag",le(Kn)),cr(Kn)),Vn.stopPropagation(),Wr()},Wr=()=>{var Vn;(Vn=Ve.value)==null||Vn.focus()},ii=()=>{var Vn;if(Cn.value){Cn.value=!1,nextTick(()=>{var Kn;return(Kn=Ve.value)==null?void 0:Kn.blur()});return}(Vn=Ve.value)==null||Vn.blur()},si=()=>{_e.inputValue.length>0?_e.inputValue="":Cn.value=!1},li=Vn=>findLastIndex(Vn,Kn=>!_e.cachedOptions.some(dr=>le(dr)===Kn&&ue(dr))),ni=Vn=>{const Kn=getEventCode(Vn);if(n.multiple&&Kn!==EVENT_CODE.delete&&_e.inputValue.length===0){Vn.preventDefault();const dr=n.modelValue.slice(),mr=li(dr);if(mr<0)return;const br=dr[mr];dr.splice(mr,1);const Er=_e.cachedOptions[mr];_e.cachedOptions.splice(mr,1),cr(Er),Tr(dr),t("remove-tag",br)}},ci=()=>{let Vn;isArray$5(n.modelValue)?Vn=[]:Vn=he.value,_e.selectedLabel="",Cn.value=!1,Tr(Vn),t("clear"),gr(),Wr()},Jr=(Vn,Kn=void 0)=>{const dr=bn.value;if(!["forward","backward"].includes(Vn)||Lt.value||dr.length<=0||Gn.value||Et.value)return;if(!Cn.value)return vr();isUndefined$1(Kn)&&(Kn=_e.hoveringIndex);let mr=-1;Vn==="forward"?(mr=Kn+1,mr>=dr.length&&(mr=0)):Vn==="backward"&&(mr=Kn-1,(mr<0||mr>=dr.length)&&(mr=dr.length-1));const br=dr[mr];if(ue(br)||br.type==="Group")return Jr(Vn,mr);_e.hoveringIndex=mr,Hr(mr)},ar=()=>{if(Cn.value)~_e.hoveringIndex&&bn.value[_e.hoveringIndex]&&ti(bn.value[_e.hoveringIndex]);else return vr()},wr=Vn=>{_e.hoveringIndex=Vn??-1},Mr=()=>{if(!n.multiple)_e.hoveringIndex=bn.value.findIndex(Vn=>_r(le(Vn))===_r(n.modelValue));else{const Vn=n.modelValue.length;if(Vn>0){const Kn=n.modelValue[Vn-1];_e.hoveringIndex=bn.value.findIndex(dr=>_r(Kn)===_r(le(dr)))}else _e.hoveringIndex=-1}},Rr=Vn=>{if(_e.inputValue=Vn.target.value,n.remote)xe.value=!0,Wn();else return yr()},Dr=Vn=>{if(Cn.value=!1,hn.value){const Kn=new FocusEvent("blur",Vn);vn(Kn)}},Gr=()=>(_e.isBeforeHide=!1,nextTick(()=>{~rr.value&&Hr(rr.value)})),Hr=Vn=>{ze.value.scrollToItem(Vn)},Qr=(Vn,Kn)=>{const dr=_r(Vn);if(Qn.value.has(dr)){const{option:mr}=Qn.value.get(dr);return mr}if(Kn&&Kn.length){const mr=Kn.find(br=>_r(le(br))===dr);if(mr)return mr}return{[ae.value.value]:Vn,[ae.value.label]:Vn}},Dn=Vn=>{var Kn,dr;return(dr=(Kn=Qn.value.get(le(Vn)))==null?void 0:Kn.index)!=null?dr:-1},nr=(Vn=!1)=>{if(n.multiple)if(n.modelValue.length>0){const Kn=_e.cachedOptions.slice();_e.cachedOptions.length=0,_e.previousValue=n.modelValue.toString();for(const dr of n.modelValue){const mr=Qr(dr,Kn);_e.cachedOptions.push(mr)}}else _e.cachedOptions=[],_e.previousValue=void 0;else if(En.value){_e.previousValue=n.modelValue;const Kn=bn.value,dr=Kn.findIndex(mr=>_r(le(mr))===_r(n.modelValue));~dr?_e.selectedLabel=oe(Kn[dr]):(!_e.selectedLabel||Vn)&&(_e.selectedLabel=_r(n.modelValue))}else _e.selectedLabel="",_e.previousValue=void 0;gr(),Bn()};watch(()=>n.fitInputWidth,()=>{Bn()}),watch(Cn,Vn=>{Vn?(n.persistent||Bn(),Jn("")):(_e.inputValue="",_e.previousQuery=null,_e.isBeforeHide=!0,Fn(""))}),watch(()=>n.modelValue,(Vn,Kn)=>{var dr;(!Vn||isArray$5(Vn)&&Vn.length===0||n.multiple&&!isEqual$1(Vn.toString(),_e.previousValue)||!n.multiple&&_r(Vn)!==_r(_e.previousValue))&&nr(!0),!isEqual$1(Vn,Kn)&&n.validateEvent&&((dr=re==null?void 0:re.validate)==null||dr.call(re,"change").catch(br=>void 0))},{deep:!0}),watch(()=>n.options,()=>{const Vn=Ve.value;(!Vn||Vn&&document.activeElement!==Vn)&&nr()},{deep:!0,flush:"post"}),watch(()=>bn.value,()=>(Bn(),ze.value&&nextTick(ze.value.resetScrollTop))),watchEffect(()=>{_e.isBeforeHide||or()}),watchEffect(()=>{const{valueKey:Vn,options:Kn}=n,dr=new Map;for(const mr of Kn){const br=le(mr);let Er=br;if(isObject$6(Er)&&(Er=get$1(br,Vn)),dr.get(Er))break;dr.set(Er,!0)}}),onMounted(()=>{nr()}),useResizeObserver(Ie,Cr),useResizeObserver(Ne,zr),useResizeObserver(jt,jr),useResizeObserver(Pt,ai),useResizeObserver(qe,Ur);let ur;return watch(()=>lr.value,Vn=>{Vn?ur=useResizeObserver(ze,jr).stop:(ur==null||ur(),ur=void 0),t("visible-change",Vn)}),{inputId:ie,collapseTagSize:Mn,currentPlaceholder:ir,expanded:Cn,emptyText:On,popupHeight:Tn,debounce:Nn,allOptions:_n,allOptionsValueMap:Qn,filteredOptions:bn,iconComponent:$n,iconReverse:An,tagStyle:jn,collapseTagStyle:tr,popperSize:Ce,dropdownMenuVisible:lr,hasModelValue:En,shouldShowPlaceholder:hr,selectDisabled:Lt,selectSize:Rn,needStatusIcon:Sn,showClearBtn:kn,states:_e,isFocused:hn,nsSelect:g,nsInput:$,inputRef:Ve,menuRef:ze,tagMenuRef:Pt,tooltipRef:Oe,tagTooltipRef:$e,selectRef:Ie,wrapperRef:jt,selectionRef:Ne,prefixRef:Ue,suffixRef:Fe,collapseItemRef:qe,popperRef:pr,validateState:xn,validateIcon:Ln,showTagList:Yn,collapseTagList:er,debouncedOnInputChange:Wn,deleteTag:ri,getLabel:oe,getValue:le,getDisabled:ue,getValueKey:_r,getIndex:Dn,handleClear:ci,handleClickOutside:Dr,handleDel:ni,handleEsc:si,focus:Wr,blur:ii,handleMenuEnter:Gr,handleResize:Cr,resetSelectionWidth:zr,updateTooltip:jr,updateTagTooltip:ai,updateOptions:or,toggleMenu:vr,scrollTo:Hr,onInput:Rr,onKeyboardNavigate:Jr,onKeyboardSelect:ar,onSelect:ti,onHover:wr,handleCompositionStart:kt,handleCompositionEnd:At,handleCompositionUpdate:Dt}},_sfc_main$1c=defineComponent({name:"ElSelectV2",components:{ElSelectMenu,ElTag,ElTooltip,ElIcon},directives:{ClickOutside},props:selectV2Props,emits:selectV2Emits,setup(n,{emit:t}){const r=computed(()=>{const{modelValue:ie,multiple:ae}=n,oe=ae?[]:void 0;return isArray$5(ie)?ae?ie:oe:ae?oe:ie}),i=useSelect$1(reactive({...toRefs(n),modelValue:r}),t),{calculatorRef:g,inputStyle:$}=useCalcInputWidth(),V=useId();provide(selectV2InjectionKey,{props:reactive({...toRefs(n),height:i.popupHeight,modelValue:r}),expanded:i.expanded,tooltipRef:i.tooltipRef,contentId:V,onSelect:i.onSelect,onHover:i.onHover,onKeyboardNavigate:i.onKeyboardNavigate,onKeyboardSelect:i.onKeyboardSelect});const re=computed(()=>n.multiple?i.states.cachedOptions.map(ie=>i.getLabel(ie)):i.states.selectedLabel);return{...i,modelValue:r,selectedLabel:re,calculatorRef:g,inputStyle:$,contentId:V,BORDER_HORIZONTAL_WIDTH}}}),_hoisted_1$K=["id","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],_hoisted_2$w=["textContent"],_hoisted_3$d={key:1};function _sfc_render$5(n,t,r,i,g,$){const V=resolveComponent("el-tag"),re=resolveComponent("el-tooltip"),ie=resolveComponent("el-icon"),ae=resolveComponent("el-select-menu"),oe=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectRef",class:normalizeClass([n.nsSelect.b(),n.nsSelect.m(n.selectSize)]),onMouseenter:t[15]||(t[15]=le=>n.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=le=>n.states.inputHovering=!1)},[createVNode$1(re,{ref:"tooltipRef",visible:n.dropdownMenuVisible,teleported:n.teleported,"popper-class":[n.nsSelect.e("popper"),n.popperClass],"popper-style":n.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":n.popperOptions,"fallback-placements":n.fallbackPlacements,effect:n.effect,placement:n.placement,pure:"",transition:`${n.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:n.persistent,"append-to":n.appendTo,"show-arrow":n.showArrow,offset:n.offset,onBeforeShow:n.handleMenuEnter,onHide:t[14]||(t[14]=le=>n.states.isBeforeHide=!1)},{default:withCtx(()=>{var le,ue;return[createBaseVNode("div",{ref:"wrapperRef",class:normalizeClass([n.nsSelect.e("wrapper"),n.nsSelect.is("focused",n.isFocused),n.nsSelect.is("hovering",n.states.inputHovering),n.nsSelect.is("filterable",n.filterable),n.nsSelect.is("disabled",n.selectDisabled)]),onClick:t[11]||(t[11]=withModifiers((...de)=>n.toggleMenu&&n.toggleMenu(...de),["prevent"]))},[n.$slots.prefix?(openBlock(),createElementBlock("div",{key:0,ref:"prefixRef",class:normalizeClass(n.nsSelect.e("prefix"))},[renderSlot(n.$slots,"prefix")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"selectionRef",class:normalizeClass([n.nsSelect.e("selection"),n.nsSelect.is("near",n.multiple&&!n.$slots.prefix&&!!n.modelValue.length)])},[n.multiple?renderSlot(n.$slots,"tag",{key:0,data:n.states.cachedOptions,deleteTag:n.deleteTag,selectDisabled:n.selectDisabled},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.showTagList,de=>(openBlock(),createElementBlock("div",{key:n.getValueKey(n.getValue(de)),class:normalizeClass(n.nsSelect.e("selected-item"))},[createVNode$1(V,{closable:!n.selectDisabled&&!n.getDisabled(de),size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",style:normalizeStyle$1(n.tagStyle),onClose:he=>n.deleteTag(he,de)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(n.nsSelect.e("tags-text"))},[renderSlot(n.$slots,"label",{index:n.getIndex(de),label:n.getLabel(de),value:n.getValue(de)},()=>[createTextVNode(toDisplayString(n.getLabel(de)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),n.collapseTags&&n.modelValue.length>n.maxCollapseTags?(openBlock(),createBlock(re,{key:0,ref:"tagTooltipRef",disabled:n.dropdownMenuVisible||!n.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:n.effect,placement:"bottom","popper-class":n.popperClass,"popper-style":n.popperStyle,teleported:n.teleported,"popper-options":n.popperOptions},{default:withCtx(()=>[createBaseVNode("div",{ref:"collapseItemRef",class:normalizeClass(n.nsSelect.e("selected-item"))},[createVNode$1(V,{closable:!1,size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,style:normalizeStyle$1(n.collapseTagStyle),"disable-transitions":""},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(n.nsSelect.e("tags-text"))}," + "+toDisplayString(n.modelValue.length-n.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:withCtx(()=>[createBaseVNode("div",{ref:"tagMenuRef",class:normalizeClass(n.nsSelect.e("selection"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.collapseTagList,de=>(openBlock(),createElementBlock("div",{key:n.getValueKey(n.getValue(de)),class:normalizeClass(n.nsSelect.e("selected-item"))},[createVNode$1(V,{class:"in-tooltip",closable:!n.selectDisabled&&!n.getDisabled(de),size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",onClose:he=>n.deleteTag(he,de)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(n.nsSelect.e("tags-text"))},[renderSlot(n.$slots,"label",{index:n.getIndex(de),label:n.getLabel(de),value:n.getValue(de)},()=>[createTextVNode(toDisplayString(n.getLabel(de)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported","popper-options"])):createCommentVNode("v-if",!0)]):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([n.nsSelect.e("selected-item"),n.nsSelect.e("input-wrapper"),n.nsSelect.is("hidden",!n.filterable||n.selectDisabled)])},[withDirectives(createBaseVNode("input",{id:n.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=de=>n.states.inputValue=de),style:normalizeStyle$1(n.inputStyle),autocomplete:n.autocomplete,tabindex:n.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":n.expanded,"aria-label":n.ariaLabel,class:normalizeClass([n.nsSelect.e("input"),n.nsSelect.is(n.selectSize)]),disabled:n.selectDisabled,role:"combobox","aria-controls":n.contentId,"aria-activedescendant":n.states.hoveringIndex>=0?`${n.contentId}-${n.states.hoveringIndex}`:"",readonly:!n.filterable,spellcheck:"false",type:"text",name:n.name,onInput:t[1]||(t[1]=(...de)=>n.onInput&&n.onInput(...de)),onCompositionstart:t[2]||(t[2]=(...de)=>n.handleCompositionStart&&n.handleCompositionStart(...de)),onCompositionupdate:t[3]||(t[3]=(...de)=>n.handleCompositionUpdate&&n.handleCompositionUpdate(...de)),onCompositionend:t[4]||(t[4]=(...de)=>n.handleCompositionEnd&&n.handleCompositionEnd(...de)),onKeydown:[t[5]||(t[5]=withKeys(withModifiers(de=>n.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[6]||(t[6]=withKeys(withModifiers(de=>n.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[7]||(t[7]=withKeys(withModifiers((...de)=>n.onKeyboardSelect&&n.onKeyboardSelect(...de),["stop","prevent"]),["enter"])),t[8]||(t[8]=withKeys(withModifiers((...de)=>n.handleEsc&&n.handleEsc(...de),["stop","prevent"]),["esc"])),t[9]||(t[9]=withKeys(withModifiers((...de)=>n.handleDel&&n.handleDel(...de),["stop"]),["delete"]))],onClick:t[10]||(t[10]=withModifiers((...de)=>n.toggleMenu&&n.toggleMenu(...de),["stop"]))},null,46,_hoisted_1$K),[[vModelText,n.states.inputValue]]),n.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass(n.nsSelect.e("input-calculator")),textContent:toDisplayString(n.states.inputValue)},null,10,_hoisted_2$w)):createCommentVNode("v-if",!0)],2),n.shouldShowPlaceholder?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([n.nsSelect.e("selected-item"),n.nsSelect.e("placeholder"),n.nsSelect.is("transparent",!n.hasModelValue||n.expanded&&!n.states.inputValue)])},[n.hasModelValue?renderSlot(n.$slots,"label",{key:0,index:(ue=(le=n.allOptionsValueMap.get(n.modelValue))==null?void 0:le.index)!=null?ue:-1,label:n.currentPlaceholder,value:n.modelValue},()=>[createBaseVNode("span",null,toDisplayString(n.currentPlaceholder),1)]):(openBlock(),createElementBlock("span",_hoisted_3$d,toDisplayString(n.currentPlaceholder),1))],2)):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{ref:"suffixRef",class:normalizeClass(n.nsSelect.e("suffix"))},[n.iconComponent?withDirectives((openBlock(),createBlock(ie,{key:0,class:normalizeClass([n.nsSelect.e("caret"),n.nsInput.e("icon"),n.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.iconComponent)))]),_:1},8,["class"])),[[vShow,!n.showClearBtn]]):createCommentVNode("v-if",!0),n.showClearBtn&&n.clearIcon?(openBlock(),createBlock(ie,{key:1,class:normalizeClass([n.nsSelect.e("caret"),n.nsInput.e("icon"),n.nsSelect.e("clear")]),onClick:withModifiers(n.handleClear,["prevent","stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),n.validateState&&n.validateIcon&&n.needStatusIcon?(openBlock(),createBlock(ie,{key:2,class:normalizeClass([n.nsInput.e("icon"),n.nsInput.e("validateIcon"),n.nsInput.is("loading",n.validateState==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.validateIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)]}),content:withCtx(()=>[createVNode$1(ae,{id:n.contentId,ref:"menuRef",data:n.filteredOptions,width:n.popperSize-n.BORDER_HORIZONTAL_WIDTH,"hovering-index":n.states.hoveringIndex,"scrollbar-always-on":n.scrollbarAlwaysOn,"aria-label":n.ariaLabel},createSlots({default:withCtx(le=>[renderSlot(n.$slots,"default",normalizeProps(guardReactiveProps(le)))]),_:2},[n.$slots.header?{name:"header",fn:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(n.nsSelect.be("dropdown","header")),onClick:t[12]||(t[12]=withModifiers(()=>{},["stop"]))},[renderSlot(n.$slots,"header")],2)]),key:"0"}:void 0,n.$slots.loading&&n.loading?{name:"loading",fn:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(n.nsSelect.be("dropdown","loading"))},[renderSlot(n.$slots,"loading")],2)]),key:"1"}:n.loading||n.filteredOptions.length===0?{name:"empty",fn:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(n.nsSelect.be("dropdown","empty"))},[renderSlot(n.$slots,"empty",{},()=>[createBaseVNode("span",null,toDisplayString(n.emptyText),1)])],2)]),key:"2"}:void 0,n.$slots.footer?{name:"footer",fn:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(n.nsSelect.be("dropdown","footer")),onClick:t[13]||(t[13]=withModifiers(()=>{},["stop"]))},[renderSlot(n.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[oe,n.handleClickOutside,n.popperRef]])}var Select=_export_sfc(_sfc_main$1c,[["render",_sfc_render$5],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);const ElSelectV2=withInstall(Select),skeletonProps=buildProps({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:definePropType([Number,Object])}}),skeletonItemProps=buildProps({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),_sfc_main$1b=defineComponent({name:"ElSkeletonItem",__name:"skeleton-item",props:skeletonItemProps,setup(n){const t=useNamespace("skeleton");return(r,i)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(t).e("item"),unref(t).e(r.variant)])},[r.variant==="image"?(openBlock(),createBlock(unref(picture_filled_default),{key:0})):createCommentVNode("v-if",!0)],2))}});var SkeletonItem=_export_sfc(_sfc_main$1b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const useThrottleRender=(n,t=0)=>{if(t===0)return n;const r=isObject$6(t)&&!!t.initVal,i=ref(r);let g=null;const $=re=>{if(isUndefined$1(re)){i.value=n.value;return}g&&clearTimeout(g),g=setTimeout(()=>{i.value=n.value},re)},V=re=>{re==="leading"?isNumber$2(t)?$(t):$(t.leading):isObject$6(t)?$(t.trailing):i.value=!1};return onMounted(()=>V("leading")),watch(()=>n.value,re=>{V(re?"leading":"trailing")}),i},_sfc_main$1a=defineComponent({name:"ElSkeleton",__name:"skeleton",props:skeletonProps,setup(n,{expose:t}){const r=n,i=useNamespace("skeleton"),g=useThrottleRender(toRef$1(r,"loading"),r.throttle);return t({uiLoading:g}),($,V)=>unref(g)?(openBlock(),createElementBlock("div",mergeProps({key:0,class:[unref(i).b(),unref(i).is("animated",$.animated)]},$.$attrs),[(openBlock(!0),createElementBlock(Fragment,null,renderList($.count,re=>(openBlock(),createElementBlock(Fragment,{key:re},[unref(g)?renderSlot($.$slots,"template",{key:re},()=>[createVNode$1(SkeletonItem,{class:normalizeClass(unref(i).is("first")),variant:"p"},null,8,["class"]),(openBlock(!0),createElementBlock(Fragment,null,renderList($.rows,ie=>(openBlock(),createBlock(SkeletonItem,{key:ie,class:normalizeClass([unref(i).e("paragraph"),unref(i).is("last",ie===$.rows&&$.rows>1)]),variant:"p"},null,8,["class"]))),128))]):createCommentVNode("v-if",!0)],64))),128))],16)):renderSlot($.$slots,"default",normalizeProps(mergeProps({key:1},$.$attrs)))}});var Skeleton$1=_export_sfc(_sfc_main$1a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const ElSkeleton=withInstall(Skeleton$1,{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:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,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},persistent:{type:Boolean,default:!0},...useAriaProps(["ariaLabel"])}),isValidValue$1=n=>isNumber$2(n)||isArray$5(n)&&n.every(isNumber$2),sliderEmits={[UPDATE_MODEL_EVENT]:isValidValue$1,[INPUT_EVENT]:isValidValue$1,[CHANGE_EVENT]:isValidValue$1},sliderButtonProps=buildProps({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ee,default:"top"}}),sliderButtonEmits={[UPDATE_MODEL_EVENT]:n=>isNumber$2(n)},useTooltip=(n,t,r)=>{const i=ref(),g=ref(!1),$=computed(()=>t.value instanceof Function),V=computed(()=>$.value&&t.value(n.modelValue)||n.modelValue),re=debounce(()=>{r.value&&(g.value=!0)},50),ie=debounce(()=>{r.value&&(g.value=!1)},50);return{tooltip:i,tooltipVisible:g,formatValue:V,displayTooltip:re,hideTooltip:ie}},useSliderButton=(n,t,r)=>{const{disabled:i,min:g,max:$,step:V,showTooltip:re,persistent:ie,precision:ae,sliderSize:oe,formatTooltip:le,emitChange:ue,resetSize:de,updateDragging:he}=inject(sliderContextKey),{tooltip:pe,tooltipVisible:_e,formatValue:Ce,displayTooltip:xe,hideTooltip:Ie}=useTooltip(n,le,re),Ne=ref(),Oe=computed(()=>`${(n.modelValue-g.value)/($.value-g.value)*100}%`),$e=computed(()=>n.vertical?{bottom:Oe.value}:{left:Oe.value}),Ve=()=>{t.hovering=!0,xe()},Ue=()=>{t.hovering=!1,t.dragging||Ie()},Fe=bn=>{i.value||(bn.preventDefault(),hn(bn),window.addEventListener("mousemove",vn),window.addEventListener("touchmove",vn),window.addEventListener("mouseup",_n),window.addEventListener("touchend",_n),window.addEventListener("contextmenu",_n),Ne.value.focus())},ze=bn=>{i.value||(t.newPosition=Number.parseFloat(Oe.value)+bn/($.value-g.value)*100,wn(t.newPosition),ue())},Pt=()=>{ze(-V.value)},qe=()=>{ze(V.value)},Et=()=>{ze(-V.value*4)},kt=()=>{ze(V.value*4)},At=()=>{i.value||(wn(0),ue())},Dt=()=>{i.value||(wn(100),ue())},Lt=bn=>{const Cn=getEventCode(bn);let Sn=!0;switch(Cn){case EVENT_CODE.left:case EVENT_CODE.down:Pt();break;case EVENT_CODE.right:case EVENT_CODE.up:qe();break;case EVENT_CODE.home:At();break;case EVENT_CODE.end:Dt();break;case EVENT_CODE.pageDown:Et();break;case EVENT_CODE.pageUp:kt();break;default:Sn=!1;break}Sn&&bn.preventDefault()},jt=bn=>{let Cn,Sn;return bn.type.startsWith("touch")?(Sn=bn.touches[0].clientY,Cn=bn.touches[0].clientX):(Sn=bn.clientY,Cn=bn.clientX),{clientX:Cn,clientY:Sn}},hn=bn=>{t.dragging=!0,t.isClick=!0;const{clientX:Cn,clientY:Sn}=jt(bn);n.vertical?t.startY=Sn:t.startX=Cn,t.startPosition=Number.parseFloat(Oe.value),t.newPosition=t.startPosition},vn=bn=>{if(t.dragging){t.isClick=!1,xe(),de();let Cn;const{clientX:Sn,clientY:Tn}=jt(bn);n.vertical?(t.currentY=Tn,Cn=(t.startY-t.currentY)/oe.value*100):(t.currentX=Sn,Cn=(t.currentX-t.startX)/oe.value*100),t.newPosition=t.startPosition+Cn,wn(t.newPosition)}},_n=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||Ie(),t.isClick||wn(t.newPosition),ue()},0),window.removeEventListener("mousemove",vn),window.removeEventListener("touchmove",vn),window.removeEventListener("mouseup",_n),window.removeEventListener("touchend",_n),window.removeEventListener("contextmenu",_n))},wn=async bn=>{if(bn===null||Number.isNaN(+bn))return;bn=clamp$3(bn,0,100);const Cn=Math.floor(($.value-g.value)/V.value),Sn=Cn*V.value/($.value-g.value)*100,Tn=Sn+(100-Sn)/2;let En;if(bnt.dragging,bn=>{he(bn)}),useEventListener(Ne,"touchstart",Fe,{passive:!1}),{disabled:i,button:Ne,tooltip:pe,tooltipVisible:_e,showTooltip:re,persistent:ie,wrapperStyle:$e,formatValue:Ce,handleMouseEnter:Ve,handleMouseLeave:Ue,onButtonDown:Fe,onKeyDown:Lt,setPosition:wn}},_hoisted_1$J=["tabindex"],_sfc_main$19=defineComponent({name:"ElSliderButton",__name:"button",props:sliderButtonProps,emits:sliderButtonEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useNamespace("slider"),V=reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:i.modelValue}),re=computed(()=>le.value?ue.value:!1),{disabled:ie,button:ae,tooltip:oe,showTooltip:le,persistent:ue,tooltipVisible:de,wrapperStyle:he,formatValue:pe,handleMouseEnter:_e,handleMouseLeave:Ce,onButtonDown:xe,onKeyDown:Ie,setPosition:Ne}=useSliderButton(i,V,g),{hovering:Oe,dragging:$e}=toRefs(V);return t({onButtonDown:xe,onKeyDown:Ie,setPosition:Ne,hovering:Oe,dragging:$e}),(Ve,Ue)=>(openBlock(),createElementBlock("div",{ref_key:"button",ref:ae,class:normalizeClass([unref($).e("button-wrapper"),{hover:unref(Oe),dragging:unref($e)}]),style:normalizeStyle$1(unref(he)),tabindex:unref(ie)?void 0:0,onMouseenter:Ue[0]||(Ue[0]=(...Fe)=>unref(_e)&&unref(_e)(...Fe)),onMouseleave:Ue[1]||(Ue[1]=(...Fe)=>unref(Ce)&&unref(Ce)(...Fe)),onMousedown:Ue[2]||(Ue[2]=(...Fe)=>unref(xe)&&unref(xe)(...Fe)),onFocus:Ue[3]||(Ue[3]=(...Fe)=>unref(_e)&&unref(_e)(...Fe)),onBlur:Ue[4]||(Ue[4]=(...Fe)=>unref(Ce)&&unref(Ce)(...Fe)),onKeydown:Ue[5]||(Ue[5]=(...Fe)=>unref(Ie)&&unref(Ie)(...Fe))},[createVNode$1(unref(ElTooltip),{ref_key:"tooltip",ref:oe,visible:unref(de),placement:Ve.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":Ve.tooltipClass,disabled:!unref(le),persistent:re.value},{content:withCtx(()=>[createBaseVNode("span",null,toDisplayString(unref(pe)),1)]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass([unref($).e("button"),{hover:unref(Oe),dragging:unref($e)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,_hoisted_1$J))}});var SliderButton=_export_sfc(_sfc_main$19,[["__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(n){const t=useNamespace("slider"),r=computed(()=>isString$2(n.mark)?n.mark:n.mark.label),i=computed(()=>isString$2(n.mark)?void 0:n.mark.style);return()=>h$1("div",{class:t.e("marks-text"),style:i.value},r.value)}});const useSlide=(n,t,r)=>{const{formItem:i}=useFormItem(),g=shallowRef(),$=ref(),V=ref(),re={firstButton:$,secondButton:V},ie=useFormDisabled(),ae=computed(()=>Math.min(t.firstValue,t.secondValue)),oe=computed(()=>Math.max(t.firstValue,t.secondValue)),le=computed(()=>n.range?`${100*(oe.value-ae.value)/(n.max-n.min)}%`:`${100*(t.firstValue-n.min)/(n.max-n.min)}%`),ue=computed(()=>n.range?`${100*(ae.value-n.min)/(n.max-n.min)}%`:"0%"),de=computed(()=>n.vertical?{height:n.height}:{}),he=computed(()=>n.vertical?{height:le.value,bottom:ue.value}:{width:le.value,left:ue.value}),pe=()=>{if(g.value){const Pt=g.value.getBoundingClientRect();t.sliderSize=Pt[n.vertical?"height":"width"]}},_e=Pt=>{const qe=n.min+Pt*(n.max-n.min)/100;if(!n.range)return $;let Et;return Math.abs(ae.value-qe)t.secondValue?"firstButton":"secondButton",re[Et]},Ce=Pt=>{const qe=_e(Pt);return qe.value.setPosition(Pt),qe},xe=Pt=>{t.firstValue=Pt??n.min,Ne(n.range?[ae.value,oe.value]:Pt??n.min)},Ie=Pt=>{t.secondValue=Pt,n.range&&Ne([ae.value,oe.value])},Ne=Pt=>{r(UPDATE_MODEL_EVENT,Pt),r(INPUT_EVENT,Pt)},Oe=async()=>{await nextTick(),r(CHANGE_EVENT,n.range?[ae.value,oe.value]:n.modelValue)},$e=Pt=>{var qe,Et,kt,At,Dt,Lt;if(ie.value||t.dragging)return;pe();let jt=0;if(n.vertical){const hn=(kt=(Et=(qe=Pt.touches)==null?void 0:qe.item(0))==null?void 0:Et.clientY)!=null?kt:Pt.clientY;jt=(g.value.getBoundingClientRect().bottom-hn)/t.sliderSize*100}else{const hn=(Lt=(Dt=(At=Pt.touches)==null?void 0:At.item(0))==null?void 0:Dt.clientX)!=null?Lt:Pt.clientX,vn=g.value.getBoundingClientRect().left;jt=(hn-vn)/t.sliderSize*100}if(!(jt<0||jt>100))return Ce(jt)};return{elFormItem:i,slider:g,firstButton:$,secondButton:V,sliderDisabled:ie,minValue:ae,maxValue:oe,runwayStyle:de,barStyle:he,resetSize:pe,setPosition:Ce,emitChange:Oe,onSliderWrapperPrevent:Pt=>{var qe,Et;((qe=re.firstButton.value)!=null&&qe.dragging||(Et=re.secondButton.value)!=null&&Et.dragging)&&Pt.preventDefault()},onSliderClick:Pt=>{$e(Pt)&&Oe()},onSliderDown:async Pt=>{const qe=$e(Pt);qe&&(await nextTick(),qe.value.onButtonDown(Pt))},onSliderMarkerDown:Pt=>{if(ie.value||t.dragging)return;Ce(Pt)&&Oe()},setFirstValue:xe,setSecondValue:Ie}},useStops=(n,t,r,i)=>({stops:computed(()=>{if(!n.showStops||n.min>n.max)return[];if(n.step===0)return[];const V=Math.ceil((n.max-n.min)/n.step),re=100*n.step/(n.max-n.min),ie=Array.from({length:V-1}).map((ae,oe)=>(oe+1)*re);return n.range?ie.filter(ae=>ae<100*(r.value-n.min)/(n.max-n.min)||ae>100*(i.value-n.min)/(n.max-n.min)):ie.filter(ae=>ae>100*(t.firstValue-n.min)/(n.max-n.min))}),getStopStyle:V=>n.vertical?{bottom:`${V}%`}:{left:`${V}%`}}),useMarks=n=>computed(()=>n.marks?Object.keys(n.marks).map(Number.parseFloat).sort((r,i)=>r-i).filter(r=>r<=n.max&&r>=n.min).map(r=>({point:r,position:(r-n.min)*100/(n.max-n.min),mark:n.marks[r]})):[]),useWatch=(n,t,r,i,g,$)=>{const V=ae=>{g(UPDATE_MODEL_EVENT,ae),g(INPUT_EVENT,ae)},re=()=>n.range?![r.value,i.value].every((ae,oe)=>ae===t.oldValue[oe]):n.modelValue!==t.oldValue,ie=()=>{var ae,oe;n.min>n.max&&throwError$1("Slider","min should not be greater than max.");const le=n.modelValue;n.range&&isArray$5(le)?le[1]n.max?V([n.max,n.max]):le[0]n.max?V([le[0],n.max]):(t.firstValue=le[0],t.secondValue=le[1],re()&&(n.validateEvent&&((ae=$==null?void 0:$.validate)==null||ae.call($,"change").catch(ue=>void 0)),t.oldValue=le.slice())):!n.range&&isNumber$2(le)&&!Number.isNaN(le)&&(len.max?V(n.max):(t.firstValue=le,re()&&(n.validateEvent&&((oe=$==null?void 0:$.validate)==null||oe.call($,"change").catch(ue=>void 0)),t.oldValue=le)))};ie(),watch(()=>t.dragging,ae=>{ae||ie()}),watch(()=>n.modelValue,(ae,oe)=>{t.dragging||isArray$5(ae)&&isArray$5(oe)&&ae.every((le,ue)=>le===oe[ue])&&t.firstValue===ae[0]&&t.secondValue===ae[1]||ie()},{deep:!0}),watch(()=>[n.min,n.max],()=>{ie()})},useLifecycle=(n,t,r)=>{const i=ref();return onMounted(async()=>{n.range?(isArray$5(n.modelValue)?(t.firstValue=Math.max(n.min,n.modelValue[0]),t.secondValue=Math.min(n.max,n.modelValue[1])):(t.firstValue=n.min,t.secondValue=n.max),t.oldValue=[t.firstValue,t.secondValue]):(!isNumber$2(n.modelValue)||Number.isNaN(n.modelValue)?t.firstValue=n.min:t.firstValue=Math.min(n.max,Math.max(n.min,n.modelValue)),t.oldValue=t.firstValue),useEventListener(window,"resize",r),await nextTick(),r()}),{sliderWrapper:i}},_hoisted_1$I=["id","role","aria-label","aria-labelledby"],_hoisted_2$v={key:1},_sfc_main$18=defineComponent({name:"ElSlider",__name:"slider",props:sliderProps,emits:sliderEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useNamespace("slider"),{t:V}=useLocale(),re=reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:ie,slider:ae,firstButton:oe,secondButton:le,sliderDisabled:ue,minValue:de,maxValue:he,runwayStyle:pe,barStyle:_e,resetSize:Ce,emitChange:xe,onSliderWrapperPrevent:Ie,onSliderClick:Ne,onSliderDown:Oe,onSliderMarkerDown:$e,setFirstValue:Ve,setSecondValue:Ue}=useSlide(i,re,g),{stops:Fe,getStopStyle:ze}=useStops(i,re,de,he),{inputId:Pt,isLabeledByFormItem:qe}=useFormItemInputId(i,{formItemContext:ie}),Et=useFormSize(),kt=computed(()=>i.inputSize||Et.value),At=computed(()=>i.ariaLabel||V("el.slider.defaultLabel",{min:i.min,max:i.max})),Dt=computed(()=>i.range?i.rangeStartLabel||V("el.slider.defaultRangeStartLabel"):At.value),Lt=computed(()=>i.formatValueText?i.formatValueText(Cn.value):`${Cn.value}`),jt=computed(()=>i.rangeEndLabel||V("el.slider.defaultRangeEndLabel")),hn=computed(()=>i.formatValueText?i.formatValueText(Sn.value):`${Sn.value}`),vn=computed(()=>[$.b(),$.m(Et.value),$.is("vertical",i.vertical),{[$.m("with-input")]:i.showInput}]),_n=useMarks(i);useWatch(i,re,de,he,g,ie);const wn=computed(()=>{const kn=[i.min,i.max,i.step].map($n=>{const An=`${$n}`.split(".")[1];return An?An.length:0});return Math.max.apply(null,kn)}),{sliderWrapper:bn}=useLifecycle(i,re,Ce),{firstValue:Cn,secondValue:Sn,sliderSize:Tn}=toRefs(re),En=kn=>{re.dragging=kn};return useEventListener(bn,"touchstart",Ie,{passive:!1}),useEventListener(bn,"touchmove",Ie,{passive:!1}),provide(sliderContextKey,{...toRefs(i),sliderSize:Tn,disabled:ue,precision:wn,emitChange:xe,resetSize:Ce,updateDragging:En}),t({onSliderClick:Ne}),(kn,$n)=>{var An,xn;return openBlock(),createElementBlock("div",{id:kn.range?unref(Pt):void 0,ref_key:"sliderWrapper",ref:bn,class:normalizeClass(vn.value),role:kn.range?"group":void 0,"aria-label":kn.range&&!unref(qe)?At.value:void 0,"aria-labelledby":kn.range&&unref(qe)?(An=unref(ie))==null?void 0:An.labelId:void 0},[createBaseVNode("div",{ref_key:"slider",ref:ae,class:normalizeClass([unref($).e("runway"),{"show-input":kn.showInput&&!kn.range},unref($).is("disabled",unref(ue))]),style:normalizeStyle$1(unref(pe)),onMousedown:$n[0]||($n[0]=(...Ln)=>unref(Oe)&&unref(Oe)(...Ln)),onTouchstartPassive:$n[1]||($n[1]=(...Ln)=>unref(Oe)&&unref(Oe)(...Ln))},[createBaseVNode("div",{class:normalizeClass(unref($).e("bar")),style:normalizeStyle$1(unref(_e))},null,6),createVNode$1(SliderButton,{id:kn.range?void 0:unref(Pt),ref_key:"firstButton",ref:oe,"model-value":unref(Cn),vertical:kn.vertical,"tooltip-class":kn.tooltipClass,placement:kn.placement,role:"slider","aria-label":kn.range||!unref(qe)?Dt.value:void 0,"aria-labelledby":!kn.range&&unref(qe)?(xn=unref(ie))==null?void 0:xn.labelId:void 0,"aria-valuemin":kn.min,"aria-valuemax":kn.range?unref(Sn):kn.max,"aria-valuenow":unref(Cn),"aria-valuetext":Lt.value,"aria-orientation":kn.vertical?"vertical":"horizontal","aria-disabled":unref(ue),"onUpdate:modelValue":unref(Ve)},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"]),kn.range?(openBlock(),createBlock(SliderButton,{key:0,ref_key:"secondButton",ref:le,"model-value":unref(Sn),vertical:kn.vertical,"tooltip-class":kn.tooltipClass,placement:kn.placement,role:"slider","aria-label":jt.value,"aria-valuemin":unref(Cn),"aria-valuemax":kn.max,"aria-valuenow":unref(Sn),"aria-valuetext":hn.value,"aria-orientation":kn.vertical?"vertical":"horizontal","aria-disabled":unref(ue),"onUpdate:modelValue":unref(Ue)},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),kn.showStops?(openBlock(),createElementBlock("div",_hoisted_2$v,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Fe),(Ln,Nn)=>(openBlock(),createElementBlock("div",{key:Nn,class:normalizeClass(unref($).e("stop")),style:normalizeStyle$1(unref(ze)(Ln))},null,6))),128))])):createCommentVNode("v-if",!0),unref(_n).length>0?(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(_n),(Ln,Nn)=>(openBlock(),createElementBlock("div",{key:Nn,style:normalizeStyle$1(unref(ze)(Ln.position)),class:normalizeClass([unref($).e("stop"),unref($).e("marks-stop")])},null,6))),128))]),createBaseVNode("div",{class:normalizeClass(unref($).e("marks"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(_n),(Ln,Nn)=>(openBlock(),createBlock(unref(SliderMarker),{key:Nn,mark:Ln.mark,style:normalizeStyle$1(unref(ze)(Ln.position)),onMousedown:withModifiers(Pn=>unref($e)(Ln.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):createCommentVNode("v-if",!0)],38),kn.showInput&&!kn.range?(openBlock(),createBlock(unref(ElInputNumber),{key:0,ref:"input","model-value":unref(Cn),class:normalizeClass(unref($).e("input")),step:kn.step,disabled:unref(ue),controls:kn.showInputControls,min:kn.min,max:kn.max,precision:wn.value,size:kt.value,"onUpdate:modelValue":unref(Ve),onChange:unref(xe)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):createCommentVNode("v-if",!0)],10,_hoisted_1$I)}}});var Slider=_export_sfc(_sfc_main$18,[["__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(n,{slots:t}){const r=useNamespace("space"),i=computed(()=>`${n.prefixCls||r.b()}__item`);return()=>h$1("div",{class:i.value},renderSlot(t,"default"))}}),SIZE_MAP={small:8,default:12,large:16};function useSpace(n){const t=useNamespace("space"),r=computed(()=>[t.b(),t.m(n.direction),n.class]),i=ref(0),g=ref(0),$=computed(()=>{const re=n.wrap||n.fill?{flexWrap:"wrap"}:{},ie={alignItems:n.alignment},ae={rowGap:`${g.value}px`,columnGap:`${i.value}px`};return[re,ie,ae,n.style]}),V=computed(()=>n.fill?{flexGrow:1,minWidth:`${n.fillRatio}%`}:{});return watchEffect(()=>{const{size:re="small",wrap:ie,direction:ae,fill:oe}=n;if(isArray$5(re)){const[le=0,ue=0]=re;i.value=le,g.value=ue}else{let le;isNumber$2(re)?le=re:le=SIZE_MAP[re||"small"]||SIZE_MAP.small,(ie||oe)&&ae==="horizontal"?i.value=g.value=le:ae==="horizontal"?(i.value=le,g.value=0):(g.value=le,i.value=0)}}),{classes:r,containerStyle:$,itemStyle:V}}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:n=>isVNode(n)||isNumber$2(n)||isString$2(n)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:componentSizes,validator:n=>isNumber$2(n)||isArray$5(n)&&n.length===2&&n.every(isNumber$2)}}),Space=defineComponent({name:"ElSpace",props:spaceProps,setup(n,{slots:t}){const{classes:r,containerStyle:i,itemStyle:g}=useSpace(n);function $(V,re="",ie=[]){const{prefixCls:ae}=n;return V.forEach((oe,le)=>{isFragment(oe)?isArray$5(oe.children)&&oe.children.forEach((ue,de)=>{isFragment(ue)&&isArray$5(ue.children)?$(ue.children,`${re+de}-`,ie):isVNode(ue)&&(ue==null?void 0:ue.type)===Comment?ie.push(ue):ie.push(createVNode$1(SpaceItem,{style:g.value,prefixCls:ae,key:`nested-${re+de}`},{default:()=>[ue]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}):isValidElementNode(oe)&&ie.push(createVNode$1(SpaceItem,{style:g.value,prefixCls:ae,key:`LoopKey${re+le}`},{default:()=>[oe]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}),ie}return()=>{var V;const{spacer:re,direction:ie}=n,ae=renderSlot(t,"default",{key:0},()=>[]);if(((V=ae.children)!=null?V:[]).length===0)return null;if(isArray$5(ae.children)){let oe=$(ae.children);if(re){const le=oe.length-1;oe=oe.reduce((ue,de,he)=>{const pe=[...ue,de];return he!==le&&pe.push(createVNode$1("span",{style:[g.value,ie==="vertical"?"width: 100%":null],key:he},[isVNode(re)?re:createTextVNode(re,PatchFlags.TEXT)],PatchFlags.STYLE)),pe},[])}return createVNode$1("div",{class:r.value,style:i.value},oe,PatchFlags.STYLE|PatchFlags.CLASS)}return ae.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])}}),_sfc_main$17=defineComponent({name:"ElStatistic",__name:"statistic",props:statisticProps,setup(n,{expose:t}){const r=n,i=useNamespace("statistic"),g=computed(()=>{const{value:$,formatter:V,precision:re,decimalSeparator:ie,groupSeparator:ae}=r;if(isFunction$4(V))return V($);if(!isNumber$2($)||Number.isNaN($))return $;let[oe,le=""]=String($).split(".");return le=le.padEnd(re,"0").slice(0,re>0?re:0),oe=oe.replace(/\B(?=(\d{3})+(?!\d))/g,ae),[oe,le].join(le?ie:"")});return t({displayValue:g}),($,V)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(i).b())},[$.$slots.title||$.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).e("head"))},[renderSlot($.$slots,"title",{},()=>[createTextVNode(toDisplayString($.title),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(i).e("content"))},[$.$slots.prefix||$.prefix?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).e("prefix"))},[renderSlot($.$slots,"prefix",{},()=>[createBaseVNode("span",null,toDisplayString($.prefix),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass(unref(i).e("number")),style:normalizeStyle$1($.valueStyle)},toDisplayString(g.value),7),$.$slots.suffix||$.suffix?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(i).e("suffix"))},[renderSlot($.$slots,"suffix",{},()=>[createBaseVNode("span",null,toDisplayString($.suffix),1)])],2)):createCommentVNode("v-if",!0)],2)],2))}});var Statistic=_export_sfc(_sfc_main$17,[["__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]:n=>isNumber$2(n)},timeUnits=[["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=n=>isNumber$2(n)?new Date(n).getTime():n.valueOf(),formatTime$1=(n,t)=>{let r=n;const i=/\[([^\]]*)]/g;return timeUnits.reduce(($,[V,re])=>{const ie=new RegExp(`${V}+(?![^\\[\\]]*\\])`,"g");if(ie.test($)){const ae=Math.floor(r/re);return r-=ae*re,$.replace(ie,oe=>String(ae).padStart(oe.length,"0"))}return $},t).replace(i,"$1")},_sfc_main$16=defineComponent({name:"ElCountdown",__name:"countdown",props:countdownProps,emits:countdownEmits,setup(n,{expose:t,emit:r}){const i=n,g=r;let $;const V=ref(0),re=computed(()=>formatTime$1(V.value,i.format)),ie=le=>formatTime$1(le,i.format),ae=()=>{$&&(cAF($),$=void 0)},oe=()=>{const le=getTime$1(i.value),ue=()=>{let de=le-Date.now();g(CHANGE_EVENT,de),de<=0?(de=0,ae(),g("finish")):$=rAF(ue),V.value=de};$=rAF(ue)};return onMounted(()=>{V.value=getTime$1(i.value)-Date.now(),watch(()=>[i.value,i.format],()=>{ae(),oe()},{immediate:!0})}),onBeforeUnmount(()=>{ae()}),t({displayValue:re}),(le,ue)=>(openBlock(),createBlock(unref(ElStatistic),{value:V.value,title:le.title,prefix:le.prefix,suffix:le.suffix,"value-style":le.valueStyle,formatter:ie},createSlots({_:2},[renderList(le.$slots,(de,he)=>({name:he,fn:withCtx(()=>[renderSlot(le.$slots,he)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var Countdown=_export_sfc(_sfc_main$16,[["__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]:(n,t)=>[n,t].every(isNumber$2)},STEPS_INJECTION_KEY="ElSteps",_sfc_main$15=defineComponent({name:"ElSteps",__name:"steps",props:stepsProps,emits:stepsEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("steps"),{children:$,addChild:V,removeChild:re,ChildrenSorter:ie}=useOrderedChildren(getCurrentInstance(),"ElStep");return watch($,()=>{$.value.forEach((ae,oe)=>{ae.setIndex(oe)})}),provide(STEPS_INJECTION_KEY,{props:r,steps:$,addStep:V,removeStep:re}),watch(()=>r.active,(ae,oe)=>{i(CHANGE_EVENT,ae,oe)}),(ae,oe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(g).b(),unref(g).m(ae.simple?"simple":ae.direction)])},[renderSlot(ae.$slots,"default"),createVNode$1(unref(ie))],2))}});var Steps=_export_sfc(_sfc_main$15,[["__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:""}}),_sfc_main$14=defineComponent({name:"ElStep",__name:"item",props:stepProps,setup(n){const t=n,r=useNamespace("step"),i=ref(-1),g=ref({}),$=ref(""),V=inject(STEPS_INJECTION_KEY),re=getCurrentInstance();let ie=0,ae=0;onMounted(()=>{watch([()=>V.props.active,()=>V.props.processStatus,()=>V.props.finishStatus],([Ue],[Fe])=>{ae=Fe||0,ie=Ue-ae,$e(Ue)},{immediate:!0})});const oe=computed(()=>t.status||$.value),le=computed(()=>{const Ue=V.steps.value[i.value-1];return Ue?Ue.internalStatus.value:"wait"}),ue=computed(()=>V.props.alignCenter),de=computed(()=>V.props.direction==="vertical"),he=computed(()=>V.props.simple),pe=computed(()=>V.steps.value.length),_e=computed(()=>{var Ue;return((Ue=V.steps.value[pe.value-1])==null?void 0:Ue.uid)===re.uid}),Ce=computed(()=>he.value?"":V.props.space),xe=computed(()=>[r.b(),r.is(he.value?"simple":V.props.direction),r.is("flex",_e.value&&!Ce.value&&!ue.value),r.is("center",ue.value&&!de.value&&!he.value)]),Ie=computed(()=>{const Ue={flexBasis:isNumber$2(Ce.value)?`${Ce.value}px`:Ce.value?Ce.value:`${100/(pe.value-(ue.value?0:1))}%`};return de.value||_e.value&&(Ue.maxWidth=`${100/pe.value}%`),Ue}),Ne=Ue=>{i.value=Ue},Oe=Ue=>{const Fe=Ue==="wait",Pt={transitionDelay:`${Math.abs(ie)===1?0:ie>0?(i.value+1-ae)*150:-(i.value+1-V.props.active)*150}ms`},qe=Ue===V.props.processStatus||Fe?0:100;Pt.borderWidth=qe&&!he.value?"1px":0,Pt[V.props.direction==="vertical"?"height":"width"]=`${qe}%`,g.value=Pt},$e=Ue=>{Ue>i.value?$.value=V.props.finishStatus:Ue===i.value&&le.value!=="error"?$.value=V.props.processStatus:$.value="wait";const Fe=V.steps.value[i.value-1];Fe&&Fe.calcProgress($.value)},Ve={uid:re.uid,getVnode:()=>re.vnode,currentStatus:oe,internalStatus:$,setIndex:Ne,calcProgress:Oe};return V.addStep(Ve),onBeforeUnmount(()=>{V.removeStep(Ve)}),(Ue,Fe)=>(openBlock(),createElementBlock("div",{style:normalizeStyle$1(Ie.value),class:normalizeClass(xe.value)},[createCommentVNode(" icon & line "),createBaseVNode("div",{class:normalizeClass([unref(r).e("head"),unref(r).is(oe.value)])},[he.value?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("line"))},[createBaseVNode("i",{class:normalizeClass(unref(r).e("line-inner")),style:normalizeStyle$1(g.value)},null,6)],2)),createBaseVNode("div",{class:normalizeClass([unref(r).e("icon"),unref(r).is(Ue.icon||Ue.$slots.icon?"icon":"text")])},[renderSlot(Ue.$slots,"icon",{},()=>[Ue.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(r).e("icon-inner"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ue.icon)))]),_:1},8,["class"])):oe.value==="success"?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(r).e("icon-inner"),unref(r).is("status")])},{default:withCtx(()=>[createVNode$1(unref(check_default))]),_:1},8,["class"])):oe.value==="error"?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(r).e("icon-inner"),unref(r).is("status")])},{default:withCtx(()=>[createVNode$1(unref(close_default))]),_:1},8,["class"])):he.value?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(unref(r).e("icon-inner"))},toDisplayString(i.value+1),3))])],2)],2),createCommentVNode(" title & description "),createBaseVNode("div",{class:normalizeClass(unref(r).e("main"))},[createBaseVNode("div",{class:normalizeClass([unref(r).e("title"),unref(r).is(oe.value)])},[renderSlot(Ue.$slots,"title",{},()=>[createTextVNode(toDisplayString(Ue.title),1)])],2),he.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("arrow"))},null,2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(r).e("description"),unref(r).is(oe.value)])},[renderSlot(Ue.$slots,"description",{},()=>[createTextVNode(toDisplayString(Ue.description),1)])],2))],2)],6))}});var Step=_export_sfc(_sfc_main$14,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const ElSteps=withInstall(Steps,{Step}),ElStep=withNoopInstall(Step),isValidComponentSize=n=>["",...componentSizes].includes(n),switchProps=buildProps({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:isValidComponentSize},width:{type:[String,Number],default:""},inlinePrompt:Boolean,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},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:definePropType(Function)},id:String,tabindex:{type:[String,Number]},...useAriaProps(["ariaLabel"])}),switchEmits={[UPDATE_MODEL_EVENT]:n=>isBoolean$1(n)||isString$2(n)||isNumber$2(n),[CHANGE_EVENT]:n=>isBoolean$1(n)||isString$2(n)||isNumber$2(n),[INPUT_EVENT]:n=>isBoolean$1(n)||isString$2(n)||isNumber$2(n)},_hoisted_1$H=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],_hoisted_2$u=["aria-hidden"],_hoisted_3$c={key:1},_hoisted_4$9={key:1},_hoisted_5$2=["aria-hidden"],COMPONENT_NAME$9="ElSwitch",_sfc_main$13=defineComponent({name:COMPONENT_NAME$9,__name:"switch",props:switchProps,emits:switchEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{formItem:$}=useFormItem(),V=useFormSize(),re=useNamespace("switch"),{inputId:ie}=useFormItemInputId(i,{formItemContext:$}),ae=useFormDisabled(computed(()=>{if(i.loading)return!0})),oe=ref(i.modelValue!==!1),le=shallowRef(),ue=computed(()=>[re.b(),re.m(V.value),re.is("disabled",ae.value),re.is("checked",Ce.value)]),de=computed(()=>[re.e("label"),re.em("label","left"),re.is("active",!Ce.value)]),he=computed(()=>[re.e("label"),re.em("label","right"),re.is("active",Ce.value)]),pe=computed(()=>({width:addUnit(i.width)}));watch(()=>i.modelValue,()=>{oe.value=!0});const _e=computed(()=>oe.value?i.modelValue:!1),Ce=computed(()=>_e.value===i.activeValue);[i.activeValue,i.inactiveValue].includes(_e.value)||(g(UPDATE_MODEL_EVENT,i.inactiveValue),g(CHANGE_EVENT,i.inactiveValue),g(INPUT_EVENT,i.inactiveValue)),watch(Ce,Oe=>{var $e;le.value.checked=Oe,i.validateEvent&&(($e=$==null?void 0:$.validate)==null||$e.call($,"change").catch(Ve=>void 0))});const xe=()=>{const Oe=Ce.value?i.inactiveValue:i.activeValue;g(UPDATE_MODEL_EVENT,Oe),g(CHANGE_EVENT,Oe),g(INPUT_EVENT,Oe),nextTick(()=>{le.value.checked=Ce.value})},Ie=()=>{if(ae.value)return;const{beforeChange:Oe}=i;if(!Oe){xe();return}const $e=Oe();[isPromise($e),isBoolean$1($e)].includes(!0)||throwError$1(COMPONENT_NAME$9,"beforeChange must return type `Promise` or `boolean`"),isPromise($e)?$e.then(Ue=>{Ue&&xe()}).catch(Ue=>{}):$e&&xe()},Ne=()=>{var Oe,$e;($e=(Oe=le.value)==null?void 0:Oe.focus)==null||$e.call(Oe)};return onMounted(()=>{le.value.checked=Ce.value}),t({focus:Ne,checked:Ce}),(Oe,$e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(ue.value),onClick:withModifiers(Ie,["prevent"])},[createBaseVNode("input",{id:unref(ie),ref_key:"input",ref:le,class:normalizeClass(unref(re).e("input")),type:"checkbox",role:"switch","aria-checked":Ce.value,"aria-disabled":unref(ae),"aria-label":Oe.ariaLabel,name:Oe.name,"true-value":Oe.activeValue,"false-value":Oe.inactiveValue,disabled:unref(ae),tabindex:Oe.tabindex,onChange:xe,onKeydown:withKeys(Ie,["enter"])},null,42,_hoisted_1$H),!Oe.inlinePrompt&&(Oe.inactiveIcon||Oe.inactiveText||Oe.$slots.inactive)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(de.value)},[renderSlot(Oe.$slots,"inactive",{},()=>[Oe.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Oe.inactiveIcon)))]),_:1})):createCommentVNode("v-if",!0),!Oe.inactiveIcon&&Oe.inactiveText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":Ce.value},toDisplayString(Oe.inactiveText),9,_hoisted_2$u)):createCommentVNode("v-if",!0)])],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass(unref(re).e("core")),style:normalizeStyle$1(pe.value)},[Oe.inlinePrompt?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(re).e("inner"))},[Ce.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(re).e("inner-wrapper"))},[renderSlot(Oe.$slots,"active",{},()=>[Oe.activeIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Oe.activeIcon)))]),_:1})):createCommentVNode("v-if",!0),!Oe.activeIcon&&Oe.activeText?(openBlock(),createElementBlock("span",_hoisted_4$9,toDisplayString(Oe.activeText),1)):createCommentVNode("v-if",!0)])],2)):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(re).e("inner-wrapper"))},[renderSlot(Oe.$slots,"inactive",{},()=>[Oe.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Oe.inactiveIcon)))]),_:1})):createCommentVNode("v-if",!0),!Oe.inactiveIcon&&Oe.inactiveText?(openBlock(),createElementBlock("span",_hoisted_3$c,toDisplayString(Oe.inactiveText),1)):createCommentVNode("v-if",!0)])],2))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(re).e("action"))},[Oe.loading?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(re).is("loading"))},{default:withCtx(()=>[createVNode$1(unref(loading_default))]),_:1},8,["class"])):Ce.value?renderSlot(Oe.$slots,"active-action",{key:1},()=>[Oe.activeActionIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Oe.activeActionIcon)))]),_:1})):createCommentVNode("v-if",!0)]):Ce.value?createCommentVNode("v-if",!0):renderSlot(Oe.$slots,"inactive-action",{key:2},()=>[Oe.inactiveActionIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Oe.inactiveActionIcon)))]),_:1})):createCommentVNode("v-if",!0)])],2)],6),!Oe.inlinePrompt&&(Oe.activeIcon||Oe.activeText||Oe.$slots.active)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(he.value)},[renderSlot(Oe.$slots,"active",{},()=>[Oe.activeIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Oe.activeIcon)))]),_:1})):createCommentVNode("v-if",!0),!Oe.activeIcon&&Oe.activeText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":!Ce.value},toDisplayString(Oe.activeText),9,_hoisted_5$2)):createCommentVNode("v-if",!0)])],2)):createCommentVNode("v-if",!0)],2))}});var Switch=_export_sfc(_sfc_main$13,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const ElSwitch=withInstall(Switch),getCell=function(n){var t;return(t=n.target)==null?void 0:t.closest("td")},orderBy=function(n,t,r,i,g){if(!t&&!i&&(!g||isArray$5(g)&&!g.length))return n;isString$2(r)?r=r==="descending"?-1:1:r=r&&r<0?-1:1;const $=i?null:function(re,ie){return g?flatMap(castArray$1(g),ae=>isString$2(ae)?get$1(re,ae):ae(re,ie,n)):(t!=="$key"&&isObject$6(re)&&"$value"in re&&(re=re.$value),[isObject$6(re)?t?get$1(re,t):null:re])},V=function(re,ie){var ae,oe,le,ue,de,he;if(i)return i(re.value,ie.value);for(let pe=0,_e=(oe=(ae=re.key)==null?void 0:ae.length)!=null?oe:0;pe<_e;pe++){if(((le=re.key)==null?void 0:le[pe])<((ue=ie.key)==null?void 0:ue[pe]))return-1;if(((de=re.key)==null?void 0:de[pe])>((he=ie.key)==null?void 0:he[pe]))return 1}return 0};return n.map((re,ie)=>({value:re,index:ie,key:$?$(re,ie):null})).sort((re,ie)=>{let ae=V(re,ie);return ae||(ae=re.index-ie.index),ae*+r}).map(re=>re.value)},getColumnById=function(n,t){let r=null;return n.columns.forEach(i=>{i.id===t&&(r=i)}),r},getColumnByKey=function(n,t){let r=null;for(let i=0;i{if(!n)throw new Error("Row is required when get row identity");if(isString$2(t)){if(!t.includes("."))return`${n[t]}`;const r=t.split(".");let i=n;for(const g of r)i=i[g];return`${i}`}else if(isFunction$4(t))return t.call(null,n);return""},getKeysMap=function(n,t,r=!1,i="children"){const g=n||[],$={};return g.forEach((V,re)=>{if($[getRowIdentity(V,t)]={row:V,index:re},r){const ie=V[i];isArray$5(ie)&&Object.assign($,getKeysMap(ie,t,!0,i))}}),$};function mergeOptions$1(n,t){const r={};let i;for(i in n)r[i]=n[i];for(i in t)if(hasOwn$1(t,i)){const g=t[i];isUndefined$1(g)||(r[i]=g)}return r}function parseWidth(n){return n===""||isUndefined$1(n)||(n=Number.parseInt(n,10),Number.isNaN(n)&&(n="")),n}function parseMinWidth(n){return n===""||isUndefined$1(n)||(n=parseWidth(n),Number.isNaN(n)&&(n=80)),n}function parseHeight(n){return isNumber$2(n)?n:isString$2(n)?/^\d+(?:px)?$/.test(n)?Number.parseInt(n,10):n:null}function compose(...n){return n.length===0?t=>t:n.length===1?n[0]:n.reduce((t,r)=>(...i)=>t(r(...i)))}function toggleRowStatus(n,t,r,i,g,$,V){let re=$??0,ie=!1;const oe=(()=>{if(!V)return n.indexOf(t);const pe=getRowIdentity(t,V);return n.findIndex(_e=>getRowIdentity(_e,V)===pe)})(),le=oe!==-1,ue=g==null?void 0:g.call(null,t,re),de=pe=>{pe==="add"?n.push(t):n.splice(oe,1),ie=!0},he=pe=>{let _e=0;const Ce=(i==null?void 0:i.children)&&pe[i.children];return Ce&&isArray$5(Ce)&&(_e+=Ce.length,Ce.forEach(xe=>{_e+=he(xe)})),_e};return(!g||ue)&&(isBoolean$1(r)?r&&!le?de("add"):!r&&le&&de("remove"):de(le?"remove":"add")),!(i!=null&&i.checkStrictly)&&(i!=null&&i.children)&&isArray$5(t[i.children])&&t[i.children].forEach(pe=>{const _e=toggleRowStatus(n,pe,r??!le,i,g,re+1,V);re+=he(pe)+1,_e&&(ie=_e)}),ie}function walkTreeNode(n,t,r="children",i="hasChildren",g=!1){const $=re=>!(isArray$5(re)&&re.length);function V(re,ie,ae){t(re,ie,ae),ie.forEach(oe=>{if(oe[i]&&g){t(oe,null,ae+1);return}const le=oe[r];$(le)||V(oe,le,ae+1)})}n.forEach(re=>{if(re[i]&&g){t(re,null,0);return}const ie=re[r];$(ie)||V(re,ie,0)})}const getTableOverflowTooltipProps=(n,t,r,i)=>{const g={strategy:"fixed",...n.popperOptions},$=isFunction$4(i==null?void 0:i.tooltipFormatter)?i.tooltipFormatter({row:r,column:i,cellValue:getProp(r,i.property).value}):void 0;return isVNode($)?{slotContent:$,content:null,...n,popperOptions:g}:{slotContent:null,content:$??t,...n,popperOptions:g}};let removePopper=null;function createTablePopper(n,t,r,i,g,$){var V;const re=getTableOverflowTooltipProps(n,t,r,i),ie={...re,slotContent:void 0};if((removePopper==null?void 0:removePopper.trigger)===g){const he=(V=removePopper.vm)==null?void 0:V.component;merge$3(he==null?void 0:he.props,ie),he&&re.slotContent&&(he.slots.content=()=>[re.slotContent]);return}removePopper==null||removePopper();const ae=$==null?void 0:$.refs.tableWrapper,oe=ae==null?void 0:ae.dataset.prefix,le=createVNode$1(ElTooltip,{virtualTriggering:!0,virtualRef:g,appendTo:ae,placement:"top",transition:"none",offset:0,hideAfter:0,...ie},re.slotContent?{content:()=>re.slotContent}:void 0);le.appContext={...$.appContext,...$};const ue=document.createElement("div");render$1(le,ue),le.component.exposed.onOpen();const de=ae==null?void 0:ae.querySelector(`.${oe}-scrollbar__wrap`);removePopper=()=>{var he,pe;(pe=(he=le.component)==null?void 0:he.exposed)!=null&&pe.onClose&&le.component.exposed.onClose(),render$1(null,ue);const _e=removePopper;de==null||de.removeEventListener("scroll",_e),_e.trigger=void 0,_e.vm=void 0,removePopper=null},removePopper.trigger=g??void 0,removePopper.vm=le,de==null||de.addEventListener("scroll",removePopper)}function getCurrentColumns(n){return n.children?flatMap(n.children,getCurrentColumns):[n]}function getColSpan(n,t){return n+t.colSpan}const isFixedColumn=(n,t,r,i)=>{let g=0,$=n;const V=r.states.columns.value;if(i){const ie=getCurrentColumns(i[n]);g=V.slice(0,V.indexOf(ie[0])).reduce(getColSpan,0),$=g+ie.reduce(getColSpan,0)-1}else g=n;let re;switch(t){case"left":$=V.length-r.states.rightFixedLeafColumnsLength.value&&(re="right");break;default:$=V.length-r.states.rightFixedLeafColumnsLength.value&&(re="right")}return re?{direction:re,start:g,after:$}:{}},getFixedColumnsClass=(n,t,r,i,g,$=0)=>{const V=[],{direction:re,start:ie,after:ae}=isFixedColumn(t,r,i,g);if(re){const oe=re==="left";V.push(`${n}-fixed-column--${re}`),oe&&ae+$===i.states.fixedLeafColumnsLength.value-1?V.push("is-last-column"):!oe&&ie-$===i.states.columns.value.length-i.states.rightFixedLeafColumnsLength.value&&V.push("is-first-column")}return V};function getOffset$1(n,t){return n+(isNull(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const getFixedColumnOffset=(n,t,r,i)=>{const{direction:g,start:$=0,after:V=0}=isFixedColumn(n,t,r,i);if(!g)return;const re={},ie=g==="left",ae=r.states.columns.value;return ie?re.left=ae.slice(0,$).reduce(getOffset$1,0):re.right=ae.slice(V+1).reverse().reduce(getOffset$1,0),re},ensurePosition=(n,t)=>{n&&(Number.isNaN(n[t])||(n[t]=`${n[t]}px`))};function ensureValidVNode(n){return n.some(t=>isVNode(t)?!(t.type===Comment||t.type===Fragment&&!ensureValidVNode(t.children)):!0)?n:null}function useExpand(n){const t=getCurrentInstance(),r=ref(!1),i=ref([]);return{updateExpandRows:()=>{const ie=n.data.value||[],ae=n.rowKey.value;if(r.value)i.value=ie.slice();else if(ae){const oe=getKeysMap(i.value,ae);i.value=ie.reduce((le,ue)=>{const de=getRowIdentity(ue,ae);return oe[de]&&le.push(ue),le},[])}else i.value=[]},toggleRowExpansion:(ie,ae)=>{toggleRowStatus(i.value,ie,ae,void 0,void 0,void 0,n.rowKey.value)&&t.emit("expand-change",ie,i.value.slice())},setExpandRowKeys:ie=>{t.store.assertRowKey();const ae=n.data.value||[],oe=n.rowKey.value,le=getKeysMap(ae,oe);i.value=ie.reduce((ue,de)=>{const he=le[de];return he&&ue.push(he.row),ue},[])},isRowExpanded:ie=>{const ae=n.rowKey.value;return ae?!!getKeysMap(i.value,ae)[getRowIdentity(ie,ae)]:i.value.includes(ie)},states:{expandRows:i,defaultExpandAll:r}}}function useCurrent(n){const t=getCurrentInstance(),r=ref(null),i=ref(null),g=ae=>{t.store.assertRowKey(),r.value=ae,V(ae)},$=()=>{r.value=null},V=ae=>{var oe;const{data:le,rowKey:ue}=n,de=i.value;let he=null;ue.value&&(he=(oe=(unref(le)||[]).find(pe=>getRowIdentity(pe,ue.value)===ae))!=null?oe:null),i.value=he??null,t.emit("current-change",i.value,de)};return{setCurrentRowKey:g,restoreCurrentRowKey:$,setCurrentRowByKey:V,updateCurrentRow:ae=>{const oe=i.value;if(ae&&ae!==oe){i.value=ae,t.emit("current-change",i.value,oe);return}!ae&&oe&&(i.value=null,t.emit("current-change",null,oe))},updateCurrentRowData:()=>{const ae=n.rowKey.value,oe=n.data.value||[],le=i.value;if(le&&!oe.includes(le))if(ae){const ue=getRowIdentity(le,ae);V(ue)}else i.value=null,t.emit("current-change",null,le);else r.value&&(V(r.value),$())},states:{_currentRowKey:r,currentRow:i}}}function useTree$2(n){const t=ref([]),r=ref({}),i=ref(16),g=ref(!1),$=ref({}),V=ref("hasChildren"),re=ref("children"),ie=ref(!1),ae=getCurrentInstance(),oe=computed(()=>{if(!n.rowKey.value)return{};const Ne=n.data.value||[];return ue(Ne)}),le=computed(()=>{const Ne=n.rowKey.value,Oe=Object.keys($.value),$e={};return Oe.length&&Oe.forEach(Ve=>{if($.value[Ve].length){const Ue={children:[]};$.value[Ve].forEach(Fe=>{const ze=getRowIdentity(Fe,Ne);Ue.children.push(ze),Fe[V.value]&&!$e[ze]&&($e[ze]={children:[]})}),$e[Ve]=Ue}}),$e}),ue=Ne=>{const Oe=n.rowKey.value,$e={};return walkTreeNode(Ne,(Ve,Ue,Fe)=>{const ze=getRowIdentity(Ve,Oe);isArray$5(Ue)?$e[ze]={children:Ue.map(Pt=>getRowIdentity(Pt,Oe)),level:Fe}:g.value&&($e[ze]={children:[],lazy:!0,level:Fe})},re.value,V.value,g.value),$e},de=(Ne=!1,Oe)=>{var $e,Ve;Oe||(Oe=($e=ae.store)==null?void 0:$e.states.defaultExpandAll.value);const Ue=oe.value,Fe=le.value,ze=Object.keys(Ue),Pt={};if(ze.length){const qe=unref(r),Et=[],kt=(Dt,Lt)=>{if(Ne)return t.value?Oe||t.value.includes(Lt):!!(Oe||Dt!=null&&Dt.expanded);{const jt=Oe||t.value&&t.value.includes(Lt);return!!(Dt!=null&&Dt.expanded||jt)}};ze.forEach(Dt=>{const Lt=qe[Dt],jt={...Ue[Dt]};if(jt.expanded=kt(Lt,Dt),jt.lazy){const{loaded:hn=!1,loading:vn=!1}=Lt||{};jt.loaded=!!hn,jt.loading=!!vn,Et.push(Dt)}Pt[Dt]=jt});const At=Object.keys(Fe);g.value&&At.length&&Et.length&&At.forEach(Dt=>{var Lt;const jt=qe[Dt],hn=Fe[Dt].children;if(Et.includes(Dt)){if(((Lt=Pt[Dt].children)==null?void 0:Lt.length)!==0)throw new Error("[ElTable]children must be an empty array.");Pt[Dt].children=hn}else{const{loaded:vn=!1,loading:_n=!1}=jt||{};Pt[Dt]={lazy:!0,loaded:!!vn,loading:!!_n,expanded:kt(jt,Dt),children:hn,level:void 0}}})}r.value=Pt,(Ve=ae.store)==null||Ve.updateTableScrollY()};watch(()=>t.value,()=>{de(!0)}),watch(()=>oe.value,()=>{de()}),watch(()=>le.value,()=>{de()});const he=Ne=>{t.value=Ne,de()},pe=Ne=>g.value&&Ne&&"loaded"in Ne&&!Ne.loaded,_e=(Ne,Oe)=>{ae.store.assertRowKey();const $e=n.rowKey.value,Ve=getRowIdentity(Ne,$e),Ue=Ve&&r.value[Ve];if(Ve&&Ue&&"expanded"in Ue){const Fe=Ue.expanded;Oe=isUndefined$1(Oe)?!Ue.expanded:Oe,r.value[Ve].expanded=Oe,Fe!==Oe&&ae.emit("expand-change",Ne,Oe),Oe&&pe(Ue)&&xe(Ne,Ve,Ue),ae.store.updateTableScrollY()}},Ce=Ne=>{ae.store.assertRowKey();const Oe=n.rowKey.value,$e=getRowIdentity(Ne,Oe),Ve=r.value[$e];pe(Ve)?xe(Ne,$e,Ve):_e(Ne,void 0)},xe=(Ne,Oe,$e)=>{const{load:Ve}=ae.props;Ve&&!r.value[Oe].loaded&&(r.value[Oe].loading=!0,Ve(Ne,$e,Ue=>{if(!isArray$5(Ue))throw new TypeError("[ElTable] data must be an array");r.value[Oe].loading=!1,r.value[Oe].loaded=!0,r.value[Oe].expanded=!0,Ue.length&&($.value[Oe]=Ue),ae.emit("expand-change",Ne,!0)}))};return{loadData:xe,loadOrToggle:Ce,toggleTreeExpansion:_e,updateTreeExpandKeys:he,updateTreeData:de,updateKeyChildren:(Ne,Oe)=>{const{lazy:$e,rowKey:Ve}=ae.props;if($e){if(!Ve)throw new Error("[Table] rowKey is required in updateKeyChild");$.value[Ne]&&($.value[Ne]=Oe)}},normalize:ue,states:{expandRowKeys:t,treeData:r,indent:i,lazy:g,lazyTreeNodeMap:$,lazyColumnIdentifier:V,childrenColumnName:re,checkStrictly:ie}}}const sortData=(n,t)=>{const r=t.sortingColumn;return!r||isString$2(r.sortable)?n:orderBy(n,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy)},doFlattenColumns=n=>{const t=[];return n.forEach(r=>{r.children&&r.children.length>0?t.push.apply(t,doFlattenColumns(r.children)):t.push(r)}),t};function useWatcher$1(){var n;const t=getCurrentInstance(),{size:r}=toRefs((n=t.proxy)==null?void 0:n.$props),i=ref(null),g=ref([]),$=ref([]),V=ref(!1),re=ref([]),ie=ref([]),ae=ref([]),oe=ref([]),le=ref([]),ue=ref([]),de=ref([]),he=ref([]),pe=[],_e=ref(0),Ce=ref(0),xe=ref(0),Ie=ref(!1),Ne=ref([]),Oe=ref(!1),$e=ref(!1),Ve=ref(null),Ue=ref({}),Fe=ref(null),ze=ref(null),Pt=ref(null),qe=ref(null),Et=ref(null),kt=computed(()=>i.value?getKeysMap(Ne.value,i.value):void 0);watch(g,()=>{var ir;t.state&&(jt(!1),t.props.tableLayout==="auto"&&((ir=t.refs.tableHeaderRef)==null||ir.updateFixedColumnStyle()))},{deep:!0});const At=()=>{if(!i.value)throw new Error("[ElTable] prop row-key is required")},Dt=ir=>{var pr;(pr=ir.children)==null||pr.forEach(rr=>{rr.fixed=ir.fixed,Dt(rr)})},Lt=()=>{re.value.forEach(Fn=>{Dt(Fn)}),oe.value=re.value.filter(Fn=>[!0,"left"].includes(Fn.fixed));const ir=re.value.find(Fn=>Fn.type==="selection");let pr;ir&&ir.fixed!=="right"&&!oe.value.includes(ir)&&re.value.indexOf(ir)===0&&oe.value.length&&(oe.value.unshift(ir),pr=!0),le.value=re.value.filter(Fn=>Fn.fixed==="right");const rr=re.value.filter(Fn=>(pr?Fn.type!=="selection":!0)&&!Fn.fixed);ie.value=Array.from(oe.value).concat(rr).concat(le.value);const lr=doFlattenColumns(rr),Yn=doFlattenColumns(oe.value),er=doFlattenColumns(le.value);_e.value=lr.length,Ce.value=Yn.length,xe.value=er.length,ae.value=Array.from(Yn).concat(lr).concat(er),V.value=oe.value.length>0||le.value.length>0},jt=(ir,pr=!1)=>{ir&&Lt(),pr?t.state.doLayout():t.state.debouncedUpdateLayout()},hn=ir=>kt.value?!!kt.value[getRowIdentity(ir,i.value)]:Ne.value.includes(ir),vn=()=>{Ie.value=!1;const ir=Ne.value;Ne.value=[],ir.length&&t.emit("selection-change",[])},_n=()=>{var ir,pr;let rr;if(i.value){rr=[];const lr=(pr=(ir=t==null?void 0:t.store)==null?void 0:ir.states)==null?void 0:pr.childrenColumnName.value,Yn=getKeysMap(g.value,i.value,!0,lr);for(const er in kt.value)hasOwn$1(kt.value,er)&&!Yn[er]&&rr.push(kt.value[er].row)}else rr=Ne.value.filter(lr=>!g.value.includes(lr));if(rr.length){const lr=Ne.value.filter(Yn=>!rr.includes(Yn));Ne.value=lr,t.emit("selection-change",lr.slice())}},wn=()=>(Ne.value||[]).slice(),bn=(ir,pr,rr=!0,lr=!1)=>{var Yn,er,Fn,cr;const Un={children:(er=(Yn=t==null?void 0:t.store)==null?void 0:Yn.states)==null?void 0:er.childrenColumnName.value,checkStrictly:(cr=(Fn=t==null?void 0:t.store)==null?void 0:Fn.states)==null?void 0:cr.checkStrictly.value};if(toggleRowStatus(Ne.value,ir,pr,Un,lr?void 0:Ve.value,g.value.indexOf(ir),i.value)){const vr=(Ne.value||[]).slice();rr&&t.emit("select",vr,ir),t.emit("selection-change",vr)}},Cn=()=>{var ir,pr;const rr=$e.value?!Ie.value:!(Ie.value||Ne.value.length);Ie.value=rr;let lr=!1,Yn=0;const er=(pr=(ir=t==null?void 0:t.store)==null?void 0:ir.states)==null?void 0:pr.rowKey.value,{childrenColumnName:Fn}=t.store.states,cr={children:Fn.value,checkStrictly:!1};g.value.forEach((Un,gr)=>{const vr=gr+Yn;toggleRowStatus(Ne.value,Un,rr,cr,Ve.value,vr,er)&&(lr=!0),Yn+=Tn(getRowIdentity(Un,er))}),lr&&t.emit("selection-change",Ne.value?Ne.value.slice():[]),t.emit("select-all",(Ne.value||[]).slice())},Sn=()=>{var ir;if(((ir=g.value)==null?void 0:ir.length)===0){Ie.value=!1;return}const{childrenColumnName:pr}=t.store.states;let rr=0,lr=0;const Yn=Fn=>{var cr;for(const Un of Fn){const gr=Ve.value&&Ve.value.call(null,Un,rr);if(hn(Un))lr++;else if(!Ve.value||gr)return!1;if(rr++,(cr=Un[pr.value])!=null&&cr.length&&!Yn(Un[pr.value]))return!1}return!0},er=Yn(g.value||[]);Ie.value=lr===0?!1:er},Tn=ir=>{var pr;if(!t||!t.store)return 0;const{treeData:rr}=t.store.states;let lr=0;const Yn=(pr=rr.value[ir])==null?void 0:pr.children;return Yn&&(lr+=Yn.length,Yn.forEach(er=>{lr+=Tn(er)})),lr},En=(ir,pr)=>{const rr={};return castArray$1(ir).forEach(lr=>{Ue.value[lr.id]=pr,rr[lr.columnKey||lr.id]=pr}),rr},kn=(ir,pr,rr)=>{ze.value&&ze.value!==ir&&(ze.value.order=null),ze.value=ir,Pt.value=pr,qe.value=rr},$n=()=>{let ir=unref($);Object.keys(Ue.value).forEach(pr=>{const rr=Ue.value[pr];if(!rr||rr.length===0)return;const lr=getColumnById({columns:ae.value},pr);lr&&lr.filterMethod&&(ir=ir.filter(Yn=>rr.some(er=>lr.filterMethod.call(null,er,Yn,lr))))}),Fe.value=ir},An=()=>{var ir;g.value=sortData((ir=Fe.value)!=null?ir:[],{sortingColumn:ze.value,sortProp:Pt.value,sortOrder:qe.value})},xn=(ir=void 0)=>{ir!=null&&ir.filter||$n(),An()},Ln=ir=>{const{tableHeaderRef:pr}=t.refs;if(!pr)return;const rr=Object.assign({},pr.filterPanels),lr=Object.keys(rr);if(lr.length)if(isString$2(ir)&&(ir=[ir]),isArray$5(ir)){const Yn=ir.map(er=>getColumnByKey({columns:ae.value},er));lr.forEach(er=>{const Fn=Yn.find(cr=>cr.id===er);Fn&&(Fn.filteredValue=[])}),t.store.commit("filterChange",{column:Yn,values:[],silent:!0,multi:!0})}else lr.forEach(Yn=>{const er=ae.value.find(Fn=>Fn.id===Yn);er&&(er.filteredValue=[])}),Ue.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Nn=()=>{ze.value&&(kn(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Pn,toggleRowExpansion:On,updateExpandRows:Hn,states:Xn,isRowExpanded:In}=useExpand({data:g,rowKey:i}),{updateTreeExpandKeys:or,toggleTreeExpansion:Qn,updateTreeData:Zn,updateKeyChildren:Gn,loadOrToggle:Rn,states:Mn}=useTree$2({data:g,rowKey:i}),{updateCurrentRowData:Bn,updateCurrentRow:qn,setCurrentRowKey:zn,states:jn}=useCurrent({data:g,rowKey:i});return{assertRowKey:At,updateColumns:Lt,scheduleLayout:jt,isSelected:hn,clearSelection:vn,cleanSelection:_n,getSelectionRows:wn,toggleRowSelection:bn,_toggleAllSelection:Cn,toggleAllSelection:null,updateAllSelected:Sn,updateFilters:En,updateCurrentRow:qn,updateSort:kn,execFilter:$n,execSort:An,execQuery:xn,clearFilter:Ln,clearSort:Nn,toggleRowExpansion:On,setExpandRowKeysAdapter:ir=>{Pn(ir),or(ir)},setCurrentRowKey:zn,toggleRowExpansionAdapter:(ir,pr)=>{ae.value.some(({type:lr})=>lr==="expand")?On(ir,pr):Qn(ir,pr)},isRowExpanded:In,updateExpandRows:Hn,updateCurrentRowData:Bn,loadOrToggle:Rn,updateTreeData:Zn,updateKeyChildren:Gn,states:{tableSize:r,rowKey:i,data:g,_data:$,isComplex:V,_columns:re,originColumns:ie,columns:ae,fixedColumns:oe,rightFixedColumns:le,leafColumns:ue,fixedLeafColumns:de,rightFixedLeafColumns:he,updateOrderFns:pe,leafColumnsLength:_e,fixedLeafColumnsLength:Ce,rightFixedLeafColumnsLength:xe,isAllSelected:Ie,selection:Ne,reserveSelection:Oe,selectOnIndeterminate:$e,selectable:Ve,filters:Ue,filteredData:Fe,sortingColumn:ze,sortProp:Pt,sortOrder:qe,hoverRow:Et,...Xn,...Mn,...jn}}}function replaceColumn(n,t){return n.map(r=>{var i;return r.id===t.id?t:((i=r.children)!=null&&i.length&&(r.children=replaceColumn(r.children,t)),r)})}function sortColumn(n){n.forEach(t=>{var r,i;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(i=t.children)!=null&&i.length&&sortColumn(t.children)}),n.sort((t,r)=>t.no-r.no)}function useStore(){const n=getCurrentInstance(),t=useWatcher$1(),r=useNamespace("table"),{t:i}=useLocale();return{ns:r,t:i,...t,mutations:{setData(re,ie){const ae=unref(re._data)!==ie;re.data.value=ie,re._data.value=ie,n.store.execQuery(),n.store.updateCurrentRowData(),n.store.updateExpandRows(),n.store.updateTreeData(n.store.states.defaultExpandAll.value),unref(re.reserveSelection)?n.store.assertRowKey():ae?n.store.clearSelection():n.store.cleanSelection(),n.store.updateAllSelected(),n.$ready&&n.store.scheduleLayout()},insertColumn(re,ie,ae,oe){var le;const ue=unref(re._columns);let de=[];ae?(ae&&!ae.children&&(ae.children=[]),(le=ae.children)==null||le.push(ie),de=replaceColumn(ue,ae)):(ue.push(ie),de=ue),sortColumn(de),re._columns.value=de,re.updateOrderFns.push(oe),ie.type==="selection"&&(re.selectable.value=ie.selectable,re.reserveSelection.value=ie.reserveSelection),n.$ready&&(n.store.updateColumns(),n.store.scheduleLayout())},updateColumnOrder(re,ie){var ae;((ae=ie.getColumnIndex)==null?void 0:ae.call(ie))!==ie.no&&(sortColumn(re._columns.value),n.$ready&&n.store.updateColumns())},removeColumn(re,ie,ae,oe){var le;const ue=unref(re._columns)||[];if(ae)(le=ae.children)==null||le.splice(ae.children.findIndex(he=>he.id===ie.id),1),nextTick(()=>{var he;((he=ae.children)==null?void 0:he.length)===0&&delete ae.children}),re._columns.value=replaceColumn(ue,ae);else{const he=ue.indexOf(ie);he>-1&&(ue.splice(he,1),re._columns.value=ue)}const de=re.updateOrderFns.indexOf(oe);de>-1&&re.updateOrderFns.splice(de,1),n.$ready&&(n.store.updateColumns(),n.store.scheduleLayout())},sort(re,ie){const{prop:ae,order:oe,init:le}=ie;if(ae){const ue=unref(re.columns).find(de=>de.property===ae);ue&&(ue.order=oe,n.store.updateSort(ue,ae,oe),n.store.commit("changeSortCondition",{init:le}))}},changeSortCondition(re,ie){const{sortingColumn:ae,sortProp:oe,sortOrder:le}=re,ue=unref(ae),de=unref(oe),he=unref(le);isNull(he)&&(re.sortingColumn.value=null,re.sortProp.value=null);const pe={filter:!0};n.store.execQuery(pe),(!ie||!(ie.silent||ie.init))&&n.emit("sort-change",{column:ue,prop:de,order:he}),n.store.updateTableScrollY()},filterChange(re,ie){const{column:ae,values:oe,silent:le}=ie,ue=n.store.updateFilters(ae,oe);n.store.execQuery(),le||n.emit("filter-change",ue),n.store.updateTableScrollY()},toggleAllSelection(){var re,ie;(ie=(re=n.store).toggleAllSelection)==null||ie.call(re)},rowSelectedChanged(re,ie){n.store.toggleRowSelection(ie),n.store.updateAllSelected()},setHoverRow(re,ie){re.hoverRow.value=ie},setCurrentRow(re,ie){n.store.updateCurrentRow(ie)}},commit:function(re,...ie){const ae=n.store.mutations;if(ae[re])ae[re].apply(n,[n.store.states,...ie]);else throw new Error(`Action not found: ${re}`)},updateTableScrollY:function(){nextTick(()=>n.layout.updateScrollY.apply(n.layout))}}}const InitialStateMap={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function createStore(n,t){if(!n)throw new Error("Table is required.");const r=useStore();return r.toggleAllSelection=debounce(r._toggleAllSelection,10),Object.keys(InitialStateMap).forEach(i=>{handleValue(getArrKeysValue(t,i),i,r)}),proxyTableProps(r,t),r}function proxyTableProps(n,t){Object.keys(InitialStateMap).forEach(r=>{watch(()=>getArrKeysValue(t,r),i=>{handleValue(i,r,n)})})}function handleValue(n,t,r){let i=n,g=InitialStateMap[t];isObject$6(g)&&(i=i||g.default,g=g.key),r.states[g].value=i}function getArrKeysValue(n,t){if(t.includes(".")){const r=t.split(".");let i=n;return r.forEach(g=>{i=i[g]}),i}else return n[t]}class TableLayout{constructor(t){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 r in t)hasOwn$1(t,r)&&(isRef(this[r])?this[r].value=t[r]:this[r]=t[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(){const t=this.height.value;if(isNull(t))return!1;const r=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(r!=null&&r.wrapRef)){let i=!0;const g=this.scrollY.value;return i=r.wrapRef.scrollHeight>r.wrapRef.clientHeight,this.scrollY.value=i,g!==i}return!1}setHeight(t,r="height"){if(!isClient)return;const i=this.table.vnode.el;if(t=parseHeight(t),this.height.value=Number(t),!i&&(t||t===0)){nextTick(()=>this.setHeight(t,r));return}i&&isNumber$2(t)?(i.style[r]=`${t}px`,this.updateElsHeight()):i&&isString$2(t)&&(i.style[r]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(i=>{i.isColumnGroup?t.push.apply(t,i.columns):t.push(i)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let r=t;for(;r.tagName!=="DIV";){if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}updateColumnsWidth(){var t;if(!isClient)return;const r=this.fit,i=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let g=0;const $=this.getFlattenColumns(),V=$.filter(ae=>!isNumber$2(ae.width));if($.forEach(ae=>{isNumber$2(ae.width)&&ae.realWidth&&(ae.realWidth=null)}),V.length>0&&r){if($.forEach(ae=>{g+=Number(ae.width||ae.minWidth||80)}),g<=i){this.scrollX.value=!1;const ae=i-g;if(V.length===1)V[0].realWidth=Number(V[0].minWidth||80)+ae;else{const oe=V.reduce((de,he)=>de+Number(he.minWidth||80),0),le=ae/oe;let ue=0;V.forEach((de,he)=>{if(he===0)return;const pe=Math.floor(Number(de.minWidth||80)*le);ue+=pe,de.realWidth=Number(de.minWidth||80)+pe}),V[0].realWidth=Number(V[0].minWidth||80)+ae-ue}}else this.scrollX.value=!0,V.forEach(ae=>{ae.realWidth=Number(ae.minWidth)});this.bodyWidth.value=Math.max(g,i),this.table.state.resizeState.value.width=this.bodyWidth.value}else $.forEach(ae=>{!ae.width&&!ae.minWidth?ae.realWidth=80:ae.realWidth=Number(ae.width||ae.minWidth),g+=ae.realWidth}),this.scrollX.value=g>i,this.bodyWidth.value=g;const re=this.store.states.fixedColumns.value;if(re.length>0){let ae=0;re.forEach(oe=>{ae+=Number(oe.realWidth||oe.width)}),this.fixedWidth.value=ae}const ie=this.store.states.rightFixedColumns.value;if(ie.length>0){let ae=0;ie.forEach(oe=>{ae+=Number(oe.realWidth||oe.width)}),this.rightFixedWidth.value=ae}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const r=this.observers.indexOf(t);r!==-1&&this.observers.splice(r,1)}notifyObservers(t){this.observers.forEach(i=>{var g,$;switch(t){case"columns":(g=i.state)==null||g.onColumnsChange(this);break;case"scrollable":($=i.state)==null||$.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const _sfc_main$12=defineComponent({name:"ElTableFilterPanel",components:{ElCheckbox,ElCheckboxGroup,ElScrollbar,ElTooltip,ElIcon,ArrowDown:arrow_down_default,ArrowUp:arrow_up_default},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:useTooltipContentProps.appendTo},setup(n){const t=getCurrentInstance(),{t:r}=useLocale(),i=useNamespace("table-filter"),g=t==null?void 0:t.parent;n.column&&!g.filterPanels.value[n.column.id]&&(g.filterPanels.value[n.column.id]=t);const $=ref(null),V=ref(null),re=ref(0),ie=computed(()=>n.column&&n.column.filters),ae=computed(()=>n.column&&n.column.filterClassName?`${i.b()} ${n.column.filterClassName}`:i.b()),oe=computed({get:()=>{var Ve;return(((Ve=n.column)==null?void 0:Ve.filteredValue)||[])[0]},set:Ve=>{le.value&&(isPropAbsent(Ve)?le.value.splice(0,1):le.value.splice(0,1,Ve))}}),le=computed({get(){return n.column?n.column.filteredValue||[]:[]},set(Ve){var Ue;n.column&&((Ue=n.upDataColumn)==null||Ue.call(n,"filteredValue",Ve))}}),ue=computed(()=>n.column?n.column.filterMultiple:!0),de=Ve=>Ve.value===oe.value,he=()=>{var Ve;(Ve=$.value)==null||Ve.onClose()},pe=()=>{xe(le.value),he()},_e=()=>{le.value=[],xe(le.value),he()},Ce=(Ve,Ue)=>{oe.value=Ve,re.value=Ue,isPropAbsent(Ve)?xe([]):xe(le.value),he()},xe=Ve=>{var Ue,Fe;(Ue=n.store)==null||Ue.commit("filterChange",{column:n.column,values:Ve}),(Fe=n.store)==null||Fe.updateAllSelected()},Ie=()=>{var Ve,Ue;(Ve=V.value)==null||Ve.focus(),!ue.value&&Oe(),n.column&&((Ue=n.upDataColumn)==null||Ue.call(n,"filterOpened",!0))},Ne=()=>{var Ve;n.column&&((Ve=n.upDataColumn)==null||Ve.call(n,"filterOpened",!1))},Oe=()=>{if(isPropAbsent(oe)){re.value=0;return}const Ve=(ie.value||[]).findIndex(Ue=>Ue.value===oe.value);re.value=Ve>=0?Ve+1:0};return{multiple:ue,filterClassName:ae,filteredValue:le,filterValue:oe,filters:ie,handleConfirm:pe,handleReset:_e,handleSelect:Ce,isPropAbsent,isActive:de,t:r,ns:i,tooltipRef:$,rootRef:V,checkedIndex:re,handleShowTooltip:Ie,handleHideTooltip:Ne,handleKeydown:Ve=>{var Ue,Fe;const ze=getEventCode(Ve),Pt=(ie.value?ie.value.length:0)+1;let qe=re.value,Et=!0;switch(ze){case EVENT_CODE.down:case EVENT_CODE.right:qe=(qe+1)%Pt;break;case EVENT_CODE.up:case EVENT_CODE.left:qe=(qe-1+Pt)%Pt;break;case EVENT_CODE.tab:he(),Et=!1;break;case EVENT_CODE.enter:case EVENT_CODE.space:if(qe===0)Ce(null,0);else{const kt=(ie.value||[])[qe-1];kt.value&&Ce(kt.value,qe)}break;default:Et=!1;break}Et&&Ve.preventDefault(),re.value=qe,(Fe=(Ue=V.value)==null?void 0:Ue.querySelector(`.${i.e("list-item")}:nth-child(${qe+1})`))==null||Fe.focus()}}}}),_hoisted_1$G=["disabled"],_hoisted_2$t=["tabindex","aria-checked"],_hoisted_3$b=["tabindex","aria-checked","onClick"],_hoisted_4$8=["aria-label"];function _sfc_render$4(n,t,r,i,g,$){const V=resolveComponent("el-checkbox"),re=resolveComponent("el-checkbox-group"),ie=resolveComponent("el-scrollbar"),ae=resolveComponent("arrow-up"),oe=resolveComponent("arrow-down"),le=resolveComponent("el-icon"),ue=resolveComponent("el-tooltip");return openBlock(),createBlock(ue,{ref:"tooltipRef",offset:0,placement:n.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":n.filterClassName,persistent:"","append-to":n.appendTo,onShow:n.handleShowTooltip,onHide:n.handleHideTooltip},{content:withCtx(()=>[n.multiple?(openBlock(),createElementBlock("div",{key:0,ref:"rootRef",tabindex:"-1",class:normalizeClass(n.ns.e("multiple"))},[createBaseVNode("div",{class:normalizeClass(n.ns.e("content"))},[createVNode$1(ie,{"wrap-class":n.ns.e("wrap")},{default:withCtx(()=>[createVNode$1(re,{modelValue:n.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=de=>n.filteredValue=de),class:normalizeClass(n.ns.e("checkbox-group"))},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.filters,de=>(openBlock(),createBlock(V,{key:de.value,value:de.value},{default:withCtx(()=>[createTextVNode(toDisplayString(de.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),createBaseVNode("div",{class:normalizeClass(n.ns.e("bottom"))},[createBaseVNode("button",{class:normalizeClass(n.ns.is("disabled",n.filteredValue.length===0)),disabled:n.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...de)=>n.handleConfirm&&n.handleConfirm(...de))},toDisplayString(n.t("el.table.confirmFilter")),11,_hoisted_1$G),createBaseVNode("button",{type:"button",onClick:t[2]||(t[2]=(...de)=>n.handleReset&&n.handleReset(...de))},toDisplayString(n.t("el.table.resetFilter")),1)],2)],2)):(openBlock(),createElementBlock("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:normalizeClass(n.ns.e("list")),onKeydown:t[4]||(t[4]=(...de)=>n.handleKeydown&&n.handleKeydown(...de))},[createBaseVNode("li",{role:"radio",class:normalizeClass([n.ns.e("list-item"),n.ns.is("active",n.isPropAbsent(n.filterValue))]),tabindex:n.checkedIndex===0?0:-1,"aria-checked":n.isPropAbsent(n.filterValue),onClick:t[3]||(t[3]=de=>n.handleSelect(null,0))},toDisplayString(n.t("el.table.clearFilter")),11,_hoisted_2$t),(openBlock(!0),createElementBlock(Fragment,null,renderList(n.filters,(de,he)=>(openBlock(),createElementBlock("li",{key:de.value,role:"radio",class:normalizeClass([n.ns.e("list-item"),n.ns.is("active",n.isActive(de))]),tabindex:n.checkedIndex===he+1?0:-1,"aria-checked":n.isActive(de),onClick:pe=>n.handleSelect(de.value,he+1)},toDisplayString(de.text),11,_hoisted_3$b))),128))],34))]),default:withCtx(()=>{var de;return[createBaseVNode("button",{type:"button",class:normalizeClass(`${n.ns.namespace.value}-table__column-filter-trigger`),"aria-label":n.t("el.table.filterLabel",{column:((de=n.column)==null?void 0:de.label)||""})},[createVNode$1(le,null,{default:withCtx(()=>[renderSlot(n.$slots,"filter-icon",{},()=>{var he;return[(he=n.column)!=null&&he.filterOpened?(openBlock(),createBlock(ae,{key:0})):(openBlock(),createBlock(oe,{key:1}))]})]),_:3})],10,_hoisted_4$8)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var FilterPanel=_export_sfc(_sfc_main$12,[["render",_sfc_render$4],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function useLayoutObserver(n){const t=getCurrentInstance();onBeforeMount(()=>{r.value.addObserver(t)}),onMounted(()=>{i(r.value),g(r.value)}),onUpdated(()=>{i(r.value),g(r.value)}),onUnmounted(()=>{r.value.removeObserver(t)});const r=computed(()=>{const $=n.layout;if(!$)throw new Error("Can not find table layout.");return $}),i=$=>{var V;const re=((V=n.vnode.el)==null?void 0:V.querySelectorAll("colgroup > col"))||[];if(!re.length)return;const ie=$.getFlattenColumns(),ae={};ie.forEach(oe=>{ae[oe.id]=oe});for(let oe=0,le=re.length;oe{var V,re;const ie=((V=n.vnode.el)==null?void 0:V.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let oe=0,le=ie.length;oe{pe.stopPropagation()},$=(pe,_e)=>{!_e.filters&&_e.sortable?he(pe,_e,!1):_e.filterable&&!_e.sortable&&g(pe),i==null||i.emit("header-click",_e,pe)},V=(pe,_e)=>{i==null||i.emit("header-contextmenu",_e,pe)},re=ref(null),ie=ref(!1),ae=ref(),oe=(pe,_e)=>{var Ce,xe;if(isClient&&!(_e.children&&_e.children.length>0)&&re.value&&n.border&&re.value.id===_e.id){ie.value=!0;const Ie=i;t("set-drag-visible",!0);const Ne=Ie==null?void 0:Ie.vnode.el,Oe=Ne==null?void 0:Ne.getBoundingClientRect().left,$e=(xe=(Ce=r==null?void 0:r.vnode)==null?void 0:Ce.el)==null?void 0:xe.querySelector(`th.${_e.id}`),Ve=$e.getBoundingClientRect(),Ue=Ve.left-Oe+30;addClass($e,"noclick"),ae.value={startMouseLeft:pe.clientX,startLeft:Ve.right-Oe,startColumnLeft:Ve.left-Oe,tableLeft:Oe};const Fe=Ie==null?void 0:Ie.refs.resizeProxy;Fe.style.left=`${ae.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const ze=qe=>{const Et=qe.clientX-ae.value.startMouseLeft,kt=ae.value.startLeft+Et;Fe.style.left=`${Math.max(Ue,kt)}px`},Pt=()=>{if(ie.value){const{startColumnLeft:qe,startLeft:Et}=ae.value,At=Number.parseInt(Fe.style.left,10)-qe;_e.width=_e.realWidth=At,Ie==null||Ie.emit("header-dragend",_e.width,Et-qe,_e,pe),requestAnimationFrame(()=>{n.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",ie.value=!1,re.value=null,ae.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",ze),document.removeEventListener("mouseup",Pt),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{removeClass($e,"noclick")},0)};document.addEventListener("mousemove",ze),document.addEventListener("mouseup",Pt)}},le=(pe,_e)=>{var Ce;if(!n.border||_e.children&&_e.children.length>0)return;const xe=pe.target,Ie=isElement$1(xe)?xe.closest("th"):null;if(!Ie)return;const Ne=hasClass(Ie,"is-sortable");if(Ne){const ze=ie.value?"col-resize":"";Ie.style.cursor=ze;const Pt=Ie.querySelector(".caret-wrapper");Pt&&(Pt.style.cursor=ze)}if(!_e.resizable||ie.value){re.value=null;return}const Oe=Ie.getBoundingClientRect(),$e=((Ce=Ie.parentNode)==null?void 0:Ce.lastElementChild)===Ie,Ve=n.allowDragLastColumn||!$e,Ue=Oe.width>12&&Oe.right-pe.clientX<8&&Ve,Fe=Ue?"col-resize":"";document.body.style.cursor=Fe,re.value=Ue?_e:null,Ne&&(Ie.style.cursor=Fe)},ue=()=>{!isClient||ie.value||(document.body.style.cursor="")},de=({order:pe,sortOrders:_e})=>{if(pe==="")return _e[0];const Ce=_e.indexOf(pe||null);return _e[Ce>_e.length-2?0:Ce+1]},he=(pe,_e,Ce)=>{var xe;pe.stopPropagation();const Ie=_e.order===Ce?null:Ce||de(_e),Ne=(xe=pe.target)==null?void 0:xe.closest("th");if(Ne&&hasClass(Ne,"noclick")){removeClass(Ne,"noclick");return}if(!_e.sortable)return;const Oe=pe.currentTarget;if(["ascending","descending"].some(ze=>hasClass(Oe,ze)&&!_e.sortOrders.includes(ze)))return;const $e=n.store.states;let Ve=$e.sortProp.value,Ue;const Fe=$e.sortingColumn.value;(Fe!==_e||Fe===_e&&isNull(Fe.order))&&(Fe&&(Fe.order=null),$e.sortingColumn.value=_e,Ve=_e.property),Ie?Ue=_e.order=Ie:Ue=_e.order=null,$e.sortProp.value=Ve,$e.sortOrder.value=Ue,i==null||i.store.commit("changeSortCondition")};return{handleHeaderClick:$,handleHeaderContextMenu:V,handleMouseDown:oe,handleMouseMove:le,handleMouseOut:ue,handleSortClick:he,handleFilterClick:g}}function useStyle$2(n){const t=inject(TABLE_INJECTION_KEY),r=useNamespace("table");return{getHeaderRowStyle:re=>{const ie=t==null?void 0:t.props.headerRowStyle;return isFunction$4(ie)?ie.call(null,{rowIndex:re}):ie},getHeaderRowClass:re=>{const ie=[],ae=t==null?void 0:t.props.headerRowClassName;return isString$2(ae)?ie.push(ae):isFunction$4(ae)&&ie.push(ae.call(null,{rowIndex:re})),ie.join(" ")},getHeaderCellStyle:(re,ie,ae,oe)=>{var le;let ue=(le=t==null?void 0:t.props.headerCellStyle)!=null?le:{};isFunction$4(ue)&&(ue=ue.call(null,{rowIndex:re,columnIndex:ie,row:ae,column:oe}));const de=getFixedColumnOffset(ie,oe.fixed,n.store,ae);return ensurePosition(de,"left"),ensurePosition(de,"right"),Object.assign({},ue,de)},getHeaderCellClass:(re,ie,ae,oe)=>{const le=getFixedColumnsClass(r.b(),ie,oe.fixed,n.store,ae),ue=[oe.id,oe.order,oe.headerAlign,oe.className,oe.labelClassName,...le];oe.children||ue.push("is-leaf"),oe.sortable&&ue.push("is-sortable");const de=t==null?void 0:t.props.headerCellClassName;return isString$2(de)?ue.push(de):isFunction$4(de)&&ue.push(de.call(null,{rowIndex:re,columnIndex:ie,row:ae,column:oe})),ue.push(r.e("cell")),ue.filter(he=>!!he).join(" ")}}}const getAllColumns=n=>{const t=[];return n.forEach(r=>{r.children?(t.push(r),t.push.apply(t,getAllColumns(r.children))):t.push(r)}),t},convertToRows=n=>{let t=1;const r=($,V)=>{if(V&&($.level=V.level+1,t<$.level&&(t=$.level)),$.children){let re=0;$.children.forEach(ie=>{r(ie,$),re+=ie.colSpan}),$.colSpan=re}else $.colSpan=1};n.forEach($=>{$.level=1,r($,void 0)});const i=[];for(let $=0;${$.children?($.rowSpan=1,$.children.forEach(V=>V.isSubColumn=!0)):$.rowSpan=t-$.level+1,i[$.level-1].push($)}),i};function useUtils$1(n){const t=inject(TABLE_INJECTION_KEY),r=computed(()=>convertToRows(n.store.states.originColumns.value));return{isGroup:computed(()=>{const $=r.value.length>1;return $&&t&&(t.state.isGroup.value=!0),$}),toggleAllSelection:$=>{$.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:r}}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:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(n,{emit:t}){const r=getCurrentInstance(),i=inject(TABLE_INJECTION_KEY),g=useNamespace("table"),$=ref({}),{onColumnsChange:V,onScrollableChange:re}=useLayoutObserver(i),ie=(i==null?void 0:i.props.tableLayout)==="auto",ae=reactive(new Map),oe=ref();let le;const ue=()=>{le=setTimeout(()=>{ae.size>0&&(ae.forEach((qe,Et)=>{const kt=oe.value.querySelector(`.${Et.replace(/\s/g,".")}`);if(kt){const At=kt.getBoundingClientRect().width;qe.width=At||qe.width}}),ae.clear())})};watch(ae,ue),onBeforeUnmount(()=>{le&&(clearTimeout(le),le=void 0)}),onMounted(async()=>{await nextTick(),await nextTick();const{prop:qe,order:Et}=n.defaultSort;i==null||i.store.commit("sort",{prop:qe,order:Et,init:!0}),ue()});const{handleHeaderClick:de,handleHeaderContextMenu:he,handleMouseDown:pe,handleMouseMove:_e,handleMouseOut:Ce,handleSortClick:xe,handleFilterClick:Ie}=useEvent(n,t),{getHeaderRowStyle:Ne,getHeaderRowClass:Oe,getHeaderCellStyle:$e,getHeaderCellClass:Ve}=useStyle$2(n),{isGroup:Ue,toggleAllSelection:Fe,columnRows:ze}=useUtils$1(n),{t:Pt}=useLocale();return r.state={onColumnsChange:V,onScrollableChange:re},r.filterPanels=$,{ns:g,t:Pt,filterPanels:$,onColumnsChange:V,onScrollableChange:re,columnRows:ze,getHeaderRowClass:Oe,getHeaderRowStyle:Ne,getHeaderCellClass:Ve,getHeaderCellStyle:$e,handleHeaderClick:de,handleHeaderContextMenu:he,handleMouseDown:pe,handleMouseMove:_e,handleMouseOut:Ce,handleSortClick:xe,handleFilterClick:Ie,isGroup:Ue,toggleAllSelection:Fe,saveIndexSelection:ae,isTableLayoutAuto:ie,theadRef:oe,updateFixedColumnStyle:ue}},render(){const{ns:n,t,isGroup:r,columnRows:i,getHeaderCellStyle:g,getHeaderCellClass:$,getHeaderRowClass:V,getHeaderRowStyle:re,handleHeaderClick:ie,handleHeaderContextMenu:ae,handleMouseDown:oe,handleMouseMove:le,handleSortClick:ue,handleMouseOut:de,store:he,$parent:pe,saveIndexSelection:_e,isTableLayoutAuto:Ce}=this;let xe=1;return h$1("thead",{ref:"theadRef",class:n.is("group",r)},i.map((Ie,Ne)=>h$1("tr",{class:V(Ne),key:Ne,style:re(Ne)},Ie.map((Oe,$e)=>{Oe.rowSpan>xe&&(xe=Oe.rowSpan);const Ve=$(Ne,$e,Ie,Oe);return Ce&&Oe.fixed&&_e.set(Ve,Oe),h$1("th",{class:Ve,colspan:Oe.colSpan,key:`${Oe.id}-thead`,rowspan:Oe.rowSpan,scope:Oe.colSpan>1?"colgroup":"col",ariaSort:Oe.sortable?Oe.order:void 0,style:g(Ne,$e,Ie,Oe),onClick:Ue=>{var Fe;(Fe=Ue.currentTarget)!=null&&Fe.classList.contains("noclick")||ie(Ue,Oe)},onContextmenu:Ue=>ae(Ue,Oe),onMousedown:Ue=>oe(Ue,Oe),onMousemove:Ue=>le(Ue,Oe),onMouseout:de},[h$1("div",{class:["cell",Oe.filteredValue&&Oe.filteredValue.length>0?"highlight":""]},[Oe.renderHeader?Oe.renderHeader({column:Oe,$index:$e,store:he,_self:pe}):Oe.label,Oe.sortable&&h$1("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:Oe.label||""}),onClick:Ue=>ue(Ue,Oe)},[h$1("i",{onClick:Ue=>ue(Ue,Oe,"ascending"),class:"sort-caret ascending"}),h$1("i",{onClick:Ue=>ue(Ue,Oe,"descending"),class:"sort-caret descending"})]),Oe.filterable&&h$1(FilterPanel,{store:he,placement:Oe.filterPlacement||"bottom-start",appendTo:pe==null?void 0:pe.appendFilterPanelTo,column:Oe,upDataColumn:(Ue,Fe)=>{Oe[Ue]=Fe}},{"filter-icon":()=>Oe.renderFilterIcon?Oe.renderFilterIcon({filterOpened:Oe.filterOpened}):null})])])}))))}});function isGreaterThan(n,t,r=.03){return n-t>r}function useEvents(n){const t=inject(TABLE_INJECTION_KEY),r=ref(""),i=ref(h$1("div")),g=(he,pe,_e)=>{var Ce,xe,Ie;const Ne=t,Oe=getCell(he);let $e=null;const Ve=(Ce=Ne==null?void 0:Ne.vnode.el)==null?void 0:Ce.dataset.prefix;Oe&&($e=getColumnByCell({columns:(Ie=(xe=n.store)==null?void 0:xe.states.columns.value)!=null?Ie:[]},Oe,Ve),$e&&(Ne==null||Ne.emit(`cell-${_e}`,pe,$e,Oe,he))),Ne==null||Ne.emit(`row-${_e}`,pe,$e,he)},$=(he,pe)=>{g(he,pe,"dblclick")},V=(he,pe)=>{var _e;(_e=n.store)==null||_e.commit("setCurrentRow",pe),g(he,pe,"click")},re=(he,pe)=>{g(he,pe,"contextmenu")},ie=debounce(he=>{var pe;(pe=n.store)==null||pe.commit("setHoverRow",he)},30),ae=debounce(()=>{var he;(he=n.store)==null||he.commit("setHoverRow",null)},30),oe=he=>{const pe=window.getComputedStyle(he,null),_e=Number.parseInt(pe.paddingLeft,10)||0,Ce=Number.parseInt(pe.paddingRight,10)||0,xe=Number.parseInt(pe.paddingTop,10)||0,Ie=Number.parseInt(pe.paddingBottom,10)||0;return{left:_e,right:Ce,top:xe,bottom:Ie}},le=(he,pe,_e)=>{var Ce;let xe=(Ce=pe==null?void 0:pe.target)==null?void 0:Ce.parentNode;for(;he>1&&(xe=xe==null?void 0:xe.nextSibling,!(!xe||xe.nodeName!=="TR"));)_e(xe,"hover-row hover-fixed-row"),he--};return{handleDoubleClick:$,handleClick:V,handleContextMenu:re,handleMouseEnter:ie,handleMouseLeave:ae,handleCellMouseEnter:(he,pe,_e)=>{var Ce,xe,Ie,Ne,Oe,$e,Ve,Ue,Fe;if(!t)return;const ze=t,Pt=getCell(he),qe=(Ce=ze==null?void 0:ze.vnode.el)==null?void 0:Ce.dataset.prefix;let Et=null;if(Pt){if(Et=getColumnByCell({columns:(Ie=(xe=n.store)==null?void 0:xe.states.columns.value)!=null?Ie:[]},Pt,qe),!Et)return;Pt.rowSpan>1&&le(Pt.rowSpan,he,addClass);const Tn=ze.hoverState={cell:Pt,column:Et,row:pe};ze==null||ze.emit("cell-mouse-enter",Tn.row,Tn.column,Tn.cell,he)}if(!_e){((Ne=removePopper)==null?void 0:Ne.trigger)===Pt&&((Oe=removePopper)==null||Oe());return}const kt=he.target.querySelector(".cell");if(!(hasClass(kt,`${qe}-tooltip`)&&kt.childNodes.length&&(($e=kt.textContent)!=null&&$e.trim())))return;const At=document.createRange();At.setStart(kt,0),At.setEnd(kt,kt.childNodes.length);const{width:Dt,height:Lt}=At.getBoundingClientRect(),{width:jt,height:hn}=kt.getBoundingClientRect(),{top:vn,left:_n,right:wn,bottom:bn}=oe(kt),Cn=_n+wn,Sn=vn+bn;isGreaterThan(Dt+Cn,jt)||isGreaterThan(Lt+Sn,hn)||isGreaterThan(kt.scrollWidth,jt)?createTablePopper(_e,(Ve=(Pt==null?void 0:Pt.innerText)||(Pt==null?void 0:Pt.textContent))!=null?Ve:"",pe,Et,Pt,ze):((Ue=removePopper)==null?void 0:Ue.trigger)===Pt&&((Fe=removePopper)==null||Fe())},handleCellMouseLeave:he=>{const pe=getCell(he);if(!pe)return;pe.rowSpan>1&&le(pe.rowSpan,he,removeClass);const _e=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",_e==null?void 0:_e.row,_e==null?void 0:_e.column,_e==null?void 0:_e.cell,he)},tooltipContent:r,tooltipTrigger:i}}function useStyles$1(n){const t=inject(TABLE_INJECTION_KEY),r=useNamespace("table");return{getRowStyle:(ae,oe)=>{const le=t==null?void 0:t.props.rowStyle;return isFunction$4(le)?le.call(null,{row:ae,rowIndex:oe}):le||null},getRowClass:(ae,oe,le)=>{var ue;const de=[r.e("row")];t!=null&&t.props.highlightCurrentRow&&ae===((ue=n.store)==null?void 0:ue.states.currentRow.value)&&de.push("current-row"),n.stripe&&le%2===1&&de.push(r.em("row","striped"));const he=t==null?void 0:t.props.rowClassName;return isString$2(he)?de.push(he):isFunction$4(he)&&de.push(he.call(null,{row:ae,rowIndex:oe})),de},getCellStyle:(ae,oe,le,ue)=>{const de=t==null?void 0:t.props.cellStyle;let he=de??{};isFunction$4(de)&&(he=de.call(null,{rowIndex:ae,columnIndex:oe,row:le,column:ue}));const pe=getFixedColumnOffset(oe,n==null?void 0:n.fixed,n.store);return ensurePosition(pe,"left"),ensurePosition(pe,"right"),Object.assign({},he,pe)},getCellClass:(ae,oe,le,ue,de)=>{const he=getFixedColumnsClass(r.b(),oe,n==null?void 0:n.fixed,n.store,void 0,de),pe=[ue.id,ue.align,ue.className,...he],_e=t==null?void 0:t.props.cellClassName;return isString$2(_e)?pe.push(_e):isFunction$4(_e)&&pe.push(_e.call(null,{rowIndex:ae,columnIndex:oe,row:le,column:ue})),pe.push(r.e("cell")),pe.filter(Ce=>!!Ce).join(" ")},getSpan:(ae,oe,le,ue)=>{let de=1,he=1;const pe=t==null?void 0:t.props.spanMethod;if(isFunction$4(pe)){const _e=pe({row:ae,column:oe,rowIndex:le,columnIndex:ue});isArray$5(_e)?(de=_e[0],he=_e[1]):isObject$6(_e)&&(de=_e.rowspan,he=_e.colspan)}return{rowspan:de,colspan:he}},getColspanRealWidth:(ae,oe,le)=>{if(oe<1)return ae[le].realWidth;const ue=ae.map(({realWidth:de,width:he})=>de||he).slice(le,le+oe);return Number(ue.reduce((de,he)=>Number(de)+Number(he),-1))}}}const _hoisted_1$F=["colspan","rowspan"],_sfc_main$11=defineComponent({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(n){return(t,r)=>(openBlock(),createElementBlock("td",{colspan:n.colspan,rowspan:n.rowspan},[renderSlot(t.$slots,"default")],8,_hoisted_1$F))}});var TdWrapper=_export_sfc(_sfc_main$11,[["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table-body/td-wrapper.vue"]]);function useRender$1(n){const t=inject(TABLE_INJECTION_KEY),r=useNamespace("table"),{handleDoubleClick:i,handleClick:g,handleContextMenu:$,handleMouseEnter:V,handleMouseLeave:re,handleCellMouseEnter:ie,handleCellMouseLeave:ae,tooltipContent:oe,tooltipTrigger:le}=useEvents(n),{getRowStyle:ue,getRowClass:de,getCellStyle:he,getCellClass:pe,getSpan:_e,getColspanRealWidth:Ce}=useStyles$1(n);let xe=-1;const Ie=computed(()=>{var Ue;return(Ue=n.store)==null?void 0:Ue.states.columns.value.findIndex(({type:Fe})=>Fe==="default")}),Ne=(Ue,Fe)=>{var ze;const Pt=(ze=t==null?void 0:t.props)==null?void 0:ze.rowKey;return Pt?getRowIdentity(Ue,Pt):Fe},Oe=(Ue,Fe,ze,Pt=!1)=>{const{tooltipEffect:qe,tooltipOptions:Et,store:kt}=n,{indent:At,columns:Dt}=kt.states,Lt=[];let jt=!0;return ze&&(Lt.push(r.em("row",`level-${ze.level}`)),jt=!!ze.display),Fe===0&&(xe=-1),n.stripe&&jt&&xe++,Lt.push(...de(Ue,Fe,xe)),h$1("tr",{style:[jt?null:{display:"none"},ue(Ue,Fe)],class:Lt,key:Ne(Ue,Fe),onDblclick:vn=>i(vn,Ue),onClick:vn=>g(vn,Ue),onContextmenu:vn=>$(vn,Ue),onMouseenter:()=>V(Fe),onMouseleave:re},Dt.value.map((vn,_n)=>{const{rowspan:wn,colspan:bn}=_e(Ue,vn,Fe,_n);if(!wn||!bn)return null;const Cn=Object.assign({},vn);Cn.realWidth=Ce(Dt.value,bn,_n);const Sn={store:kt,_self:n.context||t,column:Cn,row:Ue,$index:Fe,cellIndex:_n,expanded:Pt};_n===Ie.value&&ze&&(Sn.treeNode={indent:ze.level&&ze.level*At.value,level:ze.level},isBoolean$1(ze.expanded)&&(Sn.treeNode.expanded=ze.expanded,"loading"in ze&&(Sn.treeNode.loading=ze.loading),"noLazyChildren"in ze&&(Sn.treeNode.noLazyChildren=ze.noLazyChildren)));const Tn=`${Ne(Ue,Fe)},${_n}`,En=Cn.columnKey||Cn.rawColumnKey||"",kn=vn.showOverflowTooltip&&merge$3({effect:qe},Et,vn.showOverflowTooltip);return h$1(TdWrapper,{style:he(Fe,_n,Ue,vn),class:pe(Fe,_n,Ue,vn,bn-1),key:`${En}${Tn}`,rowspan:wn,colspan:bn,onMouseenter:$n=>ie($n,Ue,kn),onMouseleave:ae},{default:()=>$e(_n,vn,Sn)})}))},$e=(Ue,Fe,ze)=>Fe.renderCell(ze);return{wrappedRowRender:(Ue,Fe)=>{const ze=n.store,{isRowExpanded:Pt,assertRowKey:qe}=ze,{treeData:Et,lazyTreeNodeMap:kt,childrenColumnName:At,rowKey:Dt}=ze.states,Lt=ze.states.columns.value;if(Lt.some(({type:hn})=>hn==="expand")){const hn=Pt(Ue),vn=Oe(Ue,Fe,void 0,hn),_n=t==null?void 0:t.renderExpanded;if(!_n)return console.error("[Element Error]renderExpanded is required."),vn;const wn=[[vn]];return(t.props.preserveExpandedContent||hn)&&wn[0].push(h$1("tr",{key:`expanded-row__${vn.key}`,style:{display:hn?"":"none"}},[h$1("td",{colspan:Lt.length,class:`${r.e("cell")} ${r.e("expanded-cell")}`},[_n({row:Ue,$index:Fe,store:ze,expanded:hn})])])),wn}else if(Object.keys(Et.value).length){qe();const hn=getRowIdentity(Ue,Dt.value);let vn=Et.value[hn],_n=null;vn&&(_n={expanded:vn.expanded,level:vn.level,display:!0,noLazyChildren:void 0,loading:void 0},isBoolean$1(vn.lazy)&&(_n&&isBoolean$1(vn.loaded)&&vn.loaded&&(_n.noLazyChildren=!(vn.children&&vn.children.length)),_n.loading=vn.loading));const wn=[Oe(Ue,Fe,_n??void 0)];if(vn){let bn=0;const Cn=(Tn,En)=>{Tn&&Tn.length&&En&&Tn.forEach(kn=>{const $n={display:En.display&&En.expanded,level:En.level+1,expanded:!1,noLazyChildren:!1,loading:!1},An=getRowIdentity(kn,Dt.value);if(isPropAbsent(An))throw new Error("For nested data item, row-key is required.");if(vn={...Et.value[An]},vn&&($n.expanded=vn.expanded,vn.level=vn.level||$n.level,vn.display=!!(vn.expanded&&$n.display),isBoolean$1(vn.lazy)&&(isBoolean$1(vn.loaded)&&vn.loaded&&($n.noLazyChildren=!(vn.children&&vn.children.length)),$n.loading=vn.loading)),bn++,wn.push(Oe(kn,Fe+bn,$n)),vn){const xn=kt.value[An]||kn[At.value];Cn(xn,vn)}})};vn.display=!0;const Sn=kt.value[hn]||Ue[At.value];Cn(Sn,vn)}return wn}else return Oe(Ue,Fe,void 0)},tooltipContent:oe,tooltipTrigger:le}}const defaultProps$3={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$3,setup(n){var t;const r=getCurrentInstance(),i=inject(TABLE_INJECTION_KEY),g=useNamespace("table"),{wrappedRowRender:$,tooltipContent:V,tooltipTrigger:re}=useRender$1(n),{onColumnsChange:ie,onScrollableChange:ae}=useLayoutObserver(i),oe=[];return watch((t=n.store)==null?void 0:t.states.hoverRow,(le,ue)=>{var de,he;const pe=r==null?void 0:r.vnode.el,_e=Array.from((pe==null?void 0:pe.children)||[]).filter(Ie=>Ie==null?void 0:Ie.classList.contains(`${g.e("row")}`));let Ce=le;const xe=(de=_e[Ce])==null?void 0:de.childNodes;if(xe!=null&&xe.length){let Ie=0;Array.from(xe).reduce((Oe,$e,Ve)=>{var Ue,Fe;return((Ue=xe[Ve])==null?void 0:Ue.colSpan)>1&&(Ie=(Fe=xe[Ve])==null?void 0:Fe.colSpan),$e.nodeName!=="TD"&&Ie===0&&Oe.push(Ve),Ie>0&&Ie--,Oe},[]).forEach(Oe=>{var $e;for(Ce=le;Ce>0;){const Ve=($e=_e[Ce-1])==null?void 0:$e.childNodes;if(Ve[Oe]&&Ve[Oe].nodeName==="TD"&&Ve[Oe].rowSpan>1){addClass(Ve[Oe],"hover-cell"),oe.push(Ve[Oe]);break}Ce--}})}else oe.forEach(Ie=>removeClass(Ie,"hover-cell")),oe.length=0;!((he=n.store)!=null&&he.states.isComplex.value)||!isClient||rAF(()=>{const Ie=_e[ue],Ne=_e[le];Ie&&!Ie.classList.contains("hover-fixed-row")&&removeClass(Ie,"hover-row"),Ne&&addClass(Ne,"hover-row")})}),onUnmounted(()=>{var le;(le=removePopper)==null||le()}),{ns:g,onColumnsChange:ie,onScrollableChange:ae,wrappedRowRender:$,tooltipContent:V,tooltipTrigger:re}},render(){const{wrappedRowRender:n,store:t}=this,r=(t==null?void 0:t.states.data.value)||[];return h$1("tbody",{tabIndex:-1},[r.reduce((i,g)=>i.concat(n(g,i.length)),[])])}});function useMapState(){const n=inject(TABLE_INJECTION_KEY),t=n==null?void 0:n.store,r=computed(()=>{var re;return(re=t==null?void 0:t.states.fixedLeafColumnsLength.value)!=null?re:0}),i=computed(()=>{var re;return(re=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?re:0}),g=computed(()=>{var re;return(re=t==null?void 0:t.states.columns.value.length)!=null?re:0}),$=computed(()=>{var re;return(re=t==null?void 0:t.states.fixedColumns.value.length)!=null?re:0}),V=computed(()=>{var re;return(re=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?re:0});return{leftFixedLeafCount:r,rightFixedLeafCount:i,columnsCount:g,leftFixedCount:$,rightFixedCount:V,columns:computed(()=>{var re;return(re=t==null?void 0:t.states.columns.value)!=null?re:[]})}}function useStyle$1(n){const{columns:t}=useMapState(),r=useNamespace("table");return{getCellClasses:($,V)=>{const re=$[V],ie=[r.e("cell"),re.id,re.align,re.labelClassName,...getFixedColumnsClass(r.b(),V,re.fixed,n.store)];return re.className&&ie.push(re.className),re.children||ie.push(r.is("leaf")),ie},getCellStyles:($,V)=>{const re=getFixedColumnOffset(V,$.fixed,n.store);return ensurePosition(re,"left"),ensurePosition(re,"right"),re},columns:t}}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(n){const t=inject(TABLE_INJECTION_KEY),r=useNamespace("table"),{getCellClasses:i,getCellStyles:g,columns:$}=useStyle$1(n),{onScrollableChange:V,onColumnsChange:re}=useLayoutObserver(t);return{ns:r,onScrollableChange:V,onColumnsChange:re,getCellClasses:i,getCellStyles:g,columns:$}},render(){const{columns:n,getCellStyles:t,getCellClasses:r,summaryMethod:i,sumText:g}=this,$=this.store.states.data.value;let V=[];return i?V=i({columns:n,data:$}):n.forEach((re,ie)=>{if(ie===0){V[ie]=g;return}const ae=$.map(de=>Number(de[re.property])),oe=[];let le=!0;ae.forEach(de=>{if(!Number.isNaN(+de)){le=!1;const he=`${de}`.split(".")[1];oe.push(he?he.length:0)}});const ue=Math.max.apply(null,oe);le?V[ie]="":V[ie]=ae.reduce((de,he)=>{const pe=Number(he);return Number.isNaN(+pe)?de:Number.parseFloat((de+he).toFixed(Math.min(ue,20)))},0)}),h$1(h$1("tfoot",[h$1("tr",{},[...n.map((re,ie)=>h$1("td",{key:ie,colspan:re.colSpan,rowspan:re.rowSpan,class:r(n,ie),style:t(re,ie)},[h$1("div",{class:["cell",re.labelClassName]},[V[ie]])]))])]))}});function useUtils(n){return{setCurrentRow:le=>{n.commit("setCurrentRow",le)},getSelectionRows:()=>n.getSelectionRows(),toggleRowSelection:(le,ue,de=!0)=>{n.toggleRowSelection(le,ue,!1,de),n.updateAllSelected()},clearSelection:()=>{n.clearSelection()},clearFilter:le=>{n.clearFilter(le)},toggleAllSelection:()=>{n.commit("toggleAllSelection")},toggleRowExpansion:(le,ue)=>{n.toggleRowExpansionAdapter(le,ue)},clearSort:()=>{n.clearSort()},sort:(le,ue)=>{n.commit("sort",{prop:le,order:ue})},updateKeyChildren:(le,ue)=>{n.updateKeyChildren(le,ue)}}}function useStyle(n,t,r,i){const g=ref(!1),$=ref(null),V=ref(!1),re=Lt=>{V.value=Lt},ie=ref({width:null,height:null,headerHeight:null}),ae=ref(!1),oe={display:"inline-block",verticalAlign:"middle"},le=ref(),ue=ref(0),de=ref(0),he=ref(0),pe=ref(0),_e=ref(0);watch(()=>n.height,Lt=>{t.setHeight(Lt??null)},{immediate:!0}),watch(()=>n.maxHeight,Lt=>{t.setMaxHeight(Lt??null)},{immediate:!0}),watch(()=>[n.currentRowKey,r.states.rowKey],([Lt,jt])=>{!unref(jt)||!unref(Lt)||r.setCurrentRowKey(`${Lt}`)},{immediate:!0}),watch(()=>n.data,Lt=>{i.store.commit("setData",Lt)},{immediate:!0,deep:!0}),watchEffect(()=>{n.expandRowKeys&&r.setExpandRowKeysAdapter(n.expandRowKeys)});const Ce=()=>{i.store.commit("setHoverRow",null),i.hoverState&&(i.hoverState=null)},xe=(Lt,jt)=>{const{pixelX:hn,pixelY:vn}=jt;Math.abs(hn)>=Math.abs(vn)&&(i.refs.bodyWrapper.scrollLeft+=jt.pixelX/5)},Ie=computed(()=>n.height||n.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),Ne=computed(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),Oe=()=>{Ie.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(Fe)};onMounted(async()=>{await nextTick(),r.updateColumns(),ze(),requestAnimationFrame(Oe);const Lt=i.vnode.el,jt=i.refs.headerWrapper;n.flexible&&Lt&&Lt.parentElement&&(Lt.parentElement.style.minWidth="0"),ie.value={width:le.value=Lt.offsetWidth,height:Lt.offsetHeight,headerHeight:n.showHeader&&jt?jt.offsetHeight:null},r.states.columns.value.forEach(hn=>{hn.filteredValue&&hn.filteredValue.length&&i.store.commit("filterChange",{column:hn,values:hn.filteredValue,silent:!0})}),i.$ready=!0});const $e=(Lt,jt)=>{if(!Lt)return;const hn=Array.from(Lt.classList).filter(vn=>!vn.startsWith("is-scrolling-"));hn.push(t.scrollX.value?jt:"is-scrolling-none"),Lt.className=hn.join(" ")},Ve=Lt=>{const{tableWrapper:jt}=i.refs;$e(jt,Lt)},Ue=Lt=>{const{tableWrapper:jt}=i.refs;return!!(jt&&jt.classList.contains(Lt))},Fe=function(){if(!i.refs.scrollBarRef)return;if(!t.scrollX.value){const Cn="is-scrolling-none";Ue(Cn)||Ve(Cn);return}const Lt=i.refs.scrollBarRef.wrapRef;if(!Lt)return;const{scrollLeft:jt,offsetWidth:hn,scrollWidth:vn}=Lt,{headerWrapper:_n,footerWrapper:wn}=i.refs;_n&&(_n.scrollLeft=jt),wn&&(wn.scrollLeft=jt);const bn=vn-hn-1;jt>=bn?Ve("is-scrolling-right"):Ve(jt===0?"is-scrolling-left":"is-scrolling-middle")},ze=()=>{i.refs.scrollBarRef&&(i.refs.scrollBarRef.wrapRef&&useEventListener(i.refs.scrollBarRef.wrapRef,"scroll",Fe,{passive:!0}),n.fit?useResizeObserver(i.vnode.el,Pt):useEventListener(window,"resize",Pt),useResizeObserver(i.refs.tableInnerWrapper,()=>{var Lt,jt;Pt(),(jt=(Lt=i.refs)==null?void 0:Lt.scrollBarRef)==null||jt.update()}))},Pt=()=>{var Lt,jt,hn,vn;const _n=i.vnode.el;if(!i.$ready||!_n)return;let wn=!1;const{width:bn,height:Cn,headerHeight:Sn}=ie.value,Tn=le.value=_n.offsetWidth;bn!==Tn&&(wn=!0);const En=_n.offsetHeight;(n.height||Ie.value)&&Cn!==En&&(wn=!0);const kn=n.tableLayout==="fixed"?i.refs.headerWrapper:(Lt=i.refs.tableHeaderRef)==null?void 0:Lt.$el;n.showHeader&&(kn==null?void 0:kn.offsetHeight)!==Sn&&(wn=!0),ue.value=((jt=i.refs.tableWrapper)==null?void 0:jt.scrollHeight)||0,he.value=(kn==null?void 0:kn.scrollHeight)||0,pe.value=((hn=i.refs.footerWrapper)==null?void 0:hn.offsetHeight)||0,_e.value=((vn=i.refs.appendWrapper)==null?void 0:vn.offsetHeight)||0,de.value=ue.value-he.value-pe.value-_e.value,wn&&(ie.value={width:Tn,height:En,headerHeight:n.showHeader&&(kn==null?void 0:kn.offsetHeight)||0},Oe())},qe=useFormSize(),Et=computed(()=>{const{bodyWidth:Lt,scrollY:jt,gutterWidth:hn}=t;return Lt.value?`${Lt.value-(jt.value?hn:0)}px`:""}),kt=computed(()=>n.maxHeight?"fixed":n.tableLayout),At=computed(()=>{if(n.data&&n.data.length)return;let Lt="100%";n.height&&de.value&&(Lt=`${de.value}px`);const jt=le.value;return{width:jt?`${jt}px`:"",height:Lt}}),Dt=computed(()=>n.height?{height:"100%"}:n.maxHeight?Number.isNaN(Number(n.maxHeight))?{maxHeight:`calc(${n.maxHeight} - ${he.value+pe.value}px)`}:{maxHeight:`${+n.maxHeight-he.value-pe.value}px`}:{});return{isHidden:g,renderExpanded:$,setDragVisible:re,isGroup:ae,handleMouseLeave:Ce,handleHeaderFooterMousewheel:xe,tableSize:qe,emptyBlockStyle:At,resizeProxyVisible:V,bodyWidth:Et,resizeState:ie,doLayout:Oe,tableBodyStyles:Ne,tableLayout:kt,scrollbarViewStyle:oe,scrollbarStyle:Dt}}function useKeyRender(n){let t;const r=()=>{const g=n.vnode.el.querySelector(".hidden-columns"),$={childList:!0,subtree:!0},V=n.store.states.updateOrderFns;t=new MutationObserver(()=>{V.forEach(re=>re())}),t.observe(g,$)};onMounted(()=>{r()}),onUnmounted(()=>{t==null||t.disconnect()})}var defaultProps$2={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",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function hColgroup(n){const t=n.tableLayout==="auto";let r=n.columns||[];t&&r.every(({width:g})=>isUndefined$1(g))&&(r=[]);const i=g=>{const $={key:`${n.tableLayout}_${g.id}`,style:{},name:void 0};return t?$.style={width:`${g.width}px`}:$.name=g.id,$};return h$1("colgroup",{},r.map(g=>h$1("col",i(g))))}hColgroup.props=["columns","tableLayout"];const useScrollbar$1=()=>{const n=ref(),t=($,V)=>{const re=n.value;re&&re.scrollTo($,V)},r=($,V)=>{const re=n.value;re&&isNumber$2(V)&&["Top","Left"].includes($)&&re[`setScroll${$}`](V)};return{scrollBarRef:n,scrollTo:t,setScrollTop:$=>r("Top",$),setScrollLeft:$=>r("Left",$)}};var v=!1,o,f,s,u,d,N,l,p,m$1,w$1,D$1,x$1,E$1,M,F;function a(){if(!v){v=!0;var n=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(n),r=/(Mac OS X)|(Windows)|(Linux)/.exec(n);if(x$1=/\b(iPhone|iP[ao]d)/.exec(n),E$1=/\b(iP[ao]d)/.exec(n),w$1=/Android/i.exec(n),M=/FBAN\/\w+;/i.exec(n),F=/Mobile/i.exec(n),D$1=!!/Win64/.exec(n),t){o=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(n);N=i?parseFloat(i[1])+4:o,f=t[2]?parseFloat(t[2]):NaN,s=t[3]?parseFloat(t[3]):NaN,u=t[4]?parseFloat(t[4]):NaN,u?(t=/(?:Chrome\/(\d+\.\d+))/.exec(n),d=t&&t[1]?parseFloat(t[1]):NaN):d=NaN}else o=f=s=d=u=NaN;if(r){if(r[1]){var g=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(n);l=g?parseFloat(g[1].replace("_",".")):!0}else l=!1;p=!!r[2],m$1=!!r[3]}else l=p=m$1=!1}}var _$1={ie:function(){return a()||o},ieCompatibilityMode:function(){return a()||N>o},ie64:function(){return _$1.ie()&&D$1},firefox:function(){return a()||f},opera:function(){return a()||s},webkit:function(){return a()||u},safari:function(){return _$1.webkit()},chrome:function(){return a()||d},windows:function(){return a()||p},osx:function(){return a()||l},linux:function(){return a()||m$1},iphone:function(){return a()||x$1},mobile:function(){return a()||x$1||E$1||w$1||F},nativeApp:function(){return a()||M},android:function(){return a()||w$1},ipad:function(){return a()||E$1}},A$1=_$1,c=!!(typeof window<"u"&&window.document&&window.document.createElement),U$1={canUseDOM:c,canUseWorkers:typeof Worker<"u",canUseEventListeners:c&&!!(window.addEventListener||window.attachEvent),canUseViewport:c&&!!window.screen,isInWorker:!c},h=U$1,X;h.canUseDOM&&(X=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function S$1(n,t){if(!h.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+n,i=r in document;if(!i){var g=document.createElement("div");g.setAttribute(r,"return;"),i=typeof g[r]=="function"}return!i&&X&&n==="wheel"&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}var b$1=S$1,O=10,I=40,P$1=800;function T$1(n){var t=0,r=0,i=0,g=0;return"detail"in n&&(r=n.detail),"wheelDelta"in n&&(r=-n.wheelDelta/120),"wheelDeltaY"in n&&(r=-n.wheelDeltaY/120),"wheelDeltaX"in n&&(t=-n.wheelDeltaX/120),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(t=r,r=0),i=t*O,g=r*O,"deltaY"in n&&(g=n.deltaY),"deltaX"in n&&(i=n.deltaX),(i||g)&&n.deltaMode&&(n.deltaMode==1?(i*=I,g*=I):(i*=P$1,g*=P$1)),i&&!t&&(t=i<1?-1:1),g&&!r&&(r=g<1?-1:1),{spinX:t,spinY:r,pixelX:i,pixelY:g}}T$1.getEventType=function(){return A$1.firefox()?"DOMMouseScroll":b$1("wheel")?"wheel":"mousewheel"};var Y=T$1;/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @param {?boolean} capture Check if the capture phase is supported. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */const SCOPE$3="_Mousewheel",mousewheel=function(n,t){if(n&&n.addEventListener){removeWheelHandler(n);const r=function(i){const g=Y(i);t&&Reflect.apply(t,this,[i,g])};n[SCOPE$3]={wheelHandler:r},n.addEventListener("wheel",r,{passive:!0})}},removeWheelHandler=n=>{var t;(t=n[SCOPE$3])!=null&&t.wheelHandler&&(n.removeEventListener("wheel",n[SCOPE$3].wheelHandler),n[SCOPE$3]=null)},Mousewheel={beforeMount(n,t){mousewheel(n,t.value)},unmounted(n){removeWheelHandler(n)},updated(n,t){t.value!==t.oldValue&&mousewheel(n,t.value)}};let tableIdSeed=1;const _sfc_main$10=defineComponent({name:"ElTable",directives:{Mousewheel},components:{TableHeader,TableBody,TableFooter,ElScrollbar,hColgroup},props:defaultProps$2,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","scroll"],setup(n){const{t}=useLocale(),r=useNamespace("table"),i=getCurrentInstance();provide(TABLE_INJECTION_KEY,i);const g=createStore(i,n);i.store=g;const $=new TableLayout({store:i.store,table:i,fit:n.fit,showHeader:n.showHeader});i.layout=$;const V=computed(()=>(g.states.data.value||[]).length===0),{setCurrentRow:re,getSelectionRows:ie,toggleRowSelection:ae,clearSelection:oe,clearFilter:le,toggleAllSelection:ue,toggleRowExpansion:de,clearSort:he,sort:pe,updateKeyChildren:_e}=useUtils(g),{isHidden:Ce,renderExpanded:xe,setDragVisible:Ie,isGroup:Ne,handleMouseLeave:Oe,handleHeaderFooterMousewheel:$e,tableSize:Ve,emptyBlockStyle:Ue,resizeProxyVisible:Fe,bodyWidth:ze,resizeState:Pt,doLayout:qe,tableBodyStyles:Et,tableLayout:kt,scrollbarViewStyle:At,scrollbarStyle:Dt}=useStyle(n,$,g,i),{scrollBarRef:Lt,scrollTo:jt,setScrollLeft:hn,setScrollTop:vn}=useScrollbar$1(),_n=debounce(qe,50),wn=`${r.namespace.value}-table_${tableIdSeed++}`;i.tableId=wn,i.state={isGroup:Ne,resizeState:Pt,doLayout:qe,debouncedUpdateLayout:_n};const bn=computed(()=>{var Tn;return(Tn=n.sumText)!=null?Tn:t("el.table.sumText")}),Cn=computed(()=>{var Tn;return(Tn=n.emptyText)!=null?Tn:t("el.table.emptyText")}),Sn=computed(()=>convertToRows(g.states.originColumns.value)[0]);return useKeyRender(i),onBeforeUnmount(()=>{_n.cancel()}),{ns:r,layout:$,store:g,columns:Sn,handleHeaderFooterMousewheel:$e,handleMouseLeave:Oe,tableId:wn,tableSize:Ve,isHidden:Ce,isEmpty:V,renderExpanded:xe,resizeProxyVisible:Fe,resizeState:Pt,isGroup:Ne,bodyWidth:ze,tableBodyStyles:Et,emptyBlockStyle:Ue,debouncedUpdateLayout:_n,setCurrentRow:re,getSelectionRows:ie,toggleRowSelection:ae,clearSelection:oe,clearFilter:le,toggleAllSelection:ue,toggleRowExpansion:de,clearSort:he,doLayout:qe,sort:pe,updateKeyChildren:_e,t,setDragVisible:Ie,context:i,computedSumText:bn,computedEmptyText:Cn,tableLayout:kt,scrollbarViewStyle:At,scrollbarStyle:Dt,scrollBarRef:Lt,scrollTo:jt,setScrollLeft:hn,setScrollTop:vn,allowDragLastColumn:n.allowDragLastColumn}}}),_hoisted_1$E=["data-prefix"],_hoisted_2$s={ref:"hiddenColumns",class:"hidden-columns"};function _sfc_render$3(n,t,r,i,g,$){const V=resolveComponent("hColgroup"),re=resolveComponent("table-header"),ie=resolveComponent("table-body"),ae=resolveComponent("table-footer"),oe=resolveComponent("el-scrollbar"),le=resolveDirective("mousewheel");return openBlock(),createElementBlock("div",{ref:"tableWrapper",class:normalizeClass([{[n.ns.m("fit")]:n.fit,[n.ns.m("striped")]:n.stripe,[n.ns.m("border")]:n.border||n.isGroup,[n.ns.m("hidden")]:n.isHidden,[n.ns.m("group")]:n.isGroup,[n.ns.m("fluid-height")]:n.maxHeight,[n.ns.m("scrollable-x")]:n.layout.scrollX.value,[n.ns.m("scrollable-y")]:n.layout.scrollY.value,[n.ns.m("enable-row-hover")]:!n.store.states.isComplex.value,[n.ns.m("enable-row-transition")]:(n.store.states.data.value||[]).length!==0&&(n.store.states.data.value||[]).length<100,"has-footer":n.showSummary},n.ns.m(n.tableSize),n.className,n.ns.b(),n.ns.m(`layout-${n.tableLayout}`)]),style:normalizeStyle$1(n.style),"data-prefix":n.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...ue)=>n.handleMouseLeave&&n.handleMouseLeave(...ue))},[createBaseVNode("div",{ref:"tableInnerWrapper",class:normalizeClass(n.ns.e("inner-wrapper"))},[createBaseVNode("div",_hoisted_2$s,[renderSlot(n.$slots,"default")],512),n.showHeader&&n.tableLayout==="fixed"?withDirectives((openBlock(),createElementBlock("div",{key:0,ref:"headerWrapper",class:normalizeClass(n.ns.e("header-wrapper"))},[createBaseVNode("table",{ref:"tableHeader",class:normalizeClass(n.ns.e("header")),style:normalizeStyle$1(n.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[createVNode$1(V,{columns:n.store.states.columns.value,"table-layout":n.tableLayout},null,8,["columns","table-layout"]),createVNode$1(re,{ref:"tableHeaderRef",border:n.border,"default-sort":n.defaultSort,store:n.store,"append-filter-panel-to":n.appendFilterPanelTo,"allow-drag-last-column":n.allowDragLastColumn,onSetDragVisible:n.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[le,n.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"bodyWrapper",class:normalizeClass(n.ns.e("body-wrapper"))},[createVNode$1(oe,{ref:"scrollBarRef","view-style":n.scrollbarViewStyle,"wrap-style":n.scrollbarStyle,always:n.scrollbarAlwaysOn,tabindex:n.scrollbarTabindex,native:n.nativeScrollbar,onScroll:t[0]||(t[0]=ue=>n.$emit("scroll",ue))},{default:withCtx(()=>[createBaseVNode("table",{ref:"tableBody",class:normalizeClass(n.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:normalizeStyle$1({width:n.bodyWidth,tableLayout:n.tableLayout})},[createVNode$1(V,{columns:n.store.states.columns.value,"table-layout":n.tableLayout},null,8,["columns","table-layout"]),n.showHeader&&n.tableLayout==="auto"?(openBlock(),createBlock(re,{key:0,ref:"tableHeaderRef",class:normalizeClass(n.ns.e("body-header")),border:n.border,"default-sort":n.defaultSort,store:n.store,"append-filter-panel-to":n.appendFilterPanelTo,onSetDragVisible:n.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):createCommentVNode("v-if",!0),createVNode$1(ie,{context:n.context,highlight:n.highlightCurrentRow,"row-class-name":n.rowClassName,"tooltip-effect":n.tooltipEffect,"tooltip-options":n.tooltipOptions,"row-style":n.rowStyle,store:n.store,stripe:n.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),n.showSummary&&n.tableLayout==="auto"?(openBlock(),createBlock(ae,{key:1,class:normalizeClass(n.ns.e("body-footer")),border:n.border,"default-sort":n.defaultSort,store:n.store,"sum-text":n.computedSumText,"summary-method":n.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):createCommentVNode("v-if",!0)],6),n.isEmpty?(openBlock(),createElementBlock("div",{key:0,ref:"emptyBlock",style:normalizeStyle$1(n.emptyBlockStyle),class:normalizeClass(n.ns.e("empty-block"))},[createBaseVNode("span",{class:normalizeClass(n.ns.e("empty-text"))},[renderSlot(n.$slots,"empty",{},()=>[createTextVNode(toDisplayString(n.computedEmptyText),1)])],2)],6)):createCommentVNode("v-if",!0),n.$slots.append?(openBlock(),createElementBlock("div",{key:1,ref:"appendWrapper",class:normalizeClass(n.ns.e("append-wrapper"))},[renderSlot(n.$slots,"append")],2)):createCommentVNode("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),n.showSummary&&n.tableLayout==="fixed"?withDirectives((openBlock(),createElementBlock("div",{key:1,ref:"footerWrapper",class:normalizeClass(n.ns.e("footer-wrapper"))},[createBaseVNode("table",{class:normalizeClass(n.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:normalizeStyle$1(n.tableBodyStyles)},[createVNode$1(V,{columns:n.store.states.columns.value,"table-layout":n.tableLayout},null,8,["columns","table-layout"]),createVNode$1(ae,{border:n.border,"default-sort":n.defaultSort,store:n.store,"sum-text":n.computedSumText,"summary-method":n.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[vShow,!n.isEmpty],[le,n.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),n.border||n.isGroup?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(n.ns.e("border-left-patch"))},null,2)):createCommentVNode("v-if",!0)],2),withDirectives(createBaseVNode("div",{ref:"resizeProxy",class:normalizeClass(n.ns.e("column-resize-proxy"))},null,2),[[vShow,n.resizeProxyVisible]])],46,_hoisted_1$E)}var Table$1=_export_sfc(_sfc_main$10,[["render",_sfc_render$3],["__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=n=>defaultClassNames[n]||"",cellForced={selection:{renderHeader({store:n}){var t;function r(){return n.states.data.value&&n.states.data.value.length===0}return h$1(ElCheckbox,{disabled:r(),size:n.states.tableSize.value,indeterminate:n.states.selection.value.length>0&&!n.states.isAllSelected.value,"onUpdate:modelValue":(t=n.toggleAllSelection)!=null?t:void 0,modelValue:n.states.isAllSelected.value,ariaLabel:n.t("el.table.selectAllLabel")})},renderCell({row:n,column:t,store:r,$index:i}){return h$1(ElCheckbox,{disabled:t.selectable?!t.selectable.call(null,n,i):!1,size:r.states.tableSize.value,onChange:()=>{r.commit("rowSelectedChanged",n)},onClick:g=>g.stopPropagation(),modelValue:r.isSelected(n),ariaLabel:r.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:n}){return n.label||"#"},renderCell({column:n,$index:t}){let r=t+1;const i=n.index;return isNumber$2(i)?r=t+i:isFunction$4(i)&&(r=i(t)),h$1("div",{},[r])},sortable:!1},expand:{renderHeader({column:n}){return n.label||""},renderCell({column:n,row:t,store:r,expanded:i}){const{ns:g}=r,$=[g.e("expand-icon")];!n.renderExpand&&i&&$.push(g.em("expand-icon","expanded"));const V=function(re){re.stopPropagation(),r.toggleRowExpansion(t)};return h$1("button",{type:"button","aria-label":r.t(i?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":i,class:$,onClick:V},{default:()=>n.renderExpand?[n.renderExpand({expanded:i})]:[h$1(ElIcon,null,{default:()=>[h$1(arrow_right_default)]})]})},sortable:!1,resizable:!1}};function defaultRenderCell({row:n,column:t,$index:r}){var i;const g=t.property,$=g&&getProp(n,g).value;return t&&t.formatter?t.formatter(n,t,$,r):((i=$==null?void 0:$.toString)==null?void 0:i.call($))||""}function treeCellPrefix({row:n,treeNode:t,store:r},i=!1){const{ns:g}=r;if(!t)return i?[h$1("span",{class:g.e("placeholder")})]:null;const $=[],V=function(re){re.stopPropagation(),!t.loading&&r.loadOrToggle(n)};if(t.indent&&$.push(h$1("span",{class:g.e("indent"),style:{"padding-left":`${t.indent}px`}})),isBoolean$1(t.expanded)&&!t.noLazyChildren){const re=[g.e("expand-icon"),t.expanded?g.em("expand-icon","expanded"):""];let ie=arrow_right_default;t.loading&&(ie=loading_default),$.push(h$1("button",{type:"button","aria-label":r.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:re,onClick:V},{default:()=>[h$1(ElIcon,{class:g.is("loading",t.loading)},{default:()=>[h$1(ie)]})]}))}else $.push(h$1("span",{class:g.e("placeholder")}));return $}function getAllAliases(n,t){return n.reduce((r,i)=>(r[i]=i,r),t)}function useWatcher(n,t){const r=getCurrentInstance();return{registerComplexWatchers:()=>{const $=["fixed"],V={realWidth:"width",realMinWidth:"minWidth"},re=getAllAliases($,V);Object.keys(re).forEach(ie=>{const ae=V[ie];hasOwn$1(t,ae)&&watch(()=>t[ae],oe=>{let le=oe;ae==="width"&&ie==="realWidth"&&(le=parseWidth(oe)),ae==="minWidth"&&ie==="realMinWidth"&&(le=parseMinWidth(oe)),r.columnConfig.value[ae]=le,r.columnConfig.value[ie]=le;const ue=ae==="fixed";n.value.store.scheduleLayout(ue)})})},registerNormalWatchers:()=>{const $=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],V=["showOverflowTooltip"],re={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},ie=getAllAliases($,re);Object.keys(ie).forEach(ae=>{const oe=re[ae];hasOwn$1(t,oe)&&watch(()=>t[oe],le=>{r.columnConfig.value[ae]=le,(ae==="filters"||ae==="filterMethod")&&(r.columnConfig.value.filterable=!!(r.columnConfig.value.filters||r.columnConfig.value.filterMethod))})}),V.forEach(ae=>{hasOwn$1(n.value.props,ae)&&watch(()=>n.value.props[ae],oe=>{r.columnConfig.value.type!=="selection"&&isUndefined$1(t[ae])&&(r.columnConfig.value[ae]=oe)})})}}}function useRender(n,t,r){const i=getCurrentInstance(),g=ref(""),$=ref(!1),V=ref(),re=ref(),ie=useNamespace("table");watchEffect(()=>{V.value=n.align?`is-${n.align}`:null,V.value}),watchEffect(()=>{re.value=n.headerAlign?`is-${n.headerAlign}`:V.value,re.value});const ae=computed(()=>{let Ne=i.vnode.vParent||i.parent;for(;Ne&&!Ne.tableId&&!Ne.columnId;)Ne=Ne.vnode.vParent||Ne.parent;return Ne}),oe=computed(()=>{const{store:Ne}=i.parent;if(!Ne)return!1;const{treeData:Oe}=Ne.states,$e=Oe.value;return $e&&Object.keys($e).length>0}),le=ref(parseWidth(n.width)),ue=ref(parseMinWidth(n.minWidth)),de=Ne=>(le.value&&(Ne.width=le.value),ue.value&&(Ne.minWidth=ue.value),!le.value&&ue.value&&(Ne.width=void 0),Ne.minWidth||(Ne.minWidth=80),Ne.realWidth=Number(isUndefined$1(Ne.width)?Ne.minWidth:Ne.width),Ne),he=Ne=>{const Oe=Ne.type,$e=cellForced[Oe]||{};Object.keys($e).forEach(Ue=>{const Fe=$e[Ue];Ue!=="className"&&!isUndefined$1(Fe)&&(Ne[Ue]=Fe)});const Ve=getDefaultClassName(Oe);if(Ve){const Ue=`${unref(ie.namespace)}-${Ve}`;Ne.className=Ne.className?`${Ne.className} ${Ue}`:Ue}return Ne},pe=Ne=>{isArray$5(Ne)?Ne.forEach($e=>Oe($e)):Oe(Ne);function Oe($e){var Ve;((Ve=$e==null?void 0:$e.type)==null?void 0:Ve.name)==="ElTableColumn"&&($e.vParent=i)}};return{columnId:g,realAlign:V,isSubColumn:$,realHeaderAlign:re,columnOrTableParent:ae,setColumnWidth:de,setColumnForcedProps:he,setColumnRenders:Ne=>{n.renderHeader||Ne.type!=="selection"&&(Ne.renderHeader=$e=>{if(i.columnConfig.value.label,t.header){const Ve=t.header($e);if(ensureValidVNode(Ve))return h$1(Fragment,Ve)}return createTextVNode(Ne.label)}),t["filter-icon"]&&(Ne.renderFilterIcon=$e=>renderSlot(t,"filter-icon",$e)),t.expand&&(Ne.renderExpand=$e=>renderSlot(t,"expand",$e));let Oe=Ne.renderCell;return Ne.type==="expand"?(Ne.renderCell=$e=>h$1("div",{class:"cell"},[Oe($e)]),r.value.renderExpanded=$e=>t.default?t.default($e):t.default):(Oe=Oe||defaultRenderCell,Ne.renderCell=$e=>{let Ve=null;if(t.default){const Et=t.default($e);Ve=Et.some(kt=>kt.type!==Comment)?Et:Oe($e)}else Ve=Oe($e);const{columns:Ue}=r.value.store.states,Fe=Ue.value.findIndex(Et=>Et.type==="default"),ze=oe.value&&$e.cellIndex===Fe,Pt=treeCellPrefix($e,ze),qe={class:"cell",style:{}};return Ne.showOverflowTooltip&&(qe.class=`${qe.class} ${unref(ie.namespace)}-tooltip`,qe.style={width:`${($e.column.realWidth||Number($e.column.width))-1}px`}),pe(Ve),h$1("div",qe,[Pt,Ve])}),Ne},getPropsData:(...Ne)=>Ne.reduce((Oe,$e)=>(isArray$5($e)&&$e.forEach(Ve=>{Oe[Ve]=n[Ve]}),Oe),{}),getColumnElIndex:(Ne,Oe)=>Array.prototype.indexOf.call(Ne,Oe),updateColumnOrder:()=>{r.value.store.commit("updateColumnOrder",i.columnConfig.value)}}}var defaultProps$1={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},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:n=>n.every(t=>["ascending","descending",null].includes(t))}};let columnIdSeed=1;var ElTableColumn$1=defineComponent({name:"ElTableColumn",components:{ElCheckbox},props:defaultProps$1,setup(n,{slots:t}){const r=getCurrentInstance(),i=ref({}),g=computed(()=>{let Ie=r.parent;for(;Ie&&!Ie.tableId;)Ie=Ie.parent;return Ie}),{registerNormalWatchers:$,registerComplexWatchers:V}=useWatcher(g,n),{columnId:re,isSubColumn:ie,realHeaderAlign:ae,columnOrTableParent:oe,setColumnWidth:le,setColumnForcedProps:ue,setColumnRenders:de,getPropsData:he,getColumnElIndex:pe,realAlign:_e,updateColumnOrder:Ce}=useRender(n,t,g),xe=oe.value;re.value=`${"tableId"in xe&&xe.tableId||"columnId"in xe&&xe.columnId}_column_${columnIdSeed++}`,onBeforeMount(()=>{ie.value=g.value!==xe;const Ie=n.type||"default",Ne=n.sortable===""?!0:n.sortable,Oe=Ie==="selection"?!1:isUndefined$1(n.showOverflowTooltip)?xe.props.showOverflowTooltip:n.showOverflowTooltip,$e=isUndefined$1(n.tooltipFormatter)?xe.props.tooltipFormatter:n.tooltipFormatter,Ve={...cellStarts[Ie],id:re.value,type:Ie,property:n.prop||n.property,align:_e,headerAlign:ae,showOverflowTooltip:Oe,tooltipFormatter:$e,filterable:n.filters||n.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:Ne,index:n.index,rawColumnKey:r.vnode.key};let qe=he(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);qe=mergeOptions$1(Ve,qe),qe=compose(de,le,ue)(qe),i.value=qe,$(),V()}),onMounted(()=>{var Ie,Ne;const Oe=oe.value,$e=ie.value?(Ie=Oe.vnode.el)==null?void 0:Ie.children:(Ne=Oe.refs.hiddenColumns)==null?void 0:Ne.children,Ve=()=>pe($e||[],r.vnode.el);i.value.getColumnIndex=Ve,Ve()>-1&&g.value.store.commit("insertColumn",i.value,ie.value?"columnConfig"in Oe&&Oe.columnConfig.value:null,Ce)}),onBeforeUnmount(()=>{const Ie=i.value.getColumnIndex;(Ie?Ie():-1)>-1&&g.value.store.commit("removeColumn",i.value,ie.value?"columnConfig"in xe&&xe.columnConfig.value:null,Ce)}),r.columnId=re.value,r.columnConfig=i},render(){var n,t,r;try{const i=(t=(n=this.$slots).default)==null?void 0:t.call(n,{row:{},column:{},$index:-1}),g=[];if(isArray$5(i))for(const V of i)((r=V.type)==null?void 0:r.name)==="ElTableColumn"||V.shapeFlag&2?g.push(V):V.type===Fragment&&isArray$5(V.children)&&V.children.forEach(re=>{(re==null?void 0:re.patchFlag)!==1024&&!isString$2(re==null?void 0:re.children)&&g.push(re)});return h$1("div",g)}catch{return h$1("div",[])}}});const ElTable=withInstall(Table$1,{TableColumn:ElTableColumn$1}),ElTableColumn=withNoopInstall(ElTableColumn$1);var SortOrder=(n=>(n.ASC="asc",n.DESC="desc",n))(SortOrder||{}),Alignment=(n=>(n.LEFT="left",n.CENTER="center",n.RIGHT="right",n))(Alignment||{}),FixedDir=(n=>(n.LEFT="left",n.RIGHT="right",n))(FixedDir||{});const oppositeOrderMap={asc:"desc",desc:"asc"},placeholderSign=Symbol("placeholder"),calcColumnStyle=(n,t,r)=>{var i,g,$;const V={flexGrow:0,flexShrink:0,...r?{}:{flexGrow:(i=n.flexGrow)!=null?i:0,flexShrink:(g=n.flexShrink)!=null?g:1}},re={...($=n.style)!=null?$:{},...V,flexBasis:"auto",width:n.width};return t||(n.maxWidth&&(re.maxWidth=n.maxWidth),n.minWidth&&(re.minWidth=n.minWidth)),re};function useColumns(n,t,r){const i=computed(()=>unref(t).map((_e,Ce)=>{var xe,Ie;return{..._e,key:(Ie=(xe=_e.key)!=null?xe:_e.dataKey)!=null?Ie:Ce}})),g=computed(()=>unref(i).filter(_e=>!_e.hidden)),$=computed(()=>unref(g).filter(_e=>_e.fixed==="left"||_e.fixed===!0)),V=computed(()=>unref(g).filter(_e=>_e.fixed==="right")),re=computed(()=>unref(g).filter(_e=>!_e.fixed)),ie=computed(()=>{const _e=[];return unref($).forEach(Ce=>{_e.push({...Ce,placeholderSign})}),unref(re).forEach(Ce=>{_e.push(Ce)}),unref(V).forEach(Ce=>{_e.push({...Ce,placeholderSign})}),_e}),ae=computed(()=>unref($).length||unref(V).length),oe=computed(()=>unref(i).reduce((_e,Ce)=>(_e[Ce.key]=calcColumnStyle(Ce,unref(r),n.fixed),_e),{})),le=computed(()=>unref(g).reduce((_e,Ce)=>_e+Ce.width,0)),ue=_e=>unref(i).find(Ce=>Ce.key===_e),de=_e=>unref(oe)[_e],he=(_e,Ce)=>{_e.width=Ce};function pe(_e){var Ce;const{key:xe}=_e.currentTarget.dataset;if(!xe)return;const{sortState:Ie,sortBy:Ne}=n;let Oe=SortOrder.ASC;isObject$6(Ie)?Oe=oppositeOrderMap[Ie[xe]]:Oe=oppositeOrderMap[Ne.order],(Ce=n.onColumnSort)==null||Ce.call(n,{column:ue(xe),key:xe,order:Oe})}return{columns:i,columnsStyles:oe,columnsTotalWidth:le,fixedColumnsOnLeft:$,fixedColumnsOnRight:V,hasFixedColumns:ae,mainColumns:ie,normalColumns:re,visibleColumns:g,getColumn:ue,getColumnStyle:de,updateColumnWidth:he,onColumnSorted:pe}}const useScrollbar=(n,{mainTableRef:t,leftTableRef:r,rightTableRef:i,onMaybeEndReached:g})=>{const $=ref({scrollLeft:0,scrollTop:0});function V(de){var he,pe,_e;const{scrollTop:Ce}=de;(he=t.value)==null||he.scrollTo(de),(pe=r.value)==null||pe.scrollToTop(Ce),(_e=i.value)==null||_e.scrollToTop(Ce)}function re(de){$.value=de,V(de)}function ie(de){$.value.scrollTop=de,V(unref($))}function ae(de){var he,pe;$.value.scrollLeft=de,(pe=(he=t.value)==null?void 0:he.scrollTo)==null||pe.call(he,unref($))}function oe(de){var he;re(de),(he=n.onScroll)==null||he.call(n,de)}function le({scrollTop:de}){const{scrollTop:he}=unref($);de!==he&&ie(de)}function ue(de,he="auto"){var pe;(pe=t.value)==null||pe.scrollToRow(de,he)}return watch(()=>unref($).scrollTop,(de,he)=>{de>he&&g()}),{scrollPos:$,scrollTo:re,scrollToLeft:ae,scrollToTop:ie,scrollToRow:ue,onScroll:oe,onVerticalScroll:le}},useRow=(n,{mainTableRef:t,leftTableRef:r,rightTableRef:i,tableInstance:g,ns:$,isScrolling:V})=>{const re=getCurrentInstance(),{emit:ie}=re,ae=shallowRef(!1),oe=ref(n.defaultExpandedRowKeys||[]),le=ref(-1),ue=shallowRef(null),de=ref({}),he=ref({}),pe=shallowRef({}),_e=shallowRef({}),Ce=shallowRef({}),xe=computed(()=>isNumber$2(n.estimatedRowHeight));function Ie(ze){var Pt;(Pt=n.onRowsRendered)==null||Pt.call(n,ze),ze.rowCacheEnd>unref(le)&&(le.value=ze.rowCacheEnd)}function Ne({hovered:ze,rowKey:Pt}){if(V.value)return;g.vnode.el.querySelectorAll(`[rowkey="${String(Pt)}"]`).forEach(kt=>{ze?kt.classList.add($.is("hovered")):kt.classList.remove($.is("hovered"))})}function Oe({expanded:ze,rowData:Pt,rowIndex:qe,rowKey:Et}){var kt,At;const Dt=[...unref(oe)],Lt=Dt.indexOf(Et);ze?Lt===-1&&Dt.push(Et):Lt>-1&&Dt.splice(Lt,1),oe.value=Dt,ie("update:expandedRowKeys",Dt),(kt=n.onRowExpand)==null||kt.call(n,{expanded:ze,rowData:Pt,rowIndex:qe,rowKey:Et}),(At=n.onExpandedRowsChange)==null||At.call(n,Dt),g.vnode.el.querySelector(`.${$.is("hovered")}[rowkey="${String(Et)}"]`)&&nextTick(()=>Ne({hovered:!0,rowKey:Et}))}const $e=debounce(()=>{var ze,Pt,qe,Et;ae.value=!0,de.value={...unref(de),...unref(he)},Ve(unref(ue),!1),he.value={},ue.value=null,(ze=t.value)==null||ze.forceUpdate(),(Pt=r.value)==null||Pt.forceUpdate(),(qe=i.value)==null||qe.forceUpdate(),(Et=re.proxy)==null||Et.$forceUpdate(),ae.value=!1},0);function Ve(ze,Pt=!1){unref(xe)&&[t,r,i].forEach(qe=>{const Et=unref(qe);Et&&Et.resetAfterRowIndex(ze,Pt)})}function Ue(ze,Pt,qe){const Et=unref(ue);(Et===null||Et>qe)&&(ue.value=qe),he.value[ze]=Pt}function Fe({rowKey:ze,height:Pt,rowIndex:qe},Et){Et?Et===FixedDir.RIGHT?Ce.value[ze]=Pt:pe.value[ze]=Pt:_e.value[ze]=Pt;const kt=Math.max(...[pe,Ce,_e].map(At=>At.value[ze]||0));unref(de)[ze]!==kt&&(Ue(ze,kt,qe),$e())}return{expandedRowKeys:oe,lastRenderedRowIndex:le,isDynamic:xe,isResetting:ae,rowHeights:de,resetAfterIndex:Ve,onRowExpanded:Oe,onRowHovered:Ne,onRowsRendered:Ie,onRowHeightChange:Fe}},useData=(n,{expandedRowKeys:t,lastRenderedRowIndex:r,resetAfterIndex:i})=>{const g=ref({}),$=computed(()=>{const re={},{data:ie,rowKey:ae}=n,oe=unref(t);if(!oe||!oe.length)return ie;const le=[],ue=new Set;oe.forEach(he=>ue.add(he));let de=ie.slice();for(de.forEach(he=>re[he[ae]]=0);de.length>0;){const he=de.shift();le.push(he),ue.has(he[ae])&&isArray$5(he.children)&&he.children.length>0&&(de=[...he.children,...de],he.children.forEach(pe=>re[pe[ae]]=re[he[ae]]+1))}return g.value=re,le}),V=computed(()=>{const{data:re,expandColumnKey:ie}=n;return ie?unref($):re});return watch(V,(re,ie)=>{re!==ie&&(r.value=-1,i(0,!0))}),{data:V,depthMap:g}},sumReducer=(n,t)=>n+t,sum=n=>isArray$5(n)?n.reduce(sumReducer,0):n,tryCall=(n,t,r={})=>isFunction$4(n)?n(t):n??r,enforceUnit=n=>(["width","maxWidth","minWidth","height"].forEach(t=>{n[t]=addUnit(n[t])}),n),componentToSlot=n=>isVNode(n)?t=>h$1(n,t):n,useStyles=(n,{columnsTotalWidth:t,rowsHeight:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:g})=>{const $=computed(()=>{const{fixed:Ce,width:xe,vScrollbarSize:Ie}=n,Ne=xe-Ie;return Ce?Math.max(Math.round(unref(t)),Ne):Ne}),V=computed(()=>{const{height:Ce=0,maxHeight:xe=0,footerHeight:Ie,hScrollbarSize:Ne}=n;if(xe>0){const Oe=unref(ue),$e=unref(r),Ue=unref(le)+Oe+$e+Ne;return Math.min(Ue,xe-Ie)}return Ce-Ie}),re=computed(()=>{const{maxHeight:Ce}=n,xe=unref(V);if(isNumber$2(Ce)&&Ce>0)return xe;const Ie=unref(r)+unref(le)+unref(ue);return Math.min(xe,Ie)}),ie=Ce=>Ce.width,ae=computed(()=>sum(unref(i).map(ie))),oe=computed(()=>sum(unref(g).map(ie))),le=computed(()=>sum(n.headerHeight)),ue=computed(()=>{var Ce;return(((Ce=n.fixedData)==null?void 0:Ce.length)||0)*n.rowHeight}),de=computed(()=>unref(V)-unref(le)-unref(ue)),he=computed(()=>{const{style:Ce={},height:xe,width:Ie}=n;return enforceUnit({...Ce,height:xe,width:Ie})}),pe=computed(()=>enforceUnit({height:n.footerHeight})),_e=computed(()=>({top:addUnit(unref(le)),bottom:addUnit(n.footerHeight),width:addUnit(n.width)}));return{bodyWidth:$,fixedTableHeight:re,mainTableHeight:V,leftTableWidth:ae,rightTableWidth:oe,windowHeight:de,footerHeight:pe,emptyStyle:_e,rootStyle:he,headerHeight:le}};function useTable(n){const t=ref(),r=ref(),i=ref(),{columns:g,columnsStyles:$,columnsTotalWidth:V,fixedColumnsOnLeft:re,fixedColumnsOnRight:ie,hasFixedColumns:ae,mainColumns:oe,onColumnSorted:le}=useColumns(n,toRef$1(n,"columns"),toRef$1(n,"fixed")),{scrollTo:ue,scrollToLeft:de,scrollToTop:he,scrollToRow:pe,onScroll:_e,onVerticalScroll:Ce,scrollPos:xe}=useScrollbar(n,{mainTableRef:t,leftTableRef:r,rightTableRef:i,onMaybeEndReached:Nn}),Ie=useNamespace("table-v2"),Ne=getCurrentInstance(),Oe=shallowRef(!1),{expandedRowKeys:$e,lastRenderedRowIndex:Ve,isDynamic:Ue,isResetting:Fe,rowHeights:ze,resetAfterIndex:Pt,onRowExpanded:qe,onRowHeightChange:Et,onRowHovered:kt,onRowsRendered:At}=useRow(n,{mainTableRef:t,leftTableRef:r,rightTableRef:i,tableInstance:Ne,ns:Ie,isScrolling:Oe}),{data:Dt,depthMap:Lt}=useData(n,{expandedRowKeys:$e,lastRenderedRowIndex:Ve,resetAfterIndex:Pt}),jt=computed(()=>{const{estimatedRowHeight:Pn,rowHeight:On}=n,Hn=unref(Dt);return isNumber$2(Pn)?Object.values(unref(ze)).reduce((Xn,In)=>Xn+In,0):Hn.length*On}),{bodyWidth:hn,fixedTableHeight:vn,mainTableHeight:_n,leftTableWidth:wn,rightTableWidth:bn,windowHeight:Cn,footerHeight:Sn,emptyStyle:Tn,rootStyle:En,headerHeight:kn}=useStyles(n,{columnsTotalWidth:V,fixedColumnsOnLeft:re,fixedColumnsOnRight:ie,rowsHeight:jt}),$n=ref(),An=computed(()=>{const Pn=unref(Dt).length===0;return isArray$5(n.fixedData)?n.fixedData.length===0&&Pn:Pn});function xn(Pn){const{estimatedRowHeight:On,rowHeight:Hn,rowKey:Xn}=n;return On?unref(ze)[unref(Dt)[Pn][Xn]]||On:Hn}const Ln=ref(!1);function Nn(){const{onEndReached:Pn}=n;if(!Pn)return;const{scrollTop:On}=unref(xe),Hn=unref(jt),Xn=unref(Cn),In=Hn-(On+Xn)+n.hScrollbarSize;!Ln.value&&unref(Ve)>=0&&Hn<=On+unref(_n)-unref(kn)?(Ln.value=!0,Pn(In)):Ln.value=!1}return watch(()=>unref(jt),()=>Ln.value=!1),watch(()=>n.expandedRowKeys,Pn=>$e.value=Pn,{deep:!0}),{columns:g,containerRef:$n,mainTableRef:t,leftTableRef:r,rightTableRef:i,isDynamic:Ue,isResetting:Fe,isScrolling:Oe,hasFixedColumns:ae,columnsStyles:$,columnsTotalWidth:V,data:Dt,expandedRowKeys:$e,depthMap:Lt,fixedColumnsOnLeft:re,fixedColumnsOnRight:ie,mainColumns:oe,bodyWidth:hn,emptyStyle:Tn,rootStyle:En,footerHeight:Sn,mainTableHeight:_n,fixedTableHeight:vn,leftTableWidth:wn,rightTableWidth:bn,showEmpty:An,getRowHeight:xn,onColumnSorted:le,onRowHovered:kt,onRowExpanded:qe,onRowsRendered:At,onRowHeightChange:Et,scrollTo:ue,scrollToLeft:de,scrollToTop:he,scrollToRow:pe,onScroll:_e,onVerticalScroll:Ce}}const TableV2InjectionKey=Symbol("tableV2"),TABLE_V2_GRID_INJECTION_KEY="tableV2GridScrollLeft",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}),COMPONENT_NAME$8="ElTableV2Header",TableV2Header=defineComponent({name:COMPONENT_NAME$8,props:tableV2HeaderProps,setup(n,{slots:t,expose:r}){const i=useNamespace("table-v2"),g=inject(TABLE_V2_GRID_INJECTION_KEY),$=ref(),V=computed(()=>enforceUnit({width:n.width,height:n.height})),re=computed(()=>enforceUnit({width:n.rowWidth,height:n.height})),ie=computed(()=>castArray$1(unref(n.headerHeight))),ae=ue=>{const de=unref($);nextTick(()=>{de!=null&&de.scroll&&de.scroll({left:ue})})},oe=()=>{const ue=i.e("fixed-header-row"),{columns:de,fixedHeaderData:he,rowHeight:pe}=n;return he==null?void 0:he.map((_e,Ce)=>{var xe;const Ie=enforceUnit({height:pe,width:"100%"});return(xe=t.fixed)==null?void 0:xe.call(t,{class:ue,columns:de,rowData:_e,rowIndex:-(Ce+1),style:Ie})})},le=()=>{const ue=i.e("dynamic-header-row"),{columns:de}=n;return unref(ie).map((he,pe)=>{var _e;const Ce=enforceUnit({width:"100%",height:he});return(_e=t.dynamic)==null?void 0:_e.call(t,{class:ue,columns:de,headerIndex:pe,style:Ce})})};return onUpdated(()=>{g!=null&&g.value&&ae(g.value)}),r({scrollToLeft:ae}),()=>{if(!(n.height<=0))return createVNode$1("div",{ref:$,class:n.class,style:unref(V),role:"rowgroup"},[createVNode$1("div",{style:unref(re),class:i.e("header")},[le(),oe()])])}}});var Header$1=TableV2Header;const useGridWheel=({atXEndEdge:n,atXStartEdge:t,atYEndEdge:r,atYStartEdge:i},g)=>{let $=null,V=0,re=0;const ie=(oe,le)=>{const ue=oe<0&&t.value||oe>0&&n.value,de=le<0&&i.value||le>0&&r.value;return ue||de};return{hasReachedEdge:ie,onWheel:oe=>{cAF($);let le=oe.deltaX,ue=oe.deltaY;Math.abs(le)>Math.abs(ue)?ue=0:le=0,oe.shiftKey&&ue!==0&&(le=ue,ue=0),!ie(le,ue)&&(V+=le,re+=ue,oe.preventDefault(),$=rAF(()=>{g(V,re),V=0,re=0}))}}},useGridTouch=(n,t,r,i,g,$,V)=>{const re=ref(0),ie=ref(0);let ae,oe=0,le=0;const ue=he=>{cAF(ae),re.value=he.touches[0].clientX,ie.value=he.touches[0].clientY,oe=0,le=0},de=he=>{he.preventDefault(),cAF(ae),oe+=re.value-he.touches[0].clientX,le+=ie.value-he.touches[0].clientY,re.value=he.touches[0].clientX,ie.value=he.touches[0].clientY,ae=rAF(()=>{const pe=i.value-unref($),_e=g.value-unref(V),Ce=Math.min(t.value.scrollLeft+oe,pe),xe=Math.min(t.value.scrollTop+le,_e);r({scrollLeft:Ce,scrollTop:xe}),oe=0,le=0})};return useEventListener(n,"touchstart",ue,{passive:!0}),useEventListener(n,"touchmove",de,{passive:!1}),{touchStartX:re,touchStartY:ie,handleTouchStart:ue,handleTouchMove:de}},createGrid=({name:n,clearCache:t,getColumnPosition:r,getColumnStartIndexForOffset:i,getColumnStopIndexForStartIndex:g,getEstimatedTotalHeight:$,getEstimatedTotalWidth:V,getColumnOffset:re,getRowOffset:ie,getRowPosition:ae,getRowStartIndexForOffset:oe,getRowStopIndexForStartIndex:le,initCache:ue,injectToInstance:de,validateProps:he})=>defineComponent({name:n??"ElVirtualList",props:virtualizedGridProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(pe,{emit:_e,expose:Ce,slots:xe}){const Ie=useNamespace("vl");he(pe);const Ne=getCurrentInstance(),Oe=ref(ue(pe,Ne));de==null||de(Ne,Oe);const $e=ref(),Ve=ref(),Ue=ref(),Fe=ref(),ze=ref({isScrolling:!1,scrollLeft:isNumber$2(pe.initScrollLeft)?pe.initScrollLeft:0,scrollTop:isNumber$2(pe.initScrollTop)?pe.initScrollTop:0,updateRequested:!1,xAxisScrollDir:FORWARD,yAxisScrollDir:FORWARD}),Pt=useCache(),qe=computed(()=>Number.parseInt(`${pe.height}`,10)),Et=computed(()=>Number.parseInt(`${pe.width}`,10)),kt=computed(()=>{const{totalColumn:Zn,totalRow:Gn,columnCache:Rn}=pe,{isScrolling:Mn,xAxisScrollDir:Bn,scrollLeft:qn}=unref(ze);if(Zn===0||Gn===0)return[0,0,0,0];const zn=i(pe,qn,unref(Oe)),jn=g(pe,zn,qn,unref(Oe)),tr=!Mn||Bn===BACKWARD?Math.max(1,Rn):1,hr=!Mn||Bn===FORWARD?Math.max(1,Rn):1;return[Math.max(0,zn-tr),Math.max(0,Math.min(Zn-1,jn+hr)),zn,jn]}),At=computed(()=>{const{totalColumn:Zn,totalRow:Gn,rowCache:Rn}=pe,{isScrolling:Mn,yAxisScrollDir:Bn,scrollTop:qn}=unref(ze);if(Zn===0||Gn===0)return[0,0,0,0];const zn=oe(pe,qn,unref(Oe)),jn=le(pe,zn,qn,unref(Oe)),tr=!Mn||Bn===BACKWARD?Math.max(1,Rn):1,hr=!Mn||Bn===FORWARD?Math.max(1,Rn):1;return[Math.max(0,zn-tr),Math.max(0,Math.min(Gn-1,jn+hr)),zn,jn]}),Dt=computed(()=>$(pe,unref(Oe))),Lt=computed(()=>V(pe,unref(Oe))),jt=computed(()=>{var Zn;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:pe.direction,height:isNumber$2(pe.height)?`${pe.height}px`:pe.height,width:isNumber$2(pe.width)?`${pe.width}px`:pe.width},(Zn=pe.style)!=null?Zn:{}]}),hn=computed(()=>{const Zn=`${unref(Lt)}px`;return{height:`${unref(Dt)}px`,pointerEvents:unref(ze).isScrolling?"none":void 0,width:Zn,margin:0,boxSizing:"border-box"}}),vn=()=>{const{totalColumn:Zn,totalRow:Gn}=pe;if(Zn>0&&Gn>0){const[jn,tr,hr,ir]=unref(kt),[pr,rr,lr,Yn]=unref(At);_e(ITEM_RENDER_EVT,{columnCacheStart:jn,columnCacheEnd:tr,rowCacheStart:pr,rowCacheEnd:rr,columnVisibleStart:hr,columnVisibleEnd:ir,rowVisibleStart:lr,rowVisibleEnd:Yn})}const{scrollLeft:Rn,scrollTop:Mn,updateRequested:Bn,xAxisScrollDir:qn,yAxisScrollDir:zn}=unref(ze);_e(SCROLL_EVT,{xAxisScrollDir:qn,scrollLeft:Rn,yAxisScrollDir:zn,scrollTop:Mn,updateRequested:Bn})},_n=Zn=>{const{clientHeight:Gn,clientWidth:Rn,scrollHeight:Mn,scrollLeft:Bn,scrollTop:qn,scrollWidth:zn}=Zn.currentTarget,jn=unref(ze);if(jn.scrollTop===qn&&jn.scrollLeft===Bn)return;let tr=Bn;if(isRTL$1(pe.direction))switch(getRTLOffsetType()){case RTL_OFFSET_NAG:tr=-Bn;break;case RTL_OFFSET_POS_DESC:tr=zn-Rn-Bn;break}ze.value={...jn,isScrolling:!0,scrollLeft:tr,scrollTop:Math.max(0,Math.min(qn,Mn-Gn)),updateRequested:!0,xAxisScrollDir:getScrollDir(jn.scrollLeft,tr),yAxisScrollDir:getScrollDir(jn.scrollTop,qn)},nextTick(()=>Ln()),Nn(),vn()},wn=(Zn,Gn)=>{const Rn=unref(qe),Mn=(Dt.value-Rn)/Gn*Zn;Sn({scrollTop:Math.min(Dt.value-Rn,Mn)})},bn=(Zn,Gn)=>{const Rn=unref(Et),Mn=(Lt.value-Rn)/Gn*Zn;Sn({scrollLeft:Math.min(Lt.value-Rn,Mn)})},{onWheel:Cn}=useGridWheel({atXStartEdge:computed(()=>ze.value.scrollLeft<=0),atXEndEdge:computed(()=>ze.value.scrollLeft>=Lt.value-unref(Et)),atYStartEdge:computed(()=>ze.value.scrollTop<=0),atYEndEdge:computed(()=>ze.value.scrollTop>=Dt.value-unref(qe))},(Zn,Gn)=>{var Rn,Mn,Bn,qn;(Mn=(Rn=Ve.value)==null?void 0:Rn.onMouseUp)==null||Mn.call(Rn),(qn=(Bn=Ue.value)==null?void 0:Bn.onMouseUp)==null||qn.call(Bn);const zn=unref(Et),jn=unref(qe);Sn({scrollLeft:Math.min(ze.value.scrollLeft+Zn,Lt.value-zn),scrollTop:Math.min(ze.value.scrollTop+Gn,Dt.value-jn)})});useEventListener($e,"wheel",Cn,{passive:!1});const Sn=({scrollLeft:Zn=ze.value.scrollLeft,scrollTop:Gn=ze.value.scrollTop})=>{Zn=Math.max(Zn,0),Gn=Math.max(Gn,0);const Rn=unref(ze);Gn===Rn.scrollTop&&Zn===Rn.scrollLeft||(ze.value={...Rn,xAxisScrollDir:getScrollDir(Rn.scrollLeft,Zn),yAxisScrollDir:getScrollDir(Rn.scrollTop,Gn),scrollLeft:Zn,scrollTop:Gn,updateRequested:!0},nextTick(()=>Ln()),Nn(),vn())},{touchStartX:Tn,touchStartY:En,handleTouchStart:kn,handleTouchMove:$n}=useGridTouch($e,ze,Sn,Lt,Dt,Et,qe),An=(Zn=0,Gn=0,Rn=AUTO_ALIGNMENT)=>{const Mn=unref(ze);Gn=Math.max(0,Math.min(Gn,pe.totalColumn-1)),Zn=Math.max(0,Math.min(Zn,pe.totalRow-1));const Bn=getScrollBarWidth(Ie.namespace.value),qn=unref(Oe),zn=$(pe,qn),jn=V(pe,qn);Sn({scrollLeft:re(pe,Gn,Rn,Mn.scrollLeft,qn,jn>pe.width?Bn:0),scrollTop:ie(pe,Zn,Rn,Mn.scrollTop,qn,zn>pe.height?Bn:0)})},xn=(Zn,Gn)=>{const{columnWidth:Rn,direction:Mn,rowHeight:Bn}=pe,qn=Pt.value(t&&Rn,t&&Bn,t&&Mn),zn=`${Zn},${Gn}`;if(hasOwn$1(qn,zn))return qn[zn];{const[,jn]=r(pe,Gn,unref(Oe)),tr=unref(Oe),hr=isRTL$1(Mn),[ir,pr]=ae(pe,Zn,tr),[rr]=r(pe,Gn,tr);return qn[zn]={position:"absolute",left:hr?void 0:`${jn}px`,right:hr?`${jn}px`:void 0,top:`${pr}px`,height:`${ir}px`,width:`${rr}px`},qn[zn]}},Ln=()=>{ze.value.isScrolling=!1,nextTick(()=>{Pt.value(-1,null,null)})};onMounted(()=>{if(!isClient)return;const{initScrollLeft:Zn,initScrollTop:Gn}=pe,Rn=unref($e);Rn&&(isNumber$2(Zn)&&(Rn.scrollLeft=Zn),isNumber$2(Gn)&&(Rn.scrollTop=Gn)),vn()});const Nn=()=>{const{direction:Zn}=pe,{scrollLeft:Gn,scrollTop:Rn,updateRequested:Mn}=unref(ze),Bn=unref($e);if(Mn&&Bn){if(Zn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{Bn.scrollLeft=-Gn;break}case RTL_OFFSET_POS_ASC:{Bn.scrollLeft=Gn;break}default:{const{clientWidth:qn,scrollWidth:zn}=Bn;Bn.scrollLeft=zn-qn-Gn;break}}else Bn.scrollLeft=Math.max(0,Gn);Bn.scrollTop=Math.max(0,Rn)}},{resetAfterColumnIndex:Pn,resetAfterRowIndex:On,resetAfter:Hn}=Ne.proxy;Ce({windowRef:$e,innerRef:Fe,getItemStyleCache:Pt,touchStartX:Tn,touchStartY:En,handleTouchStart:kn,handleTouchMove:$n,scrollTo:Sn,scrollToItem:An,states:ze,resetAfterColumnIndex:Pn,resetAfterRowIndex:On,resetAfter:Hn});const Xn=()=>{const{scrollbarAlwaysOn:Zn,scrollbarStartGap:Gn,scrollbarEndGap:Rn,totalColumn:Mn,totalRow:Bn}=pe,qn=unref(Et),zn=unref(qe),jn=unref(Lt),tr=unref(Dt),{scrollLeft:hr,scrollTop:ir}=unref(ze),pr=h$1(ScrollBar,{ref:Ve,alwaysOn:Zn,startGap:Gn,endGap:Rn,class:Ie.e("horizontal"),clientSize:qn,layout:"horizontal",onScroll:bn,ratio:qn*100/jn,scrollFrom:hr/(jn-qn),total:Bn,visible:!0}),rr=h$1(ScrollBar,{ref:Ue,alwaysOn:Zn,startGap:Gn,endGap:Rn,class:Ie.e("vertical"),clientSize:zn,layout:"vertical",onScroll:wn,ratio:zn*100/tr,scrollFrom:ir/(tr-zn),total:Mn,visible:!0});return{horizontalScrollbar:pr,verticalScrollbar:rr}},In=()=>{var Zn;const[Gn,Rn]=unref(kt),[Mn,Bn]=unref(At),{data:qn,totalColumn:zn,totalRow:jn,useIsScrolling:tr,itemKey:hr}=pe,ir=[];if(jn>0&&zn>0)for(let pr=Mn;pr<=Bn;pr++)for(let rr=Gn;rr<=Rn;rr++){const lr=hr({columnIndex:rr,data:qn,rowIndex:pr});ir.push(h$1(Fragment,{key:lr},(Zn=xe.default)==null?void 0:Zn.call(xe,{columnIndex:rr,data:qn,isScrolling:tr?unref(ze).isScrolling:void 0,style:xn(pr,rr),rowIndex:pr})))}return ir},or=()=>{const Zn=resolveDynamicComponent(pe.innerElement),Gn=In();return[h$1(Zn,mergeProps(pe.innerProps,{style:unref(hn),ref:Fe}),isString$2(Zn)?Gn:{default:()=>Gn})]};return()=>{const Zn=resolveDynamicComponent(pe.containerElement),{horizontalScrollbar:Gn,verticalScrollbar:Rn}=Xn(),Mn=or();return h$1("div",{key:0,class:Ie.e("wrapper"),role:pe.role},[h$1(Zn,{class:pe.className,style:unref(jt),onScroll:_n,ref:$e},isString$2(Zn)?Mn:{default:()=>Mn}),Gn,Rn])}}}),{max:max$3,min:min$3,floor:floor$1}=Math,ACCESS_SIZER_KEY_MAP={column:"columnWidth",row:"rowHeight"},ACCESS_LAST_VISITED_KEY_MAP={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},getItemFromCache=(n,t,r,i)=>{const[g,$,V]=[r[i],n[ACCESS_SIZER_KEY_MAP[i]],r[ACCESS_LAST_VISITED_KEY_MAP[i]]];if(t>V){let re=0;if(V>=0){const ie=g[V];re=ie.offset+ie.size}for(let ie=V+1;ie<=t;ie++){const ae=$(ie);g[ie]={offset:re,size:ae},re+=ae}r[ACCESS_LAST_VISITED_KEY_MAP[i]]=t}return g[t]},bs=(n,t,r,i,g,$)=>{for(;r<=i;){const V=r+floor$1((i-r)/2),re=getItemFromCache(n,V,t,$).offset;if(re===g)return V;re{const $=g==="column"?n.totalColumn:n.totalRow;let V=1;for(;r<$&&getItemFromCache(n,r,t,g).offset{const[g,$]=[t[i],t[ACCESS_LAST_VISITED_KEY_MAP[i]]];return($>0?g[$].offset:0)>=r?bs(n,t,0,$,r,i):es(n,t,max$3(0,$),r,i)},getEstimatedTotalHeight=({totalRow:n},{estimatedRowHeight:t,lastVisitedRowIndex:r,row:i})=>{let g=0;if(r>=n&&(r=n-1),r>=0){const re=i[r];g=re.offset+re.size}const V=(n-r-1)*t;return g+V},getEstimatedTotalWidth=({totalColumn:n},{column:t,estimatedColumnWidth:r,lastVisitedColumnIndex:i})=>{let g=0;if(i>n&&(i=n-1),i>=0){const re=t[i];g=re.offset+re.size}const V=(n-i-1)*r;return g+V},ACCESS_ESTIMATED_SIZE_KEY_MAP={column:getEstimatedTotalWidth,row:getEstimatedTotalHeight},getOffset=(n,t,r,i,g,$,V)=>{const[re,ie]=[$==="row"?n.height:n.width,ACCESS_ESTIMATED_SIZE_KEY_MAP[$]],ae=getItemFromCache(n,t,g,$),oe=ie(n,g),le=max$3(0,min$3(oe-re,ae.offset)),ue=max$3(0,ae.offset-re+V+ae.size);switch(r===SMART_ALIGNMENT&&(i>=ue-re&&i<=le+re?r=AUTO_ALIGNMENT:r=CENTERED_ALIGNMENT),r){case START_ALIGNMENT:return le;case END_ALIGNMENT:return ue;case CENTERED_ALIGNMENT:return Math.round(ue+(le-ue)/2);case AUTO_ALIGNMENT:default:return i>=ue&&i<=le?i:ue>le||i{const i=getItemFromCache(n,t,r,"column");return[i.size,i.offset]},getRowPosition:(n,t,r)=>{const i=getItemFromCache(n,t,r,"row");return[i.size,i.offset]},getColumnOffset:(n,t,r,i,g,$)=>getOffset(n,t,r,i,g,"column",$),getRowOffset:(n,t,r,i,g,$)=>getOffset(n,t,r,i,g,"row",$),getColumnStartIndexForOffset:(n,t,r)=>findItem(n,r,t,"column"),getColumnStopIndexForStartIndex:(n,t,r,i)=>{const g=getItemFromCache(n,t,i,"column"),$=r+n.width;let V=g.offset+g.size,re=t;for(;refindItem(n,r,t,"row"),getRowStopIndexForStartIndex:(n,t,r,i)=>{const{totalRow:g,height:$}=n,V=getItemFromCache(n,t,i,"row"),re=r+$;let ie=V.size+V.offset,ae=t;for(;ae{const r=({columnIndex:$,rowIndex:V},re)=>{var ie,ae;re=isUndefined$1(re)?!0:re,isNumber$2($)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,$-1)),isNumber$2(V)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,V-1)),(ie=n.exposed)==null||ie.getItemStyleCache.value(-1,null,null),re&&((ae=n.proxy)==null||ae.$forceUpdate())},i=($,V)=>{r({columnIndex:$},V)},g=($,V)=>{r({rowIndex:$},V)};Object.assign(n.proxy,{resetAfterColumnIndex:i,resetAfterRowIndex:g,resetAfter:r})},initCache:({estimatedColumnWidth:n=DEFAULT_DYNAMIC_LIST_ITEM_SIZE,estimatedRowHeight:t=DEFAULT_DYNAMIC_LIST_ITEM_SIZE})=>({column:{},estimatedColumnWidth:n,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:n,rowHeight:t})=>{}}),FixedSizeGrid=createGrid({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:n},t)=>[n,t*n],getRowPosition:({rowHeight:n},t)=>[n,t*n],getEstimatedTotalHeight:({totalRow:n,rowHeight:t})=>t*n,getEstimatedTotalWidth:({totalColumn:n,columnWidth:t})=>t*n,getColumnOffset:({totalColumn:n,columnWidth:t,width:r},i,g,$,V,re)=>{r=Number(r);const ie=Math.max(0,n*t-r),ae=Math.min(ie,i*t),oe=Math.max(0,i*t-r+re+t);switch(g==="smart"&&($>=oe-r&&$<=ae+r?g=AUTO_ALIGNMENT:g=CENTERED_ALIGNMENT),g){case START_ALIGNMENT:return ae;case END_ALIGNMENT:return oe;case CENTERED_ALIGNMENT:{const le=Math.round(oe+(ae-oe)/2);return leie+Math.floor(r/2)?ie:le}case AUTO_ALIGNMENT:default:return $>=oe&&$<=ae?$:oe>ae||${t=Number(t);const ie=Math.max(0,r*n-t),ae=Math.min(ie,i*n),oe=Math.max(0,i*n-t+re+n);switch(g===SMART_ALIGNMENT&&($>=oe-t&&$<=ae+t?g=AUTO_ALIGNMENT:g=CENTERED_ALIGNMENT),g){case START_ALIGNMENT:return ae;case END_ALIGNMENT:return oe;case CENTERED_ALIGNMENT:{const le=Math.round(oe+(ae-oe)/2);return leie+Math.floor(t/2)?ie:le}case AUTO_ALIGNMENT:default:return $>=oe&&$<=ae?$:oe>ae||$Math.max(0,Math.min(t-1,Math.floor(r/n))),getColumnStopIndexForStartIndex:({columnWidth:n,totalColumn:t,width:r},i,g)=>{const $=i*n,V=Math.ceil((r+g-$)/n);return Math.max(0,Math.min(t-1,i+V-1))},getRowStartIndexForOffset:({rowHeight:n,totalRow:t},r)=>Math.max(0,Math.min(t-1,Math.floor(r/n))),getRowStopIndexForStartIndex:({rowHeight:n,totalRow:t,height:r},i,g)=>{const $=i*n,V=Math.ceil((r+g-$)/n);return Math.max(0,Math.min(t-1,i+V-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:n,rowHeight:t})=>{}}),COMPONENT_NAME$7="ElTableV2Grid",useTableGrid=n=>{const t=ref(),r=ref(),i=ref(0),g=computed(()=>{const{data:_e,rowHeight:Ce,estimatedRowHeight:xe}=n;if(!xe)return _e.length*Ce}),$=computed(()=>{const{fixedData:_e,rowHeight:Ce}=n;return((_e==null?void 0:_e.length)||0)*Ce}),V=computed(()=>sum(n.headerHeight)),re=computed(()=>{const{height:_e}=n;return Math.max(0,_e-unref(V)-unref($))}),ie=computed(()=>unref(V)+unref($)>0),ae=({data:_e,rowIndex:Ce})=>_e[Ce][n.rowKey];function oe({rowCacheStart:_e,rowCacheEnd:Ce,rowVisibleStart:xe,rowVisibleEnd:Ie}){var Ne;(Ne=n.onRowsRendered)==null||Ne.call(n,{rowCacheStart:_e,rowCacheEnd:Ce,rowVisibleStart:xe,rowVisibleEnd:Ie})}function le(_e,Ce){var xe;(xe=r.value)==null||xe.resetAfterRowIndex(_e,Ce)}function ue(_e,Ce){const xe=unref(t),Ie=unref(r);isObject$6(_e)?(xe==null||xe.scrollToLeft(_e.scrollLeft),i.value=_e.scrollLeft,Ie==null||Ie.scrollTo(_e)):(xe==null||xe.scrollToLeft(_e),i.value=_e,Ie==null||Ie.scrollTo({scrollLeft:_e,scrollTop:Ce}))}function de(_e){var Ce;(Ce=unref(r))==null||Ce.scrollTo({scrollTop:_e})}function he(_e,Ce){const xe=unref(r);if(!xe)return;const Ie=i.value;xe.scrollToItem(_e,0,Ce),Ie&&ue({scrollLeft:Ie})}function pe(){var _e,Ce;(_e=unref(r))==null||_e.$forceUpdate(),(Ce=unref(t))==null||Ce.$forceUpdate()}return watch(()=>n.bodyWidth,()=>{var _e;isNumber$2(n.estimatedRowHeight)&&((_e=r.value)==null||_e.resetAfter({columnIndex:0},!1))}),{bodyRef:r,forceUpdate:pe,fixedRowHeight:$,gridHeight:re,hasHeader:ie,headerHeight:V,headerRef:t,totalHeight:g,itemKey:ae,onItemRendered:oe,resetAfterRowIndex:le,scrollTo:ue,scrollToTop:de,scrollToRow:he,scrollLeft:i}},TableGrid=defineComponent({name:COMPONENT_NAME$7,props:tableV2GridProps,setup(n,{slots:t,expose:r}){const{ns:i}=inject(TableV2InjectionKey),{bodyRef:g,fixedRowHeight:$,gridHeight:V,hasHeader:re,headerRef:ie,headerHeight:ae,totalHeight:oe,forceUpdate:le,itemKey:ue,onItemRendered:de,resetAfterRowIndex:he,scrollTo:pe,scrollToTop:_e,scrollToRow:Ce,scrollLeft:xe}=useTableGrid(n);provide(TABLE_V2_GRID_INJECTION_KEY,xe),onActivated(async()=>{var Ne;await nextTick();const Oe=(Ne=g.value)==null?void 0:Ne.states.scrollTop;Oe&&_e(Math.round(Oe)+1)}),r({forceUpdate:le,totalHeight:oe,scrollTo:pe,scrollToTop:_e,scrollToRow:Ce,resetAfterRowIndex:he});const Ie=()=>n.bodyWidth;return()=>{const{cache:Ne,columns:Oe,data:$e,fixedData:Ve,useIsScrolling:Ue,scrollbarAlwaysOn:Fe,scrollbarEndGap:ze,scrollbarStartGap:Pt,style:qe,rowHeight:Et,bodyWidth:kt,estimatedRowHeight:At,headerWidth:Dt,height:Lt,width:jt,getRowHeight:hn,onScroll:vn}=n,_n=isNumber$2(At),wn=_n?DynamicSizeGrid:FixedSizeGrid,bn=unref(ae);return createVNode$1("div",{role:"table",class:[i.e("table"),n.class],style:qe},[createVNode$1(wn,{ref:g,data:$e,useIsScrolling:Ue,itemKey:ue,columnCache:0,columnWidth:_n?Ie:kt,totalColumn:1,totalRow:$e.length,rowCache:Ne,rowHeight:_n?hn:Et,width:jt,height:unref(V),class:i.e("body"),role:"rowgroup",scrollbarStartGap:Pt,scrollbarEndGap:ze,scrollbarAlwaysOn:Fe,onScroll:vn,onItemRendered:de,perfMode:!1},{default:Cn=>{var Sn;const Tn=$e[Cn.rowIndex];return(Sn=t.row)==null?void 0:Sn.call(t,{...Cn,columns:Oe,rowData:Tn})}}),unref(re)&&createVNode$1(Header$1,{ref:ie,class:i.e("header-wrapper"),columns:Oe,headerData:$e,headerHeight:n.headerHeight,fixedHeaderData:Ve,rowWidth:Dt,rowHeight:Et,width:jt,height:Math.min(bn+unref($),Lt)},{dynamic:t.header,fixed:t.row})])}}});var Table=TableGrid;function _isSlot$5(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}const MainTable=(n,{slots:t})=>{const{mainTableRef:r,...i}=n;return createVNode$1(Table,mergeProps({ref:r},i),_isSlot$5(t)?t:{default:()=>[t]})};var MainTable$1=MainTable;function _isSlot$4(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}const LeftTable=(n,{slots:t})=>{if(!n.columns.length)return;const{leftTableRef:r,...i}=n;return createVNode$1(Table,mergeProps({ref:r},i),_isSlot$4(t)?t:{default:()=>[t]})};var LeftTable$1=LeftTable;function _isSlot$3(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}const RightTable=(n,{slots:t})=>{if(!n.columns.length)return;const{rightTableRef:r,...i}=n;return createVNode$1(Table,mergeProps({ref:r},i),_isSlot$3(t)?t:{default:()=>[t]})};var RightTable$1=RightTable;const useTableRow=n=>{const{isScrolling:t}=inject(TableV2InjectionKey),r=ref(!1),i=ref(),g=computed(()=>isNumber$2(n.estimatedRowHeight)&&n.rowIndex>=0),$=(ie=!1)=>{const ae=unref(i);if(!ae)return;const{columns:oe,onRowHeightChange:le,rowKey:ue,rowIndex:de,style:he}=n,{height:pe}=ae.getBoundingClientRect();r.value=!0,nextTick(()=>{if(ie||pe!==Number.parseInt(he.height)){const _e=oe[0],Ce=(_e==null?void 0:_e.placeholderSign)===placeholderSign;le==null||le({rowKey:ue,height:pe,rowIndex:de},_e&&!Ce&&_e.fixed)}})},V=computed(()=>{const{rowData:ie,rowIndex:ae,rowKey:oe,onRowHover:le}=n,ue=n.rowEventHandlers||{},de={};return Object.entries(ue).forEach(([he,pe])=>{isFunction$4(pe)&&(de[he]=_e=>{pe({event:_e,rowData:ie,rowIndex:ae,rowKey:oe})})}),le&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:he,hovered:pe})=>{const _e=de[he];de[he]=Ce=>{le({event:Ce,hovered:pe,rowData:ie,rowIndex:ae,rowKey:oe}),_e==null||_e(Ce)}}),de}),re=ie=>{const{onRowExpand:ae,rowData:oe,rowIndex:le,rowKey:ue}=n;ae==null||ae({expanded:ie,rowData:oe,rowIndex:le,rowKey:ue})};return onMounted(()=>{unref(g)&&$(!0)}),{isScrolling:t,measurable:g,measured:r,rowRef:i,eventHandlers:V,onExpand:re}},COMPONENT_NAME$6="ElTableV2TableRow",TableV2Row=defineComponent({name:COMPONENT_NAME$6,props:tableV2RowProps,setup(n,{expose:t,slots:r,attrs:i}){const{eventHandlers:g,isScrolling:$,measurable:V,measured:re,rowRef:ie,onExpand:ae}=useTableRow(n);return t({onExpand:ae}),()=>{const{columns:oe,columnsStyles:le,expandColumnKey:ue,depth:de,rowData:he,rowIndex:pe,style:_e}=n;let Ce=oe.map((xe,Ie)=>{const Ne=isArray$5(he.children)&&he.children.length>0&&xe.key===ue;return r.cell({column:xe,columns:oe,columnIndex:Ie,depth:de,style:le[xe.key],rowData:he,rowIndex:pe,isScrolling:unref($),expandIconProps:Ne?{rowData:he,rowIndex:pe,onExpand:ae}:void 0})});if(r.row&&(Ce=r.row({cells:Ce.map(xe=>isArray$5(xe)&&xe.length===1?xe[0]:xe),style:_e,columns:oe,depth:de,rowData:he,rowIndex:pe,isScrolling:unref($)})),unref(V)){const{height:xe,...Ie}=_e||{},Ne=unref(re);return createVNode$1("div",mergeProps({ref:ie,class:n.class,style:Ne?_e:Ie,role:"row"},i,unref(g)),[Ce])}return createVNode$1("div",mergeProps(i,{ref:ie,class:n.class,style:_e,role:"row"},unref(g)),[Ce])}}});var Row$1=TableV2Row;function _isSlot$2(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}const RowRenderer=(n,{slots:t})=>{const{columns:r,columnsStyles:i,depthMap:g,expandColumnKey:$,expandedRowKeys:V,estimatedRowHeight:re,hasFixedColumns:ie,rowData:ae,rowIndex:oe,style:le,isScrolling:ue,rowProps:de,rowClass:he,rowKey:pe,rowEventHandlers:_e,ns:Ce,onRowHovered:xe,onRowExpanded:Ie}=n,Ne=tryCall(he,{columns:r,rowData:ae,rowIndex:oe},""),Oe=tryCall(de,{columns:r,rowData:ae,rowIndex:oe}),$e=ae[pe],Ve=g[$e]||0,Ue=!!$,Fe=oe<0,ze=[Ce.e("row"),Ne,Ce.is("expanded",Ue&&V.includes($e)),Ce.is("fixed",!Ve&&Fe),Ce.is("customized",!!t.row),{[Ce.e(`row-depth-${Ve}`)]:Ue&&oe>=0}],Pt=ie?xe:void 0,qe={...Oe,columns:r,columnsStyles:i,class:ze,depth:Ve,expandColumnKey:$,estimatedRowHeight:Fe?void 0:re,isScrolling:ue,rowIndex:oe,rowData:ae,rowKey:$e,rowEventHandlers:_e,style:le};return createVNode$1(Row$1,mergeProps(qe,{onRowExpand:Ie,onMouseenter:At=>{Pt==null||Pt({hovered:!0,rowKey:$e,event:At,rowData:ae,rowIndex:oe})},onMouseleave:At=>{Pt==null||Pt({hovered:!1,rowKey:$e,event:At,rowData:ae,rowIndex:oe})},rowkey:$e}),_isSlot$2(t)?t:{default:()=>[t]})};var Row=RowRenderer;const TableV2Cell=(n,{slots:t})=>{var r;const{cellData:i,style:g}=n,$=((r=i==null?void 0:i.toString)==null?void 0:r.call(i))||"",V=renderSlot(t,"default",n,()=>[$]);return createVNode$1("div",{class:n.class,title:$,style:g},[V])};TableV2Cell.displayName="ElTableV2Cell";TableV2Cell.inheritAttrs=!1;var TableCell=TableV2Cell;const ExpandIcon=n=>{const{expanded:t,expandable:r,onExpand:i,style:g,size:$,ariaLabel:V}=n,re={onClick:r?()=>i(!t):void 0,ariaLabel:V,ariaExpanded:t,class:n.class};return createVNode$1("button",mergeProps(re,{type:"button"}),[createVNode$1(ElIcon,{size:$,style:g},{default:()=>[createVNode$1(arrow_right_default,null,null)]})])};ExpandIcon.inheritAttrs=!1;var ExpandIcon$1=ExpandIcon;const CellRenderer=({columns:n,column:t,columnIndex:r,depth:i,expandIconProps:g,isScrolling:$,rowData:V,rowIndex:re,style:ie,expandedRowKeys:ae,ns:oe,t:le,cellProps:ue,expandColumnKey:de,indentSize:he,iconSize:pe,rowKey:_e},{slots:Ce})=>{const xe=enforceUnit(ie);if(t.placeholderSign===placeholderSign)return createVNode$1("div",{class:oe.em("row-cell","placeholder"),style:xe},null);const{cellRenderer:Ie,dataKey:Ne,dataGetter:Oe}=t,$e=isFunction$4(Oe)?Oe({columns:n,column:t,columnIndex:r,rowData:V,rowIndex:re}):get$1(V,Ne??""),Ve=tryCall(ue,{cellData:$e,columns:n,column:t,columnIndex:r,rowIndex:re,rowData:V}),Ue={class:oe.e("cell-text"),columns:n,column:t,columnIndex:r,cellData:$e,isScrolling:$,rowData:V,rowIndex:re},Fe=componentToSlot(Ie),ze=Fe?Fe(Ue):renderSlot(Ce,"default",Ue,()=>[createVNode$1(TableCell,Ue,null)]),Pt=[oe.e("row-cell"),t.class,t.align===Alignment.CENTER&&oe.is("align-center"),t.align===Alignment.RIGHT&&oe.is("align-right")],qe=re>=0&&de&&t.key===de,Et=re>=0&&ae.includes(V[_e]);let kt;const At=`margin-inline-start: ${i*he}px;`;return qe&&(isObject$6(g)?kt=createVNode$1(ExpandIcon$1,mergeProps(g,{class:[oe.e("expand-icon"),oe.is("expanded",Et)],size:pe,expanded:Et,ariaLabel:le(Et?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:At,expandable:!0}),null):kt=createVNode$1("div",{style:[At,`width: ${pe}px; height: ${pe}px;`].join(" ")},null)),createVNode$1("div",mergeProps({class:Pt,style:xe},Ve,{role:"cell"}),[kt,ze])};CellRenderer.inheritAttrs=!1;var Cell=CellRenderer;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(n,{slots:t}){return()=>{const{columns:r,columnsStyles:i,headerIndex:g,style:$}=n;let V=r.map((re,ie)=>t.cell({columns:r,column:re,columnIndex:ie,headerIndex:g,style:i[re.key]}));return t.header&&(V=t.header({cells:V.map(re=>isArray$5(re)&&re.length===1?re[0]:re),columns:r,headerIndex:g})),createVNode$1("div",{class:n.class,style:$,role:"row"},[V])}}});var HeaderRow=TableV2HeaderRow;function _isSlot$1(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}const HeaderRenderer=({columns:n,columnsStyles:t,headerIndex:r,style:i,headerClass:g,headerProps:$,ns:V},{slots:re})=>{const ie={columns:n,headerIndex:r},ae=[V.e("header-row"),tryCall(g,ie,""),V.is("customized",!!re.header)],oe={...tryCall($,ie),columnsStyles:t,class:ae,columns:n,headerIndex:r,style:i};return createVNode$1(HeaderRow,oe,_isSlot$1(re)?re:{default:()=>[re]})};var Header=HeaderRenderer;const HeaderCell$1=(n,{slots:t})=>renderSlot(t,"default",n,()=>{var r,i;return[createVNode$1("div",{class:n.class,title:(r=n.column)==null?void 0:r.title},[(i=n.column)==null?void 0:i.title])]});HeaderCell$1.displayName="ElTableV2HeaderCell";HeaderCell$1.inheritAttrs=!1;var HeaderCell$1$1=HeaderCell$1;const SortIcon=n=>{const{sortOrder:t}=n;return createVNode$1("button",{type:"button","aria-label":n.ariaLabel,class:n.class},[createVNode$1(ElIcon,{size:14},{default:()=>[t===SortOrder.ASC?createVNode$1(sort_up_default,null,null):createVNode$1(sort_down_default,null,null)]})])};var SortIcon$1=SortIcon;const HeaderCellRenderer=(n,{slots:t})=>{const{column:r,ns:i,t:g,style:$,onColumnSorted:V}=n,re=enforceUnit($);if(r.placeholderSign===placeholderSign)return createVNode$1("div",{class:i.em("header-row-cell","placeholder"),style:re},null);const{headerCellRenderer:ie,headerClass:ae,sortable:oe}=r,le={...n,class:i.e("header-cell-text")},ue=componentToSlot(ie),de=ue?ue(le):renderSlot(t,"default",le,()=>[createVNode$1(HeaderCell$1$1,le,null)]),{sortBy:he,sortState:pe,headerCellProps:_e}=n;let Ce,xe,Ie;if(pe){const $e=pe[r.key];Ce=!!oppositeOrderMap[$e],xe=Ce?$e:SortOrder.ASC}else Ce=r.key===he.key,xe=Ce?he.order:SortOrder.ASC;xe===SortOrder.ASC?Ie="ascending":xe===SortOrder.DESC?Ie="descending":Ie=void 0;const Ne=[i.e("header-cell"),tryCall(ae,n,""),r.align===Alignment.CENTER&&i.is("align-center"),r.align===Alignment.RIGHT&&i.is("align-right"),oe&&i.is("sortable")],Oe={...tryCall(_e,n),onClick:r.sortable?V:void 0,ariaSort:oe?Ie:void 0,class:Ne,style:re,"data-key":r.key};return createVNode$1("div",mergeProps(Oe,{role:"columnheader"}),[de,oe&&createVNode$1(SortIcon$1,{class:[i.e("sort-icon"),Ce&&i.is("sorting")],sortOrder:xe,ariaLabel:g("el.table.sortLabel",{column:r.title||""})},null)])};var HeaderCell=HeaderCellRenderer;const Footer$1=(n,{slots:t})=>{var r;return createVNode$1("div",{class:n.class,style:n.style},[(r=t.default)==null?void 0:r.call(t)])};Footer$1.displayName="ElTableV2Footer";var Footer$1$1=Footer$1;const Footer=(n,{slots:t})=>{const r=renderSlot(t,"default",{},()=>[createVNode$1(ElEmpty,null,null)]);return createVNode$1("div",{class:n.class,style:n.style},[r])};Footer.displayName="ElTableV2Empty";var Empty=Footer;const Overlay=(n,{slots:t})=>{var r;return createVNode$1("div",{class:n.class,style:n.style},[(r=t.default)==null?void 0:r.call(t)])};Overlay.displayName="ElTableV2Overlay";var Overlay$1=Overlay;function _isSlot(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}const COMPONENT_NAME$5="ElTableV2",TableV2=defineComponent({name:COMPONENT_NAME$5,props:tableV2Props,setup(n,{slots:t,expose:r}){const i=useNamespace("table-v2"),{t:g}=useLocale(),{columnsStyles:$,fixedColumnsOnLeft:V,fixedColumnsOnRight:re,mainColumns:ie,mainTableHeight:ae,fixedTableHeight:oe,leftTableWidth:le,rightTableWidth:ue,data:de,depthMap:he,expandedRowKeys:pe,hasFixedColumns:_e,mainTableRef:Ce,leftTableRef:xe,rightTableRef:Ie,isDynamic:Ne,isResetting:Oe,isScrolling:$e,bodyWidth:Ve,emptyStyle:Ue,rootStyle:Fe,footerHeight:ze,showEmpty:Pt,scrollTo:qe,scrollToLeft:Et,scrollToTop:kt,scrollToRow:At,getRowHeight:Dt,onColumnSorted:Lt,onRowHeightChange:jt,onRowHovered:hn,onRowExpanded:vn,onRowsRendered:_n,onScroll:wn,onVerticalScroll:bn}=useTable(n);return r({scrollTo:qe,scrollToLeft:Et,scrollToTop:kt,scrollToRow:At}),provide(TableV2InjectionKey,{ns:i,isResetting:Oe,isScrolling:$e}),()=>{const{cache:Cn,cellProps:Sn,estimatedRowHeight:Tn,expandColumnKey:En,fixedData:kn,headerHeight:$n,headerClass:An,headerProps:xn,headerCellProps:Ln,sortBy:Nn,sortState:Pn,rowHeight:On,rowClass:Hn,rowEventHandlers:Xn,rowKey:In,rowProps:or,scrollbarAlwaysOn:Qn,indentSize:Zn,iconSize:Gn,useIsScrolling:Rn,vScrollbarSize:Mn,width:Bn}=n,qn=unref(de),zn={cache:Cn,class:i.e("main"),columns:unref(ie),data:qn,fixedData:kn,estimatedRowHeight:Tn,bodyWidth:unref(Ve),headerHeight:$n,headerWidth:unref(Ve),height:unref(ae),mainTableRef:Ce,rowKey:In,rowHeight:On,scrollbarAlwaysOn:Qn,scrollbarStartGap:2,scrollbarEndGap:Mn,useIsScrolling:Rn,width:Bn,getRowHeight:Dt,onRowsRendered:_n,onScroll:wn},jn=unref(le),tr=unref(oe),hr={cache:Cn,class:i.e("left"),columns:unref(V),data:qn,fixedData:kn,estimatedRowHeight:Tn,leftTableRef:xe,rowHeight:On,bodyWidth:jn,headerWidth:jn,headerHeight:$n,height:tr,rowKey:In,scrollbarAlwaysOn:Qn,scrollbarStartGap:2,scrollbarEndGap:Mn,useIsScrolling:Rn,width:jn,getRowHeight:Dt,onScroll:bn},ir=unref(ue),pr={cache:Cn,class:i.e("right"),columns:unref(re),data:qn,fixedData:kn,estimatedRowHeight:Tn,rightTableRef:Ie,rowHeight:On,bodyWidth:ir,headerWidth:ir,headerHeight:$n,height:tr,rowKey:In,scrollbarAlwaysOn:Qn,scrollbarStartGap:2,scrollbarEndGap:Mn,width:ir,style:`${i.cssVarName("table-scrollbar-size")}: ${Mn}px`,useIsScrolling:Rn,getRowHeight:Dt,onScroll:bn},rr=unref($),lr={ns:i,depthMap:unref(he),columnsStyles:rr,expandColumnKey:En,expandedRowKeys:unref(pe),estimatedRowHeight:Tn,hasFixedColumns:unref(_e),rowProps:or,rowClass:Hn,rowKey:In,rowEventHandlers:Xn,onRowHovered:hn,onRowExpanded:vn,onRowHeightChange:jt},Yn={cellProps:Sn,expandColumnKey:En,indentSize:Zn,iconSize:Gn,rowKey:In,expandedRowKeys:unref(pe),ns:i,t:g},er={ns:i,headerClass:An,headerProps:xn,columnsStyles:rr},Fn={ns:i,t:g,sortBy:Nn,sortState:Pn,headerCellProps:Ln,onColumnSorted:Lt},cr={row:vr=>createVNode$1(Row,mergeProps(vr,lr),{row:t.row,cell:yr=>{let Wn;return t.cell?createVNode$1(Cell,mergeProps(yr,Yn,{style:rr[yr.column.key]}),_isSlot(Wn=t.cell(yr))?Wn:{default:()=>[Wn]}):createVNode$1(Cell,mergeProps(yr,Yn,{style:rr[yr.column.key]}),null)}}),header:vr=>createVNode$1(Header,mergeProps(vr,er),{header:t.header,cell:yr=>{let Wn;return t["header-cell"]?createVNode$1(HeaderCell,mergeProps(yr,Fn,{style:rr[yr.column.key]}),_isSlot(Wn=t["header-cell"](yr))?Wn:{default:()=>[Wn]}):createVNode$1(HeaderCell,mergeProps(yr,Fn,{style:rr[yr.column.key]}),null)}})},Un=[n.class,i.b(),i.e("root"),i.is("dynamic",unref(Ne))],gr={class:i.e("footer"),style:unref(ze)};return createVNode$1("div",{class:Un,style:unref(Fe)},[createVNode$1(MainTable$1,zn,_isSlot(cr)?cr:{default:()=>[cr]}),createVNode$1(LeftTable$1,hr,_isSlot(cr)?cr:{default:()=>[cr]}),createVNode$1(RightTable$1,pr,_isSlot(cr)?cr:{default:()=>[cr]}),t.footer&&createVNode$1(Footer$1$1,gr,{default:t.footer}),unref(Pt)&&createVNode$1(Empty,{class:i.e("empty"),style:unref(Ue)},{default:t.empty}),t.overlay&&createVNode$1(Overlay$1,{class:i.e("overlay")},{default:t.overlay})])}}});var TableV2$1=TableV2;const autoResizerProps=buildProps({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:definePropType(Function)}}),useAutoResize=n=>{const t=ref(),r=ref(0),i=ref(0);let g;return onMounted(()=>{g=useResizeObserver(t,([$])=>{const{width:V,height:re}=$.contentRect,{paddingLeft:ie,paddingRight:ae,paddingTop:oe,paddingBottom:le}=getComputedStyle($.target),ue=Number.parseInt(ie)||0,de=Number.parseInt(ae)||0,he=Number.parseInt(oe)||0,pe=Number.parseInt(le)||0;r.value=V-ue-de,i.value=re-he-pe}).stop}),onBeforeUnmount(()=>{g==null||g()}),watch([r,i],([$,V])=>{var re;(re=n.onResize)==null||re.call(n,{width:$,height:V})}),{sizer:t,width:r,height:i}},AutoResizer=defineComponent({name:"ElAutoResizer",props:autoResizerProps,setup(n,{slots:t}){const r=useNamespace("auto-resizer"),{height:i,width:g,sizer:$}=useAutoResize(n),V={width:"100%",height:"100%"};return()=>{var re;return createVNode$1("div",{ref:$,class:r.b(),style:V},[(re=t.default)==null?void 0:re.call(t,{height:i.value,width:g.value})])}}});var AutoResizer$1=AutoResizer;const ElTableV2=withInstall(TableV2$1),ElAutoResizer=withInstall(AutoResizer$1),tabsRootContextKey=Symbol("tabsRootContextKey"),tabBarProps=buildProps({tabs:{type:definePropType(Array),default:()=>mutable([])},tabRefs:{type:definePropType(Object),default:()=>mutable({})}}),COMPONENT_NAME$4="ElTabBar",_sfc_main$$=defineComponent({name:COMPONENT_NAME$4,__name:"tab-bar",props:tabBarProps,setup(n,{expose:t}){const r=n,i=inject(tabsRootContextKey);i||throwError$1(COMPONENT_NAME$4,"");const g=useNamespace("tabs"),$=ref(),V=ref(),re=computed(()=>{var de;return isUndefined$1(i.props.defaultValue)||!!((de=V.value)!=null&&de.transform)}),ie=()=>{let de=0,he=0;const pe=["top","bottom"].includes(i.props.tabPosition)?"width":"height",_e=pe==="width"?"x":"y",Ce=_e==="x"?"left":"top";return r.tabs.every(xe=>{if(isUndefined$1(xe.paneName))return!1;const Ie=r.tabRefs[xe.paneName];if(!Ie)return!1;if(!xe.active)return!0;de=Ie[`offset${capitalize(Ce)}`],he=Ie[`client${capitalize(pe)}`];const Ne=window.getComputedStyle(Ie);return pe==="width"&&(he-=Number.parseFloat(Ne.paddingLeft)+Number.parseFloat(Ne.paddingRight),de+=Number.parseFloat(Ne.paddingLeft)),!1}),{[pe]:`${he}px`,transform:`translate${capitalize(_e)}(${de}px)`}},ae=()=>V.value=ie(),oe=[],le=()=>{oe.forEach(de=>de.stop()),oe.length=0,Object.values(r.tabRefs).forEach(de=>{oe.push(useResizeObserver(de,ae))})};watch(()=>r.tabs,async()=>{await nextTick(),ae(),le()},{immediate:!0});const ue=useResizeObserver($,()=>ae());return onBeforeUnmount(()=>{oe.forEach(de=>de.stop()),oe.length=0,ue.stop()}),t({ref:$,update:ae}),(de,he)=>re.value?(openBlock(),createElementBlock("div",{key:0,ref_key:"barRef",ref:$,class:normalizeClass([unref(g).e("active-bar"),unref(g).is(unref(i).props.tabPosition)]),style:normalizeStyle$1(V.value)},null,6)):createCommentVNode("v-if",!0)}});var TabBar=_export_sfc(_sfc_main$$,[["__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,tabindex:{type:[String,Number],default:void 0}}),tabNavEmits={tabClick:(n,t,r)=>r instanceof Event,tabRemove:(n,t)=>t instanceof Event},COMPONENT_NAME$3="ElTabNav",TabNav=defineComponent({name:COMPONENT_NAME$3,props:tabNavProps,emits:tabNavEmits,setup(n,{expose:t,emit:r}){const i=inject(tabsRootContextKey);i||throwError$1(COMPONENT_NAME$3,"");const g=useNamespace("tabs"),$=useDocumentVisibility(),V=useWindowFocus(),re=ref(),ie=ref(),ae=ref(),oe=ref({}),le=ref(),ue=ref(!1),de=ref(0),he=ref(!1),pe=ref(!0),_e=shallowRef(),Ce=computed(()=>["top","bottom"].includes(i.props.tabPosition)),xe=computed(()=>Ce.value?"width":"height"),Ie=computed(()=>({transform:`translate${xe.value==="width"?"X":"Y"}(-${de.value}px)`})),{width:Ne,height:Oe}=useElementSize(re),{width:$e,height:Ve}=useElementSize(ie,{width:0,height:0},{box:"border-box"}),Ue=computed(()=>Ce.value?Ne.value:Oe.value),Fe=computed(()=>Ce.value?$e.value:Ve.value),{onWheel:ze}=useWheel({atStartEdge:computed(()=>de.value<=0),atEndEdge:computed(()=>Fe.value-de.value<=Ue.value),layout:computed(()=>Ce.value?"horizontal":"vertical")},vn=>{de.value=clamp$3(de.value+vn,0,Fe.value-Ue.value)}),Pt=()=>{if(!re.value)return;const vn=re.value[`offset${capitalize(xe.value)}`],_n=de.value;if(!_n)return;const wn=_n>vn?_n-vn:0;de.value=wn},qe=()=>{if(!re.value||!ie.value)return;const vn=ie.value[`offset${capitalize(xe.value)}`],_n=re.value[`offset${capitalize(xe.value)}`],wn=de.value;if(vn-wn<=_n)return;const bn=vn-wn>_n*2?wn+_n:vn-_n;de.value=bn},Et=async()=>{const vn=ie.value;if(!ue.value||!ae.value||!re.value||!vn)return;await nextTick();const _n=oe.value[n.currentName];if(!_n)return;const wn=re.value,bn=_n.getBoundingClientRect(),Cn=wn.getBoundingClientRect(),Sn=Ce.value?vn.offsetWidth-Cn.width:vn.offsetHeight-Cn.height,Tn=de.value;let En=Tn;Ce.value?(bn.leftCn.right&&(En=Tn+bn.right-Cn.right)):(bn.topCn.bottom&&(En=Tn+(bn.bottom-Cn.bottom))),En=Math.max(En,0),de.value=Math.min(En,Sn)},kt=()=>{var vn;if(!ie.value||!re.value)return;n.stretch&&((vn=le.value)==null||vn.update());const _n=ie.value[`offset${capitalize(xe.value)}`],wn=re.value[`offset${capitalize(xe.value)}`],bn=de.value;wn<_n?(ue.value=ue.value||{},ue.value.prev=bn,ue.value.next=bn+wn<_n,_n-bn0&&(de.value=0))},At=vn=>{const _n=getEventCode(vn);let wn=0;switch(_n){case EVENT_CODE.left:case EVENT_CODE.up:wn=-1;break;case EVENT_CODE.right:case EVENT_CODE.down:wn=1;break;default:return}const bn=Array.from(vn.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let Sn=bn.indexOf(vn.target)+wn;Sn<0?Sn=bn.length-1:Sn>=bn.length&&(Sn=0),bn[Sn].focus({preventScroll:!0}),bn[Sn].click(),Dt()},Dt=()=>{pe.value&&(he.value=!0)},Lt=()=>he.value=!1,jt=(vn,_n)=>{oe.value[_n]=vn},hn=async()=>{await nextTick();const vn=oe.value[n.currentName];vn==null||vn.focus({preventScroll:!0})};return watch($,vn=>{vn==="hidden"?pe.value=!1:vn==="visible"&&setTimeout(()=>pe.value=!0,50)}),watch(V,vn=>{vn?setTimeout(()=>pe.value=!0,50):pe.value=!1}),useResizeObserver(ae,()=>{rAF(kt)}),onMounted(()=>setTimeout(()=>Et(),0)),onUpdated(()=>kt()),t({scrollToActiveTab:Et,removeFocus:Lt,focusActiveTab:hn,tabListRef:ie,tabBarRef:le,scheduleRender:()=>triggerRef(_e)}),()=>{const vn=ue.value?[createVNode$1("span",{class:[g.e("nav-prev"),g.is("disabled",!ue.value.prev)],onClick:Pt},[createVNode$1(ElIcon,null,{default:()=>[createVNode$1(arrow_left_default,null,null)]})]),createVNode$1("span",{class:[g.e("nav-next"),g.is("disabled",!ue.value.next)],onClick:qe},[createVNode$1(ElIcon,null,{default:()=>[createVNode$1(arrow_right_default,null,null)]})])]:null,_n=n.panes.map((wn,bn)=>{var Cn,Sn,Tn,En,kn;const $n=wn.uid,An=wn.props.disabled,xn=(Sn=(Cn=wn.props.name)!=null?Cn:wn.index)!=null?Sn:`${bn}`,Ln=!An&&(wn.isClosable||wn.props.closable!==!1&&n.editable);wn.index=`${bn}`;const Nn=Ln?createVNode$1(ElIcon,{class:"is-icon-close",onClick:Hn=>r("tabRemove",wn,Hn)},{default:()=>[createVNode$1(close_default,null,null)]}):null,Pn=((En=(Tn=wn.slots).label)==null?void 0:En.call(Tn))||wn.props.label,On=!An&&wn.active?(kn=n.tabindex)!=null?kn:i.props.tabindex:-1;return createVNode$1("div",{ref:Hn=>jt(Hn,xn),class:[g.e("item"),g.is(i.props.tabPosition),g.is("active",wn.active),g.is("disabled",An),g.is("closable",Ln),g.is("focus",he.value)],id:`tab-${xn}`,key:`tab-${$n}`,"aria-controls":`pane-${xn}`,role:"tab","aria-selected":wn.active,tabindex:On,onFocus:()=>Dt(),onBlur:()=>Lt(),onClick:Hn=>{Lt(),r("tabClick",wn,xn,Hn)},onKeydown:Hn=>{const Xn=getEventCode(Hn);Ln&&(Xn===EVENT_CODE.delete||Xn===EVENT_CODE.backspace)&&r("tabRemove",wn,Hn)}},[Pn,Nn])});return _e.value,createVNode$1("div",{ref:ae,class:[g.e("nav-wrap"),g.is("scrollable",!!ue.value),g.is(i.props.tabPosition)]},[vn,createVNode$1("div",{class:g.e("nav-scroll"),ref:re},[n.panes.length>0?createVNode$1("div",{class:[g.e("nav"),g.is(i.props.tabPosition),g.is("stretch",n.stretch&&["top","bottom"].includes(i.props.tabPosition))],ref:ie,style:Ie.value,role:"tablist",onKeydown:At,onWheel:ze},[n.type?null:createVNode$1(TabBar,{ref:le,tabs:[...n.panes],tabRefs:oe.value},null),_n]):null])])}}}),tabsProps=buildProps({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:definePropType(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),isPaneName=n=>isString$2(n)||isNumber$2(n),tabsEmits={[UPDATE_MODEL_EVENT]:n=>isPaneName(n),tabClick:(n,t)=>t instanceof Event,tabChange:n=>isPaneName(n),edit:(n,t)=>["remove","add"].includes(t),tabRemove:n=>isPaneName(n),tabAdd:()=>!0},Tabs=defineComponent({name:"ElTabs",props:tabsProps,emits:tabsEmits,setup(n,{emit:t,slots:r,expose:i}){var g;const $=useNamespace("tabs"),V=computed(()=>["left","right"].includes(n.tabPosition)),{children:re,addChild:ie,removeChild:ae,ChildrenSorter:oe}=useOrderedChildren(getCurrentInstance(),"ElTabPane"),le=ref(),ue=ref((g=isUndefined$1(n.modelValue)?n.defaultValue:n.modelValue)!=null?g:"0"),de=async(Ie,Ne=!1)=>{var Oe,$e,Ve,Ue;if(!(ue.value===Ie||isUndefined$1(Ie)))try{let Fe;if(n.beforeLeave){const ze=n.beforeLeave(Ie,ue.value);Fe=ze instanceof Promise?await ze:ze}else Fe=!0;if(Fe!==!1){const ze=(Oe=re.value.find(Pt=>Pt.paneName===ue.value))==null?void 0:Oe.isFocusInsidePane();ue.value=Ie,Ne&&(t(UPDATE_MODEL_EVENT,Ie),t("tabChange",Ie)),(Ve=($e=le.value)==null?void 0:$e.removeFocus)==null||Ve.call($e),ze&&((Ue=le.value)==null||Ue.focusActiveTab())}}catch{}},he=(Ie,Ne,Oe)=>{Ie.props.disabled||(t("tabClick",Ie,Oe),de(Ne,!0))},pe=(Ie,Ne)=>{Ie.props.disabled||isUndefined$1(Ie.props.name)||(Ne.stopPropagation(),t("edit",Ie.props.name,"remove"),t("tabRemove",Ie.props.name))},_e=()=>{t("edit",void 0,"add"),t("tabAdd")},Ce=Ie=>{const Ne=getEventCode(Ie);[EVENT_CODE.enter,EVENT_CODE.numpadEnter].includes(Ne)&&_e()},xe=Ie=>{const Ne=Ie.el.firstChild,Oe=["bottom","right"].includes(n.tabPosition)?Ie.children[0].el:Ie.children[1].el;Ne!==Oe&&Ne.before(Oe)};return watch(()=>n.modelValue,Ie=>de(Ie)),watch(ue,async()=>{var Ie;await nextTick(),(Ie=le.value)==null||Ie.scrollToActiveTab()}),provide(tabsRootContextKey,{props:n,currentName:ue,registerPane:ie,unregisterPane:ae,nav$:le}),i({currentName:ue,get tabNavRef(){return omit$1(le.value,["scheduleRender"])}}),()=>{const Ie=r["add-icon"],Ne=n.editable||n.addable?createVNode$1("div",{class:[$.e("new-tab"),V.value&&$.e("new-tab-vertical")],tabindex:n.tabindex,onClick:_e,onKeydown:Ce},[Ie?renderSlot(r,"add-icon"):createVNode$1(ElIcon,{class:$.is("icon-plus")},{default:()=>[createVNode$1(plus_default,null,null)]})]):null,Oe=()=>createVNode$1(TabNav,{ref:le,currentName:ue.value,editable:n.editable,type:n.type,panes:re.value,stretch:n.stretch,onTabClick:he,onTabRemove:pe},null),$e=createVNode$1("div",{class:[$.e("header"),V.value&&$.e("header-vertical"),$.is(n.tabPosition)]},[createVNode$1(oe,null,{default:Oe,$stable:!0}),Ne]),Ve=createVNode$1("div",{class:$.e("content")},[renderSlot(r,"default")]);return createVNode$1("div",{class:[$.b(),$.m(n.tabPosition),{[$.m("card")]:n.type==="card",[$.m("border-card")]:n.type==="border-card"}],onVnodeMounted:xe,onVnodeUpdated:xe},[Ve,$e])}}}),tabPaneProps=buildProps({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),_hoisted_1$D=["id","aria-hidden","aria-labelledby"],COMPONENT_NAME$2="ElTabPane",_sfc_main$_=defineComponent({name:COMPONENT_NAME$2,__name:"tab-pane",props:tabPaneProps,setup(n){const t=n,r=getCurrentInstance(),i=useSlots(),g=inject(tabsRootContextKey);g||throwError$1(COMPONENT_NAME$2,"usage: ");const $=useNamespace("tab-pane"),V=ref(),re=ref(),ie=computed(()=>{var pe;return(pe=t.closable)!=null?pe:g.props.closable}),ae=computed(()=>{var pe;return g.currentName.value===((pe=t.name)!=null?pe:re.value)}),oe=ref(ae.value),le=computed(()=>{var pe;return(pe=t.name)!=null?pe:re.value}),ue=computed(()=>!t.lazy||oe.value||ae.value),de=()=>{var pe;return(pe=V.value)==null?void 0:pe.contains(document.activeElement)};watch(ae,pe=>{pe&&(oe.value=!0)});const he=reactive({uid:r.uid,getVnode:()=>r.vnode,slots:i,props:t,paneName:le,active:ae,index:re,isClosable:ie,isFocusInsidePane:de});return g.registerPane(he),onBeforeUnmount(()=>{g.unregisterPane(he)}),onBeforeUpdate(()=>{var pe;i.label&&((pe=g.nav$.value)==null||pe.scheduleRender())}),(pe,_e)=>ue.value?withDirectives((openBlock(),createElementBlock("div",{key:0,id:`pane-${le.value}`,ref_key:"paneRef",ref:V,class:normalizeClass(unref($).b()),role:"tabpanel","aria-hidden":!ae.value,"aria-labelledby":`tab-${le.value}`},[renderSlot(pe.$slots,"default")],10,_hoisted_1$D)),[[vShow,ae.value]]):createCommentVNode("v-if",!0)}});var TabPane=_export_sfc(_sfc_main$_,[["__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:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),_sfc_main$Z=defineComponent({name:"ElText",__name:"text",props:textProps,setup(n){const t=n,r=ref(),i=useFormSize(),g=useNamespace("text"),$=computed(()=>[g.b(),g.m(t.type),g.m(i.value),g.is("truncated",t.truncated),g.is("line-clamp",!isUndefined$1(t.lineClamp))]),V=()=>{var re,ie,ae,oe,le,ue,de;if(useAttrs$1().title)return;let pe=!1;const _e=((re=r.value)==null?void 0:re.textContent)||"";if(t.truncated){const Ce=(ie=r.value)==null?void 0:ie.offsetWidth,xe=(ae=r.value)==null?void 0:ae.scrollWidth;Ce&&xe&&xe>Ce&&(pe=!0)}else if(!isUndefined$1(t.lineClamp)){const Ce=(oe=r.value)==null?void 0:oe.offsetHeight,xe=(le=r.value)==null?void 0:le.scrollHeight;Ce&&xe&&xe>Ce&&(pe=!0)}pe?(ue=r.value)==null||ue.setAttribute("title",_e):(de=r.value)==null||de.removeAttribute("title")};return onMounted(V),onUpdated(V),(re,ie)=>(openBlock(),createBlock(resolveDynamicComponent(re.tag),{ref_key:"textRef",ref:r,class:normalizeClass($.value),style:normalizeStyle$1({"-webkit-line-clamp":re.lineClamp})},{default:withCtx(()=>[renderSlot(re.$slots,"default")]),_:3},8,["class","style"]))}});var Text=_export_sfc(_sfc_main$Z,[["__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:{type:definePropType(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:definePropType(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:{type:definePropType(String)},maxTime:{type:definePropType(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:definePropType([String,Object]),default:()=>clock_default},clearIcon:{type:definePropType([String,Object]),default:()=>circle_close_default},popperClass:{type:String,default:""},popperStyle:{type:definePropType([String,Object])},...useEmptyValuesProps}),parseTime=n=>{const t=(n||"").split(":");if(t.length>=2){let r=Number.parseInt(t[0],10);const i=Number.parseInt(t[1],10),g=n.toUpperCase();return g.includes("AM")&&r===12?r=0:g.includes("PM")&&r!==12&&(r+=12),{hours:r,minutes:i}}return null},compareTime=(n,t)=>{const r=parseTime(n);if(!r)return-1;const i=parseTime(t);if(!i)return-1;const g=r.minutes+r.hours*60,$=i.minutes+i.hours*60;return g===$?0:g>$?1:-1},padTime=n=>`${n}`.padStart(2,"0"),formatTime=n=>`${padTime(n.hours)}:${padTime(n.minutes)}`,nextTime=(n,t)=>{const r=parseTime(n);if(!r)return"";const i=parseTime(t);if(!i)return"";const g={hours:r.hours,minutes:r.minutes};return g.minutes+=i.minutes,g.hours+=i.hours,g.hours+=Math.floor(g.minutes/60),g.minutes=g.minutes%60,formatTime(g)},_sfc_main$Y=defineComponent({name:"ElTimeSelect",__name:"time-select",props:timeSelectProps,emits:[CHANGE_EVENT,"blur","focus","clear",UPDATE_MODEL_EVENT],setup(n,{expose:t}){dayjs.extend(customParseFormat);const{Option:r}=ElSelect,i=n,g=useNamespace("input"),$=ref(),V=useFormDisabled(),{lang:re}=useLocale(),ie=computed(()=>i.modelValue),ae=computed(()=>{const Ce=parseTime(i.start);return Ce?formatTime(Ce):null}),oe=computed(()=>{const Ce=parseTime(i.end);return Ce?formatTime(Ce):null}),le=computed(()=>{const Ce=parseTime(i.step);return Ce?formatTime(Ce):null}),ue=computed(()=>{const Ce=parseTime(i.minTime||"");return Ce?formatTime(Ce):null}),de=computed(()=>{const Ce=parseTime(i.maxTime||"");return Ce?formatTime(Ce):null}),he=computed(()=>{var Ce;const xe=[],Ie=(Ne,Oe)=>{xe.push({value:Ne,disabled:compareTime(Oe,ue.value||"-1:-1")<=0||compareTime(Oe,de.value||"100:100")>=0})};if(i.start&&i.end&&i.step){let Ne=ae.value,Oe;for(;Ne&&oe.value&&compareTime(Ne,oe.value)<=0;)Oe=dayjs(Ne,"HH:mm").locale(re.value).format(i.format),Ie(Oe,Ne),Ne=nextTime(Ne,le.value);if(i.includeEndTime&&oe.value&&((Ce=xe[xe.length-1])==null?void 0:Ce.value)!==oe.value){const $e=dayjs(oe.value,"HH:mm").locale(re.value).format(i.format);Ie($e,oe.value)}}return xe});return t({blur:()=>{var Ce,xe;(xe=(Ce=$.value)==null?void 0:Ce.blur)==null||xe.call(Ce)},focus:()=>{var Ce,xe;(xe=(Ce=$.value)==null?void 0:Ce.focus)==null||xe.call(Ce)}}),(Ce,xe)=>(openBlock(),createBlock(unref(ElSelect),{ref_key:"select",ref:$,"model-value":ie.value,disabled:unref(V),clearable:Ce.clearable,"clear-icon":Ce.clearIcon,size:Ce.size,effect:Ce.effect,placeholder:Ce.placeholder,"default-first-option":"",filterable:Ce.editable,"empty-values":Ce.emptyValues,"value-on-clear":Ce.valueOnClear,"popper-class":Ce.popperClass,"popper-style":Ce.popperStyle,"onUpdate:modelValue":xe[0]||(xe[0]=Ie=>Ce.$emit(unref(UPDATE_MODEL_EVENT),Ie)),onChange:xe[1]||(xe[1]=Ie=>Ce.$emit(unref(CHANGE_EVENT),Ie)),onBlur:xe[2]||(xe[2]=Ie=>Ce.$emit("blur",Ie)),onFocus:xe[3]||(xe[3]=Ie=>Ce.$emit("focus",Ie)),onClear:xe[4]||(xe[4]=()=>Ce.$emit("clear"))},{prefix:withCtx(()=>[Ce.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(g).e("prefix-icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ce.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(he.value,Ie=>(openBlock(),createBlock(unref(r),{key:Ie.value,label:Ie.value,value:Ie.value,disabled:Ie.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}});var TimeSelect=_export_sfc(_sfc_main$Y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);const ElTimeSelect=withInstall(TimeSelect),TIMELINE_INJECTION_KEY="timeline",timelineProps=buildProps({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),Timeline$1=defineComponent({name:"ElTimeline",props:timelineProps,setup(n,{slots:t}){const r=useNamespace("timeline");provide(TIMELINE_INJECTION_KEY,{props:n,slots:t});const i=computed(()=>[r.b(),r.is(n.mode)]);return()=>{var g,$;const V=flattedChildren(($=(g=t.default)==null?void 0:g.call(t))!=null?$:[]);return h$1("ul",{class:i.value},n.reverse?V.reverse():V)}}}),timelineItemProps=buildProps({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,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:Boolean}),_sfc_main$X=defineComponent({name:"ElTimelineItem",__name:"timeline-item",props:timelineItemProps,setup(n){const t=n,{props:r}=inject(TIMELINE_INJECTION_KEY),i=useNamespace("timeline-item"),g=computed(()=>[i.e("node"),i.em("node",t.size||""),i.em("node",t.type||""),i.is("hollow",t.hollow)]),$=computed(()=>[i.b(),{[i.e("center")]:t.center},i.is(r.mode)]);return(V,re)=>(openBlock(),createElementBlock("li",{class:normalizeClass($.value)},[createBaseVNode("div",{class:normalizeClass(unref(i).e("tail"))},null,2),V.$slots.dot?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(g.value),style:normalizeStyle$1({backgroundColor:V.color})},[V.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(i).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(V.icon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)),V.$slots.dot?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(i).e("dot"))},[renderSlot(V.$slots,"dot")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(i).e("wrapper"))},[!V.hideTimestamp&&V.placement==="top"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(i).e("timestamp"),unref(i).is("top")])},toDisplayString(V.timestamp),3)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(i).e("content"))},[renderSlot(V.$slots,"default")],2),!V.hideTimestamp&&V.placement==="bottom"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(i).e("timestamp"),unref(i).is("bottom")])},toDisplayString(V.timestamp),3)):createCommentVNode("v-if",!0)],2)],2))}});var TimelineItem=_export_sfc(_sfc_main$X,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const ElTimeline=withInstall(Timeline$1,{TimelineItem}),ElTimelineItem=withNoopInstall(TimelineItem),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=(n,t)=>[n,t].every(isArray$5)||isArray$5(n)&&isNil(t),transferEmits={[CHANGE_EVENT]:(n,t,r)=>[n,r].every(isArray$5)&&["left","right"].includes(t),[UPDATE_MODEL_EVENT]:n=>isArray$5(n),[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=n=>{const t={label:"label",key:"key",disabled:"disabled"};return computed(()=>({...t,...n.props}))},useCheck$1=(n,t,r)=>{const i=usePropsAlias(n),g=computed(()=>n.data.filter(oe=>isFunction$4(n.filterMethod)?n.filterMethod(t.query,oe):String(oe[i.value.label]||oe[i.value.key]).toLowerCase().includes(t.query.toLowerCase()))),$=computed(()=>g.value.filter(oe=>!oe[i.value.disabled])),V=computed(()=>{const oe=t.checked.length,le=n.data.length,{noChecked:ue,hasChecked:de}=n.format;return ue&&de?oe>0?de.replace(/\${checked}/g,oe.toString()).replace(/\${total}/g,le.toString()):ue.replace(/\${total}/g,le.toString()):`${oe}/${le}`}),re=computed(()=>{const oe=t.checked.length;return oe>0&&oe<$.value.length}),ie=()=>{const oe=$.value.map(le=>le[i.value.key]);t.allChecked=oe.length>0&&oe.every(le=>t.checked.includes(le))},ae=oe=>{t.checked=oe?$.value.map(le=>le[i.value.key]):[]};return watch(()=>t.checked,(oe,le)=>{if(ie(),t.checkChangeByUser){const ue=oe.concat(le).filter(de=>!oe.includes(de)||!le.includes(de));r(CHECKED_CHANGE_EVENT,oe,ue)}else r(CHECKED_CHANGE_EVENT,oe),t.checkChangeByUser=!0}),watch($,()=>{ie()}),watch(()=>n.data,()=>{const oe=[],le=g.value.map(ue=>ue[i.value.key]);t.checked.forEach(ue=>{le.includes(ue)&&oe.push(ue)}),t.checkChangeByUser=!1,t.checked=oe}),watch(()=>n.defaultChecked,(oe,le)=>{if(le&&oe.length===le.length&&oe.every(he=>le.includes(he)))return;const ue=[],de=$.value.map(he=>he[i.value.key]);oe.forEach(he=>{de.includes(he)&&ue.push(he)}),t.checkChangeByUser=!1,t.checked=ue},{immediate:!0}),{filteredData:g,checkableData:$,checkedSummary:V,isIndeterminate:re,updateAllChecked:ie,handleAllCheckedChange:ae}},_sfc_main$W=defineComponent({name:"ElTransferPanel",__name:"transfer-panel",props:transferPanelProps,emits:transferPanelEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useSlots(),V=({option:Ne})=>Ne,{t:re}=useLocale(),ie=useNamespace("transfer"),ae=reactive({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),oe=usePropsAlias(i),{filteredData:le,checkedSummary:ue,isIndeterminate:de,handleAllCheckedChange:he}=useCheck$1(i,ae,g),pe=computed(()=>!isEmpty(ae.query)&&isEmpty(le.value)),_e=computed(()=>!isEmpty($.default()[0].children)),{checked:Ce,allChecked:xe,query:Ie}=toRefs(ae);return t({query:Ie}),(Ne,Oe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ie).b("panel"))},[createBaseVNode("p",{class:normalizeClass(unref(ie).be("panel","header"))},[createVNode$1(unref(ElCheckbox),{modelValue:unref(xe),"onUpdate:modelValue":Oe[0]||(Oe[0]=$e=>isRef(xe)?xe.value=$e:null),indeterminate:unref(de),"validate-event":!1,onChange:unref(he)},{default:withCtx(()=>[createTextVNode(toDisplayString(Ne.title)+" ",1),createBaseVNode("span",null,toDisplayString(unref(ue)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),createBaseVNode("div",{class:normalizeClass([unref(ie).be("panel","body"),unref(ie).is("with-footer",_e.value)])},[Ne.filterable?(openBlock(),createBlock(unref(ElInput),{key:0,modelValue:unref(Ie),"onUpdate:modelValue":Oe[1]||(Oe[1]=$e=>isRef(Ie)?Ie.value=$e:null),class:normalizeClass(unref(ie).be("panel","filter")),size:"default",placeholder:Ne.placeholder,"prefix-icon":unref(search_default),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):createCommentVNode("v-if",!0),withDirectives(createVNode$1(unref(ElCheckboxGroup),{modelValue:unref(Ce),"onUpdate:modelValue":Oe[2]||(Oe[2]=$e=>isRef(Ce)?Ce.value=$e:null),"validate-event":!1,class:normalizeClass([unref(ie).is("filterable",Ne.filterable),unref(ie).be("panel","list")])},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(le),$e=>(openBlock(),createBlock(unref(ElCheckbox),{key:$e[unref(oe).key],class:normalizeClass(unref(ie).be("panel","item")),value:$e[unref(oe).key],disabled:$e[unref(oe).disabled],"validate-event":!1},{default:withCtx(()=>{var Ve;return[createVNode$1(V,{option:(Ve=Ne.optionRender)==null?void 0:Ve.call(Ne,$e)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[vShow,!pe.value&&!unref(isEmpty)(Ne.data)]]),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(ie).be("panel","empty"))},[renderSlot(Ne.$slots,"empty",{},()=>[createTextVNode(toDisplayString(pe.value?unref(re)("el.transfer.noMatch"):unref(re)("el.transfer.noData")),1)])],2),[[vShow,pe.value||unref(isEmpty)(Ne.data)]])],2),_e.value?(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(ie).be("panel","footer"))},[renderSlot(Ne.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var TransferPanel=_export_sfc(_sfc_main$W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const useComputedData=n=>{const t=usePropsAlias(n),r=computed(()=>n.data.reduce(($,V)=>($[V[t.value.key]]=V)&&$,{})),i=computed(()=>n.data.filter($=>!n.modelValue.includes($[t.value.key]))),g=computed(()=>n.targetOrder==="original"?n.data.filter($=>n.modelValue.includes($[t.value.key])):n.modelValue.reduce(($,V)=>{const re=r.value[V];return re&&$.push(re),$},[]));return{sourceData:i,targetData:g}},useMove=(n,t,r)=>{const i=usePropsAlias(n),g=(re,ie,ae)=>{r(UPDATE_MODEL_EVENT,re),r(CHANGE_EVENT,re,ie,ae)};return{addToLeft:()=>{const re=n.modelValue.slice();t.rightChecked.forEach(ie=>{const ae=re.indexOf(ie);ae>-1&&re.splice(ae,1)}),g(re,"left",t.rightChecked)},addToRight:()=>{let re=n.modelValue.slice();const ie=n.data.filter(ae=>{const oe=ae[i.value.key];return t.leftChecked.includes(oe)&&!n.modelValue.includes(oe)}).map(ae=>ae[i.value.key]);re=n.targetOrder==="unshift"?ie.concat(re):re.concat(ie),n.targetOrder==="original"&&(re=n.data.filter(ae=>re.includes(ae[i.value.key])).map(ae=>ae[i.value.key])),g(re,"right",t.leftChecked)}}},useCheckedChange=(n,t)=>({onSourceCheckedChange:(g,$)=>{n.leftChecked=g,$&&t(LEFT_CHECK_CHANGE_EVENT,g,$)},onTargetCheckedChange:(g,$)=>{n.rightChecked=g,$&&t(RIGHT_CHECK_CHANGE_EVENT,g,$)}}),_hoisted_1$C={key:0},_hoisted_2$r={key:0},_sfc_main$V=defineComponent({name:"ElTransfer",__name:"transfer",props:transferProps,emits:transferEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useSlots(),{t:V}=useLocale(),re=useNamespace("transfer"),{formItem:ie}=useFormItem(),ae=reactive({leftChecked:[],rightChecked:[]}),oe=usePropsAlias(i),{sourceData:le,targetData:ue}=useComputedData(i),{onSourceCheckedChange:de,onTargetCheckedChange:he}=useCheckedChange(ae,g),{addToLeft:pe,addToRight:_e}=useMove(i,ae,g),Ce=ref(),xe=ref(),Ie=Fe=>{switch(Fe){case"left":Ce.value.query="";break;case"right":xe.value.query="";break}},Ne=computed(()=>i.buttonTexts.length===2),Oe=computed(()=>i.titles[0]||V("el.transfer.titles.0")),$e=computed(()=>i.titles[1]||V("el.transfer.titles.1")),Ve=computed(()=>i.filterPlaceholder||V("el.transfer.filterPlaceholder"));watch(()=>i.modelValue,()=>{var Fe;i.validateEvent&&((Fe=ie==null?void 0:ie.validate)==null||Fe.call(ie,"change").catch(ze=>void 0))});const Ue=computed(()=>Fe=>{var ze;if(i.renderContent)return i.renderContent(h$1,Fe);const Pt=(((ze=$.default)==null?void 0:ze.call($,{option:Fe}))||[]).filter(qe=>qe.type!==Comment);return Pt.length?Pt:h$1("span",Fe[oe.value.label]||Fe[oe.value.key])});return t({clearQuery:Ie,leftPanel:Ce,rightPanel:xe}),(Fe,ze)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(re).b())},[createVNode$1(TransferPanel,{ref_key:"leftPanel",ref:Ce,data:unref(le),"option-render":Ue.value,placeholder:Ve.value,title:Oe.value,filterable:Fe.filterable,format:Fe.format,"filter-method":Fe.filterMethod,"default-checked":Fe.leftDefaultChecked,props:i.props,onCheckedChange:unref(de)},{empty:withCtx(()=>[renderSlot(Fe.$slots,"left-empty")]),default:withCtx(()=>[renderSlot(Fe.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),createBaseVNode("div",{class:normalizeClass(unref(re).e("buttons"))},[createVNode$1(unref(ElButton),{type:"primary",class:normalizeClass([unref(re).e("button"),unref(re).is("with-texts",Ne.value)]),disabled:unref(isEmpty)(ae.rightChecked),onClick:unref(pe)},{default:withCtx(()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_left_default))]),_:1}),unref(isUndefined$1)(Fe.buttonTexts[0])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_1$C,toDisplayString(Fe.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),createVNode$1(unref(ElButton),{type:"primary",class:normalizeClass([unref(re).e("button"),unref(re).is("with-texts",Ne.value)]),disabled:unref(isEmpty)(ae.leftChecked),onClick:unref(_e)},{default:withCtx(()=>[unref(isUndefined$1)(Fe.buttonTexts[1])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_2$r,toDisplayString(Fe.buttonTexts[1]),1)),createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),createVNode$1(TransferPanel,{ref_key:"rightPanel",ref:xe,data:unref(ue),"option-render":Ue.value,placeholder:Ve.value,filterable:Fe.filterable,format:Fe.format,"filter-method":Fe.filterMethod,title:$e.value,"default-checked":Fe.rightDefaultChecked,props:i.props,onCheckedChange:unref(he)},{empty:withCtx(()=>[renderSlot(Fe.$slots,"right-empty")]),default:withCtx(()=>[renderSlot(Fe.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Transfer=_export_sfc(_sfc_main$V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const ElTransfer=withInstall(Transfer),NODE_KEY="$treeNodeId",markNodeData=function(n,t){!t||t[NODE_KEY]||Object.defineProperty(t,NODE_KEY,{value:n.id,enumerable:!1,configurable:!1,writable:!1})},getNodeKey=(n,t)=>t==null?void 0:t[n||NODE_KEY],handleCurrentChange=(n,t,r)=>{const i=n.value.currentNode;r();const g=n.value.currentNode;i!==g&&t("current-change",g?g.data:null,g)},getChildState=n=>{let t=!0,r=!0,i=!0,g=!0;for(let $=0,V=n.length;${r.canFocus=t,setCanFocus(r.childNodes,t)})};let nodeIdSeed=0,Node$1=class hi{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,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 r in t)hasOwn$1(t,r)&&(this[r]=t[r]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var t;const r=this.store;if(!r)throw new Error("[Node]store is required!");r.registerNode(this);const i=r.props;if(i&&typeof i.isLeaf<"u"){const V=getPropertyFromData(this,"isLeaf");isBoolean$1(V)&&(this.isLeafByUser=V)}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.isLeafByUser&&this.expand(),isArray$5(this.data)||markNodeData(this,this.data),!this.data)return;const g=r.defaultExpandedKeys,$=r.key;$&&!isNil(this.key)&&g&&g.includes(this.key)&&this.expand(null,r.autoExpandParent),$&&r.currentNodeKey!==void 0&&this.key===r.currentNodeKey&&(r.currentNode&&(r.currentNode.isCurrent=!1),r.currentNode=this,r.currentNode.isCurrent=!0),r.lazy&&r._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((t=this.parent)==null?void 0:t.expanded)===!0)&&(this.canFocus=!0)}setData(t){isArray$5(t)||markNodeData(this,t),this.data=t,this.childNodes=[];let r;this.level===0&&isArray$5(this.data)?r=this.data:r=getPropertyFromData(this,"children")||[];for(let i=0,g=r.length;i-1)return t.childNodes[r+1]}return null}get previousSibling(){const t=this.parent;if(t){const r=t.childNodes.indexOf(this);if(r>-1)return r>0?t.childNodes[r-1]:null}return null}contains(t,r=!0){return(this.childNodes||[]).some(i=>i===t||r&&i.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,r,i){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof hi)){if(!i){const g=this.getChildren(!0);g!=null&&g.includes(t.data)||(isUndefined$1(r)||r<0?g==null||g.push(t.data):g==null||g.splice(r,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=reactive(new hi(t)),t instanceof hi&&t.initialize()}t.level=this.level+1,isUndefined$1(r)||r<0?this.childNodes.push(t):this.childNodes.splice(r,0,t),this.updateLeafState()}insertBefore(t,r){let i;r&&(i=this.childNodes.indexOf(r)),this.insertChild(t,i)}insertAfter(t,r){let i;r&&(i=this.childNodes.indexOf(r),i!==-1&&(i+=1)),this.insertChild(t,i)}removeChild(t){const r=this.getChildren()||[],i=r.indexOf(t.data);i>-1&&r.splice(i,1);const g=this.childNodes.indexOf(t);g>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(g,1)),this.updateLeafState()}removeChildByData(t){const r=this.childNodes.find(i=>i.data===t);r&&this.removeChild(r)}expand(t,r){const i=()=>{if(r){let g=this.parent;for(;g&&g.level>0;)g.expanded=!0,g=g.parent}this.expanded=!0,t&&t(),setCanFocus(this.childNodes,!0)};this.shouldLoadData()?this.loadData(g=>{isArray$5(g)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||reInitChecked(this),i())}):i()}doCreateChildren(t,r={}){t.forEach(i=>{this.insertChild(Object.assign({data:i},r),void 0,!0)})}collapse(){this.expanded=!1,setCanFocus(this.childNodes,!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,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,r,i,g){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const V=()=>{if(r){const re=this.childNodes;for(let le=0,ue=re.length;le{V(),reInitChecked(this)},{checked:t!==!1});return}else V()}const $=this.parent;!$||$.level===0||i||reInitChecked($)}getChildren(t=!1){if(this.level===0)return this.data;const r=this.data;if(!r)return null;const i=this.store.props;let g="children";return i&&(g=i.children||"children"),isUndefined$1(r[g])&&(r[g]=null),t&&!r[g]&&(r[g]=[]),r[g]}updateChildren(){const t=this.getChildren()||[],r=this.childNodes.map($=>$.data),i={},g=[];t.forEach(($,V)=>{const re=$[NODE_KEY];!!re&&r.some(ae=>(ae==null?void 0:ae[NODE_KEY])===re)?i[re]={index:V,data:$}:g.push({index:V,data:$})}),this.store.lazy||r.forEach($=>{i[$==null?void 0:$[NODE_KEY]]||this.removeChildByData($)}),g.forEach(({index:$,data:V})=>{this.insertChild({data:V},$)}),this.updateLeafState()}loadData(t,r={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(r).length)){this.loading=!0;const i=$=>{this.childNodes=[],this.doCreateChildren($,r),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,$)},g=()=>{this.loading=!1};this.store.load(this,i,g)}else t&&t.call(this)}eachNode(t){const r=[this];for(;r.length;){const i=r.shift();r.unshift(...i.childNodes),t(i)}}reInitChecked(){this.store.checkStrictly||reInitChecked(this)}};class TreeStore{constructor(t){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const r in t)hasOwn$1(t,r)&&(this[r]=t[r]);this.nodesMap={}}initialize(){if(this.root=new Node$1({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,r=>{this.root.doCreateChildren(r),this._initDefaultCheckedNodes()},NOOP)}else this._initDefaultCheckedNodes()}filter(t){const r=this.filterNodeMethod,i=this.lazy,g=async function($){const V=$.root?$.root.childNodes:$.childNodes;for(const[re,ie]of V.entries())ie.visible=!!(r!=null&&r.call(ie,t,ie.data,ie)),re%80===0&&re>0&&await nextTick(),await g(ie);if(!$.visible&&V.length){let re=!0;re=!V.some(ie=>ie.visible),$.root?$.root.visible=re===!1:$.visible=re===!1}t&&$.visible&&!$.isLeaf&&(!i||$.loaded)&&$.expand()};g(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof Node$1)return t;const r=isObject$6(t)?getNodeKey(this.key,t):t;return this.nodesMap[r]||null}insertBefore(t,r){var i;const g=this.getNode(r);(i=g.parent)==null||i.insertBefore({data:t},g)}insertAfter(t,r){var i;const g=this.getNode(r);(i=g.parent)==null||i.insertAfter({data:t},g)}remove(t){const r=this.getNode(t);r&&r.parent&&(r===this.currentNode&&(this.currentNode=null),r.parent.removeChild(r))}append(t,r){const i=isPropAbsent(r)?this.root:this.getNode(r);i&&i.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],r=this.nodesMap;t.forEach(i=>{const g=r[i];g&&g.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){const r=this.defaultCheckedKeys||[];!isNil(t.key)&&r.includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const r=this.key;if(!(!t||!t.data))if(!r)this.nodesMap[t.id]=t;else{const i=t.key;isNil(i)||(this.nodesMap[i]=t)}}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(i=>{this.deregisterNode(i)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,r=!1){const i=[],g=function($){($.root?$.root.childNodes:$.childNodes).forEach(re=>{(re.checked||r&&re.indeterminate)&&(!t||t&&re.isLeaf)&&i.push(re.data),g(re)})};return g(this),i}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(r=>(r||{})[this.key])}getHalfCheckedNodes(){const t=[],r=function(i){(i.root?i.root.childNodes:i.childNodes).forEach($=>{$.indeterminate&&t.push($.data),r($)})};return r(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],r=this.nodesMap;for(const i in r)hasOwn$1(r,i)&&t.push(r[i]);return t}updateChildren(t,r){const i=this.nodesMap[t];if(!i)return;const g=i.childNodes;for(let $=g.length-1;$>=0;$--){const V=g[$];this.remove(V.data)}for(let $=0,V=r.length;$ie.level-ae.level),$=Object.create(null),V=Object.keys(i);g.forEach(ie=>ie.setChecked(!1,!1));const re=ie=>{ie.childNodes.forEach(ae=>{var oe;$[ae.data[t]]=!0,(oe=ae.childNodes)!=null&&oe.length&&re(ae)})};for(let ie=0,ae=g.length;ie{_e.isLeaf||_e.setChecked(!1,!1),de(_e)})};de(oe)}}}setCheckedNodes(t,r=!1){const i=this.key,g={};t.forEach($=>{g[($||{})[i]]=!0}),this._setCheckedKeys(i,r,g)}setCheckedKeys(t,r=!1){this.defaultCheckedKeys=t;const i=this.key,g={};t.forEach($=>{g[$]=!0}),this._setCheckedKeys(i,r,g)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(r=>{const i=this.getNode(r);i&&i.expand(null,this.autoExpandParent)})}setChecked(t,r,i){const g=this.getNode(t);g&&g.setChecked(!!r,i)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const r=this.currentNode;r&&(r.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,r=!0){var i;const g=t[this.key],$=this.nodesMap[g];this.setCurrentNode($),r&&this.currentNode&&this.currentNode.level>1&&((i=this.currentNode.parent)==null||i.expand(null,!0))}setCurrentNodeKey(t,r=!0){var i;if(this.currentNodeKey=t,isPropAbsent(t)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const g=this.getNode(t);g&&(this.setCurrentNode(g),r&&this.currentNode&&this.currentNode.level>1&&((i=this.currentNode.parent)==null||i.expand(null,!0)))}}const ROOT_TREE_INJECTION_KEY$1="RootTree",NODE_INSTANCE_INJECTION_KEY="NodeInstance",TREE_NODE_MAP_INJECTION_KEY="TreeNodeMap",_sfc_main$U=defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(n){const t=useNamespace("tree"),r=inject(NODE_INSTANCE_INJECTION_KEY),i=inject(ROOT_TREE_INJECTION_KEY$1);return()=>{const g=n.node,{data:$,store:V}=g;return n.renderContent?n.renderContent(h$1,{_self:r,node:g,data:$,store:V}):renderSlot(i.ctx.slots,"default",{node:g,data:$},()=>[h$1(ElText,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[g.label])])}}});var NodeContent=_export_sfc(_sfc_main$U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function useNodeExpandEventBroadcast(n){const t=inject(TREE_NODE_MAP_INJECTION_KEY,null);let r={treeNodeExpand:i=>{var g;n.node!==i&&((g=n.node)==null||g.collapse())},children:new Set};return t&&t.children.add(r),onBeforeUnmount(()=>{t&&t.children.delete(r),r=null}),provide(TREE_NODE_MAP_INJECTION_KEY,r),{broadcastExpanded:i=>{if(n.accordion)for(const g of r.children)g.treeNodeExpand(i)}}}const dragEventsKey=Symbol("dragEvents");function useDragNodeHandler({props:n,ctx:t,el$:r,dropIndicator$:i,store:g}){const $=useNamespace("tree"),V=ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return provide(dragEventsKey,{treeNodeDragStart:({event:oe,treeNode:le})=>{if(oe.dataTransfer){if(isFunction$4(n.allowDrag)&&!n.allowDrag(le.node))return oe.preventDefault(),!1;oe.dataTransfer.effectAllowed="move";try{oe.dataTransfer.setData("text/plain","")}catch{}V.value.draggingNode=le,t.emit("node-drag-start",le.node,oe)}},treeNodeDragOver:({event:oe,treeNode:le})=>{if(!oe.dataTransfer)return;const ue=le,de=V.value.dropNode;de&&de.node.id!==ue.node.id&&removeClass(de.$el,$.is("drop-inner"));const he=V.value.draggingNode;if(!he||!ue)return;let pe=!0,_e=!0,Ce=!0,xe=!0;isFunction$4(n.allowDrop)&&(pe=n.allowDrop(he.node,ue.node,"prev"),xe=_e=n.allowDrop(he.node,ue.node,"inner"),Ce=n.allowDrop(he.node,ue.node,"next")),oe.dataTransfer.dropEffect=_e||pe||Ce?"move":"none",(pe||_e||Ce)&&(de==null?void 0:de.node.id)!==ue.node.id&&(de&&t.emit("node-drag-leave",he.node,de.node,oe),t.emit("node-drag-enter",he.node,ue.node,oe)),pe||_e||Ce?V.value.dropNode=ue:V.value.dropNode=null,ue.node.nextSibling===he.node&&(Ce=!1),ue.node.previousSibling===he.node&&(pe=!1),ue.node.contains(he.node,!1)&&(_e=!1),(he.node===ue.node||he.node.contains(ue.node))&&(pe=!1,_e=!1,Ce=!1);const Ie=ue.$el,Ne=Ie.querySelector(`.${$.be("node","content")}`).getBoundingClientRect(),Oe=r.value.getBoundingClientRect(),$e=r.value.scrollTop;let Ve;const Ue=pe?_e?.25:Ce?.45:1:Number.NEGATIVE_INFINITY,Fe=Ce?_e?.75:pe?.55:0:Number.POSITIVE_INFINITY;let ze=-9999;const Pt=oe.clientY-Ne.top;PtNe.height*Fe?Ve="after":_e?Ve="inner":Ve="none";const qe=Ie.querySelector(`.${$.be("node","expand-icon")}`).getBoundingClientRect(),Et=i.value;Ve==="before"?ze=qe.top-Oe.top+$e:Ve==="after"&&(ze=qe.bottom-Oe.top+$e),Et.style.top=`${ze}px`,Et.style.left=`${qe.right-Oe.left}px`,Ve==="inner"?addClass(Ie,$.is("drop-inner")):removeClass(Ie,$.is("drop-inner")),V.value.showDropIndicator=Ve==="before"||Ve==="after",V.value.allowDrop=V.value.showDropIndicator||xe,V.value.dropType=Ve,t.emit("node-drag-over",he.node,ue.node,oe)},treeNodeDragEnd:oe=>{var le,ue;const{draggingNode:de,dropType:he,dropNode:pe}=V.value;if(oe.preventDefault(),oe.dataTransfer&&(oe.dataTransfer.dropEffect="move"),de!=null&&de.node.data&&pe){const _e={data:de.node.data};he!=="none"&&de.node.remove(),he==="before"?(le=pe.node.parent)==null||le.insertBefore(_e,pe.node):he==="after"?(ue=pe.node.parent)==null||ue.insertAfter(_e,pe.node):he==="inner"&&pe.node.insertChild(_e),he!=="none"&&(g.value.registerNode(_e),g.value.key&&de.node.eachNode(Ce=>{var xe;(xe=g.value.nodesMap[Ce.data[g.value.key]])==null||xe.setChecked(Ce.checked,!g.value.checkStrictly)})),removeClass(pe.$el,$.is("drop-inner")),t.emit("node-drag-end",de.node,pe.node,he,oe),he!=="none"&&t.emit("node-drop",de.node,pe.node,he,oe)}de&&!pe&&t.emit("node-drag-end",de.node,null,he,oe),V.value.showDropIndicator=!1,V.value.draggingNode=null,V.value.dropNode=null,V.value.allowDrop=!0}}),{dragState:V}}const _sfc_main$T=defineComponent({name:"ElTreeNode",components:{ElCollapseTransition,ElCheckbox,NodeContent,ElIcon,Loading:loading_default},props:{node:{type:Node$1,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(n,t){const r=useNamespace("tree"),{broadcastExpanded:i}=useNodeExpandEventBroadcast(n),g=inject(ROOT_TREE_INJECTION_KEY$1),$=ref(!1),V=ref(!1),re=ref(),ie=ref(),ae=ref(),oe=inject(dragEventsKey),le=getCurrentInstance();provide(NODE_INSTANCE_INJECTION_KEY,le),n.node.expanded&&($.value=!0,V.value=!0);const ue=g.props.props.children||"children";watch(()=>{var Fe;const ze=(Fe=n.node.data)==null?void 0:Fe[ue];return ze&&[...ze]},()=>{n.node.updateChildren()}),watch(()=>n.node.indeterminate,Fe=>{pe(n.node.checked,Fe)}),watch(()=>n.node.checked,Fe=>{pe(Fe,n.node.indeterminate)}),watch(()=>n.node.childNodes.length,()=>n.node.reInitChecked()),watch(()=>n.node.expanded,Fe=>{nextTick(()=>$.value=Fe),Fe&&(V.value=!0)});const de=Fe=>getNodeKey(g.props.nodeKey,Fe.data),he=Fe=>{const ze=n.props.class;if(!ze)return{};let Pt;if(isFunction$4(ze)){const{data:qe}=Fe;Pt=ze(qe,Fe)}else Pt=ze;return isString$2(Pt)?{[Pt]:!0}:Pt},pe=(Fe,ze)=>{(re.value!==Fe||ie.value!==ze)&&g.ctx.emit("check-change",n.node.data,Fe,ze),re.value=Fe,ie.value=ze},_e=Fe=>{handleCurrentChange(g.store,g.ctx.emit,()=>{var ze;if((ze=g==null?void 0:g.props)==null?void 0:ze.nodeKey){const qe=de(n.node);g.store.value.setCurrentNodeKey(qe)}else g.store.value.setCurrentNode(n.node)}),g.currentNode.value=n.node,g.props.expandOnClickNode&&xe(),(g.props.checkOnClickNode||n.node.isLeaf&&g.props.checkOnClickLeaf&&n.showCheckbox)&&!n.node.disabled&&Ie(!n.node.checked),g.ctx.emit("node-click",n.node.data,n.node,le,Fe)},Ce=Fe=>{var ze;(ze=g.instance.vnode.props)!=null&&ze.onNodeContextmenu&&(Fe.stopPropagation(),Fe.preventDefault()),g.ctx.emit("node-contextmenu",Fe,n.node.data,n.node,le)},xe=()=>{n.node.isLeaf||($.value?(g.ctx.emit("node-collapse",n.node.data,n.node,le),n.node.collapse()):n.node.expand(()=>{t.emit("node-expand",n.node.data,n.node,le)}))},Ie=Fe=>{const ze=g==null?void 0:g.props.checkStrictly,Pt=n.node.childNodes;!ze&&Pt.length&&(Fe=Pt.some(qe=>!qe.isEffectivelyChecked)),n.node.setChecked(Fe,!ze),nextTick(()=>{const qe=g.store.value;g.ctx.emit("check",n.node.data,{checkedNodes:qe.getCheckedNodes(),checkedKeys:qe.getCheckedKeys(),halfCheckedNodes:qe.getHalfCheckedNodes(),halfCheckedKeys:qe.getHalfCheckedKeys()})})};return{ns:r,node$:ae,tree:g,expanded:$,childNodeRendered:V,oldChecked:re,oldIndeterminate:ie,getNodeKey:de,getNodeClass:he,handleSelectChange:pe,handleClick:_e,handleContextMenu:Ce,handleExpandIconClick:xe,handleCheckChange:Ie,handleChildNodeExpand:(Fe,ze,Pt)=>{i(ze),g.ctx.emit("node-expand",Fe,ze,Pt)},handleDragStart:Fe=>{g.props.draggable&&oe.treeNodeDragStart({event:Fe,treeNode:n})},handleDragOver:Fe=>{Fe.preventDefault(),g.props.draggable&&oe.treeNodeDragOver({event:Fe,treeNode:{$el:ae.value,node:n.node}})},handleDrop:Fe=>{Fe.preventDefault()},handleDragEnd:Fe=>{g.props.draggable&&oe.treeNodeDragEnd(Fe)},CaretRight:caret_right_default}}}),_hoisted_1$B=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],_hoisted_2$q=["aria-expanded"];function _sfc_render$2(n,t,r,i,g,$){const V=resolveComponent("el-icon"),re=resolveComponent("el-checkbox"),ie=resolveComponent("loading"),ae=resolveComponent("node-content"),oe=resolveComponent("el-tree-node"),le=resolveComponent("el-collapse-transition");return withDirectives((openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([n.ns.b("node"),n.ns.is("expanded",n.expanded),n.ns.is("current",n.node.isCurrent),n.ns.is("hidden",!n.node.visible),n.ns.is("focusable",!n.node.disabled),n.ns.is("checked",!n.node.disabled&&n.node.checked),n.getNodeClass(n.node)]),role:"treeitem",tabindex:"-1","aria-expanded":n.expanded,"aria-disabled":n.node.disabled,"aria-checked":n.node.checked,draggable:n.tree.props.draggable,"data-key":n.getNodeKey(n.node),onClick:t[2]||(t[2]=withModifiers((...ue)=>n.handleClick&&n.handleClick(...ue),["stop"])),onContextmenu:t[3]||(t[3]=(...ue)=>n.handleContextMenu&&n.handleContextMenu(...ue)),onDragstart:t[4]||(t[4]=withModifiers((...ue)=>n.handleDragStart&&n.handleDragStart(...ue),["stop"])),onDragover:t[5]||(t[5]=withModifiers((...ue)=>n.handleDragOver&&n.handleDragOver(...ue),["stop"])),onDragend:t[6]||(t[6]=withModifiers((...ue)=>n.handleDragEnd&&n.handleDragEnd(...ue),["stop"])),onDrop:t[7]||(t[7]=withModifiers((...ue)=>n.handleDrop&&n.handleDrop(...ue),["stop"]))},[createBaseVNode("div",{class:normalizeClass(n.ns.be("node","content")),style:normalizeStyle$1({paddingLeft:(n.node.level-1)*n.tree.props.indent+"px"})},[n.tree.props.icon||n.CaretRight?(openBlock(),createBlock(V,{key:0,class:normalizeClass([n.ns.be("node","expand-icon"),n.ns.is("leaf",n.node.isLeaf),{expanded:!n.node.isLeaf&&n.expanded}]),onClick:withModifiers(n.handleExpandIconClick,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.tree.props.icon||n.CaretRight)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),n.showCheckbox?(openBlock(),createBlock(re,{key:1,"model-value":n.node.checked,indeterminate:n.node.indeterminate,disabled:!!n.node.disabled,onClick:t[0]||(t[0]=withModifiers(()=>{},["stop"])),onChange:n.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):createCommentVNode("v-if",!0),n.node.loading?(openBlock(),createBlock(V,{key:2,class:normalizeClass([n.ns.be("node","loading-icon"),n.ns.is("loading")])},{default:withCtx(()=>[createVNode$1(ie)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode$1(ae,{node:n.node,"render-content":n.renderContent},null,8,["node","render-content"])],6),createVNode$1(le,null,{default:withCtx(()=>[!n.renderAfterExpand||n.childNodeRendered?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(n.ns.be("node","children")),role:"group","aria-expanded":n.expanded,onClick:t[1]||(t[1]=withModifiers(()=>{},["stop"]))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.node.childNodes,ue=>(openBlock(),createBlock(oe,{key:n.getNodeKey(ue),"render-content":n.renderContent,"render-after-expand":n.renderAfterExpand,"show-checkbox":n.showCheckbox,node:ue,accordion:n.accordion,props:n.props,onNodeExpand:n.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,_hoisted_2$q)),[[vShow,n.expanded]]):createCommentVNode("v-if",!0)]),_:1})],42,_hoisted_1$B)),[[vShow,n.node.visible]])}var ElTreeNode$1=_export_sfc(_sfc_main$T,[["render",_sfc_render$2],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function useKeydown({el$:n},t){const r=useNamespace("tree");onMounted(()=>{$()}),onUpdated(()=>{var V;(V=n.value)==null||V.querySelectorAll("input[type=checkbox]").forEach(re=>{re.setAttribute("tabindex","-1")})});function i(V,re){var ie,ae;const oe=t.value.getNode(V[re].dataset.key);return oe.canFocus&&oe.visible&&(((ie=oe.parent)==null?void 0:ie.expanded)||((ae=oe.parent)==null?void 0:ae.level)===0)}useEventListener(n,"keydown",V=>{const re=V.target;if(!re.className.includes(r.b("node")))return;const ie=getEventCode(V),ae=Array.from(n.value.querySelectorAll(`.${r.is("focusable")}[role=treeitem]`)),oe=ae.indexOf(re);let le;if([EVENT_CODE.up,EVENT_CODE.down].includes(ie)){if(V.preventDefault(),ie===EVENT_CODE.up){le=oe===-1?0:oe!==0?oe-1:ae.length-1;const de=le;for(;!i(ae,le);){if(le--,le===de){le=-1;break}le<0&&(le=ae.length-1)}}else{le=oe===-1?0:oe=ae.length&&(le=0)}}le!==-1&&ae[le].focus()}[EVENT_CODE.left,EVENT_CODE.right].includes(ie)&&(V.preventDefault(),re.click());const ue=re.querySelector('[type="checkbox"]');[EVENT_CODE.enter,EVENT_CODE.numpadEnter,EVENT_CODE.space].includes(ie)&&ue&&(V.preventDefault(),ue.click())});const $=()=>{var V;if(!n.value)return;const re=Array.from(n.value.querySelectorAll(`.${r.is("focusable")}[role=treeitem]`));Array.from(n.value.querySelectorAll("input[type=checkbox]")).forEach(oe=>{oe.setAttribute("tabindex","-1")});const ae=n.value.querySelectorAll(`.${r.is("checked")}[role=treeitem]`);if(ae.length){ae[0].setAttribute("tabindex","0");return}(V=re[0])==null||V.setAttribute("tabindex","0")}}const treeProps$1=buildProps({data:{type:definePropType(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:definePropType(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:definePropType(Function)},allowDrop:{type:definePropType(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:iconPropType}}),treeEmits$1={"check-change":(n,t,r)=>n&&isBoolean$1(t)&&isBoolean$1(r),"current-change":(n,t)=>!0,"node-click":(n,t,r,i)=>n&&t&&i instanceof Event,"node-contextmenu":(n,t,r,i)=>n instanceof Event&&t&&r,"node-collapse":(n,t,r)=>n&&t,"node-expand":(n,t,r)=>n&&t,check:(n,t)=>n&&t,"node-drag-start":(n,t)=>n&&t,"node-drag-end":(n,t,r,i)=>n&&i,"node-drop":(n,t,r,i)=>n&&t&&i,"node-drag-leave":(n,t,r)=>n&&t&&r,"node-drag-enter":(n,t,r)=>n&&t&&r,"node-drag-over":(n,t,r)=>n&&t&&r},_sfc_main$S=defineComponent({name:"ElTree",components:{ElTreeNode:ElTreeNode$1},props:treeProps$1,emits:treeEmits$1,setup(n,t){const{t:r}=useLocale(),i=useNamespace("tree"),g=ref(new TreeStore({key:n.nodeKey,data:n.data,lazy:n.lazy,props:n.props,load:n.load,currentNodeKey:n.currentNodeKey,checkStrictly:n.checkStrictly,checkDescendants:n.checkDescendants,defaultCheckedKeys:n.defaultCheckedKeys,defaultExpandedKeys:n.defaultExpandedKeys,autoExpandParent:n.autoExpandParent,defaultExpandAll:n.defaultExpandAll,filterNodeMethod:n.filterNodeMethod}));g.value.initialize();const $=ref(g.value.root),V=ref(null),re=ref(null),ie=ref(null),{broadcastExpanded:ae}=useNodeExpandEventBroadcast(n),{dragState:oe}=useDragNodeHandler({props:n,ctx:t,el$:re,dropIndicator$:ie,store:g});useKeydown({el$:re},g);const le=getCurrentInstance(),ue=computed(()=>{let vn=le==null?void 0:le.parent;for(;vn;){if(vn.type.name==="ElTreeSelect")return!0;vn=vn.parent}return!1}),de=computed(()=>{const{childNodes:vn}=$.value;return(!vn||vn.length===0||vn.every(({visible:_n})=>!_n))&&!ue.value});watch(()=>n.currentNodeKey,vn=>{g.value.setCurrentNodeKey(vn??null)}),watch(()=>n.defaultCheckedKeys,(vn,_n)=>{isEqual$1(vn,_n)||g.value.setDefaultCheckedKey(vn??[])}),watch(()=>n.defaultExpandedKeys,vn=>{g.value.setDefaultExpandedKeys(vn??[])}),watch(()=>n.data,vn=>{g.value.setData(vn)},{deep:!0}),watch(()=>n.checkStrictly,vn=>{g.value.checkStrictly=vn});const he=vn=>{if(!n.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");g.value.filter(vn)},pe=vn=>getNodeKey(n.nodeKey,vn.data),_e=vn=>{if(!n.nodeKey)throw new Error(`[Tree] nodeKey is required in ${vn}`)},Ce=vn=>{_e("getNodePath");const _n=g.value.getNode(vn);if(!_n)return[];const wn=[_n.data];let bn=_n.parent;for(;bn&&bn!==$.value;)wn.push(bn.data),bn=bn.parent;return wn.reverse()},xe=(vn,_n)=>g.value.getCheckedNodes(vn,_n),Ie=vn=>g.value.getCheckedKeys(vn),Ne=()=>{const vn=g.value.getCurrentNode();return vn?vn.data:null},Oe=()=>{_e("getCurrentKey");const vn=Ne();return vn?vn[n.nodeKey]:null},$e=(vn,_n)=>{_e("setCheckedNodes"),g.value.setCheckedNodes(vn,_n)},Ve=(vn,_n)=>{_e("setCheckedKeys"),g.value.setCheckedKeys(vn,_n)},Ue=(vn,_n,wn)=>{g.value.setChecked(vn,_n,wn)},Fe=()=>g.value.getHalfCheckedNodes(),ze=()=>g.value.getHalfCheckedKeys(),Pt=(vn,_n=!0)=>{_e("setCurrentNode"),handleCurrentChange(g,t.emit,()=>{ae(vn),g.value.setUserCurrentNode(vn,_n)})},qe=(vn=null,_n=!0)=>{_e("setCurrentKey"),handleCurrentChange(g,t.emit,()=>{ae(),g.value.setCurrentNodeKey(vn,_n)})},Et=vn=>g.value.getNode(vn),kt=vn=>{g.value.remove(vn)},At=(vn,_n)=>{g.value.append(vn,_n)},Dt=(vn,_n)=>{g.value.insertBefore(vn,_n)},Lt=(vn,_n)=>{g.value.insertAfter(vn,_n)},jt=(vn,_n,wn)=>{ae(_n),t.emit("node-expand",vn,_n,wn)},hn=(vn,_n)=>{_e("updateKeyChild"),g.value.updateChildren(vn,_n)};return provide(ROOT_TREE_INJECTION_KEY$1,{ctx:t,props:n,store:g,root:$,currentNode:V,instance:le}),provide(formItemContextKey,void 0),{ns:i,store:g,root:$,currentNode:V,dragState:oe,el$:re,dropIndicator$:ie,isEmpty:de,filter:he,getNodeKey:pe,getNodePath:Ce,getCheckedNodes:xe,getCheckedKeys:Ie,getCurrentNode:Ne,getCurrentKey:Oe,setCheckedNodes:$e,setCheckedKeys:Ve,setChecked:Ue,getHalfCheckedNodes:Fe,getHalfCheckedKeys:ze,setCurrentNode:Pt,setCurrentKey:qe,t:r,getNode:Et,remove:kt,append:At,insertBefore:Dt,insertAfter:Lt,handleNodeExpand:jt,updateKeyChildren:hn}}});function _sfc_render$1(n,t,r,i,g,$){const V=resolveComponent("el-tree-node");return openBlock(),createElementBlock("div",{ref:"el$",class:normalizeClass([n.ns.b(),n.ns.is("dragging",!!n.dragState.draggingNode),n.ns.is("drop-not-allow",!n.dragState.allowDrop),n.ns.is("drop-inner",n.dragState.dropType==="inner"),{[n.ns.m("highlight-current")]:n.highlightCurrent}]),role:"tree"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.root.childNodes,re=>(openBlock(),createBlock(V,{key:n.getNodeKey(re),node:re,props:n.props,accordion:n.accordion,"render-after-expand":n.renderAfterExpand,"show-checkbox":n.showCheckbox,"render-content":n.renderContent,onNodeExpand:n.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),n.isEmpty?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(n.ns.e("empty-block"))},[renderSlot(n.$slots,"empty",{},()=>{var re;return[createBaseVNode("span",{class:normalizeClass(n.ns.e("empty-text"))},toDisplayString((re=n.emptyText)!=null?re:n.t("el.tree.emptyText")),3)]})],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{ref:"dropIndicator$",class:normalizeClass(n.ns.e("drop-indicator"))},null,2),[[vShow,n.dragState.showDropIndicator]])],2)}var Tree=_export_sfc(_sfc_main$S,[["render",_sfc_render$1],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);const ElTree=withInstall(Tree),useSelect=(n,{attrs:t,emit:r},{select:i,tree:g,key:$})=>{const V=useNamespace("tree-select");watch(()=>n.data,()=>{n.filterable&&nextTick(()=>{var ae,oe;(oe=g.value)==null||oe.filter((ae=i.value)==null?void 0:ae.states.inputValue)})},{flush:"post"});const re=ae=>{var oe;const le=ae.at(-1);if(le.expanded&&le.childNodes.at(-1))re([le.childNodes.at(-1)]);else{const ue=(oe=g.value.el$)==null?void 0:oe.querySelector(`[data-key="${ae.at(-1).key}"]`);ue==null||ue.focus({preventScroll:!0});return}};return onMounted(()=>{useEventListener(()=>{var ae;return(ae=i.value)==null?void 0:ae.$el},"keydown",async ae=>{const oe=getEventCode(ae),{dropdownMenuVisible:le}=i.value;[EVENT_CODE.down,EVENT_CODE.up].includes(oe)&&le&&(await nextTick(),setTimeout(()=>{var ue,de,he;if(EVENT_CODE.up===oe){const pe=g.value.store.root.childNodes;re(pe);return}(he=(de=(ue=i.value.optionsArray[i.value.states.hoveringIndex].$el)==null?void 0:ue.parentNode)==null?void 0:de.parentNode)==null||he.focus({preventScroll:!0})}))},{capture:!0})}),{...pick$1(toRefs(n),Object.keys(ElSelect.props)),...t,class:computed(()=>t.class),style:computed(()=>t.style),"onUpdate:modelValue":ae=>r(UPDATE_MODEL_EVENT,ae),valueKey:$,popperClass:computed(()=>{const ae=[V.e("popper")];return n.popperClass&&ae.push(n.popperClass),ae.join(" ")}),filterMethod:(ae="")=>{var oe;n.filterMethod?n.filterMethod(ae):n.remoteMethod?n.remoteMethod(ae):(oe=g.value)==null||oe.filter(ae)}}},component=defineComponent({extends:ElOption,setup(n,t){const r=ElOption.setup(n,t);delete r.selectOptionClick;const i=getCurrentInstance().proxy;return nextTick(()=>{r.select.states.cachedOptions.get(i.value)||r.select.onOptionCreate(i)}),watch(()=>t.attrs.visible,g=>{nextTick(()=>{r.states.visible=g})},{immediate:!0}),r},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function isValidValue(n){return n||n===0}function isValidArray(n){return isArray$5(n)&&n.length}function toValidArray(n){return isArray$5(n)?n:isValidValue(n)?[n]:[]}function treeFind(n,t,r,i,g){for(let $=0;${watch([()=>n.modelValue,$],()=>{n.showCheckbox&&nextTick(()=>{const ue=$.value;ue&&!isEqual$1(ue.getCheckedKeys(),toValidArray(n.modelValue))&&ue.setCheckedKeys(toValidArray(n.modelValue))})},{immediate:!0,deep:!0});const re=computed(()=>({value:V.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...n.props})),ie=(ue,de)=>{var he;const pe=re.value[ue];return isFunction$4(pe)?pe(de,(he=$.value)==null?void 0:he.getNode(ie("value",de))):de[pe]},ae=toValidArray(n.modelValue).map(ue=>treeFind(n.data||[],de=>ie("value",de)===ue,de=>ie("children",de),(de,he,pe,_e)=>_e&&ie("value",_e))).filter(ue=>isValidValue(ue)),oe=computed(()=>{if(!n.renderAfterExpand&&!n.lazy)return[];const ue=[];return treeEach(n.data.concat(n.cacheData),de=>{const he=ie("value",de);ue.push({value:he,currentLabel:ie("label",de),isDisabled:ie("disabled",de)})},de=>ie("children",de)),ue}),le=()=>{var ue;return(ue=$.value)==null?void 0:ue.getCheckedKeys().filter(de=>{var he;const pe=(he=$.value)==null?void 0:he.getNode(de);return!isNil(pe)&&isEmpty(pe.childNodes)})};return{...pick$1(toRefs(n),Object.keys(ElTree.props)),...t,nodeKey:V,expandOnClickNode:computed(()=>!n.checkStrictly&&n.expandOnClickNode),defaultExpandedKeys:computed(()=>n.defaultExpandedKeys?n.defaultExpandedKeys.concat(ae):ae),renderContent:(ue,{node:de,data:he,store:pe})=>ue(component,{value:ie("value",he),label:ie("label",he),disabled:ie("disabled",he),visible:de.visible},n.renderContent?()=>n.renderContent(ue,{node:de,data:he,store:pe}):r.default?()=>r.default({node:de,data:he,store:pe}):void 0),filterNodeMethod:(ue,de,he)=>n.filterNodeMethod?n.filterNodeMethod(ue,de,he):ue?new RegExp(escapeStringRegexp(ue),"i").test(ie("label",de)||""):!0,onNodeClick:(ue,de,he)=>{var pe,_e,Ce;if((pe=t.onNodeClick)==null||pe.call(t,ue,de,he),!(n.showCheckbox&&n.checkOnClickNode))if(!n.showCheckbox&&(n.checkStrictly||de.isLeaf)){if(!ie("disabled",ue)){const xe=(_e=g.value)==null?void 0:_e.states.options.get(ie("value",ue));(Ce=g.value)==null||Ce.handleOptionSelect(xe)}}else n.expandOnClickNode&&he.proxy.handleExpandIconClick()},onCheck:(ue,de)=>{var he;if(!n.showCheckbox)return;const pe=ie("value",ue),_e={};treeEach([$.value.store.root],Ne=>_e[Ne.key]=Ne,Ne=>Ne.childNodes);const Ce=de.checkedKeys,xe=n.multiple?toValidArray(n.modelValue).filter(Ne=>!(Ne in _e)&&!Ce.includes(Ne)):[],Ie=xe.concat(Ce);if(n.checkStrictly)i(UPDATE_MODEL_EVENT,n.multiple?Ie:Ie.includes(pe)?pe:void 0);else if(n.multiple){const Ne=le();i(UPDATE_MODEL_EVENT,xe.concat(Ne))}else{const Ne=treeFind([ue],Ve=>!isValidArray(ie("children",Ve))&&!ie("disabled",Ve),Ve=>ie("children",Ve)),Oe=Ne?ie("value",Ne):void 0,$e=isValidValue(n.modelValue)&&!!treeFind([ue],Ve=>ie("value",Ve)===n.modelValue,Ve=>ie("children",Ve));i(UPDATE_MODEL_EVENT,Oe===n.modelValue||$e?void 0:Oe)}nextTick(()=>{var Ne;const Oe=toValidArray(n.modelValue);$.value.setCheckedKeys(Oe),(Ne=t.onCheck)==null||Ne.call(t,ue,{checkedKeys:$.value.getCheckedKeys(),checkedNodes:$.value.getCheckedNodes(),halfCheckedKeys:$.value.getHalfCheckedKeys(),halfCheckedNodes:$.value.getHalfCheckedNodes()})}),(he=g.value)==null||he.focus()},onNodeExpand:(ue,de,he)=>{var pe;(pe=t.onNodeExpand)==null||pe.call(t,ue,de,he),nextTick(()=>{if(!n.checkStrictly&&n.lazy&&n.multiple&&de.checked){const _e={},Ce=$.value.getCheckedKeys();treeEach([$.value.store.root],Ne=>_e[Ne.key]=Ne,Ne=>Ne.childNodes);const xe=toValidArray(n.modelValue).filter(Ne=>!(Ne in _e)&&!Ce.includes(Ne)),Ie=le();i(UPDATE_MODEL_EVENT,xe.concat(Ie))}})},cacheOptions:oe}};var CacheOptions=defineComponent({props:{data:{type:Array,default:()=>[]}},setup(n){const t=inject(selectKey);return watch(()=>n.data,()=>{var r;n.data.forEach(g=>{t.states.cachedOptions.has(g.value)||t.states.cachedOptions.set(g.value,g)});const i=((r=t.selectRef)==null?void 0:r.querySelectorAll("input"))||[];isClient&&!Array.from(i).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const _sfc_main$R=defineComponent({name:"ElTreeSelect",inheritAttrs:!1,props:{...selectProps,...treeProps$1,cacheData:{type:Array,default:()=>[]}},setup(n,t){const{slots:r,expose:i}=t,g=ref(),$=ref(),V=computed(()=>n.nodeKey||n.valueKey||"value"),re=useSelect(n,t,{select:g,tree:$,key:V}),{cacheOptions:ie,...ae}=useTree$1(n,t,{select:g,tree:$,key:V}),oe=reactive({});return i(oe),onMounted(()=>{Object.assign(oe,{...pick$1($.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...pick$1(g.value,["focus","blur","selectedLabel"]),treeRef:$.value,selectRef:g.value})}),()=>h$1(ElSelect,reactive({...re,ref:le=>g.value=le}),{...r,default:()=>[h$1(CacheOptions,{data:ie.value}),h$1(ElTree,reactive({...ae,ref:le=>$.value=le}))]})}});var TreeSelect=_export_sfc(_sfc_main$R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);const ElTreeSelect=withInstall(TreeSelect),ROOT_TREE_INJECTION_KEY=Symbol(),EMPTY_NODE={key:-1,level:-1,data:{}};var TreeOptionsEnum=(n=>(n.KEY="id",n.LABEL="label",n.CHILDREN="children",n.DISABLED="disabled",n.CLASS="",n))(TreeOptionsEnum||{}),SetOperationEnum=(n=>(n.ADD="add",n.DELETE="delete",n))(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",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:definePropType(Array),default:()=>mutable([])},checkStrictly:Boolean,defaultExpandedKeys:{type:definePropType(Array),default:()=>mutable([])},indent:{type:Number,default:16},itemSize,icon:{type:iconPropType},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:definePropType([String,Number])},accordion:Boolean,filterMethod:{type:definePropType(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),treeNodeProps=buildProps({node:{type:definePropType(Object),default:()=>mutable(EMPTY_NODE)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize}),treeNodeContentProps=buildProps({node:{type:definePropType(Object),required:!0}}),NODE_CLICK="node-click",NODE_DROP="node-drop",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]:(n,t,r)=>n&&t&&r,[NODE_DROP]:(n,t,r)=>n&&t&&r,[NODE_EXPAND]:(n,t)=>n&&t,[NODE_COLLAPSE]:(n,t)=>n&&t,[CURRENT_CHANGE]:(n,t)=>n&&t,[NODE_CHECK]:(n,t)=>n&&t,[NODE_CHECK_CHANGE]:(n,t)=>n&&isBoolean$1(t),[NODE_CONTEXTMENU]:(n,t,r)=>n&&t&&r},treeNodeEmits={click:(n,t)=>!!(n&&t),drop:(n,t)=>!!(n&&t),toggle:n=>!!n,check:(n,t)=>n&&isBoolean$1(t)};function useCheck(n,t){const r=ref(new Set),i=ref(new Set),{emit:g}=getCurrentInstance();watch([()=>t.value,()=>n.defaultCheckedKeys],()=>nextTick(()=>{xe(n.defaultCheckedKeys)}),{immediate:!0});const $=()=>{if(!t.value||!n.showCheckbox||n.checkStrictly)return;const{levelTreeNodeMap:Ie,maxLevel:Ne}=t.value,Oe=r.value,$e=new Set;for(let Ve=Ne;Ve>=1;--Ve){const Ue=Ie.get(Ve);Ue&&Ue.forEach(Fe=>{const ze=Fe.children;let Pt=!Fe.isLeaf||Fe.disabled||Oe.has(Fe.key);if(ze){let qe=!0,Et=!1;for(const kt of ze){const At=kt.key;if(kt.isEffectivelyChecked||(Pt=!1),Oe.has(At))Et=!0;else if($e.has(At)){qe=!1,Et=!0;break}else qe=!1}qe?Oe.add(Fe.key):Et?($e.add(Fe.key),Oe.delete(Fe.key)):(Oe.delete(Fe.key),$e.delete(Fe.key))}Fe.isEffectivelyChecked=Pt})}i.value=$e},V=Ie=>r.value.has(Ie.key),re=Ie=>i.value.has(Ie.key),ie=(Ie,Ne,Oe=!0,$e=!0)=>{const Ve=r.value,Ue=Ie.children;!n.checkStrictly&&Oe&&(Ue!=null&&Ue.length)&&(Ne=Ue.some(ze=>!ze.isEffectivelyChecked));const Fe=(ze,Pt)=>{Ve[Pt?SetOperationEnum.ADD:SetOperationEnum.DELETE](ze.key);const qe=ze.children;!n.checkStrictly&&qe&&qe.forEach(Et=>{(!Et.disabled||Et.children)&&Fe(Et,Pt)})};Fe(Ie,Ne),$e&&$(),Oe&&ae(Ie,Ne)},ae=(Ie,Ne)=>{const{checkedNodes:Oe,checkedKeys:$e}=he(),{halfCheckedNodes:Ve,halfCheckedKeys:Ue}=pe();g(NODE_CHECK,Ie.data,{checkedKeys:$e,checkedNodes:Oe,halfCheckedKeys:Ue,halfCheckedNodes:Ve}),g(NODE_CHECK_CHANGE,Ie.data,Ne)};function oe(Ie=!1){return he(Ie).checkedKeys}function le(Ie=!1){return he(Ie).checkedNodes}function ue(){return pe().halfCheckedKeys}function de(){return pe().halfCheckedNodes}function he(Ie=!1){const Ne=[],Oe=[];if(t!=null&&t.value&&n.showCheckbox){const{treeNodeMap:$e}=t.value;r.value.forEach(Ve=>{const Ue=$e.get(Ve);Ue&&(!Ie||Ie&&Ue.isLeaf)&&(Oe.push(Ve),Ne.push(Ue.data))})}return{checkedKeys:Oe,checkedNodes:Ne}}function pe(){const Ie=[],Ne=[];if(t!=null&&t.value&&n.showCheckbox){const{treeNodeMap:Oe}=t.value;i.value.forEach($e=>{const Ve=Oe.get($e);Ve&&(Ne.push($e),Ie.push(Ve.data))})}return{halfCheckedNodes:Ie,halfCheckedKeys:Ne}}function _e(Ie){r.value.clear(),i.value.clear(),nextTick(()=>{xe(Ie)})}function Ce(Ie,Ne){if(t!=null&&t.value&&n.showCheckbox){const Oe=t.value.treeNodeMap.get(Ie);Oe&&ie(Oe,Ne,!1)}}function xe(Ie){if(t!=null&&t.value){const{treeNodeMap:Ne}=t.value;if(n.showCheckbox&&Ne&&(Ie==null?void 0:Ie.length)>0){for(const Oe of Ie){const $e=Ne.get(Oe);$e&&!V($e)&&ie($e,!0,!1,!1)}$()}}}return{updateCheckedKeys:$,toggleCheckbox:ie,isChecked:V,isIndeterminate:re,getCheckedKeys:oe,getCheckedNodes:le,getHalfCheckedKeys:ue,getHalfCheckedNodes:de,setChecked:Ce,setCheckedKeys:_e}}function useFilter(n,t){const r=ref(new Set([])),i=ref(new Set([])),g=computed(()=>isFunction$4(n.filterMethod));function $(re){var ie;if(!g.value)return;const ae=new Set,oe=i.value,le=r.value,ue=[],de=((ie=t.value)==null?void 0:ie.treeNodes)||[],he=n.filterMethod;le.clear();function pe(_e){_e.forEach(Ce=>{ue.push(Ce),he!=null&&he(re,Ce.data,Ce)?ue.forEach(Ie=>{ae.add(Ie.key),Ie.expanded=!0}):(Ce.expanded=!1,Ce.isLeaf&&le.add(Ce.key));const xe=Ce.children;if(xe&&pe(xe),!Ce.isLeaf){if(!ae.has(Ce.key))le.add(Ce.key);else if(xe){let Ie=!0;for(const Ne of xe)if(!le.has(Ne.key)){Ie=!1;break}Ie?oe.add(Ce.key):oe.delete(Ce.key)}}ue.pop()})}return pe(de),ae}function V(re){return i.value.has(re.key)}return{hiddenExpandIconKeySet:i,hiddenNodeKeySet:r,doFilter:$,isForceHiddenExpandIcon:V}}function useTree(n,t){const r=ref(new Set),i=ref(),g=shallowRef(),$=ref(),{isIndeterminate:V,isChecked:re,toggleCheckbox:ie,getCheckedKeys:ae,getCheckedNodes:oe,getHalfCheckedKeys:le,getHalfCheckedNodes:ue,setChecked:de,setCheckedKeys:he}=useCheck(n,g),{doFilter:pe,hiddenNodeKeySet:_e,isForceHiddenExpandIcon:Ce}=useFilter(n,g),xe=computed(()=>{var xn;return((xn=n.props)==null?void 0:xn.value)||TreeOptionsEnum.KEY}),Ie=computed(()=>{var xn;return((xn=n.props)==null?void 0:xn.children)||TreeOptionsEnum.CHILDREN}),Ne=computed(()=>{var xn;return((xn=n.props)==null?void 0:xn.disabled)||TreeOptionsEnum.DISABLED}),Oe=computed(()=>{var xn;return((xn=n.props)==null?void 0:xn.label)||TreeOptionsEnum.LABEL}),$e=computed(()=>{var xn;const Ln=r.value,Nn=_e.value,Pn=[],On=((xn=g.value)==null?void 0:xn.treeNodes)||[],Hn=[];for(let Xn=On.length-1;Xn>=0;--Xn)Hn.push(On[Xn]);for(;Hn.length;){const Xn=Hn.pop();if(!Nn.has(Xn.key)&&(Pn.push(Xn),Xn.children&&Ln.has(Xn.key)))for(let In=Xn.children.length-1;In>=0;--In)Hn.push(Xn.children[In])}return Pn}),Ve=computed(()=>$e.value.length>0);function Ue(xn){const Ln=new Map,Nn=new Map;let Pn=1;function On(Xn,In=1,or=void 0){var Qn;const Zn=[];for(const Gn of Xn){const Rn=Pt(Gn),Mn={level:In,key:Rn,data:Gn};Mn.label=Et(Gn),Mn.parent=or;const Bn=ze(Gn);Mn.disabled=qe(Gn),Mn.isLeaf=!Bn||Bn.length===0,Mn.expanded=r.value.has(Rn),Bn&&Bn.length&&(Mn.children=On(Bn,In+1,Mn)),Zn.push(Mn),Ln.set(Rn,Mn),Nn.has(In)||Nn.set(In,[]),(Qn=Nn.get(In))==null||Qn.push(Mn)}return In>Pn&&(Pn=In),Zn}const Hn=On(xn);return{treeNodeMap:Ln,levelTreeNodeMap:Nn,maxLevel:Pn,treeNodes:Hn}}function Fe(xn){const Ln=pe(xn);Ln&&(r.value=Ln)}function ze(xn){return xn[Ie.value]}function Pt(xn){return xn?xn[xe.value]:""}function qe(xn){return xn[Ne.value]}function Et(xn){return xn[Oe.value]}function kt(xn){r.value.has(xn.key)?_n(xn):vn(xn)}function At(xn){const Ln=new Set,Nn=g.value.treeNodeMap;r.value.forEach(Pn=>{const On=Nn.get(Pn);r.value.delete(On.key),On.expanded=!1}),xn.forEach(Pn=>{let On=Nn.get(Pn);for(;On&&!Ln.has(On.key);)Ln.add(On.key),On.expanded=!0,On=On.parent}),r.value=Ln}function Dt(xn,Ln){t(NODE_CLICK,xn.data,xn,Ln),jt(xn),n.expandOnClickNode&&kt(xn),n.showCheckbox&&(n.checkOnClickNode||xn.isLeaf&&n.checkOnClickLeaf)&&!xn.disabled&&ie(xn,!re(xn),!0)}function Lt(xn,Ln){t(NODE_DROP,xn.data,xn,Ln)}function jt(xn){bn(xn)||(i.value=xn.key,t(CURRENT_CHANGE,xn.data,xn))}function hn(xn,Ln){ie(xn,Ln)}function vn(xn){const Ln=r.value;if(g.value&&n.accordion){const{treeNodeMap:Pn}=g.value;Ln.forEach(On=>{const Hn=Pn.get(On);xn&&xn.level===(Hn==null?void 0:Hn.level)&&(Ln.delete(On),Hn.expanded=!1)})}Ln.add(xn.key);const Nn=kn(xn.key);Nn&&(Nn.expanded=!0,t(NODE_EXPAND,Nn.data,Nn))}function _n(xn){r.value.delete(xn.key);const Ln=kn(xn.key);Ln&&(Ln.expanded=!1,t(NODE_COLLAPSE,Ln.data,Ln))}function wn(xn){return!!xn.disabled}function bn(xn){const Ln=i.value;return Ln!==void 0&&Ln===xn.key}function Cn(){var xn,Ln;if(i.value)return(Ln=(xn=g.value)==null?void 0:xn.treeNodeMap.get(i.value))==null?void 0:Ln.data}function Sn(){return i.value}function Tn(xn){i.value=xn}function En(xn){g.value=Ue(xn)}function kn(xn){var Ln;const Nn=isObject$6(xn)?Pt(xn):xn;return(Ln=g.value)==null?void 0:Ln.treeNodeMap.get(Nn)}function $n(xn,Ln="auto"){const Nn=kn(xn);Nn&&$.value&&$.value.scrollToItem($e.value.indexOf(Nn),Ln)}function An(xn){var Ln;(Ln=$.value)==null||Ln.scrollTo(xn)}return watch(()=>n.currentNodeKey,xn=>{i.value=xn},{immediate:!0}),watch(()=>n.defaultExpandedKeys,xn=>{r.value=new Set(xn)},{immediate:!0}),watch(()=>n.data,xn=>{En(xn)},{immediate:!0}),{tree:g,flattenTree:$e,isNotEmpty:Ve,listRef:$,getKey:Pt,getChildren:ze,toggleExpand:kt,toggleCheckbox:ie,isChecked:re,isIndeterminate:V,isDisabled:wn,isCurrent:bn,isForceHiddenExpandIcon:Ce,handleNodeClick:Dt,handleNodeDrop:Lt,handleNodeCheck:hn,getCurrentNode:Cn,getCurrentKey:Sn,setCurrentKey:Tn,getCheckedKeys:ae,getCheckedNodes:oe,getHalfCheckedKeys:le,getHalfCheckedNodes:ue,setChecked:de,setCheckedKeys:he,filter:Fe,setData:En,getNode:kn,expandNode:vn,collapseNode:_n,setExpandedKeys:At,scrollToNode:$n,scrollTo:An}}var ElNodeContent=defineComponent({name:"ElTreeNodeContent",props:treeNodeContentProps,setup(n){const t=inject(ROOT_TREE_INJECTION_KEY),r=useNamespace("tree");return()=>{const i=n.node,{data:g}=i;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:i,data:g}):h$1(ElText,{tag:"span",truncated:!0,class:r.be("node","label")},()=>[i==null?void 0:i.label])}}});const _hoisted_1$A=["aria-expanded","aria-disabled","aria-checked","data-key"],_sfc_main$Q=defineComponent({name:"ElTreeNode",__name:"tree-node",props:treeNodeProps,emits:treeNodeEmits,setup(n,{emit:t}){const r=n,i=t,g=inject(ROOT_TREE_INJECTION_KEY),$=useNamespace("tree"),V=computed(()=>{var he;return(he=g==null?void 0:g.props.indent)!=null?he:16}),re=computed(()=>{var he;return(he=g==null?void 0:g.props.icon)!=null?he:caret_right_default}),ie=he=>{const pe=g==null?void 0:g.props.props.class;if(!pe)return{};let _e;if(isFunction$4(pe)){const{data:Ce}=he;_e=pe(Ce,he)}else _e=pe;return isString$2(_e)?{[_e]:!0}:_e},ae=he=>{i("click",r.node,he)},oe=he=>{i("drop",r.node,he)},le=()=>{i("toggle",r.node)},ue=he=>{i("check",r.node,he)},de=he=>{var pe,_e,Ce,xe;(Ce=(_e=(pe=g==null?void 0:g.instance)==null?void 0:pe.vnode)==null?void 0:_e.props)!=null&&Ce.onNodeContextmenu&&(he.stopPropagation(),he.preventDefault()),g==null||g.ctx.emit(NODE_CONTEXTMENU,he,(xe=r.node)==null?void 0:xe.data,r.node)};return(he,pe)=>{var _e,Ce,xe;return openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([unref($).b("node"),unref($).is("expanded",he.expanded),unref($).is("current",he.current),unref($).is("focusable",!he.disabled),unref($).is("checked",!he.disabled&&he.checked),ie(he.node)]),role:"treeitem",tabindex:"-1","aria-expanded":he.expanded,"aria-disabled":he.disabled,"aria-checked":he.checked,"data-key":(_e=he.node)==null?void 0:_e.key,onClick:withModifiers(ae,["stop"]),onContextmenu:de,onDragover:pe[1]||(pe[1]=withModifiers(()=>{},["prevent"])),onDragenter:pe[2]||(pe[2]=withModifiers(()=>{},["prevent"])),onDrop:withModifiers(oe,["stop"])},[createBaseVNode("div",{class:normalizeClass(unref($).be("node","content")),style:normalizeStyle$1({paddingLeft:`${(he.node.level-1)*V.value}px`,height:he.itemSize+"px"})},[re.value?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref($).is("leaf",!!((Ce=he.node)!=null&&Ce.isLeaf)),unref($).is("hidden",he.hiddenExpandIcon),{expanded:!((xe=he.node)!=null&&xe.isLeaf)&&he.expanded},unref($).be("node","expand-icon")]),onClick:withModifiers(le,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(re.value)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),he.showCheckbox?(openBlock(),createBlock(unref(ElCheckbox),{key:1,"model-value":he.checked,indeterminate:he.indeterminate,disabled:he.disabled,onChange:ue,onClick:pe[0]||(pe[0]=withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):createCommentVNode("v-if",!0),createVNode$1(unref(ElNodeContent),{node:{...he.node,expanded:he.expanded}},null,8,["node"])],6)],42,_hoisted_1$A)}}});var ElTreeNode=_export_sfc(_sfc_main$Q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const _sfc_main$P=defineComponent({name:"ElTreeV2",__name:"tree",props:treeProps,emits:treeEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useSlots(),V=computed(()=>i.itemSize);provide(ROOT_TREE_INJECTION_KEY,{ctx:{emit:g,slots:$},props:i,instance:getCurrentInstance()}),provide(formItemContextKey,void 0);const{t:re}=useLocale(),ie=useNamespace("tree"),{flattenTree:ae,isNotEmpty:oe,listRef:le,toggleExpand:ue,isIndeterminate:de,isChecked:he,isDisabled:pe,isCurrent:_e,isForceHiddenExpandIcon:Ce,handleNodeClick:xe,handleNodeDrop:Ie,handleNodeCheck:Ne,toggleCheckbox:Oe,getCurrentNode:$e,getCurrentKey:Ve,setCurrentKey:Ue,getCheckedKeys:Fe,getCheckedNodes:ze,getHalfCheckedKeys:Pt,getHalfCheckedNodes:qe,setChecked:Et,setCheckedKeys:kt,filter:At,setData:Dt,getNode:Lt,expandNode:jt,collapseNode:hn,setExpandedKeys:vn,scrollToNode:_n,scrollTo:wn}=useTree(i,g);return t({toggleCheckbox:Oe,getCurrentNode:$e,getCurrentKey:Ve,setCurrentKey:Ue,getCheckedKeys:Fe,getCheckedNodes:ze,getHalfCheckedKeys:Pt,getHalfCheckedNodes:qe,setChecked:Et,setCheckedKeys:kt,filter:At,setData:Dt,getNode:Lt,expandNode:jt,collapseNode:hn,setExpandedKeys:vn,scrollToNode:_n,scrollTo:wn}),(bn,Cn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b(),{[unref(ie).m("highlight-current")]:bn.highlightCurrent}]),role:"tree"},[unref(oe)?(openBlock(),createBlock(unref(FixedSizeList),{key:0,ref_key:"listRef",ref:le,"class-name":unref(ie).b("virtual-list"),data:unref(ae),total:unref(ae).length,height:bn.height,"item-size":V.value,"perf-mode":bn.perfMode,"scrollbar-always-on":bn.scrollbarAlwaysOn},{default:withCtx(({data:Sn,index:Tn,style:En})=>[(openBlock(),createBlock(ElTreeNode,{key:Sn[Tn].key,style:normalizeStyle$1(En),node:Sn[Tn],expanded:Sn[Tn].expanded,"show-checkbox":bn.showCheckbox,checked:unref(he)(Sn[Tn]),indeterminate:unref(de)(Sn[Tn]),"item-size":V.value,disabled:unref(pe)(Sn[Tn]),current:unref(_e)(Sn[Tn]),"hidden-expand-icon":unref(Ce)(Sn[Tn]),onClick:unref(xe),onToggle:unref(ue),onCheck:unref(Ne),onDrop:unref(Ie)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).e("empty-block"))},[renderSlot(bn.$slots,"empty",{},()=>{var Sn;return[createBaseVNode("span",{class:normalizeClass(unref(ie).e("empty-text"))},toDisplayString((Sn=bn.emptyText)!=null?Sn:unref(re)("el.tree.emptyText")),3)]})],2))],2))}});var TreeV2=_export_sfc(_sfc_main$P,[["__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(t,r,i,g){super(t),this.name="UploadAjaxError",this.status=r,this.method=i,this.url=g}}function getError(n,t,r){let i;return r.response?i=`${r.response.error||r.response}`:r.responseText?i=`${r.responseText}`:i=`fail to ${t.method} ${n} ${r.status}`,new UploadAjaxError(i,r.status,t.method,n)}function getBody(n){const t=n.responseText||n.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const ajaxUpload=n=>{typeof XMLHttpRequest>"u"&&throwError$1(SCOPE$2,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,r=n.action;t.upload&&t.upload.addEventListener("progress",$=>{const V=$;V.percent=$.total>0?$.loaded/$.total*100:0,n.onProgress(V)});const i=new FormData;if(n.data)for(const[$,V]of Object.entries(n.data))isArray$5(V)&&V.length?i.append($,...V):i.append($,V);i.append(n.filename,n.file,n.file.name),t.addEventListener("error",()=>{n.onError(getError(r,n,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return n.onError(getError(r,n,t));n.onSuccess(getBody(t))}),t.open(n.method,r,!0),n.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const g=n.headers||{};if(g instanceof Headers)g.forEach(($,V)=>t.setRequestHeader(V,$));else for(const[$,V]of Object.entries(g))isNil(V)||t.setRequestHeader($,String(V));return t.send(i),t},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:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},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:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),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},crossorigin:{type:definePropType(String)}}),uploadListProps=buildProps({files:{type:definePropType(Array),default:()=>mutable([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:definePropType(Function),default:NOOP},listType:{type:String,values:uploadListTypes,default:"text"},crossorigin:{type:definePropType(String)}}),uploadListEmits={remove:n=>!!n},_hoisted_1$z=["tabindex","aria-disabled","onKeydown"],_hoisted_2$p=["src","crossorigin"],_hoisted_3$a=["onClick"],_hoisted_4$7=["title"],_hoisted_5$1=["onClick"],_hoisted_6=["onClick"],_sfc_main$O=defineComponent({name:"ElUploadList",__name:"upload-list",props:uploadListProps,emits:uploadListEmits,setup(n,{emit:t}){const r=n,i=t,{t:g}=useLocale(),$=useNamespace("upload"),V=useNamespace("icon"),re=useNamespace("list"),ie=useFormDisabled(),ae=ref(!1),oe=computed(()=>[$.b("list"),$.bm("list",r.listType),$.is("disabled",ie.value)]),le=ue=>{i("remove",ue)};return(ue,de)=>(openBlock(),createBlock(TransitionGroup,{tag:"ul",class:normalizeClass(oe.value),name:unref(re).b()},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(ue.files,(he,pe)=>(openBlock(),createElementBlock("li",{key:he.uid||he.name,class:normalizeClass([unref($).be("list","item"),unref($).is(he.status),{focusing:ae.value}]),tabindex:unref(ie)?void 0:0,"aria-disabled":unref(ie),role:"button",onKeydown:withKeys(_e=>!unref(ie)&&le(he),["delete"]),onFocus:de[0]||(de[0]=_e=>ae.value=!0),onBlur:de[1]||(de[1]=_e=>ae.value=!1),onClick:de[2]||(de[2]=_e=>ae.value=!1)},[renderSlot(ue.$slots,"default",{file:he,index:pe},()=>[ue.listType==="picture"||he.status!=="uploading"&&ue.listType==="picture-card"?(openBlock(),createElementBlock("img",{key:0,class:normalizeClass(unref($).be("list","item-thumbnail")),src:he.url,crossorigin:ue.crossorigin,alt:""},null,10,_hoisted_2$p)):createCommentVNode("v-if",!0),he.status==="uploading"||ue.listType!=="picture-card"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref($).be("list","item-info"))},[createBaseVNode("a",{class:normalizeClass(unref($).be("list","item-name")),onClick:withModifiers(_e=>ue.handlePreview(he),["prevent"])},[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(V).m("document"))},{default:withCtx(()=>[createVNode$1(unref(document_default))]),_:1},8,["class"]),createBaseVNode("span",{class:normalizeClass(unref($).be("list","item-file-name")),title:he.name},toDisplayString(he.name),11,_hoisted_4$7)],10,_hoisted_3$a),he.status==="uploading"?(openBlock(),createBlock(unref(ElProgress),{key:0,type:ue.listType==="picture-card"?"circle":"line","stroke-width":ue.listType==="picture-card"?6:2,percentage:Number(he.percentage),style:normalizeStyle$1(ue.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($).be("list","item-status-label"))},[ue.listType==="text"?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(V).m("upload-success"),unref(V).m("circle-check")])},{default:withCtx(()=>[createVNode$1(unref(circle_check_default))]),_:1},8,["class"])):["picture-card","picture"].includes(ue.listType)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(V).m("upload-success"),unref(V).m("check")])},{default:withCtx(()=>[createVNode$1(unref(check_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2),unref(ie)?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(V).m("close")),onClick:_e=>le(he)},{default:withCtx(()=>[createVNode$1(unref(close_default))]),_:1},8,["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(ie)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("i",{key:3,class:normalizeClass(unref(V).m("close-tip"))},toDisplayString(unref(g)("el.upload.deleteTip")),3)),ue.listType==="picture-card"?(openBlock(),createElementBlock("span",{key:4,class:normalizeClass(unref($).be("list","item-actions"))},[createBaseVNode("span",{class:normalizeClass(unref($).be("list","item-preview")),onClick:_e=>ue.handlePreview(he)},[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(V).m("zoom-in"))},{default:withCtx(()=>[createVNode$1(unref(zoom_in_default))]),_:1},8,["class"])],10,_hoisted_5$1),unref(ie)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref($).be("list","item-delete")),onClick:_e=>le(he)},[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(V).m("delete"))},{default:withCtx(()=>[createVNode$1(unref(delete_default))]),_:1},8,["class"])],10,_hoisted_6))],2)):createCommentVNode("v-if",!0)])],42,_hoisted_1$z))),128)),renderSlot(ue.$slots,"append")]),_:3},8,["class","name"]))}});var UploadList=_export_sfc(_sfc_main$O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const uploadDraggerProps=buildProps({disabled:{type:Boolean,default:void 0},directory:Boolean}),uploadDraggerEmits={file:n=>isArray$5(n)},COMPONENT_NAME$1="ElUploadDrag",_sfc_main$N=defineComponent({name:COMPONENT_NAME$1,__name:"upload-dragger",props:uploadDraggerProps,emits:uploadDraggerEmits,setup(n,{emit:t}){const r=n,i=t;inject(uploadContextKey)||throwError$1(COMPONENT_NAME$1,"usage: ");const $=useNamespace("upload"),V=ref(!1),re=useFormDisabled(),ie=de=>new Promise((he,pe)=>de.file(he,pe)),ae=async de=>{try{if(de.isFile){const he=await ie(de);return he.isDirectory=!1,[he]}if(de.isDirectory){const he=de.createReader(),pe=()=>new Promise((Ne,Oe)=>he.readEntries(Ne,Oe)),_e=[];let Ce=await pe();for(;Ce.length>0;)_e.push(...Ce),Ce=await pe();const xe=_e.map(Ne=>ae(Ne).catch(()=>[])),Ie=await Promise.all(xe);return flatten$1(Ie)}}catch{return[]}return[]},oe=async de=>{if(re.value)return;V.value=!1,de.stopPropagation();const he=Array.from(de.dataTransfer.files),pe=de.dataTransfer.items||[];if(r.directory){const _e=Array.from(pe).map(xe=>{var Ie;return(Ie=xe==null?void 0:xe.webkitGetAsEntry)==null?void 0:Ie.call(xe)}).filter(xe=>xe),Ce=await Promise.all(_e.map(ae));i("file",flatten$1(Ce));return}he.forEach((_e,Ce)=>{var xe;const Ie=pe[Ce],Ne=(xe=Ie==null?void 0:Ie.webkitGetAsEntry)==null?void 0:xe.call(Ie);Ne&&(_e.isDirectory=Ne.isDirectory)}),i("file",he)},le=()=>{re.value||(V.value=!0)},ue=de=>{de.currentTarget.contains(de.relatedTarget)||(V.value=!1)};return(de,he)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref($).b("dragger"),unref($).is("dragover",V.value)]),onDrop:withModifiers(oe,["prevent"]),onDragover:withModifiers(le,["prevent"]),onDragleave:withModifiers(ue,["prevent"])},[renderSlot(de.$slots,"default")],34))}});var UploadDragger=_export_sfc(_sfc_main$N,[["__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$y=["tabindex","aria-disabled","onKeydown"],_hoisted_2$o=["name","disabled","multiple","accept","webkitdirectory"],_sfc_main$M=defineComponent({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:uploadContentProps,setup(n,{expose:t}){const r=n,i=useNamespace("upload"),g=useFormDisabled(),$=shallowRef({}),V=shallowRef(),re=pe=>{if(pe.length===0)return;const{autoUpload:_e,limit:Ce,fileList:xe,multiple:Ie,onStart:Ne,onExceed:Oe}=r;if(Ce&&xe.length+pe.length>Ce){Oe(pe,xe);return}Ie||(pe=pe.slice(0,1));for(const $e of pe){const Ve=$e;Ve.uid=genFileId(),Ne(Ve),_e&&ie(Ve)}},ie=async pe=>{if(V.value.value="",!r.beforeUpload)return oe(pe);let _e,Ce={};try{const Ie=r.data,Ne=r.beforeUpload(pe);Ce=isPlainObject$3(r.data)?cloneDeep(r.data):r.data,_e=await Ne,isPlainObject$3(r.data)&&isEqual$1(Ie,Ce)&&(Ce=cloneDeep(r.data))}catch{_e=!1}if(_e===!1){r.onRemove(pe);return}let xe=pe;_e instanceof Blob&&(_e instanceof File?xe=_e:xe=new File([_e],pe.name,{type:pe.type})),oe(Object.assign(xe,{uid:pe.uid}),Ce)},ae=async(pe,_e)=>isFunction$4(pe)?pe(_e):pe,oe=async(pe,_e)=>{const{headers:Ce,data:xe,method:Ie,withCredentials:Ne,name:Oe,action:$e,onProgress:Ve,onSuccess:Ue,onError:Fe,httpRequest:ze}=r;try{_e=await ae(_e??xe,pe)}catch{r.onRemove(pe);return}const{uid:Pt}=pe,qe={headers:Ce||{},withCredentials:Ne,file:pe,data:_e,method:Ie,filename:Oe,action:$e,onProgress:kt=>{Ve(kt,pe)},onSuccess:kt=>{Ue(kt,pe),delete $.value[Pt]},onError:kt=>{Fe(kt,pe),delete $.value[Pt]}},Et=ze(qe);$.value[Pt]=Et,Et instanceof Promise&&Et.then(qe.onSuccess,qe.onError)},le=pe=>{const _e=pe.target.files;_e&&re(Array.from(_e))},ue=()=>{g.value||(V.value.value="",V.value.click())},de=()=>{ue()};return t({abort:pe=>{entriesOf($.value).filter(pe?([Ce])=>String(pe.uid)===Ce:()=>!0).forEach(([Ce,xe])=>{xe instanceof XMLHttpRequest&&xe.abort(),delete $.value[Ce]})},upload:ie}),(pe,_e)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(i).b(),unref(i).m(pe.listType),unref(i).is("drag",pe.drag),unref(i).is("disabled",unref(g))]),tabindex:unref(g)?void 0:0,"aria-disabled":unref(g),role:"button",onClick:ue,onKeydown:withKeys(withModifiers(de,["self"]),["enter","space"])},[pe.drag?(openBlock(),createBlock(UploadDragger,{key:0,disabled:unref(g),directory:pe.directory,onFile:re},{default:withCtx(()=>[renderSlot(pe.$slots,"default")]),_:3},8,["disabled","directory"])):renderSlot(pe.$slots,"default",{key:1}),createBaseVNode("input",{ref_key:"inputRef",ref:V,class:normalizeClass(unref(i).e("input")),name:pe.name,disabled:unref(g),multiple:pe.multiple,accept:pe.accept,webkitdirectory:pe.directory,type:"file",onChange:le,onClick:_e[0]||(_e[0]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_2$o)],42,_hoisted_1$y))}});var UploadContent=_export_sfc(_sfc_main$M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const SCOPE$1="ElUpload",revokeFileObjectURL=n=>{var t;(t=n.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(n.url)},useHandlers=(n,t)=>{const r=useVModel(n,"fileList",void 0,{passive:!0}),i=he=>r.value.find(pe=>pe.uid===he.uid);function g(he){var pe;(pe=t.value)==null||pe.abort(he)}function $(he=["ready","uploading","success","fail"]){r.value=r.value.filter(pe=>!he.includes(pe.status))}function V(he){r.value=r.value.filter(pe=>pe.uid!==he.uid)}const re=he=>{nextTick(()=>n.onChange(he,r.value))},ie=(he,pe)=>{const _e=i(pe);_e&&(console.error(he),_e.status="fail",V(_e),n.onError(he,_e,r.value),re(_e))},ae=(he,pe)=>{const _e=i(pe);_e&&(n.onProgress(he,_e,r.value),_e.status="uploading",_e.percentage=Math.round(he.percent))},oe=(he,pe)=>{const _e=i(pe);_e&&(_e.status="success",_e.response=he,n.onSuccess(he,_e,r.value),re(_e))},le=he=>{isNil(he.uid)&&(he.uid=genFileId());const pe={name:he.name,percentage:0,status:"ready",size:he.size,raw:he,uid:he.uid};if(n.listType==="picture-card"||n.listType==="picture")try{pe.url=URL.createObjectURL(he)}catch(_e){_e.message,n.onError(_e,pe,r.value)}r.value=[...r.value,pe],re(pe)},ue=async he=>{const pe=he instanceof File?i(he):he;pe||throwError$1(SCOPE$1,"file to be removed not found");const _e=Ce=>{g(Ce),V(Ce),n.onRemove(Ce,r.value),revokeFileObjectURL(Ce)};n.beforeRemove?await n.beforeRemove(pe,r.value)!==!1&&_e(pe):_e(pe)};function de(){r.value.filter(({status:he})=>he==="ready").forEach(({raw:he})=>{var pe;return he&&((pe=t.value)==null?void 0:pe.upload(he))})}return watch(()=>n.listType,he=>{he!=="picture-card"&&he!=="picture"||(r.value=r.value.map(pe=>{const{raw:_e,url:Ce}=pe;if(!Ce&&_e)try{pe.url=URL.createObjectURL(_e)}catch(xe){n.onError(xe,pe,r.value)}return pe}))}),watch(r,he=>{for(const pe of he)pe.uid||(pe.uid=genFileId()),pe.status||(pe.status="success")},{immediate:!0,deep:!0}),{uploadFiles:r,abort:g,clearFiles:$,handleError:ie,handleProgress:ae,handleStart:le,handleSuccess:oe,handleRemove:ue,submit:de,revokeFileObjectURL}},_sfc_main$L=defineComponent({name:"ElUpload",__name:"upload",props:uploadProps,setup(n,{expose:t}){const r=n,i=useFormDisabled(),g=shallowRef(),{abort:$,submit:V,clearFiles:re,uploadFiles:ie,handleStart:ae,handleError:oe,handleRemove:le,handleSuccess:ue,handleProgress:de,revokeFileObjectURL:he}=useHandlers(r,g),pe=computed(()=>r.listType==="picture-card"),_e=computed(()=>({...r,fileList:ie.value,onStart:ae,onProgress:de,onSuccess:ue,onError:oe,onRemove:le}));return onBeforeUnmount(()=>{ie.value.forEach(he)}),provide(uploadContextKey,{accept:toRef$1(r,"accept")}),t({abort:$,submit:V,clearFiles:re,handleStart:ae,handleRemove:le}),(Ce,xe)=>(openBlock(),createElementBlock("div",null,[pe.value&&Ce.showFileList?(openBlock(),createBlock(UploadList,{key:0,disabled:unref(i),"list-type":Ce.listType,files:unref(ie),crossorigin:Ce.crossorigin,"handle-preview":Ce.onPreview,onRemove:unref(le)},createSlots({append:withCtx(()=>[createVNode$1(UploadContent,mergeProps({ref_key:"uploadRef",ref:g},_e.value),{default:withCtx(()=>[Ce.$slots.trigger?renderSlot(Ce.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!Ce.$slots.trigger&&Ce.$slots.default?renderSlot(Ce.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)]),_:2},[Ce.$slots.file?{name:"default",fn:withCtx(({file:Ie,index:Ne})=>[renderSlot(Ce.$slots,"file",{file:Ie,index:Ne})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):createCommentVNode("v-if",!0),!pe.value||pe.value&&!Ce.showFileList?(openBlock(),createBlock(UploadContent,mergeProps({key:1,ref_key:"uploadRef",ref:g},_e.value),{default:withCtx(()=>[Ce.$slots.trigger?renderSlot(Ce.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!Ce.$slots.trigger&&Ce.$slots.default?renderSlot(Ce.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)):createCommentVNode("v-if",!0),Ce.$slots.trigger?renderSlot(Ce.$slots,"default",{key:2}):createCommentVNode("v-if",!0),renderSlot(Ce.$slots,"tip"),!pe.value&&Ce.showFileList?(openBlock(),createBlock(UploadList,{key:3,disabled:unref(i),"list-type":Ce.listType,files:unref(ie),crossorigin:Ce.crossorigin,"handle-preview":Ce.onPreview,onRemove:unref(le)},createSlots({_:2},[Ce.$slots.file?{name:"default",fn:withCtx(({file:Ie,index:Ne})=>[renderSlot(Ce.$slots,"file",{file:Ie,index:Ne})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):createCommentVNode("v-if",!0)]))}});var Upload=_export_sfc(_sfc_main$L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const ElUpload=withInstall(Upload),watermarkProps=buildProps({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:definePropType([String,Array]),default:"Element Plus"},font:{type:definePropType(Object)},gap:{type:definePropType(Array),default:()=>[100,100]},offset:{type:definePropType(Array)}});function toLowercaseSeparator(n){return n.replace(/([A-Z])/g,"-$1").toLowerCase()}function getStyleStr(n){return Object.keys(n).map(t=>`${toLowercaseSeparator(t)}: ${n[t]};`).join(" ")}function getPixelRatio(){return window.devicePixelRatio||1}const reRendering=(n,t)=>{let r=!1;return n.removedNodes.length&&t&&(r=Array.from(n.removedNodes).includes(t)),n.type==="attributes"&&n.target===t&&(r=!0),r},TEXT_ALIGN_RATIO_MAP={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function prepareCanvas(n,t,r=1){const i=document.createElement("canvas"),g=i.getContext("2d"),$=n*r,V=t*r;return i.setAttribute("width",`${$}px`),i.setAttribute("height",`${V}px`),g.save(),[g,i,$,V]}function useClips(){function n(t,r,i,g,$,V,re,ie,ae){const[oe,le,ue,de]=prepareCanvas(g,$,i);let he=0;if(t instanceof HTMLImageElement)oe.drawImage(t,0,0,ue,de);else{const{color:bn,fontSize:Cn,fontStyle:Sn,fontWeight:Tn,fontFamily:En,textAlign:kn,textBaseline:$n}=V,An=Number(Cn)*i;oe.font=`${Sn} normal ${Tn} ${An}px/${$}px ${En}`,oe.fillStyle=bn,oe.textAlign=kn,oe.textBaseline=$n;const xn=isArray$5(t)?t:[t];if($n!=="top"&&xn[0]){const Ln=oe.measureText(xn[0]);oe.textBaseline="top";const Nn=oe.measureText(xn[0]);he=Ln.actualBoundingBoxAscent-Nn.actualBoundingBoxAscent}xn==null||xn.forEach((Ln,Nn)=>{const[Pn,On]=TEXT_ALIGN_RATIO_MAP[kn];oe.fillText(Ln??"",ue*Pn+ae*On,Nn*(An+V.fontGap*i))})}const pe=Math.PI/180*Number(r),_e=Math.max(g,$),[Ce,xe,Ie]=prepareCanvas(_e,_e,i);Ce.translate(Ie/2,Ie/2),Ce.rotate(pe),ue>0&&de>0&&Ce.drawImage(le,-ue/2,-de/2);function Ne(bn,Cn){const Sn=bn*Math.cos(pe)-Cn*Math.sin(pe),Tn=bn*Math.sin(pe)+Cn*Math.cos(pe);return[Sn,Tn]}let Oe=0,$e=0,Ve=0,Ue=0;const Fe=ue/2,ze=de/2;[[0-Fe,0-ze],[0+Fe,0-ze],[0+Fe,0+ze],[0-Fe,0+ze]].forEach(([bn,Cn])=>{const[Sn,Tn]=Ne(bn,Cn);Oe=Math.min(Oe,Sn),$e=Math.max($e,Sn),Ve=Math.min(Ve,Tn),Ue=Math.max(Ue,Tn)});const qe=Oe+Ie/2,Et=Ve+Ie/2,kt=$e-Oe,At=Ue-Ve,Dt=re*i,Lt=ie*i,jt=(kt+Dt)*2,hn=At+Lt,[vn,_n]=prepareCanvas(jt,hn);function wn(bn=0,Cn=0){vn.drawImage(xe,qe,Et,kt,At,bn,Cn+he,kt,At)}return wn(),wn(kt+Dt,-At/2-Lt/2),wn(kt+Dt,+At/2+Lt/2),[_n.toDataURL(),jt/i,hn/i]}return n}const _sfc_main$K=defineComponent({name:"ElWatermark",__name:"watermark",props:watermarkProps,setup(n){const t={position:"relative"},r=n,i=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.fontGap)!=null?qe:3}),g=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.color)!=null?qe:"rgba(0,0,0,.15)"}),$=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.fontSize)!=null?qe:16}),V=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.fontWeight)!=null?qe:"normal"}),re=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.fontStyle)!=null?qe:"normal"}),ie=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.fontFamily)!=null?qe:"sans-serif"}),ae=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.textAlign)!=null?qe:"center"}),oe=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.textBaseline)!=null?qe:"hanging"}),le=computed(()=>r.gap[0]),ue=computed(()=>r.gap[1]),de=computed(()=>le.value/2),he=computed(()=>ue.value/2),pe=computed(()=>{var Pt,qe;return(qe=(Pt=r.offset)==null?void 0:Pt[0])!=null?qe:de.value}),_e=computed(()=>{var Pt,qe;return(qe=(Pt=r.offset)==null?void 0:Pt[1])!=null?qe:he.value}),Ce=()=>{const Pt={zIndex:r.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let qe=pe.value-de.value,Et=_e.value-he.value;return qe>0&&(Pt.left=`${qe}px`,Pt.width=`calc(100% - ${qe}px)`,qe=0),Et>0&&(Pt.top=`${Et}px`,Pt.height=`calc(100% - ${Et}px)`,Et=0),Pt.backgroundPosition=`${qe}px ${Et}px`,Pt},xe=shallowRef(null),Ie=shallowRef(),Ne=ref(!1),Oe=()=>{Ie.value&&(Ie.value.remove(),Ie.value=void 0)},$e=(Pt,qe)=>{var Et;xe.value&&Ie.value&&(Ne.value=!0,Ie.value.setAttribute("style",getStyleStr({...Ce(),backgroundImage:`url('${Pt}')`,backgroundSize:`${Math.floor(qe)}px`})),(Et=xe.value)==null||Et.append(Ie.value),setTimeout(()=>{Ne.value=!1}))},Ve=Pt=>{let qe=120,Et=64,kt=0;const{image:At,content:Dt,width:Lt,height:jt,rotate:hn}=r;if(!At&&Pt.measureText){Pt.font=`${Number($.value)}px ${ie.value}`;const vn=isArray$5(Dt)?Dt:[Dt];let _n=0,wn=0;vn.forEach(Cn=>{const{width:Sn,fontBoundingBoxAscent:Tn,fontBoundingBoxDescent:En,actualBoundingBoxAscent:kn,actualBoundingBoxDescent:$n}=Pt.measureText(Cn),An=isUndefined$1(Tn)?kn+$n:Tn+En;Sn>_n&&(_n=Math.ceil(Sn)),An>wn&&(wn=Math.ceil(An))}),qe=_n,Et=wn*vn.length+(vn.length-1)*i.value;const bn=Math.PI/180*Number(hn);kt=Math.ceil(Math.abs(Math.sin(bn)*Et)/2),qe+=kt}return[Lt??qe,jt??Et,kt]},Ue=useClips(),Fe=()=>{const qe=document.createElement("canvas").getContext("2d"),Et=r.image,kt=r.content,At=r.rotate;if(qe){Ie.value||(Ie.value=document.createElement("div"));const Dt=getPixelRatio(),[Lt,jt,hn]=Ve(qe),vn=_n=>{const[wn,bn]=Ue(_n||"",At,Dt,Lt,jt,{color:g.value,fontSize:$.value,fontStyle:re.value,fontWeight:V.value,fontFamily:ie.value,fontGap:i.value,textAlign:ae.value,textBaseline:oe.value},le.value,ue.value,hn);$e(wn,bn)};if(Et){const _n=new Image;_n.onload=()=>{vn(_n)},_n.onerror=()=>{vn(kt)},_n.crossOrigin="anonymous",_n.referrerPolicy="no-referrer",_n.src=Et}else vn(kt)}};return onMounted(()=>{Fe()}),watch(()=>r,()=>{Fe()},{deep:!0,flush:"post"}),onBeforeUnmount(()=>{Oe()}),useMutationObserver(xe,Pt=>{Ne.value||Pt.forEach(qe=>{reRendering(qe,Ie.value)&&(Oe(),Fe())})},{attributes:!0,subtree:!0,childList:!0}),(Pt,qe)=>(openBlock(),createElementBlock("div",{ref_key:"containerRef",ref:xe,style:normalizeStyle$1([t])},[renderSlot(Pt.$slots,"default")],4))}});var Watermark=_export_sfc(_sfc_main$K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/watermark/src/watermark.vue"]]);const ElWatermark=withInstall(Watermark),maskProps=buildProps({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:definePropType(Object)},targetAreaClickable:{type:Boolean,default:!0}}),min$2=Math.min,max$2=Math.max,round$3=Math.round,floor=Math.floor,createCoords=n=>({x:n,y:n}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp$2(n,t,r){return max$2(n,min$2(t,r))}function evaluate(n,t){return typeof n=="function"?n(t):n}function getSide(n){return n.split("-")[0]}function getAlignment(n){return n.split("-")[1]}function getOppositeAxis(n){return n==="x"?"y":"x"}function getAxisLength(n){return n==="y"?"height":"width"}const yAxisSides=new Set(["top","bottom"]);function getSideAxis(n){return yAxisSides.has(getSide(n))?"y":"x"}function getAlignmentAxis(n){return getOppositeAxis(getSideAxis(n))}function getAlignmentSides(n,t,r){r===void 0&&(r=!1);const i=getAlignment(n),g=getAlignmentAxis(n),$=getAxisLength(g);let V=g==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[$]>t.floating[$]&&(V=getOppositePlacement(V)),[V,getOppositePlacement(V)]}function getExpandedPlacements(n){const t=getOppositePlacement(n);return[getOppositeAlignmentPlacement(n),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(n){return n.replace(/start|end/g,t=>oppositeAlignmentMap[t])}const lrPlacement=["left","right"],rlPlacement=["right","left"],tbPlacement=["top","bottom"],btPlacement=["bottom","top"];function getSideList(n,t,r){switch(n){case"top":case"bottom":return r?t?rlPlacement:lrPlacement:t?lrPlacement:rlPlacement;case"left":case"right":return t?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(n,t,r,i){const g=getAlignment(n);let $=getSideList(getSide(n),r==="start",i);return g&&($=$.map(V=>V+"-"+g),t&&($=$.concat($.map(getOppositeAlignmentPlacement)))),$}function getOppositePlacement(n){return n.replace(/left|right|bottom|top/g,t=>oppositeSideMap[t])}function expandPaddingObject(n){return{top:0,right:0,bottom:0,left:0,...n}}function getPaddingObject(n){return typeof n!="number"?expandPaddingObject(n):{top:n,right:n,bottom:n,left:n}}function rectToClientRect(n){const{x:t,y:r,width:i,height:g}=n;return{width:i,height:g,top:r,left:t,right:t+i,bottom:r+g,x:t,y:r}}function computeCoordsFromPlacement(n,t,r){let{reference:i,floating:g}=n;const $=getSideAxis(t),V=getAlignmentAxis(t),re=getAxisLength(V),ie=getSide(t),ae=$==="y",oe=i.x+i.width/2-g.width/2,le=i.y+i.height/2-g.height/2,ue=i[re]/2-g[re]/2;let de;switch(ie){case"top":de={x:oe,y:i.y-g.height};break;case"bottom":de={x:oe,y:i.y+i.height};break;case"right":de={x:i.x+i.width,y:le};break;case"left":de={x:i.x-g.width,y:le};break;default:de={x:i.x,y:i.y}}switch(getAlignment(t)){case"start":de[V]-=ue*(r&&ae?-1:1);break;case"end":de[V]+=ue*(r&&ae?-1:1);break}return de}const computePosition$1=async(n,t,r)=>{const{placement:i="bottom",strategy:g="absolute",middleware:$=[],platform:V}=r,re=$.filter(Boolean),ie=await(V.isRTL==null?void 0:V.isRTL(t));let ae=await V.getElementRects({reference:n,floating:t,strategy:g}),{x:oe,y:le}=computeCoordsFromPlacement(ae,i,ie),ue=i,de={},he=0;for(let pe=0;pe({name:"arrow",options:n,async fn(t){const{x:r,y:i,placement:g,rects:$,platform:V,elements:re,middlewareData:ie}=t,{element:ae,padding:oe=0}=evaluate(n,t)||{};if(ae==null)return{};const le=getPaddingObject(oe),ue={x:r,y:i},de=getAlignmentAxis(g),he=getAxisLength(de),pe=await V.getDimensions(ae),_e=de==="y",Ce=_e?"top":"left",xe=_e?"bottom":"right",Ie=_e?"clientHeight":"clientWidth",Ne=$.reference[he]+$.reference[de]-ue[de]-$.floating[he],Oe=ue[de]-$.reference[de],$e=await(V.getOffsetParent==null?void 0:V.getOffsetParent(ae));let Ve=$e?$e[Ie]:0;(!Ve||!await(V.isElement==null?void 0:V.isElement($e)))&&(Ve=re.floating[Ie]||$.floating[he]);const Ue=Ne/2-Oe/2,Fe=Ve/2-pe[he]/2-1,ze=min$2(le[Ce],Fe),Pt=min$2(le[xe],Fe),qe=ze,Et=Ve-pe[he]-Pt,kt=Ve/2-pe[he]/2+Ue,At=clamp$2(qe,kt,Et),Dt=!ie.arrow&&getAlignment(g)!=null&&kt!==At&&$.reference[he]/2-(ktkt<=0)){var Pt,qe;const kt=(((Pt=$.flip)==null?void 0:Pt.index)||0)+1,At=Ve[kt];if(At&&(!(le==="alignment"?xe!==getSideAxis(At):!1)||ze.every(jt=>getSideAxis(jt.placement)===xe?jt.overflows[0]>0:!0)))return{data:{index:kt,overflows:ze},reset:{placement:At}};let Dt=(qe=ze.filter(Lt=>Lt.overflows[0]<=0).sort((Lt,jt)=>Lt.overflows[1]-jt.overflows[1])[0])==null?void 0:qe.placement;if(!Dt)switch(de){case"bestFit":{var Et;const Lt=(Et=ze.filter(jt=>{if($e){const hn=getSideAxis(jt.placement);return hn===xe||hn==="y"}return!0}).map(jt=>[jt.placement,jt.overflows.filter(hn=>hn>0).reduce((hn,vn)=>hn+vn,0)]).sort((jt,hn)=>jt[1]-hn[1])[0])==null?void 0:Et[0];Lt&&(Dt=Lt);break}case"initialPlacement":Dt=re;break}if(g!==Dt)return{reset:{placement:Dt}}}return{}}}},originSides=new Set(["left","top"]);async function convertValueToCoords(n,t){const{placement:r,platform:i,elements:g}=n,$=await(i.isRTL==null?void 0:i.isRTL(g.floating)),V=getSide(r),re=getAlignment(r),ie=getSideAxis(r)==="y",ae=originSides.has(V)?-1:1,oe=$&&ie?-1:1,le=evaluate(t,n);let{mainAxis:ue,crossAxis:de,alignmentAxis:he}=typeof le=="number"?{mainAxis:le,crossAxis:0,alignmentAxis:null}:{mainAxis:le.mainAxis||0,crossAxis:le.crossAxis||0,alignmentAxis:le.alignmentAxis};return re&&typeof he=="number"&&(de=re==="end"?he*-1:he),ie?{x:de*oe,y:ue*ae}:{x:ue*ae,y:de*oe}}const offset$1=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(t){var r,i;const{x:g,y:$,placement:V,middlewareData:re}=t,ie=await convertValueToCoords(t,n);return V===((r=re.offset)==null?void 0:r.placement)&&(i=re.arrow)!=null&&i.alignmentOffset?{}:{x:g+ie.x,y:$+ie.y,data:{...ie,placement:V}}}}},shift$1=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(t){const{x:r,y:i,placement:g}=t,{mainAxis:$=!0,crossAxis:V=!1,limiter:re={fn:_e=>{let{x:Ce,y:xe}=_e;return{x:Ce,y:xe}}},...ie}=evaluate(n,t),ae={x:r,y:i},oe=await detectOverflow$1(t,ie),le=getSideAxis(getSide(g)),ue=getOppositeAxis(le);let de=ae[ue],he=ae[le];if($){const _e=ue==="y"?"top":"left",Ce=ue==="y"?"bottom":"right",xe=de+oe[_e],Ie=de-oe[Ce];de=clamp$2(xe,de,Ie)}if(V){const _e=le==="y"?"top":"left",Ce=le==="y"?"bottom":"right",xe=he+oe[_e],Ie=he-oe[Ce];he=clamp$2(xe,he,Ie)}const pe=re.fn({...t,[ue]:de,[le]:he});return{...pe,data:{x:pe.x-r,y:pe.y-i,enabled:{[ue]:$,[le]:V}}}}}};function hasWindow(){return typeof window<"u"}function getNodeName(n){return isNode(n)?(n.nodeName||"").toLowerCase():"#document"}function getWindow(n){var t;return(n==null||(t=n.ownerDocument)==null?void 0:t.defaultView)||window}function getDocumentElement(n){var t;return(t=(isNode(n)?n.ownerDocument:n.document)||window.document)==null?void 0:t.documentElement}function isNode(n){return hasWindow()?n instanceof Node||n instanceof getWindow(n).Node:!1}function isElement(n){return hasWindow()?n instanceof Element||n instanceof getWindow(n).Element:!1}function isHTMLElement(n){return hasWindow()?n instanceof HTMLElement||n instanceof getWindow(n).HTMLElement:!1}function isShadowRoot(n){return!hasWindow()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof getWindow(n).ShadowRoot}const invalidOverflowDisplayValues=new Set(["inline","contents"]);function isOverflowElement(n){const{overflow:t,overflowX:r,overflowY:i,display:g}=getComputedStyle$3(n);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!invalidOverflowDisplayValues.has(g)}const tableElements=new Set(["table","td","th"]);function isTableElement(n){return tableElements.has(getNodeName(n))}const topLayerSelectors=[":popover-open",":modal"];function isTopLayer(n){return topLayerSelectors.some(t=>{try{return n.matches(t)}catch{return!1}})}const transformProperties=["transform","translate","scale","rotate","perspective"],willChangeValues=["transform","translate","scale","rotate","perspective","filter"],containValues=["paint","layout","strict","content"];function isContainingBlock(n){const t=isWebKit(),r=isElement(n)?getComputedStyle$3(n):n;return transformProperties.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||willChangeValues.some(i=>(r.willChange||"").includes(i))||containValues.some(i=>(r.contain||"").includes(i))}function getContainingBlock(n){let t=getParentNode(n);for(;isHTMLElement(t)&&!isLastTraversableNode(t);){if(isContainingBlock(t))return t;if(isTopLayer(t))return null;t=getParentNode(t)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lastTraversableNodeNames=new Set(["html","body","#document"]);function isLastTraversableNode(n){return lastTraversableNodeNames.has(getNodeName(n))}function getComputedStyle$3(n){return getWindow(n).getComputedStyle(n)}function getNodeScroll(n){return isElement(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function getParentNode(n){if(getNodeName(n)==="html")return n;const t=n.assignedSlot||n.parentNode||isShadowRoot(n)&&n.host||getDocumentElement(n);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(n){const t=getParentNode(n);return isLastTraversableNode(t)?n.ownerDocument?n.ownerDocument.body:n.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}function getOverflowAncestors(n,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);const g=getNearestOverflowAncestor(n),$=g===((i=n.ownerDocument)==null?void 0:i.body),V=getWindow(g);if($){const re=getFrameElement(V);return t.concat(V,V.visualViewport||[],isOverflowElement(g)?g:[],re&&r?getOverflowAncestors(re):[])}return t.concat(g,getOverflowAncestors(g,[],r))}function getFrameElement(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function getCssDimensions(n){const t=getComputedStyle$3(n);let r=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const g=isHTMLElement(n),$=g?n.offsetWidth:r,V=g?n.offsetHeight:i,re=round$3(r)!==$||round$3(i)!==V;return re&&(r=$,i=V),{width:r,height:i,$:re}}function unwrapElement(n){return isElement(n)?n:n.contextElement}function getScale(n){const t=unwrapElement(n);if(!isHTMLElement(t))return createCoords(1);const r=t.getBoundingClientRect(),{width:i,height:g,$}=getCssDimensions(t);let V=($?round$3(r.width):r.width)/i,re=($?round$3(r.height):r.height)/g;return(!V||!Number.isFinite(V))&&(V=1),(!re||!Number.isFinite(re))&&(re=1),{x:V,y:re}}const noOffsets=createCoords(0);function getVisualOffsets(n){const t=getWindow(n);return!isWebKit()||!t.visualViewport?noOffsets:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function shouldAddVisualOffsets(n,t,r){return t===void 0&&(t=!1),!r||t&&r!==getWindow(n)?!1:t}function getBoundingClientRect(n,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);const g=n.getBoundingClientRect(),$=unwrapElement(n);let V=createCoords(1);t&&(i?isElement(i)&&(V=getScale(i)):V=getScale(n));const re=shouldAddVisualOffsets($,r,i)?getVisualOffsets($):createCoords(0);let ie=(g.left+re.x)/V.x,ae=(g.top+re.y)/V.y,oe=g.width/V.x,le=g.height/V.y;if($){const ue=getWindow($),de=i&&isElement(i)?getWindow(i):i;let he=ue,pe=getFrameElement(he);for(;pe&&i&&de!==he;){const _e=getScale(pe),Ce=pe.getBoundingClientRect(),xe=getComputedStyle$3(pe),Ie=Ce.left+(pe.clientLeft+parseFloat(xe.paddingLeft))*_e.x,Ne=Ce.top+(pe.clientTop+parseFloat(xe.paddingTop))*_e.y;ie*=_e.x,ae*=_e.y,oe*=_e.x,le*=_e.y,ie+=Ie,ae+=Ne,he=getWindow(pe),pe=getFrameElement(he)}}return rectToClientRect({width:oe,height:le,x:ie,y:ae})}function getWindowScrollBarX(n,t){const r=getNodeScroll(n).scrollLeft;return t?t.left+r:getBoundingClientRect(getDocumentElement(n)).left+r}function getHTMLOffset(n,t){const r=n.getBoundingClientRect(),i=r.left+t.scrollLeft-getWindowScrollBarX(n,r),g=r.top+t.scrollTop;return{x:i,y:g}}function convertOffsetParentRelativeRectToViewportRelativeRect(n){let{elements:t,rect:r,offsetParent:i,strategy:g}=n;const $=g==="fixed",V=getDocumentElement(i),re=t?isTopLayer(t.floating):!1;if(i===V||re&&$)return r;let ie={scrollLeft:0,scrollTop:0},ae=createCoords(1);const oe=createCoords(0),le=isHTMLElement(i);if((le||!le&&!$)&&((getNodeName(i)!=="body"||isOverflowElement(V))&&(ie=getNodeScroll(i)),isHTMLElement(i))){const de=getBoundingClientRect(i);ae=getScale(i),oe.x=de.x+i.clientLeft,oe.y=de.y+i.clientTop}const ue=V&&!le&&!$?getHTMLOffset(V,ie):createCoords(0);return{width:r.width*ae.x,height:r.height*ae.y,x:r.x*ae.x-ie.scrollLeft*ae.x+oe.x+ue.x,y:r.y*ae.y-ie.scrollTop*ae.y+oe.y+ue.y}}function getClientRects(n){return Array.from(n.getClientRects())}function getDocumentRect(n){const t=getDocumentElement(n),r=getNodeScroll(n),i=n.ownerDocument.body,g=max$2(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),$=max$2(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let V=-r.scrollLeft+getWindowScrollBarX(n);const re=-r.scrollTop;return getComputedStyle$3(i).direction==="rtl"&&(V+=max$2(t.clientWidth,i.clientWidth)-g),{width:g,height:$,x:V,y:re}}const SCROLLBAR_MAX=25;function getViewportRect(n,t){const r=getWindow(n),i=getDocumentElement(n),g=r.visualViewport;let $=i.clientWidth,V=i.clientHeight,re=0,ie=0;if(g){$=g.width,V=g.height;const oe=isWebKit();(!oe||oe&&t==="fixed")&&(re=g.offsetLeft,ie=g.offsetTop)}const ae=getWindowScrollBarX(i);if(ae<=0){const oe=i.ownerDocument,le=oe.body,ue=getComputedStyle(le),de=oe.compatMode==="CSS1Compat"&&parseFloat(ue.marginLeft)+parseFloat(ue.marginRight)||0,he=Math.abs(i.clientWidth-le.clientWidth-de);he<=SCROLLBAR_MAX&&($-=he)}else ae<=SCROLLBAR_MAX&&($+=ae);return{width:$,height:V,x:re,y:ie}}const absoluteOrFixed=new Set(["absolute","fixed"]);function getInnerBoundingClientRect(n,t){const r=getBoundingClientRect(n,!0,t==="fixed"),i=r.top+n.clientTop,g=r.left+n.clientLeft,$=isHTMLElement(n)?getScale(n):createCoords(1),V=n.clientWidth*$.x,re=n.clientHeight*$.y,ie=g*$.x,ae=i*$.y;return{width:V,height:re,x:ie,y:ae}}function getClientRectFromClippingAncestor(n,t,r){let i;if(t==="viewport")i=getViewportRect(n,r);else if(t==="document")i=getDocumentRect(getDocumentElement(n));else if(isElement(t))i=getInnerBoundingClientRect(t,r);else{const g=getVisualOffsets(n);i={x:t.x-g.x,y:t.y-g.y,width:t.width,height:t.height}}return rectToClientRect(i)}function hasFixedPositionAncestor(n,t){const r=getParentNode(n);return r===t||!isElement(r)||isLastTraversableNode(r)?!1:getComputedStyle$3(r).position==="fixed"||hasFixedPositionAncestor(r,t)}function getClippingElementAncestors(n,t){const r=t.get(n);if(r)return r;let i=getOverflowAncestors(n,[],!1).filter(re=>isElement(re)&&getNodeName(re)!=="body"),g=null;const $=getComputedStyle$3(n).position==="fixed";let V=$?getParentNode(n):n;for(;isElement(V)&&!isLastTraversableNode(V);){const re=getComputedStyle$3(V),ie=isContainingBlock(V);!ie&&re.position==="fixed"&&(g=null),($?!ie&&!g:!ie&&re.position==="static"&&!!g&&absoluteOrFixed.has(g.position)||isOverflowElement(V)&&!ie&&hasFixedPositionAncestor(n,V))?i=i.filter(oe=>oe!==V):g=re,V=getParentNode(V)}return t.set(n,i),i}function getClippingRect(n){let{element:t,boundary:r,rootBoundary:i,strategy:g}=n;const V=[...r==="clippingAncestors"?isTopLayer(t)?[]:getClippingElementAncestors(t,this._c):[].concat(r),i],re=V[0],ie=V.reduce((ae,oe)=>{const le=getClientRectFromClippingAncestor(t,oe,g);return ae.top=max$2(le.top,ae.top),ae.right=min$2(le.right,ae.right),ae.bottom=min$2(le.bottom,ae.bottom),ae.left=max$2(le.left,ae.left),ae},getClientRectFromClippingAncestor(t,re,g));return{width:ie.right-ie.left,height:ie.bottom-ie.top,x:ie.left,y:ie.top}}function getDimensions(n){const{width:t,height:r}=getCssDimensions(n);return{width:t,height:r}}function getRectRelativeToOffsetParent(n,t,r){const i=isHTMLElement(t),g=getDocumentElement(t),$=r==="fixed",V=getBoundingClientRect(n,!0,$,t);let re={scrollLeft:0,scrollTop:0};const ie=createCoords(0);function ae(){ie.x=getWindowScrollBarX(g)}if(i||!i&&!$)if((getNodeName(t)!=="body"||isOverflowElement(g))&&(re=getNodeScroll(t)),i){const de=getBoundingClientRect(t,!0,$,t);ie.x=de.x+t.clientLeft,ie.y=de.y+t.clientTop}else g&&ae();$&&!i&&g&&ae();const oe=g&&!i&&!$?getHTMLOffset(g,re):createCoords(0),le=V.left+re.scrollLeft-ie.x-oe.x,ue=V.top+re.scrollTop-ie.y-oe.y;return{x:le,y:ue,width:V.width,height:V.height}}function isStaticPositioned(n){return getComputedStyle$3(n).position==="static"}function getTrueOffsetParent(n,t){if(!isHTMLElement(n)||getComputedStyle$3(n).position==="fixed")return null;if(t)return t(n);let r=n.offsetParent;return getDocumentElement(n)===r&&(r=r.ownerDocument.body),r}function getOffsetParent(n,t){const r=getWindow(n);if(isTopLayer(n))return r;if(!isHTMLElement(n)){let g=getParentNode(n);for(;g&&!isLastTraversableNode(g);){if(isElement(g)&&!isStaticPositioned(g))return g;g=getParentNode(g)}return r}let i=getTrueOffsetParent(n,t);for(;i&&isTableElement(i)&&isStaticPositioned(i);)i=getTrueOffsetParent(i,t);return i&&isLastTraversableNode(i)&&isStaticPositioned(i)&&!isContainingBlock(i)?r:i||getContainingBlock(n)||r}const getElementRects=async function(n){const t=this.getOffsetParent||getOffsetParent,r=this.getDimensions,i=await r(n.floating);return{reference:getRectRelativeToOffsetParent(n.reference,await t(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function isRTL(n){return getComputedStyle$3(n).direction==="rtl"}const platform$3={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function rectsAreEqual(n,t){return n.x===t.x&&n.y===t.y&&n.width===t.width&&n.height===t.height}function observeMove(n,t){let r=null,i;const g=getDocumentElement(n);function $(){var re;clearTimeout(i),(re=r)==null||re.disconnect(),r=null}function V(re,ie){re===void 0&&(re=!1),ie===void 0&&(ie=1),$();const ae=n.getBoundingClientRect(),{left:oe,top:le,width:ue,height:de}=ae;if(re||t(),!ue||!de)return;const he=floor(le),pe=floor(g.clientWidth-(oe+ue)),_e=floor(g.clientHeight-(le+de)),Ce=floor(oe),Ie={rootMargin:-he+"px "+-pe+"px "+-_e+"px "+-Ce+"px",threshold:max$2(0,min$2(1,ie))||1};let Ne=!0;function Oe($e){const Ve=$e[0].intersectionRatio;if(Ve!==ie){if(!Ne)return V();Ve?V(!1,Ve):i=setTimeout(()=>{V(!1,1e-7)},1e3)}Ve===1&&!rectsAreEqual(ae,n.getBoundingClientRect())&&V(),Ne=!1}try{r=new IntersectionObserver(Oe,{...Ie,root:g.ownerDocument})}catch{r=new IntersectionObserver(Oe,Ie)}r.observe(n)}return V(!0),$}function autoUpdate(n,t,r,i){i===void 0&&(i={});const{ancestorScroll:g=!0,ancestorResize:$=!0,elementResize:V=typeof ResizeObserver=="function",layoutShift:re=typeof IntersectionObserver=="function",animationFrame:ie=!1}=i,ae=unwrapElement(n),oe=g||$?[...ae?getOverflowAncestors(ae):[],...getOverflowAncestors(t)]:[];oe.forEach(Ce=>{g&&Ce.addEventListener("scroll",r,{passive:!0}),$&&Ce.addEventListener("resize",r)});const le=ae&&re?observeMove(ae,r):null;let ue=-1,de=null;V&&(de=new ResizeObserver(Ce=>{let[xe]=Ce;xe&&xe.target===ae&&de&&(de.unobserve(t),cancelAnimationFrame(ue),ue=requestAnimationFrame(()=>{var Ie;(Ie=de)==null||Ie.observe(t)})),r()}),ae&&!ie&&de.observe(ae),de.observe(t));let he,pe=ie?getBoundingClientRect(n):null;ie&&_e();function _e(){const Ce=getBoundingClientRect(n);pe&&!rectsAreEqual(pe,Ce)&&r(),pe=Ce,he=requestAnimationFrame(_e)}return r(),()=>{var Ce;oe.forEach(xe=>{g&&xe.removeEventListener("scroll",r),$&&xe.removeEventListener("resize",r)}),le==null||le(),(Ce=de)==null||Ce.disconnect(),de=null,ie&&cancelAnimationFrame(he)}}const detectOverflow=detectOverflow$1,offset=offset$1,shift=shift$1,flip=flip$1,arrow=arrow$1,computePosition=(n,t,r)=>{const i=new Map,g={platform:platform$3,...r},$={...g.platform,_c:i};return computePosition$1(n,t,{...g,platform:$})},useTarget=(n,t,r,i,g)=>{const $=ref(null),V=()=>{let le;return isString$2(n.value)?le=document.querySelector(n.value):isFunction$4(n.value)?le=n.value():le=n.value,le},re=()=>{const le=V();if(!le||!t.value){$.value=null;return}isInViewPort(le)||le.scrollIntoView(g.value);const{left:ue,top:de,width:he,height:pe}=le.getBoundingClientRect();$.value={left:ue,top:de,width:he,height:pe,radius:0}};onMounted(()=>{watch([t,n],()=>{re()},{immediate:!0}),window.addEventListener("resize",re)}),onBeforeUnmount(()=>{window.removeEventListener("resize",re)});const ie=le=>{var ue;return(ue=isArray$5(r.value.offset)?r.value.offset[le]:r.value.offset)!=null?ue:6},ae=computed(()=>{var le;if(!$.value)return $.value;const ue=ie(0),de=ie(1),he=((le=r.value)==null?void 0:le.radius)||2;return{left:$.value.left-ue,top:$.value.top-de,width:$.value.width+ue*2,height:$.value.height+de*2,radius:he}}),oe=computed(()=>{const le=V();return!i.value||!le||!window.DOMRect?le||void 0:{getBoundingClientRect(){var ue,de,he,pe;return window.DOMRect.fromRect({width:((ue=ae.value)==null?void 0:ue.width)||0,height:((de=ae.value)==null?void 0:de.height)||0,x:((he=ae.value)==null?void 0:he.left)||0,y:((pe=ae.value)==null?void 0:pe.top)||0})}}});return{mergedPosInfo:ae,triggerTarget:oe}},tourKey=Symbol("ElTour");function isInViewPort(n){const t=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,{top:i,right:g,bottom:$,left:V}=n.getBoundingClientRect();return i>=0&&V>=0&&g<=t&&$<=r}const useFloating=(n,t,r,i,g,$,V,re)=>{const ie=ref(),ae=ref(),oe=ref({}),le={x:ie,y:ae,placement:i,strategy:g,middlewareData:oe},ue=computed(()=>{const Ce=[offset(unref($)),flip(),shift(),overflowMiddleware()];return unref(re)&&unref(r)&&Ce.push(arrow({element:unref(r)})),Ce}),de=async()=>{if(!isClient)return;const Ce=unref(n),xe=unref(t);if(!Ce||!xe)return;const Ie=await computePosition(Ce,xe,{placement:unref(i),strategy:unref(g),middleware:unref(ue)});keysOf(le).forEach(Ne=>{le[Ne].value=Ie[Ne]})},he=computed(()=>{if(!unref(n))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:unref(V)};const{overflow:Ce}=unref(oe);return{position:unref(g),zIndex:unref(V),top:unref(ae)!=null?`${unref(ae)}px`:"",left:unref(ie)!=null?`${unref(ie)}px`:"",maxWidth:Ce!=null&&Ce.maxWidth?`${Ce==null?void 0:Ce.maxWidth}px`:""}}),pe=computed(()=>{if(!unref(re))return{};const{arrow:Ce}=unref(oe);return{left:(Ce==null?void 0:Ce.x)!=null?`${Ce==null?void 0:Ce.x}px`:"",top:(Ce==null?void 0:Ce.y)!=null?`${Ce==null?void 0:Ce.y}px`:""}});let _e;return onMounted(()=>{const Ce=unref(n),xe=unref(t);Ce&&xe&&(_e=autoUpdate(Ce,xe,de)),watchEffect(()=>{de()})}),onBeforeUnmount(()=>{_e&&_e()}),{update:de,contentStyle:he,arrowStyle:pe}},overflowMiddleware=()=>({name:"overflow",async fn(n){const t=await detectOverflow(n);let r=0;return t.left>0&&(r=t.left),t.right>0&&(r=t.right),{data:{maxWidth:n.rects.floating.width-r}}}}),_hoisted_1$x={style:{width:"100%",height:"100%"}},_hoisted_2$n=["d"],_sfc_main$J=defineComponent({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:maskProps,setup(n){const t=n,{ns:r}=inject(tourKey),i=computed(()=>{var oe,le;return(le=(oe=t.pos)==null?void 0:oe.radius)!=null?le:2}),g=computed(()=>{const oe=i.value,le=`a${oe},${oe} 0 0 1`;return{topRight:`${le} ${oe},${oe}`,bottomRight:`${le} ${-oe},${oe}`,bottomLeft:`${le} ${-oe},${-oe}`,topLeft:`${le} ${oe},${-oe}`}}),{width:$,height:V}=useWindowSize(),re=computed(()=>{const oe=$.value,le=V.value,ue=g.value,de=`M${oe},0 L0,0 L0,${le} L${oe},${le} L${oe},0 Z`,he=i.value;return t.pos?`${de} M${t.pos.left+he},${t.pos.top} h${t.pos.width-he*2} ${ue.topRight} v${t.pos.height-he*2} ${ue.bottomRight} h${-t.pos.width+he*2} ${ue.bottomLeft} v${-t.pos.height+he*2} ${ue.topLeft} z`:de}),ie=computed(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),ae=computed(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return useLockscreen(toRef$1(t,"visible"),{ns:r}),(oe,le)=>oe.visible?(openBlock(),createElementBlock("div",mergeProps({key:0,class:unref(r).e("mask"),style:ie.value},oe.$attrs),[(openBlock(),createElementBlock("svg",_hoisted_1$x,[createBaseVNode("path",{class:normalizeClass(unref(r).e("hollow")),style:normalizeStyle$1(ae.value),d:re.value},null,14,_hoisted_2$n)]))],16)):createCommentVNode("v-if",!0)}});var ElTourMask=_export_sfc(_sfc_main$J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/mask.vue"]]);const tourStrategies=["absolute","fixed"],tourPlacements=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],tourContentProps=buildProps({placement:{type:definePropType(String),values:tourPlacements,default:"bottom"},reference:{type:definePropType(Object),default:null},strategy:{type:definePropType(String),values:tourStrategies,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),tourContentEmits={close:()=>!0},_hoisted_1$w=["data-side"],_sfc_main$I=defineComponent({name:"ElTourContent",__name:"content",props:tourContentProps,emits:tourContentEmits,setup(n,{emit:t}){const r=n,i=t,g=ref(r.placement),$=ref(r.strategy),V=ref(null),re=ref(null);watch(()=>r.placement,()=>{g.value=r.placement});const{contentStyle:ie,arrowStyle:ae}=useFloating(toRef$1(r,"reference"),V,re,g,$,toRef$1(r,"offset"),toRef$1(r,"zIndex"),toRef$1(r,"showArrow")),oe=computed(()=>g.value.split("-")[0]),{ns:le}=inject(tourKey),ue=()=>{i("close")},de=he=>{he.detail.focusReason==="pointer"&&he.preventDefault()};return(he,pe)=>(openBlock(),createElementBlock("div",{ref_key:"contentRef",ref:V,style:normalizeStyle$1(unref(ie)),class:normalizeClass(unref(le).e("content")),"data-side":oe.value,tabindex:"-1"},[createVNode$1(unref(ElFocusTrap),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":V.value||void 0,onReleaseRequested:ue,onFocusoutPrevented:de},{default:withCtx(()=>[renderSlot(he.$slots,"default")]),_:3},8,["focus-trap-el"]),he.showArrow?(openBlock(),createElementBlock("span",{key:0,ref_key:"arrowRef",ref:re,style:normalizeStyle$1(unref(ae)),class:normalizeClass(unref(le).e("arrow"))},null,6)):createCommentVNode("v-if",!0)],14,_hoisted_1$w))}});var ElTourContent=_export_sfc(_sfc_main$I,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/content.vue"]]),ElTourSteps=defineComponent({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(n,{slots:t,emit:r}){let i=0;return()=>{var g,$;const V=(g=t.default)==null?void 0:g.call(t),re=[];let ie=0;function ae(oe){isArray$5(oe)&&oe.forEach(le=>{var ue;((ue=(le==null?void 0:le.type)||{})==null?void 0:ue.name)==="ElTourStep"&&(re.push(le),ie+=1)})}return V.length&&ae(flattedChildren(($=V[0])==null?void 0:$.children)),i!==ie&&(i=ie,r("update-total",ie)),re.length?re[n.current]:null}}});const tourProps=buildProps({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:iconPropType},placement:tourContentProps.placement,contentStyle:{type:definePropType([Object])},mask:{type:definePropType([Boolean,Object]),default:!0},gap:{type:definePropType(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:definePropType([Boolean,Object]),default:()=>({block:"center"})},type:{type:definePropType(String)},appendTo:{type:teleportProps.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),tourEmits={[UPDATE_MODEL_EVENT]:n=>isBoolean$1(n),"update:current":n=>isNumber$2(n),close:n=>isNumber$2(n),finish:()=>!0,change:n=>isNumber$2(n)},_sfc_main$H=defineComponent({name:"ElTour",inheritAttrs:!1,__name:"tour",props:tourProps,emits:tourEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("tour"),$=ref(0),V=ref(),re=useVModel(r,"current",i,{passive:!0}),ie=computed(()=>{var ze;return(ze=V.value)==null?void 0:ze.target}),ae=computed(()=>[g.b(),Ce.value==="primary"?g.m("primary"):""]),oe=computed(()=>{var ze;return((ze=V.value)==null?void 0:ze.placement)||r.placement}),le=computed(()=>{var ze,Pt;return(Pt=(ze=V.value)==null?void 0:ze.contentStyle)!=null?Pt:r.contentStyle}),ue=computed(()=>{var ze,Pt;return(Pt=(ze=V.value)==null?void 0:ze.mask)!=null?Pt:r.mask}),de=computed(()=>!!ue.value&&r.modelValue),he=computed(()=>isBoolean$1(ue.value)?void 0:ue.value),pe=computed(()=>{var ze,Pt;return!!ie.value&&((Pt=(ze=V.value)==null?void 0:ze.showArrow)!=null?Pt:r.showArrow)}),_e=computed(()=>{var ze,Pt;return(Pt=(ze=V.value)==null?void 0:ze.scrollIntoViewOptions)!=null?Pt:r.scrollIntoViewOptions}),Ce=computed(()=>{var ze,Pt;return(Pt=(ze=V.value)==null?void 0:ze.type)!=null?Pt:r.type}),{nextZIndex:xe}=useZIndex(),Ie=xe(),Ne=computed(()=>{var ze;return(ze=r.zIndex)!=null?ze:Ie}),{mergedPosInfo:Oe,triggerTarget:$e}=useTarget(ie,toRef$1(r,"modelValue"),toRef$1(r,"gap"),ue,_e);watch(()=>r.modelValue,ze=>{ze||(re.value=0)});const Ve=()=>{r.closeOnPressEscape&&(i(UPDATE_MODEL_EVENT,!1),i("close",re.value))},Ue=ze=>{$.value=ze},Fe=useSlots();return provide(tourKey,{currentStep:V,current:re,total:$,showClose:toRef$1(r,"showClose"),closeIcon:toRef$1(r,"closeIcon"),mergedType:Ce,ns:g,slots:Fe,updateModelValue(ze){i(UPDATE_MODEL_EVENT,ze)},onClose(){i("close",re.value)},onFinish(){i("finish")},onChange(){i(CHANGE_EVENT,re.value)}}),(ze,Pt)=>(openBlock(),createElementBlock(Fragment,null,[createVNode$1(unref(ElTeleport),{to:ze.appendTo},{default:withCtx(()=>{var qe,Et;return[createBaseVNode("div",mergeProps({class:ae.value},ze.$attrs),[createVNode$1(ElTourMask,{visible:de.value,fill:(qe=he.value)==null?void 0:qe.color,style:normalizeStyle$1((Et=he.value)==null?void 0:Et.style),pos:unref(Oe),"z-index":Ne.value,"target-area-clickable":ze.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),ze.modelValue?(openBlock(),createBlock(ElTourContent,{key:unref(re),reference:unref($e),placement:oe.value,"show-arrow":pe.value,"z-index":Ne.value,style:normalizeStyle$1(le.value),onClose:Ve},{default:withCtx(()=>[createVNode$1(unref(ElTourSteps),{current:unref(re),onUpdateTotal:Ue},{default:withCtx(()=>[renderSlot(ze.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):createCommentVNode("v-if",!0)],16)]}),_:3},8,["to"]),createCommentVNode(" just for IDE "),createCommentVNode("v-if",!0)],64))}});var Tour=_export_sfc(_sfc_main$H,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/tour.vue"]]);const tourStepProps=buildProps({target:{type:definePropType([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:iconPropType},showArrow:{type:Boolean,default:void 0},placement:tourContentProps.placement,mask:{type:definePropType([Boolean,Object]),default:void 0},contentStyle:{type:definePropType([Object])},prevButtonProps:{type:definePropType(Object)},nextButtonProps:{type:definePropType(Object)},scrollIntoViewOptions:{type:definePropType([Boolean,Object]),default:void 0},type:{type:definePropType(String)}}),tourStepEmits={close:()=>!0},_hoisted_1$v=["aria-label"],_sfc_main$G=defineComponent({name:"ElTourStep",__name:"step",props:tourStepProps,emits:tourStepEmits,setup(n,{emit:t}){const r=n,i=t,{Close:g}=CloseComponents,{t:$}=useLocale(),{currentStep:V,current:re,total:ie,showClose:ae,closeIcon:oe,mergedType:le,ns:ue,slots:de,updateModelValue:he,onClose:pe,onFinish:_e,onChange:Ce}=inject(tourKey);watch(r,ze=>{V.value=ze},{immediate:!0});const xe=computed(()=>{var ze;return(ze=r.showClose)!=null?ze:ae.value}),Ie=computed(()=>{var ze,Pt;return(Pt=(ze=r.closeIcon)!=null?ze:oe.value)!=null?Pt:g}),Ne=ze=>{if(ze)return omit$1(ze,["children","onClick"])},Oe=()=>{var ze,Pt;re.value-=1,(ze=r.prevButtonProps)!=null&&ze.onClick&&((Pt=r.prevButtonProps)==null||Pt.onClick()),Ce()},$e=()=>{var ze;re.value>=ie.value-1?Ve():re.value+=1,(ze=r.nextButtonProps)!=null&&ze.onClick&&r.nextButtonProps.onClick(),Ce()},Ve=()=>{Ue(),_e()},Ue=()=>{he(!1),pe(),i("close")},Fe=ze=>{const Pt=ze.target;if(Pt!=null&&Pt.isContentEditable)return;switch(getEventCode(ze)){case EVENT_CODE.left:ze.preventDefault(),re.value>0&&Oe();break;case EVENT_CODE.right:ze.preventDefault(),$e();break}};return onMounted(()=>{window.addEventListener("keydown",Fe)}),onBeforeUnmount(()=>{window.removeEventListener("keydown",Fe)}),(ze,Pt)=>(openBlock(),createElementBlock(Fragment,null,[xe.value?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref($)("el.tour.close"),class:normalizeClass(unref(ue).e("closebtn")),type:"button",onClick:Ue},[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(ue).e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ie.value)))]),_:1},8,["class"])],10,_hoisted_1$v)):createCommentVNode("v-if",!0),createBaseVNode("header",{class:normalizeClass([unref(ue).e("header"),{"show-close":unref(ae)}])},[renderSlot(ze.$slots,"header",{},()=>[createBaseVNode("span",{role:"heading",class:normalizeClass(unref(ue).e("title"))},toDisplayString(ze.title),3)])],2),createBaseVNode("div",{class:normalizeClass(unref(ue).e("body"))},[renderSlot(ze.$slots,"default",{},()=>[createBaseVNode("span",null,toDisplayString(ze.description),1)])],2),createBaseVNode("footer",{class:normalizeClass(unref(ue).e("footer"))},[createBaseVNode("div",{class:normalizeClass(unref(ue).b("indicators"))},[unref(de).indicators?(openBlock(),createBlock(resolveDynamicComponent(unref(de).indicators),{key:0,current:unref(re),total:unref(ie)},null,8,["current","total"])):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(unref(ie),(qe,Et)=>(openBlock(),createElementBlock("span",{key:qe,class:normalizeClass([unref(ue).b("indicator"),unref(ue).is("active",Et===unref(re))])},null,2))),128))],2),createBaseVNode("div",{class:normalizeClass(unref(ue).b("buttons"))},[unref(re)>0?(openBlock(),createBlock(unref(ElButton),mergeProps({key:0,size:"small",type:unref(le)},Ne(ze.prevButtonProps),{onClick:Oe}),{default:withCtx(()=>{var qe,Et;return[createTextVNode(toDisplayString((Et=(qe=ze.prevButtonProps)==null?void 0:qe.children)!=null?Et:unref($)("el.tour.previous")),1)]}),_:1},16,["type"])):createCommentVNode("v-if",!0),unref(re)<=unref(ie)-1?(openBlock(),createBlock(unref(ElButton),mergeProps({key:1,size:"small",type:unref(le)==="primary"?"default":"primary"},Ne(ze.nextButtonProps),{onClick:$e}),{default:withCtx(()=>{var qe,Et;return[createTextVNode(toDisplayString((Et=(qe=ze.nextButtonProps)==null?void 0:qe.children)!=null?Et:unref(re)===unref(ie)-1?unref($)("el.tour.finish"):unref($)("el.tour.next")),1)]}),_:1},16,["type"])):createCommentVNode("v-if",!0)],2)],2)],64))}});var TourStep=_export_sfc(_sfc_main$G,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/step.vue"]]);const ElTour=withInstall(Tour,{TourStep}),ElTourStep=withNoopInstall(TourStep),anchorProps=buildProps({container:{type:definePropType([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:definePropType(String),default:"default"},direction:{type:definePropType(String),default:"vertical"},selectScrollTop:Boolean}),anchorEmits={change:n=>isString$2(n),click:(n,t)=>n instanceof MouseEvent&&(isString$2(t)||isUndefined$1(t))},anchorKey=Symbol("anchor"),getElement=n=>{if(!isClient||n==="")return null;if(isString$2(n))try{return document.querySelector(n)}catch{return null}return n};function throttleByRaf(n){let t=0;const r=(...i)=>{t&&cAF(t),t=rAF(()=>{n(...i),t=0})};return r.cancel=()=>{cAF(t),t=0},r}const _sfc_main$F=defineComponent({name:"ElAnchor",__name:"anchor",props:anchorProps,emits:anchorEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useSlots(),V=ref(""),re=ref({}),ie=ref(null),ae=ref(null),oe=ref(),le={};let ue=!1,de=0;const he=useNamespace("anchor"),pe=computed(()=>[he.b(),i.type==="underline"?he.m("underline"):"",he.m(i.direction)]),_e=qe=>{le[qe.href]=qe.el},Ce=qe=>{delete le[qe]},xe=qe=>{V.value!==qe&&(V.value=qe,g(CHANGE_EVENT,qe))};let Ie=null,Ne="";const Oe=qe=>{if(!oe.value)return;const Et=getElement(qe);if(!Et)return;if(Ie){if(Ne===qe)return;Ie()}Ne=qe,ue=!0;const kt=getScrollElement(Et,oe.value),At=getOffsetTopDistance(Et,kt),Dt=kt.scrollHeight-kt.clientHeight,Lt=Math.min(At-i.offset,Dt);Ie=animateScrollTo(oe.value,de,Lt,i.duration,()=>{setTimeout(()=>{ue=!1,Ne=""},20)})},$e=qe=>{qe&&(xe(qe),Oe(qe))},Ve=(qe,Et)=>{g("click",qe,Et),$e(Et)},Ue=throttleByRaf(()=>{oe.value&&(de=getScrollTop(oe.value));const qe=Fe();ue||isUndefined$1(qe)||xe(qe)}),Fe=()=>{if(!oe.value)return;const qe=getScrollTop(oe.value),Et=[];for(const kt of Object.keys(le)){const At=getElement(kt);if(!At)continue;const Dt=getScrollElement(At,oe.value),Lt=getOffsetTopDistance(At,Dt);Et.push({top:Lt-i.offset-i.bound,href:kt})}Et.sort((kt,At)=>kt.top-At.top);for(let kt=0;ktqe))return At.href}},ze=()=>{const qe=getElement(i.container);!qe||isWindow(qe)?oe.value=window:oe.value=qe};useEventListener(oe,"scroll",Ue);const Pt=()=>{nextTick(()=>{if(!ie.value||!ae.value||!V.value){re.value={};return}const qe=le[V.value];if(!qe){re.value={};return}const Et=ie.value.getBoundingClientRect(),kt=ae.value.getBoundingClientRect(),At=qe.getBoundingClientRect();if(i.direction==="horizontal"){const Dt=At.left-Et.left;re.value={left:`${Dt}px`,width:`${At.width}px`,opacity:1}}else{const Dt=At.top-Et.top+(At.height-kt.height)/2;re.value={top:`${Dt}px`,opacity:1}}})};return watch(V,Pt),watch(()=>{var qe;return(qe=$.default)==null?void 0:qe.call($)},Pt),onMounted(()=>{ze();const qe=decodeURIComponent(window.location.hash);getElement(qe)?$e(qe):Ue()}),watch(()=>i.container,()=>{ze()}),provide(anchorKey,{ns:he,direction:i.direction,currentAnchor:V,addLink:_e,removeLink:Ce,handleClick:Ve}),t({scrollTo:$e}),(qe,Et)=>(openBlock(),createElementBlock("div",{ref_key:"anchorRef",ref:ie,class:normalizeClass(pe.value)},[qe.marker?(openBlock(),createElementBlock("div",{key:0,ref_key:"markerRef",ref:ae,class:normalizeClass(unref(he).e("marker")),style:normalizeStyle$1(re.value)},null,6)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(he).e("list"))},[renderSlot(qe.$slots,"default")],2)],2))}});var Anchor=_export_sfc(_sfc_main$F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor.vue"]]);const anchorLinkProps=buildProps({title:String,href:String}),_hoisted_1$u=["href"],_sfc_main$E=defineComponent({name:"ElAnchorLink",__name:"anchor-link",props:anchorLinkProps,setup(n){const t=n,r=ref(null),{ns:i,direction:g,currentAnchor:$,addLink:V,removeLink:re,handleClick:ie}=inject(anchorKey),ae=computed(()=>[i.e("link"),i.is("active",$.value===t.href)]),oe=le=>{ie(le,t.href)};return watch(()=>t.href,(le,ue)=>{nextTick(()=>{ue&&re(ue),le&&V({href:le,el:r.value})})}),onMounted(()=>{const{href:le}=t;le&&V({href:le,el:r.value})}),onBeforeUnmount(()=>{const{href:le}=t;le&&re(le)}),(le,ue)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(i).e("item"))},[createBaseVNode("a",{ref_key:"linkRef",ref:r,class:normalizeClass(ae.value),href:le.href,onClick:oe},[renderSlot(le.$slots,"default",{},()=>[createTextVNode(toDisplayString(le.title),1)])],10,_hoisted_1$u),le.$slots["sub-link"]&&unref(g)==="vertical"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).e("list"))},[renderSlot(le.$slots,"sub-link")],2)):createCommentVNode("v-if",!0)],2))}});var AnchorLink=_export_sfc(_sfc_main$E,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor-link.vue"]]);const ElAnchor=withInstall(Anchor,{AnchorLink}),ElAnchorLink=withNoopInstall(AnchorLink),defaultProps={label:"label",value:"value",disabled:"disabled"},segmentedProps=buildProps({direction:{type:definePropType(String),default:"horizontal"},options:{type:definePropType(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:definePropType(Object),default:()=>defaultProps},block:Boolean,size:useSizeProp,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...useAriaProps(["ariaLabel"])}),segmentedEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n)||isNumber$2(n)||isBoolean$1(n),[CHANGE_EVENT]:n=>isString$2(n)||isNumber$2(n)||isBoolean$1(n)},_hoisted_1$t=["id","aria-label","aria-labelledby"],_hoisted_2$m=["name","disabled","checked","onChange"],_sfc_main$D=defineComponent({name:"ElSegmented",__name:"segmented",props:segmentedProps,emits:segmentedEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("segmented"),$=useId(),V=useFormSize(),re=useFormDisabled(),{formItem:ie}=useFormItem(),{inputId:ae,isLabeledByFormItem:oe}=useFormItemInputId(r,{formItemContext:ie}),le=ref(null),ue=useActiveElement(),de=reactive({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),he=(qe,Et)=>{const kt=Ce(Et);i(UPDATE_MODEL_EVENT,kt),i(CHANGE_EVENT,kt),qe.target.checked=kt===r.modelValue},pe=computed(()=>({...defaultProps,...r.props})),_e=qe=>qe,Ce=qe=>isObject$6(qe)?qe[pe.value.value]:qe,xe=qe=>isObject$6(qe)?qe[pe.value.label]:qe,Ie=qe=>!!(re.value||isObject$6(qe)&&qe[pe.value.disabled]),Ne=qe=>r.modelValue===Ce(qe),Oe=qe=>r.options.find(Et=>Ce(Et)===qe),$e=qe=>[g.e("item"),g.is("selected",Ne(qe)),g.is("disabled",Ie(qe))],Ve=()=>{if(!le.value)return;const qe=le.value.querySelector(".is-selected"),Et=le.value.querySelector(".is-selected input");if(!qe||!Et){de.width=0,de.height=0,de.translateX=0,de.translateY=0,de.focusVisible=!1;return}de.isInit=!0,r.direction==="vertical"?(de.height=qe.offsetHeight,de.translateY=qe.offsetTop):(de.width=qe.offsetWidth,de.translateX=qe.offsetLeft);try{de.focusVisible=Et.matches(":focus-visible")}catch{}},Ue=computed(()=>[g.b(),g.m(V.value),g.is("block",r.block)]),Fe=computed(()=>({width:r.direction==="vertical"?"100%":`${de.width}px`,height:r.direction==="vertical"?`${de.height}px`:"100%",transform:r.direction==="vertical"?`translateY(${de.translateY}px)`:`translateX(${de.translateX}px)`,display:de.isInit?"block":"none"})),ze=computed(()=>[g.e("item-selected"),g.is("disabled",Ie(Oe(r.modelValue))),g.is("focus-visible",de.focusVisible)]),Pt=computed(()=>r.name||$.value);return useResizeObserver(le,Ve),watch(ue,Ve),watch(()=>r.modelValue,()=>{var qe;Ve(),r.validateEvent&&((qe=ie==null?void 0:ie.validate)==null||qe.call(ie,"change").catch(Et=>void 0))},{flush:"post"}),(qe,Et)=>qe.options.length?(openBlock(),createElementBlock("div",{key:0,id:unref(ae),ref_key:"segmentedRef",ref:le,class:normalizeClass(Ue.value),role:"radiogroup","aria-label":unref(oe)?void 0:qe.ariaLabel||"segmented","aria-labelledby":unref(oe)?unref(ie).labelId:void 0},[createBaseVNode("div",{class:normalizeClass([unref(g).e("group"),unref(g).m(qe.direction)])},[createBaseVNode("div",{style:normalizeStyle$1(Fe.value),class:normalizeClass(ze.value)},null,6),(openBlock(!0),createElementBlock(Fragment,null,renderList(qe.options,(kt,At)=>(openBlock(),createElementBlock("label",{key:At,class:normalizeClass($e(kt))},[createBaseVNode("input",{class:normalizeClass(unref(g).e("item-input")),type:"radio",name:Pt.value,disabled:Ie(kt),checked:Ne(kt),onChange:Dt=>he(Dt,kt)},null,42,_hoisted_2$m),createBaseVNode("div",{class:normalizeClass(unref(g).e("item-label"))},[renderSlot(qe.$slots,"default",{item:_e(kt)},()=>[createTextVNode(toDisplayString(xe(kt)),1)])],2)],2))),128))],2)],10,_hoisted_1$t)):createCommentVNode("v-if",!0)}});var Segmented=_export_sfc(_sfc_main$D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/segmented/src/segmented.vue"]]);const ElSegmented=withInstall(Segmented),filterOption=(n,t)=>{const r=n.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(r)},getMentionCtx=(n,t,r)=>{const{selectionEnd:i}=n;if(i===null)return;const g=n.value,$=castArray$1(t);let V=-1,re;for(let ie=i-1;ie>=0;--ie){const ae=g[ie];if(ae===r||ae===` `||ae==="\r"){V=ie;continue}if($.includes(ae)){const oe=V===-1?i:V;re={pattern:g.slice(ie+1,oe),start:ie+1,end:oe,prefix:ae,prefixIndex:ie,splitIndex:V,selectionEnd:i};break}}return re},getCursorPosition=(n,t={debug:!1,useSelectionEnd:!1})=>{const r=n.selectionStart!==null?n.selectionStart:0,i=n.selectionEnd!==null?n.selectionEnd:0,g=t.useSelectionEnd?i:r,$=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const ue=document.querySelector("#input-textarea-caret-position-mirror-div");ue!=null&&ue.parentNode&&ue.parentNode.removeChild(ue)}const V=document.createElement("div");V.id="input-textarea-caret-position-mirror-div",document.body.appendChild(V);const re=V.style,ie=window.getComputedStyle(n),ae=n.nodeName==="INPUT";re.whiteSpace=ae?"nowrap":"pre-wrap",ae||(re.wordWrap="break-word"),re.position="absolute",t.debug||(re.visibility="hidden"),$.forEach(ue=>{if(ae&&ue==="lineHeight")if(ie.boxSizing==="border-box"){const de=Number.parseInt(ie.height),he=Number.parseInt(ie.paddingTop)+Number.parseInt(ie.paddingBottom)+Number.parseInt(ie.borderTopWidth)+Number.parseInt(ie.borderBottomWidth),pe=he+Number.parseInt(ie.lineHeight);de>pe?re.lineHeight=`${de-he}px`:de===pe?re.lineHeight=ie.lineHeight:re.lineHeight="0"}else re.lineHeight=ie.height;else re[ue]=ie[ue]}),isFirefox()?n.scrollHeight>Number.parseInt(ie.height)&&(re.overflowY="scroll"):re.overflow="hidden",V.textContent=n.value.slice(0,Math.max(0,g)),ae&&V.textContent&&(V.textContent=V.textContent.replace(/\s/g," "));const oe=document.createElement("span");oe.textContent=n.value.slice(Math.max(0,g))||".",oe.style.position="relative",oe.style.left=`${-n.scrollLeft}px`,oe.style.top=`${-n.scrollTop}px`,V.appendChild(oe);const le={top:oe.offsetTop+Number.parseInt(ie.borderTopWidth),left:oe.offsetLeft+Number.parseInt(ie.borderLeftWidth),height:Number.parseInt(ie.fontSize)*1.5};return t.debug?oe.style.backgroundColor="#aaa":document.body.removeChild(V),le.left>=n.clientWidth&&(le.left=n.clientWidth),le},mentionProps=buildProps({...inputProps,options:{type:definePropType(Array),default:()=>[]},prefix:{type:definePropType([String,Array]),default:"@",validator:n=>isString$2(n)?n.length===1:n.every(t=>isString$2(t)&&t.length===1)},split:{type:String,default:" ",validator:n=>n.length===1},filterOption:{type:definePropType([Boolean,Function]),default:()=>filterOption,validator:n=>n===!1?!0:isFunction$4(n)},placement:{type:definePropType(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:definePropType(Function)},modelValue:String,loading:Boolean,popperClass:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,popperOptions:{type:definePropType(Object),default:()=>({})},props:{type:definePropType(Object),default:()=>mentionDefaultProps}}),mentionEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n),"whole-remove":(n,t)=>isString$2(n)&&isString$2(t),input:n=>isString$2(n),search:(n,t)=>isString$2(n)&&isString$2(t),select:(n,t)=>isObject$6(n)&&isString$2(t),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent},mentionDefaultProps={value:"value",label:"label",disabled:"disabled"},mentionDropdownProps=buildProps({options:{type:definePropType(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),mentionDropdownEmits={select:n=>isString$2(n.value)},_hoisted_1$s=["id","aria-disabled","aria-selected","onMousemove","onClick"],_sfc_main$C=defineComponent({name:"ElMentionDropdown",__name:"mention-dropdown",props:mentionDropdownProps,emits:mentionDropdownEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useNamespace("mention"),{t:V}=useLocale(),re=ref(-1),ie=ref(),ae=ref(),oe=ref(),le=(Ne,Oe)=>[$.be("dropdown","item"),$.is("hovering",re.value===Oe),$.is("disabled",Ne.disabled||i.disabled)],ue=Ne=>{Ne.disabled||i.disabled||g("select",Ne)},de=Ne=>{re.value=Ne},he=computed(()=>i.disabled||i.options.every(Ne=>Ne.disabled)),pe=computed(()=>i.options[re.value]),_e=()=>{pe.value&&g("select",pe.value)},Ce=Ne=>{const{options:Oe}=i;if(Oe.length===0||he.value)return;Ne==="next"?(re.value++,re.value===Oe.length&&(re.value=0)):Ne==="prev"&&(re.value--,re.value<0&&(re.value=Oe.length-1));const $e=Oe[re.value];if($e.disabled){Ce(Ne);return}nextTick(()=>xe($e))},xe=Ne=>{var Oe,$e,Ve,Ue;const{options:Fe}=i,ze=Fe.findIndex(qe=>qe.value===Ne.value),Pt=(Oe=ae.value)==null?void 0:Oe[ze];if(Pt){const qe=(Ve=($e=oe.value)==null?void 0:$e.querySelector)==null?void 0:Ve.call($e,`.${$.be("dropdown","wrap")}`);qe&&scrollIntoView(qe,Pt)}(Ue=ie.value)==null||Ue.handleScroll()};return watch(()=>i.options,()=>{he.value||i.options.length===0?re.value=-1:re.value=0},{immediate:!0}),t({hoveringIndex:re,navigateOptions:Ce,selectHoverOption:_e,hoverOption:pe}),(Ne,Oe)=>(openBlock(),createElementBlock("div",{ref_key:"dropdownRef",ref:oe,class:normalizeClass(unref($).b("dropdown"))},[Ne.$slots.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($).be("dropdown","header"))},[renderSlot(Ne.$slots,"header")],2)):createCommentVNode("v-if",!0),withDirectives(createVNode$1(unref(ElScrollbar),{id:Ne.contentId,ref_key:"scrollbarRef",ref:ie,tag:"ul","wrap-class":unref($).be("dropdown","wrap"),"view-class":unref($).be("dropdown","list"),role:"listbox","aria-label":Ne.ariaLabel,"aria-orientation":"vertical"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ne.options,($e,Ve)=>(openBlock(),createElementBlock("li",{id:`${Ne.contentId}-${Ve}`,ref_for:!0,ref_key:"optionRefs",ref:ae,key:Ve,class:normalizeClass(le($e,Ve)),role:"option","aria-disabled":$e.disabled||Ne.disabled||void 0,"aria-selected":re.value===Ve,onMousemove:Ue=>de(Ve),onClick:withModifiers(Ue=>ue($e),["stop"])},[renderSlot(Ne.$slots,"label",{item:$e,index:Ve},()=>{var Ue;return[createBaseVNode("span",null,toDisplayString((Ue=$e.label)!=null?Ue:$e.value),1)]})],42,_hoisted_1$s))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[vShow,Ne.options.length>0&&!Ne.loading]]),Ne.loading?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref($).be("dropdown","loading"))},[renderSlot(Ne.$slots,"loading",{},()=>[createTextVNode(toDisplayString(unref(V)("el.mention.loading")),1)])],2)):createCommentVNode("v-if",!0),Ne.$slots.footer?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref($).be("dropdown","footer"))},[renderSlot(Ne.$slots,"footer")],2)):createCommentVNode("v-if",!0)],2))}});var ElMentionDropdown=_export_sfc(_sfc_main$C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/mention/src/mention-dropdown.vue"]]);const _sfc_main$B=defineComponent({name:"ElMention",inheritAttrs:!1,__name:"mention",props:mentionProps,emits:mentionEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=computed(()=>pick$1(i,Object.keys(inputProps))),V=useNamespace("mention"),re=useFormDisabled(),ie=useId(),ae=ref(),oe=ref(),le=ref(),ue=ref(!1),de=ref(),he=ref(),pe=computed(()=>i.showArrow?i.placement:`${i.placement}-start`),_e=computed(()=>i.showArrow?["bottom","top"]:["bottom-start","top-start"]),Ce=computed(()=>({...mentionDefaultProps,...i.props})),xe=Lt=>{const jt={label:Lt[Ce.value.label],value:Lt[Ce.value.value],disabled:Lt[Ce.value.disabled]};return{...Lt,...jt}},Ie=computed(()=>i.options.map(xe)),Ne=computed(()=>{const{filterOption:Lt}=i;return!he.value||!Lt?Ie.value:Ie.value.filter(jt=>Lt(he.value.pattern,jt))}),Oe=computed(()=>ue.value&&(!!Ne.value.length||i.loading)),$e=computed(()=>{var Lt;return`${ie.value}-${(Lt=le.value)==null?void 0:Lt.hoveringIndex}`}),Ve=Lt=>{g(UPDATE_MODEL_EVENT,Lt),g(INPUT_EVENT,Lt),kt()},Ue=Lt=>{var jt,hn,vn,_n;if((jt=ae.value)!=null&&jt.isComposing)return;const wn=getEventCode(Lt);switch(wn){case EVENT_CODE.left:case EVENT_CODE.right:kt();break;case EVENT_CODE.up:case EVENT_CODE.down:if(!ue.value)return;Lt.preventDefault(),(hn=le.value)==null||hn.navigateOptions(wn===EVENT_CODE.up?"prev":"next");break;case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:if(!ue.value){i.type!=="textarea"&&kt();return}Lt.preventDefault(),(vn=le.value)!=null&&vn.hoverOption?(_n=le.value)==null||_n.selectHoverOption():ue.value=!1;break;case EVENT_CODE.esc:if(!ue.value)return;Lt.preventDefault(),ue.value=!1;break;case EVENT_CODE.backspace:if(i.whole&&he.value){const{splitIndex:bn,selectionEnd:Cn,pattern:Sn,prefixIndex:Tn,prefix:En}=he.value,kn=Et();if(!kn)return;const $n=kn.value,An=Ie.value.find(Ln=>Ln.value===Sn);if((isFunction$4(i.checkIsWhole)?i.checkIsWhole(Sn,En):An)&&bn!==-1&&bn+1===Cn){Lt.preventDefault();const Ln=$n.slice(0,Tn)+$n.slice(bn+1);g(UPDATE_MODEL_EVENT,Ln),g(INPUT_EVENT,Ln),g("whole-remove",Sn,En);const Nn=Tn;nextTick(()=>{kn.selectionStart=Nn,kn.selectionEnd=Nn,Dt()})}}}},{wrapperRef:Fe}=useFocusController(ae,{disabled:re,afterFocus(){kt()},beforeBlur(Lt){var jt;return(jt=oe.value)==null?void 0:jt.isFocusInsideContent(Lt)},afterBlur(){ue.value=!1}}),ze=()=>{kt()},Pt=Lt=>i.options.find(jt=>Lt.value===jt[Ce.value.value]),qe=Lt=>{if(!he.value)return;const jt=Et();if(!jt)return;const hn=jt.value,{split:vn}=i,_n=hn.slice(he.value.end),wn=_n.startsWith(vn),bn=`${Lt.value}${wn?"":vn}`,Cn=hn.slice(0,he.value.start)+bn+_n;g(UPDATE_MODEL_EVENT,Cn),g(INPUT_EVENT,Cn),g("select",Pt(Lt),he.value.prefix);const Sn=he.value.start+bn.length+(wn?1:0);nextTick(()=>{jt.selectionStart=Sn,jt.selectionEnd=Sn,jt.focus(),Dt()})},Et=()=>{var Lt,jt;return i.type==="textarea"?(Lt=ae.value)==null?void 0:Lt.textarea:(jt=ae.value)==null?void 0:jt.input},kt=()=>{setTimeout(()=>{At(),Dt(),nextTick(()=>{var Lt;return(Lt=oe.value)==null?void 0:Lt.updatePopper()})},0)},At=()=>{const Lt=Et();if(!Lt)return;const jt=getCursorPosition(Lt),hn=Lt.getBoundingClientRect(),vn=Fe.value.getBoundingClientRect();de.value={position:"absolute",width:0,height:`${jt.height}px`,left:`${jt.left+hn.left-vn.left}px`,top:`${jt.top+hn.top-vn.top}px`}},Dt=()=>{const Lt=Et();if(document.activeElement!==Lt){ue.value=!1;return}const{prefix:jt,split:hn}=i;if(he.value=getMentionCtx(Lt,jt,hn),he.value&&he.value.splitIndex===-1){ue.value=!0,g("search",he.value.pattern,he.value.prefix);return}ue.value=!1};return t({input:ae,tooltip:oe,dropdownVisible:Oe}),(Lt,jt)=>(openBlock(),createElementBlock("div",{ref_key:"wrapperRef",ref:Fe,class:normalizeClass(unref(V).b())},[createVNode$1(unref(ElInput),mergeProps(mergeProps($.value,Lt.$attrs),{ref_key:"elInputRef",ref:ae,"model-value":Lt.modelValue,disabled:unref(re),role:Oe.value?"combobox":void 0,"aria-activedescendant":Oe.value?$e.value||"":void 0,"aria-controls":Oe.value?unref(ie):void 0,"aria-expanded":Oe.value||void 0,"aria-label":Lt.ariaLabel,"aria-autocomplete":Oe.value?"none":void 0,"aria-haspopup":Oe.value?"listbox":void 0,onInput:Ve,onKeydown:Ue,onMousedown:ze}),createSlots({_:2},[renderList(Lt.$slots,(hn,vn)=>({name:vn,fn:withCtx(_n=>[renderSlot(Lt.$slots,vn,normalizeProps(guardReactiveProps(_n)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),createVNode$1(unref(ElTooltip),{ref_key:"tooltipRef",ref:oe,visible:Oe.value,"popper-class":[unref(V).e("popper"),Lt.popperClass],"popper-style":Lt.popperStyle,"popper-options":Lt.popperOptions,placement:pe.value,"fallback-placements":_e.value,effect:"light",pure:"",offset:Lt.offset,"show-arrow":Lt.showArrow},{default:withCtx(()=>[createBaseVNode("div",{style:normalizeStyle$1(de.value)},null,4)]),content:withCtx(()=>[createVNode$1(ElMentionDropdown,{ref_key:"dropdownRef",ref:le,options:Ne.value,disabled:unref(re),loading:Lt.loading,"content-id":unref(ie),"aria-label":Lt.ariaLabel,onSelect:qe,onClick:jt[0]||(jt[0]=withModifiers(hn=>{var vn;return(vn=ae.value)==null?void 0:vn.focus()},["stop"]))},createSlots({_:2},[renderList(Lt.$slots,(hn,vn)=>({name:vn,fn:withCtx(_n=>[renderSlot(Lt.$slots,vn,normalizeProps(guardReactiveProps(_n)))])}))]),1032,["options","disabled","loading","content-id","aria-label"])]),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var Mention=_export_sfc(_sfc_main$B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/mention/src/mention.vue"]]);const ElMention=withInstall(Mention),splitterProps=buildProps({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),splitterEmits={resizeStart:(n,t)=>!0,resize:(n,t)=>!0,resizeEnd:(n,t)=>!0,collapse:(n,t,r)=>!0},splitterRootContextKey=Symbol("splitterRootContextKey");function useContainer(n){const t=ref(),{width:r,height:i}=useElementSize(t),g=computed(()=>n.value==="horizontal"?r.value:i.value);return{containerEl:t,containerSize:g}}function getPct(n){return Number(n.slice(0,-1))/100}function getPx(n){return Number(n.slice(0,-2))}function isPct(n){return isString$2(n)&&n.endsWith("%")}function isPx(n){return isString$2(n)&&n.endsWith("px")}function useSize(n,t){const r=computed(()=>n.value.map(re=>re.size)),i=computed(()=>n.value.length),g=ref([]);watch([r,i,t],()=>{var re;let ie=[],ae=0;for(let le=0;lele+(ue||0),0);if(oe>1||!ae){const le=1/oe;ie=ie.map(ue=>ue===void 0?0:ue*le)}else{const le=(1-oe)/ae;ie=ie.map(ue=>ue===void 0?le:ue)}g.value=ie});const $=re=>re*t.value,V=computed(()=>g.value.map($));return{percentSizes:g,pxSizes:V}}function useResize(n,t,r,i){const g=_e=>_e*t.value||0;function $(_e,Ce){return isPct(_e)?g(getPct(_e)):isPx(_e)?getPx(_e):_e??Ce}const V=ref(0),re=ref(null);let ie=[],ae=NOOP;const oe=computed(()=>n.value.map(_e=>[_e.min,_e.max]));watch(i,()=>{if(V.value){const _e=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(_e)}});const le=_e=>{V.value=0,re.value={index:_e,confirmed:!1},ie=r.value},ue=(_e,Ce)=>{var xe,Ie;let Ne=null;if((!re.value||!re.value.confirmed)&&Ce!==0){if(Ce>0)Ne=_e,re.value={index:_e,confirmed:!0};else for(let Et=_e;Et>=0;Et-=1)if(ie[Et]>0){Ne=Et,re.value={index:Et,confirmed:!0};break}}const Oe=(Ie=Ne??((xe=re.value)==null?void 0:xe.index))!=null?Ie:_e,$e=[...ie],Ve=Oe+1,Ue=$(oe.value[Oe][0],0),Fe=$(oe.value[Ve][0],0),ze=$(oe.value[Oe][1],t.value||0),Pt=$(oe.value[Ve][1],t.value||0);let qe=Ce;$e[Oe]+qeze&&(qe=ze-$e[Oe]),$e[Ve]-qe>Pt&&(qe=$e[Ve]-Pt),$e[Oe]+=qe,$e[Ve]-=qe,V.value=qe,ae=()=>{n.value.forEach((Et,kt)=>{Et.size=$e[kt]}),ae=NOOP},i.value||ae()},de=()=>{i.value&&ae(),V.value=0,re.value=null,ie=[]},he=[];return{lazyOffset:V,onMoveStart:le,onMoving:ue,onMoveEnd:de,movingIndex:re,onCollapse:(_e,Ce)=>{he.length||he.push(...r.value);const xe=r.value,Ie=Ce==="start"?_e:_e+1,Ne=Ce==="start"?_e+1:_e,Oe=xe[Ie],$e=xe[Ne];if(Oe!==0&&$e!==0)xe[Ie]=0,xe[Ne]+=Oe,he[_e]=Oe;else{const Ve=Oe+$e,Ue=he[_e],Fe=Ve-Ue;xe[Ne]=Ue,xe[Ie]=Fe}n.value.forEach((Ve,Ue)=>{Ve.size=xe[Ue]})}}}const _sfc_main$A=defineComponent({name:"ElSplitter",__name:"splitter",props:splitterProps,emits:splitterEmits,setup(n,{emit:t}){const r=useNamespace("splitter"),i=t,g=n,$=toRef$1(g,"layout"),V=toRef$1(g,"lazy"),{containerEl:re,containerSize:ie}=useContainer($),{removeChild:ae,children:oe,addChild:le,ChildrenSorter:ue}=useOrderedChildren(getCurrentInstance(),"ElSplitterPanel");watch(oe,()=>{_e.value=null,oe.value.forEach((ze,Pt)=>{ze.setIndex(Pt)})});const{percentSizes:de,pxSizes:he}=useSize(oe,ie),{lazyOffset:pe,movingIndex:_e,onMoveStart:Ce,onMoving:xe,onMoveEnd:Ie,onCollapse:Ne}=useResize(oe,ie,he,V),Oe=computed(()=>({[r.cssVarBlockName("bar-offset")]:V.value?`${pe.value}px`:void 0}));return provide(splitterRootContextKey,reactive({panels:oe,percentSizes:de,pxSizes:he,layout:$,lazy:V,movingIndex:_e,containerSize:ie,onMoveStart:ze=>{Ce(ze),i("resizeStart",ze,he.value)},onMoving:(ze,Pt)=>{xe(ze,Pt),V.value||i("resize",ze,he.value)},onMoveEnd:async ze=>{Ie(),await nextTick(),i("resizeEnd",ze,he.value)},onCollapse:(ze,Pt)=>{Ne(ze,Pt),i("collapse",ze,Pt,he.value)},registerPanel:le,unregisterPanel:ae})),(ze,Pt)=>(openBlock(),createElementBlock("div",{ref_key:"containerEl",ref:re,class:normalizeClass([unref(r).b(),unref(r).e($.value)]),style:normalizeStyle$1(Oe.value)},[renderSlot(ze.$slots,"default"),createVNode$1(unref(ue)),createCommentVNode(" Prevent iframe touch events from breaking "),unref(_e)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(r).e("mask"),unref(r).e(`mask-${$.value}`)])},null,2)):createCommentVNode("v-if",!0)],6))}});var Splitter=_export_sfc(_sfc_main$A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/splitter.vue"]]);function getCollapsible(n){return n&&isObject$6(n)?n:{start:!!n,end:!!n}}function isCollapsible(n,t,r,i){return!!(n!=null&&n.collapsible.end&&t>0||r!=null&&r.collapsible.start&&i===0&&t>0)}const _sfc_main$z=defineComponent({name:"ElSplitterBar",__name:"split-bar",props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(n,{emit:t}){const r=useNamespace("splitter-bar"),i=n,g=t,$=computed(()=>i.layout==="horizontal"),V=computed(()=>$.value?{width:0}:{height:0}),re=computed(()=>({width:$.value?"16px":"100%",height:$.value?"100%":"16px",cursor:i.resizable?$.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),ie=computed(()=>{const xe=r.e("dragger");return{[`${xe}-horizontal`]:$.value,[`${xe}-vertical`]:!$.value,[`${xe}-active`]:!!ae.value}}),ae=ref(null),oe=xe=>{i.resizable&&(ae.value=[xe.pageX,xe.pageY],g("moveStart",i.index),window.addEventListener("mouseup",he),window.addEventListener("mousemove",ue))},le=xe=>{if(i.resizable&&xe.touches.length===1){xe.preventDefault();const Ie=xe.touches[0];ae.value=[Ie.pageX,Ie.pageY],g("moveStart",i.index),window.addEventListener("touchend",pe),window.addEventListener("touchmove",de)}},ue=xe=>{const{pageX:Ie,pageY:Ne}=xe,Oe=Ie-ae.value[0],$e=Ne-ae.value[1],Ve=$.value?Oe:$e;g("moving",i.index,Ve)},de=xe=>{if(xe.touches.length===1){xe.preventDefault();const Ie=xe.touches[0],Ne=Ie.pageX-ae.value[0],Oe=Ie.pageY-ae.value[1],$e=$.value?Ne:Oe;g("moving",i.index,$e)}},he=()=>{ae.value=null,window.removeEventListener("mouseup",he),window.removeEventListener("mousemove",ue),g("moveEnd",i.index)},pe=()=>{ae.value=null,window.removeEventListener("touchend",pe),window.removeEventListener("touchmove",de),g("moveEnd",i.index)},_e=computed(()=>$.value?arrow_left_default:arrow_up_default),Ce=computed(()=>$.value?arrow_right_default:arrow_down_default);return(xe,Ie)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(r).b()]),style:normalizeStyle$1(V.value)},[n.startCollapsible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(r).e("collapse-icon"),unref(r).e(`${n.layout}-collapse-icon-start`)]),onClick:Ie[0]||(Ie[0]=Ne=>g("collapse",n.index,"start"))},[renderSlot(xe.$slots,"start-collapsible",{},()=>[(openBlock(),createBlock(resolveDynamicComponent(_e.value),{style:{width:"12px",height:"12px"}}))])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([unref(r).e("dragger"),ie.value,unref(r).is("disabled",!n.resizable),unref(r).is("lazy",n.resizable&&n.lazy)]),style:normalizeStyle$1(re.value),onMousedown:oe,onTouchstart:le},null,38),n.endCollapsible?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(r).e("collapse-icon"),unref(r).e(`${n.layout}-collapse-icon-end`)]),onClick:Ie[1]||(Ie[1]=Ne=>g("collapse",n.index,"end"))},[renderSlot(xe.$slots,"end-collapsible",{},()=>[(openBlock(),createBlock(resolveDynamicComponent(Ce.value),{style:{width:"12px",height:"12px"}}))])],2)):createCommentVNode("v-if",!0)],6))}});var SplitBar=_export_sfc(_sfc_main$z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/split-bar.vue"]]);const splitterPanelProps=buildProps({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),splitterPanelEmits={"update:size":n=>typeof n=="number"||typeof n=="string"},COMPONENT_NAME="ElSplitterPanel",_sfc_main$y=defineComponent({name:COMPONENT_NAME,__name:"split-panel",props:splitterPanelProps,emits:splitterPanelEmits,setup(n,{expose:t,emit:r}){const i=useNamespace("splitter-panel"),g=n,$=r,V=inject(splitterRootContextKey);V||throwError$1(COMPONENT_NAME,"usage: ");const{panels:re,layout:ie,lazy:ae,containerSize:oe,pxSizes:le}=toRefs(V),{registerPanel:ue,unregisterPanel:de,onCollapse:he,onMoveEnd:pe,onMoveStart:_e,onMoving:Ce}=V,xe=ref(),Ie=getCurrentInstance(),Ne=Ie.uid,Oe=ref(0),$e=computed(()=>re.value[Oe.value]),Ve=jt=>{Oe.value=jt},Ue=computed(()=>{var jt;return $e.value&&(jt=le.value[Oe.value])!=null?jt:0}),Fe=computed(()=>{var jt;return $e.value&&(jt=le.value[Oe.value+1])!=null?jt:0}),ze=computed(()=>$e.value?re.value[Oe.value+1]:null),Pt=computed(()=>{var jt;return ze.value?g.resizable&&((jt=ze.value)==null?void 0:jt.resizable)&&(Ue.value!==0||!g.min)&&(Fe.value!==0||!ze.value.min):!1}),qe=computed(()=>$e.value?Oe.value!==re.value.length-1:!1),Et=computed(()=>isCollapsible($e.value,Ue.value,ze.value,Fe.value)),kt=computed(()=>isCollapsible(ze.value,Fe.value,$e.value,Ue.value));function At(jt){return isPct(jt)?getPct(jt)*oe.value||0:isPx(jt)?getPx(jt):jt??0}let Dt=!1;watch(()=>g.size,()=>{if(!Dt&&$e.value){if(!oe.value){$e.value.size=g.size;return}const jt=At(g.size),hn=At(g.max),vn=At(g.min),_n=Math.min(Math.max(jt,vn||0),hn||jt);_n!==jt&&$("update:size",_n),$e.value.size=_n}}),watch(()=>{var jt;return(jt=$e.value)==null?void 0:jt.size},jt=>{jt!==g.size&&(Dt=!0,$("update:size",jt),nextTick(()=>Dt=!1))}),watch(()=>g.resizable,jt=>{$e.value&&($e.value.resizable=jt)});const Lt=reactive({el:xe.value,uid:Ne,getVnode:()=>Ie.vnode,setIndex:Ve,...g,collapsible:computed(()=>getCollapsible(g.collapsible))});return ue(Lt),onBeforeUnmount(()=>de(Lt)),t({splitterPanelRef:xe}),(jt,hn)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",mergeProps({ref_key:"panelEl",ref:xe,class:[unref(i).b()],style:{flexBasis:`${Ue.value}px`}},jt.$attrs),[renderSlot(jt.$slots,"default")],16),qe.value?(openBlock(),createBlock(SplitBar,{key:0,index:Oe.value,layout:unref(ie),lazy:unref(ae),resizable:Pt.value,"start-collapsible":Et.value,"end-collapsible":kt.value,onMoveStart:unref(_e),onMoving:unref(Ce),onMoveEnd:unref(pe),onCollapse:unref(he)},{"start-collapsible":withCtx(()=>[renderSlot(jt.$slots,"start-collapsible")]),"end-collapsible":withCtx(()=>[renderSlot(jt.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):createCommentVNode("v-if",!0)],64))}});var SplitPanel=_export_sfc(_sfc_main$y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/split-panel.vue"]]);const ElSplitter=withInstall(Splitter,{SplitPanel}),ElSplitterPanel=withNoopInstall(SplitPanel);var Components=[ElAffix,ElAlert,ElAutocomplete,ElAutoResizer,ElAvatar,ElAvatarGroup,ElBacktop,ElBadge,ElBreadcrumb,ElBreadcrumbItem,ElButton,ElButtonGroup$1,ElCalendar,ElCard,ElCarousel,ElCarouselItem,ElCascader,ElCascaderPanel,ElCheckTag,ElCheckbox,ElCheckboxButton,ElCheckboxGroup,ElCol,ElCollapse,ElCollapseItem,ElCollapseTransition,ElColorPickerPanel,ElColorPicker,ElConfigProvider,ElContainer,ElAside,ElFooter,ElHeader,ElMain,ElDatePicker,ElDatePickerPanel,ElDescriptions,ElDescriptionsItem,ElDialog,ElDivider,ElDrawer,ElDropdown,ElDropdownItem,ElDropdownMenu,ElEmpty,ElForm,ElFormItem,ElIcon,ElImage,ElImageViewer,ElInput,ElInputNumber,ElInputTag,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,ElTransfer,ElTree,ElTreeSelect,ElTreeV2,ElUpload,ElWatermark,ElTour,ElTourStep,ElAnchor,ElAnchorLink,ElSegmented,ElMention,ElSplitter,ElSplitterPanel];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=(n,t)=>Object.entries(attributes).reduce((r,[i,g])=>{var $,V;const{type:re,default:ie}=g,ae=n.getAttribute(`infinite-scroll-${i}`);let oe=(V=($=t[ae])!=null?$:ae)!=null?V:ie;return oe=oe==="false"?!1:oe,oe=re(oe),r[i]=Number.isNaN(oe)?ie:oe,r},{}),destroyObserver=n=>{const{observer:t}=n[SCOPE];t&&(t.disconnect(),delete n[SCOPE].observer)},handleScroll$1=(n,t)=>{const{container:r,containerEl:i,instance:g,observer:$,lastScrollTop:V}=n[SCOPE],{disabled:re,distance:ie}=getScrollOptions(n,g),{clientHeight:ae,scrollHeight:oe,scrollTop:le}=i,ue=le-V;if(n[SCOPE].lastScrollTop=le,$||re||ue<0)return;let de=!1;if(r===n)de=oe-(ae+le)<=ie;else{const{clientTop:he,scrollHeight:pe}=n,_e=getOffsetTopDistance(n,i);de=le+ae>=_e+he+pe-ie}de&&t.call(g)};function checkFull(n,t){const{containerEl:r,instance:i}=n[SCOPE],{disabled:g}=getScrollOptions(n,i);g||r.clientHeight===0||(r.scrollHeight<=r.clientHeight?t.call(i):destroyObserver(n))}const InfiniteScroll={async mounted(n,t){const{instance:r,value:i}=t;useDeprecated({scope:SCOPE,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),isFunction$4(i)||throwError$1(SCOPE,"'v-infinite-scroll' binding value must be a function"),await nextTick();const{delay:g,immediate:$}=getScrollOptions(n,r),V=getScrollContainer(n,!0),re=V===window?document.documentElement:V,ie=throttle$3(handleScroll$1.bind(null,n,i),g);if(V){if(n[SCOPE]={instance:r,container:V,containerEl:re,delay:g,cb:i,onScroll:ie,lastScrollTop:re.scrollTop},$){const ae=new MutationObserver(throttle$3(checkFull.bind(null,n,i),CHECK_INTERVAL));n[SCOPE].observer=ae,ae.observe(n,{childList:!0,subtree:!0}),checkFull(n,i)}V.addEventListener("scroll",ie)}},unmounted(n){if(!n[SCOPE])return;const{container:t,onScroll:r}=n[SCOPE];t==null||t.removeEventListener("scroll",r),destroyObserver(n)},async updated(n){if(!n[SCOPE])await nextTick();else{const{containerEl:t,cb:r,observer:i}=n[SCOPE];t.clientHeight&&i&&checkFull(n,r)}}},_InfiniteScroll=InfiniteScroll;_InfiniteScroll.install=n=>{n.directive("InfiniteScroll",_InfiniteScroll)};const ElInfiniteScroll=_InfiniteScroll;function createLoadingComponent(n,t){let r;const i=ref(!1),g=reactive({...n,originalPosition:"",originalOverflow:"",visible:!1});function $(de){g.text=de}function V(){const de=g.parent,he=ue.ns;if(!de.vLoadingAddClassList){let pe=de.getAttribute("loading-number");pe=Number.parseInt(pe)-1,pe?de.setAttribute("loading-number",pe.toString()):(removeClass(de,he.bm("parent","relative")),de.removeAttribute("loading-number")),removeClass(de,he.bm("parent","hidden"))}re(),le.unmount()}function re(){var de,he;(he=(de=ue.$el)==null?void 0:de.parentNode)==null||he.removeChild(ue.$el)}function ie(){var de;n.beforeClose&&!n.beforeClose()||(i.value=!0,clearTimeout(r),r=setTimeout(ae,400),g.visible=!1,(de=n.closed)==null||de.call(n))}function ae(){if(!i.value)return;const de=g.parent;i.value=!1,de.vLoadingAddClassList=void 0,V()}const le=createApp(defineComponent({name:"ElLoading",setup(de,{expose:he}){const{ns:pe,zIndex:_e}=useGlobalComponentSettings("loading");return he({ns:pe,zIndex:_e}),()=>{const Ce=g.spinner||g.svg,xe=h$1("svg",{class:"circular",viewBox:g.svgViewBox?g.svgViewBox:"0 0 50 50",...Ce?{innerHTML:Ce}:{}},[h$1("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),Ie=g.text?h$1("p",{class:pe.b("text")},[g.text]):void 0;return h$1(Transition,{name:pe.b("fade"),onAfterLeave:ae},{default:withCtx(()=>[withDirectives(createVNode$1("div",{style:{backgroundColor:g.background||""},class:[pe.b("mask"),g.customClass,pe.is("fullscreen",g.fullscreen)]},[h$1("div",{class:pe.b("spinner")},[xe,Ie])]),[[vShow,g.visible]])])})}}}));Object.assign(le._context,t??{});const ue=le.mount(document.createElement("div"));return{...toRefs(g),setText:$,removeElLoadingChild:re,close:ie,handleAfterLeave:ae,vm:ue,get $el(){return ue.$el}}}let fullscreenInstance;const Loading=function(n={},t){if(!isClient)return;const r=resolveOptions(n);if(r.fullscreen&&fullscreenInstance)return fullscreenInstance;const i=createLoadingComponent({...r,closed:()=>{var $;($=r.closed)==null||$.call(r),r.fullscreen&&(fullscreenInstance=void 0)}},t??Loading._context);addStyle(r,r.parent,i),addClassList(r,r.parent,i),r.parent.vLoadingAddClassList=()=>addClassList(r,r.parent,i);let g=r.parent.getAttribute("loading-number");return g?g=`${Number.parseInt(g)+1}`:g="1",r.parent.setAttribute("loading-number",g),r.parent.appendChild(i.$el),nextTick(()=>i.visible.value=r.visible),r.fullscreen&&(fullscreenInstance=i),i},resolveOptions=n=>{var t,r,i,g;let $;return isString$2(n.target)?$=(t=document.querySelector(n.target))!=null?t:document.body:$=n.target||document.body,{parent:$===document.body||n.body?document.body:$,background:n.background||"",svg:n.svg||"",svgViewBox:n.svgViewBox||"",spinner:n.spinner||!1,text:n.text||"",fullscreen:$===document.body&&((r=n.fullscreen)!=null?r:!0),lock:(i=n.lock)!=null?i:!1,customClass:n.customClass||"",visible:(g=n.visible)!=null?g:!0,beforeClose:n.beforeClose,closed:n.closed,target:$}},addStyle=async(n,t,r)=>{const{nextZIndex:i}=r.vm.zIndex||r.vm._.exposed.zIndex,g={};if(n.fullscreen)r.originalPosition.value=getStyle$1(document.body,"position"),r.originalOverflow.value=getStyle$1(document.body,"overflow"),g.zIndex=i();else if(n.parent===document.body){r.originalPosition.value=getStyle$1(document.body,"position"),await nextTick();for(const $ of["top","left"]){const V=$==="top"?"scrollTop":"scrollLeft";g[$]=`${n.target.getBoundingClientRect()[$]+document.body[V]+document.documentElement[V]-Number.parseInt(getStyle$1(document.body,`margin-${$}`),10)}px`}for(const $ of["height","width"])g[$]=`${n.target.getBoundingClientRect()[$]}px`}else r.originalPosition.value=getStyle$1(t,"position");for(const[$,V]of Object.entries(g))r.$el.style[$]=V},addClassList=(n,t,r)=>{const i=r.vm.ns||r.vm._.exposed.ns;["absolute","fixed","sticky"].includes(r.originalPosition.value)?removeClass(t,i.bm("parent","relative")):addClass(t,i.bm("parent","relative")),n.fullscreen&&n.lock?addClass(t,i.bm("parent","hidden")):removeClass(t,i.bm("parent","hidden"))};Loading._context=null;const INSTANCE_KEY=Symbol("ElLoading"),getAttributeName=n=>`element-loading-${hyphenate(n)}`,createInstance$1=(n,t)=>{var r,i,g,$;const V=t.instance,re=de=>isObject$6(t.value)?t.value[de]:void 0,ie=de=>{const he=isString$2(de)&&(V==null?void 0:V[de])||de;return ref(he)},ae=de=>ie(re(de)||n.getAttribute(getAttributeName(de))),oe=(r=re("fullscreen"))!=null?r:t.modifiers.fullscreen,le={text:ae("text"),svg:ae("svg"),svgViewBox:ae("svgViewBox"),spinner:ae("spinner"),background:ae("background"),customClass:ae("customClass"),fullscreen:oe,target:(i=re("target"))!=null?i:oe?void 0:n,body:(g=re("body"))!=null?g:t.modifiers.body,lock:($=re("lock"))!=null?$:t.modifiers.lock},ue=Loading(le);ue._context=vLoading._context,n[INSTANCE_KEY]={options:le,instance:ue}},updateOptions=(n,t)=>{for(const r of Object.keys(n))isRef(n[r])&&(n[r].value=t[r])},vLoading={mounted(n,t){t.value&&createInstance$1(n,t)},updated(n,t){const r=n[INSTANCE_KEY];if(!t.value){r==null||r.instance.close(),n[INSTANCE_KEY]=null;return}r?updateOptions(r.options,isObject$6(t.value)?t.value:{text:n.getAttribute(getAttributeName("text")),svg:n.getAttribute(getAttributeName("svg")),svgViewBox:n.getAttribute(getAttributeName("svgViewBox")),spinner:n.getAttribute(getAttributeName("spinner")),background:n.getAttribute(getAttributeName("background")),customClass:n.getAttribute(getAttributeName("customClass"))}):createInstance$1(n,t)},unmounted(n){var t;(t=n[INSTANCE_KEY])==null||t.instance.close(),n[INSTANCE_KEY]=null}};vLoading._context=null;const ElLoading={install(n){Loading._context=n._context,vLoading._context=n._context,n.directive("loading",vLoading),n.config.globalProperties.$loading=Loading},directive:vLoading,service:Loading},messageTypes=["primary","success","info","warning","error"],messagePlacement=["top","top-left","top-right","bottom","bottom-left","bottom-right"],MESSAGE_DEFAULT_PLACEMENT="top",messageDefaults=mutable({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:isClient?document.body:void 0}),messageProps=buildProps({customClass:{type:String,default:messageDefaults.customClass},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),default:messageDefaults.onClose},showClose:{type:Boolean,default:messageDefaults.showClose},type:{type:String,values:messageTypes,default:messageDefaults.type},plain:{type:Boolean,default:messageDefaults.plain},offset:{type:Number,default:messageDefaults.offset},placement:{type:String,values:messagePlacement,default:messageDefaults.placement},zIndex:{type:Number,default:messageDefaults.zIndex},grouping:{type:Boolean,default:messageDefaults.grouping},repeatNum:{type:Number,default:messageDefaults.repeatNum}}),messageEmits={destroy:()=>!0},placementInstances=shallowReactive({}),getOrCreatePlacementInstances=n=>(placementInstances[n]||(placementInstances[n]=shallowReactive([])),placementInstances[n]),getInstance=(n,t)=>{const r=placementInstances[t]||[],i=r.findIndex(V=>V.id===n),g=r[i];let $;return i>0&&($=r[i-1]),{current:g,prev:$}},getLastOffset=(n,t)=>{const{prev:r}=getInstance(n,t);return r?r.vm.exposed.bottom.value:0},getOffsetOrSpace=(n,t,r)=>(placementInstances[r]||[]).findIndex($=>$.id===n)>0?16:t,_hoisted_1$r=["id"],_hoisted_2$l=["innerHTML"],_sfc_main$x=defineComponent({name:"ElMessage",__name:"message",props:messageProps,emits:messageEmits,setup(n,{expose:t,emit:r}){const{Close:i}=TypeComponents,g=n,$=r,V=ref(!1),{ns:re,zIndex:ie}=useGlobalComponentSettings("message"),{currentZIndex:ae,nextZIndex:oe}=ie,le=ref(),ue=ref(!1),de=ref(0);let he;const pe=computed(()=>g.type?g.type==="error"?"danger":g.type:"info"),_e=computed(()=>{const Et=g.type;return{[re.bm("icon",Et)]:Et&&TypeComponentsMap[Et]}}),Ce=computed(()=>g.icon||TypeComponentsMap[g.type]||""),xe=computed(()=>g.placement||MESSAGE_DEFAULT_PLACEMENT),Ie=computed(()=>getLastOffset(g.id,xe.value)),Ne=computed(()=>getOffsetOrSpace(g.id,g.offset,xe.value)+Ie.value),Oe=computed(()=>de.value+Ne.value),$e=computed(()=>xe.value.includes("left")?re.is("left"):xe.value.includes("right")?re.is("right"):re.is("center")),Ve=computed(()=>xe.value.startsWith("top")?"top":"bottom"),Ue=computed(()=>({[Ve.value]:`${Ne.value}px`,zIndex:ae.value}));function Fe(){g.duration!==0&&({stop:he}=useTimeoutFn(()=>{Pt()},g.duration))}function ze(){he==null||he()}function Pt(){ue.value=!1,nextTick(()=>{var Et;V.value||((Et=g.onClose)==null||Et.call(g),$("destroy"))})}function qe(Et){getEventCode(Et)===EVENT_CODE.esc&&Pt()}return onMounted(()=>{Fe(),oe(),ue.value=!0}),watch(()=>g.repeatNum,()=>{ze(),Fe()}),useEventListener(document,"keydown",qe),useResizeObserver(le,()=>{de.value=le.value.getBoundingClientRect().height}),t({visible:ue,bottom:Oe,close:Pt}),(Et,kt)=>(openBlock(),createBlock(Transition,{name:unref(re).b("fade"),onBeforeEnter:kt[0]||(kt[0]=At=>V.value=!0),onBeforeLeave:Et.onClose,onAfterLeave:kt[1]||(kt[1]=At=>Et.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:Et.id,ref_key:"messageRef",ref:le,class:normalizeClass([unref(re).b(),{[unref(re).m(Et.type)]:Et.type},unref(re).is("closable",Et.showClose),unref(re).is("plain",Et.plain),unref(re).is("bottom",Ve.value==="bottom"),$e.value,Et.customClass]),style:normalizeStyle$1(Ue.value),role:"alert",onMouseenter:ze,onMouseleave:Fe},[Et.repeatNum>1?(openBlock(),createBlock(unref(ElBadge),{key:0,value:Et.repeatNum,type:pe.value,class:normalizeClass(unref(re).e("badge"))},null,8,["value","type","class"])):createCommentVNode("v-if",!0),Ce.value?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(re).e("icon"),_e.value])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ce.value)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),renderSlot(Et.$slots,"default",{},()=>[Et.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(re).e("content")),innerHTML:Et.message},null,10,_hoisted_2$l)],2112)):(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(re).e("content"))},toDisplayString(Et.message),3))]),Et.showClose?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(re).e("closeBtn")),onClick:withModifiers(Pt,["stop"])},{default:withCtx(()=>[createVNode$1(unref(i))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],46,_hoisted_1$r),[[vShow,ue.value]])]),_:3},8,["name","onBeforeLeave"]))}});var MessageConstructor=_export_sfc(_sfc_main$x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let seed$1=1;const normalizeAppendTo=n=>{if(!n.appendTo)n.appendTo=document.body;else if(isString$2(n.appendTo)){let r=document.querySelector(n.appendTo);isElement$1(r)||(r=document.body),n.appendTo=r}},normalizePlacement=n=>{!n.placement&&isString$2(messageConfig.placement)&&messageConfig.placement&&(n.placement=messageConfig.placement),n.placement||(n.placement=MESSAGE_DEFAULT_PLACEMENT),messagePlacement.includes(n.placement)||(`${n.placement}${MESSAGE_DEFAULT_PLACEMENT}`,n.placement=MESSAGE_DEFAULT_PLACEMENT)},normalizeOptions=n=>{const t=!n||isString$2(n)||isVNode(n)||isFunction$4(n)?{message:n}:n,r={...messageDefaults,...t};return normalizeAppendTo(r),normalizePlacement(r),isBoolean$1(messageConfig.grouping)&&!r.grouping&&(r.grouping=messageConfig.grouping),isNumber$2(messageConfig.duration)&&r.duration===3e3&&(r.duration=messageConfig.duration),isNumber$2(messageConfig.offset)&&r.offset===16&&(r.offset=messageConfig.offset),isBoolean$1(messageConfig.showClose)&&!r.showClose&&(r.showClose=messageConfig.showClose),isBoolean$1(messageConfig.plain)&&!r.plain&&(r.plain=messageConfig.plain),r},closeMessage=n=>{const t=n.props.placement||MESSAGE_DEFAULT_PLACEMENT,r=placementInstances[t],i=r.indexOf(n);if(i===-1)return;r.splice(i,1);const{handler:g}=n;g.close()},createMessage=({appendTo:n,...t},r)=>{const i=`message_${seed$1++}`,g=t.onClose,$=document.createElement("div"),V={...t,id:i,onClose:()=>{g==null||g(),closeMessage(oe)},onDestroy:()=>{render$1(null,$)}},re=createVNode$1(MessageConstructor,V,isFunction$4(V.message)||isVNode(V.message)?{default:isFunction$4(V.message)?V.message:()=>V.message}:null);re.appContext=r||message._context,render$1(re,$),n.appendChild($.firstElementChild);const ie=re.component,oe={id:i,vnode:re,vm:ie,handler:{close:()=>{ie.exposed.close()}},props:re.component.props};return oe},message=(n={},t)=>{if(!isClient)return{close:()=>{}};const r=normalizeOptions(n),i=getOrCreatePlacementInstances(r.placement||MESSAGE_DEFAULT_PLACEMENT);if(r.grouping&&i.length){const $=i.find(({vnode:V})=>{var re;return((re=V.props)==null?void 0:re.message)===r.message});if($)return $.props.repeatNum+=1,$.props.type=r.type,$.handler}if(isNumber$2(messageConfig.max)&&i.length>=messageConfig.max)return{close:()=>{}};const g=createMessage(r,t);return i.push(g),g.handler};messageTypes.forEach(n=>{message[n]=(t={},r)=>{const i=normalizeOptions(t);return message({...i,type:n},r)}});function closeAll$1(n){for(const t in placementInstances)if(hasOwn$1(placementInstances,t)){const r=[...placementInstances[t]];for(const i of r)(!n||n===i.props.type)&&i.handler.close()}}function closeAllByPlacement(n){if(!placementInstances[n])return;[...placementInstances[n]].forEach(r=>r.handler.close())}message.closeAll=closeAll$1;message.closeAllByPlacement=closeAllByPlacement;message._context=null;const ElMessage=withInstallFunction(message,"$message"),FOCUSABLE_CHILDREN="_trap-focus-children",FOCUS_STACK=[],FOCUS_HANDLER=n=>{if(FOCUS_STACK.length===0)return;const t=getEventCode(n),r=FOCUS_STACK[FOCUS_STACK.length-1][FOCUSABLE_CHILDREN];if(r.length>0&&t===EVENT_CODE.tab){if(r.length===1){n.preventDefault(),document.activeElement!==r[0]&&r[0].focus();return}const i=n.shiftKey,g=n.target===r[0],$=n.target===r[r.length-1];g&&i&&(n.preventDefault(),r[r.length-1].focus()),$&&!i&&(n.preventDefault(),r[0].focus())}},TrapFocus={beforeMount(n){n[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1(n),FOCUS_STACK.push(n),FOCUS_STACK.length<=1&&document.addEventListener("keydown",FOCUS_HANDLER)},updated(n){nextTick(()=>{n[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1(n)})},unmounted(){FOCUS_STACK.shift(),FOCUS_STACK.length===0&&document.removeEventListener("keydown",FOCUS_HANDLER)}},_sfc_main$w=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,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(n,{emit:t}){const{locale:r,zIndex:i,ns:g,size:$}=useGlobalComponentSettings("message-box",computed(()=>n.buttonSize)),{t:V}=r,{nextZIndex:re}=i,ie=ref(!1),ae=reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:markRaw(loading_default),cancelButtonLoadingIcon:markRaw(loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:re()}),oe=computed(()=>{const Lt=ae.type;return{[g.bm("icon",Lt)]:Lt&&TypeComponentsMap[Lt]}}),le=useId(),ue=useId(),de=computed(()=>{const Lt=ae.type;return ae.icon||Lt&&TypeComponentsMap[Lt]||""}),he=computed(()=>!!ae.message),pe=ref(),_e=ref(),Ce=ref(),xe=ref(),Ie=ref(),Ne=computed(()=>ae.confirmButtonClass);watch(()=>ae.inputValue,async Lt=>{await nextTick(),n.boxType==="prompt"&&Lt&&Et()},{immediate:!0}),watch(()=>ie.value,Lt=>{var jt,hn;Lt&&(n.boxType!=="prompt"&&(ae.autofocus?Ce.value=(hn=(jt=Ie.value)==null?void 0:jt.$el)!=null?hn:pe.value:Ce.value=pe.value),ae.zIndex=re()),n.boxType==="prompt"&&(Lt?nextTick().then(()=>{var vn;xe.value&&xe.value.$el&&(ae.autofocus?Ce.value=(vn=kt())!=null?vn:pe.value:Ce.value=pe.value)}):(ae.editorErrorMessage="",ae.validateError=!1))});const Oe=computed(()=>n.draggable),$e=computed(()=>n.overflow),{isDragging:Ve}=useDraggable(pe,_e,Oe,$e);onMounted(async()=>{await nextTick(),n.closeOnHashChange&&window.addEventListener("hashchange",Ue)}),onBeforeUnmount(()=>{n.closeOnHashChange&&window.removeEventListener("hashchange",Ue)});function Ue(){ie.value&&(ie.value=!1,nextTick(()=>{ae.action&&t("action",ae.action)}))}const Fe=()=>{n.closeOnClickModal&&qe(ae.distinguishCancelAndClose?"close":"cancel")},ze=useSameTarget(Fe),Pt=Lt=>{if(ae.inputType!=="textarea")return Lt.preventDefault(),qe("confirm")},qe=Lt=>{var jt;n.boxType==="prompt"&&Lt==="confirm"&&!Et()||(ae.action=Lt,ae.beforeClose?(jt=ae.beforeClose)==null||jt.call(ae,Lt,ae,Ue):Ue())},Et=()=>{if(n.boxType==="prompt"){const Lt=ae.inputPattern;if(Lt&&!Lt.test(ae.inputValue||""))return ae.editorErrorMessage=ae.inputErrorMessage||V("el.messagebox.error"),ae.validateError=!0,!1;const jt=ae.inputValidator;if(isFunction$4(jt)){const hn=jt(ae.inputValue);if(hn===!1)return ae.editorErrorMessage=ae.inputErrorMessage||V("el.messagebox.error"),ae.validateError=!0,!1;if(isString$2(hn))return ae.editorErrorMessage=hn,ae.validateError=!0,!1}}return ae.editorErrorMessage="",ae.validateError=!1,!0},kt=()=>{var Lt,jt;const hn=(Lt=xe.value)==null?void 0:Lt.$refs;return(jt=hn==null?void 0:hn.input)!=null?jt:hn==null?void 0:hn.textarea},At=()=>{qe("close")},Dt=()=>{n.closeOnPressEscape&&At()};return n.lockScroll&&useLockscreen(ie,{ns:g}),{...toRefs(ae),ns:g,overlayEvent:ze,visible:ie,hasMessage:he,typeClass:oe,contentId:le,inputId:ue,btnSize:$,iconComponent:de,confirmButtonClasses:Ne,rootRef:pe,focusStartRef:Ce,headerRef:_e,inputRef:xe,isDragging:Ve,confirmRef:Ie,doClose:Ue,handleClose:At,onCloseRequested:Dt,handleWrapperClick:Fe,handleInputEnter:Pt,handleAction:qe,t:V}}}),_hoisted_1$q=["aria-label","aria-describedby"],_hoisted_2$k=["aria-label"],_hoisted_3$9=["id"];function _sfc_render(n,t,r,i,g,$){const V=resolveComponent("el-icon"),re=resolveComponent("el-input"),ie=resolveComponent("el-button"),ae=resolveComponent("el-focus-trap"),oe=resolveComponent("el-overlay");return openBlock(),createBlock(Transition,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=le=>n.$emit("vanish")),persisted:""},{default:withCtx(()=>[withDirectives(createVNode$1(oe,{"z-index":n.zIndex,"overlay-class":[n.ns.is("message-box"),n.modalClass],mask:n.modal},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-label":n.title,"aria-modal":"true","aria-describedby":n.showInput?void 0:n.contentId,class:normalizeClass(`${n.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...le)=>n.overlayEvent.onClick&&n.overlayEvent.onClick(...le)),onMousedown:t[9]||(t[9]=(...le)=>n.overlayEvent.onMousedown&&n.overlayEvent.onMousedown(...le)),onMouseup:t[10]||(t[10]=(...le)=>n.overlayEvent.onMouseup&&n.overlayEvent.onMouseup(...le))},[createVNode$1(ae,{loop:"",trapped:n.visible,"focus-trap-el":n.rootRef,"focus-start-el":n.focusStartRef,onReleaseRequested:n.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",{ref:"rootRef",class:normalizeClass([n.ns.b(),n.customClass,n.ns.is("draggable",n.draggable),n.ns.is("dragging",n.isDragging),{[n.ns.m("center")]:n.center}]),style:normalizeStyle$1(n.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=withModifiers(()=>{},["stop"]))},[n.title!==null&&n.title!==void 0?(openBlock(),createElementBlock("div",{key:0,ref:"headerRef",class:normalizeClass([n.ns.e("header"),{"show-close":n.showClose}])},[createBaseVNode("div",{class:normalizeClass(n.ns.e("title"))},[n.iconComponent&&n.center?(openBlock(),createBlock(V,{key:0,class:normalizeClass([n.ns.e("status"),n.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("span",null,toDisplayString(n.title),1)],2),n.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(n.ns.e("headerbtn")),"aria-label":n.t("el.messagebox.close"),onClick:t[0]||(t[0]=le=>n.handleAction(n.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=withKeys(withModifiers(le=>n.handleAction(n.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[createVNode$1(V,{class:normalizeClass(n.ns.e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.closeIcon||"close")))]),_:1},8,["class"])],42,_hoisted_2$k)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{id:n.contentId,class:normalizeClass(n.ns.e("content"))},[createBaseVNode("div",{class:normalizeClass(n.ns.e("container"))},[n.iconComponent&&!n.center&&n.hasMessage?(openBlock(),createBlock(V,{key:0,class:normalizeClass([n.ns.e("status"),n.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),n.hasMessage?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(n.ns.e("message"))},[renderSlot(n.$slots,"default",{},()=>[n.dangerouslyUseHTMLString?(openBlock(),createBlock(resolveDynamicComponent(n.showInput?"label":"p"),{key:1,for:n.showInput?n.inputId:void 0,innerHTML:n.message},null,8,["for","innerHTML"])):(openBlock(),createBlock(resolveDynamicComponent(n.showInput?"label":"p"),{key:0,for:n.showInput?n.inputId:void 0,textContent:toDisplayString(n.message)},null,8,["for","textContent"]))])],2)):createCommentVNode("v-if",!0)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(n.ns.e("input"))},[createVNode$1(re,{id:n.inputId,ref:"inputRef",modelValue:n.inputValue,"onUpdate:modelValue":t[2]||(t[2]=le=>n.inputValue=le),type:n.inputType,placeholder:n.inputPlaceholder,"aria-invalid":n.validateError,class:normalizeClass({invalid:n.validateError}),onKeydown:withKeys(n.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),createBaseVNode("div",{class:normalizeClass(n.ns.e("errormsg")),style:normalizeStyle$1({visibility:n.editorErrorMessage?"visible":"hidden"})},toDisplayString(n.editorErrorMessage),7)],2),[[vShow,n.showInput]])],10,_hoisted_3$9),createBaseVNode("div",{class:normalizeClass(n.ns.e("btns"))},[n.showCancelButton?(openBlock(),createBlock(ie,{key:0,type:n.cancelButtonType==="text"?"":n.cancelButtonType,text:n.cancelButtonType==="text",loading:n.cancelButtonLoading,"loading-icon":n.cancelButtonLoadingIcon,class:normalizeClass([n.cancelButtonClass]),round:n.roundButton,size:n.btnSize,onClick:t[3]||(t[3]=le=>n.handleAction("cancel")),onKeydown:t[4]||(t[4]=withKeys(withModifiers(le=>n.handleAction("cancel"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString(n.cancelButtonText||n.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):createCommentVNode("v-if",!0),withDirectives(createVNode$1(ie,{ref:"confirmRef",type:n.confirmButtonType==="text"?"":n.confirmButtonType,text:n.confirmButtonType==="text",loading:n.confirmButtonLoading,"loading-icon":n.confirmButtonLoadingIcon,class:normalizeClass([n.confirmButtonClasses]),round:n.roundButton,disabled:n.confirmButtonDisabled,size:n.btnSize,onClick:t[5]||(t[5]=le=>n.handleAction("confirm")),onKeydown:t[6]||(t[6]=withKeys(withModifiers(le=>n.handleAction("confirm"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString(n.confirmButtonText||n.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[vShow,n.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,_hoisted_1$q)]),_:3},8,["z-index","overlay-class","mask"]),[[vShow,n.visible]])]),_:3})}var MessageBoxConstructor=_export_sfc(_sfc_main$w,[["render",_sfc_render],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const messageInstance=new Map,getAppendToElement=n=>{let t=document.body;return n.appendTo&&(isString$2(n.appendTo)&&(t=document.querySelector(n.appendTo)),isElement$1(n.appendTo)&&(t=n.appendTo),isElement$1(t)||(t=document.body)),t},initInstance=(n,t,r=null)=>{const i=createVNode$1(MessageBoxConstructor,n,isFunction$4(n.message)||isVNode(n.message)?{default:isFunction$4(n.message)?n.message:()=>n.message}:null);return i.appContext=r,render$1(i,t),getAppendToElement(n).appendChild(t.firstElementChild),i.component},genContainer=()=>document.createElement("div"),showMessage=(n,t)=>{const r=genContainer();n.onVanish=()=>{render$1(null,r),messageInstance.delete(g)},n.onAction=$=>{const V=messageInstance.get(g);let re;n.showInput?re={value:g.inputValue,action:$}:re=$,n.callback?n.callback(re,i.proxy):$==="cancel"||$==="close"?n.distinguishCancelAndClose&&$!=="cancel"?V.reject("close"):V.reject("cancel"):V.resolve(re)};const i=initInstance(n,r,t),g=i.proxy;for(const $ in n)hasOwn$1(n,$)&&!hasOwn$1(g.$props,$)&&($==="closeIcon"&&isObject$6(n[$])?g[$]=markRaw(n[$]):g[$]=n[$]);return g.visible=!0,g};function MessageBox(n,t=null){if(!isClient)return Promise.reject();let r;return isString$2(n)||isVNode(n)?n={message:n}:r=n.callback,new Promise((i,g)=>{const $=showMessage(n,t??MessageBox._context);messageInstance.set($,{options:n,callback:r,resolve:i,reject:g})})}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(n=>{MessageBox[n]=messageBoxFactory(n)});function messageBoxFactory(n){return(t,r,i,g)=>{let $="";return isObject$6(r)?(i=r,$=""):isUndefined$1(r)?$="":$=r,MessageBox(Object.assign({title:$,message:t,type:"",...MESSAGE_BOX_DEFAULT_OPTS[n]},i,{boxType:n}),g)}}MessageBox.close=()=>{messageInstance.forEach((n,t)=>{t.doClose()}),messageInstance.clear()};MessageBox._context=null;const _MessageBox=MessageBox;_MessageBox.install=n=>{_MessageBox._context=n._context,n.config.globalProperties.$msgbox=_MessageBox,n.config.globalProperties.$messageBox=_MessageBox,n.config.globalProperties.$alert=_MessageBox.alert,n.config.globalProperties.$confirm=_MessageBox.confirm,n.config.globalProperties.$prompt=_MessageBox.prompt};const ElMessageBox=_MessageBox,notificationTypes=["primary","success","info","warning","error"],notificationProps=buildProps({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:iconPropType},id:{type:String,default:""},message:{type:definePropType([String,Object,Function]),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,closeIcon:{type:iconPropType,default:close_default}}),notificationEmits={destroy:()=>!0},_hoisted_1$p=["id"],_hoisted_2$j=["textContent"],_hoisted_3$8={key:0},_hoisted_4$6=["innerHTML"],_sfc_main$v=defineComponent({name:"ElNotification",__name:"notification",props:notificationProps,emits:notificationEmits,setup(n,{expose:t}){const r=n,{ns:i,zIndex:g}=useGlobalComponentSettings("notification"),{nextZIndex:$,currentZIndex:V}=g,re=ref(!1);let ie;const ae=computed(()=>{const xe=r.type;return xe&&TypeComponentsMap[r.type]?i.m(xe):""}),oe=computed(()=>r.type&&TypeComponentsMap[r.type]||r.icon),le=computed(()=>r.position.endsWith("right")?"right":"left"),ue=computed(()=>r.position.startsWith("top")?"top":"bottom"),de=computed(()=>{var xe;return{[ue.value]:`${r.offset}px`,zIndex:(xe=r.zIndex)!=null?xe:V.value}});function he(){r.duration>0&&({stop:ie}=useTimeoutFn(()=>{re.value&&_e()},r.duration))}function pe(){ie==null||ie()}function _e(){re.value=!1}function Ce(xe){switch(getEventCode(xe)){case EVENT_CODE.delete:case EVENT_CODE.backspace:pe();break;case EVENT_CODE.esc:re.value&&_e();break;default:he();break}}return onMounted(()=>{he(),$(),re.value=!0}),useEventListener(document,"keydown",Ce),t({visible:re,close:_e}),(xe,Ie)=>(openBlock(),createBlock(Transition,{name:unref(i).b("fade"),onBeforeLeave:xe.onClose,onAfterLeave:Ie[1]||(Ie[1]=Ne=>xe.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:xe.id,class:normalizeClass([unref(i).b(),xe.customClass,le.value]),style:normalizeStyle$1(de.value),role:"alert",onMouseenter:pe,onMouseleave:he,onClick:Ie[0]||(Ie[0]=(...Ne)=>xe.onClick&&xe.onClick(...Ne))},[oe.value?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(i).e("icon"),ae.value])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(oe.value)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(i).e("group"))},[createBaseVNode("h2",{class:normalizeClass(unref(i).e("title")),textContent:toDisplayString(xe.title)},null,10,_hoisted_2$j),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(i).e("content")),style:normalizeStyle$1(xe.title?void 0:{margin:0})},[renderSlot(xe.$slots,"default",{},()=>[xe.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{innerHTML:xe.message},null,8,_hoisted_4$6)],2112)):(openBlock(),createElementBlock("p",_hoisted_3$8,toDisplayString(xe.message),1))])],6),[[vShow,xe.message]]),xe.showClose?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(i).e("closeBtn")),onClick:withModifiers(_e,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(xe.closeIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],46,_hoisted_1$p),[[vShow,re.value]])]),_:3},8,["name","onBeforeLeave"]))}});var NotificationConstructor=_export_sfc(_sfc_main$v,[["__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(n={},t){if(!isClient)return{close:()=>{}};(isString$2(n)||isVNode(n))&&(n={message:n});const r=n.position||"top-right";let i=n.offset||0;notifications[r].forEach(({vm:oe})=>{var le;i+=(((le=oe.el)==null?void 0:le.offsetHeight)||0)+GAP_SIZE}),i+=GAP_SIZE;const g=`notification_${seed++}`,$=n.onClose,V={...n,offset:i,id:g,onClose:()=>{close(g,r,$)}};let re=document.body;isElement$1(n.appendTo)?re=n.appendTo:isString$2(n.appendTo)&&(re=document.querySelector(n.appendTo)),isElement$1(re)||(re=document.body);const ie=document.createElement("div"),ae=createVNode$1(NotificationConstructor,V,isFunction$4(V.message)?V.message:isVNode(V.message)?()=>V.message:null);return ae.appContext=isUndefined$1(t)?notify._context:t,ae.props.onDestroy=()=>{render$1(null,ie)},render$1(ae,ie),notifications[r].push({vm:ae}),re.appendChild(ie.firstElementChild),{close:()=>{ae.component.exposed.visible.value=!1}}};notificationTypes.forEach(n=>{notify[n]=(t={},r)=>((isString$2(t)||isVNode(t))&&(t={message:t}),notify({...t,type:n},r))});function close(n,t,r){const i=notifications[t],g=i.findIndex(({vm:ae})=>{var oe;return((oe=ae.component)==null?void 0:oe.props.id)===n});if(g===-1)return;const{vm:$}=i[g];if(!$)return;r==null||r($);const V=$.el.offsetHeight,re=t.split("-")[0];i.splice(g,1);const ie=i.length;if(!(ie<1))for(let ae=g;ae{t.component.exposed.visible.value=!1})}function updateOffsets(n="top-right"){var t,r,i,g;let $=((i=(r=(t=notifications[n][0])==null?void 0:t.vm.component)==null?void 0:r.props)==null?void 0:i.offset)||0;for(const{vm:V}of notifications[n])V.component.props.offset=$,$+=(((g=V.el)==null?void 0:g.offsetHeight)||0)+GAP_SIZE}notify.closeAll=closeAll;notify.updateOffsets=updateOffsets;notify._context=null;const ElNotification=withInstallFunction(notify,"$notify");var Plugins=[ElInfiniteScroll,ElLoading,ElMessage,ElMessageBox,ElNotification,ElPopoverDirective],installer=makeInstaller([...Components,...Plugins]);const API_CONFIG={NGINX:"http://localhost:8099",LOCAL:"http://localhost:8080"},BASE_URL=API_CONFIG.LOCAL,buildApiUrl=n=>`${BASE_URL}${n}`,modelApi={fileStorage_deleteFileById_get(n){return fetch(buildApiUrl("/fileStorage/deleteFileById")+"?"+Object.keys(n).map(t=>t+"="+n[t]).join("&"),{method:"GET",headers:{"Content-Type":"application/json",Accept:"*/*"}}).then(t=>{if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return t.json()})},fileStorage_editFileNameById_post(n){return fetch(buildApiUrl("/fileStorage/editFileNameById"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(n)}).then(t=>{if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return t.json()})},fileStorage_file_list_post(n){return fetch(buildApiUrl("/fileStorage/file/list"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(n)}).then(t=>{if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return t.json()})},node_nrt_get(){return fetch(buildApiUrl("/node/nrt"),{method:"GET",headers:{"Content-Type":"application/json",Accept:"*/*"}})},model_getModelData_post(n){return fetch(buildApiUrl("/data/model/getModelData"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(n)}).then(t=>{if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return t.json()})},saveOrUpdate_modelData_post(n){return fetch(buildApiUrl("/data/model/saveOrUpdate/modelData"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(n)}).then(t=>{if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return t.json()})}},index_vue_vue_type_style_index_0_scoped_067c540e_lang="",globalStore=reactive({intention:"none",create_item_info:null,selected_items_id:[],done_json:[],group_ids:new Map,canvasCfg:{width:1920,height:1080,scale:1,color:"",img:"",guide:!0,adsorp:!0,adsorp_diff:5,transform_origin:{x:0,y:0},drag_offset:{x:0,y:0}},gridCfg:{enabled:!0,align:!0,size:10},guideCfg:{x:{display:!1,top:0},y:{display:!1,left:0}},lock:!1,real_time_data:{show:!1,text:""},adsorp_diff:{x:0,y:0},refreshGroupForId:(n,t,r)=>{var g;if(!globalStore.done_json.some($=>$.id===r))return!1;if(globalStore.group_ids.size===0)return globalStore.group_ids.set(n,[r]),!0;if(globalStore.group_ids.has(t)){const $=globalStore.group_ids.get(t)||[];$.some(re=>re===r)&&$.splice($.indexOf(r),1),((g=globalStore.group_ids.get(t))==null?void 0:g.length)===0&&globalStore.group_ids.delete(t)}if(!globalStore.group_ids.has(n))globalStore.group_ids.set(n,[r]);else{const $=globalStore.group_ids.get(n)||[];return $.some(re=>re===r)||$.push(r),!0}return!0},refreshGroupForIds:(n,t)=>{const r=globalStore.done_json;console.log(r)},setIntention:n=>{globalStore.intention=n},setCreateItemInfo:n=>{globalStore.create_item_info=n},setGlobalStoreDoneJson:n=>{globalStore.done_json=n},cancelAllSelect:()=>{const n=[...globalStore.done_json].map(t=>(t.active&&(t.active=!1),t));globalStore.setGlobalStoreDoneJson(n),globalStore.selected_items_id=[]},refreshSelectedItemsId:()=>{globalStore.selected_items_id=globalStore.done_json.filter(n=>n.active).map(n=>n.id)},deleteSelectedItems:()=>{const n=[...globalStore.done_json].filter(t=>!globalStore.selected_items_id.includes(t.id));globalStore.setGlobalStoreDoneJson(n),globalStore.selected_items_id=[]},setSingleSelect:n=>{globalStore.done_json.forEach(t=>{t.id===n?t.active=!0:t.active=!1}),globalStore.selected_items_id=[n]},setSelectItems:n=>{globalStore.done_json.forEach(t=>{n.includes(t.id)?t.active=!0:t.active=!1}),globalStore.selected_items_id=n},setRealTimeData:n=>{globalStore.real_time_data=n},setCustomMap:n=>{globalStore.group_ids=n}}),useUpdateSysLineRect=(n,t,r)=>{n.forEach(i=>{const g=document.querySelector(`#${i.id} g .real`).getBoundingClientRect(),$=t.getBoundingClientRect(),V=((g==null?void 0:g.left)-($==null?void 0:$.left))/r,re=((g==null?void 0:g.top)-($==null?void 0:$.top))/r,ie=V-i.binfo.left,ae=re-i.binfo.top;i.binfo.left=V,i.binfo.top=re,i.binfo.width=(g==null?void 0:g.width)/r,i.binfo.height=(g==null?void 0:g.height)/r,i.props.point_position={...i.props.point_position,val:i.props.point_position.val.map(oe=>({x:oe.x-ie,y:oe.y-ae}))}})},useUpdateSysLine=(n,t,r,i,g)=>{const $=[...t];n.forEach(V=>{if(!V.props.bind_anchors.val.start&&!V.props.bind_anchors.val.end)return;const re=document.querySelector(`#${V.id} g .real`).getBoundingClientRect(),ie=r.getBoundingClientRect(),ae=((re==null?void 0:re.left)-(ie==null?void 0:ie.left))/i,oe=((re==null?void 0:re.top)-(ie==null?void 0:ie.top))/i;if(V.props.bind_anchors.val.start){const le=$.find(ue=>ue.id===V.props.bind_anchors.val.start.id);if(le){const ue=le.id===(g==null?void 0:g.id)?g:le.binfo,{topLeft:de,topRight:he,bottomLeft:pe,bottomRight:_e}=getRectCoordinate(ue),{topCenter:Ce,bottomCenter:xe,leftCenter:Ie,rightCenter:Ne}=getRectCenterCoordinate(de,he,pe,_e),Oe=Ce.x,$e=Ie.y,Ve=Math.PI/180*le.binfo.angle;if(V.props.bind_anchors.val.start.type==="tc"){const ze=rotatePoint(Ce.x,Ce.y,Oe,$e,Ve);V.props.point_position.val[0]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}else if(V.props.bind_anchors.val.start.type==="bc"){const ze=rotatePoint(xe.x,xe.y,Oe,$e,Ve);V.props.point_position.val[0]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}else if(V.props.bind_anchors.val.start.type==="lc"){const ze=rotatePoint(Ie.x,Ie.y,Oe,$e,Ve);V.props.point_position.val[0]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}else if(V.props.bind_anchors.val.start.type==="rc"){const ze=rotatePoint(Ne.x,Ne.y,Oe,$e,Ve);V.props.point_position.val[0]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}const Ue=ae-V.binfo.left,Fe=oe-V.binfo.top;V.binfo={...V.binfo,left:ae,top:oe,width:(re==null?void 0:re.width)/i,height:(re==null?void 0:re.height)/i},V.props.point_position={...V.props.point_position,val:V.props.point_position.val.map(ze=>({x:ze.x-Ue,y:ze.y-Fe}))}}else V.props.bind_anchors.val.start=null}if(V.props.bind_anchors.val.end){const le=$.find(ue=>ue.id===V.props.bind_anchors.val.end.id);if(le){const ue=le.id===(g==null?void 0:g.id)?g:le.binfo,{topLeft:de,topRight:he,bottomLeft:pe,bottomRight:_e}=getRectCoordinate(ue),{topCenter:Ce,bottomCenter:xe,leftCenter:Ie,rightCenter:Ne}=getRectCenterCoordinate(de,he,pe,_e),Oe=Ce.x,$e=Ie.y,Ve=Math.PI/180*le.binfo.angle;if(V.props.bind_anchors.val.end.type==="tc"){const ze=rotatePoint(Ce.x,Ce.y,Oe,$e,Ve);V.props.point_position.val[V.props.point_position.val.length-1]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}else if(V.props.bind_anchors.val.end.type==="bc"){const ze=rotatePoint(xe.x,xe.y,Oe,$e,Ve);V.props.point_position.val[V.props.point_position.val.length-1]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}else if(V.props.bind_anchors.val.end.type==="lc"){const ze=rotatePoint(Ie.x,Ie.y,Oe,$e,Ve);V.props.point_position.val[V.props.point_position.val.length-1]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}else if(V.props.bind_anchors.val.end.type==="rc"){const ze=rotatePoint(Ne.x,Ne.y,Oe,$e,Ve);V.props.point_position.val[V.props.point_position.val.length-1]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}const Ue=ae-V.binfo.left,Fe=oe-V.binfo.top;V.binfo={...V.binfo,left:ae,top:oe,width:(re==null?void 0:re.width)/i,height:(re==null?void 0:re.height)/i},V.props.point_position={...V.props.point_position,val:V.props.point_position.val.map(ze=>({x:ze.x-Ue,y:ze.y-Fe}))}}else V.props.bind_anchors.val.end=null}}),nextTick(()=>{useUpdateSysLineRect(n,r,i)})},createGroupInfo=(n,t,r)=>{let i=1/0,g=1/0,$=-1/0,V=-1/0;const re=t.getBoundingClientRect();n.forEach(ae=>{const oe=document.getElementById(ae.id).getBoundingClientRect();i=Math.min(i,(oe.left-re.left)/r),$=Math.max($,(oe.right-re.left)/r),g=Math.min(g,(oe.top-re.top)/r),V=Math.max(V,(oe.bottom-re.top)/r)});const ie={left:i,top:g,width:$-i,height:V-g,angle:0};return n.forEach(ae=>{ae.binfo.left=ae.binfo.left-i,ae.binfo.top=ae.binfo.top-g,ae.binfo={width:100*(ae.binfo.width/ie.width),height:100*(ae.binfo.height/ie.height),left:100*(ae.binfo.left/ie.width),top:100*(ae.binfo.top/ie.height),angle:ae.binfo.angle||0},ae.active=!1}),{id:"group-"+randomString(),title:"组合",type:"group",binfo:ie,resize:!0,rotate:!0,lock:!1,active:!0,hide:!1,use_proportional_scaling:!0,props:{},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"},children:[...n],events:[],tag:"group"}},cancelGroup=(n,t,r,i)=>{const g=t.getBoundingClientRect();return n.children.map(V=>{const re=document.getElementById(V.id).getBoundingClientRect(),ie={x:re.left-g.left+re.width/2,y:re.top-g.top+re.height/2},ae=alignToGrid(n.binfo.width*(V.binfo.width/100),i),oe=alignToGrid(n.binfo.height*(V.binfo.height/100),i),le={width:ae,height:oe,left:ie.x/r-ae/2,top:ie.y/r-oe/2,angle:(V.binfo.angle||0)+(n.binfo.angle||0)};return{...V,active:!0,binfo:le}})},svgToSymbol=(n,t)=>{const r=new DOMParser().parseFromString(n,"image/svg+xml").children[0];let i="0",g="0";const $=r.getAttribute("viewBox"),V=document.createElementNS("http://www.w3.org/2000/svg","symbol");if($){const[,,re,ie]=$.split(" ");V.setAttributeNS(null,"viewBox",$),i=re,g=ie}else i=r.getAttribute("width")||"0",g=r.getAttribute("height")||"0",V.setAttributeNS(null,"viewBox","0 0 "+i+" "+g);return V.setAttributeNS(null,"id",t),V.innerHTML=r.innerHTML.replace("stroke:currentColor","").replace("stroke: currentColor","").replace('stroke="currentColor"',""),{symbol_str:V.outerHTML,width:i,height:g}},symbolGenSvg=(n,t,r,i,g)=>` ${t} `,svgToImgSrc=n=>"data:image/svg+xml;utf8,"+encodeURIComponent(n),genDomPropstr=n=>{let t="";for(const r in n)t+=` ${r}="${n[r].val}"`;return t},randomString=n=>{n=n||10;const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=t.length;let i="";for(let g=0;gnew Promise(function(t,r){const i=new FileReader;let g="";i.readAsDataURL(n),i.onload=function(){g=i.result??""},i.onerror=function($){r($)},i.onloadend=function(){t(g)}}),alignToGrid=(n,t=1)=>{const r=Math.floor(n/t);return n%t>=t/2?(r+1)*t:r*t},objectDeepClone=(n,t={})=>n?JSON.parse(JSON.stringify(n)):t,prosToVBind=n=>{let t={};for(const r in n)t={...t,[r]:n[r].val};return t},calculateGuideY=(n,t,r,i,g)=>{for(let $=0;$Math.abs(xe.left-V)Math.abs(xe.left-(V+ie/2))Math.abs(xe.left-re)Math.abs(xe.left+xe.width/2-V)Math.abs(xe.left+xe.width/2-(V+ie/2))Math.abs(xe.left+xe.width/2-re)Math.abs(xe.right-re)Math.abs(xe.right-(V+ie/2))Math.abs(xe.right-V){for(let $=0;$Math.abs(xe.top-V)Math.abs(xe.top-(V+ie/2))Math.abs(xe.top-re)Math.abs(xe.top+xe.height/2-V)Math.abs(xe.top+xe.height/2-(V+ie/2))Math.abs(xe.top+xe.height/2-re)Math.abs(xe.bottom-re)Math.abs(xe.bottom-(V+ie/2))Math.abs(xe.bottom-V){let i="";for(let g=0;g({x:(n+r)/2,y:(t+i)/2}),rotatePoint=(n,t,r,i,g)=>{const $=r+(n-r)*Math.cos(g)-(t-i)*Math.sin(g),V=i+(n-r)*Math.sin(g)+(t-i)*Math.cos(g);return{x:$,y:V}},getRectCoordinate=n=>{const t={x:n.left,y:n.top},r={x:n.left+n.width,y:n.top},i={x:n.left,y:n.top+n.height},g={x:n.left+n.width,y:n.top+n.height};return{topLeft:t,topRight:r,bottomLeft:i,bottomRight:g}},getRectCenterCoordinate=(n,t,r,i)=>{const g={x:(n.x+t.x)/2,y:(n.y+t.y)/2},$={x:(r.x+i.x)/2,y:(r.y+i.y)/2},V={x:(n.x+r.x)/2,y:(n.y+r.y)/2},re={x:(t.x+i.x)/2,y:(t.y+i.y)/2};return{topCenter:g,bottomCenter:$,leftCenter:V,rightCenter:re}},handleAlign=(n,t,r,i,g)=>{switch(n){case"left":{const V=Math.min(...t.filter(re=>re.type!=="sys-line").map(re=>re.binfo.left));t.filter(re=>re.type!=="sys-line").forEach(re=>{re.binfo.left=V});break}case"horizontally":{const V=t.filter(re=>re.type!=="sys-line")[0].binfo.left+t[0].binfo.width/2;t.filter(re=>re.type!=="sys-line").forEach(re=>{re.binfo.left=V-re.binfo.width/2});break}case"right":{const V=Math.max(...t.filter(re=>re.type!=="sys-line").map(re=>re.binfo.left+re.binfo.width));t.filter(re=>re.type!=="sys-line").forEach(re=>{re.binfo.left=V-re.binfo.width});break}case"top":{const V=Math.min(...t.filter(re=>re.type!=="sys-line").map(re=>re.binfo.top));t.filter(re=>re.type!=="sys-line").forEach(re=>{re.binfo.top=V});break}case"vertically":{const V=t.filter(re=>re.type!=="sys-line")[0].binfo.top+t[0].binfo.height/2;t.filter(re=>re.type!=="sys-line").forEach(re=>{re.binfo.top=V-re.binfo.height/2});break}case"bottom":{const V=Math.max(...t.filter(re=>re.type!=="sys-line").map(re=>re.binfo.top+re.binfo.height));t.filter(re=>re.type!=="sys-line").forEach(re=>{re.binfo.top=V-re.binfo.height});break}case"horizontal-distribution":{t.sort((ae,oe)=>ae.binfo.left+ae.binfo.width/2-oe.binfo.left+oe.binfo.width/2);const V=t[t.length-1],re=t[0],ie=(V.binfo.left+V.binfo.width/2-(re.binfo.left+re.binfo.width/2))/(t.length-1);t.forEach((ae,oe)=>{if(oe==0||oe==t.length-1)return;const le=re.binfo.left+re.binfo.width/2+ie*oe;ae.binfo={...ae.binfo,left:le-ae.binfo.width/2}});break}case"vertical-distribution":{t.sort((ae,oe)=>ae.binfo.top+ae.binfo.height/2-oe.binfo.top+oe.binfo.height/2);const V=t[t.length-1],re=t[0],ie=(V.binfo.top+V.binfo.height/2-(re.binfo.top+re.binfo.height/2))/(t.length-1);t.forEach((ae,oe)=>{if(oe==0||oe==t.length-1)return;const le=re.binfo.top+re.binfo.height/2+ie*oe;ae.binfo={...ae.binfo,top:le-ae.binfo.height/2}});break}}const $=g.filter(V=>V.type==="sys-line");return useUpdateSysLine($,t,r,i),t},setItemAttr=(id,key,val,json_arr)=>new Promise(res=>{const find_item=json_arr.find(n=>n.id===id);find_item||res({status:!1,msg:"要设置的id不存在"}),eval(`find_item.${key} = val;`),res({status:!0,msg:"操作成功"})}),getItemAttr=(id,key,json_arr)=>{const find_item=json_arr.find(n=>n.id===id);return find_item?eval(`find_item.${key}`):null},previewCompareVal=(n,t,r)=>t==="="?String(n)==String(r):t===">"?Number(n)>Number(r):t==="<"?Number(n){const t={};n.events.forEach(i=>{let g="";if(i.action==="changeAttr"){if(i.change_attr.length<1)return;i.change_attr.forEach($=>{!$.target_id||!$.target_attr||$.target_value===void 0||(!i.trigger_rule||!i.trigger_rule.trigger_id||!i.trigger_rule.trigger_attr||i.trigger_rule.value===void 0||!i.trigger_rule.operator?typeof $.target_value=="boolean"?g+=`$setItemAttrByID('${$.target_id}', '${$.target_attr}', ${$.target_value});`:g+=`$setItemAttrByID('${$.target_id}', '${$.target_attr}', '${$.target_value}');`:typeof $.target_value=="boolean"?g+=`if($previewCompareVal($getItemAttrByID('${i.trigger_rule.trigger_id}', '${i.trigger_rule.trigger_attr}'), '${i.trigger_rule.operator}', '${i.trigger_rule.value}')){$setItemAttrByID('${$.target_id}', '${$.target_attr}', ${$.target_value})};`:g+=`if($previewCompareVal($getItemAttrByID('${i.trigger_rule.trigger_id}', '${i.trigger_rule.trigger_attr}'), '${i.trigger_rule.operator}', '${i.trigger_rule.value}')){$setItemAttrByID('${$.target_id}', '${$.target_attr}', '${$.target_value}')};`)})}else i.action==="customCode"&&(!i.trigger_rule||!i.trigger_rule.trigger_id||!i.trigger_rule.trigger_attr||i.trigger_rule.value===void 0||!i.trigger_rule.operator?g+=i.custom_code+";":g+=`if($previewCompareVal($getItemAttrByID('${i.trigger_rule.trigger_id}', '${i.trigger_rule.trigger_attr}'), '${i.trigger_rule.operator}', '${i.trigger_rule.value}')){${i.custom_code}};`);Object.prototype.hasOwnProperty.call(t,i.type)?t[i.type]+=g:t[i.type]=g});let r={};for(const i in t)r={...r,[i]:()=>dynamicEvent(t[i])(n)};return r},dynamicEvent=n=>{try{return new Function("$item_info",n)}catch(t){return console.error(t),new Function("$item_info",`console.error('${t}')`)}},index_vue_vue_type_style_index_0_lang$2="",sysComponentItems=[{id:"sys-line",title:"自由连线",type:"sys-line",thumbnail:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTQgMThhMiAyIDAgMSAwIDQgMGEyIDIgMCAxIDAtNCAwTTE2IDZhMiAyIDAgMSAwIDQgMGEyIDIgMCAxIDAtNCAwTTcuNSAxNi41bDktOSIvPjwvc3ZnPg==",props:{stroke:{title:"线条颜色",type:"color",val:"#ff0000"},"stroke-width":{title:"线条宽度",type:"number",val:2},"marker-start":{title:"起点箭头",type:"switch",val:!1},"marker-end":{title:"终点箭头",type:"switch",val:!0},point_position:{title:"点坐标",type:"jsonEdit",val:[{x:0,y:0},{x:100,y:0}],disabled:!0},ani_type:{title:"动画类型",type:"select",val:"none",options:[{label:"无",value:"none"},{label:"电流",value:"electricity"},{label:"轨迹",value:"track"},{label:"水珠",value:"waterdrop"}]},ani_dur:{title:"持续时间",type:"number",val:20},ani_color:{title:"动画颜色",type:"color",val:"#0a7ae2"},ani_reverse:{title:"动画反转",type:"switch",val:!1},ani_play:{title:"动画播放",type:"switch",val:!0},bind_anchors:{title:"锚点绑定",type:"jsonEdit",val:{start:null,end:null},disabled:!0}},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}},{id:"sys-line-vertical",title:"自由连线-竖线",type:"sys-line",thumbnail:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTQgMThhMiAyIDAgMSAwIDQgMGEyIDIgMCAxIDAtNCAwTTE2IDZhMiAyIDAgMSAwIDQgMGEyIDIgMCAxIDAtNCAwTTcuNSAxNi41bDktOSIvPjwvc3ZnPg==",props:{stroke:{title:"线条颜色",type:"color",val:"#ff0000"},"stroke-width":{title:"线条宽度",type:"number",val:2},"marker-start":{title:"起点箭头",type:"switch",val:!1},"marker-end":{title:"终点箭头",type:"switch",val:!0},point_position:{title:"点坐标",type:"jsonEdit",val:[{x:0,y:0},{x:0,y:100}],disabled:!0},ani_type:{title:"动画类型",type:"select",val:"none",options:[{label:"无",value:"none"},{label:"电流",value:"electricity"},{label:"轨迹",value:"track"},{label:"水珠",value:"waterdrop"}]},ani_dur:{title:"持续时间",type:"number",val:20},ani_color:{title:"动画颜色",type:"color",val:"#0a7ae2"},ani_reverse:{title:"动画反转",type:"switch",val:!1},ani_play:{title:"动画播放",type:"switch",val:!0},bind_anchors:{title:"锚点绑定",type:"jsonEdit",val:{start:null,end:null},disabled:!0}},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}},{id:"text-vue",title:"文字",type:"vue",thumbnail:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIzMiIgZD0ibTMyIDQxNS41bDEyMC0zMjBsMTIwIDMyMG0tNDItMTEySDc0bTI1Mi02NGMxMi4xOS0yOC42OSA0MS00OCA3NC00OGgwYzQ2IDAgODAgMzIgODAgODB2MTQ0Ii8+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIzMiIgZD0iTTMyMCAzNTguNWMwIDM2IDI2Ljg2IDU4IDYwIDU4YzU0IDAgMTAwLTI3IDEwMC0xMDZ2LTE1Yy0yMCAwLTU4IDEtOTIgNWMtMzIuNzcgMy44Ni02OCAxOS02OCA1OCIvPjwvc3ZnPg==",props:{text:{title:"文字内容",type:"input",val:"文字"},fontFamily:{title:"字体",type:"select",val:"黑体",options:[{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]},fontSize:{title:"文字大小",type:"number",val:18},fill:{title:"文字颜色",type:"color",val:"#FFF700"},vertical:{title:"竖排展示",type:"switch",val:!1}},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}},{id:"card-vue",title:"卡片",type:"vue",thumbnail:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMTYgMTYiPjxnIGZpbGw9ImN1cnJlbnRDb2xvciI+PHBhdGggZD0iTTE0LjUgM2EuNS41IDAgMCAxIC41LjV2OWEuNS41IDAgMCAxLS41LjVoLTEzYS41LjUgMCAwIDEtLjUtLjV2LTlhLjUuNSAwIDAgMSAuNS0uNXptLTEzLTFBMS41IDEuNSAwIDAgMCAwIDMuNXY5QTEuNSAxLjUgMCAwIDAgMS41IDE0aDEzYTEuNSAxLjUgMCAwIDAgMS41LTEuNXYtOUExLjUgMS41IDAgMCAwIDE0LjUgMnoiLz48cGF0aCBkPSJNMyA1LjVhLjUuNSAwIDAgMSAuNS0uNWg5YS41LjUgMCAwIDEgMCAxaC05YS41LjUgMCAwIDEtLjUtLjVNMyA4YS41LjUgMCAwIDEgLjUtLjVoOWEuNS41IDAgMCAxIDAgMWgtOUEuNS41IDAgMCAxIDMgOG0wIDIuNWEuNS41IDAgMCAxIC41LS41aDZhLjUuNSAwIDAgMSAwIDFoLTZhLjUuNSAwIDAgMS0uNS0uNSIvPjwvZz48L3N2Zz4=",props:{shadow:{title:"阴影显示时机",type:"select",val:"always",options:[{label:"总是显示",value:"always"},{label:"鼠标悬浮",value:"hover"},{label:"不显示",value:"never"}]},backGroundColor:{title:"背景颜色",type:"color",val:"#ffffff"},boxShadow:{title:"阴影颜色",type:"color",val:"#ffffff"}},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}},{id:"now-time-vue",title:"当前时间",type:"vue",thumbnail:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIzMiIgZD0iTTI1NiA2NEMxNTAgNjQgNjQgMTUwIDY0IDI1NnM4NiAxOTIgMTkyIDE5MnMxOTItODYgMTkyLTE5MlMzNjIgNjQgMjU2IDY0WiIvPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMzIiIGQ9Ik0yNTYgMTI4djE0NGg5NiIvPjwvc3ZnPg==",props:{fontColor:{title:"文字颜色",type:"color",val:"#000000"},dateSize:{title:"日期文字大小",type:"number",val:12},weekSize:{title:"星期文字大小",type:"number",val:12},timeSize:{title:"时间文字大小",type:"number",val:24}},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}},{id:"kv-vue",title:"键值对",type:"vue",thumbnail:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjAgMjAiPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0iTTMgNmEzIDMgMCAwIDEgMy0zaDhhMyAzIDAgMCAxIDMgM3Y4YTMgMyAwIDAgMS0zIDNINmEzIDMgMCAwIDEtMy0zem0zLTJhMiAyIDAgMCAwLTIgMnYzLjVoNS41VjR6bTMuNSA2LjVINFYxNGEyIDIgMCAwIDAgMiAyaDMuNXptMSAwVjE2SDE0YTIgMiAwIDAgMCAyLTJ2LTMuNXptNS41LTFWNmEyIDIgMCAwIDAtMi0yaC0zLjV2NS41eiIvPjwvc3ZnPg==",props:{border:{title:"边框",type:"switch",val:!0},fontFamily:{title:"字体",type:"select",val:"黑体",options:[{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]},fontSize:{title:"文字大小",type:"number",val:18},label:{title:"键名",type:"input",val:"键名"},labelWidth:{title:"键名宽度",type:"number",val:50},value:{title:"键值",type:"input",val:"键值"},valueWidth:{title:"键值宽度",type:"number",val:50},color:{title:"文字颜色",type:"color",val:"#FFF700"},borderColor:{title:"边框颜色",type:"color",val:"#000000"}},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}},{id:"sys-button-vue",title:"按钮",type:"vue",thumbnail:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0yIDhhMyAzIDAgMCAxIDMtM2gxMGEzIDMgMCAwIDEgMyAzdjNhMyAzIDAgMCAxLTMgM0g1YTMgMyAwIDAgMS0zLTNWOFptNyAxLjVhLjUuNSAwIDAgMCAuNS41SDE0YS41LjUgMCAwIDAgMC0xSDkuNWEuNS41IDAgMCAwLS41LjVabS0xIDBhMS41IDEuNSAwIDEgMC0zIDBhMS41IDEuNSAwIDAgMCAzIDBaIi8+PC9zdmc+",props:{text:{title:"按钮文本",type:"input",val:"按钮文本"},type:{title:"按钮类型",type:"select",val:"",options:[{value:"",label:"默认"},{value:"primary",label:"主要"},{value:"success",label:"成功"},{value:"warning",label:"警告"},{value:"danger",label:"危险"}]},round:{title:"圆角",type:"switch",val:!1}},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}}],configStore=reactive({sysComponent:sysComponentItems,lineRenderOffset:10}),leftAsideStore=reactive({config:new Map([["本地文件",[]],["系统组件",configStore.sysComponent]]),registerConfig:(n,t)=>{if(n=="本地文件"||n=="系统组件"){ElMessage.info(`title:${n}已被系统占用,请更换名称!`);return}leftAsideStore.config.has(n)&&ElMessage.info(`title:${n}已存在,已经将其配置覆盖`);const r=t.map(i=>{if(i.type=="svg"){const{symbol_str:g,width:$,height:V}=svgToSymbol(i.svg,i.id);return{...i,symbol:{symbol_id:i.id,symbol_str:g,width:$,height:V},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}}}return{...i,common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}}});leftAsideStore.config.set(n,r)}}),index_vue_vue_type_style_index_0_scoped_d359f9ac_lang="",index_vue_vue_type_style_index_0_scoped_d5d8fc1c_lang="";/** * @vue/server-renderer v3.5.26 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const shouldIgnoreProp=makeMap(",key,ref,innerHTML,textContent,ref_key,ref_for");function ssrRenderAttrs(n,t){let r="";for(const i in n){if(shouldIgnoreProp(i)||isOn(i)||t==="textarea"&&i==="value")continue;const g=n[i];i==="class"?r+=` class="${ssrRenderClass(g)}"`:i==="style"?r+=` style="${ssrRenderStyle(g)}"`:i==="className"?r+=` class="${String(g)}"`:r+=ssrRenderDynamicAttr(i,g,t)}return r}function ssrRenderDynamicAttr(n,t,r){if(!isRenderableAttrValue(t))return"";const i=r&&(r.indexOf("-")>0||isSVGTag(r))?n:propsToAttrMap[n]||n.toLowerCase();return isBooleanAttr(i)?includeBooleanAttr(t)?` ${i}`:"":isSSRSafeAttrName(i)?t===""?` ${i}`:` ${i}="${escapeHtml(t)}"`:(console.warn(`[@vue/server-renderer] Skipped rendering unsafe attribute name: ${i}`),"")}function ssrRenderClass(n){return escapeHtml(normalizeClass(n))}function ssrRenderStyle(n){if(!n)return"";if(isString$2(n))return escapeHtml(n);const t=normalizeStyle$1(ssrResetCssVars(n));return escapeHtml(stringifyStyle(t))}function ssrResetCssVars(n){if(!isArray$5(n)&&isObject$6(n)){const t={};for(const r in n)r.startsWith(":--")?t[r.slice(1)]=normalizeCssVarValue(n[r]):t[r]=n[r];return t}return n}function ssrRenderTeleport(n,t,r,i,g){n("");const $=g.appContext.provides[ssrContextKey],V=$.__teleportBuffers||($.__teleportBuffers={}),re=V[r]||(V[r]=[]),ie=re.length;let ae;if(i)t(n),ae="";else{const{getBuffer:oe,push:le}=createBuffer();le(""),t(le),le(""),ae=oe()}re.splice(ie,0,ae),n("")}{const n=getGlobalThis(),t=(r,i)=>{let g;return(g=n[r])||(g=n[r]=[]),g.push(i),$=>{g.length>1?g.forEach(V=>V($)):g[0]($)}};t("__VUE_INSTANCE_SETTERS__",r=>r),t("__VUE_SSR_SETTERS__",r=>r)}function ssrCompile(n,t){throw new Error("On-the-fly template compilation is not supported in the ESM build of @vue/server-renderer. All templates must be pre-compiled into render functions.")}const{createComponentInstance,setCurrentRenderingInstance,setupComponent,renderComponentRoot,normalizeVNode,pushWarningContext,popWarningContext}=ssrUtils;function createBuffer(){let n=!1;const t=[];return{getBuffer(){return t},push(r){const i=isString$2(r);if(n&&i){t[t.length-1]+=r;return}t.push(r),n=i,(isPromise(r)||isArray$5(r)&&r.hasAsync)&&(t.hasAsync=!0)}}}function renderComponentVNode(n,t=null,r){const i=n.component=createComponentInstance(n,t,null),g=setupComponent(i,!0),$=isPromise(g);let V=i.sp;return $||V?Promise.resolve(g).then(()=>{if($&&(V=i.sp),V)return Promise.all(V.map(ie=>ie.call(i.proxy)))}).catch(NOOP).then(()=>renderComponentSubTree(i,r)):renderComponentSubTree(i,r)}function renderComponentSubTree(n,t){const r=n.type,{getBuffer:i,push:g}=createBuffer();if(isFunction$4(r)){let $=renderComponentRoot(n);if(!r.props)for(const V in n.attrs)V.startsWith("data-v-")&&(($.props||($.props={}))[V]="");renderVNode(g,n.subTree=$,n,t)}else{(!n.render||n.render===NOOP)&&!n.ssrRender&&!r.ssrRender&&isString$2(r.template)&&(r.ssrRender=ssrCompile(r.template));const $=n.ssrRender||r.ssrRender;if($){let V=n.inheritAttrs!==!1?n.attrs:void 0,re=!1,ie=n;for(;;){const oe=ie.vnode.scopeId;oe&&(re||(V={...V},re=!0),V[oe]="");const le=ie.parent;if(le&&le.subTree&&le.subTree===ie.vnode)ie=le;else break}if(t){re||(V={...V});const oe=t.trim().split(" ");for(let le=0;le"))}return i()}function renderVNode(n,t,r,i){const{type:g,shapeFlag:$,children:V,dirs:re,props:ie}=t;switch(re&&(t.props=applySSRDirectives(t,ie,re)),g){case Text$1:n(escapeHtml(V));break;case Comment:n(V?``:"");break;case Static:n(V);break;case Fragment:t.slotScopeIds&&(i=(i?i+" ":"")+t.slotScopeIds.join(" ")),n(""),renderVNodeChildren(n,V,r,i),n("");break;default:$&1?renderElementVNode(n,t,r,i):$&6?n(renderComponentVNode(t,r,i)):$&64?renderTeleportVNode(n,t,r,i):$&128&&renderVNode(n,t.ssContent,r,i)}}function renderVNodeChildren(n,t,r,i){for(let g=0;g"),!isVoidTag(g)){let ue=!1;$&&($.innerHTML?(ue=!0,n($.innerHTML)):$.textContent?(ue=!0,n(escapeHtml($.textContent))):g==="textarea"&&$.value&&(ue=!0,n(escapeHtml($.value)))),ue||(re&8?n(escapeHtml(V)):re&16&&renderVNodeChildren(n,V,r,i)),n(``)}}function applySSRDirectives(n,t,r){const i=[];for(let g=0;g{renderVNodeChildren(V,t.children,r,i)},g,$||$==="",r)}const{isVNode:isVNode$1}=ssrUtils;function nestedUnrollBuffer(n,t,r){if(!n.hasAsync)return t+unrollBufferSync$1(n);let i=t;for(let g=r;g(n[g]=re,nestedUnrollBuffer(n,i,g)));const V=nestedUnrollBuffer($,i,0);if(isPromise(V))return V.then(re=>(n[g]=re,nestedUnrollBuffer(n,"",g)));i=V}return i}function unrollBuffer$1(n){return nestedUnrollBuffer(n,"",0)}function unrollBufferSync$1(n){let t="";for(let r=0;rn}),t);const r=createVNode$1(n._component,n._props);r.appContext=n._context,n.provide(ssrContextKey,t);const i=await renderComponentVNode(r),g=await unrollBuffer$1(i);if(await resolveTeleports(t),t.__watcherHandles)for(const $ of t.__watcherHandles)$();return g}async function resolveTeleports(n){if(n.__teleportBuffers){n.teleports=n.teleports||{};for(const t in n.__teleportBuffers)n.teleports[t]=await unrollBuffer$1(await Promise.all([n.__teleportBuffers[t]]))}}initDirectivesForSSR();const cacheStore=reactive({boundingBox:[],setBoundingBox:n=>{cacheStore.boundingBox=n},adsorbPoint:[],setAdsorbPoint(n){cacheStore.adsorbPoint=n},copy:[],setCopy(n){cacheStore.copy=n},history:[[]],historyIndex:0,addHistory(n){nextTick(()=>{cacheStore.historyIndex+120&&(cacheStore.history.shift(),cacheStore.historyIndex=cacheStore.history.length-1)})}}),index_vue_vue_type_style_index_0_scoped_cef6b2df_lang="",index_vue_vue_type_style_index_0_lang$1="",index_vue_vue_type_style_index_0_scroped_true_lang="",index_vue_vue_type_style_index_0_scoped_e248ab51_lang="",index_vue_vue_type_style_index_0_scoped_3704de4f_lang="",index_vue_vue_type_style_index_0_scoped_e515623d_lang="",contextMenuStore=reactive({menuInfo:{display:!1,left:0,top:0,info:{selectAll:{title:"全选",hot_key:"Ctrl + A",enable:!1},copy:{title:"复制",hot_key:"Ctrl + C",enable:!1},paste:{title:"粘贴",hot_key:"Ctrl + V",enable:!1},delete:{title:"删除",hot_key:"Delete",enable:!1},group:{title:"组合",hot_key:"Ctrl + G",enable:!1},ungroup:{title:"取消组合",hot_key:"Ctrl + U",enable:!1},moveTop:{title:"置顶",hot_key:"Ctrl + Right",enable:!1},moveUp:{title:"上移",hot_key:"Ctrl + Up",enable:!1},moveDown:{title:"下移",hot_key:"Ctrl + Down",enable:!1},moveBottom:{title:"置底",hot_key:"Ctrl + Left",enable:!1}}},setMenuInfo:n=>{contextMenuStore.menuInfo=n},setDisplayItem:n=>{for(const t in contextMenuStore.menuInfo.info)contextMenuStore.menuInfo.info[t].enable=!1;n.forEach(t=>{contextMenuStore.menuInfo.info[t].enable=!0})}}),index_vue_vue_type_style_index_0_scoped_306a5bcf_lang="";var ace$2={exports:{}};(function(n,t){(function(){var r="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var g=function(oe,le,ue){if(typeof oe!="string"){g.original?g.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(ue=le),g.modules[oe]||(g.payloads[oe]=ue,g.modules[oe]=null)};g.modules={},g.payloads={};var $=function(oe,le,ue){if(typeof le=="string"){var de=ie(oe,le);if(de!=null)return ue&&ue(),de}else if(Object.prototype.toString.call(le)==="[object Array]"){for(var he=[],pe=0,_e=le.length;pe<_e;++pe){var Ce=ie(oe,le[pe]);if(Ce==null&&V.original)return;he.push(Ce)}return ue&&ue.apply(null,he)||!0}},V=function(oe,le){var ue=$("",oe,le);return ue==null&&V.original?V.original.apply(this,arguments):ue},re=function(oe,le){if(le.indexOf("!")!==-1){var ue=le.split("!");return re(oe,ue[0])+"!"+re(oe,ue[1])}if(le.charAt(0)=="."){var de=oe.split("/").slice(0,-1).join("/");for(le=de+"/"+le;le.indexOf(".")!==-1&&he!=le;){var he=le;le=le.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return le},ie=function(oe,le){le=re(oe,le);var ue=g.modules[le];if(!ue){if(ue=g.payloads[le],typeof ue=="function"){var de={},he={id:le,uri:"",exports:de,packaged:!0},pe=function(Ce,xe){return $(le,Ce,xe)},_e=ue(pe,de,he);de=_e||he.exports,g.modules[le]=de,delete g.payloads[le]}ue=g.modules[le]=de||ue}return ue};function ae(oe){var le=i;oe&&(i[oe]||(i[oe]={}),le=i[oe]),(!le.define||!le.define.packaged)&&(g.original=le.define,le.define=g,le.define.packaged=!0),(!le.require||!le.require.packaged)&&(V.original=le.require,le.require=V,le.require.packaged=!0)}ae(r)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(r,i,g){function $(V,re,ie){Object.defineProperty(V,re,{value:ie,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||$(String.prototype,"startsWith",function(V,re){return re=re||0,this.lastIndexOf(V,re)===re}),String.prototype.endsWith||$(String.prototype,"endsWith",function(V,re){var ie=this;(re===void 0||re>ie.length)&&(re=ie.length),re-=V.length;var ae=ie.indexOf(V,re);return ae!==-1&&ae===re}),String.prototype.repeat||$(String.prototype,"repeat",function(V){for(var re="",ie=this;V>0;)V&1&&(re+=ie),(V>>=1)&&(ie+=ie);return re}),String.prototype.includes||$(String.prototype,"includes",function(V,re){return this.indexOf(V,re)!=-1}),Object.assign||(Object.assign=function(V){if(V==null)throw new TypeError("Cannot convert undefined or null to object");for(var re=Object(V),ie=1;ie>>0,ae=arguments[1],oe=ae>>0,le=oe<0?Math.max(ie+oe,0):Math.min(oe,ie),ue=arguments[2],de=ue===void 0?ie:ue>>0,he=de<0?Math.max(ie+de,0):Math.min(de,ie);le0;)ie&1&&(ae+=re),(ie>>=1)&&(re+=re);return ae};var $=/^\s\s*/,V=/\s\s*$/;i.stringTrimLeft=function(re){return re.replace($,"")},i.stringTrimRight=function(re){return re.replace(V,"")},i.copyObject=function(re){var ie={};for(var ae in re)ie[ae]=re[ae];return ie},i.copyArray=function(re){for(var ie=[],ae=0,oe=re.length;ae65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(r,i,g){i.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},i.getOS=function(){return i.isMac?i.OS.MAC:i.isLinux?i.OS.LINUX:i.OS.WINDOWS};var $=typeof navigator=="object"?navigator:{},V=(/mac|win|linux/i.exec($.platform)||["other"])[0].toLowerCase(),re=$.userAgent||"",ie=$.appName||"";i.isWin=V=="win",i.isMac=V=="mac",i.isLinux=V=="linux",i.isIE=ie=="Microsoft Internet Explorer"||ie.indexOf("MSAppHost")>=0?parseFloat((re.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((re.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),i.isOldIE=i.isIE&&i.isIE<9,i.isGecko=i.isMozilla=re.match(/ Gecko\/\d+/),i.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",i.isWebKit=parseFloat(re.split("WebKit/")[1])||void 0,i.isChrome=parseFloat(re.split(" Chrome/")[1])||void 0,i.isSafari=parseFloat(re.split(" Safari/")[1])&&!i.isChrome||void 0,i.isEdge=parseFloat(re.split(" Edge/")[1])||void 0,i.isAIR=re.indexOf("AdobeAIR")>=0,i.isAndroid=re.indexOf("Android")>=0,i.isChromeOS=re.indexOf(" CrOS ")>=0,i.isIOS=/iPad|iPhone|iPod/.test(re)&&!window.MSStream,i.isIOS&&(i.isMac=!0),i.isMobile=i.isIOS||i.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(r,i,g){var $=r("./useragent"),V="http://www.w3.org/1999/xhtml";i.buildDom=function ue(de,he,pe){if(typeof de=="string"&&de){var _e=document.createTextNode(de);return he&&he.appendChild(_e),_e}if(!Array.isArray(de))return de&&de.appendChild&&he&&he.appendChild(de),de;if(typeof de[0]!="string"||!de[0]){for(var Ce=[],xe=0;xe"u")){if(ie){if(he)ae();else if(he===!1)return ie.push([ue,de])}if(!re){var pe=he;!he||!he.getRootNode?pe=document:(pe=he.getRootNode(),(!pe||pe==he)&&(pe=document));var _e=pe.ownerDocument||pe;if(de&&i.hasCssString(de,pe))return null;de&&(ue+=` /*# sourceURL=ace/css/`+de+" */");var Ce=i.createElement("style");Ce.appendChild(_e.createTextNode(ue)),de&&(Ce.id=de),pe==_e&&(pe=i.getDocumentHead(_e)),pe.insertBefore(Ce,pe.firstChild)}}}if(i.importCssString=oe,i.importCssStylsheet=function(ue,de){i.buildDom(["link",{rel:"stylesheet",href:ue}],i.getDocumentHead(de))},i.$fixPositionBug=function(ue){var de=ue.getBoundingClientRect();if(ue.style.left){var he=parseFloat(ue.style.left),pe=+de.left;Math.abs(he-pe)>1&&(ue.style.left=2*he-pe+"px")}if(ue.style.right){var he=parseFloat(ue.style.right),pe=window.innerWidth-de.right;Math.abs(he-pe)>1&&(ue.style.right=2*he-pe+"px")}if(ue.style.top){var he=parseFloat(ue.style.top),pe=+de.top;Math.abs(he-pe)>1&&(ue.style.top=2*he-pe+"px")}if(ue.style.bottom){var he=parseFloat(ue.style.bottom),pe=window.innerHeight-de.bottom;Math.abs(he-pe)>1&&(ue.style.bottom=2*he-pe+"px")}},i.scrollbarWidth=function(ue){var de=i.createElement("ace_inner");de.style.width="100%",de.style.minWidth="0px",de.style.height="200px",de.style.display="block";var he=i.createElement("ace_outer"),pe=he.style;pe.position="absolute",pe.left="-10000px",pe.overflow="hidden",pe.width="200px",pe.minWidth="0px",pe.height="150px",pe.display="block",he.appendChild(de);var _e=ue&&ue.documentElement||document&&document.documentElement;if(!_e)return 0;_e.appendChild(he);var Ce=de.offsetWidth;pe.overflow="scroll";var xe=de.offsetWidth;return Ce===xe&&(xe=he.clientWidth),_e.removeChild(he),Ce-xe},i.computedStyle=function(ue,de){return window.getComputedStyle(ue,"")||{}},i.setStyle=function(ue,de,he){ue[de]!==he&&(ue[de]=he)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=$.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,$.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var le=document.createElement("div");i.HI_DPI&&le.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!$.isEdge&&typeof le.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),le=null}i.HAS_CSS_TRANSFORMS?i.translate=function(ue,de,he){ue.style.transform="translate("+Math.round(de)+"px, "+Math.round(he)+"px)"}:i.translate=function(ue,de,he){ue.style.top=Math.round(he)+"px",ue.style.left=Math.round(de)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(r,i,g){/* * based on code from: * * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */var $=r("./dom");i.get=function(V,re){var ie=new XMLHttpRequest;ie.open("GET",V,!0),ie.onreadystatechange=function(){ie.readyState===4&&re(ie.responseText)},ie.send(null)},i.loadScript=function(V,re){var ie=$.getDocumentHead(),ae=document.createElement("script");ae.src=V,ie.appendChild(ae),ae.onload=ae.onreadystatechange=function(oe,le){(le||!ae.readyState||ae.readyState=="loaded"||ae.readyState=="complete")&&(ae=ae.onload=ae.onreadystatechange=null,le||re())}},i.qualifyURL=function(V){var re=document.createElement("a");return re.href=V,re.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(r,i,g){i.inherits=function($,V){$.super_=V,$.prototype=Object.create(V.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function($,V){for(var re in V)$[re]=V[re];return $},i.implement=function($,V){i.mixin($,V)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(r,i,g){var $={},V=function(){this.propagationStopped=!0},re=function(){this.defaultPrevented=!0};$._emit=$._dispatchEvent=function(ie,ae){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var oe=this._eventRegistry[ie]||[],le=this._defaultHandlers[ie];if(!(!oe.length&&!le)){(typeof ae!="object"||!ae)&&(ae={}),ae.type||(ae.type=ie),ae.stopPropagation||(ae.stopPropagation=V),ae.preventDefault||(ae.preventDefault=re),oe=oe.slice();for(var ue=0;ue1&&(Ce=pe[pe.length-2]);var Ie=ae[he+"Path"];return Ie==null?Ie=ae.basePath:_e=="/"&&(he=_e=""),Ie&&Ie.slice(-1)!="/"&&(Ie+="/"),Ie+he+_e+Ce+this.get("suffix")},i.setModuleUrl=function(de,he){return ae.$moduleUrls[de]=he};var oe=function(de,he){if(de==="ace/theme/textmate"||de==="./theme/textmate")return he(null,r("./theme/textmate"));if(le)return le(de,he);console.error("loader is not configured")},le;i.setLoader=function(de){le=de},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(de,he){var pe;if(Array.isArray(de))var _e=de[0],Ce=de[1];else if(typeof de=="string")var Ce=de;var xe=function(Ie){if(Ie&&!i.$loading[Ce])return he&&he(Ie);if(i.$loading[Ce]||(i.$loading[Ce]=[]),i.$loading[Ce].push(he),!(i.$loading[Ce].length>1)){var Ne=function(){oe(Ce,function(Oe,$e){$e&&(i.$loaded[Ce]=$e),i._emit("load.module",{name:Ce,module:$e});var Ve=i.$loading[Ce];i.$loading[Ce]=null,Ve.forEach(function(Ue){Ue&&Ue($e)})})};if(!i.get("packaged"))return Ne();V.loadScript(i.moduleUrl(Ce,_e),Ne),ue()}};if(i.dynamicModules[Ce])i.dynamicModules[Ce]().then(function(Ie){Ie.default?xe(Ie.default):xe(Ie)});else{try{pe=this.$require(Ce)}catch{}xe(pe||i.$loaded[Ce])}},i.$require=function(de){if(typeof g.require=="function"){var he="require";return g[he](de)}},i.setModuleLoader=function(de,he){i.dynamicModules[de]=he};var ue=function(){!ae.basePath&&!ae.workerPath&&!ae.modePath&&!ae.themePath&&!Object.keys(ae.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),ue=function(){})};i.version="1.43.5"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(r,i,g){r("./lib/fixoldbrowsers");var $=r("./config");$.setLoader(function(ae,oe){r([ae],function(le){oe(null,le)})});var V=function(){return this||typeof window<"u"&&window}();g.exports=function(ae){$.init=re,$.$require=r,ae.require=r},re(!0);function re(ae){if(!(!V||!V.document)){$.set("packaged",ae||r.packaged||g.packaged||V.define&&(void 0).packaged);var oe={},le="",ue=document.currentScript||document._currentScript,de=ue&&ue.ownerDocument||document;ue&&ue.src&&(le=ue.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var he=de.getElementsByTagName("script"),pe=0;pe ["+this.end.row+"/"+this.end.column+"]"},V.prototype.contains=function(re,ie){return this.compare(re,ie)==0},V.prototype.compareRange=function(re){var ie,ae=re.end,oe=re.start;return ie=this.compare(ae.row,ae.column),ie==1?(ie=this.compare(oe.row,oe.column),ie==1?2:ie==0?1:0):ie==-1?-2:(ie=this.compare(oe.row,oe.column),ie==-1?-1:ie==1?42:0)},V.prototype.comparePoint=function(re){return this.compare(re.row,re.column)},V.prototype.containsRange=function(re){return this.comparePoint(re.start)==0&&this.comparePoint(re.end)==0},V.prototype.intersects=function(re){var ie=this.compareRange(re);return ie==-1||ie==0||ie==1},V.prototype.isEnd=function(re,ie){return this.end.row==re&&this.end.column==ie},V.prototype.isStart=function(re,ie){return this.start.row==re&&this.start.column==ie},V.prototype.setStart=function(re,ie){typeof re=="object"?(this.start.column=re.column,this.start.row=re.row):(this.start.row=re,this.start.column=ie)},V.prototype.setEnd=function(re,ie){typeof re=="object"?(this.end.column=re.column,this.end.row=re.row):(this.end.row=re,this.end.column=ie)},V.prototype.inside=function(re,ie){return this.compare(re,ie)==0?!(this.isEnd(re,ie)||this.isStart(re,ie)):!1},V.prototype.insideStart=function(re,ie){return this.compare(re,ie)==0?!this.isEnd(re,ie):!1},V.prototype.insideEnd=function(re,ie){return this.compare(re,ie)==0?!this.isStart(re,ie):!1},V.prototype.compare=function(re,ie){return!this.isMultiLine()&&re===this.start.row?iethis.end.column?1:0:rethis.end.row?1:this.start.row===re?ie>=this.start.column?0:-1:this.end.row===re?ie<=this.end.column?0:1:0},V.prototype.compareStart=function(re,ie){return this.start.row==re&&this.start.column==ie?-1:this.compare(re,ie)},V.prototype.compareEnd=function(re,ie){return this.end.row==re&&this.end.column==ie?1:this.compare(re,ie)},V.prototype.compareInside=function(re,ie){return this.end.row==re&&this.end.column==ie?1:this.start.row==re&&this.start.column==ie?-1:this.compare(re,ie)},V.prototype.clipRows=function(re,ie){if(this.end.row>ie)var ae={row:ie+1,column:0};else if(this.end.rowie)var oe={row:ie+1,column:0};else if(this.start.row1?(Ue++,Ue>4&&(Ue=1)):Ue=1,V.isIE){var At=Math.abs(kt.clientX-Fe)>5||Math.abs(kt.clientY-ze)>5;(!Pt||At)&&(Ue=1),Pt&&clearTimeout(Pt),Pt=setTimeout(function(){Pt=null},Ne[Ue-1]||600),Ue==1&&(Fe=kt.clientX,ze=kt.clientY)}if(kt._clicks=Ue,Oe[$e]("mousedown",kt),Ue>4)Ue=0;else if(Ue>1)return Oe[$e](qe[Ue],kt)}Array.isArray(Ie)||(Ie=[Ie]),Ie.forEach(function(kt){de(kt,"mousedown",Et,Ve)})};function pe(Ie){return 0|(Ie.ctrlKey?1:0)|(Ie.altKey?2:0)|(Ie.shiftKey?4:0)|(Ie.metaKey?8:0)}i.getModifierString=function(Ie){return $.KEY_MODS[pe(Ie)]};function _e(Ie,Ne,Oe){var $e=pe(Ne);if(!Oe&&Ne.code&&(Oe=$.$codeToKeyCode[Ne.code]||Oe),!V.isMac&&re){if(Ne.getModifierState&&(Ne.getModifierState("OS")||Ne.getModifierState("Win"))&&($e|=8),re.altGr)if((3&$e)!=3)re.altGr=0;else return;if(Oe===18||Oe===17){var Ve=Ne.location;if(Oe===17&&Ve===1)re[Oe]==1&&(ie=Ne.timeStamp);else if(Oe===18&&$e===3&&Ve===2){var Ue=Ne.timeStamp-ie;Ue<50&&(re.altGr=!0)}}}if(Oe in $.MODIFIER_KEYS&&(Oe=-1),!(!$e&&Oe===13&&Ne.location===3&&(Ie(Ne,$e,-Oe),Ne.defaultPrevented))){if(V.isChromeOS&&$e&8){if(Ie(Ne,$e,Oe),Ne.defaultPrevented)return;$e&=-9}return!$e&&!(Oe in $.FUNCTION_KEYS)&&!(Oe in $.PRINTABLE_KEYS)?!1:Ie(Ne,$e,Oe)}}i.addCommandKeyListener=function(Ie,Ne,Oe){var $e=null;de(Ie,"keydown",function(Ve){re[Ve.keyCode]=(re[Ve.keyCode]||0)+1;var Ue=_e(Ne,Ve,Ve.keyCode);return $e=Ve.defaultPrevented,Ue},Oe),de(Ie,"keypress",function(Ve){$e&&(Ve.ctrlKey||Ve.altKey||Ve.shiftKey||Ve.metaKey)&&(i.stopEvent(Ve),$e=null)},Oe),de(Ie,"keyup",function(Ve){re[Ve.keyCode]=null},Oe),re||(Ce(),de(window,"focus",Ce))};function Ce(){re=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!V.isOldIE){var xe=1;i.nextTick=function(Ie,Ne){Ne=Ne||window;var Oe="zero-timeout-message-"+xe++,$e=function(Ve){Ve.data==Oe&&(i.stopPropagation(Ve),he(Ne,"message",$e),Ie())};de(Ne,"message",$e),Ne.postMessage(Oe,"*")}}i.$idleBlocked=!1,i.onIdle=function(Ie,Ne){return setTimeout(function Oe(){i.$idleBlocked?setTimeout(Oe,100):Ie()},Ne)},i.$idleBlockId=null,i.blockIdle=function(Ie){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},Ie||100)},i.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),i.nextFrame?i.nextFrame=i.nextFrame.bind(window):i.nextFrame=function(Ie){setTimeout(Ie,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(r,i,g){var $;g.exports={lineMode:!1,pasteCancelled:function(){return $&&$>Date.now()-50?!0:$=!1},cancel:function(){$=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(r,i,g){var $=r("../lib/event"),V=r("../config").nls,re=r("../lib/useragent"),ie=r("../lib/dom"),ae=r("../lib/lang"),oe=r("../clipboard"),le=re.isChrome<18,ue=re.isIE,de=re.isChrome>63,he=400,pe=r("../lib/keys"),_e=pe.KEY_MODS,Ce=re.isIOS,xe=Ce?/\s/:/\n/,Ie=re.isMobile,Ne=function(){function Oe($e,Ve){var Ue=this;this.host=Ve,this.text=ie.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",$e.insertBefore(this.text,$e.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",Ie||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),$.addListener(this.text,"blur",function(Fe){Ue.ignoreFocusEvents||(Ve.onBlur(Fe),Ue.$isFocused=!1)},Ve),$.addListener(this.text,"focus",function(Fe){if(!Ue.ignoreFocusEvents){if(Ue.$isFocused=!0,re.isEdge)try{if(!document.hasFocus())return}catch{}Ve.onFocus(Fe),re.isEdge?setTimeout(Ue.resetSelection.bind(Ue)):Ue.resetSelection()}},Ve),this.$focusScroll=!1,Ve.on("beforeEndOperation",function(){var Fe=Ve.curOp,ze=Fe&&Fe.command&&Fe.command.name;if(ze!="insertstring"){var Pt=ze&&(Fe.docChanged||Fe.selectionChanged);Ue.inComposition&&Pt&&(Ue.lastValue=Ue.text.value="",Ue.onCompositionEnd()),Ue.resetSelection()}}),Ve.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=Ce?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&Ve.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,$.addCommandKeyListener(this.text,function(Fe,ze,Pt){if(!Ue.inComposition)return Ve.onCommandKey(Fe,ze,Pt)},Ve),$.addListener(this.text,"select",this.onSelect.bind(this),Ve),$.addListener(this.text,"input",this.onInput.bind(this),Ve),$.addListener(this.text,"cut",this.onCut.bind(this),Ve),$.addListener(this.text,"copy",this.onCopy.bind(this),Ve),$.addListener(this.text,"paste",this.onPaste.bind(this),Ve),(!("oncut"in this.text)||!("oncopy"in this.text)||!("onpaste"in this.text))&&$.addListener($e,"keydown",function(Fe){if(!(re.isMac&&!Fe.metaKey||!Fe.ctrlKey))switch(Fe.keyCode){case 67:Ue.onCopy(Fe);break;case 86:Ue.onPaste(Fe);break;case 88:Ue.onCut(Fe);break}},Ve),this.syncComposition=ae.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),$.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),Ve),$.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),Ve),$.addListener(this.text,"keyup",this.onKeyup.bind(this),Ve),$.addListener(this.text,"keydown",this.syncComposition.bind(this),Ve),$.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),Ve),this.closeTimeout,$.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),Ve),$.addListener(this.text,"mousedown",function(Fe){Fe.preventDefault(),Ue.onContextMenuClose()},Ve),$.addListener(Ve.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),Ve),$.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),Ve),Ce&&this.addIosSelectionHandler($e,Ve,this.text)}return Oe.prototype.addIosSelectionHandler=function($e,Ve,Ue){var Fe=this,ze=null,Pt=!1;Ue.addEventListener("keydown",function(Et){ze&&clearTimeout(ze),Pt=!0},!0),Ue.addEventListener("keyup",function(Et){ze=setTimeout(function(){Pt=!1},100)},!0);var qe=function(Et){if(document.activeElement===Ue&&!(Pt||Fe.inComposition||Ve.$mouseHandler.isMousePressed)&&!Fe.copied){var kt=Ue.selectionStart,At=Ue.selectionEnd,Dt=null,Lt=0;if(kt==0?Dt=pe.up:kt==1?Dt=pe.home:At>Fe.lastSelectionEnd&&Fe.lastValue[At]==` `?Dt=pe.end:ktFe.lastSelectionEnd&&Fe.lastValue.slice(0,At).split(` `).length>2?Dt=pe.down:At>Fe.lastSelectionEnd&&Fe.lastValue[At-1]==" "?(Dt=pe.right,Lt=_e.option):(At>Fe.lastSelectionEnd||At==Fe.lastSelectionEnd&&Fe.lastSelectionEnd!=Fe.lastSelectionStart&&kt==At)&&(Dt=pe.right),kt!==At&&(Lt|=_e.shift),Dt){var jt=Ve.onCommandKey({},Lt,Dt);if(!jt&&Ve.commands){Dt=pe.keyCodeToString(Dt);var hn=Ve.commands.findKeyCommand(Lt,Dt);hn&&Ve.execCommand(hn)}Fe.lastSelectionStart=kt,Fe.lastSelectionEnd=At,Fe.resetSelection("")}}};document.addEventListener("selectionchange",qe),Ve.on("destroy",function(){document.removeEventListener("selectionchange",qe)})},Oe.prototype.onContextMenuClose=function(){var $e=this;clearTimeout(this.closeTimeout),this.closeTimeout=setTimeout(function(){$e.tempStyle&&($e.text.style.cssText=$e.tempStyle,$e.tempStyle=""),$e.host.renderer.$isMousePressed=!1,$e.host.renderer.$keepTextAreaAtCursor&&$e.host.renderer.$moveTextAreaToCursor()},0)},Oe.prototype.$onContextMenu=function($e){this.host.textInput.onContextMenu($e),this.onContextMenuClose()},Oe.prototype.onKeyup=function($e){$e.keyCode==27&&this.text.value.lengthhe+100||xe.test(Ue)||Ie&&this.lastSelectionStart<1&&this.lastSelectionStart==this.lastSelectionEnd)&&this.resetSelection()},Oe.prototype.sendText=function($e,Ve){if(this.afterContextMenu&&(this.afterContextMenu=!1),this.pasted)return this.resetSelection(),$e&&this.host.onPaste($e),this.pasted=!1,"";for(var Ue=this.text.selectionStart,Fe=this.text.selectionEnd,ze=this.lastSelectionStart,Pt=this.lastValue.length-this.lastSelectionEnd,qe=$e,Et=$e.length-Ue,kt=$e.length-Fe,At=0;ze>0&&this.lastValue[At]==$e[At];)At++,ze--;for(qe=qe.slice(At),At=1;Pt>0&&this.lastValue.length-At>this.lastSelectionStart-1&&this.lastValue[this.lastValue.length-At]==$e[$e.length-At];)At++,Pt--;Et-=At-1,kt-=At-1;var Dt=qe.length-At+1;if(Dt<0&&(ze=-Dt,Dt=0),qe=qe.slice(0,Dt),!Ve&&!qe&&!Et&&!ze&&!Pt&&!kt)return"";this.sendingText=!0;var Lt=!1;return re.isAndroid&&qe==". "&&(qe=" ",Lt=!0),qe&&!ze&&!Pt&&!Et&&!kt||this.commandMode?this.host.onTextInput(qe):this.host.onTextInput(qe,{extendLeft:ze,extendRight:Pt,restoreStart:Et,restoreEnd:kt}),this.sendingText=!1,this.lastValue=$e,this.lastSelectionStart=Ue,this.lastSelectionEnd=Fe,this.lastRestoreEnd=kt,Lt?` `:qe},Oe.prototype.onSelect=function($e){var Ve=this;if(!this.inComposition){var Ue=function(Fe){return Fe.selectionStart===0&&Fe.selectionEnd>=Ve.lastValue.length&&Fe.value===Ve.lastValue&&Ve.lastValue&&Fe.selectionEnd!==Ve.lastSelectionEnd};this.copied?this.copied=!1:Ue(this.text)?(this.host.selectAll(),this.resetSelection()):Ie&&this.text.selectionStart!=this.lastSelectionStart&&this.resetSelection()}},Oe.prototype.$resetSelectionIOS=function($e){if(!(!this.$isFocused||this.copied&&!$e||this.sendingText)){$e||($e="");var Ve=` ab`+$e+`cde fg `;Ve!=this.text.value&&(this.text.value=this.lastValue=Ve);var Ue=4,Fe=4+($e.length||(this.host.selection.isEmpty()?0:1));(this.lastSelectionStart!=Ue||this.lastSelectionEnd!=Fe)&&this.text.setSelectionRange(Ue,Fe),this.lastSelectionStart=Ue,this.lastSelectionEnd=Fe}},Oe.prototype.$resetSelection=function(){var $e=this;if(!(this.inComposition||this.sendingText)&&!(!this.$isFocused&&!this.afterContextMenu)){this.inComposition=!0;var Ve=0,Ue=0,Fe="",ze=function(hn,vn){for(var _n=vn,wn=1;wn<=hn-$e.rowStart&&wn<2*$e.numberOfExtraLines+1;wn++)_n+=$e.host.session.getLine(hn-wn).length+1;return _n};if(this.host.session){var Pt=this.host.selection,qe=Pt.getRange(),Et=Pt.cursor.row;Et===this.rowEnd+1?(this.rowStart=this.rowEnd+1,this.rowEnd=this.rowStart+2*this.numberOfExtraLines):Et===this.rowStart-1?(this.rowEnd=this.rowStart-1,this.rowStart=this.rowEnd-2*this.numberOfExtraLines):(Etthis.rowEnd+1)&&(this.rowStart=Et>this.numberOfExtraLines?Et-this.numberOfExtraLines:0,this.rowEnd=Et>this.numberOfExtraLines?Et+this.numberOfExtraLines:2*this.numberOfExtraLines);for(var kt=[],At=this.rowStart;At<=this.rowEnd;At++)kt.push(this.host.session.getLine(At));if(Fe=kt.join(` `),Ve=ze(qe.start.row,qe.start.column),Ue=ze(qe.end.row,qe.end.column),qe.start.rowthis.rowEnd){var Lt=this.host.session.getLine(this.rowEnd+1);Ue=qe.end.row>this.rowEnd+1?Lt.length:qe.end.column,Ue+=Fe.length+1,Fe=Fe+` `+Lt}else Ie&&Et>0&&(Fe=` `+Fe,Ue+=1,Ve+=1);Fe.length>he&&(Ve1),ue.preventDefault()},le.prototype.startSelect=function(ue,de){ue=ue||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var he=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?he.selection.selectToPosition(ue):de||he.selection.moveToPosition(ue),de||this.select(),he.setStyle("ace_selecting"),this.setState("select"))},le.prototype.select=function(){var ue,de=this.editor,he=de.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var pe=this.$clickSelection.comparePoint(he);if(pe==-1)ue=this.$clickSelection.end;else if(pe==1)ue=this.$clickSelection.start;else{var _e=oe(this.$clickSelection,he,de.session);he=_e.cursor,ue=_e.anchor}de.selection.setSelectionAnchor(ue.row,ue.column)}de.selection.selectToPosition(he),de.renderer.scrollCursorIntoView()},le.prototype.extendSelectionBy=function(ue){var de,he=this.editor,pe=he.renderer.screenToTextCoordinates(this.x,this.y),_e=he.selection[ue](pe.row,pe.column);if(this.$clickSelection){var Ce=this.$clickSelection.comparePoint(_e.start),xe=this.$clickSelection.comparePoint(_e.end);if(Ce==-1&&xe<=0)de=this.$clickSelection.end,(_e.end.row!=pe.row||_e.end.column!=pe.column)&&(pe=_e.start);else if(xe==1&&Ce>=0)de=this.$clickSelection.start,(_e.start.row!=pe.row||_e.start.column!=pe.column)&&(pe=_e.end);else if(Ce==-1&&xe==1)pe=_e.end,de=_e.start;else{var Ie=oe(this.$clickSelection,pe,he.session);pe=Ie.cursor,de=Ie.anchor}he.selection.setSelectionAnchor(de.row,de.column)}he.selection.selectToPosition(pe),he.renderer.scrollCursorIntoView()},le.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},le.prototype.focusWait=function(){var ue=ae(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),de=Date.now();(ue>V||de-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},le.prototype.onDoubleClick=function(ue){var de=ue.getDocumentPosition(),he=this.editor,pe=he.session,_e=pe.getBracketRange(de);_e?(_e.isEmpty()&&(_e.start.column--,_e.end.column++),this.setState("select")):(_e=he.selection.getWordRange(de.row,de.column),this.setState("selectByWords")),this.$clickSelection=_e,this.select()},le.prototype.onTripleClick=function(ue){var de=ue.getDocumentPosition(),he=this.editor;this.setState("selectByLines");var pe=he.getSelectionRange();pe.isMultiLine()&&pe.contains(de.row,de.column)?(this.$clickSelection=he.selection.getLineRange(pe.start.row),this.$clickSelection.end=he.selection.getLineRange(pe.end.row).end):this.$clickSelection=he.selection.getLineRange(de.row),this.select()},le.prototype.onQuadClick=function(ue){var de=this.editor;de.selectAll(),this.$clickSelection=de.getSelectionRange(),this.setState("selectAll")},le.prototype.onMouseWheel=function(ue){if(!ue.getAccelKey()){ue.getShiftKey()&&ue.wheelY&&!ue.wheelX&&(ue.wheelX=ue.wheelY,ue.wheelY=0);var de=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var he=this.$lastScroll,pe=ue.domEvent.timeStamp,_e=pe-he.t,Ce=_e?ue.wheelX/_e:he.vx,xe=_e?ue.wheelY/_e:he.vy;_e=1&&de.renderer.isScrollableBy(ue.wheelX*ue.speed,0)&&(Ne=!0),Ie<=1&&de.renderer.isScrollableBy(0,ue.wheelY*ue.speed)&&(Ne=!0),Ne)he.allowed=pe;else if(pe-he.allowedre.clientHeight;ie||V.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(r,i,g){var $=this&&this.__extends||function(){var pe=function(_e,Ce){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,Ie){xe.__proto__=Ie}||function(xe,Ie){for(var Ne in Ie)Object.prototype.hasOwnProperty.call(Ie,Ne)&&(xe[Ne]=Ie[Ne])},pe(_e,Ce)};return function(_e,Ce){if(typeof Ce!="function"&&Ce!==null)throw new TypeError("Class extends value "+String(Ce)+" is not a constructor or null");pe(_e,Ce);function xe(){this.constructor=_e}_e.prototype=Ce===null?Object.create(Ce):(xe.prototype=Ce.prototype,new xe)}}(),V=this&&this.__values||function(pe){var _e=typeof Symbol=="function"&&Symbol.iterator,Ce=_e&&pe[_e],xe=0;if(Ce)return Ce.call(pe);if(pe&&typeof pe.length=="number")return{next:function(){return pe&&xe>=pe.length&&(pe=void 0),{value:pe&&pe[xe++],done:!pe}}};throw new TypeError(_e?"Object is not iterable.":"Symbol.iterator is not defined.")},re=r("./lib/dom");r("./lib/event");var ie=r("./range").Range,ae=r("./lib/scroll").preventParentScroll,oe="ace_tooltip",le=function(){function pe(_e){this.isOpen=!1,this.$element=null,this.$parentNode=_e}return pe.prototype.$init=function(){return this.$element=re.createElement("div"),this.$element.className=oe,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},pe.prototype.getElement=function(){return this.$element||this.$init()},pe.prototype.setText=function(_e){this.getElement().textContent=_e},pe.prototype.setHtml=function(_e){this.getElement().innerHTML=_e},pe.prototype.setPosition=function(_e,Ce){this.getElement().style.left=_e+"px",this.getElement().style.top=Ce+"px"},pe.prototype.setClassName=function(_e){re.addCssClass(this.getElement(),_e)},pe.prototype.setTheme=function(_e){this.theme&&(this.theme.isDark&&re.removeCssClass(this.getElement(),"ace_dark"),this.theme.cssClass&&re.removeCssClass(this.getElement(),this.theme.cssClass)),_e.isDark&&re.addCssClass(this.getElement(),"ace_dark"),_e.cssClass&&re.addCssClass(this.getElement(),_e.cssClass),this.theme={isDark:_e.isDark,cssClass:_e.cssClass}},pe.prototype.show=function(_e,Ce,xe){_e!=null&&this.setText(_e),Ce!=null&&xe!=null&&this.setPosition(Ce,xe),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},pe.prototype.hide=function(_e){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=oe,this.isOpen=!1)},pe.prototype.getHeight=function(){return this.getElement().offsetHeight},pe.prototype.getWidth=function(){return this.getElement().offsetWidth},pe.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},pe}(),ue=function(){function pe(){this.popups=[]}return pe.prototype.addPopup=function(_e){this.popups.push(_e),this.updatePopups()},pe.prototype.removePopup=function(_e){var Ce=this.popups.indexOf(_e);Ce!==-1&&(this.popups.splice(Ce,1),this.updatePopups())},pe.prototype.updatePopups=function(){var _e,Ce,xe,Ie;this.popups.sort(function(qe,Et){return Et.priority-qe.priority});var Ne=[];try{for(var Oe=V(this.popups),$e=Oe.next();!$e.done;$e=Oe.next()){var Ve=$e.value,Ue=!0;try{for(var Fe=(xe=void 0,V(Ne)),ze=Fe.next();!ze.done;ze=Fe.next()){var Pt=ze.value;if(this.doPopupsOverlap(Pt,Ve)){Ue=!1;break}}}catch(qe){xe={error:qe}}finally{try{ze&&!ze.done&&(Ie=Fe.return)&&Ie.call(Fe)}finally{if(xe)throw xe.error}}Ue?Ne.push(Ve):Ve.hide()}}catch(qe){_e={error:qe}}finally{try{$e&&!$e.done&&(Ce=Oe.return)&&Ce.call(Oe)}finally{if(_e)throw _e.error}}},pe.prototype.doPopupsOverlap=function(_e,Ce){var xe=_e.getElement().getBoundingClientRect(),Ie=Ce.getElement().getBoundingClientRect();return xe.leftIe.left&&xe.topIe.top},pe}(),de=new ue;i.popupManager=de,i.Tooltip=le;var he=function(pe){$(_e,pe);function _e(Ce){Ce===void 0&&(Ce=document.body);var xe=pe.call(this,Ce)||this;xe.timeout=void 0,xe.lastT=0,xe.idleTime=350,xe.lastEvent=void 0,xe.onMouseOut=xe.onMouseOut.bind(xe),xe.onMouseMove=xe.onMouseMove.bind(xe),xe.waitForHover=xe.waitForHover.bind(xe),xe.hide=xe.hide.bind(xe);var Ie=xe.getElement();return Ie.style.whiteSpace="pre-wrap",Ie.style.pointerEvents="auto",Ie.addEventListener("mouseout",xe.onMouseOut),Ie.tabIndex=-1,Ie.addEventListener("blur",(function(){Ie.contains(document.activeElement)||this.hide()}).bind(xe)),Ie.addEventListener("wheel",ae),xe}return _e.prototype.addToEditor=function(Ce){Ce.on("mousemove",this.onMouseMove),Ce.on("mousedown",this.hide);var xe=Ce.renderer.getMouseEventTarget();xe&&typeof xe.removeEventListener=="function"&&xe.addEventListener("mouseout",this.onMouseOut,!0)},_e.prototype.removeFromEditor=function(Ce){Ce.off("mousemove",this.onMouseMove),Ce.off("mousedown",this.hide);var xe=Ce.renderer.getMouseEventTarget();xe&&typeof xe.removeEventListener=="function"&&xe.removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},_e.prototype.onMouseMove=function(Ce,xe){this.lastEvent=Ce,this.lastT=Date.now();var Ie=xe.$mouseHandler.isMousePressed;if(this.isOpen){var Ne=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(Ne.row,Ne.column)||Ie||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||Ie||(this.lastEvent=Ce,this.timeout=setTimeout(this.waitForHover,this.idleTime))},_e.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var Ce=Date.now()-this.lastT;if(this.idleTime-Ce>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-Ce);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},_e.prototype.isOutsideOfText=function(Ce){var xe=Ce.editor,Ie=Ce.getDocumentPosition(),Ne=xe.session.getLine(Ie.row);if(Ie.column==Ne.length){var Oe=xe.renderer.pixelToScreenCoordinates(Ce.clientX,Ce.clientY),$e=xe.session.documentToScreenPosition(Ie.row,Ie.column);if($e.column!=Oe.column||$e.row!=Oe.row)return!0}return!1},_e.prototype.setDataProvider=function(Ce){this.$gatherData=Ce},_e.prototype.showForRange=function(Ce,xe,Ie,Ne){if(!(Ne&&Ne!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var Oe=Ce.renderer;this.isOpen||(de.addPopup(this),this.$registerCloseEvents(),this.setTheme(Oe.theme)),this.isOpen=!0,this.range=ie.fromPoints(xe.start,xe.end);var $e=Oe.textToScreenCoordinates(xe.start.row,xe.start.column),Ve=Oe.scroller.getBoundingClientRect();$e.pageX=he.length&&(he=void 0),{value:he&&he[Ce++],done:!he}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")},re=r("../lib/dom"),ie=r("./mouse_event").MouseEvent,ae=r("../tooltip").HoverTooltip,oe=r("../config").nls,le=r("../range").Range;function ue(he){var pe=he.editor,_e=pe.renderer.$gutterLayer;he.$tooltip=new de(pe),he.$tooltip.addToEditor(pe),he.$tooltip.setDataProvider(function(Ce,xe){var Ie=Ce.getDocumentPosition().row;he.$tooltip.showTooltip(Ie)}),he.editor.setDefaultHandler("guttermousedown",function(Ce){if(!(!pe.isFocused()||Ce.getButton()!=0)){var xe=_e.getRegion(Ce);if(xe!="foldWidgets"){var Ie=Ce.getDocumentPosition().row,Ne=pe.session.selection;if(Ce.getShiftKey())Ne.selectTo(Ie,0);else{if(Ce.domEvent.detail==2)return pe.selectAll(),Ce.preventDefault();he.$clickSelection=pe.selection.getLineRange(Ie)}return he.setState("selectByLines"),he.captureMouse(Ce),Ce.preventDefault()}}})}i.GutterHandler=ue;var de=function(he){$(pe,he);function pe(_e){var Ce=he.call(this,_e.container)||this;Ce.id="gt"+ ++pe.$uid,Ce.editor=_e,Ce.visibleTooltipRow;var xe=Ce.getElement();return xe.setAttribute("role","tooltip"),xe.setAttribute("id",Ce.id),xe.style.pointerEvents="auto",Ce.idleTime=50,Ce.onDomMouseMove=Ce.onDomMouseMove.bind(Ce),Ce.onDomMouseOut=Ce.onDomMouseOut.bind(Ce),Ce.setClassName("ace_gutter-tooltip"),Ce}return pe.prototype.onDomMouseMove=function(_e){var Ce=new ie(_e,this.editor);this.onMouseMove(Ce,this.editor)},pe.prototype.onDomMouseOut=function(_e){var Ce=new ie(_e,this.editor);this.onMouseOut(Ce)},pe.prototype.addToEditor=function(_e){var Ce=_e.renderer.$gutter;Ce.addEventListener("mousemove",this.onDomMouseMove),Ce.addEventListener("mouseout",this.onDomMouseOut),he.prototype.addToEditor.call(this,_e)},pe.prototype.removeFromEditor=function(_e){var Ce=_e.renderer.$gutter;Ce.removeEventListener("mousemove",this.onDomMouseMove),Ce.removeEventListener("mouseout",this.onDomMouseOut),he.prototype.removeFromEditor.call(this,_e)},pe.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),he.prototype.destroy.call(this)},Object.defineProperty(pe,"annotationLabels",{get:function(){return{error:{singular:oe("gutter-tooltip.aria-label.error.singular","error"),plural:oe("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:oe("gutter-tooltip.aria-label.security.singular","security finding"),plural:oe("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:oe("gutter-tooltip.aria-label.warning.singular","warning"),plural:oe("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:oe("gutter-tooltip.aria-label.info.singular","information message"),plural:oe("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:oe("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:oe("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),pe.prototype.showTooltip=function(_e){var Ce,xe=this.editor.renderer.$gutterLayer,Ie=xe.$annotations[_e],Ne;Ie?Ne={displayText:Array.from(Ie.displayText),type:Array.from(Ie.type)}:Ne={displayText:[],type:[]};var Oe=xe.session.getFoldLine(_e);if(Oe&&xe.$showFoldedAnnotations){for(var $e={error:[],security:[],warning:[],info:[],hint:[]},Ve={error:1,security:2,warning:3,info:4,hint:5},Ue,Fe=_e+1;Fe<=Oe.end.row;Fe++)if(xe.$annotations[Fe])for(var ze=0;ze2)return xe.childNodes[2]}},pe.prototype.$findCellByRow=function(_e){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(Ce){return Ce.row===_e})},pe.prototype.hide=function(_e){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),this.visibleTooltipRow!=null){var Ce=this.$findLinkedAnnotationNode(this.visibleTooltipRow);Ce&&Ce.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this),he.prototype.hide.call(this,_e)}},pe.annotationsToSummaryString=function(_e){var Ce,xe,Ie=[],Ne=["error","security","warning","info","hint"];try{for(var Oe=V(Ne),$e=Oe.next();!$e.done;$e=Oe.next()){var Ve=$e.value;if(_e[Ve].length){var Ue=_e[Ve].length===1?pe.annotationLabels[Ve].singular:pe.annotationLabels[Ve].plural;Ie.push("".concat(_e[Ve].length," ").concat(Ue))}}}catch(Fe){Ce={error:Fe}}finally{try{$e&&!$e.done&&(xe=Oe.return)&&xe.call(Oe)}finally{if(Ce)throw Ce.error}}return Ie.join(", ")},pe.prototype.isOutsideOfText=function(_e){var Ce=_e.editor,xe=Ce.renderer.$gutter.getBoundingClientRect();return!(_e.clientX>=xe.left&&_e.clientX<=xe.right&&_e.clientY>=xe.top&&_e.clientY<=xe.bottom)},pe}(ae);de.$uid=0,i.GutterTooltip=de}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(r,i,g){var $=r("../lib/dom"),V=r("../lib/event"),re=r("../lib/useragent"),ie=200,ae=200,oe=5;function le(de){var he=de.editor,pe=$.createElement("div");pe.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",pe.textContent=" ";var _e=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];_e.forEach(function(bn){de[bn]=this[bn]},this),he.on("mousedown",this.onMouseDown.bind(de));var Ce=he.container,xe,Ie,Ne,Oe,$e,Ve,Ue=0,Fe,ze,Pt,qe,Et;this.onDragStart=function(bn){if(this.cancelDrag||!Ce.draggable){var Cn=this;return setTimeout(function(){Cn.startSelect(),Cn.captureMouse(bn)},0),bn.preventDefault()}$e=he.getSelectionRange();var Sn=bn.dataTransfer;Sn.effectAllowed=he.getReadOnly()?"copy":"copyMove",he.container.appendChild(pe),Sn.setDragImage&&Sn.setDragImage(pe,0,0),setTimeout(function(){he.container.removeChild(pe)}),Sn.clearData(),Sn.setData("Text",he.session.getTextRange()),ze=!0,this.setState("drag")},this.onDragEnd=function(bn){if(Ce.draggable=!1,ze=!1,this.setState(null),!he.getReadOnly()){var Cn=bn.dataTransfer.dropEffect;!Fe&&Cn=="move"&&he.session.remove(he.getSelectionRange()),he.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(bn){if(!(he.getReadOnly()||!_n(bn.dataTransfer)))return Ie=bn.clientX,Ne=bn.clientY,xe||Lt(),Ue++,bn.dataTransfer.dropEffect=Fe=wn(bn),V.preventDefault(bn)},this.onDragOver=function(bn){if(!(he.getReadOnly()||!_n(bn.dataTransfer)))return Ie=bn.clientX,Ne=bn.clientY,xe||(Lt(),Ue++),hn!==null&&(hn=null),bn.dataTransfer.dropEffect=Fe=wn(bn),V.preventDefault(bn)},this.onDragLeave=function(bn){if(Ue--,Ue<=0&&xe)return jt(),Fe=null,V.preventDefault(bn)},this.onDrop=function(bn){if(Ve){var Cn=bn.dataTransfer;if(ze)switch(Fe){case"move":$e.contains(Ve.row,Ve.column)?$e={start:Ve,end:Ve}:$e=he.moveText($e,Ve);break;case"copy":$e=he.moveText($e,Ve,!0);break}else{var Sn=Cn.getData("Text");$e={start:Ve,end:he.session.insert(Ve,Sn)},he.focus(),Fe=null}return jt(),V.preventDefault(bn)}},V.addListener(Ce,"dragstart",this.onDragStart.bind(de),he),V.addListener(Ce,"dragend",this.onDragEnd.bind(de),he),V.addListener(Ce,"dragenter",this.onDragEnter.bind(de),he),V.addListener(Ce,"dragover",this.onDragOver.bind(de),he),V.addListener(Ce,"dragleave",this.onDragLeave.bind(de),he),V.addListener(Ce,"drop",this.onDrop.bind(de),he);function kt(bn,Cn){var Sn=Date.now(),Tn=!Cn||bn.row!=Cn.row,En=!Cn||bn.column!=Cn.column;if(!qe||Tn||En)he.moveCursorToPosition(bn),qe=Sn,Et={x:Ie,y:Ne};else{var kn=ue(Et.x,Et.y,Ie,Ne);kn>oe?qe=null:Sn-qe>=ae&&(he.renderer.scrollCursorIntoView(),qe=null)}}function At(bn,Cn){var Sn=Date.now(),Tn=he.renderer.layerConfig.lineHeight,En=he.renderer.layerConfig.characterWidth,kn=he.renderer.scroller.getBoundingClientRect(),$n={x:{left:Ie-kn.left,right:kn.right-Ie},y:{top:Ne-kn.top,bottom:kn.bottom-Ne}},An=Math.min($n.x.left,$n.x.right),xn=Math.min($n.y.top,$n.y.bottom),Ln={row:bn.row,column:bn.column};An/En<=2&&(Ln.column+=$n.x.left<$n.x.right?-3:2),xn/Tn<=1&&(Ln.row+=$n.y.top<$n.y.bottom?-1:1);var Nn=bn.row!=Ln.row,Pn=bn.column!=Ln.column,On=!Cn||bn.row!=Cn.row;Nn||Pn&&!On?Pt?Sn-Pt>=ie&&he.renderer.scrollCursorIntoView(Ln):Pt=Sn:Pt=null}function Dt(){var bn=Ve;Ve=he.renderer.screenToTextCoordinates(Ie,Ne),kt(Ve,bn),At(Ve,bn)}function Lt(){$e=he.selection.toOrientedRange(),xe=he.session.addMarker($e,"ace_selection",he.getSelectionStyle()),he.clearSelection(),he.isFocused()&&he.renderer.$cursorLayer.setBlinking(!1),clearInterval(Oe),Dt(),Oe=setInterval(Dt,20),Ue=0,V.addListener(document,"mousemove",vn)}function jt(){clearInterval(Oe),he.session.removeMarker(xe),xe=null,he.selection.fromOrientedRange($e),he.isFocused()&&!ze&&he.$resetCursorStyle(),$e=null,Ve=null,Ue=0,Pt=null,qe=null,V.removeListener(document,"mousemove",vn)}var hn=null;function vn(){hn==null&&(hn=setTimeout(function(){hn!=null&&xe&&jt()},20))}function _n(bn){var Cn=bn.types;return!Cn||Array.prototype.some.call(Cn,function(Sn){return Sn=="text/plain"||Sn=="Text"})}function wn(bn){var Cn=["copy","copymove","all","uninitialized"],Sn=["move","copymove","linkmove","all","uninitialized"],Tn=re.isMac?bn.altKey:bn.ctrlKey,En="uninitialized";try{En=bn.dataTransfer.effectAllowed.toLowerCase()}catch{}var kn="none";return Tn&&Cn.indexOf(En)>=0?kn="copy":Sn.indexOf(En)>=0?kn="move":Cn.indexOf(En)>=0&&(kn="copy"),kn}}(function(){this.dragWait=function(){var de=Date.now()-this.mousedownEvent.time;de>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var de=this.editor.container;de.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(de){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var de=this.editor,he=de.container;he.draggable=!0,de.renderer.$cursorLayer.setBlinking(!1),de.setStyle("ace_dragging");var pe=re.isWin?"default":"move";de.renderer.setCursorStyle(pe),this.setState("dragReady")},this.onMouseDrag=function(de){var he=this.editor.container;if(re.isIE&&this.state=="dragReady"){var pe=ue(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);pe>3&&he.dragDrop()}if(this.state==="dragWait"){var pe=ue(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);pe>0&&(he.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(de){if(this.$dragEnabled){this.mousedownEvent=de;var he=this.editor,pe=de.inSelection(),_e=de.getButton(),Ce=de.domEvent.detail||1;if(Ce===1&&_e===0&&pe){if(de.editor.inMultiSelectMode&&(de.getAccelKey()||de.getShiftKey()))return;this.mousedownEvent.time=Date.now();var xe=de.domEvent.target||de.domEvent.srcElement;if("unselectable"in xe&&(xe.unselectable="on"),he.getDragDelay()){if(re.isWebKit){this.cancelDrag=!0;var Ie=he.container;Ie.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(de,this.onMouseDrag.bind(this)),de.defaultPrevented=!0}}}}).call(le.prototype);function ue(de,he,pe,_e){return Math.sqrt(Math.pow(pe-de,2)+Math.pow(_e-he,2))}i.DragdropHandler=le}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(r,i,g){var $=r("./mouse_event").MouseEvent,V=r("../lib/event"),re=r("../lib/dom");i.addTouchListeners=function(ie,ae){var oe="scroll",le,ue,de,he,pe,_e,Ce=0,xe,Ie=0,Ne=0,Oe=0,$e,Ve;function Ue(){var kt=window.navigator&&window.navigator.clipboard,At=!1,Dt=function(){var hn=ae.getCopyText(),vn=ae.session.getUndoManager().hasUndo();Ve.replaceChild(re.buildDom(At?["span",!hn&&Lt("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],hn&&Lt("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],hn&&Lt("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],kt&&Lt("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],vn&&Lt("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],Lt("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],Lt("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),Ve.firstChild)},Lt=function(hn){return ae.commands.canExecute(hn,ae)},jt=function(hn){var vn=hn.target.getAttribute("action");if(vn=="more"||!At)return At=!At,Dt();vn=="paste"?kt.readText().then(function(_n){ae.execCommand(vn,_n)}):vn&&((vn=="cut"||vn=="copy")&&(kt?kt.writeText(ae.getCopyText()):document.execCommand("copy")),ae.execCommand(vn)),Ve.firstChild.style.display="none",At=!1,vn!="openCommandPalette"&&ae.focus()};Ve=re.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(hn){oe="menu",hn.stopPropagation(),hn.preventDefault(),ae.textInput.focus()},ontouchend:function(hn){hn.stopPropagation(),hn.preventDefault(),jt(hn)},onclick:jt},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],ae.container)}function Fe(){if(!ae.getOption("enableMobileMenu")){Ve&&ze();return}Ve||Ue();var kt=ae.selection.cursor,At=ae.renderer.textToScreenCoordinates(kt.row,kt.column),Dt=ae.renderer.textToScreenCoordinates(0,0).pageX,Lt=ae.renderer.scrollLeft,jt=ae.container.getBoundingClientRect();Ve.style.top=At.pageY-jt.top-3+"px",At.pageX-jt.left=2?ae.selection.getLineRange(xe.row):ae.session.getBracketRange(xe);kt&&!kt.isEmpty()?ae.selection.setRange(kt):ae.selection.selectWord(),oe="wait"}V.addListener(ie,"contextmenu",function(kt){if($e){var At=ae.textInput.getElement();At.focus()}},ae),V.addListener(ie,"touchstart",function(kt){var At=kt.touches;if(pe||At.length>1){clearTimeout(pe),pe=null,de=-1,oe="zoom";return}$e=ae.$mouseHandler.isMousePressed=!0;var Dt=ae.renderer.layerConfig.lineHeight,Lt=ae.renderer.layerConfig.lineHeight,jt=kt.timeStamp;he=jt;var hn=At[0],vn=hn.clientX,_n=hn.clientY;Math.abs(le-vn)+Math.abs(ue-_n)>Dt&&(de=-1),le=kt.clientX=vn,ue=kt.clientY=_n,Ne=Oe=0;var wn=new $(kt,ae);if(xe=wn.getDocumentPosition(),jt-de<500&&At.length==1&&!Ce)Ie++,kt.preventDefault(),kt.button=0,qe();else{Ie=0;var bn=ae.selection.cursor,Cn=ae.selection.isEmpty()?bn:ae.selection.anchor,Sn=ae.renderer.$cursorLayer.getPixelPosition(bn,!0),Tn=ae.renderer.$cursorLayer.getPixelPosition(Cn,!0),En=ae.renderer.scroller.getBoundingClientRect(),kn=ae.renderer.layerConfig.offset,$n=ae.renderer.scrollLeft,An=function(Nn,Pn){return Nn=Nn/Lt,Pn=Pn/Dt-.75,Nn*Nn+Pn*Pn};if(kt.clientXLn?"cursor":"anchor"),Ln<3.5?oe="anchor":xn<3.5?oe="cursor":oe="scroll",pe=setTimeout(Pt,450)}de=jt},ae),V.addListener(ie,"touchend",function(kt){$e=ae.$mouseHandler.isMousePressed=!1,_e&&clearInterval(_e),oe=="zoom"?(oe="",Ce=0):pe?(ae.selection.moveToPosition(xe),Ce=0,Fe()):oe=="scroll"?(Et(),ze()):Fe(),clearTimeout(pe),pe=null},ae),V.addListener(ie,"touchmove",function(kt){pe&&(clearTimeout(pe),pe=null);var At=kt.touches;if(!(At.length>1||oe=="zoom")){var Dt=At[0],Lt=le-Dt.clientX,jt=ue-Dt.clientY;if(oe=="wait")if(Lt*Lt+jt*jt>4)oe="cursor";else return kt.preventDefault();le=Dt.clientX,ue=Dt.clientY,kt.clientX=Dt.clientX,kt.clientY=Dt.clientY;var hn=kt.timeStamp,vn=hn-he;if(he=hn,oe=="scroll"){var _n=new $(kt,ae);_n.speed=1,_n.wheelX=Lt,_n.wheelY=jt,10*Math.abs(Lt)0)if(Ln==16){for(On=Pn;On-1){for(On=Pn;On=0&&Tn[In]==$e;In--)Cn[In]=$}}}function vn(bn,Cn,Sn){if(!(V=bn){for(kn=En+1;kn=bn;)kn++;for($n=En,An=kn-1;$n=Cn.length||(kn=Sn[Tn-1])!=_e&&kn!=Ce||($n=Cn[Tn+1])!=_e&&$n!=Ce?xe:(re&&($n=Ce),$n==kn?$n:xe);case Ue:return kn=Tn>0?Sn[Tn-1]:Ie,kn==_e&&Tn+10&&Sn[Tn-1]==_e)return _e;if(re)return xe;for(xn=Tn+1,An=Cn.length;xn=1425&&Ln<=2303||Ln==64286;if(kn=Cn[xn],Nn&&(kn==pe||kn==Oe))return pe}return Tn<1||(kn=Cn[Tn-1])==Ie?xe:Sn[Tn-1];case Ie:return re=!1,ie=!0,$;case Ne:return ae=!0,xe;case Pt:case qe:case kt:case At:case Et:re=!1;case Dt:return xe}}function wn(bn){var Cn=bn.charCodeAt(0),Sn=Cn>>8;return Sn==0?Cn>191?he:Lt[Cn]:Sn==5?/[\u0591-\u05f4]/.test(bn)?pe:he:Sn==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(bn)?ze:/[\u0660-\u0669\u066b-\u066c]/.test(bn)?Ce:Cn==1642?Fe:/[\u06f0-\u06f9]/.test(bn)?_e:Oe:Sn==32&&Cn<=8287?jt[Cn&255]:Sn==254&&Cn>=65136?Oe:xe}i.L=he,i.R=pe,i.EN=_e,i.ON_R=3,i.AN=4,i.R_H=5,i.B=6,i.RLE=7,i.DOT="·",i.doBidiReorder=function(bn,Cn,Sn){if(bn.length<2)return{};var Tn=bn.split(""),En=new Array(Tn.length),kn=new Array(Tn.length),$n=[];$=Sn?de:ue,hn(Tn,$n,Tn.length,Cn);for(var An=0;AnOe&&Cn[An]0&&Tn[An-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(Tn[An])&&($n[An-1]=$n[An]=i.R_H,An++);Tn[Tn.length-1]===i.DOT&&($n[Tn.length-1]=i.B),Tn[0]==="‫"&&($n[0]=i.RLE);for(var An=0;An=0&&(oe=this.session.$docRowCache[ue])}return oe},ae.prototype.getSplitIndex=function(){var oe=0,le=this.session.$screenRowCache;if(le.length)for(var ue,de=this.session.$getRowCacheIndex(le,this.currentRow);this.currentRow-oe>0&&(ue=this.session.$getRowCacheIndex(le,this.currentRow-oe-1),ue===de);)de=ue,oe++;else oe=this.currentRow;return oe},ae.prototype.updateRowLine=function(oe,le){oe===void 0&&(oe=this.getDocumentRow());var ue=oe===this.session.getLength()-1,de=ue?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(oe),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var he=this.session.$wrapData[oe];he&&(le===void 0&&(le=this.getSplitIndex()),le>0&&he.length?(this.wrapIndent=he.indent,this.wrapOffset=this.wrapIndent*this.charWidths[$.L],this.line=lele?this.session.getOverwrite()?oe:oe-1:le,de=$.getVisualFromLogicalIdx(ue,this.bidiMap),he=this.bidiMap.bidiLevels,pe=0;!this.session.getOverwrite()&&oe<=le&&he[de]%2!==0&&de++;for(var _e=0;_ele&&he[de]%2===0&&(pe+=this.charWidths[he[de]]),this.wrapIndent&&(pe+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(pe+=this.rtlLineOffset),pe},ae.prototype.getSelections=function(oe,le){var ue=this.bidiMap,de=ue.bidiLevels,he,pe=[],_e=0,Ce=Math.min(oe,le)-this.wrapIndent,xe=Math.max(oe,le)-this.wrapIndent,Ie=!1,Ne=!1,Oe=0;this.wrapIndent&&(_e+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var $e,Ve=0;Ve=Ce&&$ede+_e/2;){if(de+=_e,he===pe.length-1){_e=0;break}_e=this.charWidths[pe[++he]]}return he>0&&pe[he-1]%2!==0&&pe[he]%2===0?(ue0&&pe[he-1]%2===0&&pe[he]%2!==0?le=1+(ue>de?this.bidiMap.logicalFromVisual[he]:this.bidiMap.logicalFromVisual[he-1]):this.isRtlDir&&he===pe.length-1&&_e===0&&pe[he-1]%2===0||!this.isRtlDir&&he===0&&pe[he]%2!==0?le=1+this.bidiMap.logicalFromVisual[he]:(he>0&&pe[he-1]%2!==0&&_e!==0&&he--,le=this.bidiMap.logicalFromVisual[he]),le===0&&this.isRtlDir&&le++,le+this.wrapIndent},ae}();i.BidiHandler=ie}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(r,i,g){var $=r("./lib/oop"),V=r("./lib/lang"),re=r("./lib/event_emitter").EventEmitter,ie=r("./range").Range,ae=function(){function oe(le){this.session=le,this.doc=le.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var ue=this;this.cursor.on("change",function(de){ue.$cursorChanged=!0,ue.$silent||ue._emit("changeCursor"),!ue.$isEmpty&&!ue.$silent&&ue._emit("changeSelection"),!ue.$keepDesiredColumnOnChange&&de.old.column!=de.value.column&&(ue.$desiredColumn=null)}),this.anchor.on("change",function(){ue.$anchorChanged=!0,!ue.$isEmpty&&!ue.$silent&&ue._emit("changeSelection")})}return oe.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},oe.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},oe.prototype.getCursor=function(){return this.lead.getPosition()},oe.prototype.setAnchor=function(le,ue){this.$isEmpty=!1,this.anchor.setPosition(le,ue)},oe.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},oe.prototype.getSelectionLead=function(){return this.lead.getPosition()},oe.prototype.isBackwards=function(){var le=this.anchor,ue=this.lead;return le.row>ue.row||le.row==ue.row&&le.column>ue.column},oe.prototype.getRange=function(){var le=this.anchor,ue=this.lead;return this.$isEmpty?ie.fromPoints(ue,ue):this.isBackwards()?ie.fromPoints(ue,le):ie.fromPoints(le,ue)},oe.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},oe.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},oe.prototype.setRange=function(le,ue){var de=ue?le.end:le.start,he=ue?le.start:le.end;this.$setSelection(de.row,de.column,he.row,he.column)},oe.prototype.$setSelection=function(le,ue,de,he){if(!this.$silent){var pe=this.$isEmpty,_e=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(le,ue),this.cursor.setPosition(de,he),this.$isEmpty=!ie.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||pe!=this.$isEmpty||_e)&&this._emit("changeSelection")}},oe.prototype.$moveSelection=function(le){var ue=this.lead;this.$isEmpty&&this.setSelectionAnchor(ue.row,ue.column),le.call(this)},oe.prototype.selectTo=function(le,ue){this.$moveSelection(function(){this.moveCursorTo(le,ue)})},oe.prototype.selectToPosition=function(le){this.$moveSelection(function(){this.moveCursorToPosition(le)})},oe.prototype.moveTo=function(le,ue){this.clearSelection(),this.moveCursorTo(le,ue)},oe.prototype.moveToPosition=function(le){this.clearSelection(),this.moveCursorToPosition(le)},oe.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},oe.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},oe.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},oe.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},oe.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},oe.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},oe.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},oe.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},oe.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},oe.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},oe.prototype.getWordRange=function(le,ue){if(typeof ue>"u"){var de=le||this.lead;le=de.row,ue=de.column}return this.session.getWordRange(le,ue)},oe.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},oe.prototype.selectAWord=function(){var le=this.getCursor(),ue=this.session.getAWordRange(le.row,le.column);this.setSelectionRange(ue)},oe.prototype.getLineRange=function(le,ue){var de=typeof le=="number"?le:this.lead.row,he,pe=this.session.getFoldLine(de);return pe?(de=pe.start.row,he=pe.end.row):he=de,ue===!0?new ie(de,0,he,this.session.getLine(he).length):new ie(de,0,he+1,0)},oe.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},oe.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},oe.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},oe.prototype.wouldMoveIntoSoftTab=function(le,ue,de){var he=le.column,pe=le.column+ue;return de<0&&(he=le.column-ue,pe=le.column),this.session.isTabStop(le)&&this.doc.getLine(le.row).slice(he,pe).split(" ").length-1==ue},oe.prototype.moveCursorLeft=function(){var le=this.lead.getPosition(),ue;if(ue=this.session.getFoldAt(le.row,le.column,-1))this.moveCursorTo(ue.start.row,ue.start.column);else if(le.column===0)le.row>0&&this.moveCursorTo(le.row-1,this.doc.getLine(le.row-1).length);else{var de=this.session.getTabSize();this.wouldMoveIntoSoftTab(le,de,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-de):this.moveCursorBy(0,-1)}},oe.prototype.moveCursorRight=function(){var le=this.lead.getPosition(),ue;if(ue=this.session.getFoldAt(le.row,le.column,1))this.moveCursorTo(ue.end.row,ue.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(ue.column=he)}}this.moveCursorTo(ue.row,ue.column)},oe.prototype.moveCursorFileEnd=function(){var le=this.doc.getLength()-1,ue=this.doc.getLine(le).length;this.moveCursorTo(le,ue)},oe.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},oe.prototype.moveCursorLongWordRight=function(){var le=this.lead.row,ue=this.lead.column,de=this.doc.getLine(le),he=de.substring(ue);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var pe=this.session.getFoldAt(le,ue,1);if(pe){this.moveCursorTo(pe.end.row,pe.end.column);return}if(this.session.nonTokenRe.exec(he)&&(ue+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,he=de.substring(ue)),ue>=de.length){this.moveCursorTo(le,de.length),this.moveCursorRight(),le0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(pe)&&(ue-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(le,ue)},oe.prototype.$shortWordEndIndex=function(le){var ue=0,de,he=/\s/,pe=this.session.tokenRe;if(pe.lastIndex=0,this.session.tokenRe.exec(le))ue=this.session.tokenRe.lastIndex;else{for(;(de=le[ue])&&he.test(de);)ue++;if(ue<1){for(pe.lastIndex=0;(de=le[ue])&&!pe.test(de);)if(pe.lastIndex=0,ue++,he.test(de))if(ue>2){ue--;break}else{for(;(de=le[ue])&&he.test(de);)ue++;if(ue>2)break}}}return pe.lastIndex=0,ue},oe.prototype.moveCursorShortWordRight=function(){var le=this.lead.row,ue=this.lead.column,de=this.doc.getLine(le),he=de.substring(ue),pe=this.session.getFoldAt(le,ue,1);if(pe)return this.moveCursorTo(pe.end.row,pe.end.column);if(ue==de.length){var _e=this.doc.getLength();do le++,he=this.doc.getLine(le);while(le<_e&&/^\s*$/.test(he));/^\s+/.test(he)||(he=""),ue=0}var Ce=this.$shortWordEndIndex(he);this.moveCursorTo(le,ue+Ce)},oe.prototype.moveCursorShortWordLeft=function(){var le=this.lead.row,ue=this.lead.column,de;if(de=this.session.getFoldAt(le,ue,-1))return this.moveCursorTo(de.start.row,de.start.column);var he=this.session.getLine(le).substring(0,ue);if(ue===0){do le--,he=this.doc.getLine(le);while(le>0&&/^\s*$/.test(he));ue=he.length,/\s+$/.test(he)||(he="")}var pe=V.stringReverse(he),_e=this.$shortWordEndIndex(pe);return this.moveCursorTo(le,ue-_e)},oe.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},oe.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},oe.prototype.moveCursorBy=function(le,ue){var de=this.session.documentToScreenPosition(this.lead.row,this.lead.column),he;if(ue===0&&(le!==0&&(this.session.$bidiHandler.isBidiRow(de.row,this.lead.row)?(he=this.session.$bidiHandler.getPosLeft(de.column),de.column=Math.round(he/this.session.$bidiHandler.charWidths[0])):he=de.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?de.column=this.$desiredColumn:this.$desiredColumn=de.column),le!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var pe=this.session.lineWidgets[this.lead.row];le<0?le-=pe.rowsAbove||0:le>0&&(le+=pe.rowCount-(pe.rowsAbove||0))}var _e=this.session.screenToDocumentPosition(de.row+le,de.column,he);le!==0&&ue===0&&_e.row===this.lead.row&&(_e.column,this.lead.column),this.moveCursorTo(_e.row,_e.column+ue,ue===0)},oe.prototype.moveCursorToPosition=function(le){this.moveCursorTo(le.row,le.column)},oe.prototype.moveCursorTo=function(le,ue,de){var he=this.session.getFoldAt(le,ue,1);he&&(le=he.start.row,ue=he.start.column),this.$keepDesiredColumnOnChange=!0;var pe=this.session.getLine(le);/[\uDC00-\uDFFF]/.test(pe.charAt(ue))&&pe.charAt(ue-1)&&(this.lead.row==le&&this.lead.column==ue+1?ue=ue-1:ue=ue+1),this.lead.setPosition(le,ue),this.$keepDesiredColumnOnChange=!1,de||(this.$desiredColumn=null)},oe.prototype.moveCursorToScreen=function(le,ue,de){var he=this.session.screenToDocumentPosition(le,ue);this.moveCursorTo(he.row,he.column,de)},oe.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},oe.prototype.fromOrientedRange=function(le){this.setSelectionRange(le,le.cursor==le.start),this.$desiredColumn=le.desiredColumn||this.$desiredColumn},oe.prototype.toOrientedRange=function(le){var ue=this.getRange();return le?(le.start.column=ue.start.column,le.start.row=ue.start.row,le.end.column=ue.end.column,le.end.row=ue.end.row):le=ue,le.cursor=this.isBackwards()?le.start:le.end,le.desiredColumn=this.$desiredColumn,le},oe.prototype.getRangeOfMovements=function(le){var ue=this.getCursor();try{le(this);var de=this.getCursor();return ie.fromPoints(ue,de)}catch{return ie.fromPoints(ue,ue)}finally{this.moveCursorToPosition(ue)}},oe.prototype.toJSON=function(){if(this.rangeCount)var le=this.ranges.map(function(ue){var de=ue.clone();return de.isBackwards=ue.cursor==ue.start,de});else{var le=this.getRange();le.isBackwards=this.isBackwards()}return le},oe.prototype.fromJSON=function(le){if(le.start==null)if(this.rangeList&&le.length>1){this.toSingleRange(le[0]);for(var ue=le.length;ue--;){var de=ie.fromPoints(le[ue].start,le[ue].end);le[ue].isBackwards&&(de.cursor=de.start),this.addRange(de,!0)}return}else le=le[0];this.rangeList&&this.toSingleRange(le),this.setSelectionRange(le,le.isBackwards)},oe.prototype.isEqual=function(le){if((le.length||this.rangeCount)&&le.length!=this.rangeCount)return!1;if(!le.length||!this.ranges)return this.getRange().isEqual(le);for(var ue=this.ranges.length;ue--;)if(!this.ranges[ue].isEqual(le[ue]))return!1;return!0},oe}();ae.prototype.setSelectionAnchor=ae.prototype.setAnchor,ae.prototype.getSelectionAnchor=ae.prototype.getAnchor,ae.prototype.setSelectionRange=ae.prototype.setRange,$.implement(ae.prototype,re),i.Selection=ae}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(r,i,g){var $=r("./lib/report_error").reportError,V=2e3,re=function(){function ie(ae){this.splitRegex,this.states=ae,this.regExps={},this.matchMappings={};for(var oe in this.states){for(var le=this.states[oe],ue=[],de=0,he=this.matchMappings[oe]={defaultToken:"text"},pe="g",_e=[],Ce=0;Ce1?xe.onMatch=this.$applyToken:xe.onMatch=xe.token),Ne>1&&(/\\\d/.test(xe.regex)?Ie=xe.regex.replace(/\\([0-9]+)/g,function(Oe,$e){return"\\"+(parseInt($e,10)+de+1)}):(Ne=1,Ie=this.removeCapturingGroups(xe.regex)),!xe.splitRegex&&typeof xe.token!="string"&&_e.push(xe)),he[de]=Ce,de+=Ne,ue.push(Ie),xe.onMatch||(xe.onMatch=null)}}ue.length||(he[0]=0,ue.push("$")),_e.forEach(function(Oe){Oe.splitRegex=this.createSplitterRegexp(Oe.regex,pe)},this),this.regExps[oe]=new RegExp("("+ue.join(")|(")+")|($)",pe)}}return ie.prototype.$setMaxTokenCount=function(ae){V=ae|0},ie.prototype.$applyToken=function(ae){var oe=this.splitRegex.exec(ae).slice(1),le=this.token.apply(this,oe);if(typeof le=="string")return[{type:le,value:ae}];for(var ue=[],de=0,he=le.length;dexe){var Fe=ae.substring(xe,Ue-Ve.length);Ne.type==Oe?Ne.value+=Fe:(Ne.type&&Ce.push(Ne),Ne={type:Oe,value:Fe})}for(var ze=0;ze<_e.length-2;ze++)if(_e[ze+1]!==void 0){$e=de[he[ze]],$e.onMatch?Oe=$e.onMatch(Ve,ue,le,ae):Oe=$e.token,$e.next&&(typeof $e.next=="string"?ue=$e.next:ue=$e.next(ue,le),de=this.states[ue],de||(this.reportError("state doesn't exist",ue),ue="start",de=this.states[ue]),he=this.matchMappings[ue],xe=Ue,pe=this.regExps[ue],pe.lastIndex=Ue),$e.consumeLineEnd&&(xe=Ue);break}if(Ve){if(typeof Oe=="string")(!$e||$e.merge!==!1)&&Ne.type===Oe?Ne.value+=Ve:(Ne.type&&Ce.push(Ne),Ne={type:Oe,value:Ve});else if(Oe){Ne.type&&Ce.push(Ne),Ne={type:null,value:""};for(var ze=0;zeV){for(Ie>2*ae.length&&this.reportError("infinite loop with in ace tokenizer",{startState:oe,line:ae});xe1&&le[0]!==ue&&le.unshift("#tmp",ue),{tokens:Ce,state:le.length?le:ue}},ie}();re.prototype.reportError=$,i.Tokenizer=re}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(r,i,g){var $=r("../lib/deep_copy").deepCopy,V;V=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(ae,oe){if(!oe){for(var le in ae)this.$rules[le]=ae[le];return}for(var le in ae){for(var ue=ae[le],de=0;de=this.$rowTokens.length;){if(this.$row+=1,ie||(ie=this.$session.getLength()),this.$row>=ie)return this.$row=ie-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},re.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},re.prototype.getCurrentTokenRow=function(){return this.$row},re.prototype.getCurrentTokenColumn=function(){var ie=this.$rowTokens,ae=this.$tokenIndex,oe=ie[ae].start;if(oe!==void 0)return oe;for(oe=0;ae>0;)ae-=1,oe+=ie[ae].value.length;return oe},re.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},re.prototype.getCurrentTokenRange=function(){var ie=this.$rowTokens[this.$tokenIndex],ae=this.getCurrentTokenColumn();return new $(this.$row,ae,this.$row,ae+ie.value.length)},re}();i.TokenIterator=V}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(r,i,g){var $=r("../../lib/oop"),V=r("../behaviour").Behaviour,re=r("../../token_iterator").TokenIterator,ie=r("../../lib/lang"),ae=["text","paren.rparen","rparen","paren","punctuation.operator"],oe=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],le,ue={},de={'"':'"',"'":"'"},he=function(Ce){var xe=-1;if(Ce.multiSelect&&(xe=Ce.selection.index,ue.rangeCount!=Ce.multiSelect.rangeCount&&(ue={rangeCount:Ce.multiSelect.rangeCount})),ue[xe])return le=ue[xe];le=ue[xe]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},pe=function(Ce,xe,Ie,Ne){var Oe=Ce.end.row-Ce.start.row;return{text:Ie+xe+Ne,selection:[0,Ce.start.column+1,Oe,Ce.end.column+(Oe?0:1)]}},_e;_e=function(Ce){Ce=Ce||{},this.add("braces","insertion",function(xe,Ie,Ne,Oe,$e){var Ve=Ne.getCursorPosition(),Ue=Oe.doc.getLine(Ve.row);if($e=="{"){he(Ne);var Fe=Ne.getSelectionRange(),ze=Oe.doc.getTextRange(Fe),Pt=Oe.getTokenAt(Ve.row,Ve.column);if(ze!==""&&ze!=="{"&&Ne.getWrapBehavioursEnabled())return pe(Fe,ze,"{","}");if(Pt&&/(?:string)\.quasi|\.xml/.test(Pt.type)){var qe=[/tag\-(?:open|name)/,/attribute\-name/];return qe.some(function(hn){return hn.test(Pt.type)})||/(string)\.quasi/.test(Pt.type)&&Pt.value[Ve.column-Pt.start-1]!=="$"?void 0:(_e.recordAutoInsert(Ne,Oe,"}"),{text:"{}",selection:[1,1]})}else if(_e.isSaneInsertion(Ne,Oe))return/[\]\}\)]/.test(Ue[Ve.column])||Ne.inMultiSelectMode||Ce.braces?(_e.recordAutoInsert(Ne,Oe,"}"),{text:"{}",selection:[1,1]}):(_e.recordMaybeInsert(Ne,Oe,"{"),{text:"{",selection:[1,1]})}else if($e=="}"){he(Ne);var Et=Ue.substring(Ve.column,Ve.column+1);if(Et=="}"){var kt=Oe.$findOpeningBracket("}",{column:Ve.column+1,row:Ve.row});if(kt!==null&&_e.isAutoInsertedClosing(Ve,Ue,$e))return _e.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if($e==` `||$e==`\r `){he(Ne);var At="";_e.isMaybeInsertedClosing(Ve,Ue)&&(At=ie.stringRepeat("}",le.maybeInsertedBrackets),_e.clearMaybeInsertedClosing());var Et=Ue.substring(Ve.column,Ve.column+1);if(Et==="}"){var Dt=Oe.findMatchingBracket({row:Ve.row,column:Ve.column+1},"}");if(!Dt)return null;var Lt=this.$getIndent(Oe.getLine(Dt.row))}else if(At)var Lt=this.$getIndent(Ue);else{_e.clearMaybeInsertedClosing();return}var jt=Lt+Oe.getTabString();return{text:` `+jt+` `+Lt+At,selection:[1,jt.length,1,jt.length]}}else _e.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(xe,Ie,Ne,Oe,$e){var Ve=Oe.doc.getTextRange($e);if(!$e.isMultiLine()&&Ve=="{"){he(Ne);var Ue=Oe.doc.getLine($e.start.row),Fe=Ue.substring($e.end.column,$e.end.column+1);if(Fe=="}")return $e.end.column++,$e;le.maybeInsertedBrackets--}}),this.add("parens","insertion",function(xe,Ie,Ne,Oe,$e){if($e=="("){he(Ne);var Ve=Ne.getSelectionRange(),Ue=Oe.doc.getTextRange(Ve);if(Ue!==""&&Ne.getWrapBehavioursEnabled())return pe(Ve,Ue,"(",")");if(_e.isSaneInsertion(Ne,Oe))return _e.recordAutoInsert(Ne,Oe,")"),{text:"()",selection:[1,1]}}else if($e==")"){he(Ne);var Fe=Ne.getCursorPosition(),ze=Oe.doc.getLine(Fe.row),Pt=ze.substring(Fe.column,Fe.column+1);if(Pt==")"){var qe=Oe.$findOpeningBracket(")",{column:Fe.column+1,row:Fe.row});if(qe!==null&&_e.isAutoInsertedClosing(Fe,ze,$e))return _e.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(xe,Ie,Ne,Oe,$e){var Ve=Oe.doc.getTextRange($e);if(!$e.isMultiLine()&&Ve=="("){he(Ne);var Ue=Oe.doc.getLine($e.start.row),Fe=Ue.substring($e.start.column+1,$e.start.column+2);if(Fe==")")return $e.end.column++,$e}}),this.add("brackets","insertion",function(xe,Ie,Ne,Oe,$e){if($e=="["){he(Ne);var Ve=Ne.getSelectionRange(),Ue=Oe.doc.getTextRange(Ve);if(Ue!==""&&Ne.getWrapBehavioursEnabled())return pe(Ve,Ue,"[","]");if(_e.isSaneInsertion(Ne,Oe))return _e.recordAutoInsert(Ne,Oe,"]"),{text:"[]",selection:[1,1]}}else if($e=="]"){he(Ne);var Fe=Ne.getCursorPosition(),ze=Oe.doc.getLine(Fe.row),Pt=ze.substring(Fe.column,Fe.column+1);if(Pt=="]"){var qe=Oe.$findOpeningBracket("]",{column:Fe.column+1,row:Fe.row});if(qe!==null&&_e.isAutoInsertedClosing(Fe,ze,$e))return _e.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(xe,Ie,Ne,Oe,$e){var Ve=Oe.doc.getTextRange($e);if(!$e.isMultiLine()&&Ve=="["){he(Ne);var Ue=Oe.doc.getLine($e.start.row),Fe=Ue.substring($e.start.column+1,$e.start.column+2);if(Fe=="]")return $e.end.column++,$e}}),this.add("string_dquotes","insertion",function(xe,Ie,Ne,Oe,$e){var Ve=Oe.$mode.$quotes||de;if($e.length==1&&Ve[$e]){if(this.lineCommentStart&&this.lineCommentStart.indexOf($e)!=-1)return;he(Ne);var Ue=$e,Fe=Ne.getSelectionRange(),ze=Oe.doc.getTextRange(Fe);if(ze!==""&&(ze.length!=1||!Ve[ze])&&Ne.getWrapBehavioursEnabled())return pe(Fe,ze,Ue,Ue);if(!ze){var Pt=Ne.getCursorPosition(),qe=Oe.doc.getLine(Pt.row),Et=qe.substring(Pt.column-1,Pt.column),kt=qe.substring(Pt.column,Pt.column+1),At=Oe.getTokenAt(Pt.row,Pt.column),Dt=Oe.getTokenAt(Pt.row,Pt.column+1);if(Et=="\\"&&At&&/escape/.test(At.type))return null;var Lt=At&&/string|escape/.test(At.type),jt=!Dt||/string|escape/.test(Dt.type),hn;if(kt==Ue)hn=Lt!==jt,hn&&/string\.end/.test(Dt.type)&&(hn=!1);else{if(Lt&&!jt||Lt&&jt)return null;var vn=Oe.$mode.tokenRe;vn.lastIndex=0;var _n=vn.test(Et);vn.lastIndex=0;var wn=vn.test(kt),bn=Oe.$mode.$pairQuotesAfter,Cn=bn&&bn[Ue]&&bn[Ue].test(Et);if(!Cn&&_n||wn||kt&&!/[\s;,.})\]\\]/.test(kt))return null;var Sn=qe[Pt.column-2];if(Et==Ue&&(Sn==Ue||vn.test(Sn)))return null;hn=!0}return{text:hn?Ue+Ue:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(xe,Ie,Ne,Oe,$e){var Ve=Oe.$mode.$quotes||de,Ue=Oe.doc.getTextRange($e);if(!$e.isMultiLine()&&Ve.hasOwnProperty(Ue)){he(Ne);var Fe=Oe.doc.getLine($e.start.row),ze=Fe.substring($e.start.column+1,$e.start.column+2);if(ze==Ue)return $e.end.column++,$e}}),Ce.closeDocComment!==!1&&this.add("doc comment end","insertion",function(xe,Ie,Ne,Oe,$e){if(xe==="doc-start"&&($e===` `||$e===`\r `)&&Ne.selection.isEmpty()){var Ve=Ne.getCursorPosition();if(Ve.column===0)return;for(var Ue=Oe.doc.getLine(Ve.row),Fe=Oe.doc.getLine(Ve.row+1),ze=Oe.getTokens(Ve.row),Pt=0,qe=0;qe=Ve.column){if(Pt===Ve.column){if(!/\.doc/.test(Et.type))return;if(/\*\//.test(Et.value)){var kt=ze[qe+1];if(!kt||!/\.doc/.test(kt.type))return}}var At=Ve.column-(Pt-Et.value.length),Dt=Et.value.indexOf("*/"),Lt=Et.value.indexOf("/**",Dt>-1?Dt+2:0);if(Lt!==-1&&At>Lt&&At=Dt&&At<=Lt||!/\.doc/.test(Et.type))return;break}}var jt=this.$getIndent(Ue);if(/\s*\*/.test(Fe))return/^\s*\*/.test(Ue)?{text:$e+jt+"* ",selection:[1,2+jt.length,1,2+jt.length]}:{text:$e+jt+" * ",selection:[1,3+jt.length,1,3+jt.length]};if(/\/\*\*/.test(Ue.substring(0,Ve.column)))return{text:$e+jt+" * "+$e+" "+jt+"*/",selection:[1,4+jt.length,1,4+jt.length]}}})},_e.isSaneInsertion=function(Ce,xe){var Ie=Ce.getCursorPosition(),Ne=new re(xe,Ie.row,Ie.column);if(!this.$matchTokenType(Ne.getCurrentToken()||"text",ae)){if(/[)}\]]/.test(Ce.session.getLine(Ie.row)[Ie.column]))return!0;var Oe=new re(xe,Ie.row,Ie.column+1);if(!this.$matchTokenType(Oe.getCurrentToken()||"text",ae))return!1}return Ne.stepForward(),Ne.getCurrentTokenRow()!==Ie.row||this.$matchTokenType(Ne.getCurrentToken()||"text",oe)},_e.$matchTokenType=function(Ce,xe){return xe.indexOf(Ce.type||Ce)>-1},_e.recordAutoInsert=function(Ce,xe,Ie){var Ne=Ce.getCursorPosition(),Oe=xe.doc.getLine(Ne.row);this.isAutoInsertedClosing(Ne,Oe,le.autoInsertedLineEnd[0])||(le.autoInsertedBrackets=0),le.autoInsertedRow=Ne.row,le.autoInsertedLineEnd=Ie+Oe.substr(Ne.column),le.autoInsertedBrackets++},_e.recordMaybeInsert=function(Ce,xe,Ie){var Ne=Ce.getCursorPosition(),Oe=xe.doc.getLine(Ne.row);this.isMaybeInsertedClosing(Ne,Oe)||(le.maybeInsertedBrackets=0),le.maybeInsertedRow=Ne.row,le.maybeInsertedLineStart=Oe.substr(0,Ne.column)+Ie,le.maybeInsertedLineEnd=Oe.substr(Ne.column),le.maybeInsertedBrackets++},_e.isAutoInsertedClosing=function(Ce,xe,Ie){return le.autoInsertedBrackets>0&&Ce.row===le.autoInsertedRow&&Ie===le.autoInsertedLineEnd[0]&&xe.substr(Ce.column)===le.autoInsertedLineEnd},_e.isMaybeInsertedClosing=function(Ce,xe){return le.maybeInsertedBrackets>0&&Ce.row===le.maybeInsertedRow&&xe.substr(Ce.column)===le.maybeInsertedLineEnd&&xe.substr(0,Ce.column)==le.maybeInsertedLineStart},_e.popAutoInsertedClosing=function(){le.autoInsertedLineEnd=le.autoInsertedLineEnd.substr(1),le.autoInsertedBrackets--},_e.clearMaybeInsertedClosing=function(){le&&(le.maybeInsertedBrackets=0,le.maybeInsertedRow=-1)},$.inherits(_e,V),i.CstyleBehaviour=_e}),ace.define("ace/unicode",["require","exports","module"],function(r,i,g){for(var $=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],V=0,re=[],ie=0;ie<$.length;ie+=2)re.push(V+=$[ie]),$[ie+1]&&re.push(45,V+=$[ie+1]);i.wordChars=String.fromCharCode.apply(null,re)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(r,i,g){var $=r("../config"),V=r("../tokenizer").Tokenizer,re=r("./text_highlight_rules").TextHighlightRules,ie=r("./behaviour/cstyle").CstyleBehaviour,ae=r("../unicode"),oe=r("../lib/lang"),le=r("../token_iterator").TokenIterator,ue=r("../range").Range,de;de=function(){this.HighlightRules=re},(function(){this.$defaultBehaviour=new ie,this.tokenRe=new RegExp("^["+ae.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+ae.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new V(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(he,pe,_e,Ce){var xe=pe.doc,Ie=!0,Ne=!0,Oe=1/0,$e=pe.getTabSize(),Ve=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var ze=this.lineCommentStart.map(oe.escapeRegExp).join("|"),Ue=this.lineCommentStart[0];else var ze=oe.escapeRegExp(this.lineCommentStart),Ue=this.lineCommentStart;ze=new RegExp("^(\\s*)(?:"+ze+") ?"),Ve=pe.getUseSoftTabs();var Et=function(wn,bn){var Cn=wn.match(ze);if(Cn){var Sn=Cn[1].length,Tn=Cn[0].length;!Dt(wn,Sn,Tn)&&Cn[0][Tn-1]==" "&&Tn--,xe.removeInLine(bn,Sn,Tn)}},At=Ue+" ",qe=function(wn,bn){(!Ie||/\S/.test(wn))&&(Dt(wn,Oe,Oe)?xe.insertInLine({row:bn,column:Oe},At):xe.insertInLine({row:bn,column:Oe},Ue))},kt=function(wn,bn){return ze.test(wn)},Dt=function(wn,bn,Cn){for(var Sn=0;bn--&&wn.charAt(bn)==" ";)Sn++;if(Sn%$e!=0)return!1;for(var Sn=0;wn.charAt(Cn++)==" ";)Sn++;return $e>2?Sn%$e!=$e-1:Sn%$e==0}}else{if(!this.blockComment)return!1;var Ue=this.blockComment.start,Fe=this.blockComment.end,ze=new RegExp("^(\\s*)(?:"+oe.escapeRegExp(Ue)+")"),Pt=new RegExp("(?:"+oe.escapeRegExp(Fe)+")\\s*$"),qe=function(hn,vn){kt(hn,vn)||(!Ie||/\S/.test(hn))&&(xe.insertInLine({row:vn,column:hn.length},Fe),xe.insertInLine({row:vn,column:Oe},Ue))},Et=function(hn,vn){var _n;(_n=hn.match(Pt))&&xe.removeInLine(vn,hn.length-_n[0].length,hn.length),(_n=hn.match(ze))&&xe.removeInLine(vn,_n[1].length,_n[0].length)},kt=function(hn,vn){if(ze.test(hn))return!0;for(var _n=pe.getTokens(vn),wn=0;wn<_n.length;wn++)if(_n[wn].type==="comment")return!0}}function Lt(hn){for(var vn=_e;vn<=Ce;vn++)hn(xe.getLine(vn),vn)}var jt=1/0;Lt(function(hn,vn){var _n=hn.search(/\S/);_n!==-1?(_nhn.length&&(jt=hn.length)}),Oe==1/0&&(Oe=jt,Ie=!1,Ne=!1),Ve&&Oe%$e!=0&&(Oe=Math.floor(Oe/$e)*$e),Lt(Ne?Et:qe)},this.toggleBlockComment=function(he,pe,_e,Ce){var xe=this.blockComment;if(xe){!xe.start&&xe[0]&&(xe=xe[0]);var Ie=new le(pe,Ce.row,Ce.column),Ne=Ie.getCurrentToken();pe.selection;var Oe=pe.selection.toOrientedRange(),$e,Ve;if(Ne&&/comment/.test(Ne.type)){for(var Ue,Fe;Ne&&/comment/.test(Ne.type);){var ze=Ne.value.indexOf(xe.start);if(ze!=-1){var Pt=Ie.getCurrentTokenRow(),qe=Ie.getCurrentTokenColumn()+ze;Ue=new ue(Pt,qe,Pt,qe+xe.start.length);break}Ne=Ie.stepBackward()}for(var Ie=new le(pe,Ce.row,Ce.column),Ne=Ie.getCurrentToken();Ne&&/comment/.test(Ne.type);){var ze=Ne.value.indexOf(xe.end);if(ze!=-1){var Pt=Ie.getCurrentTokenRow(),qe=Ie.getCurrentTokenColumn()+ze;Fe=new ue(Pt,qe,Pt,qe+xe.end.length);break}Ne=Ie.stepForward()}Fe&&pe.remove(Fe),Ue&&(pe.remove(Ue),$e=Ue.start.row,Ve=-xe.start.length)}else Ve=xe.start.length,$e=_e.start.row,pe.insert(_e.end,xe.end),pe.insert(_e.start,xe.start);Oe.start.row==$e&&(Oe.start.column+=Ve),Oe.end.row==$e&&(Oe.end.column+=Ve),pe.selection.fromOrientedRange(Oe)}},this.getNextLineIndent=function(he,pe,_e){return this.$getIndent(pe)},this.checkOutdent=function(he,pe,_e){return!1},this.autoOutdent=function(he,pe,_e){},this.$getIndent=function(he){return he.match(/^\s*/)[0]},this.createWorker=function(he){return null},this.createModeDelegates=function(he){this.$embeds=[],this.$modes={};for(var pe in he)if(he[pe]){var _e=he[pe],Ce=_e.prototype.$id,xe=$.$modes[Ce];xe||($.$modes[Ce]=xe=new _e),$.$modes[pe]||($.$modes[pe]=xe),this.$embeds.push(pe),this.$modes[pe]=xe}for(var Ie=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],Ne=function($e){(function(Ve){var Ue=Ie[$e],Fe=Ve[Ue];Ve[Ie[$e]]=function(){return this.$delegator(Ue,arguments,Fe)}})(Oe)},Oe=this,pe=0;peae[oe].column&&oe++,de.unshift(oe,0),ae.splice.apply(ae,de),this.$updateRows()}}},re.prototype.$updateRows=function(){var ie=this.session.lineWidgets;if(ie){var ae=!0;ie.forEach(function(oe,le){if(oe)for(ae=!1,oe.row=le;oe.$oldWidget;)oe.$oldWidget.row=le,oe=oe.$oldWidget}),ae&&(this.session.lineWidgets=null)}},re.prototype.$registerLineWidget=function(ie){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var ae=this.session.lineWidgets[ie.row];return ae&&(ie.$oldWidget=ae,ae.el&&ae.el.parentNode&&(ae.el.parentNode.removeChild(ae.el),ae._inDocument=!1)),this.session.lineWidgets[ie.row]=ie,ie},re.prototype.addLineWidget=function(ie){if(this.$registerLineWidget(ie),ie.session=this.session,!this.editor)return ie;var ae=this.editor.renderer;ie.html&&!ie.el&&(ie.el=$.createElement("div"),ie.el.innerHTML=ie.html),ie.text&&!ie.el&&(ie.el=$.createElement("div"),ie.el.textContent=ie.text),ie.el&&($.addCssClass(ie.el,"ace_lineWidgetContainer"),ie.className&&$.addCssClass(ie.el,ie.className),ie.el.style.position="absolute",ie.el.style.zIndex="5",ae.container.appendChild(ie.el),ie._inDocument=!0,ie.coverGutter||(ie.el.style.zIndex="3"),ie.pixelHeight==null&&(ie.pixelHeight=ie.el.offsetHeight)),ie.rowCount==null&&(ie.rowCount=ie.pixelHeight/ae.layerConfig.lineHeight);var oe=this.session.getFoldAt(ie.row,0);if(ie.$fold=oe,oe){var le=this.session.lineWidgets;ie.row==oe.end.row&&!le[oe.start.row]?le[oe.start.row]=ie:ie.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:ie.row}}}),this.$updateRows(),this.renderWidgets(null,ae),this.onWidgetChanged(ie),ie},re.prototype.removeLineWidget=function(ie){if(ie._inDocument=!1,ie.session=null,ie.el&&ie.el.parentNode&&ie.el.parentNode.removeChild(ie.el),ie.editor&&ie.editor.destroy)try{ie.editor.destroy()}catch{}if(this.session.lineWidgets){var ae=this.session.lineWidgets[ie.row];if(ae==ie)this.session.lineWidgets[ie.row]=ie.$oldWidget,ie.$oldWidget&&this.onWidgetChanged(ie.$oldWidget);else for(;ae;){if(ae.$oldWidget==ie){ae.$oldWidget=ie.$oldWidget;break}ae=ae.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:ie.row}}}),this.$updateRows()},re.prototype.getWidgetsAtRow=function(ie){for(var ae=this.session.lineWidgets,oe=ae&&ae[ie],le=[];oe;)le.push(oe),oe=oe.$oldWidget;return le},re.prototype.onWidgetChanged=function(ie){this.session._changedWidgets.push(ie),this.editor&&this.editor.renderer.updateFull()},re.prototype.measureWidgets=function(ie,ae){var oe=this.session._changedWidgets,le=ae.layerConfig;if(!(!oe||!oe.length)){for(var ue=1/0,de=0;de0&&!le[ue];)ue--;this.firstRow=oe.firstRow,this.lastRow=oe.lastRow,ae.$cursorLayer.config=oe;for(var he=ue;he<=de;he++){var pe=le[he];if(!(!pe||!pe.el)){if(pe.hidden){pe.el.style.top=-100-(pe.pixelHeight||0)+"px";continue}pe._inDocument||(pe._inDocument=!0,ae.container.appendChild(pe.el));var _e=ae.$cursorLayer.getPixelPosition({row:he,column:0},!0).top;pe.coverLine||(_e+=oe.lineHeight*this.session.getRowLineCount(pe.row)),pe.el.style.top=_e-oe.offset+"px";var Ce=pe.coverGutter?0:ae.gutterWidth;pe.fixedWidth||(Ce-=ae.scrollLeft),pe.el.style.left=Ce+"px",pe.fullWidth&&pe.screenWidth&&(pe.el.style.minWidth=oe.width+2*oe.padding+"px"),pe.fixedWidth?pe.el.style.right=ae.scrollBar.getWidth()+"px":pe.el.style.right=""}}}},re}();i.LineWidgets=V}),ace.define("ace/apply_delta",["require","exports","module"],function(r,i,g){i.applyDelta=function($,V,re){var ie=V.start.row,ae=V.start.column,oe=$[ie]||"";switch(V.action){case"insert":var le=V.lines;if(le.length===1)$[ie]=oe.substring(0,ae)+V.lines[0]+oe.substring(ae);else{var ue=[ie,1].concat(V.lines);$.splice.apply($,ue),$[ie]=oe.substring(0,ae)+$[ie],$[ie+V.lines.length-1]+=oe.substring(ae)}break;case"remove":var de=V.end.column,he=V.end.row;ie===he?$[ie]=oe.substring(0,ae)+oe.substring(de):$.splice(ie,he-ie+1,oe.substring(0,ae)+$[he].substring(de));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(r,i,g){var $=r("./lib/oop"),V=r("./lib/event_emitter").EventEmitter,re=function(){function oe(le,ue,de){this.$onChange=this.onChange.bind(this),this.attach(le),typeof ue!="number"?this.setPosition(ue.row,ue.column):this.setPosition(ue,de)}return oe.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},oe.prototype.getDocument=function(){return this.document},oe.prototype.onChange=function(le){if(!(le.start.row==le.end.row&&le.start.row!=this.row)&&!(le.start.row>this.row)){var ue=ae(le,{row:this.row,column:this.column},this.$insertRight);this.setPosition(ue.row,ue.column,!0)}},oe.prototype.setPosition=function(le,ue,de){var he;if(de?he={row:le,column:ue}:he=this.$clipPositionToDocument(le,ue),!(this.row==he.row&&this.column==he.column)){var pe={row:this.row,column:this.column};this.row=he.row,this.column=he.column,this._signal("change",{old:pe,value:he})}},oe.prototype.detach=function(){this.document.off("change",this.$onChange)},oe.prototype.attach=function(le){this.document=le||this.document,this.document.on("change",this.$onChange)},oe.prototype.$clipPositionToDocument=function(le,ue){var de={};return le>=this.document.getLength()?(de.row=Math.max(0,this.document.getLength()-1),de.column=this.document.getLine(de.row).length):le<0?(de.row=0,de.column=0):(de.row=le,de.column=Math.min(this.document.getLine(de.row).length,Math.max(0,ue))),ue<0&&(de.column=0),de},oe}();re.prototype.$insertRight=!1,$.implement(re.prototype,V);function ie(oe,le,ue){var de=ue?oe.column<=le.column:oe.column=he&&(ue=he-1,de=void 0);var pe=this.getLine(ue);return de==null&&(de=pe.length),de=Math.min(Math.max(de,0),pe.length),{row:ue,column:de}},le.prototype.clonePos=function(ue){return{row:ue.row,column:ue.column}},le.prototype.pos=function(ue,de){return{row:ue,column:de}},le.prototype.$clipPosition=function(ue){var de=this.getLength();return ue.row>=de?(ue.row=Math.max(0,de-1),ue.column=this.getLine(de-1).length):(ue.row=Math.max(0,ue.row),ue.column=Math.min(Math.max(ue.column,0),this.getLine(ue.row).length)),ue},le.prototype.insertFullLines=function(ue,de){ue=Math.min(Math.max(ue,0),this.getLength());var he=0;ue0,pe=de=0&&this.applyDelta({start:this.pos(ue,this.getLine(ue).length),end:this.pos(ue+1,0),action:"remove",lines:["",""]})},le.prototype.replace=function(ue,de){if(ue instanceof ie||(ue=ie.fromPoints(ue.start,ue.end)),de.length===0&&ue.isEmpty())return ue.start;if(de==this.getTextRange(ue))return ue.end;this.remove(ue);var he;return de?he=this.insert(ue.start,de):he=ue.start,he},le.prototype.applyDeltas=function(ue){for(var de=0;de=0;de--)this.revertDelta(ue[de])},le.prototype.applyDelta=function(ue,de){var he=ue.action=="insert";(he?ue.lines.length<=1&&!ue.lines[0]:!ie.comparePoints(ue.start,ue.end))||(he&&ue.lines.length>2e4?this.$splitAndapplyLargeDelta(ue,2e4):(V(this.$lines,ue,de),this._signal("change",ue)))},le.prototype.$safeApplyDelta=function(ue){var de=this.$lines.length;(ue.action=="remove"&&ue.start.row20){le.running=setTimeout(le.$worker,20);break}}le.currentLine=de,he==-1&&(he=de),_e<=he&&le.fireUpdateEvent(_e,he)}}}return ie.prototype.setTokenizer=function(ae){this.tokenizer=ae,this.lines=[],this.states=[],this.start(0)},ie.prototype.setDocument=function(ae){this.doc=ae,this.lines=[],this.states=[],this.stop()},ie.prototype.fireUpdateEvent=function(ae,oe){var le={first:ae,last:oe};this._signal("update",{data:le})},ie.prototype.start=function(ae){this.currentLine=Math.min(ae||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},ie.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},ie.prototype.$updateOnChange=function(ae){var oe=ae.start.row,le=ae.end.row-oe;if(le===0)this.lines[oe]=null;else if(ae.action=="remove")this.lines.splice(oe,le+1,null),this.states.splice(oe,le+1,null);else{var ue=Array(le+1);ue.unshift(oe,1),this.lines.splice.apply(this.lines,ue),this.states.splice.apply(this.states,ue)}this.currentLine=Math.min(oe,this.currentLine,this.doc.getLength()),this.stop()},ie.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},ie.prototype.getTokens=function(ae){return this.lines[ae]||this.$tokenizeRow(ae)},ie.prototype.getState=function(ae){return this.currentLine==ae&&this.$tokenizeRow(ae),this.states[ae]||"start"},ie.prototype.$tokenizeRow=function(ae){var oe=this.doc.getLine(ae),le=this.states[ae-1],ue=this.tokenizer.getLineTokens(oe,le,ae);return this.states[ae]+""!=ue.state+""?(this.states[ae]=ue.state,this.lines[ae+1]=null,this.currentLine>ae+1&&(this.currentLine=ae+1)):this.currentLine==ae&&(this.currentLine=ae+1),this.lines[ae]=ue.tokens},ie.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},ie}();$.implement(re.prototype,V),i.BackgroundTokenizer=re}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(r,i,g){var $=r("./lib/lang"),V=r("./range").Range,re=function(){function ie(ae,oe,le){le===void 0&&(le="text"),this.setRegexp(ae),this.clazz=oe,this.type=le,this.docLen=0}return ie.prototype.setRegexp=function(ae){this.regExp+""!=ae+""&&(this.regExp=ae,this.cache=[])},ie.prototype.update=function(ae,oe,le,ue){if(this.regExp){for(var de=ue.firstRow,he=ue.lastRow,pe={},_e=le.$editor&&le.$editor.$search,Ce=_e&&_e.$isMultilineSearch(le.$editor.getLastSearchOptions()),xe=de;xe<=he;xe++){var Ie=this.cache[xe];if(Ie==null||le.getValue().length!=this.docLen){if(Ce){Ie=[];var Ne=_e.$multiLineForward(le,this.regExp,xe,he);if(Ne){var Oe=Ne.endRow<=he?Ne.endRow-1:he;Oe>xe&&(xe=Oe),Ie.push(new V(Ne.startRow,Ne.startCol,Ne.endRow,Ne.endCol))}Ie.length>this.MAX_RANGES&&(Ie=Ie.slice(0,this.MAX_RANGES))}else Ie=$.getMatchOffsets(le.getLine(xe),this.regExp),Ie.length>this.MAX_RANGES&&(Ie=Ie.slice(0,this.MAX_RANGES)),Ie=Ie.map(function(Fe){return new V(xe,Fe.offset,xe,Fe.offset+Fe.length)});this.cache[xe]=Ie.length?Ie:""}if(Ie.length!==0)for(var $e=Ie.length;$e--;){var Ve=Ie[$e].toScreenRange(le),Ue=Ve.toString();pe[Ue]||(pe[Ue]=!0,oe.drawSingleLineMarker(ae,Ve,this.clazz,ue))}}this.docLen=le.getValue().length}},ie}();re.prototype.MAX_RANGES=500,i.SearchHighlight=re}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(r,i,g){var $=function(){function Oe(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return Oe.prototype.addSession=function($e){this.$session=$e},Oe.prototype.add=function($e,Ve,Ue){if(!this.$fromUndo&&$e!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),Ve===!1||!this.lastDeltas){this.lastDeltas=[];var Fe=this.$undoStack.length;Fe>this.$undoDepth-1&&this.$undoStack.splice(0,Fe-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),$e.id=this.$rev=++this.$maxRev}($e.action=="remove"||$e.action=="insert")&&(this.$lastDelta=$e),this.lastDeltas.push($e)}},Oe.prototype.addSelection=function($e,Ve){this.selections.push({value:$e,rev:Ve||this.$rev})},Oe.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},Oe.prototype.markIgnored=function($e,Ve){Ve==null&&(Ve=this.$rev+1);for(var Ue=this.$undoStack,Fe=Ue.length;Fe--;){var ze=Ue[Fe][0];if(ze.id<=$e)break;ze.id0},Oe.prototype.canRedo=function(){return this.$redoStack.length>0},Oe.prototype.bookmark=function($e){$e==null&&($e=this.$rev),this.mark=$e},Oe.prototype.isAtBookmark=function(){return this.$rev===this.mark},Oe.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},Oe.prototype.fromJSON=function($e){this.reset(),this.$undoStack=$e.$undoStack,this.$redoStack=$e.$redoStack},Oe.prototype.$prettyPrint=function($e){return $e?le($e):le(this.$undoStack)+` --- `+le(this.$redoStack)},Oe}();$.prototype.hasUndo=$.prototype.canUndo,$.prototype.hasRedo=$.prototype.canRedo,$.prototype.isClean=$.prototype.isAtBookmark,$.prototype.markClean=$.prototype.bookmark;function V(Oe,$e){for(var Ve=$e;Ve--;){var Ue=Oe[Ve];if(Ue&&!Ue[0].ignore){for(;Ve<$e-1;){var Fe=he(Oe[Ve],Oe[Ve+1]);Oe[Ve]=Fe[0],Oe[Ve+1]=Fe[1],Ve++}return!0}}}var re=r("./range").Range,ie=re.comparePoints;re.comparePoints;function ae(Oe){return{row:Oe.row,column:Oe.column}}function oe(Oe){return{start:ae(Oe.start),end:ae(Oe.end),action:Oe.action,lines:Oe.lines.slice()}}function le(Oe){if(Oe=Oe||this,Array.isArray(Oe))return Oe.map(le).join(` `);var $e="";return Oe.action?($e=Oe.action=="insert"?"+":"-",$e+="["+Oe.lines+"]"):Oe.value&&(Array.isArray(Oe.value)?$e=Oe.value.map(ue).join(` `):$e=ue(Oe.value)),Oe.start&&($e+=ue(Oe)),(Oe.id||Oe.rev)&&($e+=" ("+(Oe.id||Oe.rev)+")"),$e}function ue(Oe){return Oe.start.row+":"+Oe.start.column+"=>"+Oe.end.row+":"+Oe.end.column}function de(Oe,$e){var Ve=Oe.action=="insert",Ue=$e.action=="insert";if(Ve&&Ue)if(ie($e.start,Oe.end)>=0)_e($e,Oe,-1);else if(ie($e.start,Oe.start)<=0)_e(Oe,$e,1);else return null;else if(Ve&&!Ue)if(ie($e.start,Oe.end)>=0)_e($e,Oe,-1);else if(ie($e.end,Oe.start)<=0)_e(Oe,$e,-1);else return null;else if(!Ve&&Ue)if(ie($e.start,Oe.start)>=0)_e($e,Oe,1);else if(ie($e.start,Oe.start)<=0)_e(Oe,$e,1);else return null;else if(!Ve&&!Ue)if(ie($e.start,Oe.start)>=0)_e($e,Oe,1);else if(ie($e.end,Oe.start)<=0)_e(Oe,$e,-1);else return null;return[$e,Oe]}function he(Oe,$e){for(var Ve=Oe.length;Ve--;)for(var Ue=0;Ue<$e.length;Ue++)if(!de(Oe[Ve],$e[Ue])){for(;Ve=0?_e(Oe,$e,-1):(ie(Oe.start,$e.start)<=0||_e(Oe,re.fromPoints($e.start,Oe.start),-1),_e($e,Oe,1));else if(!Ve&&Ue)ie($e.start,Oe.end)>=0?_e($e,Oe,-1):(ie($e.start,Oe.start)<=0||_e($e,re.fromPoints(Oe.start,$e.start),-1),_e(Oe,$e,1));else if(!Ve&&!Ue)if(ie($e.start,Oe.end)>=0)_e($e,Oe,-1);else if(ie($e.end,Oe.start)<=0)_e(Oe,$e,-1);else{var Fe,ze;return ie(Oe.start,$e.start)<0&&(Fe=Oe,Oe=xe(Oe,$e.start)),ie(Oe.end,$e.end)>0&&(ze=xe(Oe,$e.end)),Ce($e.end,Oe.start,Oe.end,-1),ze&&!Fe&&(Oe.lines=ze.lines,Oe.start=ze.start,Oe.end=ze.end,ze=Oe),[$e,Fe,ze].filter(Boolean)}return[$e,Oe]}function _e(Oe,$e,Ve){Ce(Oe.start,$e.start,$e.end,Ve),Ce(Oe.end,$e.start,$e.end,Ve)}function Ce(Oe,$e,Ve,Ue){Oe.row==(Ue==1?$e:Ve).row&&(Oe.column+=Ue*(Ve.column-$e.column)),Oe.row+=Ue*(Ve.row-$e.row)}function xe(Oe,$e){var Ve=Oe.lines,Ue=Oe.end;Oe.end=ae($e);var Fe=Oe.end.row-Oe.start.row,ze=Ve.splice(Fe,Ve.length),Pt=Fe?$e.column:$e.column-Oe.start.column;Ve.push(ze[0].substring(0,Pt)),ze[0]=ze[0].substr(Pt);var qe={start:ae($e),end:Ue,lines:ze,action:Oe.action};return qe}function Ie(Oe,$e){$e=oe($e);for(var Ve=Oe.length;Ve--;){for(var Ue=Oe[Ve],Fe=0;Fethis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(ie),this.folds.sort(function(ae,oe){return-ae.range.compareEnd(oe.start.row,oe.start.column)}),this.range.compareEnd(ie.start.row,ie.start.column)>0?(this.end.row=ie.end.row,this.end.column=ie.end.column):this.range.compareStart(ie.end.row,ie.end.column)<0&&(this.start.row=ie.start.row,this.start.column=ie.start.column)}else if(ie.start.row==this.end.row)this.folds.push(ie),this.end.row=ie.end.row,this.end.column=ie.end.column;else if(ie.end.row==this.start.row)this.folds.unshift(ie),this.start.row=ie.start.row,this.start.column=ie.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");ie.foldLine=this},re.prototype.containsRow=function(ie){return ie>=this.start.row&&ie<=this.end.row},re.prototype.walk=function(ie,ae,oe){var le=0,ue=this.folds,de,he,pe,_e=!0;ae==null&&(ae=this.end.row,oe=this.end.column);for(var Ce=0;Ce0)){var _e=V(ae,he.start);return pe===0?oe&&_e!==0?-de-2:de:_e>0||_e===0&&!oe?de:-de-1}}return-de-1},ie.prototype.add=function(ae){var oe=!ae.isEmpty(),le=this.pointIndex(ae.start,oe);le<0&&(le=-le-1);var ue=this.pointIndex(ae.end,oe,le);return ue<0?ue=-ue-1:ue++,this.ranges.splice(le,ue-le,ae)},ie.prototype.addList=function(ae){for(var oe=[],le=ae.length;le--;)oe.push.apply(oe,this.add(ae[le]));return oe},ie.prototype.substractPoint=function(ae){var oe=this.pointIndex(ae);if(oe>=0)return this.ranges.splice(oe,1)},ie.prototype.merge=function(){var ae=[],oe=this.ranges;oe=oe.sort(function(pe,_e){return V(pe.start,_e.start)});for(var le=oe[0],ue,de=1;de=0},ie.prototype.containsPoint=function(ae){return this.pointIndex(ae)>=0},ie.prototype.rangeAtPoint=function(ae){var oe=this.pointIndex(ae);if(oe>=0)return this.ranges[oe]},ie.prototype.clipRows=function(ae,oe){var le=this.ranges;if(le[0].start.row>oe||le[le.length-1].start.row=ue)break}if(ae.action=="insert")for(var xe=de-ue,Ie=-oe.column+le.column;pe<_e;pe++){var Ce=he[pe];if(Ce.start.row>ue)break;if(Ce.start.row==ue&&Ce.start.column>=oe.column&&(Ce.start.column==oe.column&&this.$bias<=0||(Ce.start.column+=Ie,Ce.start.row+=xe)),Ce.end.row==ue&&Ce.end.column>=oe.column){if(Ce.end.column==oe.column&&this.$bias<0)continue;Ce.end.column==oe.column&&Ie>0&&pe<_e-1&&Ce.end.column>Ce.start.column&&Ce.end.column==he[pe+1].start.column&&(Ce.end.column-=Ie),Ce.end.column+=Ie,Ce.end.row+=xe}}else for(var xe=ue-de,Ie=oe.column-le.column;pe<_e;pe++){var Ce=he[pe];if(Ce.start.row>de)break;Ce.end.rowoe.column)&&(Ce.end.column=oe.column,Ce.end.row=oe.row):(Ce.end.column+=Ie,Ce.end.row+=xe):Ce.end.row>de&&(Ce.end.row+=xe),Ce.start.rowoe.column)&&(Ce.start.column=oe.column,Ce.start.row=oe.row):(Ce.start.column+=Ie,Ce.start.row+=xe):Ce.start.row>de&&(Ce.start.row+=xe)}if(xe!=0&&pe<_e)for(;pe<_e;pe++){var Ce=he[pe];Ce.start.row+=xe,Ce.end.row+=xe}},ie}();re.prototype.comparePoints=V,i.RangeList=re}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(r,i,g){var $=this&&this.__extends||function(){var ue=function(de,he){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,_e){pe.__proto__=_e}||function(pe,_e){for(var Ce in _e)Object.prototype.hasOwnProperty.call(_e,Ce)&&(pe[Ce]=_e[Ce])},ue(de,he)};return function(de,he){if(typeof he!="function"&&he!==null)throw new TypeError("Class extends value "+String(he)+" is not a constructor or null");ue(de,he);function pe(){this.constructor=de}de.prototype=he===null?Object.create(he):(pe.prototype=he.prototype,new pe)}}(),V=r("../range_list").RangeList,re=function(ue){$(de,ue);function de(he,pe){var _e=ue.call(this)||this;return _e.foldLine=null,_e.placeholder=pe,_e.range=he,_e.start=he.start,_e.end=he.end,_e.sameRow=he.start.row==he.end.row,_e.subFolds=_e.ranges=[],_e}return de.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},de.prototype.setFoldLine=function(he){this.foldLine=he,this.subFolds.forEach(function(pe){pe.setFoldLine(he)})},de.prototype.clone=function(){var he=this.range.clone(),pe=new de(he,this.placeholder);return this.subFolds.forEach(function(_e){pe.subFolds.push(_e.clone())}),pe.collapseChildren=this.collapseChildren,pe},de.prototype.addSubFold=function(he){if(!this.range.isEqual(he)){ae(he,this.start);for(var Ie=he.start.row,Ne=he.start.column,pe=0,_e=-1;pe=le)return pe;if(pe.end.row>le)return null}return null},this.getNextFoldLine=function(le,ue){var de=this.$foldData,he=0;for(ue&&(he=de.indexOf(ue)),he==-1&&(he=0),he;he=le)return pe}return null},this.getFoldedRowCount=function(le,ue){for(var de=this.$foldData,he=ue-le+1,pe=0;pe=ue){xe=le?he-=ue-xe:he=0);break}else Ce>=le&&(xe>=le?he-=Ce-xe:he-=Ce-le+1)}return he},this.$addFoldLine=function(le){return this.$foldData.push(le),this.$foldData.sort(function(ue,de){return ue.start.row-de.start.row}),le},this.addFold=function(le,ue){var de=this.$foldData,he=!1,pe;le instanceof re?pe=le:(pe=new re(ue,le),pe.collapseChildren=ue.collapseChildren),this.$clipRangeToDocument(pe.range);var _e=pe.start.row,Ce=pe.start.column,xe=pe.end.row,Ie=pe.end.column,Ne=this.getFoldAt(_e,Ce,1),Oe=this.getFoldAt(xe,Ie,-1);if(Ne&&Oe==Ne)return Ne.addSubFold(pe);Ne&&!Ne.range.isStart(_e,Ce)&&this.removeFold(Ne),Oe&&!Oe.range.isEnd(xe,Ie)&&this.removeFold(Oe);var $e=this.getFoldsInRange(pe.range);$e.length>0&&(this.removeFolds($e),pe.collapseChildren||$e.forEach(function(ze){pe.addSubFold(ze)}));for(var Ve=0;Ve0&&this.foldAll(le.start.row+1,le.end.row,le.collapseChildren-1),le.subFolds=[]},this.expandFolds=function(le){le.forEach(function(ue){this.expandFold(ue)},this)},this.unfold=function(le,ue){var de,he;if(le==null)de=new $(0,0,this.getLength(),0),ue==null&&(ue=!0);else if(typeof le=="number")de=new $(le,0,le,this.getLine(le).length);else if("row"in le)de=$.fromPoints(le,le);else{if(Array.isArray(le))return he=[],le.forEach(function(_e){he=he.concat(this.unfold(_e))},this),he;de=le}he=this.getFoldsInRangeList(de);for(var pe=he;he.length==1&&$.comparePoints(he[0].start,de.start)<0&&$.comparePoints(he[0].end,de.end)>0;)this.expandFolds(he),he=this.getFoldsInRangeList(de);if(ue!=!1?this.removeFolds(he):this.expandFolds(he),pe.length)return pe},this.isRowFolded=function(le,ue){return!!this.getFoldLine(le,ue)},this.getRowFoldEnd=function(le,ue){var de=this.getFoldLine(le,ue);return de?de.end.row:le},this.getRowFoldStart=function(le,ue){var de=this.getFoldLine(le,ue);return de?de.start.row:le},this.getFoldDisplayLine=function(le,ue,de,he,pe){he==null&&(he=le.start.row),pe==null&&(pe=0),ue==null&&(ue=le.end.row),de==null&&(de=this.getLine(ue).length);var _e=this.doc,Ce="";return le.walk(function(xe,Ie,Ne,Oe){if(!(IeNe)break;while(pe&&Ce.test(pe.type));pe=he.stepBackward()}else pe=he.getCurrentToken();return xe.end.row=he.getCurrentTokenRow(),xe.end.column=he.getCurrentTokenColumn(),xe.start.row==xe.end.row&&xe.start.column>xe.end.column?void 0:xe}},this.foldAll=function(le,ue,de,he){de==null&&(de=1e5);var pe=this.foldWidgets;if(pe){ue=ue||this.getLength(),le=le||0;for(var _e=le;_e=le&&(_e=Ce.end.row,Ce.collapseChildren=de,this.addFold("...",Ce))}}},this.foldToLevel=function(le){for(this.foldAll();le-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var le=this;this.foldAll(null,null,null,function(ue){for(var de=le.getTokens(ue),he=0;he=0;){var _e=de[he];if(_e==null&&(_e=de[he]=this.getFoldWidget(he)),_e=="start"){var Ce=this.getFoldWidgetRange(he);if(pe||(pe=Ce),Ce&&Ce.end.row>=le)break}he--}return{range:he!==-1&&Ce,firstRange:pe}},this.onFoldWidgetClick=function(le,ue){ue instanceof ae&&(ue=ue.domEvent);var de={children:ue.shiftKey,all:ue.ctrlKey||ue.metaKey,siblings:ue.altKey},he=this.$toggleFoldWidget(le,de);if(!he){var pe=ue.target||ue.srcElement;pe&&/ace_fold-widget/.test(pe.className)&&(pe.className+=" ace_invalid")}},this.$toggleFoldWidget=function(le,ue){if(this.getFoldWidget){var de=this.getFoldWidget(le),he=this.getLine(le),pe=de==="end"?-1:1,_e=this.getFoldAt(le,pe===-1?0:he.length,pe);if(_e)return ue.children||ue.all?this.removeFold(_e):this.expandFold(_e),_e;var Ce=this.getFoldWidgetRange(le,!0);if(Ce&&!Ce.isMultiLine()&&(_e=this.getFoldAt(Ce.start.row,Ce.start.column,1),_e&&Ce.isEqual(_e.range)))return this.removeFold(_e),_e;if(ue.siblings){var xe=this.getParentFoldRangeData(le);if(xe.range)var Ie=xe.range.start.row+1,Ne=xe.range.end.row;this.foldAll(Ie,Ne,ue.all?1e4:0)}else ue.children?(Ne=Ce?Ce.end.row:this.getLength(),this.foldAll(le+1,Ne,ue.all?1e4:0)):Ce&&(ue.all&&(Ce.collapseChildren=1e4),this.addFold("...",Ce));return Ce}},this.toggleFoldWidget=function(le){var ue=this.selection.getCursor().row;ue=this.getRowFoldStart(ue);var de=this.$toggleFoldWidget(ue,{});if(!de){var he=this.getParentFoldRangeData(ue,!0);if(de=he.range||he.firstRange,de){ue=de.start.row;var pe=this.getFoldAt(ue,this.getLine(ue).length,1);pe?this.removeFold(pe):this.addFold("...",de)}}},this.updateFoldWidgets=function(le){var ue=le.start.row,de=le.end.row-ue;if(de===0)this.foldWidgets[ue]=null;else if(le.action=="remove")this.foldWidgets.splice(ue,de+1,null);else{var he=Array(de+1);he.unshift(ue,1),this.foldWidgets.splice.apply(this.foldWidgets,he)}},this.tokenizerUpdateFoldWidgets=function(le){var ue=le.data;ue.first!=ue.last&&this.foldWidgets.length>ue.first&&this.foldWidgets.splice(ue.first,this.foldWidgets.length)}}i.Folding=oe}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(r,i,g){var $=r("../token_iterator").TokenIterator,V=r("../range").Range;function re(){this.findMatchingBracket=function(ie,ae){if(ie.column==0)return null;var oe=ae||this.getLine(ie.row).charAt(ie.column-1);if(oe=="")return null;var le=oe.match(/([\(\[\{])|([\)\]\}])/);return le?le[1]?this.$findClosingBracket(le[1],ie):this.$findOpeningBracket(le[2],ie):null},this.getBracketRange=function(ie){var ae=this.getLine(ie.row),oe=!0,le,ue=ae.charAt(ie.column-1),de=ue&&ue.match(/([\(\[\{])|([\)\]\}])/);if(de||(ue=ae.charAt(ie.column),ie={row:ie.row,column:ie.column+1},de=ue&&ue.match(/([\(\[\{])|([\)\]\}])/),oe=!1),!de)return null;if(de[1]){var he=this.$findClosingBracket(de[1],ie);if(!he)return null;le=V.fromPoints(ie,he),oe||(le.end.column++,le.start.column--),le.cursor=le.end}else{var he=this.$findOpeningBracket(de[2],ie);if(!he)return null;le=V.fromPoints(he,ie),oe||(le.start.column++,le.end.column--),le.cursor=le.start}return le},this.getMatchingBracketRanges=function(ie,ae){var oe=this.getLine(ie.row),le=/([\(\[\{])|([\)\]\}])/,ue=!ae&&oe.charAt(ie.column-1),de=ue&&ue.match(le);if(de||(ue=(ae===void 0||ae)&&oe.charAt(ie.column),ie={row:ie.row,column:ie.column+1},de=ue&&ue.match(le)),!de)return null;var he=new V(ie.row,ie.column-1,ie.row,ie.column),pe=de[1]?this.$findClosingBracket(de[1],ie):this.$findOpeningBracket(de[2],ie);if(!pe)return[he];var _e=new V(pe.row,pe.column,pe.row,pe.column+1);return[he,_e]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(ie,ae,oe){var le=this.$brackets[ie],ue=1,de=new $(this,ae.row,ae.column),he=de.getCurrentToken();if(he||(he=de.stepForward()),!!he){oe||(oe=new RegExp("(\\.?"+he.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var pe=ae.column-de.getCurrentTokenColumn()-2,_e=he.value;;){for(;pe>=0;){var Ce=_e.charAt(pe);if(Ce==le){if(ue-=1,ue==0)return{row:de.getCurrentTokenRow(),column:pe+de.getCurrentTokenColumn()}}else Ce==ie&&(ue+=1);pe-=1}do he=de.stepBackward();while(he&&!oe.test(he.type));if(he==null)break;_e=he.value,pe=_e.length-1}return null}},this.$findClosingBracket=function(ie,ae,oe){var le=this.$brackets[ie],ue=1,de=new $(this,ae.row,ae.column),he=de.getCurrentToken();if(he||(he=de.stepForward()),!!he){oe||(oe=new RegExp("(\\.?"+he.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var pe=ae.column-de.getCurrentTokenColumn();;){for(var _e=he.value,Ce=_e.length;pe"?le=!0:ae.type.indexOf("tag-name")!==-1&&(oe=!0));while(ae&&!oe);return ae},this.$findClosingTag=function(ie,ae){var oe,le=ae.value,ue=ae.value,de=0,he=new V(ie.getCurrentTokenRow(),ie.getCurrentTokenColumn(),ie.getCurrentTokenRow(),ie.getCurrentTokenColumn()+1);ae=ie.stepForward();var pe=new V(ie.getCurrentTokenRow(),ie.getCurrentTokenColumn(),ie.getCurrentTokenRow(),ie.getCurrentTokenColumn()+ae.value.length),_e=!1;do{if(oe=ae,oe.type.indexOf("tag-close")!==-1&&!_e){var Ce=new V(ie.getCurrentTokenRow(),ie.getCurrentTokenColumn(),ie.getCurrentTokenRow(),ie.getCurrentTokenColumn()+1);_e=!0}if(ae=ie.stepForward(),ae){if(ae.value===">"&&!_e){var Ce=new V(ie.getCurrentTokenRow(),ie.getCurrentTokenColumn(),ie.getCurrentTokenRow(),ie.getCurrentTokenColumn()+1);_e=!0}if(ae.type.indexOf("tag-name")!==-1){if(le=ae.value,ue===le){if(oe.value==="<")de++;else if(oe.value==="")var Ne=new V(ie.getCurrentTokenRow(),ie.getCurrentTokenColumn(),ie.getCurrentTokenRow(),ie.getCurrentTokenColumn()+1);else return}}}else if(ue===le&&ae.value==="/>"&&(de--,de<0))var xe=new V(ie.getCurrentTokenRow(),ie.getCurrentTokenColumn(),ie.getCurrentTokenRow(),ie.getCurrentTokenColumn()+2),Ie=xe,Ne=Ie,Ce=new V(pe.end.row,pe.end.column,pe.end.row,pe.end.column+1)}}while(ae&&de>=0);if(he&&Ce&&xe&&Ne&&pe&&Ie)return{openTag:new V(he.start.row,he.start.column,Ce.end.row,Ce.end.column),closeTag:new V(xe.start.row,xe.start.column,Ne.end.row,Ne.end.column),openTagName:pe,closeTagName:Ie}},this.$findOpeningTag=function(ie,ae){var oe=ie.getCurrentToken(),le=ae.value,ue=0,de=ie.getCurrentTokenRow(),he=ie.getCurrentTokenColumn(),pe=he+2,_e=new V(de,he,de,pe);ie.stepForward();var Ce=new V(ie.getCurrentTokenRow(),ie.getCurrentTokenColumn(),ie.getCurrentTokenRow(),ie.getCurrentTokenColumn()+ae.value.length);if(ae.type.indexOf("tag-close")===-1&&(ae=ie.stepForward()),!(!ae||ae.value!==">")){var xe=new V(ie.getCurrentTokenRow(),ie.getCurrentTokenColumn(),ie.getCurrentTokenRow(),ie.getCurrentTokenColumn()+1);ie.stepBackward(),ie.stepBackward();do if(ae=oe,de=ie.getCurrentTokenRow(),he=ie.getCurrentTokenColumn(),pe=he+ae.value.length,oe=ie.stepBackward(),ae){if(ae.type.indexOf("tag-name")!==-1){if(le===ae.value)if(oe.value==="<"){if(ue++,ue>0){var Ie=new V(de,he,de,pe),Ne=new V(ie.getCurrentTokenRow(),ie.getCurrentTokenColumn(),ie.getCurrentTokenRow(),ie.getCurrentTokenColumn()+1);do ae=ie.stepForward();while(ae&&ae.value!==">");var Oe=new V(ie.getCurrentTokenRow(),ie.getCurrentTokenColumn(),ie.getCurrentTokenRow(),ie.getCurrentTokenColumn()+1)}}else oe.value===""){for(var $e=0,Ve=oe;Ve;){if(Ve.type.indexOf("tag-name")!==-1&&Ve.value===le){ue--;break}else if(Ve.value==="<")break;Ve=ie.stepBackward(),$e++}for(var Ue=0;Ue<$e;Ue++)ie.stepForward()}}while(oe&&ue<=0);if(Ne&&Oe&&_e&&xe&&Ie&&Ce)return{openTag:new V(Ne.start.row,Ne.start.column,Oe.end.row,Oe.end.column),closeTag:new V(_e.start.row,_e.start.column,xe.end.row,xe.end.column),openTagName:Ie,closeTagName:Ce}}}}i.BracketMatch=re}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(r,i,g){var $=r("./lib/oop"),V=r("./lib/lang"),re=r("./bidihandler").BidiHandler,ie=r("./config"),ae=r("./lib/event_emitter").EventEmitter,oe=r("./selection").Selection,le=r("./mode/text").Mode,ue=r("./range").Range,de=r("./line_widgets").LineWidgets,he=r("./document").Document,pe=r("./background_tokenizer").BackgroundTokenizer,_e=r("./search_highlight").SearchHighlight,Ce=r("./undomanager").UndoManager,xe=function(){function qe(Et,kt){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++qe.$uid,this.$foldData.toString=function(){return this.join(` `)},this.$gutterCustomWidgets={},this.bgTokenizer=new pe(new le().getTokenizer(),this);var At=this;this.bgTokenizer.on("update",function(Dt){At._signal("tokenizerUpdate",Dt)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof Et!="object"||!Et.getLine)&&(Et=new he(Et)),this.setDocument(Et),this.selection=new oe(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new re(this),ie.resetOptions(this),this.setMode(kt),ie._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return qe.prototype.$initOperationListeners=function(){var Et=this;this.curOp=null,this.on("change",function(){Et.curOp||(Et.startOperation(),Et.curOp.selectionBefore=Et.$lastSel),Et.curOp.docChanged=!0},!0),this.on("changeSelection",function(){Et.curOp||(Et.startOperation(),Et.curOp.selectionBefore=Et.$lastSel),Et.curOp.selectionChanged=!0},!0),this.$operationResetTimer=V.delayedCall(this.endOperation.bind(this,!0))},qe.prototype.startOperation=function(Et){if(this.curOp){if(!Et||this.curOp.command)return;this.prevOp=this.curOp}Et||(Et={}),this.$operationResetTimer.schedule(),this.curOp={command:Et.command||{},args:Et.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",Et)},qe.prototype.endOperation=function(Et){if(this.curOp){if(Et&&Et.returnValue===!1){this.curOp=null,this._signal("endOperation",Et);return}if(Et==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var kt=this.selection.toJSON();this.curOp.selectionAfter=kt,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(kt),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",Et)}},qe.prototype.setDocument=function(Et){this.doc&&this.doc.off("change",this.$onChange),this.doc=Et,Et.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},qe.prototype.getDocument=function(){return this.doc},Object.defineProperty(qe.prototype,"widgetManager",{get:function(){var Et=new de(this);return this.widgetManager=Et,this.$editor&&Et.attach(this.$editor),Et},set:function(Et){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:Et})},enumerable:!1,configurable:!0}),qe.prototype.$resetRowCache=function(Et){if(!Et){this.$docRowCache=[],this.$screenRowCache=[];return}var kt=this.$docRowCache.length,At=this.$getRowCacheIndex(this.$docRowCache,Et)+1;kt>At&&(this.$docRowCache.splice(At,kt),this.$screenRowCache.splice(At,kt))},qe.prototype.$getRowCacheIndex=function(Et,kt){for(var At=0,Dt=Et.length-1;At<=Dt;){var Lt=At+Dt>>1,jt=Et[Lt];if(kt>jt)At=Lt+1;else if(kt=kt));jt++);return Dt=At[jt],Dt?(Dt.index=jt,Dt.start=Lt-Dt.value.length,Dt):null},qe.prototype.setUndoManager=function(Et){if(this.$undoManager=Et,this.$informUndoManager&&this.$informUndoManager.cancel(),Et){var kt=this;Et.addSession(this),this.$syncInformUndoManager=function(){kt.$informUndoManager.cancel(),kt.mergeUndoDeltas=!1},this.$informUndoManager=V.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},qe.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},qe.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},qe.prototype.getTabString=function(){return this.getUseSoftTabs()?V.stringRepeat(" ",this.getTabSize()):" "},qe.prototype.setUseSoftTabs=function(Et){this.setOption("useSoftTabs",Et)},qe.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},qe.prototype.setTabSize=function(Et){this.setOption("tabSize",Et)},qe.prototype.getTabSize=function(){return this.$tabSize},qe.prototype.isTabStop=function(Et){return this.$useSoftTabs&&Et.column%this.$tabSize===0},qe.prototype.setNavigateWithinSoftTabs=function(Et){this.setOption("navigateWithinSoftTabs",Et)},qe.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},qe.prototype.setOverwrite=function(Et){this.setOption("overwrite",Et)},qe.prototype.getOverwrite=function(){return this.$overwrite},qe.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},qe.prototype.addGutterDecoration=function(Et,kt){this.$decorations[Et]||(this.$decorations[Et]=""),this.$decorations[Et]+=" "+kt,this._signal("changeBreakpoint",{})},qe.prototype.removeGutterCustomWidget=function(Et){this.$editor&&this.$editor.renderer.$gutterLayer.$removeCustomWidget(Et)},qe.prototype.addGutterCustomWidget=function(Et,kt){this.$editor&&this.$editor.renderer.$gutterLayer.$addCustomWidget(Et,kt)},qe.prototype.removeGutterDecoration=function(Et,kt){this.$decorations[Et]=(this.$decorations[Et]||"").replace(" "+kt,""),this._signal("changeBreakpoint",{})},qe.prototype.getBreakpoints=function(){return this.$breakpoints},qe.prototype.setBreakpoints=function(Et){this.$breakpoints=[];for(var kt=0;kt0&&(Dt=!!At.charAt(kt-1).match(this.tokenRe)),Dt||(Dt=!!At.charAt(kt).match(this.tokenRe)),Dt)var Lt=this.tokenRe;else if(/^\s+$/.test(At.slice(kt-1,kt+1)))var Lt=/\s/;else var Lt=this.nonTokenRe;var jt=kt;if(jt>0){do jt--;while(jt>=0&&At.charAt(jt).match(Lt));jt++}for(var hn=kt;hnEt&&(Et=kt.screenWidth)}),this.lineWidgetWidth=Et},qe.prototype.$computeWidth=function(Et){if(this.$modified||Et){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var kt=this.doc.getAllLines(),At=this.$rowLengthCache,Dt=0,Lt=0,jt=this.$foldData[Lt],hn=jt?jt.start.row:1/0,vn=kt.length,_n=0;_nhn){if(_n=jt.end.row+1,_n>=vn)break;jt=this.$foldData[Lt++],hn=jt?jt.start.row:1/0}At[_n]==null&&(At[_n]=this.$getStringScreenWidth(kt[_n])[0]),At[_n]>Dt&&(Dt=At[_n])}this.screenWidth=Dt}},qe.prototype.getLine=function(Et){return this.doc.getLine(Et)},qe.prototype.getLines=function(Et,kt){return this.doc.getLines(Et,kt)},qe.prototype.getLength=function(){return this.doc.getLength()},qe.prototype.getTextRange=function(Et){return this.doc.getTextRange(Et||this.selection.getRange())},qe.prototype.insert=function(Et,kt){return this.doc.insert(Et,kt)},qe.prototype.remove=function(Et){return this.doc.remove(Et)},qe.prototype.removeFullLines=function(Et,kt){return this.doc.removeFullLines(Et,kt)},qe.prototype.undoChanges=function(Et,kt){if(Et.length){this.$fromUndo=!0;for(var At=Et.length-1;At!=-1;At--){var Dt=Et[At];Dt.action=="insert"||Dt.action=="remove"?this.doc.revertDelta(Dt):Dt.folds&&this.addFolds(Dt.folds)}!kt&&this.$undoSelect&&(Et.selectionBefore?this.selection.fromJSON(Et.selectionBefore):this.selection.setRange(this.$getUndoSelection(Et,!0))),this.$fromUndo=!1}},qe.prototype.redoChanges=function(Et,kt){if(Et.length){this.$fromUndo=!0;for(var At=0;AtEt.end.column&&(jt.start.column+=vn),jt.end.row==Et.end.row&&jt.end.column>Et.end.column&&(jt.end.column+=vn)),hn&&jt.start.row>=Et.end.row&&(jt.start.row+=hn,jt.end.row+=hn)}if(jt.end=this.insert(jt.start,Dt),Lt.length){var _n=Et.start,wn=jt.start,hn=wn.row-_n.row,vn=wn.column-_n.column;this.addFolds(Lt.map(function(Sn){return Sn=Sn.clone(),Sn.start.row==_n.row&&(Sn.start.column+=vn),Sn.end.row==_n.row&&(Sn.end.column+=vn),Sn.start.row+=hn,Sn.end.row+=hn,Sn}))}return jt},qe.prototype.indentRows=function(Et,kt,At){At=At.replace(/\t/g,this.getTabString());for(var Dt=Et;Dt<=kt;Dt++)this.doc.insertInLine({row:Dt,column:0},At)},qe.prototype.outdentRows=function(Et){for(var kt=Et.collapseRows(),At=new ue(0,0,0,0),Dt=this.getTabSize(),Lt=kt.start.row;Lt<=kt.end.row;++Lt){var jt=this.getLine(Lt);At.start.row=Lt,At.end.row=Lt;for(var hn=0;hn0){var Dt=this.getRowFoldEnd(kt+At);if(Dt>this.doc.getLength()-1)return 0;var Lt=Dt-kt}else{Et=this.$clipRowToDocument(Et),kt=this.$clipRowToDocument(kt);var Lt=kt-Et+1}var jt=new ue(Et,0,kt,Number.MAX_VALUE),hn=this.getFoldsInRange(jt).map(function(_n){return _n=_n.clone(),_n.start.row+=Lt,_n.end.row+=Lt,_n}),vn=At==0?this.doc.getLines(Et,kt):this.doc.removeFullLines(Et,kt);return this.doc.insertFullLines(Et+Lt,vn),hn.length&&this.addFolds(hn),Lt},qe.prototype.moveLinesUp=function(Et,kt){return this.$moveLines(Et,kt,-1)},qe.prototype.moveLinesDown=function(Et,kt){return this.$moveLines(Et,kt,1)},qe.prototype.duplicateLines=function(Et,kt){return this.$moveLines(Et,kt,0)},qe.prototype.$clipRowToDocument=function(Et){return Math.max(0,Math.min(Et,this.doc.getLength()-1))},qe.prototype.$clipColumnToRow=function(Et,kt){return kt<0?0:Math.min(this.doc.getLine(Et).length,kt)},qe.prototype.$clipPositionToDocument=function(Et,kt){if(kt=Math.max(0,kt),Et<0)Et=0,kt=0;else{var At=this.doc.getLength();Et>=At?(Et=At-1,kt=this.doc.getLine(At-1).length):kt=Math.min(this.doc.getLine(Et).length,kt)}return{row:Et,column:kt}},qe.prototype.$clipRangeToDocument=function(Et){Et.start.row<0?(Et.start.row=0,Et.start.column=0):Et.start.column=this.$clipColumnToRow(Et.start.row,Et.start.column);var kt=this.doc.getLength()-1;return Et.end.row>kt?(Et.end.row=kt,Et.end.column=this.doc.getLine(kt).length):Et.end.column=this.$clipColumnToRow(Et.end.row,Et.end.column),Et},qe.prototype.setUseWrapMode=function(Et){if(Et!=this.$useWrapMode){if(this.$useWrapMode=Et,this.$modified=!0,this.$resetRowCache(0),Et){var kt=this.getLength();this.$wrapData=Array(kt),this.$updateWrapData(0,kt-1)}this._signal("changeWrapMode")}},qe.prototype.getUseWrapMode=function(){return this.$useWrapMode},qe.prototype.setWrapLimitRange=function(Et,kt){(this.$wrapLimitRange.min!==Et||this.$wrapLimitRange.max!==kt)&&(this.$wrapLimitRange={min:Et,max:kt},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},qe.prototype.adjustWrapLimit=function(Et,kt){var At=this.$wrapLimitRange;At.max<0&&(At={min:kt,max:kt});var Dt=this.$constrainWrapLimit(Et,At.min,At.max);return Dt!=this.$wrapLimit&&Dt>1?(this.$wrapLimit=Dt,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},qe.prototype.$constrainWrapLimit=function(Et,kt,At){return kt&&(Et=Math.max(kt,Et)),At&&(Et=Math.min(At,Et)),Et},qe.prototype.getWrapLimit=function(){return this.$wrapLimit},qe.prototype.setWrapLimit=function(Et){this.setWrapLimitRange(Et,Et)},qe.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},qe.prototype.$updateInternalDataOnChange=function(Et){var kt=this.$useWrapMode,At=Et.action,Dt=Et.start,Lt=Et.end,jt=Dt.row,hn=Lt.row,vn=hn-jt,_n=null;if(this.$updating=!0,vn!=0)if(At==="remove"){this[kt?"$wrapData":"$rowLengthCache"].splice(jt,vn);var wn=this.$foldData;_n=this.getFoldsInRange(Et),this.removeFolds(_n);var bn=this.getFoldLine(Lt.row),Cn=0;if(bn){bn.addRemoveChars(Lt.row,Lt.column,Dt.column-Lt.column),bn.shiftRow(-vn);var Sn=this.getFoldLine(jt);Sn&&Sn!==bn&&(Sn.merge(bn),bn=Sn),Cn=wn.indexOf(bn)+1}for(Cn;Cn=Lt.row&&bn.shiftRow(-vn)}hn=jt}else{var Tn=Array(vn);Tn.unshift(jt,0);var En=kt?this.$wrapData:this.$rowLengthCache;En.splice.apply(En,Tn);var wn=this.$foldData,bn=this.getFoldLine(jt),Cn=0;if(bn){var kn=bn.range.compareInside(Dt.row,Dt.column);kn==0?(bn=bn.split(Dt.row,Dt.column),bn&&(bn.shiftRow(vn),bn.addRemoveChars(hn,0,Lt.column-Dt.column))):kn==-1&&(bn.addRemoveChars(jt,0,Lt.column-Dt.column),bn.shiftRow(vn)),Cn=wn.indexOf(bn)+1}for(Cn;Cn=jt&&bn.shiftRow(vn)}}else{vn=Math.abs(Et.start.column-Et.end.column),At==="remove"&&(_n=this.getFoldsInRange(Et),this.removeFolds(_n),vn=-vn);var bn=this.getFoldLine(jt);bn&&bn.addRemoveChars(jt,Dt.column,vn)}return kt&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,kt?this.$updateWrapData(jt,hn):this.$updateRowLengthCache(jt,hn),_n},qe.prototype.$updateRowLengthCache=function(Et,kt){this.$rowLengthCache[Et]=null,this.$rowLengthCache[kt]=null},qe.prototype.$updateWrapData=function(Et,kt){var At=this.doc.getAllLines(),Dt=this.getTabSize(),Lt=this.$wrapData,jt=this.$wrapLimit,hn,vn,_n=Et;for(kt=Math.min(kt,At.length-1);_n<=kt;)vn=this.getFoldLine(_n,vn),vn?(hn=[],vn.walk((function(wn,bn,Cn,Sn){var Tn;if(wn!=null){Tn=this.$getDisplayTokens(wn,hn.length),Tn[0]=Oe;for(var En=1;Enkt-Sn;){var Tn=jt+kt-Sn;if(Et[Tn-1]>=Ue&&Et[Tn]>=Ue){Cn(Tn);continue}if(Et[Tn]==Oe||Et[Tn]==$e){for(Tn;Tn!=jt-1&&Et[Tn]!=Oe;Tn--);if(Tn>jt){Cn(Tn);continue}for(Tn=jt+kt,Tn;Tn>2)),jt-1);Tn>En&&Et[Tn]En&&Et[Tn]En&&Et[Tn]==Ve;)Tn--}else for(;Tn>En&&Et[Tn]En){Cn(++Tn);continue}Tn=jt+kt,Et[Tn]==Ne&&Tn--,Cn(Tn-Sn)}return Dt},qe.prototype.$getDisplayTokens=function(Et,kt){var At=[],Dt;kt=kt||0;for(var Lt=0;Lt39&&jt<48||jt>57&&jt<64?At.push(Ve):jt>=4352&&Pt(jt)?At.push(Ie,Ne):At.push(Ie)}return At},qe.prototype.$getStringScreenWidth=function(Et,kt,At){if(kt==0)return[0,0];kt==null&&(kt=1/0),At=At||0;var Dt,Lt;for(Lt=0;Lt=4352&&Pt(Dt)?At+=2:At+=1,!(At>kt));Lt++);return[At,Lt]},qe.prototype.getRowLength=function(Et){var kt=1;return this.lineWidgets&&(kt+=this.lineWidgets[Et]&&this.lineWidgets[Et].rowCount||0),!this.$useWrapMode||!this.$wrapData[Et]?kt:this.$wrapData[Et].length+kt},qe.prototype.getRowLineCount=function(Et){return!this.$useWrapMode||!this.$wrapData[Et]?1:this.$wrapData[Et].length+1},qe.prototype.getRowWrapIndent=function(Et){if(this.$useWrapMode){var kt=this.screenToDocumentPosition(Et,Number.MAX_VALUE),At=this.$wrapData[kt.row];return At.length&&At[0]=0)var vn=wn[bn],Lt=this.$docRowCache[bn],Sn=Et>wn[Cn-1];else var Sn=!Cn;for(var Tn=this.getLength()-1,En=this.getNextFoldLine(Lt),kn=En?En.start.row:1/0;vn<=Et&&(_n=this.getRowLength(Lt),!(vn+_n>Et||Lt>=Tn));)vn+=_n,Lt++,Lt>kn&&(Lt=En.end.row+1,En=this.getNextFoldLine(Lt,En),kn=En?En.start.row:1/0),Sn&&(this.$docRowCache.push(Lt),this.$screenRowCache.push(vn));if(En&&En.start.row<=Lt)Dt=this.getFoldDisplayLine(En),Lt=En.start.row;else{if(vn+_n<=Et||Lt>Tn)return{row:Tn,column:this.getLine(Tn).length};Dt=this.getLine(Lt),En=null}var $n=0,An=Math.floor(Et-vn);if(this.$useWrapMode){var xn=this.$wrapData[Lt];xn&&(hn=xn[An],An>0&&xn.length&&($n=xn.indent,jt=xn[An-1]||xn[xn.length-1],Dt=Dt.substring(jt)))}return At!==void 0&&this.$bidiHandler.isBidiRow(vn+An,Lt,An)&&(kt=this.$bidiHandler.offsetToCol(At)),jt+=this.$getStringScreenWidth(Dt,kt-$n)[1],this.$useWrapMode&&jt>=hn&&(jt=hn-1),En?En.idxToPosition(jt):{row:Lt,column:jt}},qe.prototype.documentToScreenPosition=function(Et,kt){if(typeof kt>"u")var At=this.$clipPositionToDocument(Et.row,Et.column);else At=this.$clipPositionToDocument(Et,kt);Et=At.row,kt=At.column;var Dt=0,Lt=null,jt=null;jt=this.getFoldAt(Et,kt,1),jt&&(Et=jt.start.row,kt=jt.start.column);var hn,vn=0,_n=this.$docRowCache,wn=this.$getRowCacheIndex(_n,Et),bn=_n.length;if(bn&&wn>=0)var vn=_n[wn],Dt=this.$screenRowCache[wn],Cn=Et>_n[bn-1];else var Cn=!bn;for(var Sn=this.getNextFoldLine(vn),Tn=Sn?Sn.start.row:1/0;vn=Tn){if(hn=Sn.end.row+1,hn>Et)break;Sn=this.getNextFoldLine(hn,Sn),Tn=Sn?Sn.start.row:1/0}else hn=vn+1;Dt+=this.getRowLength(vn),vn=hn,Cn&&(this.$docRowCache.push(vn),this.$screenRowCache.push(Dt))}var En="";Sn&&vn>=Tn?(En=this.getFoldDisplayLine(Sn,Et,kt),Lt=Sn.start.row):(En=this.getLine(Et).substring(0,kt),Lt=Et);var kn=0;if(this.$useWrapMode){var $n=this.$wrapData[Lt];if($n){for(var An=0;En.length>=$n[An];)Dt++,An++;En=En.substring($n[An-1]||0,En.length),kn=An>0?$n.indent:0}}return this.lineWidgets&&this.lineWidgets[vn]&&this.lineWidgets[vn].rowsAbove&&(Dt+=this.lineWidgets[vn].rowsAbove),{row:Dt,column:kn+this.$getStringScreenWidth(En)[0]}},qe.prototype.documentToScreenColumn=function(Et,kt){return this.documentToScreenPosition(Et,kt).column},qe.prototype.documentToScreenRow=function(Et,kt){return this.documentToScreenPosition(Et,kt).row},qe.prototype.getScreenLength=function(){var Et=0,kt=null;if(this.$useWrapMode)for(var Lt=this.$wrapData.length,jt=0,Dt=0,kt=this.$foldData[Dt++],hn=kt?kt.start.row:1/0;jthn&&(jt=kt.end.row+1,kt=this.$foldData[Dt++],hn=kt?kt.start.row:1/0)}else{Et=this.getLength();for(var At=this.$foldData,Dt=0;DtAt));jt++);return[Dt,jt]})},qe.prototype.getPrecedingCharacter=function(){var Et=this.selection.getCursor();if(Et.column===0)return Et.row===0?"":this.doc.getNewLineCharacter();var kt=this.getLine(Et.row);return kt[Et.column-1]},qe.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},qe}();xe.$uid=0,xe.prototype.$modes=ie.$modes,xe.prototype.getValue=xe.prototype.toString,xe.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},xe.prototype.$overwrite=!1,xe.prototype.$mode=null,xe.prototype.$modeId=null,xe.prototype.$scrollTop=0,xe.prototype.$scrollLeft=0,xe.prototype.$wrapLimit=80,xe.prototype.$useWrapMode=!1,xe.prototype.$wrapLimitRange={min:null,max:null},xe.prototype.lineWidgets=null,xe.prototype.isFullWidth=Pt,$.implement(xe.prototype,ae);var Ie=1,Ne=2,Oe=3,$e=4,Ve=9,Ue=10,Fe=11,ze=12;function Pt(qe){return qe<4352?!1:qe>=4352&&qe<=4447||qe>=4515&&qe<=4519||qe>=4602&&qe<=4607||qe>=9001&&qe<=9002||qe>=11904&&qe<=11929||qe>=11931&&qe<=12019||qe>=12032&&qe<=12245||qe>=12272&&qe<=12283||qe>=12288&&qe<=12350||qe>=12353&&qe<=12438||qe>=12441&&qe<=12543||qe>=12549&&qe<=12589||qe>=12593&&qe<=12686||qe>=12688&&qe<=12730||qe>=12736&&qe<=12771||qe>=12784&&qe<=12830||qe>=12832&&qe<=12871||qe>=12880&&qe<=13054||qe>=13056&&qe<=19903||qe>=19968&&qe<=42124||qe>=42128&&qe<=42182||qe>=43360&&qe<=43388||qe>=44032&&qe<=55203||qe>=55216&&qe<=55238||qe>=55243&&qe<=55291||qe>=63744&&qe<=64255||qe>=65040&&qe<=65049||qe>=65072&&qe<=65106||qe>=65108&&qe<=65126||qe>=65128&&qe<=65131||qe>=65281&&qe<=65376||qe>=65504&&qe<=65510}r("./edit_session/folding").Folding.call(xe.prototype),r("./edit_session/bracket_match").BracketMatch.call(xe.prototype),ie.defineOptions(xe.prototype,"session",{wrap:{set:function(qe){if(!qe||qe=="off"?qe=!1:qe=="free"?qe=!0:qe=="printMargin"?qe=-1:typeof qe=="string"&&(qe=parseInt(qe,10)||!1),this.$wrap!=qe)if(this.$wrap=qe,!qe)this.setUseWrapMode(!1);else{var Et=typeof qe=="number"?qe:null;this.setWrapLimitRange(Et,Et),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(qe){qe=qe=="auto"?this.$mode.type!="text":qe!="text",qe!=this.$wrapAsCode&&(this.$wrapAsCode=qe,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(qe){this.$useWorker=qe,this.$stopWorker(),qe&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(qe){qe=parseInt(qe),qe>0&&this.$tabSize!==qe&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=qe,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(qe){this.setFoldStyle(qe)},handlesSet:!0},overwrite:{set:function(qe){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(qe){this.doc.setNewLineMode(qe)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(qe){this.setMode(qe)},get:function(){return this.$modeId},handlesSet:!0}}),i.EditSession=xe}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(r,i,g){var $=r("./lib/lang"),V=r("./lib/oop"),re=r("./range").Range,ie=function(){function ue(){this.$options={}}return ue.prototype.set=function(de){return V.mixin(this.$options,de),this},ue.prototype.getOptions=function(){return $.copyObject(this.$options)},ue.prototype.setOptions=function(de){this.$options=de},ue.prototype.find=function(de){var he=this.$options,pe=this.$matchIterator(de,he);if(!pe)return!1;var _e=null;return pe.forEach(function(Ce,xe,Ie,Ne){return _e=new re(Ce,xe,Ie,Ne),xe==Ne&&he.start&&he.start.start&&he.skipCurrent!=!1&&_e.isEqual(he.start)?(_e=null,!1):!0}),_e},ue.prototype.findAll=function(de){var he=this.$options;if(!he.needle)return[];this.$assembleRegExp(he);var pe=he.range,_e=pe?de.getLines(pe.start.row,pe.end.row):de.doc.getAllLines(),Ce=[],xe=he.re;if(he.$isMultiLine){var Ie=xe.length,Ne=_e.length-Ie,Oe;e:for(var $e=xe.offset||0;$e<=Ne;$e++){for(var Ve=0;Veze||(Ce.push(Oe=new re($e,ze,$e+Ie-1,Pt)),Ie>2&&($e=$e+Ie-2))}}else for(var qe,Et=0;Et<_e.length;Et++)if(this.$isMultilineSearch(he)){var kt=_e.length-1;if(qe=this.$multiLineForward(de,xe,Et,kt),qe){var At=qe.endRow<=kt?qe.endRow-1:kt;At>Et&&(Et=At),Ce.push(new re(qe.startRow,qe.startCol,qe.endRow,qe.endCol))}}else{qe=$.getMatchOffsets(_e[Et],xe);for(var Ve=0;Vejt&&Ce[Ve].end.row==hn;)Ve--;for(Ce=Ce.slice(Et,Ve+1),Et=0,Ve=Ce.length;Et=Ce){pe+="\\";break}var Ie=de.charCodeAt(_e);switch(Ie){case he.Backslash:pe+="\\";break;case he.n:pe+=` `;break;case he.t:pe+=" ";break}continue}if(xe===he.DollarSign){if(_e++,_e>=Ce){pe+="$";break}var Ne=de.charCodeAt(_e);if(Ne===he.DollarSign){pe+="$$";continue}if(Ne===he.Digit0||Ne===he.Ampersand){pe+="$&";continue}if(he.Digit1<=Ne&&Ne<=he.Digit9){pe+="$"+de[_e];continue}}pe+=de[_e]}return pe||de},ue.prototype.replace=function(de,he){var pe=this.$options,_e=this.$assembleRegExp(pe);if(pe.$isMultiLine)return he;if(_e){var Ce=this.$isMultilineSearch(pe);Ce&&(de=de.replace(/\r\n|\r|\n/g,` `));var xe=_e.exec(de);if(!xe||!Ce&&xe[0].length!=de.length)return null;if(he=pe.regExp?this.parseReplaceString(he):he.replace(/\$/g,"$$$$"),he=de.replace(_e,he),pe.preserveCase){he=he.split("");for(var Ie=Math.min(de.length,de.length);Ie--;){var Ne=de[Ie];Ne&&Ne.toLowerCase()!=Ne?he[Ie]=he[Ie].toUpperCase():he[Ie]=he[Ie].toLowerCase()}he=he.join("")}return he}},ue.prototype.$assembleRegExp=function(de,he){if(de.needle instanceof RegExp)return de.re=de.needle;var pe=de.needle;if(!de.needle)return de.re=!1;de.regExp||(pe=$.escapeRegExp(pe));var _e=de.caseSensitive?"gm":"gmi";try{new RegExp(pe,"u"),de.$supportsUnicodeFlag=!0,_e+="u"}catch{de.$supportsUnicodeFlag=!1}if(de.wholeWord&&(pe=ae(pe,de)),de.$isMultiLine=!he&&/[\n\r]/.test(pe),de.$isMultiLine)return de.re=this.$assembleMultilineRegExp(pe,_e);try{var Ce=new RegExp(pe,_e)}catch{Ce=!1}return de.re=Ce},ue.prototype.$assembleMultilineRegExp=function(de,he){for(var pe=de.replace(/\r\n|\r|\n/g,`$ ^`).split(` `),_e=[],Ce=0;Ce_e);Ne++){var Oe=de.getLine(Ie++);Ce=Ce==null?Oe:Ce+` `+Oe}var $e=he.exec(Ce);if(he.lastIndex=0,$e){var Ve=Ce.slice(0,$e.index).split(` `),Ue=$e[0].split(` `),Fe=pe+Ve.length-1,ze=Ve[Ve.length-1].length,Pt=Fe+Ue.length-1,qe=Ue.length==1?ze+Ue[0].length:Ue[Ue.length-1].length;return{startRow:Fe,startCol:ze,endRow:Pt,endCol:qe}}}return null},ue.prototype.$multiLineBackward=function(de,he,pe,_e,Ce){for(var xe,Ie=le(de,_e),Ne=de.getLine(_e).length-pe,Oe=_e;Oe>=Ce;){for(var $e=0;$e=Ce;$e++){var Ve=de.getLine(Oe--);xe=xe==null?Ve:Ve+` `+xe}var Ue=oe(xe,he,Ne);if(Ue){var Fe=xe.slice(0,Ue.index).split(` `),ze=Ue[0].split(` `),Pt=Oe+Fe.length,qe=Fe[Fe.length-1].length,Et=Pt+ze.length-1,kt=ze.length==1?qe+ze[0].length:ze[ze.length-1].length;return{startRow:Pt,startCol:qe,endRow:Et,endCol:kt}}}return null},ue.prototype.$matchIterator=function(de,he){var pe=this.$assembleRegExp(he);if(!pe)return!1;var _e=this.$isMultilineSearch(he),Ce=this.$multiLineForward,xe=this.$multiLineBackward,Ie=he.backwards==!0,Ne=he.skipCurrent!=!1,Oe=pe.unicode,$e=he.range,Ve=he.start;Ve||(Ve=$e?$e[Ie?"end":"start"]:de.selection.getRange()),Ve.start&&(Ve=Ve[Ne!=Ie?"end":"start"]);var Ue=$e?$e.start.row:0,Fe=$e?$e.end.row:de.getLength()-1;if(Ie)var ze=function(Et){var kt=Ve.row;if(!qe(kt,Ve.column,Et)){for(kt--;kt>=Ue;kt--)if(qe(kt,Number.MAX_VALUE,Et))return;if(he.wrap!=!1){for(kt=Fe,Ue=Ve.row;kt>=Ue;kt--)if(qe(kt,Number.MAX_VALUE,Et))return}}};else var ze=function(kt){var At=Ve.row;if(!qe(At,Ve.column,kt)){for(At=At+1;At<=Fe;At++)if(qe(At,0,kt))return;if(he.wrap!=!1){for(At=Ue,Fe=Ve.row;At<=Fe;At++)if(qe(At,0,kt))return}}};if(he.$isMultiLine)var Pt=pe.length,qe=function(Et,kt,At){var Dt=Ie?Et-Pt+1:Et;if(!(Dt<0||Dt+Pt>de.getLength())){var Lt=de.getLine(Dt),jt=Lt.search(pe[0]);if(!(!Ie&&jtkt)&&At(Dt,jt,Dt+Pt-1,vn))return!0}}};else if(Ie)var qe=function(kt,At,Dt){if(_e){var Lt=xe(de,pe,At,kt,Ue);if(!Lt)return!1;if(Dt(Lt.startRow,Lt.startCol,Lt.endRow,Lt.endCol))return!0}else{var jt=de.getLine(kt),hn=[],vn,_n=0;for(pe.lastIndex=0;vn=pe.exec(jt);){var wn=vn[0].length;if(_n=vn.index,!wn){if(_n>=jt.length)break;pe.lastIndex=_n+=$.skipEmptyMatch(jt,_n,Oe)}if(vn.index+wn>At)break;hn.push(vn.index,wn)}for(var bn=hn.length-1;bn>=0;bn-=2){var Cn=hn[bn-1],wn=hn[bn];if(Dt(kt,Cn,kt,Cn+wn))return!0}}};else var qe=function(kt,At,Dt){if(pe.lastIndex=At,_e){var Lt=Ce(de,pe,kt,Fe);if(Lt){var jt=Lt.endRow<=Fe?Lt.endRow-1:Fe;jt>kt&&(kt=jt)}if(!Lt)return!1;if(Dt(Lt.startRow,Lt.startCol,Lt.endRow,Lt.endCol))return!0}else for(var hn=de.getLine(kt),vn,_n;_n=pe.exec(hn);){var wn=_n[0].length;if(vn=_n.index,Dt(kt,vn,kt,vn+wn))return!0;if(!wn&&(pe.lastIndex=vn+=$.skipEmptyMatch(hn,vn,Oe),vn>=hn.length))return!1}};return{forEach:ze}},ue}();function ae(ue,de){var he=$.supportsLookbehind();function pe(Ie,Ne){Ne===void 0&&(Ne=!0);var Oe=he&&de.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return Oe.test(Ie)||de.regExp?he&&de.$supportsUnicodeFlag?Ne?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var _e=Array.from(ue),Ce=_e[0],xe=_e[_e.length-1];return pe(Ce)+ue+pe(xe,!1)}function oe(ue,de,he){for(var pe=null,_e=0;_e<=ue.length;){de.lastIndex=_e;var Ce=de.exec(ue);if(!Ce)break;var xe=Ce.index+Ce[0].length;if(xe>ue.length-he)break;(!pe||xe>pe.index+pe[0].length)&&(pe=Ce),_e=Ce.index+1}return pe}function le(ue,de){var he=5e3,pe={row:de,column:0},_e=ue.doc.positionToIndex(pe),Ce=_e+he,xe=ue.doc.indexToPosition(Ce),Ie=xe.row;return Ie+1}i.Search=ie}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(r,i,g){var $=this&&this.__extends||function(){var ue=function(de,he){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,_e){pe.__proto__=_e}||function(pe,_e){for(var Ce in _e)Object.prototype.hasOwnProperty.call(_e,Ce)&&(pe[Ce]=_e[Ce])},ue(de,he)};return function(de,he){if(typeof he!="function"&&he!==null)throw new TypeError("Class extends value "+String(he)+" is not a constructor or null");ue(de,he);function pe(){this.constructor=de}de.prototype=he===null?Object.create(he):(pe.prototype=he.prototype,new pe)}}(),V=r("../lib/keys"),re=r("../lib/useragent"),ie=V.KEY_MODS,ae=function(){function ue(de,he){this.$init(de,he,!1)}return ue.prototype.$init=function(de,he,pe){this.platform=he||(re.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(de),this.$singleCommand=pe},ue.prototype.addCommand=function(de){this.commands[de.name]&&this.removeCommand(de),this.commands[de.name]=de,de.bindKey&&this._buildKeyHash(de)},ue.prototype.removeCommand=function(de,he){var pe=de&&(typeof de=="string"?de:de.name);de=this.commands[pe],he||delete this.commands[pe];var _e=this.commandKeyBinding;for(var Ce in _e){var xe=_e[Ce];if(xe==de)delete _e[Ce];else if(Array.isArray(xe)){var Ie=xe.indexOf(de);Ie!=-1&&(xe.splice(Ie,1),xe.length==1&&(_e[Ce]=xe[0]))}}},ue.prototype.bindKey=function(de,he,pe){if(typeof de=="object"&&de&&(pe==null&&(pe=de.position),de=de[this.platform]),!!de){if(typeof he=="function")return this.addCommand({exec:he,bindKey:de,name:he.name||de});de.split("|").forEach(function(_e){var Ce="";if(_e.indexOf(" ")!=-1){var xe=_e.split(/\s+/);_e=xe.pop(),xe.forEach(function(Oe){var $e=this.parseKeys(Oe),Ve=ie[$e.hashId]+$e.key;Ce+=(Ce?" ":"")+Ve,this._addCommandToBinding(Ce,"chainKeys")},this),Ce+=" "}var Ie=this.parseKeys(_e),Ne=ie[Ie.hashId]+Ie.key;this._addCommandToBinding(Ce+Ne,he,pe)},this)}},ue.prototype._addCommandToBinding=function(de,he,pe){var _e=this.commandKeyBinding,Ce;if(!he)delete _e[de];else if(!_e[de]||this.$singleCommand)_e[de]=he;else{Array.isArray(_e[de])?(Ce=_e[de].indexOf(he))!=-1&&_e[de].splice(Ce,1):_e[de]=[_e[de]],typeof pe!="number"&&(pe=oe(he));var xe=_e[de];for(Ce=0;Cepe)break}xe.splice(Ce,0,he)}},ue.prototype.addCommands=function(de){de&&Object.keys(de).forEach(function(he){var pe=de[he];if(pe){if(typeof pe=="string")return this.bindKey(pe,he);typeof pe=="function"&&(pe={exec:pe}),typeof pe=="object"&&(pe.name||(pe.name=he),this.addCommand(pe))}},this)},ue.prototype.removeCommands=function(de){Object.keys(de).forEach(function(he){this.removeCommand(de[he])},this)},ue.prototype.bindKeys=function(de){Object.keys(de).forEach(function(he){this.bindKey(he,de[he])},this)},ue.prototype._buildKeyHash=function(de){this.bindKey(de.bindKey,de)},ue.prototype.parseKeys=function(de){var he=de.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(Ne){return Ne}),pe=he.pop(),_e=V[pe];if(V.FUNCTION_KEYS[_e])pe=V.FUNCTION_KEYS[_e].toLowerCase();else if(he.length){if(he.length==1&&he[0]=="shift")return{key:pe.toUpperCase(),hashId:-1}}else return{key:pe,hashId:-1};for(var Ce=0,xe=he.length;xe--;){var Ie=V.KEY_MODS[he[xe]];if(Ie==null)return typeof console<"u"&&console.error("invalid modifier "+he[xe]+" in "+de),!1;Ce|=Ie}return{key:pe,hashId:Ce}},ue.prototype.findKeyCommand=function(de,he){var pe=ie[de]+he;return this.commandKeyBinding[pe]},ue.prototype.handleKeyboard=function(de,he,pe,_e){if(!(_e<0)){var Ce=ie[he]+pe,xe=this.commandKeyBinding[Ce];return de.$keyChain&&(de.$keyChain+=" "+Ce,xe=this.commandKeyBinding[de.$keyChain]||xe),xe&&(xe=="chainKeys"||xe[xe.length-1]=="chainKeys")?(de.$keyChain=de.$keyChain||Ce,{command:"null"}):(de.$keyChain&&((!he||he==4)&&pe.length==1?de.$keyChain=de.$keyChain.slice(0,-Ce.length-1):(he==-1||_e>0)&&(de.$keyChain="")),{command:xe})}},ue.prototype.getStatusText=function(de,he){return he.$keyChain||""},ue}();function oe(ue){return typeof ue=="object"&&ue.bindKey&&ue.bindKey.position||(ue.isDefault?-100:0)}var le=function(ue){$(de,ue);function de(he,pe){var _e=ue.call(this,he,pe)||this;return _e.$singleCommand=!0,_e}return de}(ae);le.call=function(ue,de,he){ae.prototype.$init.call(ue,de,he,!0)},ae.call=function(ue,de,he){ae.prototype.$init.call(ue,de,he,!1)},i.HashHandler=le,i.MultiHashHandler=ae}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(r,i,g){var $=this&&this.__extends||function(){var oe=function(le,ue){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,he){de.__proto__=he}||function(de,he){for(var pe in he)Object.prototype.hasOwnProperty.call(he,pe)&&(de[pe]=he[pe])},oe(le,ue)};return function(le,ue){if(typeof ue!="function"&&ue!==null)throw new TypeError("Class extends value "+String(ue)+" is not a constructor or null");oe(le,ue);function de(){this.constructor=le}le.prototype=ue===null?Object.create(ue):(de.prototype=ue.prototype,new de)}}(),V=r("../lib/oop"),re=r("../keyboard/hash_handler").MultiHashHandler,ie=r("../lib/event_emitter").EventEmitter,ae=function(oe){$(le,oe);function le(ue,de){var he=oe.call(this,de,ue)||this;return he.byName=he.commands,he.setDefaultHandler("exec",function(pe){return pe.args?pe.command.exec(pe.editor,pe.args,pe.event,!1):pe.command.exec(pe.editor,{},pe.event,!0)}),he}return le.prototype.exec=function(ue,de,he){if(Array.isArray(ue)){for(var pe=ue.length;pe--;)if(this.exec(ue[pe],de,he))return!0;return!1}typeof ue=="string"&&(ue=this.commands[ue]);var _e={editor:de,command:ue,args:he};return this.canExecute(ue,de)?(_e.returnValue=this._emit("exec",_e),this._signal("afterExec",_e),_e.returnValue!==!1):(this._signal("commandUnavailable",_e),!1)},le.prototype.canExecute=function(ue,de){return typeof ue=="string"&&(ue=this.commands[ue]),!(!ue||de&&de.$readOnly&&!ue.readOnly||this.$checkCommandState!=!1&&ue.isAvailable&&!ue.isAvailable(de))},le.prototype.toggleRecording=function(ue){if(!this.$inReplay)return ue&&ue._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(de){this.macro.push([de.command,de.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},le.prototype.replay=function(ue){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(ue);try{this.$inReplay=!0,this.macro.forEach(function(de){typeof de=="string"?this.exec(de,ue):this.exec(de[0],ue,de[1])},this)}finally{this.$inReplay=!1}}},le.prototype.trimMacro=function(ue){return ue.map(function(de){return typeof de[0]!="string"&&(de[0]=de[0].name),de[1]||(de=de[0]),de})},le}(re);V.implement(ae.prototype,ie),i.CommandManager=ae}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(r,i,g){var $=r("../lib/lang"),V=r("../config"),re=r("../range").Range;function ie(oe,le){return{win:oe,mac:le}}i.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:ie("Ctrl-,","Command-,"),exec:function(oe){V.loadModule("ace/ext/settings_menu",function(le){le.init(oe),oe.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:ie("Alt-E","F4"),exec:function(oe){V.loadModule("ace/ext/error_marker",function(le){le.showErrorMarker(oe,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:ie("Alt-Shift-E","Shift-F4"),exec:function(oe){V.loadModule("ace/ext/error_marker",function(le){le.showErrorMarker(oe,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:ie("Ctrl-A","Command-A"),exec:function(oe){oe.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:ie(null,"Ctrl-L"),exec:function(oe){oe.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:ie("Ctrl-L","Command-L"),exec:function(oe,le){typeof le=="number"&&!isNaN(le)&&oe.gotoLine(le),oe.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:ie("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(oe){oe.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:ie("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(oe){oe.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:ie("F2","F2"),exec:function(oe){oe.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:ie("Alt-F2","Alt-F2"),exec:function(oe){oe.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:ie(null,"Ctrl-Command-Option-0"),exec:function(oe){oe.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:ie(null,"Ctrl-Command-Option-0"),exec:function(oe){oe.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:ie("Alt-0","Command-Option-0"),exec:function(oe){oe.session.foldAll(),oe.session.unfold(oe.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:ie("Alt-Shift-0","Command-Option-Shift-0"),exec:function(oe){oe.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:ie("Ctrl-K","Command-G"),exec:function(oe){oe.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:ie("Ctrl-Shift-K","Command-Shift-G"),exec:function(oe){oe.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:ie("Alt-K","Ctrl-G"),exec:function(oe){oe.selection.isEmpty()?oe.selection.selectWord():oe.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:ie("Alt-Shift-K","Ctrl-Shift-G"),exec:function(oe){oe.selection.isEmpty()?oe.selection.selectWord():oe.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:ie("Ctrl-F","Command-F"),exec:function(oe){V.loadModule("ace/ext/searchbox",function(le){le.Search(oe)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(oe){oe.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:ie("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(oe){oe.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:ie("Ctrl-Home","Command-Home|Command-Up"),exec:function(oe){oe.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:ie("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(oe){oe.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:ie("Up","Up|Ctrl-P"),exec:function(oe,le){oe.navigateUp(le.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:ie("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(oe){oe.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:ie("Ctrl-End","Command-End|Command-Down"),exec:function(oe){oe.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:ie("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(oe){oe.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:ie("Down","Down|Ctrl-N"),exec:function(oe,le){oe.navigateDown(le.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:ie("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(oe){oe.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:ie("Ctrl-Left","Option-Left"),exec:function(oe){oe.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:ie("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(oe){oe.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:ie("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(oe){oe.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:ie("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(oe){oe.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:ie("Left","Left|Ctrl-B"),exec:function(oe,le){oe.navigateLeft(le.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:ie("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(oe){oe.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:ie("Ctrl-Right","Option-Right"),exec:function(oe){oe.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:ie("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(oe){oe.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:ie("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(oe){oe.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:ie("Shift-Right","Shift-Right"),exec:function(oe){oe.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:ie("Right","Right|Ctrl-F"),exec:function(oe,le){oe.navigateRight(le.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(oe){oe.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:ie(null,"Option-PageDown"),exec:function(oe){oe.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:ie("PageDown","PageDown|Ctrl-V"),exec:function(oe){oe.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(oe){oe.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:ie(null,"Option-PageUp"),exec:function(oe){oe.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(oe){oe.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:ie("Ctrl-Up",null),exec:function(oe){oe.renderer.scrollBy(0,-2*oe.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:ie("Ctrl-Down",null),exec:function(oe){oe.renderer.scrollBy(0,2*oe.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(oe){oe.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(oe){oe.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:ie("Ctrl-Alt-E","Command-Option-E"),exec:function(oe){oe.commands.toggleRecording(oe)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:ie("Ctrl-Shift-E","Command-Shift-E"),exec:function(oe){oe.commands.replay(oe)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:ie("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(oe){oe.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:ie("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(oe){oe.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:ie("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(oe){oe.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:ie(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(oe){},readOnly:!0},{name:"cut",description:"Cut",exec:function(oe){var le=oe.$copyWithEmptySelection&&oe.selection.isEmpty(),ue=le?oe.selection.getLineRange():oe.selection.getRange();oe._emit("cut",ue),ue.isEmpty()||oe.session.remove(ue),oe.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(oe,le){oe.$handlePaste(le)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:ie("Ctrl-D","Command-D"),exec:function(oe){oe.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:ie("Ctrl-Shift-D","Command-Shift-D"),exec:function(oe){oe.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:ie("Ctrl-Alt-S","Command-Alt-S"),exec:function(oe){oe.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:ie("Ctrl-/","Command-/"),exec:function(oe){oe.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:ie("Ctrl-Shift-/","Command-Shift-/"),exec:function(oe){oe.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:ie("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(oe){oe.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:ie("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(oe){oe.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:ie("Ctrl-H","Command-Option-F"),exec:function(oe){V.loadModule("ace/ext/searchbox",function(le){le.Search(oe,!0)})}},{name:"undo",description:"Undo",bindKey:ie("Ctrl-Z","Command-Z"),exec:function(oe){oe.undo()}},{name:"redo",description:"Redo",bindKey:ie("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(oe){oe.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:ie("Alt-Shift-Up","Command-Option-Up"),exec:function(oe){oe.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:ie("Alt-Up","Option-Up"),exec:function(oe){oe.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:ie("Alt-Shift-Down","Command-Option-Down"),exec:function(oe){oe.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:ie("Alt-Down","Option-Down"),exec:function(oe){oe.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:ie("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(oe){oe.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:ie("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(oe){oe.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:ie("Shift-Delete",null),exec:function(oe){if(oe.selection.isEmpty())oe.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:ie("Alt-Backspace","Command-Backspace"),exec:function(oe){oe.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:ie("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(oe){oe.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:ie("Ctrl-Shift-Backspace",null),exec:function(oe){var le=oe.selection.getRange();le.start.column=0,oe.session.remove(le)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:ie("Ctrl-Shift-Delete",null),exec:function(oe){var le=oe.selection.getRange();le.end.column=Number.MAX_VALUE,oe.session.remove(le)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:ie("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(oe){oe.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:ie("Ctrl-Delete","Alt-Delete"),exec:function(oe){oe.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:ie("Shift-Tab","Shift-Tab"),exec:function(oe){oe.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:ie("Tab","Tab"),exec:function(oe){oe.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:ie("Ctrl-[","Ctrl-["),exec:function(oe){oe.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:ie("Ctrl-]","Ctrl-]"),exec:function(oe){oe.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(oe,le){oe.insert(le)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(oe,le){oe.insert($.stringRepeat(le.text||"",le.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:ie(null,"Ctrl-O"),exec:function(oe){oe.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:ie("Alt-Shift-X","Ctrl-T"),exec:function(oe){oe.transposeLetters()},multiSelectAction:function(oe){oe.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:ie("Ctrl-U","Ctrl-U"),exec:function(oe){oe.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:ie("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(oe){oe.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:ie(null,null),exec:function(oe){oe.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:ie("Ctrl-Shift-L","Command-Shift-L"),exec:function(oe){var le=oe.selection.getRange();le.start.column=le.end.column=0,le.end.row++,oe.selection.setRange(le,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:ie("Ctrl+F3","F3"),exec:function(oe){oe.openLink()}},{name:"joinlines",description:"Join lines",bindKey:ie(null,null),exec:function(oe){for(var le=oe.selection.isBackwards(),ue=le?oe.selection.getSelectionLead():oe.selection.getSelectionAnchor(),de=le?oe.selection.getSelectionAnchor():oe.selection.getSelectionLead(),he=oe.session.doc.getLine(ue.row).length,pe=oe.session.doc.getTextRange(oe.selection.getRange()),_e=pe.replace(/\n\s*/," ").length,Ce=oe.session.doc.getLine(ue.row),xe=ue.row+1;xe<=de.row+1;xe++){var Ie=$.stringTrimLeft($.stringTrimRight(oe.session.doc.getLine(xe)));Ie.length!==0&&(Ie=" "+Ie),Ce+=Ie}de.row+10?(oe.selection.moveCursorTo(ue.row,ue.column),oe.selection.selectTo(ue.row,ue.column+_e)):(he=oe.session.doc.getLine(ue.row).length>he?he+1:he,oe.selection.moveCursorTo(ue.row,he))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:ie(null,null),exec:function(oe){var le=oe.session.doc.getLength()-1,ue=oe.session.doc.getLine(le).length,de=oe.selection.rangeList.ranges,he=[];de.length<1&&(de=[oe.selection.getRange()]);for(var pe=0;pe0||ae+oe=0&&this.$isCustomWidgetVisible(ae-oe))return ae-oe;if(ae+oe<=this.lines.getLength()-1&&this.$isCustomWidgetVisible(ae+oe))return ae+oe;if(ae-oe>=0&&this.$isFoldWidgetVisible(ae-oe))return ae-oe;if(ae+oe<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(ae+oe))return ae+oe}return null},ie.prototype.$findNearestAnnotation=function(ae){if(this.$isAnnotationVisible(ae))return ae;for(var oe=0;ae-oe>0||ae+oe=0&&this.$isAnnotationVisible(ae-oe))return ae-oe;if(ae+oe<=this.lines.getLength()-1&&this.$isAnnotationVisible(ae+oe))return ae+oe}return null},ie.prototype.$focusFoldWidget=function(ae){if(ae!=null){var oe=this.$getFoldWidget(ae);oe.classList.add(this.editor.renderer.keyboardFocusClassName),oe.focus()}},ie.prototype.$focusCustomWidget=function(ae){if(ae!=null){var oe=this.$getCustomWidget(ae);oe&&(oe.classList.add(this.editor.renderer.keyboardFocusClassName),oe.focus())}},ie.prototype.$focusAnnotation=function(ae){if(ae!=null){var oe=this.$getAnnotation(ae);oe.classList.add(this.editor.renderer.keyboardFocusClassName),oe.focus()}},ie.prototype.$blurFoldWidget=function(ae){var oe=this.$getFoldWidget(ae);oe.classList.remove(this.editor.renderer.keyboardFocusClassName),oe.blur()},ie.prototype.$blurCustomWidget=function(ae){var oe=this.$getCustomWidget(ae);oe&&(oe.classList.remove(this.editor.renderer.keyboardFocusClassName),oe.blur())},ie.prototype.$blurAnnotation=function(ae){var oe=this.$getAnnotation(ae);oe.classList.remove(this.editor.renderer.keyboardFocusClassName),oe.blur()},ie.prototype.$moveFoldWidgetUp=function(){for(var ae=this.activeRowIndex;ae>0;)if(ae--,this.$isFoldWidgetVisible(ae)||this.$isCustomWidgetVisible(ae)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=ae,this.$isFoldWidgetVisible(ae)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},ie.prototype.$moveFoldWidgetDown=function(){for(var ae=this.activeRowIndex;ae0;)if(ae--,this.$isAnnotationVisible(ae)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=ae,this.$focusAnnotation(this.activeRowIndex);return}},ie.prototype.$moveAnnotationDown=function(){for(var ae=this.activeRowIndex;ae=kt.length&&(kt=void 0),{value:kt&&kt[Lt++],done:!kt}}};throw new TypeError(At?"Object is not iterable.":"Symbol.iterator is not defined.")},V=r("./lib/oop"),re=r("./lib/dom"),ie=r("./lib/lang"),ae=r("./lib/useragent"),oe=r("./keyboard/textinput").TextInput,le=r("./mouse/mouse_handler").MouseHandler,ue=r("./mouse/fold_handler").FoldHandler,de=r("./keyboard/keybinding").KeyBinding,he=r("./edit_session").EditSession,pe=r("./search").Search,_e=r("./range").Range,Ce=r("./lib/event_emitter").EventEmitter,xe=r("./commands/command_manager").CommandManager,Ie=r("./commands/default_commands").commands,Ne=r("./config"),Oe=r("./token_iterator").TokenIterator,$e=r("./keyboard/gutter_handler").GutterKeyboardHandler,Ve=r("./config").nls,Ue=r("./clipboard"),Fe=r("./lib/keys"),ze=r("./lib/event"),Pt=r("./tooltip").HoverTooltip,qe=function(){function kt(At,Dt,Lt){this.id="editor"+ ++kt.$uid,this.session,this.$toDestroy=[];var jt=At.getContainerElement();this.container=jt,this.renderer=At,this.commands=new xe(ae.isMac?"mac":"win",Ie),typeof document=="object"&&(this.textInput=new oe(At.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new le(this),new ue(this)),this.keyBinding=new de(this),this.$search=new pe().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=ie.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(hn,vn){vn._$emitInputEvent.schedule(31)}),this.setSession(Dt||Lt&&Lt.session||new he("")),Ne.resetOptions(this),Lt&&this.setOptions(Lt),Ne._signal("editor",this)}return kt.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},kt.prototype.startOperation=function(At){this.session.startOperation(At)},kt.prototype.endOperation=function(At){this.session.endOperation(At)},kt.prototype.onStartOperation=function(At){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,At||(this.previousCommand=null)},kt.prototype.onEndOperation=function(At){if(this.curOp&&this.session){if(At&&At.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var Dt=this.curOp.command,Lt=Dt&&Dt.scrollIntoView;if(Lt){switch(Lt){case"center-animate":Lt="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var jt=this.selection.getRange(),hn=this.renderer.layerConfig;(jt.start.row>=hn.lastRow||jt.end.row<=hn.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}Lt=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},kt.prototype.$historyTracker=function(At){if(this.$mergeUndoDeltas){var Dt=this.prevOp,Lt=this.$mergeableCommands,jt=Dt.command&&At.command.name==Dt.command.name;if(At.command.name=="insertstring"){var hn=At.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),jt=jt&&this.mergeNextCommand&&(!/\s/.test(hn)||/\s/.test(Dt.args)),this.mergeNextCommand=!0}else jt=jt&&Lt.indexOf(At.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(jt=!1),jt?this.session.mergeUndoDeltas=!0:Lt.indexOf(At.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},kt.prototype.setKeyboardHandler=function(At,Dt){if(At&&typeof At=="string"&&At!="ace"){this.$keybindingId=At;var Lt=this;Ne.loadModule(["keybinding",At],function(jt){Lt.$keybindingId==At&&Lt.keyBinding.setKeyboardHandler(jt&&jt.handler),Dt&&Dt()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(At),Dt&&Dt()},kt.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},kt.prototype.setSession=function(At){if(this.session!=At){this.curOp&&this.endOperation(),this.curOp={};var Dt=this.session;if(Dt){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var Lt=this.session.getSelection();Lt.off("changeCursor",this.$onCursorChange),Lt.off("changeSelection",this.$onSelectionChange)}this.session=At,At?(this.$onDocumentChange=this.onDocumentChange.bind(this),At.on("change",this.$onDocumentChange),this.renderer.setSession(At),this.$onChangeMode=this.onChangeMode.bind(this),At.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),At.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),At.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),At.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),At.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),At.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=At.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(At)),this._signal("changeSession",{session:At,oldSession:Dt}),this.curOp=null,Dt&&Dt._signal("changeEditor",{oldEditor:this}),Dt&&(Dt.$editor=null),At&&At._signal("changeEditor",{editor:this}),At&&(At.$editor=this),At&&!At.destroyed&&At.bgTokenizer.scheduleStart()}},kt.prototype.getSession=function(){return this.session},kt.prototype.setValue=function(At,Dt){return this.session.doc.setValue(At),Dt?Dt==1?this.navigateFileEnd():Dt==-1&&this.navigateFileStart():this.selectAll(),At},kt.prototype.getValue=function(){return this.session.getValue()},kt.prototype.getSelection=function(){return this.selection},kt.prototype.resize=function(At){this.renderer.onResize(At)},kt.prototype.setTheme=function(At,Dt){this.renderer.setTheme(At,Dt)},kt.prototype.getTheme=function(){return this.renderer.getTheme()},kt.prototype.setStyle=function(At,Dt){this.renderer.setStyle(At,Dt)},kt.prototype.unsetStyle=function(At){this.renderer.unsetStyle(At)},kt.prototype.getFontSize=function(){return this.getOption("fontSize")||re.computedStyle(this.container).fontSize},kt.prototype.setFontSize=function(At){this.setOption("fontSize",At)},kt.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var At=this;this.$highlightPending=!0,setTimeout(function(){At.$highlightPending=!1;var Dt=At.session;if(!(!Dt||Dt.destroyed)){Dt.$bracketHighlight&&(Dt.$bracketHighlight.markerIds.forEach(function(Sn){Dt.removeMarker(Sn)}),Dt.$bracketHighlight=null);var Lt=At.getCursorPosition(),jt=At.getKeyboardHandler(),hn=jt&&jt.$getDirectionForHighlight&&jt.$getDirectionForHighlight(At),vn=Dt.getMatchingBracketRanges(Lt,hn);if(!vn){var _n=new Oe(Dt,Lt.row,Lt.column),wn=_n.getCurrentToken();if(wn&&/\b(?:tag-open|tag-name)/.test(wn.type)){var bn=Dt.getMatchingTags(Lt);bn&&(vn=[bn.openTagName.isEmpty()?bn.openTag:bn.openTagName,bn.closeTagName.isEmpty()?bn.closeTag:bn.closeTagName])}}if(!vn&&Dt.$mode.getMatching&&(vn=Dt.$mode.getMatching(At.session)),!vn){At.getHighlightIndentGuides()&&At.renderer.$textLayer.$highlightIndentGuide();return}var Cn="ace_bracket";Array.isArray(vn)?vn.length==1&&(Cn="ace_error_bracket"):vn=[vn],vn.length==2&&(_e.comparePoints(vn[0].end,vn[1].start)==0?vn=[_e.fromPoints(vn[0].start,vn[1].end)]:_e.comparePoints(vn[0].start,vn[1].end)==0&&(vn=[_e.fromPoints(vn[1].start,vn[0].end)])),Dt.$bracketHighlight={ranges:vn,markerIds:vn.map(function(Sn){return Dt.addMarker(Sn,Cn,"text")})},At.getHighlightIndentGuides()&&At.renderer.$textLayer.$highlightIndentGuide()}},50)}},kt.prototype.focus=function(){this.textInput.focus()},kt.prototype.isFocused=function(){return this.textInput.isFocused()},kt.prototype.blur=function(){this.textInput.blur()},kt.prototype.onFocus=function(At){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",At))},kt.prototype.onBlur=function(At){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",At))},kt.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},kt.prototype.onDocumentChange=function(At){var Dt=this.session.$useWrapMode,Lt=At.start.row==At.end.row?At.end.row:1/0;this.renderer.updateLines(At.start.row,Lt,Dt),this._signal("change",At),this.$cursorChange()},kt.prototype.onTokenizerUpdate=function(At){var Dt=At.data;this.renderer.updateLines(Dt.first,Dt.last)},kt.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},kt.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},kt.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},kt.prototype.$updateHighlightActiveLine=function(){var At=this.getSession(),Dt;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(Dt=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(Dt=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(Dt=!1)),At.$highlightLineMarker&&!Dt)At.removeMarker(At.$highlightLineMarker.id),At.$highlightLineMarker=null;else if(!At.$highlightLineMarker&&Dt){var Lt=new _e(Dt.row,Dt.column,Dt.row,1/0);Lt.id=At.addMarker(Lt,"ace_active-line","screenLine"),At.$highlightLineMarker=Lt}else Dt&&(At.$highlightLineMarker.start.row=Dt.row,At.$highlightLineMarker.end.row=Dt.row,At.$highlightLineMarker.start.column=Dt.column,At._signal("changeBackMarker"))},kt.prototype.onSelectionChange=function(At){var Dt=this.session;if(Dt.$selectionMarker&&Dt.removeMarker(Dt.$selectionMarker),Dt.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var Lt=this.selection.getRange(),jt=this.getSelectionStyle();Dt.$selectionMarker=Dt.addMarker(Lt,"ace_selection",jt)}var hn=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(hn),this._signal("changeSelection")},kt.prototype.$getSelectionHighLightRegexp=function(){var At=this.session,Dt=this.getSelectionRange();if(!(Dt.isEmpty()||Dt.isMultiLine())){var Lt=Dt.start.column,jt=Dt.end.column,hn=At.getLine(Dt.start.row),vn=hn.substring(Lt,jt);if(!(vn.length>5e3||!/[\w\d]/.test(vn))){var _n=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:vn}),wn=hn.substring(Lt-1,jt+1);if(_n.test(wn))return _n}}},kt.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},kt.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},kt.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},kt.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},kt.prototype.onChangeMode=function(At){this.renderer.updateText(),this._emit("changeMode",At)},kt.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},kt.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},kt.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},kt.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},kt.prototype.getCopyText=function(){var At=this.getSelectedText(),Dt=this.session.doc.getNewLineCharacter(),Lt=!1;if(!At&&this.$copyWithEmptySelection){Lt=!0;for(var jt=this.selection.getAllRanges(),hn=0;hnSn.search(/\S|$/)){var wn=Sn.substr(hn.column).search(/\S|$/);Lt.doc.removeInLine(hn.row,hn.column,hn.column+wn)}}this.clearSelection();var bn=hn.column,Cn=Lt.getState(hn.row),Sn=Lt.getLine(hn.row),Tn=jt.checkOutdent(Cn,Sn,At);if(Lt.insert(hn,At),vn&&vn.selection&&(vn.selection.length==2?this.selection.setSelectionRange(new _e(hn.row,bn+vn.selection[0],hn.row,bn+vn.selection[1])):this.selection.setSelectionRange(new _e(hn.row+vn.selection[0],vn.selection[1],hn.row+vn.selection[2],vn.selection[3]))),this.$enableAutoIndent){if(Lt.getDocument().isNewLine(At)){var En=jt.getNextLineIndent(Cn,Sn.slice(0,hn.column),Lt.getTabString());Lt.insert({row:hn.row+1,column:0},En)}Tn&&jt.autoOutdent(Cn,Lt,hn.row)}},kt.prototype.autoIndent=function(){for(var At=this.session,Dt=At.getMode(),Lt=this.selection.isEmpty()?[new _e(0,0,At.doc.getLength()-1,0)]:this.selection.getAllRanges(),jt="",hn="",vn="",_n=At.getTabString(),wn=0;wn0&&(jt=At.getState(Sn-1),hn=At.getLine(Sn-1),vn=Dt.getNextLineIndent(jt,hn,_n));var Tn=At.getLine(Sn),En=Dt.$getIndent(Tn);if(vn!==En){if(En.length>0){var kn=new _e(Sn,0,Sn,En.length);At.remove(kn)}vn.length>0&&At.insert({row:Sn,column:0},vn)}Dt.autoOutdent(jt,At,Sn)}},kt.prototype.onTextInput=function(At,Dt){if(!Dt)return this.keyBinding.onTextInput(At);this.startOperation({command:{name:"insertstring"}});var Lt=this.applyComposition.bind(this,At,Dt);this.selection.rangeCount?this.forEachSelection(Lt):Lt(),this.endOperation()},kt.prototype.applyComposition=function(At,Dt){if(Dt.extendLeft||Dt.extendRight){var Lt=this.selection.getRange();Lt.start.column-=Dt.extendLeft,Lt.end.column+=Dt.extendRight,Lt.start.column<0&&(Lt.start.row--,Lt.start.column+=this.session.getLine(Lt.start.row).length+1),this.selection.setRange(Lt),!At&&!Lt.isEmpty()&&this.remove()}if((At||!this.selection.isEmpty())&&this.insert(At,!0),Dt.restoreStart||Dt.restoreEnd){var Lt=this.selection.getRange();Lt.start.column-=Dt.restoreStart,Lt.end.column-=Dt.restoreEnd,this.selection.setRange(Lt)}},kt.prototype.onCommandKey=function(At,Dt,Lt){return this.keyBinding.onCommandKey(At,Dt,Lt)},kt.prototype.setOverwrite=function(At){this.session.setOverwrite(At)},kt.prototype.getOverwrite=function(){return this.session.getOverwrite()},kt.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},kt.prototype.setScrollSpeed=function(At){this.setOption("scrollSpeed",At)},kt.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},kt.prototype.setDragDelay=function(At){this.setOption("dragDelay",At)},kt.prototype.getDragDelay=function(){return this.getOption("dragDelay")},kt.prototype.setSelectionStyle=function(At){this.setOption("selectionStyle",At)},kt.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},kt.prototype.setHighlightActiveLine=function(At){this.setOption("highlightActiveLine",At)},kt.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},kt.prototype.setHighlightGutterLine=function(At){this.setOption("highlightGutterLine",At)},kt.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},kt.prototype.setHighlightSelectedWord=function(At){this.setOption("highlightSelectedWord",At)},kt.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},kt.prototype.setAnimatedScroll=function(At){this.renderer.setAnimatedScroll(At)},kt.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},kt.prototype.setShowInvisibles=function(At){this.renderer.setShowInvisibles(At)},kt.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},kt.prototype.setDisplayIndentGuides=function(At){this.renderer.setDisplayIndentGuides(At)},kt.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},kt.prototype.setHighlightIndentGuides=function(At){this.renderer.setHighlightIndentGuides(At)},kt.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},kt.prototype.setShowPrintMargin=function(At){this.renderer.setShowPrintMargin(At)},kt.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},kt.prototype.setPrintMarginColumn=function(At){this.renderer.setPrintMarginColumn(At)},kt.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},kt.prototype.setReadOnly=function(At){this.setOption("readOnly",At)},kt.prototype.getReadOnly=function(){return this.getOption("readOnly")},kt.prototype.setBehavioursEnabled=function(At){this.setOption("behavioursEnabled",At)},kt.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},kt.prototype.setWrapBehavioursEnabled=function(At){this.setOption("wrapBehavioursEnabled",At)},kt.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},kt.prototype.setShowFoldWidgets=function(At){this.setOption("showFoldWidgets",At)},kt.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},kt.prototype.setFadeFoldWidgets=function(At){this.setOption("fadeFoldWidgets",At)},kt.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},kt.prototype.remove=function(At){this.selection.isEmpty()&&(At=="left"?this.selection.selectLeft():this.selection.selectRight());var Dt=this.getSelectionRange();if(this.getBehavioursEnabled()){var Lt=this.session,jt=Lt.getState(Dt.start.row),hn=Lt.getMode().transformAction(jt,"deletion",this,Lt,Dt);if(Dt.end.column===0){var vn=Lt.getTextRange(Dt);if(vn[vn.length-1]==` `){var _n=Lt.getLine(Dt.end.row);/^\s+$/.test(_n)&&(Dt.end.column=_n.length)}}hn&&(Dt=hn)}this.session.remove(Dt),this.clearSelection()},kt.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},kt.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},kt.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},kt.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var At=this.getSelectionRange();At.start.column==At.end.column&&At.start.row==At.end.row&&(At.end.column=0,At.end.row++),this.session.remove(At),this.clearSelection()},kt.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var At=this.getCursorPosition();this.insert(` `),this.moveCursorToPosition(At)},kt.prototype.setGhostText=function(At,Dt){this.renderer.setGhostText(At,Dt)},kt.prototype.removeGhostText=function(){this.renderer.removeGhostText()},kt.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var At=this.getCursorPosition(),Dt=At.column;if(Dt!==0){var Lt=this.session.getLine(At.row),jt,hn;Dtwn.toLowerCase()?1:0});for(var hn=new _e(0,0,0,0),jt=At.first;jt<=At.last;jt++){var vn=Dt.getLine(jt);hn.start.row=jt,hn.end.row=jt,hn.end.column=vn.length,Dt.replace(hn,Lt[jt-At.first])}},kt.prototype.toggleCommentLines=function(){var At=this.session.getState(this.getCursorPosition().row),Dt=this.$getSelectedRows();this.session.getMode().toggleCommentLines(At,this.session,Dt.first,Dt.last)},kt.prototype.toggleBlockComment=function(){var At=this.getCursorPosition(),Dt=this.session.getState(At.row),Lt=this.getSelectionRange();this.session.getMode().toggleBlockComment(Dt,this.session,Lt,At)},kt.prototype.getNumberAt=function(At,Dt){var Lt=/[\-]?[0-9]+(?:\.[0-9]+)?/g;Lt.lastIndex=0;for(var jt=this.session.getLine(At);Lt.lastIndex=Dt){var vn={value:hn[0],start:hn.index,end:hn.index+hn[0].length};return vn}}return null},kt.prototype.modifyNumber=function(At){var Dt=this.selection.getCursor().row,Lt=this.selection.getCursor().column,jt=new _e(Dt,Lt-1,Dt,Lt),hn=this.session.getTextRange(jt);if(!isNaN(parseFloat(hn))&&isFinite(hn)){var vn=this.getNumberAt(Dt,Lt);if(vn){var _n=vn.value.indexOf(".")>=0?vn.start+vn.value.indexOf(".")+1:vn.end,wn=vn.start+vn.value.length-_n,bn=parseFloat(vn.value);bn*=Math.pow(10,wn),_n!==vn.end&&Lt<_n?At*=Math.pow(10,vn.end-Lt-1):At*=Math.pow(10,vn.end-Lt),bn+=At,bn/=Math.pow(10,wn);var Cn=bn.toFixed(wn),Sn=new _e(Dt,vn.start,Dt,vn.end);this.session.replace(Sn,Cn),this.moveCursorTo(Dt,Math.max(vn.start+1,Lt+Cn.length-vn.value.length))}}else this.toggleWord()},kt.prototype.toggleWord=function(){var At=this.selection.getCursor().row,Dt=this.selection.getCursor().column;this.selection.selectWord();var Lt=this.getSelectedText(),jt=this.selection.getWordRange().start.column,hn=Lt.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),vn=Dt-jt-1;vn<0&&(vn=0);var _n=0,wn=0,bn=this;Lt.match(/[A-Za-z0-9_]+/)&&hn.forEach(function(Ln,Nn){wn=_n+Ln.length,vn>=_n&&vn<=wn&&(Lt=Ln,bn.selection.clearSelection(),bn.moveCursorTo(At,_n+jt),bn.selection.selectTo(At,wn+jt)),_n=wn});for(var Cn=this.$toggleWordPairs,Sn,Tn=0;Tn=wn&&_n<=bn&&En.match(/((?:https?|ftp):\/\/[\S]+)/)){Cn=En.replace(/[\s:.,'";}\]]+$/,"");break}wn=bn}}catch(kn){Lt={error:kn}}finally{try{Tn&&!Tn.done&&(jt=Sn.return)&&jt.call(Sn)}finally{if(Lt)throw Lt.error}}return Cn},kt.prototype.openLink=function(){var At=this.selection.getCursor(),Dt=this.findLinkAt(At.row,At.column);return Dt&&window.open(Dt,"_blank"),Dt!=null},kt.prototype.removeLines=function(){var At=this.$getSelectedRows();this.session.removeFullLines(At.first,At.last),this.clearSelection()},kt.prototype.duplicateSelection=function(){var At=this.selection,Dt=this.session,Lt=At.getRange(),jt=At.isBackwards();if(Lt.isEmpty()){var hn=Lt.start.row;Dt.duplicateLines(hn,hn)}else{var vn=jt?Lt.start:Lt.end,_n=Dt.insert(vn,Dt.getTextRange(Lt));Lt.start=vn,Lt.end=_n,At.setSelectionRange(Lt,jt)}},kt.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},kt.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},kt.prototype.moveText=function(At,Dt,Lt){return this.session.moveText(At,Dt,Lt)},kt.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},kt.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},kt.prototype.$moveLines=function(At,Dt){var Lt,jt,hn=this.selection;if(!hn.inMultiSelectMode||this.inVirtualSelectionMode){var vn=hn.toOrientedRange();Lt=this.$getSelectedRows(vn),jt=this.session.$moveLines(Lt.first,Lt.last,Dt?0:At),Dt&&At==-1&&(jt=0),vn.moveBy(jt,0),hn.fromOrientedRange(vn)}else{var _n=hn.rangeList.ranges;hn.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var wn=0,bn=0,Cn=_n.length,Sn=0;Snkn+1)break;kn=$n.last}for(Sn--,wn=this.session.$moveLines(En,kn,Dt?0:At),Dt&&At==-1&&(Tn=Sn+1);Tn<=Sn;)_n[Tn].moveBy(wn,0),Tn++;Dt||(wn=0),bn+=wn}hn.fromOrientedRange(hn.ranges[0]),hn.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},kt.prototype.$getSelectedRows=function(At){return At=(At||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(At.start.row),last:this.session.getRowFoldEnd(At.end.row)}},kt.prototype.onCompositionStart=function(At){this.renderer.showComposition(At)},kt.prototype.onCompositionUpdate=function(At){this.renderer.setCompositionText(At)},kt.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},kt.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},kt.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},kt.prototype.isRowVisible=function(At){return At>=this.getFirstVisibleRow()&&At<=this.getLastVisibleRow()},kt.prototype.isRowFullyVisible=function(At){return At>=this.renderer.getFirstFullyVisibleRow()&&At<=this.renderer.getLastFullyVisibleRow()},kt.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},kt.prototype.$moveByPage=function(At,Dt){var Lt=this.renderer,jt=this.renderer.layerConfig,hn=At*Math.floor(jt.height/jt.lineHeight);Dt===!0?this.selection.$moveSelection(function(){this.moveCursorBy(hn,0)}):Dt===!1&&(this.selection.moveCursorBy(hn,0),this.selection.clearSelection());var vn=Lt.scrollTop;Lt.scrollBy(0,hn*jt.lineHeight),Dt!=null&&Lt.scrollCursorIntoView(null,.5),Lt.animateScrolling(vn)},kt.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},kt.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},kt.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},kt.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},kt.prototype.scrollPageDown=function(){this.$moveByPage(1)},kt.prototype.scrollPageUp=function(){this.$moveByPage(-1)},kt.prototype.scrollToRow=function(At){this.renderer.scrollToRow(At)},kt.prototype.scrollToLine=function(At,Dt,Lt,jt){this.renderer.scrollToLine(At,Dt,Lt,jt)},kt.prototype.centerSelection=function(){var At=this.getSelectionRange(),Dt={row:Math.floor(At.start.row+(At.end.row-At.start.row)/2),column:Math.floor(At.start.column+(At.end.column-At.start.column)/2)};this.renderer.alignCursor(Dt,.5)},kt.prototype.getCursorPosition=function(){return this.selection.getCursor()},kt.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},kt.prototype.getSelectionRange=function(){return this.selection.getRange()},kt.prototype.selectAll=function(){this.selection.selectAll()},kt.prototype.clearSelection=function(){this.selection.clearSelection()},kt.prototype.moveCursorTo=function(At,Dt){this.selection.moveCursorTo(At,Dt)},kt.prototype.moveCursorToPosition=function(At){this.selection.moveCursorToPosition(At)},kt.prototype.jumpToMatching=function(At,Dt){var Lt=this.getCursorPosition(),jt=new Oe(this.session,Lt.row,Lt.column),hn=jt.getCurrentToken(),vn=0;hn&&hn.type.indexOf("tag-name")!==-1&&(hn=jt.stepBackward());var _n=hn||jt.stepForward();if(_n){var wn,bn=!1,Cn={},Sn=Lt.column-_n.start,Tn,En={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(_n.value.match(/[{}()\[\]]/g)){for(;Sn<_n.value.length&&!bn;Sn++)if(En[_n.value[Sn]])switch(Tn=En[_n.value[Sn]]+"."+_n.type.replace("rparen","lparen"),isNaN(Cn[Tn])&&(Cn[Tn]=0),_n.value[Sn]){case"(":case"[":case"{":Cn[Tn]++;break;case")":case"]":case"}":Cn[Tn]--,Cn[Tn]===-1&&(wn="bracket",bn=!0);break}}else _n.type.indexOf("tag-name")!==-1&&(isNaN(Cn[_n.value])&&(Cn[_n.value]=0),hn.value==="<"&&vn>1?Cn[_n.value]++:hn.value==="=0;--vn)this.$tryReplace(Lt[vn],At)&&jt++;return this.selection.setSelectionRange(hn),jt},kt.prototype.$tryReplace=function(At,Dt){var Lt=this.session.getTextRange(At);return Dt=this.$search.replace(Lt,Dt),Dt!==null?(At.end=this.session.replace(At,Dt),At):null},kt.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},kt.prototype.find=function(At,Dt,Lt){Dt||(Dt={}),typeof At=="string"||At instanceof RegExp?Dt.needle=At:typeof At=="object"&&V.mixin(Dt,At);var jt=this.selection.getRange();Dt.needle==null&&(At=this.session.getTextRange(jt)||this.$search.$options.needle,At||(jt=this.session.getWordRange(jt.start.row,jt.start.column),At=this.session.getTextRange(jt)),this.$search.set({needle:At})),this.$search.set(Dt),Dt.start||this.$search.set({start:jt});var hn=this.$search.find(this.session);if(Dt.preventScroll)return hn;if(hn)return this.revealRange(hn,Lt),hn;Dt.backwards?jt.start=jt.end:jt.end=jt.start,this.selection.setRange(jt)},kt.prototype.findNext=function(At,Dt){this.find({skipCurrent:!0,backwards:!1},At,Dt)},kt.prototype.findPrevious=function(At,Dt){this.find(At,{skipCurrent:!0,backwards:!0},Dt)},kt.prototype.revealRange=function(At,Dt){this.session.unfold(At),this.selection.setSelectionRange(At);var Lt=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(At.start,At.end,.5),Dt!==!1&&this.renderer.animateScrolling(Lt)},kt.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},kt.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},kt.prototype.destroy=function(){this.destroyed=!0,this.$toDestroy&&(this.$toDestroy.forEach(function(At){At.destroy()}),this.$toDestroy=[]),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},kt.prototype.setAutoScrollEditorIntoView=function(At){if(At){var Dt,Lt=this,jt=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var hn=this.$scrollAnchor;hn.style.cssText="position:absolute",this.container.insertBefore(hn,this.container.firstChild);var vn=this.on("changeSelection",function(){jt=!0}),_n=this.renderer.on("beforeRender",function(){jt&&(Dt=Lt.renderer.container.getBoundingClientRect())}),wn=this.renderer.on("afterRender",function(){if(jt&&Dt&&(Lt.isFocused()||Lt.searchBox&&Lt.searchBox.isFocused())){var bn=Lt.renderer,Cn=bn.$cursorLayer.$pixelPos,Sn=bn.layerConfig,Tn=Cn.top-Sn.offset;Cn.top>=0&&Tn+Dt.top<0?jt=!0:Cn.topwindow.innerHeight?jt=!1:jt=null,jt!=null&&(hn.style.top=Tn+"px",hn.style.left=Cn.left+"px",hn.style.height=Sn.lineHeight+"px",hn.scrollIntoView(jt)),jt=Dt=null}});this.setAutoScrollEditorIntoView=function(bn){bn||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",vn),this.renderer.off("afterRender",wn),this.renderer.off("beforeRender",_n))}}},kt.prototype.$resetCursorStyle=function(){var At=this.$cursorStyle||"ace",Dt=this.renderer.$cursorLayer;Dt&&(Dt.setSmoothBlinking(/smooth/.test(At)),Dt.isBlinking=!this.$readOnly&&At!="wide",re.setCssClass(Dt.element,"ace_slim-cursors",/slim/.test(At)))},kt.prototype.prompt=function(At,Dt,Lt){var jt=this;Ne.loadModule("ace/ext/prompt",function(hn){hn.prompt(jt,At,Dt,Lt)})},kt}();qe.$uid=0,qe.prototype.curOp=null,qe.prototype.prevOp={},qe.prototype.$mergeableCommands=["backspace","del","insertstring"],qe.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],V.implement(qe.prototype,Ce),Ne.defineOptions(qe.prototype,"editor",{selectionStyle:{set:function(kt){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:kt})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(kt){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(kt){var At=this;if(this.textInput.setReadOnly(kt),!this.destroyed){this.$resetCursorStyle(),this.$readOnlyCallback||(this.$readOnlyCallback=function(Lt){var jt=!1;if(Lt&&Lt.type=="keydown"){if(Lt&&Lt.key&&!Lt.ctrlKey&&!Lt.metaKey&&(Lt.key==" "&&Lt.preventDefault(),jt=Lt.key.length==1),!jt)return}else Lt&&Lt.type!=="exec"&&(jt=!0);if(jt){At.hoverTooltip||(At.hoverTooltip=new Pt);var hn=re.createElement("div");hn.textContent=Ve("editor.tooltip.disable-editing","Editing is disabled"),At.hoverTooltip.isOpen||At.hoverTooltip.showForRange(At,At.getSelectionRange(),hn)}else At.hoverTooltip&&At.hoverTooltip.isOpen&&At.hoverTooltip.hide()});var Dt=this.textInput.getElement();kt?(ze.addListener(Dt,"keydown",this.$readOnlyCallback,this),this.commands.on("exec",this.$readOnlyCallback),this.commands.on("commandUnavailable",this.$readOnlyCallback)):(ze.removeListener(Dt,"keydown",this.$readOnlyCallback),this.commands.off("exec",this.$readOnlyCallback),this.commands.off("commandUnavailable",this.$readOnlyCallback),this.hoverTooltip&&(this.hoverTooltip.destroy(),this.hoverTooltip=null))}},initialValue:!1},copyWithEmptySelection:{set:function(kt){this.textInput.setCopyWithEmptySelection(kt)},initialValue:!1},cursorStyle:{set:function(kt){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(kt){this.setAutoScrollEditorIntoView(kt)}},keyboardHandler:{set:function(kt){this.setKeyboardHandler(kt)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(kt){this.session.setValue(kt)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(kt){this.setSession(kt)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(kt){this.renderer.$gutterLayer.setShowLineNumbers(kt),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),kt&&this.$relativeLineNumbers?Et.attach(this):Et.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(kt){this.$showLineNumbers&&kt?Et.attach(this):Et.detach(this)}},placeholder:{set:function(kt){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var At=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(At&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),re.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!At&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),re.addCssClass(this.container,"ace_hasPlaceholder");var Dt=re.createElement("div");Dt.className="ace_placeholder",Dt.textContent=this.$placeholder||"",this.renderer.placeholderNode=Dt,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!At&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(kt){var At={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(jt){jt.blur(),jt.renderer.scroller.focus()},readOnly:!0},Dt=function(jt){if(jt.target==this.renderer.scroller&&jt.keyCode===Fe.enter){jt.preventDefault();var hn=this.getCursorPosition().row;this.isRowVisible(hn)||this.scrollToLine(hn,!0,!0),this.focus()}},Lt;kt?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(ae.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",Ve("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",Ve("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",Dt.bind(this)),this.commands.addCommand(At),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",Ve("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",Ve("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),Lt||(Lt=new $e(this)),Lt.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",Dt.bind(this)),this.commands.removeCommand(At),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),Lt&&Lt.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(kt){this.$textInputAriaLabel=kt},initialValue:""},enableMobileMenu:{set:function(kt){this.$enableMobileMenu=kt},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var Et={getText:function(kt,At){return(Math.abs(kt.selection.lead.row-At)||At+1+(At<9?"·":""))+""},getWidth:function(kt,At,Dt){return Math.max(At.toString().length,(Dt.lastRow+1).toString().length,2)*Dt.characterWidth},update:function(kt,At){At.renderer.$loop.schedule(At.renderer.CHANGE_GUTTER)},attach:function(kt){kt.renderer.$gutterLayer.$renderer=this,kt.on("changeSelection",this.update),this.update(null,kt)},detach:function(kt){kt.renderer.$gutterLayer.$renderer==this&&(kt.renderer.$gutterLayer.$renderer=null),kt.off("changeSelection",this.update),this.update(null,kt)}};i.Editor=qe}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(r,i,g){var $=r("../lib/dom"),V=function(){function re(ie,ae){this.element=ie,this.canvasHeight=ae||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return re.prototype.moveContainer=function(ie){$.translate(this.element,0,-(ie.firstRowScreen*ie.lineHeight%this.canvasHeight)-ie.offset*this.$offsetCoefficient)},re.prototype.pageChanged=function(ie,ae){return Math.floor(ie.firstRowScreen*ie.lineHeight/this.canvasHeight)!==Math.floor(ae.firstRowScreen*ae.lineHeight/this.canvasHeight)},re.prototype.computeLineTop=function(ie,ae,oe){var le=ae.firstRowScreen*ae.lineHeight,ue=Math.floor(le/this.canvasHeight),de=oe.documentToScreenRow(ie,0)*ae.lineHeight;return de-ue*this.canvasHeight},re.prototype.computeLineHeight=function(ie,ae,oe){return ae.lineHeight*oe.getRowLineCount(ie)},re.prototype.getLength=function(){return this.cells.length},re.prototype.get=function(ie){return this.cells[ie]},re.prototype.shift=function(){this.$cacheCell(this.cells.shift())},re.prototype.pop=function(){this.$cacheCell(this.cells.pop())},re.prototype.push=function(ie){if(Array.isArray(ie)){this.cells.push.apply(this.cells,ie);for(var ae=$.createFragment(this.element),oe=0;oeIe&&($e=xe.end.row+1,xe=pe.getNextFoldLine($e,xe),Ie=xe?xe.start.row:1/0),$e>Ce){for(;this.$lines.getLength()>Oe+1;)this.$lines.pop();break}Ne=this.$lines.get(++Oe),Ne?Ne.row=$e:(Ne=this.$lines.createCell($e,he,this.session,ue),this.$lines.push(Ne)),this.$renderCell(Ne,he,xe,$e),$e++}this._signal("afterRender"),this.$updateGutterWidth(he),this.$showCursorMarker&&this.$highlightGutterLine&&this.$updateCursorMarker()},de.prototype.$updateGutterWidth=function(he){var pe=this.session,_e=pe.gutterRenderer||this.$renderer,Ce=pe.$firstLineNumber,xe=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||pe.$useWrapMode)&&(xe=pe.getLength()+Ce-1);var Ie=_e?_e.getWidth(pe,xe,he):xe.toString().length*he.characterWidth,Ne=this.$padding||this.$computePadding();Ie+=Ne.left+Ne.right,Ie!==this.gutterWidth&&!isNaN(Ie)&&(this.gutterWidth=Ie,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",Ie))},de.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var he=this.session.selection.getCursor();this.$cursorRow!==he.row&&(this.$cursorRow=he.row)}},de.prototype.updateLineHighlight=function(){if(this.$showCursorMarker&&this.$updateCursorMarker(),!!this.$highlightGutterLine){var he=this.session.selection.cursor.row;if(this.$cursorRow=he,!(this.$cursorCell&&this.$cursorCell.row==he)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var pe=this.$lines.cells;this.$cursorCell=null;for(var _e=0;_e=this.$cursorRow){if(Ce.row>this.$cursorRow){var xe=this.session.getFoldLine(this.$cursorRow);if(_e>0&&xe&&xe.start.row==pe[_e-1].row)Ce=pe[_e-1];else break}Ce.element.className="ace_gutter-active-line "+Ce.element.className,this.$cursorCell=Ce;break}}}}},de.prototype.$updateCursorMarker=function(){if(this.session){var he=this.session;this.$highlightElement||(this.$highlightElement=$.createElement("div"),this.$highlightElement.className="ace_gutter-cursor",this.$highlightElement.style.pointerEvents="none",this.element.appendChild(this.$highlightElement));var pe=he.selection.cursor,_e=this.config,Ce=this.$lines,xe=_e.firstRowScreen*_e.lineHeight,Ie=Math.floor(xe/Ce.canvasHeight),Ne=he.documentToScreenRow(pe)*_e.lineHeight,Oe=Ne-Ie*Ce.canvasHeight;$.setStyle(this.$highlightElement.style,"height",_e.lineHeight+"px"),$.setStyle(this.$highlightElement.style,"top",Oe+"px")}},de.prototype.scrollLines=function(he){var pe=this.config;if(this.config=he,this.$updateCursorRow(),this.$lines.pageChanged(pe,he))return this.update(he);this.$lines.moveContainer(he);var _e=Math.min(he.lastRow+he.gutterOffset,this.session.getLength()-1),Ce=this.oldLastRow;if(this.oldLastRow=_e,!pe||Ce0;xe--)this.$lines.shift();if(Ce>_e)for(var xe=this.session.getFoldedRowCount(_e+1,Ce);xe>0;xe--)this.$lines.pop();he.firstRowCe&&this.$lines.push(this.$renderLines(he,Ce+1,_e)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(he)},de.prototype.$renderLines=function(he,pe,_e){for(var Ce=[],xe=pe,Ie=this.session.getNextFoldLine(xe),Ne=Ie?Ie.start.row:1/0;xe>Ne&&(xe=Ie.end.row+1,Ie=this.session.getNextFoldLine(xe,Ie),Ne=Ie?Ie.start.row:1/0),!(xe>_e);){var Oe=this.$lines.createCell(xe,he,this.session,ue);this.$renderCell(Oe,he,Ie,xe),Ce.push(Oe),xe++}return Ce},de.prototype.$renderCell=function(he,pe,_e,Ce){var xe=he.element,Ie=this.session,Ne=xe.childNodes[0],Oe=xe.childNodes[1],$e=xe.childNodes[2],Ve=xe.childNodes[3],Ue=$e.firstChild,Fe=Ie.$firstLineNumber,ze=Ie.$breakpoints,Pt=Ie.$decorations,qe=Ie.gutterRenderer||this.$renderer,Et=this.$showFoldWidgets&&Ie.foldWidgets,kt=_e?_e.start.row:Number.MAX_VALUE,At=pe.lineHeight+"px",Dt=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",Lt=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",jt=(qe?qe.getText(Ie,Ce):Ce+Fe).toString();if(this.$highlightGutterLine&&(Ce==this.$cursorRow||_e&&Ce=kt&&this.$cursorRow<=_e.end.row)&&(Dt+="ace_gutter-active-line ",this.$cursorCell!=he&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=he)),ze[Ce]&&(Dt+=ze[Ce]),Pt[Ce]&&(Dt+=Pt[Ce]),this.$annotations[Ce]&&Ce!==kt&&(Dt+=this.$annotations[Ce].className),Et){var hn=Et[Ce];hn==null&&(hn=Et[Ce]=Ie.getFoldWidget(Ce))}if(hn){var vn="ace_fold-widget ace_"+hn,_n=hn=="start"&&Ce==kt&&Ce<_e.end.row;if(_n){vn+=" ace_closed";for(var wn="",bn=!1,Cn=Ce+1;Cn<=_e.end.row;Cn++)if(this.$annotations[Cn]){if(this.$annotations[Cn].className===" ace_error"){bn=!0,wn=" ace_error_fold";break}this.$annotations[Cn].className===" ace_security"?(bn=!0,wn=" ace_security_fold"):this.$annotations[Cn].className===" ace_warning"&&wn!==" ace_security_fold"&&(bn=!0,wn=" ace_warning_fold")}Dt+=wn}else vn+=" ace_open";Oe.className!=vn&&(Oe.className=vn),$.setStyle(Oe.style,"height",At),$.setStyle(Oe.style,"display","inline-block"),Oe.setAttribute("role","button"),Oe.setAttribute("tabindex","-1");var Sn=Ie.getFoldWidgetRange(Ce);Sn?Oe.setAttribute("aria-label",oe("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Sn.start.row+1,Sn.end.row+1])):_e?Oe.setAttribute("aria-label",oe("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[_e.start.row+1,_e.end.row+1])):Oe.setAttribute("aria-label",oe("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[Ce+1])),_n?(Oe.setAttribute("aria-expanded","false"),Oe.setAttribute("title",oe("gutter.code-folding.closed.title","Unfold code"))):(Oe.setAttribute("aria-expanded","true"),Oe.setAttribute("title",oe("gutter.code-folding.open.title","Fold code")))}else Oe&&($.setStyle(Oe.style,"display","none"),Oe.setAttribute("tabindex","0"),Oe.removeAttribute("role"),Oe.removeAttribute("aria-label"));var Tn=this.session.$gutterCustomWidgets[Ce];if(Tn?this.$addCustomWidget(Ce,Tn,he):Ve&&this.$removeCustomWidget(Ce,he),bn&&this.$showFoldedAnnotations){$e.className="ace_gutter_annotation",Ue.className=Lt,Ue.className+=wn,$.setStyle(Ue.style,"height",At),$.setStyle($e.style,"display","block"),$.setStyle($e.style,"height",At);var En;switch(wn){case" ace_error_fold":En=oe("gutter.annotation.aria-label.error","Error, read annotations row $0",[jt]);break;case" ace_security_fold":En=oe("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[jt]);break;case" ace_warning_fold":En=oe("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[jt]);break}$e.setAttribute("aria-label",En),$e.setAttribute("tabindex","-1"),$e.setAttribute("role","button")}else if(this.$annotations[Ce]){$e.className="ace_gutter_annotation",Ue.className=Lt,this.$useSvgGutterIcons?Ue.className+=this.$annotations[Ce].className:xe.classList.add(this.$annotations[Ce].className.replace(" ","")),$.setStyle(Ue.style,"height",At),$.setStyle($e.style,"display","block"),$.setStyle($e.style,"height",At);var En;switch(this.$annotations[Ce].className){case" ace_error":En=oe("gutter.annotation.aria-label.error","Error, read annotations row $0",[jt]);break;case" ace_security":En=oe("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[jt]);break;case" ace_warning":En=oe("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[jt]);break;case" ace_info":En=oe("gutter.annotation.aria-label.info","Info, read annotations row $0",[jt]);break;case" ace_hint":En=oe("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[jt]);break}$e.setAttribute("aria-label",En),$e.setAttribute("tabindex","-1"),$e.setAttribute("role","button")}else $.setStyle($e.style,"display","none"),$e.removeAttribute("aria-label"),$e.removeAttribute("role"),$e.setAttribute("tabindex","0");return jt!==Ne.data&&(Ne.data=jt),xe.className!=Dt&&(xe.className=Dt),$.setStyle(he.element.style,"height",this.$lines.computeLineHeight(Ce,pe,Ie)+"px"),$.setStyle(he.element.style,"top",this.$lines.computeLineTop(Ce,pe,Ie)+"px"),he.text=jt,$e.style.display==="none"&&Oe.style.display==="none"&&!Tn?he.element.setAttribute("aria-hidden",!0):he.element.setAttribute("aria-hidden",!1),he},de.prototype.setHighlightGutterLine=function(he){this.$highlightGutterLine=he,!he&&this.$highlightElement&&(this.$highlightElement.remove(),this.$highlightElement=null)},de.prototype.setShowLineNumbers=function(he){this.$renderer=!he&&{getWidth:function(){return 0},getText:function(){return""}}},de.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},de.prototype.setShowFoldWidgets=function(he){he?$.addCssClass(this.element,"ace_folding-enabled"):$.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=he,this.$padding=null},de.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},de.prototype.$hideFoldWidget=function(he,pe){var _e=pe||this.$getGutterCell(he);if(_e&&_e.element){var Ce=_e.element.childNodes[1];Ce&&$.setStyle(Ce.style,"display","none")}},de.prototype.$showFoldWidget=function(he,pe){var _e=pe||this.$getGutterCell(he);if(_e&&_e.element){var Ce=_e.element.childNodes[1];Ce&&this.session.foldWidgets&&this.session.foldWidgets[_e.row]&&$.setStyle(Ce.style,"display","inline-block")}},de.prototype.$getGutterCell=function(he){var pe=this.$lines.cells,_e=0,Ce=pe.length-1;if(!(hepe[Ce].row)){for(;_e<=Ce;){var xe=Math.floor((_e+Ce)/2),Ie=pe[xe];if(Ie.row>he)Ce=xe-1;else if(Ie.row_e.right-pe.right)return"foldWidgets"},de}();le.prototype.$fixedWidth=!1,le.prototype.$highlightGutterLine=!0,le.prototype.$renderer=void 0,le.prototype.$showLineNumbers=!0,le.prototype.$showFoldWidgets=!0,V.implement(le.prototype,ie);function ue(de){var he=document.createTextNode("");de.appendChild(he);var pe=$.createElement("span");de.appendChild(pe);var _e=$.createElement("span");de.appendChild(_e);var Ce=$.createElement("span");return _e.appendChild(Ce),de}i.Gutter=le}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(r,i,g){var $=r("../range").Range,V=r("../lib/dom"),re=function(){function ae(oe){this.element=V.createElement("div"),this.element.className="ace_layer ace_marker-layer",oe.appendChild(this.element)}return ae.prototype.setPadding=function(oe){this.$padding=oe},ae.prototype.setSession=function(oe){this.session=oe},ae.prototype.setMarkers=function(oe){this.markers=oe},ae.prototype.elt=function(oe,le){var ue=this.i!=-1&&this.element.childNodes[this.i];ue?this.i++:(ue=document.createElement("div"),this.element.appendChild(ue),this.i=-1),ue.style.cssText=le,ue.className=oe},ae.prototype.update=function(oe){if(oe){this.config=oe,this.i=0;var le;for(var ue in this.markers){var de=this.markers[ue];if(!de.range){de.update(le,this,this.session,oe);continue}var he=de.range.clipRows(oe.firstRow,oe.lastRow);if(!he.isEmpty())if(he=he.toScreenRange(this.session),de.renderer){var pe=this.$getTop(he.start.row,oe),_e=this.$padding+he.start.column*oe.characterWidth;de.renderer(le,he,_e,pe,oe)}else de.type=="fullLine"?this.drawFullLineMarker(le,he,de.clazz,oe):de.type=="screenLine"?this.drawScreenLineMarker(le,he,de.clazz,oe):he.isMultiLine()?de.type=="text"?this.drawTextMarker(le,he,de.clazz,oe):this.drawMultiLineMarker(le,he,de.clazz,oe):this.drawSingleLineMarker(le,he,de.clazz+" ace_start ace_br15",oe)}if(this.i!=-1)for(;this.iOe,xe==Ce),de,xe==Ce?0:1,he)},ae.prototype.drawMultiLineMarker=function(oe,le,ue,de,he){var pe=this.$padding,_e=de.lineHeight,Ce=this.$getTop(le.start.row,de),xe=pe+le.start.column*de.characterWidth;if(he=he||"",this.session.$bidiHandler.isBidiRow(le.start.row)){var Ie=le.clone();Ie.end.row=Ie.start.row,Ie.end.column=this.session.getLine(Ie.start.row).length,this.drawBidiSingleLineMarker(oe,Ie,ue+" ace_br1 ace_start",de,null,he)}else this.elt(ue+" ace_br1 ace_start","height:"+_e+"px;right:"+pe+"px;top:"+Ce+"px;left:"+xe+"px;"+(he||""));if(this.session.$bidiHandler.isBidiRow(le.end.row)){var Ie=le.clone();Ie.start.row=Ie.end.row,Ie.start.column=0,this.drawBidiSingleLineMarker(oe,Ie,ue+" ace_br12",de,null,he)}else{Ce=this.$getTop(le.end.row,de);var Ne=le.end.column*de.characterWidth;this.elt(ue+" ace_br12","height:"+_e+"px;width:"+Ne+"px;top:"+Ce+"px;left:"+pe+"px;"+(he||""))}if(_e=(le.end.row-le.start.row-1)*de.lineHeight,!(_e<=0)){Ce=this.$getTop(le.start.row+1,de);var Oe=(le.start.column?1:0)|(le.end.column?0:8);this.elt(ue+(Oe?" ace_br"+Oe:""),"height:"+_e+"px;right:"+pe+"px;top:"+Ce+"px;left:"+pe+"px;"+(he||""))}},ae.prototype.drawSingleLineMarker=function(oe,le,ue,de,he,pe){if(this.session.$bidiHandler.isBidiRow(le.start.row))return this.drawBidiSingleLineMarker(oe,le,ue,de,he,pe);var _e=de.lineHeight,Ce=(le.end.column+(he||0)-le.start.column)*de.characterWidth,xe=this.$getTop(le.start.row,de),Ie=this.$padding+le.start.column*de.characterWidth;this.elt(ue,"height:"+_e+"px;width:"+Ce+"px;top:"+xe+"px;left:"+Ie+"px;"+(pe||""))},ae.prototype.drawBidiSingleLineMarker=function(oe,le,ue,de,he,pe){var _e=de.lineHeight,Ce=this.$getTop(le.start.row,de),xe=this.$padding,Ie=this.session.$bidiHandler.getSelections(le.start.column,le.end.column);Ie.forEach(function(Ne){this.elt(ue,"height:"+_e+"px;width:"+(Ne.width+(he||0))+"px;top:"+Ce+"px;left:"+(xe+Ne.left)+"px;"+(pe||""))},this)},ae.prototype.drawFullLineMarker=function(oe,le,ue,de,he){var pe=this.$getTop(le.start.row,de),_e=de.lineHeight;le.start.row!=le.end.row&&(_e+=this.$getTop(le.end.row,de)-pe),this.elt(ue,"height:"+_e+"px;top:"+pe+"px;left:0;right:0;"+(he||""))},ae.prototype.drawScreenLineMarker=function(oe,le,ue,de,he){var pe=this.$getTop(le.start.row,de),_e=de.lineHeight;this.elt(ue,"height:"+_e+"px;top:"+pe+"px;left:0;right:0;"+(he||""))},ae}();re.prototype.$padding=0;function ie(ae,oe,le,ue){return(ae?1:0)|(oe?2:0)|(le?4:0)|(ue?8:0)}i.Marker=re}),ace.define("ace/layer/text_util",["require","exports","module"],function(r,i,g){var $=new Set(["text","rparen","lparen"]);i.isTextToken=function(V){return $.has(V)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(r,i,g){var $=r("../lib/oop"),V=r("../lib/dom"),re=r("../lib/lang"),ie=r("./lines").Lines,ae=r("../lib/event_emitter").EventEmitter,oe=r("../config").nls,le=r("./text_util").isTextToken,ue=function(){function de(he){this.dom=V,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",he.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new ie(this.element)}return de.prototype.$updateEolChar=function(){var he=this.session.doc,pe=he.getNewLineCharacter()==` `&&he.getNewLineMode()!="windows",_e=pe?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=_e)return this.EOL_CHAR=_e,!0},de.prototype.setPadding=function(he){this.$padding=he,this.element.style.margin="0 "+he+"px"},de.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},de.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},de.prototype.$setFontMetrics=function(he){this.$fontMetrics=he,this.$fontMetrics.on("changeCharacterSize",(function(pe){this._signal("changeCharacterSize",pe)}).bind(this)),this.$pollSizeChanges()},de.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},de.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},de.prototype.setSession=function(he){this.session=he,he&&this.$computeTabString()},de.prototype.setShowInvisibles=function(he){return this.showInvisibles==he?!1:(this.showInvisibles=he,typeof he=="string"?(this.showSpaces=/tab/i.test(he),this.showTabs=/space/i.test(he),this.showEOL=/eol/i.test(he)):this.showSpaces=this.showTabs=this.showEOL=he,this.$computeTabString(),!0)},de.prototype.setDisplayIndentGuides=function(he){return this.displayIndentGuides==he?!1:(this.displayIndentGuides=he,this.$computeTabString(),!0)},de.prototype.setHighlightIndentGuides=function(he){return this.$highlightIndentGuides===he?!1:(this.$highlightIndentGuides=he,he)},de.prototype.$computeTabString=function(){var he=this.session.getTabSize();this.tabSize=he;for(var pe=this.$tabStrings=[0],_e=1;_eUe&&($e=Ve.end.row+1,Ve=this.session.getNextFoldLine($e,Ve),Ue=Ve?Ve.start.row:1/0),!($e>xe);){var Fe=Ie[Ne++];if(Fe){this.dom.removeChildren(Fe),this.$renderLine(Fe,$e,$e==Ue?Ve:!1),Oe&&(Fe.style.top=this.$lines.computeLineTop($e,he,this.session)+"px");var ze=he.lineHeight*this.session.getRowLength($e)+"px";Fe.style.height!=ze&&(Oe=!0,Fe.style.height=ze)}$e++}if(Oe)for(;Ne0;xe--)this.$lines.shift();if(pe.lastRow>he.lastRow)for(var xe=this.session.getFoldedRowCount(he.lastRow+1,pe.lastRow);xe>0;xe--)this.$lines.pop();he.firstRowpe.lastRow&&this.$lines.push(this.$renderLinesFragment(he,pe.lastRow+1,he.lastRow)),this.$highlightIndentGuide()},de.prototype.$renderLinesFragment=function(he,pe,_e){for(var Ce=[],xe=pe,Ie=this.session.getNextFoldLine(xe),Ne=Ie?Ie.start.row:1/0;xe>Ne&&(xe=Ie.end.row+1,Ie=this.session.getNextFoldLine(xe,Ie),Ne=Ie?Ie.start.row:1/0),!(xe>_e);){var Oe=this.$lines.createCell(xe,he,this.session),$e=Oe.element;this.dom.removeChildren($e),V.setStyle($e.style,"height",this.$lines.computeLineHeight(xe,he,this.session)+"px"),V.setStyle($e.style,"top",this.$lines.computeLineTop(xe,he,this.session)+"px"),this.$renderLine($e,xe,xe==Ne?Ie:!1),this.$useLineGroups()?$e.className="ace_line_group":$e.className="ace_line",Ce.push(Oe),xe++}return Ce},de.prototype.update=function(he){this.$lines.moveContainer(he),this.config=he;for(var pe=he.firstRow,_e=he.lastRow,Ce=this.$lines;Ce.getLength();)Ce.pop();Ce.push(this.$renderLinesFragment(he,pe,_e))},de.prototype.$renderToken=function(he,pe,_e,Ce){for(var xe=this,Ie=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,Ne=this.dom.createFragment(this.element),Oe,$e=0;Oe=Ie.exec(Ce);){var Ve=Oe[1],Ue=Oe[2],Fe=Oe[3],ze=Oe[4],Pt=Oe[5];if(!(!xe.showSpaces&&Ue)){var qe=$e!=Oe.index?Ce.slice($e,Oe.index):"";if($e=Oe.index+Oe[0].length,qe&&Ne.appendChild(this.dom.createTextNode(qe,this.element)),Ve){var Et=xe.session.getScreenTabSize(pe+Oe.index),kt=xe.$tabStrings[Et].cloneNode(!0);kt.charCount=1,Ne.appendChild(kt),pe+=Et-1}else if(Ue)if(xe.showSpaces){var At=this.dom.createElement("span");At.className="ace_invisible ace_invisible_space",At.textContent=re.stringRepeat(xe.SPACE_CHAR,Ue.length),Ne.appendChild(At)}else Ne.appendChild(this.dom.createTextNode(Ue,this.element));else if(Fe){var At=this.dom.createElement("span");At.className="ace_invisible ace_invisible_space ace_invalid",At.textContent=re.stringRepeat(xe.SPACE_CHAR,Fe.length),Ne.appendChild(At)}else if(ze){pe+=1;var At=this.dom.createElement("span");At.style.width=xe.config.characterWidth*2+"px",At.className=xe.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",At.textContent=xe.showSpaces?xe.SPACE_CHAR:ze,Ne.appendChild(At)}else if(Pt){pe+=1;var At=this.dom.createElement("span");At.style.width=xe.config.characterWidth*2+"px",At.className="ace_cjk",At.textContent=Pt,Ne.appendChild(At)}}}if(Ne.appendChild(this.dom.createTextNode($e?Ce.slice($e):Ce,this.element)),le(_e.type))he.appendChild(Ne);else{var Dt="ace_"+_e.type.replace(/\./g," ace_"),At=this.dom.createElement("span");_e.type=="fold"&&(At.style.width=_e.value.length*this.config.characterWidth+"px",At.setAttribute("title",oe("inline-fold.closed.title","Unfold code"))),At.className=Dt,At.appendChild(Ne),he.appendChild(At)}return pe+Ce.length},de.prototype.renderIndentGuide=function(he,pe,_e){var Ce=pe.search(this.$indentGuideRe);if(Ce<=0||Ce>=_e)return pe;if(pe[0]==" "){Ce-=Ce%this.tabSize;for(var xe=Ce/this.tabSize,Ie=0;IeIe[Ne].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&he[pe.row]!==""&&pe.column===he[pe.row].length){this.$highlightIndentGuideMarker.dir=1;for(var Ne=pe.row+1;Ne0)Ce=he.element.childNodes[0];else return;var xe=Ce.childNodes;if(xe){var Ie=xe[pe-1];Ie&&Ie.classList&&Ie.classList.contains("ace_indent-guide")&&Ie.classList.add("ace_indent-guide-active")}}},de.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var he=this.$lines.cells;this.$clearActiveIndentGuide();var pe=this.$highlightIndentGuideMarker.indentLevel;if(pe!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var _e=0;_e=this.$highlightIndentGuideMarker.start+1){if(Ce.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(Ce,pe)}}else for(var _e=he.length-1;_e>=0;_e--){var Ce=he[_e];if(this.$highlightIndentGuideMarker.end&&Ce.row=Ie;){Ne=this.$renderToken(Oe,Ne,Ve,Ue.substring(0,Ie-Ce)),Ue=Ue.substring(Ie-Ce),Ce=Ie,Oe=this.$createLineElement(),he.appendChild(Oe);var Fe=this.dom.createTextNode(re.stringRepeat(" ",_e.indent),this.element);Fe.charCount=0,Oe.appendChild(Fe),xe++,Ne=0,Ie=_e[xe]||Number.MAX_VALUE}Ue.length!=0&&(Ce+=Ue.length,Ne=this.$renderToken(Oe,Ne,Ve,Ue))}}_e[_e.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(Oe,Ne,null,"",!0)},de.prototype.$renderSimpleLine=function(he,pe){for(var _e=0,Ce=0;Cethis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(he,_e,xe,Ie);_e=this.$renderToken(he,_e,xe,Ie)}}},de.prototype.$renderOverflowMessage=function(he,pe,_e,Ce,xe){_e&&this.$renderToken(he,pe,_e,Ce.slice(0,this.MAX_LINE_LENGTH-pe));var Ie=this.dom.createElement("span");Ie.className="ace_inline_button ace_keyword ace_toggle_wrap",Ie.textContent=xe?"":"",he.appendChild(Ie)},de.prototype.$renderLine=function(he,pe,_e){if(!_e&&_e!=!1&&(_e=this.session.getFoldLine(pe)),_e)var Ce=this.$getFoldLineTokens(pe,_e);else var Ce=this.session.getTokens(pe);var xe=he;if(Ce.length){var Ie=this.session.getRowSplitData(pe);if(Ie&&Ie.length){this.$renderWrappedLine(he,Ce,Ie);var xe=he.lastChild}else{var xe=he;this.$useLineGroups()&&(xe=this.$createLineElement(),he.appendChild(xe)),this.$renderSimpleLine(xe,Ce)}}else this.$useLineGroups()&&(xe=this.$createLineElement(),he.appendChild(xe));if(this.showEOL&&xe){_e&&(pe=_e.end.row);var Ne=this.dom.createElement("span");Ne.className="ace_invisible ace_invisible_eol",Ne.textContent=pe==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,xe.appendChild(Ne)}},de.prototype.$getFoldLineTokens=function(he,pe){var _e=this.session,Ce=[];function xe(Ne,Oe,$e){for(var Ve=0,Ue=0;Ue+Ne[Ve].value.length$e-Oe&&(Fe=Fe.substring(0,$e-Oe)),Ce.push({type:Ne[Ve].type,value:Fe}),Ue=Oe+Fe.length,Ve+=1}for(;Ue<$e&&Ve$e?Ce.push({type:Ne[Ve].type,value:Fe.substring(0,$e-Ue)}):Ce.push(Ne[Ve]),Ue+=Fe.length,Ve+=1}}var Ie=_e.getTokens(he);return pe.walk(function(Ne,Oe,$e,Ve,Ue){Ne!=null?Ce.push({type:"fold",value:Ne}):(Ue&&(Ie=_e.getTokens(Oe)),Ie.length&&xe(Ie,Ve,$e))},pe.end.row,this.session.getLine(pe.end.row).length),Ce},de.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},de}();ue.prototype.EOF_CHAR="¶",ue.prototype.EOL_CHAR_LF="¬",ue.prototype.EOL_CHAR_CRLF="¤",ue.prototype.EOL_CHAR=ue.prototype.EOL_CHAR_LF,ue.prototype.TAB_CHAR="—",ue.prototype.SPACE_CHAR="·",ue.prototype.$padding=0,ue.prototype.MAX_LINE_LENGTH=1e4,ue.prototype.showInvisibles=!1,ue.prototype.showSpaces=!1,ue.prototype.showTabs=!1,ue.prototype.showEOL=!1,ue.prototype.displayIndentGuides=!0,ue.prototype.$highlightIndentGuides=!0,ue.prototype.$tabStrings=[],ue.prototype.destroy={},ue.prototype.onChangeTabSize=ue.prototype.$computeTabString,$.implement(ue.prototype,ae),i.Text=ue}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(r,i,g){var $=r("../lib/dom"),V=function(){function re(ie){this.element=$.createElement("div"),this.element.className="ace_layer ace_cursor-layer",ie.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),$.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return re.prototype.$updateOpacity=function(ie){for(var ae=this.cursors,oe=ae.length;oe--;)$.setStyle(ae[oe].style,"opacity",ie?"":"0")},re.prototype.$startCssAnimation=function(){for(var ie=this.cursors,ae=ie.length;ae--;)ie[ae].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&$.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},re.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,$.removeCssClass(this.element,"ace_animate-blinking")},re.prototype.setPadding=function(ie){this.$padding=ie},re.prototype.setSession=function(ie){this.session=ie},re.prototype.setBlinking=function(ie){ie!=this.isBlinking&&(this.isBlinking=ie,this.restartTimer())},re.prototype.setBlinkInterval=function(ie){ie!=this.blinkInterval&&(this.blinkInterval=ie,this.restartTimer())},re.prototype.setSmoothBlinking=function(ie){ie!=this.smoothBlinking&&(this.smoothBlinking=ie,$.setCssClass(this.element,"ace_smooth-blinking",ie),this.$updateCursors(!0),this.restartTimer())},re.prototype.addCursor=function(){var ie=$.createElement("div");return ie.className="ace_cursor",this.element.appendChild(ie),this.cursors.push(ie),ie},re.prototype.removeCursor=function(){if(this.cursors.length>1){var ie=this.cursors.pop();return ie.parentNode.removeChild(ie),ie}},re.prototype.hideCursor=function(){this.isVisible=!1,$.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},re.prototype.showCursor=function(){this.isVisible=!0,$.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},re.prototype.restartTimer=function(){var ie=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,$.removeCssClass(this.element,"ace_smooth-blinking")),ie(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&$.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),$.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var ae=(function(){this.timeoutId=setTimeout(function(){ie(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){ie(!0),ae()},this.blinkInterval),ae()}},re.prototype.getPixelPosition=function(ie,ae){if(!this.config||!this.session)return{left:0,top:0};ie||(ie=this.session.selection.getCursor());var oe=this.session.documentToScreenPosition(ie),le=this.$padding+(this.session.$bidiHandler.isBidiRow(oe.row,ie.row)?this.session.$bidiHandler.getPosLeft(oe.column):oe.column*this.config.characterWidth),ue=(oe.row-(ae?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:le,top:ue}},re.prototype.isCursorInView=function(ie,ae){return ie.top>=0&&ie.topie.height+ie.offset||de.top<0)&&oe>1)){var he=this.cursors[le++]||this.addCursor(),pe=he.style;this.drawCursor?this.drawCursor(he,de,ie,ae[oe],this.session):this.isCursorInView(de,ie)?($.setStyle(pe,"display","block"),$.translate(he,de.left,de.top),$.setStyle(pe,"width",Math.round(ie.characterWidth)+"px"),$.setStyle(pe,"height",ie.lineHeight+"px")):$.setStyle(pe,"display","none")}}for(;this.cursors.length>le;)this.removeCursor();var _e=this.session.getOverwrite();this.$setOverwrite(_e),this.$pixelPos=de,this.restartTimer()},re.prototype.$setOverwrite=function(ie){ie!=this.overwrite&&(this.overwrite=ie,ie?$.addCssClass(this.element,"ace_overwrite-cursors"):$.removeCssClass(this.element,"ace_overwrite-cursors"))},re.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},re}();V.prototype.$padding=0,V.prototype.drawCursor=null,i.Cursor=V}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(r,i,g){var $=this&&this.__extends||function(){var he=function(pe,_e){return he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ce,xe){Ce.__proto__=xe}||function(Ce,xe){for(var Ie in xe)Object.prototype.hasOwnProperty.call(xe,Ie)&&(Ce[Ie]=xe[Ie])},he(pe,_e)};return function(pe,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Class extends value "+String(_e)+" is not a constructor or null");he(pe,_e);function Ce(){this.constructor=pe}pe.prototype=_e===null?Object.create(_e):(Ce.prototype=_e.prototype,new Ce)}}(),V=r("./lib/oop"),re=r("./lib/dom"),ie=r("./lib/event"),ae=r("./lib/event_emitter").EventEmitter,oe=32768,le=function(){function he(pe,_e){this.element=re.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+_e,this.inner=re.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),pe.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,ie.addListener(this.element,"scroll",this.onScroll.bind(this)),ie.addListener(this.element,"mousedown",ie.preventDefault)}return he.prototype.setVisible=function(pe){this.element.style.display=pe?"":"none",this.isVisible=pe,this.coeff=1},he}();V.implement(le.prototype,ae);var ue=function(he){$(pe,he);function pe(_e,Ce){var xe=he.call(this,_e,"-v")||this;return xe.scrollTop=0,xe.scrollHeight=0,Ce.$scrollbarWidth=xe.width=re.scrollbarWidth(_e.ownerDocument),xe.inner.style.width=xe.element.style.width=(xe.width||15)+5+"px",xe.$minWidth=0,xe}return pe.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var _e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-_e)/(this.coeff-_e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},pe.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},pe.prototype.setHeight=function(_e){this.element.style.height=_e+"px"},pe.prototype.setScrollHeight=function(_e){this.scrollHeight=_e,_e>oe?(this.coeff=oe/_e,_e=oe):this.coeff!=1&&(this.coeff=1),this.inner.style.height=_e+"px"},pe.prototype.setScrollTop=function(_e){this.scrollTop!=_e&&(this.skipEvent=!0,this.scrollTop=_e,this.element.scrollTop=_e*this.coeff)},pe}(le);ue.prototype.setInnerHeight=ue.prototype.setScrollHeight;var de=function(he){$(pe,he);function pe(_e,Ce){var xe=he.call(this,_e,"-h")||this;return xe.scrollLeft=0,xe.height=Ce.$scrollbarWidth,xe.inner.style.height=xe.element.style.height=(xe.height||15)+5+"px",xe}return pe.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},pe.prototype.getHeight=function(){return this.isVisible?this.height:0},pe.prototype.setWidth=function(_e){this.element.style.width=_e+"px"},pe.prototype.setInnerWidth=function(_e){this.inner.style.width=_e+"px"},pe.prototype.setScrollWidth=function(_e){this.inner.style.width=_e+"px"},pe.prototype.setScrollLeft=function(_e){this.scrollLeft!=_e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=_e)},pe}(le);i.ScrollBar=ue,i.ScrollBarV=ue,i.ScrollBarH=de,i.VScrollBar=ue,i.HScrollBar=de}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(r,i,g){var $=this&&this.__extends||function(){var de=function(he,pe){return de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,Ce){_e.__proto__=Ce}||function(_e,Ce){for(var xe in Ce)Object.prototype.hasOwnProperty.call(Ce,xe)&&(_e[xe]=Ce[xe])},de(he,pe)};return function(he,pe){if(typeof pe!="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");de(he,pe);function _e(){this.constructor=he}he.prototype=pe===null?Object.create(pe):(_e.prototype=pe.prototype,new _e)}}(),V=r("./lib/oop"),re=r("./lib/dom"),ie=r("./lib/event"),ae=r("./lib/event_emitter").EventEmitter;re.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{ position: absolute; background: rgba(128, 128, 128, 0.6); -moz-box-sizing: border-box; box-sizing: border-box; border: 1px solid #bbb; border-radius: 2px; z-index: 8; } .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h { position: absolute; z-index: 6; background: none; overflow: hidden!important; } .ace_editor>.ace_sb-v { z-index: 6; right: 0; top: 0; width: 12px; } .ace_editor>.ace_sb-v div { z-index: 8; right: 0; width: 100%; } .ace_editor>.ace_sb-h { bottom: 0; left: 0; height: 12px; } .ace_editor>.ace_sb-h div { bottom: 0; height: 100%; } .ace_editor>.ace_sb_grabbed { z-index: 8; background: #000; }`,"ace_scrollbar.css",!1);var oe=function(){function de(he,pe){this.element=re.createElement("div"),this.element.className="ace_sb"+pe,this.inner=re.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,he.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,ie.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return de.prototype.setVisible=function(he){this.element.style.display=he?"":"none",this.isVisible=he,this.coeff=1},de}();V.implement(oe.prototype,ae);var le=function(de){$(he,de);function he(pe,_e){var Ce=de.call(this,pe,"-v")||this;return Ce.scrollTop=0,Ce.scrollHeight=0,Ce.parent=pe,Ce.width=Ce.VScrollWidth,Ce.renderer=_e,Ce.inner.style.width=Ce.element.style.width=(Ce.width||15)+"px",Ce.$minWidth=0,Ce}return he.prototype.onMouseDown=function(pe,_e){if(pe==="mousedown"&&!(ie.getButton(_e)!==0||_e.detail===2)){if(_e.target===this.inner){var Ce=this,xe=_e.clientY,Ie=function(ze){xe=ze.clientY},Ne=function(){clearInterval(Ue)},Oe=_e.clientY,$e=this.thumbTop,Ve=function(){if(xe!==void 0){var ze=Ce.scrollTopFromThumbTop($e+xe-Oe);ze!==Ce.scrollTop&&Ce._emit("scroll",{data:ze})}};ie.capture(this.inner,Ie,Ne);var Ue=setInterval(Ve,20);return ie.preventDefault(_e)}var Fe=_e.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(Fe)}),ie.preventDefault(_e)}},he.prototype.getHeight=function(){return this.height},he.prototype.scrollTopFromThumbTop=function(pe){var _e=pe*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return _e=_e>>0,_e<0?_e=0:_e>this.pageHeight-this.viewHeight&&(_e=this.pageHeight-this.viewHeight),_e},he.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},he.prototype.setHeight=function(pe){this.height=Math.max(0,pe),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},he.prototype.setScrollHeight=function(pe,_e){this.pageHeight===pe&&!_e||(this.pageHeight=pe,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},he.prototype.setScrollTop=function(pe){this.scrollTop=pe,pe<0&&(pe=0),this.thumbTop=pe*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},he}(oe);le.prototype.setInnerHeight=le.prototype.setScrollHeight;var ue=function(de){$(he,de);function he(pe,_e){var Ce=de.call(this,pe,"-h")||this;return Ce.scrollLeft=0,Ce.scrollWidth=0,Ce.height=Ce.HScrollHeight,Ce.inner.style.height=Ce.element.style.height=(Ce.height||12)+"px",Ce.renderer=_e,Ce}return he.prototype.onMouseDown=function(pe,_e){if(pe==="mousedown"&&!(ie.getButton(_e)!==0||_e.detail===2)){if(_e.target===this.inner){var Ce=this,xe=_e.clientX,Ie=function(ze){xe=ze.clientX},Ne=function(){clearInterval(Ue)},Oe=_e.clientX,$e=this.thumbLeft,Ve=function(){if(xe!==void 0){var ze=Ce.scrollLeftFromThumbLeft($e+xe-Oe);ze!==Ce.scrollLeft&&Ce._emit("scroll",{data:ze})}};ie.capture(this.inner,Ie,Ne);var Ue=setInterval(Ve,20);return ie.preventDefault(_e)}var Fe=_e.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(Fe)}),ie.preventDefault(_e)}},he.prototype.getHeight=function(){return this.isVisible?this.height:0},he.prototype.scrollLeftFromThumbLeft=function(pe){var _e=pe*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return _e=_e>>0,_e<0?_e=0:_e>this.pageWidth-this.viewWidth&&(_e=this.pageWidth-this.viewWidth),_e},he.prototype.setWidth=function(pe){this.width=Math.max(0,pe),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},he.prototype.setScrollWidth=function(pe,_e){this.pageWidth===pe&&!_e||(this.pageWidth=pe,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},he.prototype.setScrollLeft=function(pe){this.scrollLeft=pe,pe<0&&(pe=0),this.thumbLeft=pe*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},he}(oe);ue.prototype.setInnerWidth=ue.prototype.setScrollWidth,i.ScrollBar=le,i.ScrollBarV=le,i.ScrollBarH=ue,i.VScrollBar=le,i.HScrollBar=ue}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(r,i,g){var $=r("./lib/event"),V=function(){function re(ie,ae){this.onRender=ie,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=ae||window;var oe=this;this._flush=function(le){oe.pending=!1;var ue=oe.changes;if(ue&&($.blockIdle(100),oe.changes=0,oe.onRender(ue)),oe.changes){if(oe.$recursionLimit--<0)return;oe.schedule()}else oe.$recursionLimit=2}}return re.prototype.schedule=function(ie){this.changes=this.changes|ie,this.changes&&!this.pending&&($.nextFrame(this._flush),this.pending=!0)},re.prototype.clear=function(ie){var ae=this.changes;return this.changes=0,ae},re}();i.RenderLoop=V}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(r,i,g){var $=r("../lib/oop"),V=r("../lib/dom"),re=r("../lib/lang"),ie=r("../lib/event"),ae=r("../lib/useragent"),oe=r("../lib/event_emitter").EventEmitter,le=512,ue=typeof ResizeObserver=="function",de=200,he=function(){function pe(_e){this.el=V.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=V.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=V.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),_e.appendChild(this.el),this.$measureNode.textContent=re.stringRepeat("X",le),this.$characterSize={width:0,height:0},ue?this.$addObserver():this.checkForSizeChanges()}return pe.prototype.$setMeasureNodeStyles=function(_e,Ce){_e.width=_e.height="auto",_e.left=_e.top="0px",_e.visibility="hidden",_e.position="absolute",_e.whiteSpace="pre",ae.isIE<8?_e["font-family"]="inherit":_e.font="inherit",_e.overflow=Ce?"hidden":"visible"},pe.prototype.checkForSizeChanges=function(_e){if(_e===void 0&&(_e=this.$measureSizes()),_e&&(this.$characterSize.width!==_e.width||this.$characterSize.height!==_e.height)){this.$measureNode.style.fontWeight="bold";var Ce=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=_e,this.charSizes=Object.create(null),this.allowBoldFonts=Ce&&Ce.width===_e.width&&Ce.height===_e.height,this._emit("changeCharacterSize",{data:_e})}},pe.prototype.$addObserver=function(){var _e=this;this.$observer=new window.ResizeObserver(function(Ce){_e.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},pe.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var _e=this;return this.$pollSizeChangesTimer=ie.onIdle(function Ce(){_e.checkForSizeChanges(),ie.onIdle(Ce,500)},500)},pe.prototype.setPolling=function(_e){_e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},pe.prototype.$measureSizes=function(_e){var Ce={height:(_e||this.$measureNode).clientHeight,width:(_e||this.$measureNode).clientWidth/le};return Ce.width===0||Ce.height===0?null:Ce},pe.prototype.$measureCharWidth=function(_e){this.$main.textContent=re.stringRepeat(_e,le);var Ce=this.$main.getBoundingClientRect();return Ce.width/le},pe.prototype.getCharacterWidth=function(_e){var Ce=this.charSizes[_e];return Ce===void 0&&(Ce=this.charSizes[_e]=this.$measureCharWidth(_e)/this.$characterSize.width),Ce},pe.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},pe.prototype.$getZoom=function(_e){return!_e||!_e.parentElement?1:(Number(window.getComputedStyle(_e).zoom)||1)*this.$getZoom(_e.parentElement)},pe.prototype.$initTransformMeasureNodes=function(){var _e=function(Ce,xe){return["div",{style:"position: absolute;top:"+Ce+"px;left:"+xe+"px;"}]};this.els=V.buildDom([_e(0,0),_e(de,0),_e(0,de),_e(de,de)],this.el)},pe.prototype.transformCoordinates=function(_e,Ce){if(_e){var xe=this.$getZoom(this.el);_e=$e(1/xe,_e)}function Ie(vn,_n,wn){var bn=vn[1]*_n[0]-vn[0]*_n[1];return[(-_n[1]*wn[0]+_n[0]*wn[1])/bn,(+vn[1]*wn[0]-vn[0]*wn[1])/bn]}function Ne(vn,_n){return[vn[0]-_n[0],vn[1]-_n[1]]}function Oe(vn,_n){return[vn[0]+_n[0],vn[1]+_n[1]]}function $e(vn,_n){return[vn*_n[0],vn*_n[1]]}this.els||this.$initTransformMeasureNodes();function Ve(vn){var _n=vn.getBoundingClientRect();return[_n.left,_n.top]}var Ue=Ve(this.els[0]),Fe=Ve(this.els[1]),ze=Ve(this.els[2]),Pt=Ve(this.els[3]),qe=Ie(Ne(Pt,Fe),Ne(Pt,ze),Ne(Oe(Fe,ze),Oe(Pt,Ue))),Et=$e(1+qe[0],Ne(Fe,Ue)),kt=$e(1+qe[1],Ne(ze,Ue));if(Ce){var At=Ce,Dt=qe[0]*At[0]/de+qe[1]*At[1]/de+1,Lt=Oe($e(At[0],Et),$e(At[1],kt));return Oe($e(1/Dt/de,Lt),Ue)}var jt=Ne(_e,Ue),hn=Ie(Ne(Et,$e(qe[0],jt)),Ne(kt,$e(qe[1],jt)),jt);return $e(de,hn)},pe}();he.prototype.$characterSize={width:0,height:0},$.implement(he.prototype,oe),i.FontMetrics=he}),ace.define("ace/css/editor-css",["require","exports","module"],function(r,i,g){g.exports=` .ace_br1 {border-top-left-radius : 3px;} .ace_br2 {border-top-right-radius : 3px;} .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;} .ace_br4 {border-bottom-right-radius: 3px;} .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;} .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;} .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;} .ace_br8 {border-bottom-left-radius : 3px;} .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;} .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;} .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;} .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} .ace_editor { position: relative; overflow: hidden; padding: 0; font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace; direction: ltr; text-align: left; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); forced-color-adjust: none; } .ace_scroller { position: absolute; overflow: hidden; top: 0; bottom: 0; background-color: inherit; -ms-user-select: none; -moz-user-select: none; -webkit-user-select: none; user-select: none; cursor: text; } .ace_content { position: absolute; box-sizing: border-box; min-width: 100%; contain: style size layout; font-variant-ligatures: no-common-ligatures; } .ace_invisible { font-variant-ligatures: none; } .ace_keyboard-focus:focus { box-shadow: inset 0 0 0 2px #5E9ED6; outline: none; } .ace_dragging .ace_scroller:before{ position: absolute; top: 0; left: 0; right: 0; bottom: 0; content: ''; background: rgba(250, 250, 250, 0.01); z-index: 1000; } .ace_dragging.ace_dark .ace_scroller:before{ background: rgba(0, 0, 0, 0.01); } .ace_gutter { position: absolute; overflow : hidden; width: auto; top: 0; bottom: 0; left: 0; cursor: default; z-index: 4; -ms-user-select: none; -moz-user-select: none; -webkit-user-select: none; user-select: none; contain: style size layout; } .ace_gutter-active-line { position: absolute; left: 0; right: 0; } .ace_scroller.ace_scroll-left:after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset; pointer-events: none; } .ace_gutter-cell, .ace_gutter-cell_svg-icons { position: absolute; top: 0; left: 0; right: 0; padding-left: 19px; padding-right: 6px; background-repeat: no-repeat; } .ace_gutter-cell_svg-icons .ace_gutter_annotation { margin-left: -14px; float: left; } .ace_gutter-cell .ace_gutter_annotation { margin-left: -19px; float: left; } .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg=="); background-repeat: no-repeat; background-position: 2px center; } .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg=="); background-repeat: no-repeat; background-position: 2px center; } .ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII="); background-repeat: no-repeat; background-position: 2px center; } .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC"); } .ace_icon_svg.ace_error { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+"); background-color: crimson; } .ace_icon_svg.ace_security { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+"); background-color: crimson; } .ace_icon_svg.ace_warning { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg=="); background-color: darkorange; } .ace_icon_svg.ace_info { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg=="); background-color: royalblue; } .ace_icon_svg.ace_hint { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg=="); background-color: silver; } .ace_icon_svg.ace_error_fold { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4="); background-color: crimson; } .ace_icon_svg.ace_security_fold { -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4="); background-color: crimson; } .ace_icon_svg.ace_warning_fold { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4="); background-color: darkorange; } .ace_scrollbar { contain: strict; position: absolute; right: 0; bottom: 0; z-index: 6; } .ace_scrollbar-inner { position: absolute; cursor: text; left: 0; top: 0; } .ace_scrollbar-v{ overflow-x: hidden; overflow-y: scroll; top: 0; } .ace_scrollbar-h { overflow-x: scroll; overflow-y: hidden; left: 0; } .ace_print-margin { position: absolute; height: 100%; } .ace_text-input { position: absolute; z-index: 0; width: 0.5em; height: 1em; opacity: 0; background: transparent; -moz-appearance: none; appearance: none; border: none; resize: none; outline: none; overflow: hidden; font: inherit; padding: 0 1px; margin: 0 -1px; contain: strict; -ms-user-select: text; -moz-user-select: text; -webkit-user-select: text; user-select: text; /*with \`pre-line\` chrome inserts   instead of space*/ white-space: pre!important; } .ace_text-input.ace_composition { background: transparent; color: inherit; z-index: 1000; opacity: 1; } .ace_composition_placeholder { color: transparent } .ace_composition_marker { border-bottom: 1px solid; position: absolute; border-radius: 0; margin-top: 1px; } [ace_nocontext=true] { transform: none!important; filter: none!important; clip-path: none!important; mask : none!important; contain: none!important; perspective: none!important; mix-blend-mode: initial!important; z-index: auto; } .ace_layer { z-index: 1; position: absolute; overflow: hidden; /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/ word-wrap: normal; white-space: pre; height: 100%; width: 100%; box-sizing: border-box; /* setting pointer-events: auto; on node under the mouse, which changes during scroll, will break mouse wheel scrolling in Safari */ pointer-events: none; } .ace_gutter-layer { position: relative; width: auto; text-align: right; pointer-events: auto; height: 1000000px; contain: style size layout; } .ace_text-layer { font: inherit !important; position: absolute; height: 1000000px; width: 1000000px; contain: style size layout; } .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group { contain: style size layout; position: absolute; top: 0; left: 0; right: 0; } .ace_hidpi .ace_text-layer, .ace_hidpi .ace_gutter-layer, .ace_hidpi .ace_content, .ace_hidpi .ace_gutter { contain: strict; } .ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group { contain: strict; } .ace_cjk { display: inline-block; text-align: center; } .ace_cursor-layer { z-index: 4; } .ace_cursor { z-index: 4; position: absolute; box-sizing: border-box; border-left: 2px solid; /* workaround for smooth cursor repaintng whole screen in chrome */ transform: translatez(0); } .ace_multiselect .ace_cursor { border-left-width: 1px; } .ace_slim-cursors .ace_cursor { border-left-width: 1px; } .ace_overwrite-cursors .ace_cursor { border-left-width: 0; border-bottom: 1px solid; } .ace_hidden-cursors .ace_cursor { opacity: 0.2; } .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor { opacity: 0; } .ace_smooth-blinking .ace_cursor { transition: opacity 0.18s; } .ace_animate-blinking .ace_cursor { animation-duration: 1000ms; animation-timing-function: step-end; animation-name: blink-ace-animate; animation-iteration-count: infinite; } .ace_animate-blinking.ace_smooth-blinking .ace_cursor { animation-duration: 1000ms; animation-timing-function: ease-in-out; animation-name: blink-ace-animate-smooth; } @keyframes blink-ace-animate { from, to { opacity: 1; } 60% { opacity: 0; } } @keyframes blink-ace-animate-smooth { from, to { opacity: 1; } 45% { opacity: 1; } 60% { opacity: 0; } 85% { opacity: 0; } } .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack { position: absolute; z-index: 3; } .ace_marker-layer .ace_selection { position: absolute; z-index: 5; } .ace_marker-layer .ace_bracket { position: absolute; z-index: 6; } .ace_marker-layer .ace_error_bracket { position: absolute; border-bottom: 1px solid #DE5555; border-radius: 0; } .ace_marker-layer .ace_active-line { position: absolute; z-index: 2; } .ace_marker-layer .ace_selected-word { position: absolute; z-index: 4; box-sizing: border-box; } .ace_line .ace_fold { box-sizing: border-box; display: inline-block; height: 11px; margin-top: -2px; vertical-align: middle; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII="); background-repeat: no-repeat, repeat-x; background-position: center center, top left; color: transparent; border: 1px solid black; border-radius: 2px; cursor: pointer; pointer-events: auto; } .ace_dark .ace_fold { } .ace_fold:hover{ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC"); } .ace_tooltip { background-color: #f5f5f5; border: 1px solid gray; border-radius: 1px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); color: black; padding: 3px 4px; position: fixed; z-index: 999999; box-sizing: border-box; cursor: default; white-space: pre-wrap; word-wrap: break-word; line-height: normal; font-style: normal; font-weight: normal; letter-spacing: normal; pointer-events: none; overflow: auto; max-width: min(33em, 66vw); overscroll-behavior: contain; } .ace_tooltip pre { white-space: pre-wrap; } .ace_tooltip.ace_dark { background-color: #636363; color: #fff; } .ace_tooltip:focus { outline: 1px solid #5E9ED6; } .ace_icon { display: inline-block; width: 18px; vertical-align: top; } .ace_icon_svg { display: inline-block; width: 12px; vertical-align: top; -webkit-mask-repeat: no-repeat; -webkit-mask-size: 12px; -webkit-mask-position: center; } .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons { padding-right: 13px; } .ace_fold-widget, .ace_custom-widget { box-sizing: border-box; margin: 0 -12px 0 1px; display: none; width: 11px; vertical-align: top; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg=="); background-repeat: no-repeat; background-position: center; border-radius: 3px; border: 1px solid transparent; cursor: pointer; pointer-events: auto; } .ace_custom-widget { background: none; } .ace_folding-enabled .ace_fold-widget { display: inline-block; } .ace_fold-widget.ace_end { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg=="); } .ace_fold-widget.ace_closed { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA=="); } .ace_fold-widget:hover { border: 1px solid rgba(0, 0, 0, 0.3); background-color: rgba(255, 255, 255, 0.2); box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7); } .ace_fold-widget:active { border: 1px solid rgba(0, 0, 0, 0.4); background-color: rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8); } /** * Dark version for fold widgets */ .ace_dark .ace_fold-widget { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC"); } .ace_dark .ace_fold-widget.ace_end { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg=="); } .ace_dark .ace_fold-widget.ace_closed { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg=="); } .ace_dark .ace_fold-widget:hover { box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.1); } .ace_dark .ace_fold-widget:active { box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); } .ace_inline_button { border: 1px solid lightgray; display: inline-block; margin: -1px 8px; padding: 0 5px; pointer-events: auto; cursor: pointer; } .ace_inline_button:hover { border-color: gray; background: rgba(200,200,200,0.2); display: inline-block; pointer-events: auto; } .ace_fold-widget.ace_invalid { background-color: #FFB4B4; border-color: #DE5555; } .ace_fade-fold-widgets .ace_fold-widget { transition: opacity 0.4s ease 0.05s; opacity: 0; } .ace_fade-fold-widgets:hover .ace_fold-widget { transition: opacity 0.05s ease 0.05s; opacity:1; } .ace_underline { text-decoration: underline; } .ace_bold { font-weight: bold; } .ace_nobold .ace_bold { font-weight: normal; } .ace_italic { font-style: italic; } .ace_error-marker { background-color: rgba(255, 0, 0,0.2); position: absolute; z-index: 9; } .ace_highlight-marker { background-color: rgba(255, 255, 0,0.2); position: absolute; z-index: 8; } .ace_mobile-menu { position: absolute; line-height: 1.5; border-radius: 4px; -ms-user-select: none; -moz-user-select: none; -webkit-user-select: none; user-select: none; background: white; box-shadow: 1px 3px 2px grey; border: 1px solid #dcdcdc; color: black; } .ace_dark > .ace_mobile-menu { background: #333; color: #ccc; box-shadow: 1px 3px 2px grey; border: 1px solid #444; } .ace_mobile-button { padding: 2px; cursor: pointer; overflow: hidden; } .ace_mobile-button:hover { background-color: #eee; opacity:1; } .ace_mobile-button:active { background-color: #ddd; } .ace_placeholder { position: relative; font-family: arial; transform: scale(0.9); transform-origin: left; white-space: pre; opacity: 0.7; margin: 0 10px; z-index: 1; } .ace_ghost_text { opacity: 0.5; font-style: italic; } .ace_ghost_text_container > div { white-space: pre; } .ghost_text_line_wrapped::after { content: "↩"; position: absolute; } .ace_lineWidgetContainer.ace_ghost_text { margin: 0px 4px } .ace_screenreader-only { position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; } .ace_hidden_token { display: none; }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(r,i,g){var $=r("../lib/dom"),V=r("../lib/oop"),re=r("../lib/event_emitter").EventEmitter,ie=function(){function ae(oe,le){this.renderer=le,this.pixelRatio=1,this.maxHeight=le.layerConfig.maxHeight,this.lineHeight=le.layerConfig.lineHeight,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},this.setScrollBarV(oe)}return ae.prototype.$createCanvas=function(){this.canvas=$.createElement("canvas"),this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7",this.canvas.style.position="absolute"},ae.prototype.setScrollBarV=function(oe){this.$createCanvas(),this.scrollbarV=oe,oe.element.appendChild(this.canvas),this.setDimensions()},ae.prototype.$updateDecorators=function(oe){if(typeof this.canvas.getContext!="function")return;var le=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;this.setDimensions(oe);var ue=this.canvas.getContext("2d");function de(Et,kt){return Et.prioritykt.priority?1:0}var he=this.renderer.session.$annotations;if(ue.clearRect(0,0,this.canvas.width,this.canvas.height),he){var pe={info:1,warning:2,error:3};he.forEach(function(Et){Et.priority=pe[Et.type]||null}),he=he.sort(de);for(var _e=0;_ethis.canvasHeight&&($e=this.canvasHeight-Ve);var Ue=$e-Ve,Fe=$e+Ve,ze=Fe-Ue;ue.fillStyle=le[he[_e].type]||null,ue.fillRect(0,Ue,Math.round(this.oneZoneWidth-1),ze)}}var Pt=this.renderer.session.selection.getCursor();if(Pt){var qe=Math.round(this.getVerticalOffsetForRow(Pt.row)*this.heightRatio);ue.fillStyle="rgba(0, 0, 0, 0.5)",ue.fillRect(0,qe,this.canvasWidth,2)}},ae.prototype.getVerticalOffsetForRow=function(oe){oe=oe|0;var le=this.renderer.session.documentToScreenRow(oe,0)*this.lineHeight;return le},ae.prototype.setDimensions=function(oe){oe=oe||this.renderer.layerConfig,this.maxHeight=oe.maxHeight,this.lineHeight=oe.lineHeight,this.canvasHeight=oe.height,this.canvasWidth=this.scrollbarV.width||this.canvasWidth,this.setZoneWidth(),this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.maxHeightze&&(this.$changedLines.firstRow=ze),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},Fe.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},Fe.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},Fe.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},Fe.prototype.updateFull=function(ze){ze?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},Fe.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},Fe.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},Fe.prototype.onResize=function(ze,Pt,qe,Et){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=ze?1:0;var kt=this.container;Et||(Et=kt.clientHeight||kt.scrollHeight),!Et&&this.$maxLines&&this.lineHeight>1&&(!kt.style.height||kt.style.height=="0px")&&(kt.style.height="1px",Et=kt.clientHeight||kt.scrollHeight),qe||(qe=kt.clientWidth||kt.scrollWidth);var At=this.$updateCachedSize(ze,Pt,qe,Et);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!qe&&!Et)return this.resizing=0;ze&&(this.$gutterLayer.$padding=null),ze?this.$renderChanges(At|this.$changes,!0):this.$loop.schedule(At|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},Fe.prototype.$updateCachedSize=function(ze,Pt,qe,Et){Et-=this.$extraHeight||0;var kt=0,At=this.$size,Dt={width:At.width,height:At.height,scrollerHeight:At.scrollerHeight,scrollerWidth:At.scrollerWidth};if(Et&&(ze||At.height!=Et)&&(At.height=Et,kt|=this.CHANGE_SIZE,At.scrollerHeight=At.height,this.$horizScroll&&(At.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(At.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",kt=kt|this.CHANGE_SCROLL),qe&&(ze||At.width!=qe)){kt|=this.CHANGE_SIZE,At.width=qe,Pt==null&&(Pt=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=Pt,V.setStyle(this.scrollBarH.element.style,"left",Pt+"px"),V.setStyle(this.scroller.style,"left",Pt+this.margin.left+"px"),At.scrollerWidth=Math.max(0,qe-Pt-this.scrollBarV.getWidth()-this.margin.h),V.setStyle(this.$gutter.style,"left",this.margin.left+"px");var Lt=this.scrollBarV.getWidth()+"px";V.setStyle(this.scrollBarH.element.style,"right",Lt),V.setStyle(this.scroller.style,"right",Lt),V.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(At.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||ze)&&(kt|=this.CHANGE_FULL)}return At.$dirty=!qe||!Et,kt&&this._signal("resize",Dt),kt},Fe.prototype.onGutterResize=function(ze){var Pt=this.$showGutter?ze:0;Pt!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,Pt,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},Fe.prototype.adjustWrapLimit=function(){var ze=this.$size.scrollerWidth-this.$padding*2,Pt=Math.floor(ze/this.characterWidth);return this.session.adjustWrapLimit(Pt,this.$showPrintMargin&&this.$printMarginColumn)},Fe.prototype.setAnimatedScroll=function(ze){this.setOption("animatedScroll",ze)},Fe.prototype.getAnimatedScroll=function(){return this.$animatedScroll},Fe.prototype.setShowInvisibles=function(ze){this.setOption("showInvisibles",ze),this.session.$bidiHandler.setShowInvisibles(ze)},Fe.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},Fe.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},Fe.prototype.setDisplayIndentGuides=function(ze){this.setOption("displayIndentGuides",ze)},Fe.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},Fe.prototype.setHighlightIndentGuides=function(ze){this.setOption("highlightIndentGuides",ze)},Fe.prototype.setShowPrintMargin=function(ze){this.setOption("showPrintMargin",ze)},Fe.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},Fe.prototype.setPrintMarginColumn=function(ze){this.setOption("printMarginColumn",ze)},Fe.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},Fe.prototype.getShowGutter=function(){return this.getOption("showGutter")},Fe.prototype.setShowGutter=function(ze){return this.setOption("showGutter",ze)},Fe.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},Fe.prototype.setFadeFoldWidgets=function(ze){this.setOption("fadeFoldWidgets",ze)},Fe.prototype.setHighlightGutterLine=function(ze){this.setOption("highlightGutterLine",ze)},Fe.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},Fe.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var ze=V.createElement("div");ze.className="ace_layer ace_print-margin-layer",this.$printMarginEl=V.createElement("div"),this.$printMarginEl.className="ace_print-margin",ze.appendChild(this.$printMarginEl),this.content.insertBefore(ze,this.content.firstChild)}var Pt=this.$printMarginEl.style;Pt.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",Pt.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},Fe.prototype.getContainerElement=function(){return this.container},Fe.prototype.getMouseEventTarget=function(){return this.scroller},Fe.prototype.getTextAreaContainer=function(){return this.container},Fe.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var ze=this.textarea.style,Pt=this.$composition;if(!this.$keepTextAreaAtCursor&&!Pt){V.translate(this.textarea,-100,0);return}var qe=this.$cursorLayer.$pixelPos;if(qe){Pt&&Pt.markerRange&&(qe=this.$cursorLayer.getPixelPosition(Pt.markerRange.start,!0));var Et=this.layerConfig,kt=qe.top,At=qe.left;kt-=Et.offset;var Dt=Pt&&Pt.useTextareaForIME||$e.isMobile?this.lineHeight:1;if(kt<0||kt>Et.height-Dt){V.translate(this.textarea,0,0);return}var Lt=1,jt=this.$size.height-Dt;if(!Pt)kt+=this.lineHeight;else if(Pt.useTextareaForIME){var hn=this.textarea.value;Lt=this.characterWidth*this.session.$getStringScreenWidth(hn)[0]}else kt+=this.lineHeight+2;At-=this.scrollLeft,At>this.$size.scrollerWidth-Lt&&(At=this.$size.scrollerWidth-Lt),At+=this.gutterWidth+this.margin.left,V.setStyle(ze,"height",Dt+"px"),V.setStyle(ze,"width",Lt+"px"),V.translate(this.textarea,Math.min(At,this.$size.scrollerWidth-Lt),Math.min(kt,jt))}}},Fe.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},Fe.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},Fe.prototype.getLastFullyVisibleRow=function(){var ze=this.layerConfig,Pt=ze.lastRow,qe=this.session.documentToScreenRow(Pt,0)*ze.lineHeight;return qe-this.session.getScrollTop()>ze.height-ze.lineHeight?Pt-1:Pt},Fe.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},Fe.prototype.setPadding=function(ze){this.$padding=ze,this.$textLayer.setPadding(ze),this.$cursorLayer.setPadding(ze),this.$markerFront.setPadding(ze),this.$markerBack.setPadding(ze),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},Fe.prototype.setScrollMargin=function(ze,Pt,qe,Et){var kt=this.scrollMargin;kt.top=ze|0,kt.bottom=Pt|0,kt.right=Et|0,kt.left=qe|0,kt.v=kt.top+kt.bottom,kt.h=kt.left+kt.right,kt.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-kt.top),this.updateFull()},Fe.prototype.setMargin=function(ze,Pt,qe,Et){var kt=this.margin;kt.top=ze|0,kt.bottom=Pt|0,kt.right=Et|0,kt.left=qe|0,kt.v=kt.top+kt.bottom,kt.h=kt.left+kt.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},Fe.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},Fe.prototype.setHScrollBarAlwaysVisible=function(ze){this.setOption("hScrollBarAlwaysVisible",ze)},Fe.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},Fe.prototype.setVScrollBarAlwaysVisible=function(ze){this.setOption("vScrollBarAlwaysVisible",ze)},Fe.prototype.$updateScrollBarV=function(){var ze=this.layerConfig.maxHeight,Pt=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(ze-=(Pt-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>ze-Pt&&(ze=this.scrollTop+Pt,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(ze+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},Fe.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},Fe.prototype.freeze=function(){this.$frozen=!0},Fe.prototype.unfreeze=function(){this.$frozen=!1},Fe.prototype.$renderChanges=function(ze,Pt){if(this.$changes&&(ze|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!ze&&!Pt){this.$changes|=ze;return}if(this.$size.$dirty)return this.$changes|=ze,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",ze),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var qe=this.layerConfig;if(ze&this.CHANGE_FULL||ze&this.CHANGE_SIZE||ze&this.CHANGE_TEXT||ze&this.CHANGE_LINES||ze&this.CHANGE_SCROLL||ze&this.CHANGE_H_SCROLL){if(ze|=this.$computeLayerConfig()|this.$loop.clear(),qe.firstRow!=this.layerConfig.firstRow&&qe.firstRowScreen==this.layerConfig.firstRowScreen){var Et=this.scrollTop+(qe.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;Et>0&&(this.scrollTop=Et,ze=ze|this.CHANGE_SCROLL,ze|=this.$computeLayerConfig()|this.$loop.clear())}qe=this.layerConfig,this.$updateScrollBarV(),ze&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),V.translate(this.content,-this.scrollLeft,-qe.offset);var kt=qe.width+2*this.$padding+"px",At=qe.minHeight+"px";V.setStyle(this.content.style,"width",kt),V.setStyle(this.content.style,"height",At)}if(ze&this.CHANGE_H_SCROLL&&(V.translate(this.content,-this.scrollLeft,-qe.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),ze&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(qe),this.$showGutter&&this.$gutterLayer.update(qe),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(qe),this.$markerBack.update(qe),this.$markerFront.update(qe),this.$cursorLayer.update(qe),this.$moveTextAreaToCursor(),this._signal("afterRender",ze);return}if(ze&this.CHANGE_SCROLL){this.$changedLines=null,ze&this.CHANGE_TEXT||ze&this.CHANGE_LINES?this.$textLayer.update(qe):this.$textLayer.scrollLines(qe),this.$showGutter&&(ze&this.CHANGE_GUTTER||ze&this.CHANGE_LINES?this.$gutterLayer.update(qe):this.$gutterLayer.scrollLines(qe)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(qe),this.$markerBack.update(qe),this.$markerFront.update(qe),this.$cursorLayer.update(qe),this.$moveTextAreaToCursor(),this._signal("afterRender",ze);return}ze&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(qe),this.$showGutter&&this.$gutterLayer.update(qe),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(qe)):ze&this.CHANGE_LINES?((this.$updateLines()||ze&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(qe),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(qe)):ze&this.CHANGE_TEXT||ze&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(qe),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(qe)):ze&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(qe),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(qe)),ze&this.CHANGE_CURSOR&&(this.$cursorLayer.update(qe),this.$moveTextAreaToCursor()),ze&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(qe),ze&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(qe),this._signal("afterRender",ze)},Fe.prototype.$autosize=function(){var ze=this.session.getScreenLength()*this.lineHeight,Pt=this.$maxLines*this.lineHeight,qe=Math.min(Pt,Math.max((this.$minLines||1)*this.lineHeight,ze))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(qe+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&qe>this.$maxPixelHeight&&(qe=this.$maxPixelHeight);var Et=qe<=2*this.lineHeight,kt=!Et&&ze>Pt;if(qe!=this.desiredHeight||this.$size.height!=this.desiredHeight||kt!=this.$vScroll){kt!=this.$vScroll&&(this.$vScroll=kt,this.scrollBarV.setVisible(kt));var At=this.container.clientWidth;this.container.style.height=qe+"px",this.$updateCachedSize(!0,this.$gutterWidth,At,qe),this.desiredHeight=qe,this._signal("autosize")}},Fe.prototype.$computeLayerConfig=function(){var ze=this.session,Pt=this.$size,qe=Pt.height<=2*this.lineHeight,Et=this.session.getScreenLength(),kt=Et*this.lineHeight,At=this.$getLongestLine(),Dt=!qe&&(this.$hScrollBarAlwaysVisible||Pt.scrollerWidth-At-2*this.$padding<0),Lt=this.$horizScroll!==Dt;Lt&&(this.$horizScroll=Dt,this.scrollBarH.setVisible(Dt));var jt=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),qe=Pt.height<=2*this.lineHeight);var hn=Pt.scrollerHeight+this.lineHeight,vn=!this.$maxLines&&this.$scrollPastEnd?(Pt.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;kt+=vn;var _n=this.scrollMargin;this.session.setScrollTop(Math.max(-_n.top,Math.min(this.scrollTop,kt-Pt.scrollerHeight+_n.bottom))),this.session.setScrollLeft(Math.max(-_n.left,Math.min(this.scrollLeft,At+2*this.$padding-Pt.scrollerWidth+_n.right)));var wn=!qe&&(this.$vScrollBarAlwaysVisible||Pt.scrollerHeight-kt+vn<0||this.scrollTop>_n.top),bn=jt!==wn;bn&&(this.$vScroll=wn,this.scrollBarV.setVisible(wn));var Cn=this.scrollTop%this.lineHeight,Sn=Math.ceil(hn/this.lineHeight)-1,Tn=Math.max(0,Math.round((this.scrollTop-Cn)/this.lineHeight)),En=Tn+Sn,kn,$n,An=this.lineHeight;Tn=ze.screenToDocumentRow(Tn,0);var xn=ze.getFoldLine(Tn);xn&&(Tn=xn.start.row),kn=ze.documentToScreenRow(Tn,0),$n=ze.getRowLength(Tn)*An,En=Math.min(ze.screenToDocumentRow(En,0),ze.getLength()-1),hn=Pt.scrollerHeight+ze.getRowLength(En)*An+$n,Cn=this.scrollTop-kn*An,Cn<0&&kn>0&&(kn=Math.max(0,kn+Math.floor(Cn/An)),Cn=this.scrollTop-kn*An);var Ln=0;return(this.layerConfig.width!=At||Lt)&&(Ln=this.CHANGE_H_SCROLL),(Lt||bn)&&(Ln|=this.$updateCachedSize(!0,this.gutterWidth,Pt.width,Pt.height),this._signal("scrollbarVisibilityChanged"),bn&&(At=this.$getLongestLine())),this.layerConfig={width:At,padding:this.$padding,firstRow:Tn,firstRowScreen:kn,lastRow:En,lineHeight:An,characterWidth:this.characterWidth,minHeight:hn,maxHeight:kt,offset:Cn,gutterOffset:An?Math.max(0,Math.ceil((Cn+Pt.height-Pt.scrollerHeight)/An)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(At-this.$padding),Ln},Fe.prototype.$updateLines=function(){if(this.$changedLines){var ze=this.$changedLines.firstRow,Pt=this.$changedLines.lastRow;this.$changedLines=null;var qe=this.layerConfig;if(!(ze>qe.lastRow+1)&&!(Ptthis.$textLayer.MAX_LINE_LENGTH&&(ze=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(ze*this.characterWidth))},Fe.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},Fe.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},Fe.prototype.addGutterDecoration=function(ze,Pt){this.$gutterLayer.addGutterDecoration(ze,Pt)},Fe.prototype.removeGutterDecoration=function(ze,Pt){this.$gutterLayer.removeGutterDecoration(ze,Pt)},Fe.prototype.updateBreakpoints=function(ze){this._rows=ze,this.$loop.schedule(this.CHANGE_GUTTER)},Fe.prototype.setAnnotations=function(ze){this.$gutterLayer.setAnnotations(ze),this.$loop.schedule(this.CHANGE_GUTTER)},Fe.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},Fe.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},Fe.prototype.showCursor=function(){this.$cursorLayer.showCursor()},Fe.prototype.scrollSelectionIntoView=function(ze,Pt,qe){this.scrollCursorIntoView(ze,qe),this.scrollCursorIntoView(Pt,qe)},Fe.prototype.scrollCursorIntoView=function(ze,Pt,qe){if(this.$size.scrollerHeight!==0){var Et=this.$cursorLayer.getPixelPosition(ze),kt=Et.left,At=Et.top,Dt=qe&&qe.top||0,Lt=qe&&qe.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var jt=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;jt+Dt>At?(Pt&&jt+Dt>At+this.lineHeight&&(At-=Pt*this.$size.scrollerHeight),At===0&&(At=-this.scrollMargin.top),this.session.setScrollTop(At)):jt+this.$size.scrollerHeight-Lt=1-this.scrollMargin.top||Pt>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||ze<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||ze>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},Fe.prototype.pixelToScreenCoordinates=function(ze,Pt){var qe;if(this.$hasCssTransforms){qe={top:0,left:0};var Et=this.$fontMetrics.transformCoordinates([ze,Pt]);ze=Et[1]-this.gutterWidth-this.margin.left,Pt=Et[0]}else qe=this.scroller.getBoundingClientRect();var kt=ze+this.scrollLeft-qe.left-this.$padding,At=kt/this.characterWidth,Dt=Math.floor((Pt+this.scrollTop-qe.top)/this.lineHeight),Lt=this.$blockCursor?Math.floor(At):Math.round(At);return{row:Dt,column:Lt,side:At-Lt>0?1:-1,offsetX:kt}},Fe.prototype.screenToTextCoordinates=function(ze,Pt){var qe;if(this.$hasCssTransforms){qe={top:0,left:0};var Et=this.$fontMetrics.transformCoordinates([ze,Pt]);ze=Et[1]-this.gutterWidth-this.margin.left,Pt=Et[0]}else qe=this.scroller.getBoundingClientRect();var kt=ze+this.scrollLeft-qe.left-this.$padding,At=kt/this.characterWidth,Dt=this.$blockCursor?Math.floor(At):Math.round(At),Lt=Math.floor((Pt+this.scrollTop-qe.top)/this.lineHeight);return this.session.screenToDocumentPosition(Lt,Math.max(Dt,0),kt)},Fe.prototype.textToScreenCoordinates=function(ze,Pt){var qe=this.scroller.getBoundingClientRect(),Et=this.session.documentToScreenPosition(ze,Pt),kt=this.$padding+(this.session.$bidiHandler.isBidiRow(Et.row,ze)?this.session.$bidiHandler.getPosLeft(Et.column):Math.round(Et.column*this.characterWidth)),At=Et.row*this.lineHeight;return{pageX:qe.left+kt-this.scrollLeft,pageY:qe.top+At-this.scrollTop}},Fe.prototype.visualizeFocus=function(){V.addCssClass(this.container,"ace_focus")},Fe.prototype.visualizeBlur=function(){V.removeCssClass(this.container,"ace_focus")},Fe.prototype.showComposition=function(ze){this.$composition=ze,ze.cssText||(ze.cssText=this.textarea.style.cssText),ze.useTextareaForIME==null&&(ze.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(V.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):ze.markerId=this.session.addMarker(ze.markerRange,"ace_composition_marker","text")},Fe.prototype.setCompositionText=function(ze){var Pt=this.session.selection.cursor;this.addToken(ze,"composition_placeholder",Pt.row,Pt.column),this.$moveTextAreaToCursor()},Fe.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),V.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var ze=this.session.selection.cursor;this.removeExtraToken(ze.row,ze.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},Fe.prototype.setGhostText=function(ze,Pt){var qe=this.session.selection.cursor,Et=Pt||{row:qe.row,column:qe.column};this.removeGhostText();var kt=this.$calculateWrappedTextChunks(ze,Et);this.addToken(kt[0].text,"ghost_text",Et.row,Et.column),this.$ghostText={text:ze,position:{row:Et.row,column:Et.column}};var At=V.createElement("div");if(kt.length>1){var Dt=this.hideTokensAfterPosition(Et.row,Et.column),Lt;kt.slice(1).forEach(function(bn){var Cn=V.createElement("div"),Sn=V.createElement("span");Sn.className="ace_ghost_text",bn.wrapped&&(Cn.className="ghost_text_line_wrapped"),bn.text.length===0&&(bn.text=" "),Sn.appendChild(V.createTextNode(bn.text)),Cn.appendChild(Sn),At.appendChild(Cn),Lt=Cn}),Dt.forEach(function(bn){var Cn=V.createElement("span");Ve(bn.type)||(Cn.className="ace_"+bn.type.replace(/\./g," ace_")),Cn.appendChild(V.createTextNode(bn.value)),Lt.appendChild(Cn)}),this.$ghostTextWidget={el:At,row:Et.row,column:Et.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var jt=this.$cursorLayer.getPixelPosition(Et,!0),hn=this.container,vn=hn.getBoundingClientRect().height,_n=kt.length*this.lineHeight,wn=_n0){var hn=0;jt.push(kt[Dt].length);for(var vn=0;vn1||Math.abs(ze.$size.height-Et)>1?ze.$resizeTimer.delay():ze.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},Fe}();Ue.prototype.CHANGE_CURSOR=1,Ue.prototype.CHANGE_MARKER=2,Ue.prototype.CHANGE_GUTTER=4,Ue.prototype.CHANGE_SCROLL=8,Ue.prototype.CHANGE_LINES=16,Ue.prototype.CHANGE_TEXT=32,Ue.prototype.CHANGE_SIZE=64,Ue.prototype.CHANGE_MARKER_BACK=128,Ue.prototype.CHANGE_MARKER_FRONT=256,Ue.prototype.CHANGE_FULL=512,Ue.prototype.CHANGE_H_SCROLL=1024,Ue.prototype.$changes=0,Ue.prototype.$padding=null,Ue.prototype.$frozen=!1,Ue.prototype.STEPS=8,$.implement(Ue.prototype,Ie),ie.defineOptions(Ue.prototype,"renderer",{useResizeObserver:{set:function(Fe){!Fe&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):Fe&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(Fe){this.$textLayer.setShowInvisibles(Fe)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(Fe){typeof Fe=="number"&&(this.$printMarginColumn=Fe),this.$showPrintMargin=!!Fe,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(Fe){this.$gutter.style.display=Fe?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(Fe){this.$gutterLayer.$useSvgGutterIcons=Fe},initialValue:!1},showFoldedAnnotations:{set:function(Fe){this.$gutterLayer.$showFoldedAnnotations=Fe},initialValue:!1},fadeFoldWidgets:{set:function(Fe){V.setCssClass(this.$gutter,"ace_fade-fold-widgets",Fe)},initialValue:!1},showFoldWidgets:{set:function(Fe){this.$gutterLayer.setShowFoldWidgets(Fe),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(Fe){this.$textLayer.setDisplayIndentGuides(Fe)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(Fe){this.$textLayer.setHighlightIndentGuides(Fe)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(Fe){this.$gutterLayer.setHighlightGutterLine(Fe),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(Fe){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(Fe){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(Fe){typeof Fe=="number"&&(Fe=Fe+"px"),this.container.style.fontSize=Fe,this.updateFontSize()},initialValue:12},fontFamily:{set:function(Fe){this.container.style.fontFamily=Fe,this.updateFontSize()}},maxLines:{set:function(Fe){this.updateFull()}},minLines:{set:function(Fe){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(Fe){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(Fe){Fe=+Fe||0,this.$scrollPastEnd!=Fe&&(this.$scrollPastEnd=Fe,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(Fe){this.$gutterLayer.$fixedWidth=!!Fe,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(Fe){this.$updateCustomScrollbar(Fe)},initialValue:!1},theme:{set:function(Fe){this.setTheme(Fe)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!$e.isMobile&&!$e.isIE}}),i.VirtualRenderer=Ue}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(r,i,g){var $=r("../lib/oop"),V=r("../lib/net"),re=r("../lib/event_emitter").EventEmitter,ie=r("../config");function ae(de){var he="importScripts('"+V.qualifyURL(de)+"');";try{return new Blob([he],{type:"application/javascript"})}catch{var pe=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,_e=new pe;return _e.append(he),_e.getBlob("application/javascript")}}function oe(de){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(ie.get("loadWorkerFromBlob")){var he=ae(de),pe=window.URL||window.webkitURL,_e=pe.createObjectURL(he);return new Worker(_e)}return new Worker(de)}var le=function(de){de.postMessage||(de=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=de,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){$.implement(this,re),this.$createWorkerFromOldConfig=function(de,he,pe,_e,Ce){if(r.nameToUrl&&!r.toUrl&&(r.toUrl=r.nameToUrl),ie.get("packaged")||!r.toUrl)_e=_e||ie.moduleUrl(he,"worker");else{var xe=this.$normalizePath;_e=_e||xe(r.toUrl("ace/worker/worker.js",null,"_"));var Ie={};de.forEach(function(Ne){Ie[Ne]=xe(r.toUrl(Ne,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=oe(_e),Ce&&this.send("importScripts",Ce),this.$worker.postMessage({init:!0,tlns:Ie,module:he,classname:pe}),this.$worker},this.onMessage=function(de){var he=de.data;switch(he.type){case"event":this._signal(he.name,{data:he.data});break;case"call":var pe=this.callbacks[he.id];pe&&(pe(he.data),delete this.callbacks[he.id]);break;case"error":this.reportError(he.data);break;case"log":window.console&&console.log&&console.log.apply(console,he.data);break}},this.reportError=function(de){window.console&&console.error&&console.error(de)},this.$normalizePath=function(de){return V.qualifyURL(de)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(de){de.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(de,he){this.$worker.postMessage({command:de,args:he})},this.call=function(de,he,pe){if(pe){var _e=this.callbackId++;this.callbacks[_e]=pe,he.push(_e)}this.send(de,he)},this.emit=function(de,he){try{he.data&&he.data.err&&(he.data.err={message:he.data.err.message,stack:he.data.err.stack,code:he.data.err.code}),this.$worker&&this.$worker.postMessage({event:de,data:{data:he.data}})}catch(pe){console.error(pe.stack)}},this.attachToDocument=function(de){this.$doc&&this.terminate(),this.$doc=de,this.call("setValue",[de.getValue()]),de.on("change",this.changeListener,!0)},this.changeListener=function(de){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),de.action=="insert"?this.deltaQueue.push(de.start,de.lines):this.deltaQueue.push(de.start,de.end)},this.$sendDeltaQueue=function(){var de=this.deltaQueue;de&&(this.deltaQueue=null,de.length>50&&de.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:de}))}}).call(le.prototype);var ue=function(de,he,pe){var _e=null,Ce=!1,xe=Object.create(re),Ie=[],Ne=new le({messageBuffer:Ie,terminate:function(){},postMessage:function($e){Ie.push($e),_e&&(Ce?setTimeout(Oe):Oe())}});Ne.setEmitSync=function($e){Ce=$e};var Oe=function(){var $e=Ie.shift();$e.command?_e[$e.command].apply(_e,$e.args):$e.event&&xe._signal($e.event,$e.data)};return xe.postMessage=function($e){Ne.onMessage({data:$e})},xe.callback=function($e,Ve){this.postMessage({type:"call",id:Ve,data:$e})},xe.emit=function($e,Ve){this.postMessage({type:"event",name:$e,data:Ve})},ie.loadModule(["worker",he],function($e){for(_e=new $e[pe](xe);Ie.length;)Oe()}),Ne};i.UIWorkerClient=ue,i.WorkerClient=le,i.createWorker=oe}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(r,i,g){var $=r("./range").Range,V=r("./lib/event_emitter").EventEmitter,re=r("./lib/oop"),ie=function(){function ae(oe,le,ue,de,he,pe){var _e=this;this.length=le,this.session=oe,this.doc=oe.getDocument(),this.mainClass=he,this.othersClass=pe,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=de,this.$onCursorChange=function(){setTimeout(function(){_e.onCursorChange()})},this.$pos=ue;var Ce=oe.getUndoManager().$undoStack||oe.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=Ce.length,this.setup(),oe.selection.on("changeCursor",this.$onCursorChange)}return ae.prototype.setup=function(){var oe=this,le=this.doc,ue=this.session;this.selectionBefore=ue.selection.toJSON(),ue.selection.inMultiSelectMode&&ue.selection.toSingleRange(),this.pos=le.createAnchor(this.$pos.row,this.$pos.column);var de=this.pos;de.$insertRight=!0,de.detach(),de.markerId=ue.addMarker(new $(de.row,de.column,de.row,de.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(he){var pe=le.createAnchor(he.row,he.column);pe.$insertRight=!0,pe.detach(),oe.others.push(pe)}),ue.setUndoSelect(!1)},ae.prototype.showOtherMarkers=function(){if(!this.othersActive){var oe=this.session,le=this;this.othersActive=!0,this.others.forEach(function(ue){ue.markerId=oe.addMarker(new $(ue.row,ue.column,ue.row,ue.column+le.length),le.othersClass,null,!1)})}},ae.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var oe=0;oe=this.pos.column&&le.start.column<=this.pos.column+this.length+1,he=le.start.column-this.pos.column;if(this.updateAnchors(oe),de&&(this.length+=ue),de&&!this.session.$fromUndo){if(oe.action==="insert")for(var pe=this.others.length-1;pe>=0;pe--){var _e=this.others[pe],Ce={row:_e.row,column:_e.column+he};this.doc.insertMergedLines(Ce,oe.lines)}else if(oe.action==="remove")for(var pe=this.others.length-1;pe>=0;pe--){var _e=this.others[pe],Ce={row:_e.row,column:_e.column+he};this.doc.remove(new $(Ce.row,Ce.column,Ce.row,Ce.column-ue))}}this.$updating=!1,this.updateMarkers()}},ae.prototype.updateAnchors=function(oe){this.pos.onChange(oe);for(var le=this.others.length;le--;)this.others[le].onChange(oe);this.updateMarkers()},ae.prototype.updateMarkers=function(){if(!this.$updating){var oe=this,le=this.session,ue=function(he,pe){le.removeMarker(he.markerId),he.markerId=le.addMarker(new $(he.row,he.column,he.row,he.column+oe.length),pe,null,!1)};ue(this.pos,this.mainClass);for(var de=this.others.length;de--;)ue(this.others[de],this.othersClass)}},ae.prototype.onCursorChange=function(oe){if(!(this.$updating||!this.session)){var le=this.session.selection.getCursor();le.row===this.pos.row&&le.column>=this.pos.column&&le.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",oe)):(this.hideOtherMarkers(),this._emit("cursorLeave",oe))}},ae.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},ae.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var oe=this.session.getUndoManager(),le=(oe.$undoStack||oe.$undostack).length-this.$undoStackDepth,ue=0;ue1?V.multiSelect.joinSelections():V.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(V){V.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(V){V.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(V){V.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],i.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(V){V.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(V){return V&&V.inMultiSelectMode}}];var $=r("../keyboard/hash_handler").HashHandler;i.keyboardHandler=new $(i.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(r,i,g){var $=r("./range_list").RangeList,V=r("./range").Range,re=r("./selection").Selection,ie=r("./mouse/multi_select_handler").onMouseDown,ae=r("./lib/event"),oe=r("./lib/lang"),le=r("./commands/multi_select_commands");i.commands=le.defaultCommands.concat(le.multiSelectCommands);var ue=r("./search").Search,de=new ue;function he(Ne,Oe,$e){return de.$options.wrap=!0,de.$options.needle=Oe,de.$options.backwards=$e==-1,de.find(Ne)}var pe=r("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(pe.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(Ne,Oe){if(Ne){if(!this.inMultiSelectMode&&this.rangeCount===0){var $e=this.toOrientedRange();if(this.rangeList.add($e),this.rangeList.add(Ne),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),Oe||this.fromOrientedRange(Ne);this.rangeList.removeAll(),this.rangeList.add($e),this.$onAddRange($e)}Ne.cursor||(Ne.cursor=Ne.end);var Ve=this.rangeList.add(Ne);return this.$onAddRange(Ne),Ve.length&&this.$onRemoveRange(Ve),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),Oe||this.fromOrientedRange(Ne)}},this.toSingleRange=function(Ne){Ne=Ne||this.ranges[0];var Oe=this.rangeList.removeAll();Oe.length&&this.$onRemoveRange(Oe),Ne&&this.fromOrientedRange(Ne)},this.substractPoint=function(Ne){var Oe=this.rangeList.substractPoint(Ne);if(Oe)return this.$onRemoveRange(Oe),Oe[0]},this.mergeOverlappingRanges=function(){var Ne=this.rangeList.merge();Ne.length&&this.$onRemoveRange(Ne)},this.$onAddRange=function(Ne){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(Ne),this._signal("addRange",{range:Ne})},this.$onRemoveRange=function(Ne){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var Oe=this.rangeList.ranges.pop();Ne.push(Oe),this.rangeCount=0}for(var $e=Ne.length;$e--;){var Ve=this.ranges.indexOf(Ne[$e]);this.ranges.splice(Ve,1)}this._signal("removeRange",{ranges:Ne}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),Oe=Oe||this.ranges[0],Oe&&!Oe.isEqual(this.getRange())&&this.fromOrientedRange(Oe)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new $,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var Ne=this.ranges.length?this.ranges:[this.getRange()],Oe=[],$e=0;$e1){var Ne=this.rangeList.ranges,Oe=Ne[Ne.length-1],$e=V.fromPoints(Ne[0].start,Oe.end);this.toSingleRange(),this.setSelectionRange($e,Oe.cursor==Oe.start)}else{var Ve=this.session.documentToScreenPosition(this.cursor),Ue=this.session.documentToScreenPosition(this.anchor),Fe=this.rectangularRangeBlock(Ve,Ue);Fe.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(Ne,Oe,$e){var Ve=[],Ue=Ne.column0;)hn--;if(hn>0)for(var vn=0;Ve[vn].isEmpty();)vn++;for(var _n=hn;_n>=vn;_n--)Ve[_n].isEmpty()&&Ve.splice(_n,1)}return Ve}}).call(re.prototype);var _e=r("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(Ne){Ne.cursor||(Ne.cursor=Ne.end);var Oe=this.getSelectionStyle();return Ne.marker=this.session.addMarker(Ne,"ace_selection",Oe),this.session.$selectionMarkers.push(Ne),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,Ne},this.removeSelectionMarker=function(Ne){if(Ne.marker){this.session.removeMarker(Ne.marker);var Oe=this.session.$selectionMarkers.indexOf(Ne);Oe!=-1&&this.session.$selectionMarkers.splice(Oe,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(Ne){for(var Oe=this.session.$selectionMarkers,$e=Ne.length;$e--;){var Ve=Ne[$e];if(Ve.marker){this.session.removeMarker(Ve.marker);var Ue=Oe.indexOf(Ve);Ue!=-1&&Oe.splice(Ue,1)}}this.session.selectionMarkerCount=Oe.length},this.$onAddRange=function(Ne){this.addSelectionMarker(Ne.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(Ne){this.removeSelectionMarkers(Ne.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(Ne){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(le.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(Ne){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(le.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(Ne){var Oe=Ne.command,$e=Ne.editor;if($e.multiSelect){if(Oe.multiSelectAction)Oe.multiSelectAction=="forEach"?Ve=$e.forEachSelection(Oe,Ne.args):Oe.multiSelectAction=="forEachLine"?Ve=$e.forEachSelection(Oe,Ne.args,!0):Oe.multiSelectAction=="single"?($e.exitMultiSelectMode(),Ve=Oe.exec($e,Ne.args||{})):Ve=Oe.multiSelectAction($e,Ne.args||{});else{var Ve=Oe.exec($e,Ne.args||{});$e.multiSelect.addRange($e.multiSelect.toOrientedRange()),$e.multiSelect.mergeOverlappingRanges()}return Ve}},this.forEachSelection=function(Ne,Oe,$e){if(!this.inVirtualSelectionMode){var Ve=$e&&$e.keepOrder,Ue=$e==!0||$e&&$e.$byLines,Fe=this.session,ze=this.selection,Pt=ze.rangeList,qe=(Ve?ze:Pt).ranges,Et;if(!qe.length)return Ne.exec?Ne.exec(this,Oe||{}):Ne(this,Oe||{});var kt=ze._eventRegistry;ze._eventRegistry={};var At=new re(Fe);this.inVirtualSelectionMode=!0;for(var Dt=qe.length;Dt--;){if(Ue)for(;Dt>0&&qe[Dt].start.row==qe[Dt-1].end.row;)Dt--;At.fromOrientedRange(qe[Dt]),At.index=Dt,this.selection=Fe.selection=At;var Lt=Ne.exec?Ne.exec(this,Oe||{}):Ne(this,Oe||{});!Et&&Lt!==void 0&&(Et=Lt),At.toOrientedRange(qe[Dt])}At.detach(),this.selection=Fe.selection=ze,this.inVirtualSelectionMode=!1,ze._eventRegistry=kt,ze.mergeOverlappingRanges(),ze.ranges[0]&&ze.fromOrientedRange(ze.ranges[0]);var jt=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),jt&&jt.from==jt.to&&this.renderer.animateScrolling(jt.from),Et}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var Ne="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var Oe=this.multiSelect.rangeList.ranges,$e=[],Ve=0;Ve0);ze<0&&(ze=0),Pt>=Et&&(Pt=Et-1)}var At=this.session.removeFullLines(ze,Pt);At=this.$reAlignText(At,qe),this.session.insert({row:ze,column:0},At.join(` `)+` `),qe||(Fe.start.column=0,Fe.end.column=At[At.length-1].length),this.selection.setRange(Fe)}else{Ue.forEach(function(hn){Oe.substractPoint(hn.cursor)});var Dt=0,Lt=1/0,jt=$e.map(function(hn){var vn=hn.cursor,_n=Ne.getLine(vn.row),wn=_n.substr(vn.column).search(/\S/g);return wn==-1&&(wn=0),vn.column>Dt&&(Dt=vn.column),wnbn?Ne.insert(_n,oe.stringRepeat(" ",wn-bn)):Ne.remove(new V(_n.row,_n.column,_n.row,_n.column-wn+bn)),hn.start.column=hn.end.column=Dt,hn.start.row=hn.end.row=_n.row,hn.cursor=hn.end}),Oe.fromOrientedRange($e[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(Ne,Oe){var $e=!0,Ve=!0,Ue,Fe,ze;return Ne.map(function(At){var Dt=At.match(/(\s*)(.*?)(\s*)([=:].*)/);return Dt?Ue==null?(Ue=Dt[1].length,Fe=Dt[2].length,ze=Dt[3].length,Dt):(Ue+Fe+ze!=Dt[1].length+Dt[2].length+Dt[3].length&&(Ve=!1),Ue!=Dt[1].length&&($e=!1),Ue>Dt[1].length&&(Ue=Dt[1].length),FeDt[3].length&&(ze=Dt[3].length),Dt):[At]}).map(Oe?qe:$e?Ve?Et:qe:kt);function Pt(At){return oe.stringRepeat(" ",At)}function qe(At){return At[2]?Pt(Ue)+At[2]+Pt(Fe-At[2].length+ze)+At[4].replace(/^([=:])\s+/,"$1 "):At[0]}function Et(At){return At[2]?Pt(Ue+Fe-At[2].length)+At[2]+Pt(ze)+At[4].replace(/^([=:])\s+/,"$1 "):At[0]}function kt(At){return At[2]?Pt(Ue)+At[2]+Pt(ze)+At[4].replace(/^([=:])\s+/,"$1 "):At[0]}}}).call(_e.prototype);function Ce(Ne,Oe){return Ne.row==Oe.row&&Ne.column==Oe.column}i.onSessionChange=function(Ne){var Oe=Ne.session;Oe&&!Oe.multiSelect&&(Oe.$selectionMarkers=[],Oe.selection.$initRangeList(),Oe.multiSelect=Oe.selection),this.multiSelect=Oe&&Oe.multiSelect;var $e=Ne.oldSession;$e&&($e.multiSelect.off("addRange",this.$onAddRange),$e.multiSelect.off("removeRange",this.$onRemoveRange),$e.multiSelect.off("multiSelect",this.$onMultiSelect),$e.multiSelect.off("singleSelect",this.$onSingleSelect),$e.multiSelect.lead.off("change",this.$checkMultiselectChange),$e.multiSelect.anchor.off("change",this.$checkMultiselectChange)),Oe&&(Oe.multiSelect.on("addRange",this.$onAddRange),Oe.multiSelect.on("removeRange",this.$onRemoveRange),Oe.multiSelect.on("multiSelect",this.$onMultiSelect),Oe.multiSelect.on("singleSelect",this.$onSingleSelect),Oe.multiSelect.lead.on("change",this.$checkMultiselectChange),Oe.multiSelect.anchor.on("change",this.$checkMultiselectChange)),Oe&&this.inMultiSelectMode!=Oe.selection.inMultiSelectMode&&(Oe.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function xe(Ne){Ne.$multiselectOnSessionChange||(Ne.$onAddRange=Ne.$onAddRange.bind(Ne),Ne.$onRemoveRange=Ne.$onRemoveRange.bind(Ne),Ne.$onMultiSelect=Ne.$onMultiSelect.bind(Ne),Ne.$onSingleSelect=Ne.$onSingleSelect.bind(Ne),Ne.$multiselectOnSessionChange=i.onSessionChange.bind(Ne),Ne.$checkMultiselectChange=Ne.$checkMultiselectChange.bind(Ne),Ne.$multiselectOnSessionChange(Ne),Ne.on("changeSession",Ne.$multiselectOnSessionChange),Ne.on("mousedown",ie),Ne.commands.addCommands(le.defaultCommands),Ie(Ne))}function Ie(Ne){if(!Ne.textInput)return;var Oe=Ne.textInput.getElement(),$e=!1;ae.addListener(Oe,"keydown",function(Ue){var Fe=Ue.keyCode==18&&!(Ue.ctrlKey||Ue.shiftKey||Ue.metaKey);Ne.$blockSelectEnabled&&Fe?$e||(Ne.renderer.setMouseCursor("crosshair"),$e=!0):$e&&Ve()},Ne),ae.addListener(Oe,"keyup",Ve,Ne),ae.addListener(Oe,"blur",Ve,Ne);function Ve(Ue){$e&&(Ne.renderer.setMouseCursor(""),$e=!1)}}i.MultiSelect=xe,r("./config").defineOptions(_e.prototype,"editor",{enableMultiselect:{set:function(Ne){xe(this),Ne?this.on("mousedown",ie):this.off("mousedown",ie)},value:!0},enableBlockSelect:{set:function(Ne){this.$blockSelectEnabled=Ne},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(r,i,g){var $=r("../../range").Range,V=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(re,ie,ae){var oe=re.getLine(ae);return this.foldingStartMarker.test(oe)?"start":ie=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(oe)?"end":""},this.getFoldWidgetRange=function(re,ie,ae){return null},this.indentationBlock=function(re,ie,ae){var oe=/\S/,le=re.getLine(ie),ue=le.search(oe);if(ue!=-1){for(var de=ae||le.length,he=re.getLength(),pe=ie,_e=ie;++iepe){var Ie=re.getLine(_e).length;return new $(pe,de,_e,Ie)}}},this.openingBracketBlock=function(re,ie,ae,oe,le){var ue={row:ae,column:oe+1},de=re.$findClosingBracket(ie,ue,le);if(de){var he=re.foldWidgets[de.row];return he==null&&(he=re.getFoldWidget(de.row)),he=="start"&&de.row>ue.row&&(de.row--,de.column=re.getLine(de.row).length),$.fromPoints(ue,de)}},this.closingBracketBlock=function(re,ie,ae,oe,le){var ue={row:ae,column:oe},de=re.$findOpeningBracket(ie,ue);if(de)return de.column++,ue.column--,$.fromPoints(de,ue)}}).call(V.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(r,i,g){var $=r("../lib/dom"),V=r("../range").Range,re=r("../config").nls;function ie(oe,le,ue){for(var de=0,he=oe.length-1;de<=he;){var pe=de+he>>1,_e=ue(le,oe[pe]);if(_e>0)de=pe+1;else if(_e<0)he=pe-1;else return pe}return-(de+1)}function ae(oe,le,ue){var de=oe.getAnnotations().sort(V.comparePoints);if(de.length){var he=ie(de,{row:le,column:-1},V.comparePoints);he<0&&(he=-he-1),he>=de.length?he=ue>0?0:de.length-1:he===0&&ue<0&&(he=de.length-1);var pe=de[he];if(!(!pe||!ue)){if(pe.row===le){do pe=de[he+=ue];while(pe&&pe.row===le);if(!pe)return de.slice()}var _e=[];le=pe.row;do _e[ue<0?"unshift":"push"](pe),pe=de[he+=ue];while(pe&&pe.row==le);return _e.length&&_e}}}i.showErrorMarker=function(oe,le){var ue=oe.session,de=oe.getCursorPosition(),he=de.row,pe=ue.widgetManager.getWidgetsAtRow(he).filter(function(Ue){return Ue.type=="errorMarker"})[0];pe?pe.destroy():he-=le;var _e=ae(ue,he,le),Ce;if(_e){var xe=_e[0];de.column=(xe.pos&&typeof xe.column!="number"?xe.pos.sc:xe.column)||0,de.row=xe.row,Ce=oe.renderer.$gutterLayer.$annotations[de.row]}else{if(pe)return;Ce={displayText:[re("error-marker.good-state","Looks good!")],className:"ace_ok"}}oe.session.unfold(de.row),oe.selection.moveToPosition(de);var Ie={row:de.row,fixedWidth:!0,coverGutter:!0,el:$.createElement("div"),type:"errorMarker"},Ne=Ie.el.appendChild($.createElement("div")),Oe=Ie.el.appendChild($.createElement("div"));Oe.className="error_widget_arrow "+Ce.className;var $e=oe.renderer.$cursorLayer.getPixelPosition(de).left;Oe.style.left=$e+oe.renderer.gutterWidth-5+"px",Ie.el.className="error_widget_wrapper",Ne.className="error_widget "+Ce.className,Ce.displayText.forEach(function(Ue,Fe){Ne.appendChild($.createTextNode(Ue)),Fe0},n.prototype.connect_=function(){!isBrowser$1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!isBrowser$1||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(t){var r=t.propertyName,i=r===void 0?"":r,g=transitionKeys.some(function($){return!!~i.indexOf($)});g&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),defineConfigurable=function(n,t){for(var r=0,i=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof getWindowOf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new ResizeObservation(t)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof getWindowOf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(i){return new ResizeObserverEntry(i.target,i.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$1=function(){function n(t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=ResizeObserverController.getInstance(),i=new ResizeObserverSPI(t,r,this);observers.set(this,i)}return n}();["observe","unobserve","disconnect"].forEach(function(n){ResizeObserver$1.prototype[n]=function(){var t;return(t=observers.get(this))[n].apply(t,arguments)}});var index$1=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$1}();function formatTimestamp(n){const t=new Date(n),r=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),g=String(t.getDate()).padStart(2,"0"),$=String(t.getHours()).padStart(2,"0"),V=String(t.getMinutes()).padStart(2,"0"),re=String(t.getSeconds()).padStart(2,"0");return`${r}-${i}-${g} ${$}:${V}:${re}`}function formatFilePath(n,t){if(t.startsWith("http"))return t;const r=n.endsWith("/")?n.slice(0,-1):n,i=t.startsWith("/")?t:"/"+t;return r+i}const imageModel_vue_vue_type_style_index_0_scoped_afca666c_lang="",selectItemPropsSetting_vue_vue_type_style_index_0_scoped_b6eb4910_lang="",commonAnimate_vue_vue_type_style_index_0_scoped_265139c8_lang="",themeMonokaiUrl="data:application/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSl7bW9kdWxlLmV4cG9ydHMgPSAiLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIjsKCn0pOwoKYWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWkiLFsicmVxdWlyZSIsImV4cG9ydHMiLCJtb2R1bGUiLCJhY2UvdGhlbWUvbW9ub2thaS1jc3MiLCJhY2UvbGliL2RvbSJdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpe2V4cG9ydHMuaXNEYXJrID0gdHJ1ZTsKZXhwb3J0cy5jc3NDbGFzcyA9ICJhY2UtbW9ub2thaSI7CmV4cG9ydHMuY3NzVGV4dCA9IHJlcXVpcmUoIi4vbW9ub2thaS1jc3MiKTsKdmFyIGRvbSA9IHJlcXVpcmUoIi4uL2xpYi9kb20iKTsKZG9tLmltcG9ydENzc1N0cmluZyhleHBvcnRzLmNzc1RleHQsIGV4cG9ydHMuY3NzQ2xhc3MsIGZhbHNlKTsKCn0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=",workerBaseUrl="/webVue/assets/worker-base-78504947.js",modeJsonUrl="/webVue/assets/mode-json-812ca1e1.js",workerJsonUrl="/webVue/assets/worker-json-b183eeb3.js",snippetsJsonUrl="data:application/javascript;base64,CjsgICAgICAgICAgICAgICAgKGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIGFjZS5yZXF1aXJlKFsiYWNlL3NuaXBwZXRzL2pzb24iXSwgZnVuY3Rpb24obSkgewogICAgICAgICAgICAgICAgICAgICAgICBpZiAodHlwZW9mIG1vZHVsZSA9PSAib2JqZWN0IiAmJiB0eXBlb2YgZXhwb3J0cyA9PSAib2JqZWN0IiAmJiBtb2R1bGUpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1vZHVsZS5leHBvcnRzID0gbTsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgfSkoKTsKICAgICAgICAgICAg",modeJavascriptUrl="/webVue/assets/mode-javascript-839742b8.js",workerJavascriptUrl="/webVue/assets/worker-javascript-a6657d84.js",snippetsJavascriptUrl="/webVue/assets/javascript-adb9f602.js";var extLanguage_tools={exports:{}};(function(n,t){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(r,i,g){var $=r("./lib/dom"),V=r("./lib/oop"),re=r("./lib/event_emitter").EventEmitter,ie=r("./lib/lang"),ae=r("./range").Range,oe=r("./range_list").RangeList,le=r("./keyboard/hash_handler").HashHandler,ue=r("./tokenizer").Tokenizer,de=r("./clipboard"),he={CURRENT_WORD:function($e){return $e.session.getTextRange($e.session.getWordRange())},SELECTION:function($e,Ve,Ue){var Fe=$e.session.getTextRange();return Ue?Fe.replace(/\n\r?([ \t]*\S)/g,` `+Ue+"$1"):Fe},CURRENT_LINE:function($e){return $e.session.getLine($e.getCursorPosition().row)},PREV_LINE:function($e){return $e.session.getLine($e.getCursorPosition().row-1)},LINE_INDEX:function($e){return $e.getCursorPosition().row},LINE_NUMBER:function($e){return $e.getCursorPosition().row+1},SOFT_TABS:function($e){return $e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function($e){return $e.session.getTabSize()},CLIPBOARD:function($e){return de.getText&&de.getText()},FILENAME:function($e){return/[^/\\]*$/.exec(this.FILEPATH($e))[0]},FILENAME_BASE:function($e){return/[^/\\]*$/.exec(this.FILEPATH($e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function($e){return this.FILEPATH($e).replace(/[^/\\]*$/,"")},FILEPATH:function($e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function($e){var Ve=$e.session.$mode||{};return Ve.blockComment&&Ve.blockComment.start||""},BLOCK_COMMENT_END:function($e){var Ve=$e.session.$mode||{};return Ve.blockComment&&Ve.blockComment.end||""},LINE_COMMENT:function($e){var Ve=$e.session.$mode||{};return Ve.lineCommentStart||""},CURRENT_YEAR:pe.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:pe.bind(null,{year:"2-digit"}),CURRENT_MONTH:pe.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:pe.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:pe.bind(null,{month:"short"}),CURRENT_DATE:pe.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:pe.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:pe.bind(null,{weekday:"short"}),CURRENT_HOUR:pe.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:pe.bind(null,{minute:"2-digit"}),CURRENT_SECOND:pe.bind(null,{second:"2-digit"})};he.SELECTED_TEXT=he.SELECTION;function pe($e){var Ve=new Date().toLocaleString("en-us",$e);return Ve.length==1?"0"+Ve:Ve}var _e=function(){function $e(){this.snippetMap={},this.snippetNameMap={},this.variables=he}return $e.prototype.getTokenizer=function(){return $e.$tokenizer||this.createTokenizer()},$e.prototype.createTokenizer=function(){function Ve(ze){return ze=ze.substr(1),/^\d+$/.test(ze)?[{tabstopId:parseInt(ze,10)}]:[{text:ze}]}function Ue(ze){return"(?:[^\\\\"+ze+"]|\\\\.)"}var Fe={regex:"/("+Ue("/")+"+)/",onMatch:function(ze,Pt,qe){var Et=qe[0];return Et.fmtString=!0,Et.guard=ze.slice(1,-1),Et.flag="",""},next:"formatString"};return $e.$tokenizer=new ue({start:[{regex:/\\./,onMatch:function(ze,Pt,qe){var Et=ze[1];return(Et=="}"&&qe.length||"`$\\".indexOf(Et)!=-1)&&(ze=Et),[ze]}},{regex:/}/,onMatch:function(ze,Pt,qe){return[qe.length?qe.shift():ze]}},{regex:/\$(?:\d+|\w+)/,onMatch:Ve},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(ze,Pt,qe){var Et=Ve(ze.substr(1));return qe.unshift(Et[0]),Et},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+Ue("\\|")+"*\\|",onMatch:function(ze,Pt,qe){var Et=ze.slice(1,-1).replace(/\\[,|\\]|,/g,function(kt){return kt.length==2?kt[1]:"\0"}).split("\0").map(function(kt){return{value:kt}});return qe[0].choices=Et,[Et[0]]},next:"start"},Fe,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(ze,Pt,qe){return qe.length&&qe[0].expectElse?(qe[0].expectElse=!1,qe[0].ifEnd={elseEnd:qe[0]},[qe[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(ze,Pt,qe){var Et=ze[1];return Et=="}"&&qe.length||"`$\\".indexOf(Et)!=-1?ze=Et:Et=="n"?ze=` `:Et=="t"?ze=" ":"ulULE".indexOf(Et)!=-1&&(ze={changeCase:Et,local:Et>"a"}),[ze]}},{regex:"/\\w*}",onMatch:function(ze,Pt,qe){var Et=qe.shift();return Et&&(Et.flag=ze.slice(1,-1)),this.next=Et&&Et.tabstopId?"start":"",[Et||ze]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(ze,Pt,qe){return[{text:ze.slice(1)}]}},{regex:/\${\w+/,onMatch:function(ze,Pt,qe){var Et={text:ze.slice(2)};return qe.unshift(Et),[Et]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(ze,Pt,qe){var Et=qe.shift();return this.next=Et&&Et.tabstopId?"start":"",[Et||ze]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(ze,Pt,qe){var Et=qe[0];return Et.formatFunction=ze.slice(2,-1),[qe.shift()]},next:"formatString"},Fe,{regex:/:[\?\-+]?/,onMatch:function(ze,Pt,qe){ze[1]=="+"&&(qe[0].ifEnd=qe[0]),ze[1]=="?"&&(qe[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),$e.$tokenizer},$e.prototype.tokenizeTmSnippet=function(Ve,Ue){return this.getTokenizer().getLineTokens(Ve,Ue).tokens.map(function(Fe){return Fe.value||Fe})},$e.prototype.getVariableValue=function(Ve,Ue,Fe){if(/^\d+$/.test(Ue))return(this.variables.__||{})[Ue]||"";if(/^[A-Z]\d+$/.test(Ue))return(this.variables[Ue[0]+"__"]||{})[Ue.substr(1)]||"";if(Ue=Ue.replace(/^TM_/,""),!this.variables.hasOwnProperty(Ue))return"";var ze=this.variables[Ue];return typeof ze=="function"&&(ze=this.variables[Ue](Ve,Ue,Fe)),ze??""},$e.prototype.tmStrFormat=function(Ve,Ue,Fe){if(!Ue.fmt)return Ve;var ze=Ue.flag||"",Pt=Ue.guard;Pt=new RegExp(Pt,ze.replace(/[^gim]/g,""));var qe=typeof Ue.fmt=="string"?this.tokenizeTmSnippet(Ue.fmt,"formatString"):Ue.fmt,Et=this,kt=Ve.replace(Pt,function(){var At=Et.variables.__;Et.variables.__=[].slice.call(arguments);for(var Dt=Et.resolveVariables(qe,Fe),Lt="E",jt=0;jt=0&&kt.splice(At,1)}}Ve.content?Pt(Ve):Array.isArray(Ve)&&Ve.forEach(Pt)},$e.prototype.parseSnippetFile=function(Ve){Ve=Ve.replace(/\r/g,"");for(var Ue=[],Fe={},ze=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,Pt;Pt=ze.exec(Ve);){if(Pt[1])try{Fe=JSON.parse(Pt[1]),Ue.push(Fe)}catch{}if(Pt[4])Fe.content=Pt[4].replace(/^\t/gm,""),Ue.push(Fe),Fe={};else{var qe=Pt[2],Et=Pt[3];if(qe=="regex"){var kt=/\/((?:[^\/\\]|\\.)*)|$/g;Fe.guard=kt.exec(Et)[1],Fe.trigger=kt.exec(Et)[1],Fe.endTrigger=kt.exec(Et)[1],Fe.endGuard=kt.exec(Et)[1]}else qe=="snippet"?(Fe.tabTrigger=Et.match(/^\S*/)[0],Fe.name||(Fe.name=Et)):qe&&(Fe[qe]=Et)}}return Ue},$e.prototype.getSnippetByName=function(Ve,Ue){var Fe=this.snippetNameMap,ze;return this.getActiveScopes(Ue).some(function(Pt){var qe=Fe[Pt];return qe&&(ze=qe[Ve]),!!ze},this),ze},$e}();V.implement(_e.prototype,re);var Ce=function($e,Ve,Ue){Ue===void 0&&(Ue={});var Fe=$e.getCursorPosition(),ze=$e.session.getLine(Fe.row),Pt=$e.session.getTabString(),qe=ze.match(/^\s*/)[0];Fe.column1?(Cn=En[En.length-1].length,bn+=En.length-1):Cn+=Tn.length,Sn+=Tn}else Tn&&(Tn.start?Tn.end={row:bn,column:Cn}:Tn.start={row:bn,column:Cn})}),{text:Sn,tabstops:kt,tokens:Et}},xe=function(){function $e(Ve){if(this.index=0,this.ranges=[],this.tabstops=[],Ve.tabstopManager)return Ve.tabstopManager;Ve.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=ie.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(Ve)}return $e.prototype.attach=function(Ve){this.$openTabstops=null,this.selectedTabstop=null,this.editor=Ve,this.session=Ve.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},$e.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},$e.prototype.onChange=function(Ve){for(var Ue=Ve.action[0]=="r",Fe=this.selectedTabstop||{},ze=Fe.parents||{},Pt=this.tabstops.slice(),qe=0;qe2&&(this.tabstops.length&&Et.push(Et.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,Et))},$e.prototype.addTabstopMarkers=function(Ve){var Ue=this.session;Ve.forEach(function(Fe){Fe.markerId||(Fe.markerId=Ue.addMarker(Fe,"ace_snippet-marker","text"))})},$e.prototype.removeTabstopMarkers=function(Ve){var Ue=this.session;Ve.forEach(function(Fe){Ue.removeMarker(Fe.markerId),Fe.markerId=null})},$e.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var Ve=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&Ve--,this.tabstops.forEach(function(Ue){Ue.snippetId===Ve?this.addTabstopMarkers(Ue):this.removeTabstopMarkers(Ue)},this)}},$e.prototype.removeRange=function(Ve){var Ue=Ve.tabstop.indexOf(Ve);Ue!=-1&&Ve.tabstop.splice(Ue,1),Ue=this.ranges.indexOf(Ve),Ue!=-1&&this.ranges.splice(Ue,1),Ue=Ve.tabstop.rangeList.ranges.indexOf(Ve),Ue!=-1&&Ve.tabstop.splice(Ue,1),this.session.removeMarker(Ve.markerId),Ve.tabstop.length||(Ue=this.tabstops.indexOf(Ve.tabstop),Ue!=-1&&this.tabstops.splice(Ue,1),this.tabstops.length||this.detach())},$e}();xe.prototype.keyboardHandler=new le,xe.prototype.keyboardHandler.bindKeys({Tab:function($e){i.snippetManager&&i.snippetManager.expandWithTab($e)||($e.tabstopManager.tabNext(1),$e.renderer.scrollCursorIntoView())},"Shift-Tab":function($e){$e.tabstopManager.tabNext(-1),$e.renderer.scrollCursorIntoView()},Esc:function($e){$e.tabstopManager.detach()}});var Ie=function($e,Ve){$e.row==0&&($e.column+=Ve.column),$e.row+=Ve.row},Ne=function($e,Ve){$e.row==Ve.row&&($e.column-=Ve.column),$e.row-=Ve.row};$.importCssString(` .ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute; }`,"snippets.css",!1),i.snippetManager=new _e;var Oe=r("./editor").Editor;(function(){this.insertSnippet=function($e,Ve){return i.snippetManager.insertSnippet(this,$e,Ve)},this.expandSnippet=function($e){return i.snippetManager.expandWithTab(this,$e)}}).call(Oe.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(r,i,g){var $=r("../virtual_renderer").VirtualRenderer,V=r("../editor").Editor,re=r("../range").Range,ie=r("../lib/event"),ae=r("../lib/lang"),oe=r("../lib/dom"),le=r("../config").nls,ue=r("./../lib/useragent"),de=function(Ie){return"suggest-aria-id:".concat(Ie)},he=ue.isSafari?"menu":"listbox",pe=ue.isSafari?"menuitem":"option",_e=ue.isSafari?"aria-current":"aria-selected",Ce=function(Ie){var Ne=new $(Ie);Ne.$maxLines=4;var Oe=new V(Ne);return Oe.setHighlightActiveLine(!1),Oe.setShowPrintMargin(!1),Oe.renderer.setShowGutter(!1),Oe.renderer.setHighlightGutterLine(!1),Oe.$mouseHandler.$focusTimeout=0,Oe.$highlightTagPending=!0,Oe},xe=function(){function Ie(Ne){var Oe=oe.createElement("div"),$e=Ce(Oe);Ne&&Ne.appendChild(Oe),Oe.style.display="none",$e.renderer.content.style.cursor="default",$e.renderer.setStyle("ace_autocomplete"),$e.renderer.$textLayer.element.setAttribute("role",he),$e.renderer.$textLayer.element.setAttribute("aria-roledescription",le("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),$e.renderer.$textLayer.element.setAttribute("aria-label",le("autocomplete.popup.aria-label","Autocomplete suggestions")),$e.renderer.textarea.setAttribute("aria-hidden","true"),$e.setOption("displayIndentGuides",!1),$e.setOption("dragDelay",150);var Ve=function(){};$e.focus=Ve,$e.$isFocused=!0,$e.renderer.$cursorLayer.restartTimer=Ve,$e.renderer.$cursorLayer.element.style.opacity="0",$e.renderer.$maxLines=8,$e.renderer.$keepTextAreaAtCursor=!1,$e.setHighlightActiveLine(!1),$e.session.highlight(""),$e.session.$searchHighlight.clazz="ace_highlight-marker",$e.on("mousedown",function(kt){var At=kt.getDocumentPosition();$e.selection.moveToPosition(At),ze.start.row=ze.end.row=At.row,kt.stop()});var Ue,Fe=new re(-1,0,-1,1/0),ze=new re(-1,0,-1,1/0);ze.id=$e.session.addMarker(ze,"ace_active-line","fullLine"),$e.setSelectOnHover=function(kt){kt?Fe.id&&($e.session.removeMarker(Fe.id),Fe.id=null):Fe.id=$e.session.addMarker(Fe,"ace_line-hover","fullLine")},$e.setSelectOnHover(!1),$e.on("mousemove",function(kt){if(!Ue){Ue=kt;return}if(!(Ue.x==kt.x&&Ue.y==kt.y)){Ue=kt,Ue.scrollTop=$e.renderer.scrollTop,$e.isMouseOver=!0;var At=Ue.getDocumentPosition().row;Fe.start.row!=At&&(Fe.id||$e.setRow(At),qe(At))}}),$e.renderer.on("beforeRender",function(){if(Ue&&Fe.start.row!=-1){Ue.$pos=null;var kt=Ue.getDocumentPosition().row;Fe.id||$e.setRow(kt),qe(kt,!0)}}),$e.renderer.on("afterRender",function(){for(var kt=$e.renderer.$textLayer,At=kt.config.firstRow,Dt=kt.config.lastRow;At<=Dt;At++){var Lt=kt.element.childNodes[At-kt.config.firstRow];Lt.setAttribute("role",pe),Lt.setAttribute("aria-roledescription",le("autocomplete.popup.item.aria-roledescription","item")),Lt.setAttribute("aria-setsize",$e.data.length),Lt.setAttribute("aria-describedby","doc-tooltip"),Lt.setAttribute("aria-posinset",At+1);var jt=$e.getData(At);if(jt){var hn="".concat(jt.caption||jt.value).concat(jt.meta?", ".concat(jt.meta):"");Lt.setAttribute("aria-label",hn)}var vn=Lt.querySelectorAll(".ace_completion-highlight");vn.forEach(function(_n){_n.setAttribute("role","mark")})}}),$e.renderer.on("afterRender",function(){var kt=$e.getRow(),At=$e.renderer.$textLayer,Dt=At.element.childNodes[kt-At.config.firstRow],Lt=document.activeElement;if(Dt!==$e.selectedNode&&$e.selectedNode&&(oe.removeCssClass($e.selectedNode,"ace_selected"),$e.selectedNode.removeAttribute(_e),$e.selectedNode.removeAttribute("id")),Lt.removeAttribute("aria-activedescendant"),$e.selectedNode=Dt,Dt){var jt=de(kt);oe.addCssClass(Dt,"ace_selected"),Dt.id=jt,At.element.setAttribute("aria-activedescendant",jt),Lt.setAttribute("aria-activedescendant",jt),Dt.setAttribute(_e,"true")}});var Pt=function(){qe(-1)},qe=function(kt,At){kt!==Fe.start.row&&(Fe.start.row=Fe.end.row=kt,At||$e.session._emit("changeBackMarker"),$e._emit("changeHoverMarker"))};$e.getHoveredRow=function(){return Fe.start.row},ie.addListener($e.container,"mouseout",function(){$e.isMouseOver=!1,Pt()}),$e.on("hide",Pt),$e.on("changeSelection",Pt),$e.session.doc.getLength=function(){return $e.data.length},$e.session.doc.getLine=function(kt){var At=$e.data[kt];return typeof At=="string"?At:At&&At.value||""};var Et=$e.session.bgTokenizer;return Et.$tokenizeRow=function(kt){var At=$e.data[kt],Dt=[];if(!At)return Dt;typeof At=="string"&&(At={value:At});var Lt=At.caption||At.value||At.name;function jt(Tn,En){Tn&&Dt.push({type:(At.className||"")+(En||""),value:Tn})}for(var hn=Lt.toLowerCase(),vn=($e.filterText||"").toLowerCase(),_n=0,wn=0,bn=0;bn<=vn.length;bn++)if(bn!=wn&&(At.matchMask&1<=bn?Dt="bottom":Dt="top"),Dt==="top"?(Cn.bottom=kt.top-this.$borderSize,Cn.top=Cn.bottom-bn):Dt==="bottom"&&(Cn.top=kt.top+At+this.$borderSize,Cn.bottom=Cn.top+bn);var En=Cn.top>=0&&Cn.bottom<=vn;if(!Lt&&!En)return!1;En?wn.$maxPixelHeight=null:Dt==="top"?wn.$maxPixelHeight=Tn:wn.$maxPixelHeight=Sn,Dt==="top"?(jt.style.top="",jt.style.bottom=vn+hn-Cn.bottom+"px",$e.isTopdown=!1):(jt.style.top=Cn.top+"px",jt.style.bottom="",$e.isTopdown=!0),jt.style.display="";var kn=kt.left;return kn+jt.offsetWidth>_n&&(kn=_n-jt.offsetWidth),jt.style.left=kn+"px",jt.style.right="",oe.$fixPositionBug(jt),$e.isOpen||($e.isOpen=!0,this._signal("show"),Ue=null),$e.anchorPos=kt,$e.anchor=Dt,!0},$e.show=function(kt,At,Dt){this.tryShow(kt,At,Dt?"bottom":void 0,!0)},$e.goTo=function(kt){var At=this.getRow(),Dt=this.session.getLength()-1;switch(kt){case"up":At=At<=0?Dt:At-1;break;case"down":At=At>=Dt?-1:At+1;break;case"start":At=0;break;case"end":At=Dt;break}this.setRow(At)},$e.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},$e.$imageSize=0,$e.$borderSize=1,$e}return Ie}();oe.importCssString(` .ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1; } .ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #3a674e; } .ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4); position: absolute; z-index: 2; } .ace_dark.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid rgba(109, 150, 13, 0.8); background: rgba(58, 103, 78, 0.62); } .ace_completion-meta { opacity: 0.5; margin-left: 0.9em; } .ace_completion-message { margin-left: 0.9em; color: blue; } .ace_editor.ace_autocomplete .ace_completion-highlight{ color: #2d69c7; } .ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #93ca12; } .ace_editor.ace_autocomplete { width: 300px; z-index: 200000; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4; background: #fefefe; color: #111; } .ace_dark.ace_editor.ace_autocomplete { border: 1px #484747 solid; box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51); line-height: 1.4; background: #25282c; color: #c1c1c1; } .ace_autocomplete .ace_text-layer { width: calc(100% - 8px); } .ace_autocomplete .ace_line { display: flex; align-items: center; } .ace_autocomplete .ace_line > * { min-width: 0; flex: 0 0 auto; } .ace_autocomplete .ace_line .ace_ { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; } .ace_autocomplete .ace_completion-spacer { flex: 1; } .ace_autocomplete.ace_loading:after { content: ""; position: absolute; top: 0px; height: 2px; width: 8%; background: blue; z-index: 100; animation: ace_progress 3s infinite linear; animation-delay: 300ms; transform: translateX(-100%) scaleX(1); } @keyframes ace_progress { 0% { transform: translateX(-100%) scaleX(1) } 50% { transform: translateX(625%) scaleX(2) } 100% { transform: translateX(1500%) scaleX(3) } } @media (prefers-reduced-motion) { .ace_autocomplete.ace_loading:after { transform: translateX(625%) scaleX(2); animation: none; } } `,"autocompletion.css",!1),i.AcePopup=xe,i.$singleLineEditor=Ce,i.getAriaId=de}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(r,i,g){var $=function(){function V(re){this.editor=re,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return V.prototype.setScreenReaderContent=function(re){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var ae=this.popup.getRow(),oe=this.popup.renderer.$textLayer,le=oe.element.childNodes[ae-oe.config.firstRow];if(le){for(var ue="doc-tooltip ",de=0;de=0&&ie.test(V[oe]);oe--)ae.push(V[oe]);return ae.reverse().join("")},i.retrieveFollowingIdentifier=function(V,re,ie){ie=ie||$;for(var ae=[],oe=re;oe0)for(var $e=this.popup.getFirstVisibleRow();$e<=this.popup.getLastVisibleRow();$e++){var Ve=this.popup.getData($e);Ve&&(!Oe||Ve.hideInlinePreview)&&this.$seen(Ve)}},Ne.prototype.$onPopupShow=function(Oe){this.$onPopupChange(Oe),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},Ne.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var Oe=this.editor.container.parentNode,$e=[];Oe;)$e.push(Oe),Oe.addEventListener("scroll",this.onLayoutChange,{passive:!0}),Oe=Oe.parentNode;this.$elements=$e}},Ne.prototype.unObserveLayoutChanges=function(){var Oe=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function($e){$e.removeEventListener("scroll",Oe.onLayoutChange,{passive:!0})}),this.$elements=null},Ne.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},Ne.prototype.$updatePopupPosition=function(){var Oe=this.editor,$e=Oe.renderer,Ve=$e.layerConfig.lineHeight,Ue=$e.$cursorLayer.getPixelPosition(this.base,!0);Ue.left-=this.popup.getTextLeftOffset();var Fe=Oe.container.getBoundingClientRect();Ue.top+=Fe.top-$e.layerConfig.offset,Ue.left+=Fe.left-Oe.renderer.scrollLeft,Ue.left+=$e.gutterWidth;var ze={top:Ue.top,left:Ue.left};$e.$ghostText&&$e.$ghostTextWidget&&this.base.row===$e.$ghostText.position.row&&(ze.top+=$e.$ghostTextWidget.el.offsetHeight);var Pt=Oe.container.getBoundingClientRect().bottom-Ve,qe=Pt=1?(jt.left=Fe.right+1+"px",jt.right="",jt.maxWidth=ze*Lt+"px",jt.top=Fe.top+"px",jt.bottom="",jt.maxHeight=Math.min(window.innerHeight-qe-Fe.top,Pt)+"px"):Lt==Dt[1]||Dt[1]>=1?(jt.right=window.innerWidth-Fe.left+"px",jt.left="",jt.maxWidth=ze*Lt+"px",jt.top=Fe.top+"px",jt.bottom="",jt.maxHeight=Math.min(window.innerHeight-qe-Fe.top,Pt)+"px"):Lt==Dt[2]&&(jt.left=Fe.left+"px",jt.right="",jt.maxWidth=Math.min(ze,window.innerWidth-Fe.left)+"px",Ue.isTopdown?(jt.top=Fe.bottom+"px",jt.bottom="",jt.maxHeight=Math.min(window.innerHeight-qe-Fe.bottom,Pt)+"px"):(jt.top="",jt.bottom=window.innerHeight-Fe.top+"px",jt.maxHeight=Math.min(Fe.top,Pt)+"px")),le.$fixPositionBug(Ve)},Ne.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var Oe=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==Oe&&this.editor.focus(),this.tooltipNode=null,Oe.parentNode&&Oe.parentNode.removeChild(Oe)}},Ne.prototype.onTooltipClick=function(Oe){for(var $e=Oe.target;$e&&$e!=this.tooltipNode;){if($e.nodeName=="A"&&$e.href){$e.rel="noreferrer",$e.target="_blank";break}$e=$e.parentNode}},Ne.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var Oe=this.popup.container;Oe&&Oe.parentNode&&Oe.parentNode.removeChild(Oe)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",_e),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},Ne.for=function(Oe){return Oe.completer instanceof Ne||(Oe.completer&&(Oe.completer.destroy(),Oe.completer=null),de.get("sharedPopups")?(Ne.$sharedInstance||(Ne.$sharedInstance=new Ne),Oe.completer=Ne.$sharedInstance):(Oe.completer=new Ne,Oe.once("destroy",_e))),Oe.completer},Ne}();Ce.prototype.commands={Up:function(Ne){Ne.completer.goTo("up")},Down:function(Ne){Ne.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(Ne){Ne.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(Ne){Ne.completer.goTo("end")},Esc:function(Ne){Ne.completer.detach()},Return:function(Ne){return Ne.completer.insertMatch()},"Shift-Return":function(Ne){Ne.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(Ne){var Oe=Ne.completer.insertMatch();if(!Oe&&!Ne.tabstopManager)Ne.completer.goTo("down");else return Oe},Backspace:function(Ne){Ne.execCommand("backspace");var Oe=ae.getCompletionPrefix(Ne);!Oe&&Ne.completer&&Ne.completer.detach()},PageUp:function(Ne){Ne.completer.popup.gotoPageUp()},PageDown:function(Ne){Ne.completer.popup.gotoPageDown()}},Ce.startCommand={name:"startAutocomplete",exec:function(Ne,Oe){var $e=Ce.for(Ne);$e.autoInsert=!1,$e.autoSelect=!0,$e.autoShown=!1,$e.showPopup(Ne,Oe),$e.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var xe=function(){function Ne(Oe){this.initialPosition=Oe,this.active=!0}return Ne.prototype.insertByIndex=function(Oe,$e,Ve){return!this.completions||!this.completions.filtered?!1:this.insertMatch(Oe,this.completions.filtered[$e],Ve)},Ne.prototype.insertMatch=function(Oe,$e,Ve){if(!$e)return!1;if(Oe.startOperation({command:{name:"insertMatch"}}),$e.completer&&$e.completer.insertMatch)$e.completer.insertMatch(Oe,$e);else{if(!this.completions)return!1;var Ue=this.completions.filterText.length,Fe=0;if($e.range&&$e.range.start.row===$e.range.end.row&&(Ue-=this.initialPosition.prefix.length,Ue+=this.initialPosition.pos.column-$e.range.start.column,Fe+=$e.range.end.column-this.initialPosition.pos.column),Ue||Fe){var ze;Oe.selection.getAllRanges?ze=Oe.selection.getAllRanges():ze=[Oe.getSelectionRange()];for(var Pt=0,qe;qe=ze[Pt];Pt++)qe.start.column-=Ue,qe.end.column+=Fe,Oe.session.remove(qe)}$e.snippet?ue.insertSnippet(Oe,$e.snippet):this.$insertString(Oe,$e),$e.completer&&$e.completer.onInsert&&typeof $e.completer.onInsert=="function"&&$e.completer.onInsert(Oe,$e),$e.command&&$e.command==="startAutocomplete"&&Oe.execCommand($e.command)}return Oe.endOperation(),!0},Ne.prototype.$insertString=function(Oe,$e){var Ve=$e.value||$e;Oe.execCommand("insertstring",Ve)},Ne.prototype.gatherCompletions=function(Oe,$e){var Ve=Oe.getSession(),Ue=Oe.getCursorPosition(),Fe=ae.getCompletionPrefix(Oe),ze=[];this.completers=Oe.completers;var Pt=Oe.completers.length;return Oe.completers.forEach(function(qe,Et){qe.getCompletions(Oe,Ve,Ue,Fe,function(kt,At){qe.hideInlinePreview&&(At=At.map(function(Dt){return Object.assign(Dt,{hideInlinePreview:qe.hideInlinePreview})})),!kt&&At&&(ze=ze.concat(At)),$e(null,{prefix:ae.getCompletionPrefix(Oe),matches:ze,finished:--Pt===0})})}),!0},Ne.prototype.provideCompletions=function(Oe,$e,Ve){var Ue=(function(qe){var Et=qe.prefix,kt=qe.matches;this.completions=new Ie(kt),$e.exactMatch&&(this.completions.exactMatch=!0),$e.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(Et),(qe.finished||this.completions.filtered.length)&&Ve(null,this.completions,qe.finished)}).bind(this),Fe=!0,ze=null;if(this.gatherCompletions(Oe,(function(qe,Et){if(this.active){qe&&(Ve(qe,[],!0),this.detach());var kt=Et.prefix;if(kt.indexOf(Et.prefix)===0){if(Fe){ze=Et;return}Ue(Et)}}}).bind(this)),Fe=!1,ze){var Pt=ze;ze=null,Ue(Pt)}},Ne.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(Oe){typeof Oe.cancel=="function"&&Oe.cancel()})},Ne}(),Ie=function(){function Ne(Oe,$e){this.all=Oe,this.filtered=Oe,this.filterText=$e||"",this.exactMatch=!1,this.ignoreCaption=!1}return Ne.prototype.setFilter=function(Oe){if(Oe.length>this.filterText&&Oe.lastIndexOf(this.filterText,0)===0)var $e=this.filtered;else var $e=this.all;this.filterText=Oe,$e=this.filterCompletions($e,this.filterText),$e=$e.sort(function(Ue,Fe){return Fe.exactMatch-Ue.exactMatch||Fe.$score-Ue.$score||(Ue.caption||Ue.value).localeCompare(Fe.caption||Fe.value)});var Ve=null;$e=$e.filter(function(Ue){var Fe=Ue.snippet||Ue.caption||Ue.value;return Fe===Ve?!1:(Ve=Fe,!0)}),this.filtered=$e},Ne.prototype.filterCompletions=function(Oe,$e){var Ve=[],Ue=$e.toUpperCase(),Fe=$e.toLowerCase();e:for(var ze=0,Pt;Pt=Oe[ze];ze++){if(Pt.skipFilter){Pt.$score=Pt.score,Ve.push(Pt);continue}var qe=!this.ignoreCaption&&Pt.caption||Pt.value||Pt.snippet;if(qe){var Et=-1,kt=0,At=0,Dt,Lt;if(this.exactMatch){if($e!==qe.substr(0,$e.length))continue e}else{var jt=qe.toLowerCase().indexOf(Fe);if(jt>-1)At=jt;else for(var hn=0;hn<$e.length;hn++){var vn=qe.indexOf(Fe[hn],Et+1),_n=qe.indexOf(Ue[hn],Et+1);if(Dt=vn>=0&&(_n<0||vn<_n)?vn:_n,Dt<0)continue e;Lt=Dt-Et-1,Lt>0&&(Et===-1&&(At+=10),At+=Lt,kt=kt|1<ue)&&(Ce.range.start.row===pe?he++:(pe=Ce.range.start.row,he=0),!(he>200))){var xe=Ce.range.clipRows(le,ue);if(!(xe.start.row===xe.end.row&&xe.start.column===xe.end.column)){var Ie=xe.toScreenRange(ae);if(Ie.isEmpty()){de=ae.getNextFoldLine(xe.end.row,de),de&&de.end.row>xe.end.row&&(le=de.end.row);continue}this.markerType==="fullLine"?ie.drawFullLineMarker(re,Ie,Ce.className,oe):Ie.isMultiLine()?this.markerType==="line"?ie.drawMultiLineMarker(re,Ie,Ce.className,oe):ie.drawTextMarker(re,Ie,Ce.className,oe):ie.drawSingleLineMarker(re,Ie,Ce.className+" ace_br15",oe)}}}},V}();$.prototype.MAX_MARKERS=1e4,i.MarkerGroup=$}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(r,i,g){var $=r("../range").Range,V=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function re(ae,oe){var le=ae.getTextRange($.fromPoints({row:0,column:0},oe));return le.split(V).length-1}function ie(ae,oe){var le=re(ae,oe),ue=ae.getValue().split(V),de=Object.create(null),he=ue[le];return ue.forEach(function(pe,_e){if(!(!pe||pe===he)){var Ce=Math.abs(le-_e),xe=ue.length-Ce;de[pe]?de[pe]=Math.max(xe,de[pe]):de[pe]=xe}}),de}i.getCompletions=function(ae,oe,le,ue,de){var he=ie(oe,le),pe=Object.keys(he);de(null,pe.map(function(_e){return{caption:_e,value:_e,score:he[_e],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/marker_group","ace/autocomplete/text_completer","ace/editor","ace/config"],function(r,i,g){var $=r("../snippets").snippetManager,V=r("../autocomplete").Autocomplete,re=r("../config"),ie=r("../lib/lang"),ae=r("../autocomplete/util"),oe=r("../marker_group").MarkerGroup,le=r("../autocomplete/text_completer"),ue={getCompletions:function(Fe,ze,Pt,qe,Et){if(ze.$mode.completer)return ze.$mode.completer.getCompletions(Fe,ze,Pt,qe,Et);var kt=Fe.session.getState(Pt.row),At=ze.$mode.getCompletions(kt,ze,Pt,qe);At=At.map(function(Dt){return Dt.completerId=ue.id,Dt}),Et(null,At)},id:"keywordCompleter"},de=function(Fe){var ze={};return Fe.replace(/\${(\d+)(:(.*?))?}/g,function(Pt,qe,Et,kt){return ze[qe]=kt||""}).replace(/\$(\d+?)/g,function(Pt,qe){return ze[qe]})},he={getCompletions:function(Fe,ze,Pt,qe,Et){var kt=[],At=ze.getTokenAt(Pt.row,Pt.column);At&&At.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?kt.push("html-tag"):kt=$.getActiveScopes(Fe);var Dt=$.snippetMap,Lt=[];kt.forEach(function(jt){for(var hn=Dt[jt]||[],vn=hn.length;vn--;){var _n=hn[vn],wn=_n.name||_n.tabTrigger;wn&&Lt.push({caption:wn,snippet:_n.content,meta:_n.tabTrigger&&!_n.name?_n.tabTrigger+"⇥ ":"snippet",completerId:he.id})}},this),Et(null,Lt)},getDocTooltip:function(Fe){Fe.snippet&&!Fe.docHTML&&(Fe.docHTML=["",ie.escapeHTML(Fe.caption),"","
",ie.escapeHTML(de(Fe.snippet))].join(""))},id:"snippetCompleter"},pe=[he,le,ue];i.setCompleters=function(Fe){pe.length=0,Fe&&pe.push.apply(pe,Fe)},i.addCompleter=function(Fe){pe.push(Fe)},i.textCompleter=le,i.keyWordCompleter=ue,i.snippetCompleter=he;var _e={name:"expandSnippet",exec:function(Fe){return $.expandWithTab(Fe)},bindKey:"Tab"},Ce=function(Fe,ze){xe(ze.session.$mode)},xe=function(Fe){typeof Fe=="string"&&(Fe=re.$modes[Fe]),Fe&&($.files||($.files={}),Ie(Fe.$id,Fe.snippetFileId),Fe.modes&&Fe.modes.forEach(xe))},Ie=function(Fe,ze){!ze||!Fe||$.files[Fe]||($.files[Fe]={},re.loadModule(ze,function(Pt){Pt&&($.files[Fe]=Pt,!Pt.snippets&&Pt.snippetText&&(Pt.snippets=$.parseSnippetFile(Pt.snippetText)),$.register(Pt.snippets||[],Pt.scope),Pt.includeScopes&&($.snippetMap[Pt.scope].includeScopes=Pt.includeScopes,Pt.includeScopes.forEach(function(qe){xe("ace/mode/"+qe)})))}))},Ne=function(Fe){var ze=Fe.editor,Pt=ze.completer&&ze.completer.activated;if(Fe.command.name==="backspace")Pt&&!ae.getCompletionPrefix(ze)&&ze.completer.detach();else if(Fe.command.name==="insertstring"&&!Pt){Oe=Fe;var qe=Fe.editor.$liveAutocompletionDelay;qe?$e.delay(qe):Ve(Fe)}},Oe,$e=ie.delayedCall(function(){Ve(Oe)},0),Ve=function(Fe){var ze=Fe.editor,Pt=ae.getCompletionPrefix(ze),qe=Fe.args,Et=ae.triggerAutocomplete(ze,qe);if(Pt&&Pt.length>=ze.$liveAutocompletionThreshold||Et){var kt=V.for(ze);kt.autoShown=!0,kt.showPopup(ze)}},Ue=r("../editor").Editor;r("../config").defineOptions(Ue.prototype,"editor",{enableBasicAutocompletion:{set:function(Fe){Fe?(V.for(this),this.completers||(this.completers=Array.isArray(Fe)?Fe:pe),this.commands.addCommand(V.startCommand)):this.commands.removeCommand(V.startCommand)},value:!1},enableLiveAutocompletion:{set:function(Fe){Fe?(this.completers||(this.completers=Array.isArray(Fe)?Fe:pe),this.commands.on("afterExec",Ne)):this.commands.off("afterExec",Ne)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(Fe){Fe?(this.commands.addCommand(_e),this.on("changeMode",Ce),Ce(null,this)):(this.commands.removeCommand(_e),this.off("changeMode",Ce))},value:!1}}),i.MarkerGroup=oe}),function(){ace.require(["ace/ext/language_tools"],function(r){n&&(n.exports=r)})}()})(extLanguage_tools);ace$1.config.setModuleUrl("ace/theme/monokai",themeMonokaiUrl);ace$1.config.setModuleUrl("ace/mode/base",workerBaseUrl);ace$1.config.setModuleUrl("ace/mode/json",modeJsonUrl);ace$1.config.setModuleUrl("ace/mode/json_worker",workerJsonUrl);ace$1.config.setModuleUrl("ace/snippets/json",snippetsJsonUrl);ace$1.config.setModuleUrl("ace/mode/javascript",modeJavascriptUrl);ace$1.config.setModuleUrl("ace/mode/javascript_worker",workerJavascriptUrl);ace$1.config.setModuleUrl("ace/snippets/javascript",snippetsJavascriptUrl);const langTools=ace$1.require("ace/ext/language_tools");langTools.addCompleter({getCompletions:function(n,t,r,i,g){if(i.length===0){g(null,[]);return}g(null,[{name:"$mtEventCallBack",value:"$mtEventCallBack(type,$item_info.id)",score:1e3,meta:"执行订阅回调函数"},{name:"$mtElMessage",value:'$mtElMessage.success("成功")',score:1e3,meta:"消息提示"},{name:"$mtElMessageBox",value:`$mtElMessageBox.alert('This is a message', 'Title', { confirmButtonText: 'OK', callback: (action) => { console.log(action) }, })`,score:1e3,meta:"消息弹出框"},{name:"$item_info",value:"$item_info",score:1e3,meta:"回调函数中获取当前触发事件图形的信息"}])}});/*! * pinia v3.0.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let activePinia;const setActivePinia=n=>activePinia=n,piniaSymbol=Symbol();function isPlainObject$1(n){return n&&typeof n=="object"&&Object.prototype.toString.call(n)==="[object Object]"&&typeof n.toJSON!="function"}var MutationType;(function(n){n.direct="direct",n.patchObject="patch object",n.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const n=effectScope(!0),t=n.run(()=>ref({}));let r=[],i=[];const g=markRaw({install($){setActivePinia(g),g._a=$,$.provide(piniaSymbol,g),$.config.globalProperties.$pinia=g,i.forEach(V=>r.push(V)),i=[]},use($){return this._a?r.push($):i.push($),this},_p:r,_a:null,_e:n,_s:new Map,state:t});return g}const noop$3=()=>{};function addSubscription(n,t,r,i=noop$3){n.add(t);const g=()=>{n.delete(t)&&i()};return!r&&getCurrentScope()&&onScopeDispose(g),g}function triggerSubscriptions(n,...t){n.forEach(r=>{r(...t)})}const fallbackRunWithContext=n=>n(),ACTION_MARKER=Symbol(),ACTION_NAME=Symbol();function mergeReactiveObjects(n,t){n instanceof Map&&t instanceof Map?t.forEach((r,i)=>n.set(i,r)):n instanceof Set&&t instanceof Set&&t.forEach(n.add,n);for(const r in t){if(!t.hasOwnProperty(r))continue;const i=t[r],g=n[r];isPlainObject$1(g)&&isPlainObject$1(i)&&n.hasOwnProperty(r)&&!isRef(i)&&!isReactive(i)?n[r]=mergeReactiveObjects(g,i):n[r]=i}return n}const skipHydrateSymbol=Symbol();function shouldHydrate(n){return!isPlainObject$1(n)||!Object.prototype.hasOwnProperty.call(n,skipHydrateSymbol)}const{assign:assign$1}=Object;function isComputed(n){return!!(isRef(n)&&n.effect)}function createOptionsStore(n,t,r,i){const{state:g,actions:$,getters:V}=t,re=r.state.value[n];let ie;function ae(){re||(r.state.value[n]=g?g():{});const oe=toRefs(r.state.value[n]);return assign$1(oe,$,Object.keys(V||{}).reduce((le,ue)=>(le[ue]=markRaw(computed(()=>{setActivePinia(r);const de=r._s.get(n);return V[ue].call(de,de)})),le),{}))}return ie=createSetupStore(n,ae,t,r,i,!0),ie}function createSetupStore(n,t,r={},i,g,$){let V;const re=assign$1({actions:{}},r),ie={deep:!0};let ae,oe,le=new Set,ue=new Set,de;const he=i.state.value[n];!$&&!he&&(i.state.value[n]={}),ref({});let pe;function _e(Ue){let Fe;ae=oe=!1,typeof Ue=="function"?(Ue(i.state.value[n]),Fe={type:MutationType.patchFunction,storeId:n,events:de}):(mergeReactiveObjects(i.state.value[n],Ue),Fe={type:MutationType.patchObject,payload:Ue,storeId:n,events:de});const ze=pe=Symbol();nextTick().then(()=>{pe===ze&&(ae=!0)}),oe=!0,triggerSubscriptions(le,Fe,i.state.value[n])}const Ce=$?function(){const{state:Fe}=r,ze=Fe?Fe():{};this.$patch(Pt=>{assign$1(Pt,ze)})}:noop$3;function xe(){V.stop(),le.clear(),ue.clear(),i._s.delete(n)}const Ie=(Ue,Fe="")=>{if(ACTION_MARKER in Ue)return Ue[ACTION_NAME]=Fe,Ue;const ze=function(){setActivePinia(i);const Pt=Array.from(arguments),qe=new Set,Et=new Set;function kt(Lt){qe.add(Lt)}function At(Lt){Et.add(Lt)}triggerSubscriptions(ue,{args:Pt,name:ze[ACTION_NAME],store:Oe,after:kt,onError:At});let Dt;try{Dt=Ue.apply(this&&this.$id===n?this:Oe,Pt)}catch(Lt){throw triggerSubscriptions(Et,Lt),Lt}return Dt instanceof Promise?Dt.then(Lt=>(triggerSubscriptions(qe,Lt),Lt)).catch(Lt=>(triggerSubscriptions(Et,Lt),Promise.reject(Lt))):(triggerSubscriptions(qe,Dt),Dt)};return ze[ACTION_MARKER]=!0,ze[ACTION_NAME]=Fe,ze},Ne={_p:i,$id:n,$onAction:addSubscription.bind(null,ue),$patch:_e,$reset:Ce,$subscribe(Ue,Fe={}){const ze=addSubscription(le,Ue,Fe.detached,()=>Pt()),Pt=V.run(()=>watch(()=>i.state.value[n],qe=>{(Fe.flush==="sync"?oe:ae)&&Ue({storeId:n,type:MutationType.direct,events:de},qe)},assign$1({},ie,Fe)));return ze},$dispose:xe},Oe=reactive(Ne);i._s.set(n,Oe);const Ve=(i._a&&i._a.runWithContext||fallbackRunWithContext)(()=>i._e.run(()=>(V=effectScope()).run(()=>t({action:Ie}))));for(const Ue in Ve){const Fe=Ve[Ue];if(isRef(Fe)&&!isComputed(Fe)||isReactive(Fe))$||(he&&shouldHydrate(Fe)&&(isRef(Fe)?Fe.value=he[Ue]:mergeReactiveObjects(Fe,he[Ue])),i.state.value[n][Ue]=Fe);else if(typeof Fe=="function"){const ze=Ie(Fe,Ue);Ve[Ue]=ze,re.actions[Ue]=Fe}}return assign$1(Oe,Ve),assign$1(toRaw(Oe),Ve),Object.defineProperty(Oe,"$state",{get:()=>i.state.value[n],set:Ue=>{_e(Fe=>{assign$1(Fe,Ue)})}}),i._p.forEach(Ue=>{assign$1(Oe,V.run(()=>Ue({store:Oe,app:i._a,pinia:i,options:re})))}),he&&$&&r.hydrate&&r.hydrate(Oe.$state,he),ae=!0,oe=!0,Oe}/*! #__NO_SIDE_EFFECTS__ */function defineStore(n,t,r){let i;const g=typeof t=="function";i=g?r:t;function $(V,re){const ie=hasInjectionContext();return V=V||(ie?inject(piniaSymbol,null):null),V&&setActivePinia(V),V=activePinia,V._s.has(n)||(g?createSetupStore(n,t,i,V):createOptionsStore(n,i,V)),V._s.get(n)}return $.$id=n,$}function storeToRefs(n){const t=toRaw(n),r={};for(const i in t){const g=t[i];g.effect?r[i]=computed({get:()=>n[i],set($){n[i]=$}}):(isRef(g)||isReactive(g))&&(r[i]=toRef$1(n,i))}return r}const useImgStore=defineStore("img",{state(){return{imgList:[]}},actions:{saveOrUpdateImage(n){const t=this.imgList.findIndex(r=>r.id===n.id);return t!==-1?this.imgList[t]=n:this.imgList.push(n),!0},getImageData(n){var t;return((t=this.imgList.find(r=>r.id===n))==null?void 0:t.uploadedImage)||""}}});function mitt(n){return{all:n=n||new Map,on:function(t,r){var i=n.get(t);i?i.push(r):n.set(t,[r])},off:function(t,r){var i=n.get(t);i&&(r?i.splice(i.indexOf(r)>>>0,1):n.set(t,[]))},emit:function(t,r){var i=n.get(t);i&&i.slice().map(function(g){g(r)}),(i=n.get("*"))&&i.slice().map(function(g){g(t,r)})}}}const emitter=mitt(),index_vue_vue_type_style_index_0_lang="",scriptRel="modulepreload",assetsURL=function(n){return"/webVue/"+n},seen={},__vitePreload=function n(t,r,i){if(!r||r.length===0)return t();const g=document.getElementsByTagName("link");return Promise.all(r.map($=>{if($=assetsURL($),$ in seen)return;seen[$]=!0;const V=$.endsWith(".css"),re=V?'[rel="stylesheet"]':"";if(!!i)for(let oe=g.length-1;oe>=0;oe--){const le=g[oe];if(le.href===$&&(!V||le.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${$}"]${re}`))return;const ae=document.createElement("link");if(ae.rel=V?"stylesheet":scriptRel,V||(ae.as="script",ae.crossOrigin=""),ae.href=$,document.head.appendChild(ae),V)return new Promise((oe,le)=>{ae.addEventListener("load",oe),ae.addEventListener("error",()=>le(new Error(`Unable to preload CSS for ${$}`)))})})).then(()=>t()).catch($=>{const V=new Event("vite:preloadError",{cancelable:!0});if(V.payload=$,window.dispatchEvent(V),!V.defaultPrevented)throw $})};/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */const isBrowser=typeof document<"u";function isRouteComponent(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function isESModule(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&isRouteComponent(n.default)}const assign=Object.assign;function applyToParams(n,t){const r={};for(const i in t){const g=t[i];r[i]=isArray$2(g)?g.map(n):n(g)}return r}const noop$2=()=>{},isArray$2=Array.isArray;function mergeOptions(n,t){const r={};for(const i in n)r[i]=i in t?t[i]:n[i];return r}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(n){return n==null?"":encodeURI(""+n).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(n){return commonEncode(n).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(n){return commonEncode(n).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(n){return encodeQueryValue(n).replace(EQUAL_RE,"%3D")}function encodePath(n){return commonEncode(n).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(n){return encodePath(n).replace(SLASH_RE,"%2F")}function decode(n){if(n==null)return null;try{return decodeURIComponent(""+n)}catch{}return""+n}const TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=n=>n.replace(TRAILING_SLASH_RE,"");function parseURL(n,t,r="/"){let i,g={},$="",V="";const re=t.indexOf("#");let ie=t.indexOf("?");return ie=re>=0&&ie>re?-1:ie,ie>=0&&(i=t.slice(0,ie),$=t.slice(ie,re>0?re:t.length),g=n($.slice(1))),re>=0&&(i=i||t.slice(0,re),V=t.slice(re,t.length)),i=resolveRelativePath(i??t,r),{fullPath:i+$+V,path:i,query:g,hash:decode(V)}}function stringifyURL(n,t){const r=t.query?n(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function stripBase(n,t){return!t||!n.toLowerCase().startsWith(t.toLowerCase())?n:n.slice(t.length)||"/"}function isSameRouteLocation(n,t,r){const i=t.matched.length-1,g=r.matched.length-1;return i>-1&&i===g&&isSameRouteRecord(t.matched[i],r.matched[g])&&isSameRouteLocationParams(t.params,r.params)&&n(t.query)===n(r.query)&&t.hash===r.hash}function isSameRouteRecord(n,t){return(n.aliasOf||n)===(t.aliasOf||t)}function isSameRouteLocationParams(n,t){if(Object.keys(n).length!==Object.keys(t).length)return!1;for(var r in n)if(!isSameRouteLocationParamsValue(n[r],t[r]))return!1;return!0}function isSameRouteLocationParamsValue(n,t){return isArray$2(n)?isEquivalentArray(n,t):isArray$2(t)?isEquivalentArray(t,n):(n==null?void 0:n.valueOf())===(t==null?void 0:t.valueOf())}function isEquivalentArray(n,t){return isArray$2(t)?n.length===t.length&&n.every((r,i)=>r===t[i]):n.length===1&&n[0]===t}function resolveRelativePath(n,t){if(n.startsWith("/"))return n;if(!n)return t;const r=t.split("/"),i=n.split("/"),g=i[i.length-1];(g===".."||g===".")&&i.push("");let $=r.length-1,V,re;for(V=0;V1&&$--;else break;return r.slice(0,$).join("/")+"/"+i.slice(V).join("/")}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let NavigationType=function(n){return n.pop="pop",n.push="push",n}({}),NavigationDirection=function(n){return n.back="back",n.forward="forward",n.unknown="",n}({});function normalizeBase(n){if(!n)if(isBrowser){const t=document.querySelector("base");n=t&&t.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),removeTrailingSlash(n)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(n,t){return n.replace(BEFORE_HASH_RE,"#")+t}function getElementPosition(n,t){const r=document.documentElement.getBoundingClientRect(),i=n.getBoundingClientRect();return{behavior:t.behavior,left:i.left-r.left-(t.left||0),top:i.top-r.top-(t.top||0)}}const computeScrollPosition=()=>({left:window.scrollX,top:window.scrollY});function scrollToPosition(n){let t;if("el"in n){const r=n.el,i=typeof r=="string"&&r.startsWith("#"),g=typeof r=="string"?i?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!g)return;t=getElementPosition(g,n)}else t=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function getScrollKey(n,t){return(history.state?history.state.position-t:-1)+n}const scrollPositions=new Map;function saveScrollPosition(n,t){scrollPositions.set(n,t)}function getSavedScrollPosition(n){const t=scrollPositions.get(n);return scrollPositions.delete(n),t}function isRouteLocation(n){return typeof n=="string"||n&&typeof n=="object"}function isRouteName(n){return typeof n=="string"||typeof n=="symbol"}let ErrorTypes=function(n){return n[n.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",n[n.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",n[n.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",n[n.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",n[n.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",n}({});const NavigationFailureSymbol=Symbol("");ErrorTypes.MATCHER_NOT_FOUND+"",ErrorTypes.NAVIGATION_GUARD_REDIRECT+"",ErrorTypes.NAVIGATION_ABORTED+"",ErrorTypes.NAVIGATION_CANCELLED+"",ErrorTypes.NAVIGATION_DUPLICATED+"";function createRouterError(n,t){return assign(new Error,{type:n,[NavigationFailureSymbol]:!0},t)}function isNavigationFailure(n,t){return n instanceof Error&&NavigationFailureSymbol in n&&(t==null||!!(n.type&t))}const propertiesToLog=["params","query","hash"];function stringifyRoute(n){if(typeof n=="string")return n;if(n.path!=null)return n.path;const t={};for(const r of propertiesToLog)r in n&&(t[r]=n[r]);return JSON.stringify(t,null,2)}function parseQuery(n){const t={};if(n===""||n==="?")return t;const r=(n[0]==="?"?n.slice(1):n).split("&");for(let i=0;ig&&encodeQueryValue(g)):[i&&encodeQueryValue(i)]).forEach(g=>{g!==void 0&&(t+=(t.length?"&":"")+r,g!=null&&(t+="="+g))})}return t}function normalizeQuery(n){const t={};for(const r in n){const i=n[r];i!==void 0&&(t[r]=isArray$2(i)?i.map(g=>g==null?null:""+g):i==null?i:""+i)}return t}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let n=[];function t(i){return n.push(i),()=>{const g=n.indexOf(i);g>-1&&n.splice(g,1)}}function r(){n=[]}return{add:t,list:()=>n.slice(),reset:r}}function guardToPromiseFn(n,t,r,i,g,$=V=>V()){const V=i&&(i.enterCallbacks[g]=i.enterCallbacks[g]||[]);return()=>new Promise((re,ie)=>{const ae=ue=>{ue===!1?ie(createRouterError(ErrorTypes.NAVIGATION_ABORTED,{from:r,to:t})):ue instanceof Error?ie(ue):isRouteLocation(ue)?ie(createRouterError(ErrorTypes.NAVIGATION_GUARD_REDIRECT,{from:t,to:ue})):(V&&i.enterCallbacks[g]===V&&typeof ue=="function"&&V.push(ue),re())},oe=$(()=>n.call(i&&i.instances[g],t,r,ae));let le=Promise.resolve(oe);n.length<3&&(le=le.then(ae)),le.catch(ue=>ie(ue))})}function extractComponentsGuards(n,t,r,i,g=$=>$()){const $=[];for(const V of n)for(const re in V.components){let ie=V.components[re];if(!(t!=="beforeRouteEnter"&&!V.instances[re]))if(isRouteComponent(ie)){const ae=(ie.__vccOpts||ie)[t];ae&&$.push(guardToPromiseFn(ae,r,i,V,re,g))}else{let ae=ie();$.push(()=>ae.then(oe=>{if(!oe)throw new Error(`Couldn't resolve component "${re}" at "${V.path}"`);const le=isESModule(oe)?oe.default:oe;V.mods[re]=oe,V.components[re]=le;const ue=(le.__vccOpts||le)[t];return ue&&guardToPromiseFn(ue,r,i,V,re,g)()}))}}return $}function extractChangingRecords(n,t){const r=[],i=[],g=[],$=Math.max(t.matched.length,n.matched.length);for(let V=0;V<$;V++){const re=t.matched[V];re&&(n.matched.find(ae=>isSameRouteRecord(ae,re))?i.push(re):r.push(re));const ie=n.matched[V];ie&&(t.matched.find(ae=>isSameRouteRecord(ae,ie))||g.push(ie))}return[r,i,g]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(n,t){const{pathname:r,search:i,hash:g}=t,$=n.indexOf("#");if($>-1){let V=g.includes(n.slice($))?n.slice($).length:1,re=g.slice(V);return re[0]!=="/"&&(re="/"+re),stripBase(re,"")}return stripBase(r,n)+i+g}function useHistoryListeners(n,t,r,i){let g=[],$=[],V=null;const re=({state:ue})=>{const de=createCurrentLocation(n,location),he=r.value,pe=t.value;let _e=0;if(ue){if(r.value=de,t.value=ue,V&&V===he){V=null;return}_e=pe?ue.position-pe.position:0}else i(de);g.forEach(Ce=>{Ce(r.value,he,{delta:_e,type:NavigationType.pop,direction:_e?_e>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function ie(){V=r.value}function ae(ue){g.push(ue);const de=()=>{const he=g.indexOf(ue);he>-1&&g.splice(he,1)};return $.push(de),de}function oe(){if(document.visibilityState==="hidden"){const{history:ue}=window;if(!ue.state)return;ue.replaceState(assign({},ue.state,{scroll:computeScrollPosition()}),"")}}function le(){for(const ue of $)ue();$=[],window.removeEventListener("popstate",re),window.removeEventListener("pagehide",oe),document.removeEventListener("visibilitychange",oe)}return window.addEventListener("popstate",re),window.addEventListener("pagehide",oe),document.addEventListener("visibilitychange",oe),{pauseListeners:ie,listen:ae,destroy:le}}function buildState(n,t,r,i=!1,g=!1){return{back:n,current:t,forward:r,replaced:i,position:window.history.length,scroll:g?computeScrollPosition():null}}function useHistoryStateNavigation(n){const{history:t,location:r}=window,i={value:createCurrentLocation(n,r)},g={value:t.state};g.value||$(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function $(ie,ae,oe){const le=n.indexOf("#"),ue=le>-1?(r.host&&document.querySelector("base")?n:n.slice(le))+ie:createBaseLocation()+n+ie;try{t[oe?"replaceState":"pushState"](ae,"",ue),g.value=ae}catch(de){console.error(de),r[oe?"replace":"assign"](ue)}}function V(ie,ae){$(ie,assign({},t.state,buildState(g.value.back,ie,g.value.forward,!0),ae,{position:g.value.position}),!0),i.value=ie}function re(ie,ae){const oe=assign({},g.value,t.state,{forward:ie,scroll:computeScrollPosition()});$(oe.current,oe,!0),$(ie,assign({},buildState(i.value,ie,null),{position:oe.position+1},ae),!1),i.value=ie}return{location:i,state:g,push:re,replace:V}}function createWebHistory(n){n=normalizeBase(n);const t=useHistoryStateNavigation(n),r=useHistoryListeners(n,t.state,t.location,t.replace);function i($,V=!0){V||r.pauseListeners(),history.go($)}const g=assign({location:"",base:n,go:i,createHref:createHref.bind(null,n)},t,r);return Object.defineProperty(g,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(g,"state",{enumerable:!0,get:()=>t.state.value}),g}let TokenType=function(n){return n[n.Static=0]="Static",n[n.Param=1]="Param",n[n.Group=2]="Group",n}({});var TokenizerState=function(n){return n[n.Static=0]="Static",n[n.Param=1]="Param",n[n.ParamRegExp=2]="ParamRegExp",n[n.ParamRegExpEnd=3]="ParamRegExpEnd",n[n.EscapeNext=4]="EscapeNext",n}(TokenizerState||{});const ROOT_TOKEN={type:TokenType.Static,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(n){if(!n)return[[]];if(n==="/")return[[ROOT_TOKEN]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function t(de){throw new Error(`ERR (${r})/"${ae}": ${de}`)}let r=TokenizerState.Static,i=r;const g=[];let $;function V(){$&&g.push($),$=[]}let re=0,ie,ae="",oe="";function le(){ae&&(r===TokenizerState.Static?$.push({type:TokenType.Static,value:ae}):r===TokenizerState.Param||r===TokenizerState.ParamRegExp||r===TokenizerState.ParamRegExpEnd?($.length>1&&(ie==="*"||ie==="+")&&t(`A repeatable param (${ae}) must be alone in its segment. eg: '/:ids+.`),$.push({type:TokenType.Param,value:ae,regexp:oe,repeatable:ie==="*"||ie==="+",optional:ie==="*"||ie==="?"})):t("Invalid state to consume buffer"),ae="")}function ue(){ae+=ie}for(;ret.length?t.length===1&&t[0]===PathScore.Static+PathScore.Segment?1:-1:0}function comparePathParserScore(n,t){let r=0;const i=n.score,g=t.score;for(;r0&&t[t.length-1]<0}const PATH_PARSER_OPTIONS_DEFAULTS={strict:!1,end:!0,sensitive:!1};function createRouteRecordMatcher(n,t,r){const i=tokensToParser(tokenizePath(n.path),r),g=assign(i,{record:n,parent:t,children:[],alias:[]});return t&&!g.record.aliasOf==!t.record.aliasOf&&t.children.push(g),g}function createRouterMatcher(n,t){const r=[],i=new Map;t=mergeOptions(PATH_PARSER_OPTIONS_DEFAULTS,t);function g(le){return i.get(le)}function $(le,ue,de){const he=!de,pe=normalizeRouteRecord(le);pe.aliasOf=de&&de.record;const _e=mergeOptions(t,le),Ce=[pe];if("alias"in le){const Ne=typeof le.alias=="string"?[le.alias]:le.alias;for(const Oe of Ne)Ce.push(normalizeRouteRecord(assign({},pe,{components:de?de.record.components:pe.components,path:Oe,aliasOf:de?de.record:pe})))}let xe,Ie;for(const Ne of Ce){const{path:Oe}=Ne;if(ue&&Oe[0]!=="/"){const $e=ue.record.path,Ve=$e[$e.length-1]==="/"?"":"/";Ne.path=ue.record.path+(Oe&&Ve+Oe)}if(xe=createRouteRecordMatcher(Ne,ue,_e),de?de.alias.push(xe):(Ie=Ie||xe,Ie!==xe&&Ie.alias.push(xe),he&&le.name&&!isAliasRecord(xe)&&V(le.name)),isMatchable(xe)&&ie(xe),pe.children){const $e=pe.children;for(let Ve=0;Ve<$e.length;Ve++)$($e[Ve],xe,de&&de.children[Ve])}de=de||xe}return Ie?()=>{V(Ie)}:noop$2}function V(le){if(isRouteName(le)){const ue=i.get(le);ue&&(i.delete(le),r.splice(r.indexOf(ue),1),ue.children.forEach(V),ue.alias.forEach(V))}else{const ue=r.indexOf(le);ue>-1&&(r.splice(ue,1),le.record.name&&i.delete(le.record.name),le.children.forEach(V),le.alias.forEach(V))}}function re(){return r}function ie(le){const ue=findInsertionIndex(le,r);r.splice(ue,0,le),le.record.name&&!isAliasRecord(le)&&i.set(le.record.name,le)}function ae(le,ue){let de,he={},pe,_e;if("name"in le&&le.name){if(de=i.get(le.name),!de)throw createRouterError(ErrorTypes.MATCHER_NOT_FOUND,{location:le});_e=de.record.name,he=assign(pickParams(ue.params,de.keys.filter(Ie=>!Ie.optional).concat(de.parent?de.parent.keys.filter(Ie=>Ie.optional):[]).map(Ie=>Ie.name)),le.params&&pickParams(le.params,de.keys.map(Ie=>Ie.name))),pe=de.stringify(he)}else if(le.path!=null)pe=le.path,de=r.find(Ie=>Ie.re.test(pe)),de&&(he=de.parse(pe),_e=de.record.name);else{if(de=ue.name?i.get(ue.name):r.find(Ie=>Ie.re.test(ue.path)),!de)throw createRouterError(ErrorTypes.MATCHER_NOT_FOUND,{location:le,currentLocation:ue});_e=de.record.name,he=assign({},ue.params,le.params),pe=de.stringify(he)}const Ce=[];let xe=de;for(;xe;)Ce.unshift(xe.record),xe=xe.parent;return{name:_e,path:pe,params:he,matched:Ce,meta:mergeMetaFields(Ce)}}n.forEach(le=>$(le));function oe(){r.length=0,i.clear()}return{addRoute:$,resolve:ae,removeRoute:V,clearRoutes:oe,getRoutes:re,getRecordMatcher:g}}function pickParams(n,t){const r={};for(const i of t)i in n&&(r[i]=n[i]);return r}function normalizeRouteRecord(n){const t={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:normalizeRecordProps(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function normalizeRecordProps(n){const t={},r=n.props||!1;if("component"in n)t.default=r;else for(const i in n.components)t[i]=typeof r=="object"?r[i]:r;return t}function isAliasRecord(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function mergeMetaFields(n){return n.reduce((t,r)=>assign(t,r.meta),{})}function findInsertionIndex(n,t){let r=0,i=t.length;for(;r!==i;){const $=r+i>>1;comparePathParserScore(n,t[$])<0?i=$:r=$+1}const g=getInsertionAncestor(n);return g&&(i=t.lastIndexOf(g,i-1)),i}function getInsertionAncestor(n){let t=n;for(;t=t.parent;)if(isMatchable(t)&&comparePathParserScore(n,t)===0)return t}function isMatchable({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function useLink(n){const t=inject(routerKey),r=inject(routeLocationKey),i=computed(()=>{const ie=unref(n.to);return t.resolve(ie)}),g=computed(()=>{const{matched:ie}=i.value,{length:ae}=ie,oe=ie[ae-1],le=r.matched;if(!oe||!le.length)return-1;const ue=le.findIndex(isSameRouteRecord.bind(null,oe));if(ue>-1)return ue;const de=getOriginalPath(ie[ae-2]);return ae>1&&getOriginalPath(oe)===de&&le[le.length-1].path!==de?le.findIndex(isSameRouteRecord.bind(null,ie[ae-2])):ue}),$=computed(()=>g.value>-1&&includesParams(r.params,i.value.params)),V=computed(()=>g.value>-1&&g.value===r.matched.length-1&&isSameRouteLocationParams(r.params,i.value.params));function re(ie={}){if(guardEvent(ie)){const ae=t[unref(n.replace)?"replace":"push"](unref(n.to)).catch(noop$2);return n.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>ae),ae}return Promise.resolve()}return{route:i,href:computed(()=>i.value.href),isActive:$,isExactActive:V,navigate:re}}function preferSingleVNode(n){return n.length===1?n[0]:n}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"},viewTransition:Boolean},useLink,setup(n,{slots:t}){const r=reactive(useLink(n)),{options:i}=inject(routerKey),g=computed(()=>({[getLinkClass(n.activeClass,i.linkActiveClass,"router-link-active")]:r.isActive,[getLinkClass(n.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const $=t.default&&preferSingleVNode(t.default(r));return n.custom?$:h$1("a",{"aria-current":r.isExactActive?n.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:g.value},$)}}}),RouterLink=RouterLinkImpl;function guardEvent(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const t=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return n.preventDefault&&n.preventDefault(),!0}}function includesParams(n,t){for(const r in t){const i=t[r],g=n[r];if(typeof i=="string"){if(i!==g)return!1}else if(!isArray$2(g)||g.length!==i.length||i.some(($,V)=>$.valueOf()!==g[V].valueOf()))return!1}return!0}function getOriginalPath(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const getLinkClass=(n,t,r)=>n??t??r,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:t,slots:r}){const i=inject(routerViewLocationKey),g=computed(()=>n.route||i.value),$=inject(viewDepthKey,0),V=computed(()=>{let ae=unref($);const{matched:oe}=g.value;let le;for(;(le=oe[ae])&&!le.components;)ae++;return ae}),re=computed(()=>g.value.matched[V.value]);provide(viewDepthKey,computed(()=>V.value+1)),provide(matchedRouteKey,re),provide(routerViewLocationKey,g);const ie=ref();return watch(()=>[ie.value,re.value,n.name],([ae,oe,le],[ue,de,he])=>{oe&&(oe.instances[le]=ae,de&&de!==oe&&ae&&ae===ue&&(oe.leaveGuards.size||(oe.leaveGuards=de.leaveGuards),oe.updateGuards.size||(oe.updateGuards=de.updateGuards))),ae&&oe&&(!de||!isSameRouteRecord(oe,de)||!ue)&&(oe.enterCallbacks[le]||[]).forEach(pe=>pe(ae))},{flush:"post"}),()=>{const ae=g.value,oe=n.name,le=re.value,ue=le&&le.components[oe];if(!ue)return normalizeSlot(r.default,{Component:ue,route:ae});const de=le.props[oe],he=de?de===!0?ae.params:typeof de=="function"?de(ae):de:null,_e=h$1(ue,assign({},he,t,{onVnodeUnmounted:Ce=>{Ce.component.isUnmounted&&(le.instances[oe]=null)},ref:ie}));return normalizeSlot(r.default,{Component:_e,route:ae})||_e}}});function normalizeSlot(n,t){if(!n)return null;const r=n(t);return r.length===1?r[0]:r}const RouterView=RouterViewImpl;function createRouter(n){const t=createRouterMatcher(n.routes,n),r=n.parseQuery||parseQuery,i=n.stringifyQuery||stringifyQuery,g=n.history,$=useCallbacks(),V=useCallbacks(),re=useCallbacks(),ie=shallowRef(START_LOCATION_NORMALIZED);let ae=START_LOCATION_NORMALIZED;isBrowser&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const oe=applyToParams.bind(null,En=>""+En),le=applyToParams.bind(null,encodeParam),ue=applyToParams.bind(null,decode);function de(En,kn){let $n,An;return isRouteName(En)?($n=t.getRecordMatcher(En),An=kn):An=En,t.addRoute(An,$n)}function he(En){const kn=t.getRecordMatcher(En);kn&&t.removeRoute(kn)}function pe(){return t.getRoutes().map(En=>En.record)}function _e(En){return!!t.getRecordMatcher(En)}function Ce(En,kn){if(kn=assign({},kn||ie.value),typeof En=="string"){const Pn=parseURL(r,En,kn.path),On=t.resolve({path:Pn.path},kn),Hn=g.createHref(Pn.fullPath);return assign(Pn,On,{params:ue(On.params),hash:decode(Pn.hash),redirectedFrom:void 0,href:Hn})}let $n;if(En.path!=null)$n=assign({},En,{path:parseURL(r,En.path,kn.path).path});else{const Pn=assign({},En.params);for(const On in Pn)Pn[On]==null&&delete Pn[On];$n=assign({},En,{params:le(Pn)}),kn.params=le(kn.params)}const An=t.resolve($n,kn),xn=En.hash||"";An.params=oe(ue(An.params));const Ln=stringifyURL(i,assign({},En,{hash:encodeHash(xn),path:An.path})),Nn=g.createHref(Ln);return assign({fullPath:Ln,hash:xn,query:i===stringifyQuery?normalizeQuery(En.query):En.query||{}},An,{redirectedFrom:void 0,href:Nn})}function xe(En){return typeof En=="string"?parseURL(r,En,ie.value.path):assign({},En)}function Ie(En,kn){if(ae!==En)return createRouterError(ErrorTypes.NAVIGATION_CANCELLED,{from:kn,to:En})}function Ne(En){return Ve(En)}function Oe(En){return Ne(assign(xe(En),{replace:!0}))}function $e(En,kn){const $n=En.matched[En.matched.length-1];if($n&&$n.redirect){const{redirect:An}=$n;let xn=typeof An=="function"?An(En,kn):An;return typeof xn=="string"&&(xn=xn.includes("?")||xn.includes("#")?xn=xe(xn):{path:xn},xn.params={}),assign({query:En.query,hash:En.hash,params:xn.path!=null?{}:En.params},xn)}}function Ve(En,kn){const $n=ae=Ce(En),An=ie.value,xn=En.state,Ln=En.force,Nn=En.replace===!0,Pn=$e($n,An);if(Pn)return Ve(assign(xe(Pn),{state:typeof Pn=="object"?assign({},xn,Pn.state):xn,force:Ln,replace:Nn}),kn||$n);const On=$n;On.redirectedFrom=kn;let Hn;return!Ln&&isSameRouteLocation(i,An,$n)&&(Hn=createRouterError(ErrorTypes.NAVIGATION_DUPLICATED,{to:On,from:An}),_n(An,An,!0,!1)),(Hn?Promise.resolve(Hn):ze(On,An)).catch(Xn=>isNavigationFailure(Xn)?isNavigationFailure(Xn,ErrorTypes.NAVIGATION_GUARD_REDIRECT)?Xn:vn(Xn):jt(Xn,On,An)).then(Xn=>{if(Xn){if(isNavigationFailure(Xn,ErrorTypes.NAVIGATION_GUARD_REDIRECT))return Ve(assign({replace:Nn},xe(Xn.to),{state:typeof Xn.to=="object"?assign({},xn,Xn.to.state):xn,force:Ln}),kn||On)}else Xn=qe(On,An,!0,Nn,xn);return Pt(On,An,Xn),Xn})}function Ue(En,kn){const $n=Ie(En,kn);return $n?Promise.reject($n):Promise.resolve()}function Fe(En){const kn=Cn.values().next().value;return kn&&typeof kn.runWithContext=="function"?kn.runWithContext(En):En()}function ze(En,kn){let $n;const[An,xn,Ln]=extractChangingRecords(En,kn);$n=extractComponentsGuards(An.reverse(),"beforeRouteLeave",En,kn);for(const Pn of An)Pn.leaveGuards.forEach(On=>{$n.push(guardToPromiseFn(On,En,kn))});const Nn=Ue.bind(null,En,kn);return $n.push(Nn),Tn($n).then(()=>{$n=[];for(const Pn of $.list())$n.push(guardToPromiseFn(Pn,En,kn));return $n.push(Nn),Tn($n)}).then(()=>{$n=extractComponentsGuards(xn,"beforeRouteUpdate",En,kn);for(const Pn of xn)Pn.updateGuards.forEach(On=>{$n.push(guardToPromiseFn(On,En,kn))});return $n.push(Nn),Tn($n)}).then(()=>{$n=[];for(const Pn of Ln)if(Pn.beforeEnter)if(isArray$2(Pn.beforeEnter))for(const On of Pn.beforeEnter)$n.push(guardToPromiseFn(On,En,kn));else $n.push(guardToPromiseFn(Pn.beforeEnter,En,kn));return $n.push(Nn),Tn($n)}).then(()=>(En.matched.forEach(Pn=>Pn.enterCallbacks={}),$n=extractComponentsGuards(Ln,"beforeRouteEnter",En,kn,Fe),$n.push(Nn),Tn($n))).then(()=>{$n=[];for(const Pn of V.list())$n.push(guardToPromiseFn(Pn,En,kn));return $n.push(Nn),Tn($n)}).catch(Pn=>isNavigationFailure(Pn,ErrorTypes.NAVIGATION_CANCELLED)?Pn:Promise.reject(Pn))}function Pt(En,kn,$n){re.list().forEach(An=>Fe(()=>An(En,kn,$n)))}function qe(En,kn,$n,An,xn){const Ln=Ie(En,kn);if(Ln)return Ln;const Nn=kn===START_LOCATION_NORMALIZED,Pn=isBrowser?history.state:{};$n&&(An||Nn?g.replace(En.fullPath,assign({scroll:Nn&&Pn&&Pn.scroll},xn)):g.push(En.fullPath,xn)),ie.value=En,_n(En,kn,$n,Nn),vn()}let Et;function kt(){Et||(Et=g.listen((En,kn,$n)=>{if(!Sn.listening)return;const An=Ce(En),xn=$e(An,Sn.currentRoute.value);if(xn){Ve(assign(xn,{replace:!0,force:!0}),An).catch(noop$2);return}ae=An;const Ln=ie.value;isBrowser&&saveScrollPosition(getScrollKey(Ln.fullPath,$n.delta),computeScrollPosition()),ze(An,Ln).catch(Nn=>isNavigationFailure(Nn,ErrorTypes.NAVIGATION_ABORTED|ErrorTypes.NAVIGATION_CANCELLED)?Nn:isNavigationFailure(Nn,ErrorTypes.NAVIGATION_GUARD_REDIRECT)?(Ve(assign(xe(Nn.to),{force:!0}),An).then(Pn=>{isNavigationFailure(Pn,ErrorTypes.NAVIGATION_ABORTED|ErrorTypes.NAVIGATION_DUPLICATED)&&!$n.delta&&$n.type===NavigationType.pop&&g.go(-1,!1)}).catch(noop$2),Promise.reject()):($n.delta&&g.go(-$n.delta,!1),jt(Nn,An,Ln))).then(Nn=>{Nn=Nn||qe(An,Ln,!1),Nn&&($n.delta&&!isNavigationFailure(Nn,ErrorTypes.NAVIGATION_CANCELLED)?g.go(-$n.delta,!1):$n.type===NavigationType.pop&&isNavigationFailure(Nn,ErrorTypes.NAVIGATION_ABORTED|ErrorTypes.NAVIGATION_DUPLICATED)&&g.go(-1,!1)),Pt(An,Ln,Nn)}).catch(noop$2)}))}let At=useCallbacks(),Dt=useCallbacks(),Lt;function jt(En,kn,$n){vn(En);const An=Dt.list();return An.length?An.forEach(xn=>xn(En,kn,$n)):console.error(En),Promise.reject(En)}function hn(){return Lt&&ie.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((En,kn)=>{At.add([En,kn])})}function vn(En){return Lt||(Lt=!En,kt(),At.list().forEach(([kn,$n])=>En?$n(En):kn()),At.reset()),En}function _n(En,kn,$n,An){const{scrollBehavior:xn}=n;if(!isBrowser||!xn)return Promise.resolve();const Ln=!$n&&getSavedScrollPosition(getScrollKey(En.fullPath,0))||(An||!$n)&&history.state&&history.state.scroll||null;return nextTick().then(()=>xn(En,kn,Ln)).then(Nn=>Nn&&scrollToPosition(Nn)).catch(Nn=>jt(Nn,En,kn))}const wn=En=>g.go(En);let bn;const Cn=new Set,Sn={currentRoute:ie,listening:!0,addRoute:de,removeRoute:he,clearRoutes:t.clearRoutes,hasRoute:_e,getRoutes:pe,resolve:Ce,options:n,push:Ne,replace:Oe,go:wn,back:()=>wn(-1),forward:()=>wn(1),beforeEach:$.add,beforeResolve:V.add,afterEach:re.add,onError:Dt.add,isReady:hn,install(En){En.component("RouterLink",RouterLink),En.component("RouterView",RouterView),En.config.globalProperties.$router=Sn,Object.defineProperty(En.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(ie)}),isBrowser&&!bn&&ie.value===START_LOCATION_NORMALIZED&&(bn=!0,Ne(g.location).catch(An=>{}));const kn={};for(const An in START_LOCATION_NORMALIZED)Object.defineProperty(kn,An,{get:()=>ie.value[An],enumerable:!0});En.provide(routerKey,Sn),En.provide(routeLocationKey,shallowReactive(kn)),En.provide(routerViewLocationKey,ie);const $n=En.unmount;Cn.add(En),En.unmount=function(){Cn.delete(En),Cn.size<1&&(ae=START_LOCATION_NORMALIZED,Et&&Et(),Et=null,ie.value=START_LOCATION_NORMALIZED,bn=!1,Lt=!1),$n()}}};function Tn(En){return En.reduce((kn,$n)=>kn.then(()=>Fe($n)),Promise.resolve())}return Sn}function useRouter(){return inject(routerKey)}function useRoute(n){return inject(routeLocationKey)}const stairRouteNames=["homeOverview","fireControlIndex","securityIndex","monitoringIndex","environmentIndex","lightingIndex","waterSupplyIndex"],constantRoutes=[{path:"/",redirect:"/home",meta:{title:"编辑模式",hidden:!0,treeHidden:!0,bottomHidden:!0}},{path:"/edit",name:"edit",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"编辑模式",hidden:!0,treeHidden:!0,bottomHidden:!0}},{path:"/preview",name:"preview",component:()=>__vitePreload(()=>import("./index-00692901.js"),["assets/index-00692901.js","assets/index-fd059ba6.js","assets/index-868f5209.js","assets/index-22b0f6c3.css"]),meta:{title:"预览模式",hidden:!0,treeHidden:!0,bottomHidden:!0}},{path:"/test",name:"test",component:()=>__vitePreload(()=>import("./view_index-ed158ebd.js"),[]),meta:{title:"测试页面",hidden:!0,treeHidden:!0,bottomHidden:!0},children:[{path:"/test/overview",name:"testOverview",component:()=>__vitePreload(()=>import("./index-a46c5f9d.js"),[]),meta:{title:"测试页面",hidden:!0,treeHidden:!0,bottomHidden:!0}}]},{path:"/home",name:"home",component:()=>__vitePreload(()=>import("./view_index-ed158ebd.js"),[]),meta:{title:"全站总览项目",hidden:!1,treeHidden:!1,bottomHidden:!1},children:[{path:"/home/overview",name:"homeOverview",component:()=>__vitePreload(()=>import("./overview-dc287791.js"),["assets/overview-dc287791.js","assets/index-fd059ba6.js","assets/index-868f5209.js","assets/overview-22717ad9.css"]),meta:{title:"全站总览",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Connection"}},{path:"/home/globalMessage",name:"homeGlobalMessage",component:()=>__vitePreload(()=>import("./globalMessage-c4d3facd.js"),["assets/globalMessage-c4d3facd.js","assets/index-fd059ba6.js","assets/index-868f5209.js","assets/globalMessage-6b7e4986.css"]),meta:{title:"全站报文",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"Connection"}},{path:"/home/exceedMessage",name:"homeExceedMessage",component:()=>__vitePreload(()=>import("./homeOverrunMessage-0e75fc3b.js"),["assets/homeOverrunMessage-0e75fc3b.js","assets/index-fd059ba6.js","assets/index-868f5209.js","assets/homeOverrunMessage-ebd2f52c.css"]),meta:{title:"越权信息",hidden:!0,treeHidden:!1,bottomHidden:!0}},{path:"/home/exceptionFacility",name:"homeExceptionFacility",component:()=>__vitePreload(()=>import("./homeExceptionFacility-39dc115d.js"),["assets/homeExceptionFacility-39dc115d.js","assets/index-fd059ba6.js","assets/index-868f5209.js","assets/homeExceptionFacility-5fec4994.css"]),meta:{title:"异常设备",hidden:!0,treeHidden:!1,bottomHidden:!0}}]},{path:"/fireControl",name:"fireControl",component:()=>__vitePreload(()=>import("./view_index-ed158ebd.js"),[]),meta:{title:"消防系统项目",hidden:!1,treeHidden:!1,bottomHidden:!1},children:[{path:"/fireControl/index",name:"fireControlIndex",component:()=>__vitePreload(()=>import("./index-ffae1f79.js"),["assets/index-ffae1f79.js","assets/index-fd059ba6.js","assets/index-868f5209.js","assets/index-6e6b3d7b.css"]),meta:{title:"消防系统",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"Discount"}},{path:"/fireControl/alarm",name:"fireControlAlarm",meta:{title:"火警报警项目",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Bell"},children:[{path:"/fireControl/alarm/index",name:"fireControlAlarmIndex",component:()=>__vitePreload(()=>import("./index-5f239c23.js"),["assets/index-5f239c23.js","assets/index-fd059ba6.js","assets/index-868f5209.js","assets/index-f45bda72.css"]),meta:{title:"火灾报警",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"Bell"}},{path:"/fireControl/alarm/host",name:"fireControlAlarmHost",component:()=>__vitePreload(()=>import("./host-60fa1e0a.js"),["assets/host-60fa1e0a.js","assets/index-fd059ba6.js","assets/index-868f5209.js","assets/host-bce9ed75.css"]),meta:{title:"火灾报警主机",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Crop"}},{path:"/fireControl/alarm/floor",name:"fireControlAlarmFloor",component:()=>__vitePreload(()=>import("./floor-e48b0d0d.js"),["assets/floor-e48b0d0d.js","assets/index-fd059ba6.js","assets/index-868f5209.js","assets/floor-9dacccdc.css"]),meta:{title:"生产综合楼 1 楼",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"OfficeBuilding"}}]},{path:"/fireControl/transformer",name:"fireControlTransformer",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"变压器排油注氮灭火项目",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"MagicStick"},children:[{path:"/fireControl/transformer/index",name:"fireControlTransformerIndex",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"变压器排油注氮灭火",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"MagicStick"}},{path:"/fireFighting/transformer/host",name:"fireFightingTransformerHost",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"主机",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Monitor"}},{path:"/fireFighting/transformer/floor",name:"fireFightingTransformerFloor",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"2 号主变排油注氮灭火",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Brush"}}]},{path:"/fireFighting/fireCock",name:"fireFightingFireCock",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"消火栓系统",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Place"}},{path:"/fireFighting/configuration",name:"fireFightingConfiguration",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"灭火器配置",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Files"}},{path:"/fireFighting/indicate",name:"fireFightingIndicator",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"消防应急照明及疏散指示系统",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Sunset"}}]},{path:"/security",name:"security",meta:{title:"安全防范项目",hidden:!1,treeHidden:!1,bottomHidden:!1},children:[{path:"/security/index",name:"securityIndex",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"安全防范",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"CircleCheck"}},{path:"/security/perimeter",name:"securityPerimeter",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"变电站周界",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Money"}},{path:"/security/infrared",name:"securityInfrared",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"室内红外双鉴",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"SetUp"}},{path:"/security/accessControl",name:"accessControl",meta:{title:"门禁控制项目",hidden:!1,treeHidden:!1,bottomHidden:!1},children:[{path:"/security/accessControl/index",name:"securityAccessControlIndex",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"门禁控制",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"Refrigerator"}},{path:"/security/accessControl/controller",name:"productionBuildingFirstController",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"生产综合楼一楼门禁控制器 项目",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"OfficeBuilding"}}]},{path:"/security/accessRecords",name:"accessRecords",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"门禁记录",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Document"}}]},{path:"/monitoring",name:"monitoring",meta:{title:"在线监测项目",hidden:!1,treeHidden:!1,bottomHidden:!1},children:[{path:"/monitoring/index",name:"monitoringIndex",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"在线监测",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"Notebook"}},{path:"/monitoring/oilChromatography",name:"oilChromatographyOnline",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"油色谱在线监测项目",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Postcard"},children:[{path:"/monitoring/oilChromatography/index",name:"oilChromatographyIndex",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"油色谱在线监测",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"Postcard"}},{path:"/monitoring/oilChromatography/no2",name:"no2MainTransformerOilChromatography",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"2 号主变油色谱",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"CollectionTag"}}]},{path:"/monitoring/partialDischarge",name:"mainTransformerPartialDischarge",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"主变局放在线监测项目",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Reading"},children:[{path:"/monitoring/partialDischarge/index",name:"monitoringPartialDischargeIndex",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"主变局放在线监测",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"Filter"}},{path:"/monitoring/partialDischarge/no2",name:"no2MainTransformerPartialDischarge",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"2 号主变局放",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"CollectionTag"}}]},{path:"/monitoring/gisDischarge",name:"gisPartialDischarge",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"GIS局放在线监测项目",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"PieChart"},children:[{path:"/monitoring/gisDischarge/index",name:"gisPartialDischargeIndex",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"GIS局放在线监测",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"Coin"}},{path:"/monitoring/gisDischarge/switch2215",name:"switch2215Interval",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"2215 开关间隔",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"CollectionTag"}}]},{path:"/monitoring/arrester",name:"arresterMonitoring",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"避雷器在线监测项目",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Lightning"},children:[{path:"/monitoring/arrester/index",name:"arresterMonitoringIndex",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"避雷器在线监测",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"Lightning"}},{path:"/monitoring/arrester/220kv",name:"arrester220kvMonitoring",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"220kV 避雷器在线监测",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"CollectionTag"}}]},{path:"/monitoring/sf6Pressure",name:"gisSf6Pressure",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"GIS气室SF6 压力监测项目",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"ChatSquare"},children:[{path:"/monitoring/sf6Pressure/index",name:"gisSf6PressureIndex",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"GIS气室SF6 压力监测",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"Finished"}},{path:"/monitoring/sf6Pressure/interval2245",name:"interval2245",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"2245 甲母联间隔",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"CollectionTag"}}]},{path:"/monitoring/sf6Leakage",name:"sf6Leakage",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"室内SF6 气体泄露监测",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Film"}}]},{path:"/environment",name:"environment",meta:{title:"环境监控项目",hidden:!1,treeHidden:!1,bottomHidden:!1},children:[{path:"/environment/index",name:"environmentIndex",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"环境监控",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"MagicStick"}},{path:"/environment/weather",name:"substationWeather",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"站区气象监测",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Cloudy"}},{path:"/environment/acHeating",name:"buildingAcHeating",meta:{title:"生产综合楼空调暖通项目",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Sunrise"},children:[{path:"/environment/acHeating/index",name:"buildingAcHeatingIndex",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"生产综合楼空调暖通",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"Sunrise"}},{path:"/environment/acHeating/building",name:"productionBuilding",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"生产综合楼",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"OfficeBuilding"}}]},{path:"/environment/threshold",name:"thresholdSetting",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"阈值设置",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Operation"}}]},{path:"/lighting",name:"lighting",meta:{title:"照明控制项目",hidden:!1,treeHidden:!1,bottomHidden:!1},children:[{path:"/lighting/index",name:"lightingIndex",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"照明控制",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"Sunny"}},{path:"/lighting/acHeating",name:"buildingLightingAcHeating",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"生产综合楼1楼空调暖通",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Sunset"}},{path:"/lighting/linkage",name:"linkageConfiguration",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"联动配置",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Operation"}}]},{path:"/waterSupply",name:"waterSupply",meta:{title:"给排水系统项目",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Operation"},children:[{path:"/waterSupply/index",name:"waterSupplyIndex",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"给排水系统",hidden:!0,treeHidden:!1,bottomHidden:!0,menuIcon:"Pouring"}},{path:"/waterSupply/waterSupply",name:"waterSupplySystem",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"给水系统",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Place"}},{path:"/waterSupply/drainage",name:"drainageSystem",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"排水系统",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"MapLocation"}},{path:"/waterSupply/threshold",name:"waterThresholdSetting",component:()=>__vitePreload(()=>import("./index-bf960468.js"),["assets/index-bf960468.js","assets/index-fd059ba6.js","assets/index-05e1f753.css"]),meta:{title:"阈值设置",hidden:!1,treeHidden:!1,bottomHidden:!1,menuIcon:"Setting"}}]}],getBasePath=()=>"/webVue/",router=createRouter({history:createWebHistory(getBasePath()),routes:constantRoutes}),index_vue_vue_type_style_index_0_scoped_593f0dd0_lang="",index_vue_vue_type_style_index_0_scoped_464d64c1_lang="",menuDoCreateMenu_vue_vue_type_style_index_0_scoped_e2fcc64d_lang="",view_index_vue_vue_type_style_index_0_scoped_65c426ec_lang="";var zhCn={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",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:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const _hoisted_1$o={style:{width:"100%",height:"100%"}},_hoisted_2$i={class:"my-button",style:{width:"100%",height:"100%"}},_sfc_main$u=defineComponent({__name:"my-test",props:{modelValue:String,fontFamily:String,testColor:String},setup(n){useCssVars(r=>({dbbe2a92:t.testColor,v1d98508d:t.fontFamily}));const t=n;return(r,i)=>(openBlock(),createElementBlock("div",_hoisted_1$o,[createBaseVNode("h2",_hoisted_2$i,toDisplayString(t.modelValue),1)]))}}),myTest_vue_vue_type_style_index_0_scoped_b19a711f_lang="",VueMyTest=_export_sfc$1(_sfc_main$u,[["__scopeId","data-v-b19a711f"]]),_hoisted_1$n={style:{width:"100%",height:"100%"}},_hoisted_2$h={class:"my-button",style:{width:"100%",height:"100%"}},_sfc_main$t=defineComponent({__name:"my-button",props:{text:String,bgColor:String,fontFamily:String},setup(n){useCssVars(r=>({be8de75e:t.bgColor,v2b3d1580:t.fontFamily}));const t=n;return(r,i)=>(openBlock(),createElementBlock("div",_hoisted_1$n,[createBaseVNode("button",_hoisted_2$h,toDisplayString(t.text),1)]))}}),myButton_vue_vue_type_style_index_0_scoped_305961da_lang="",VueMyButton=_export_sfc$1(_sfc_main$t,[["__scopeId","data-v-305961da"]]),_hoisted_1$m={class:"slider-demo-block"},_hoisted_2$g={class:"slider-demo-block"},_hoisted_3$7={class:"slider-demo-block"},_hoisted_4$5={class:"slider-demo-block"},_sfc_main$s=defineComponent({__name:"vue-instrument",props:{temperatureVal:{type:Number,default:12},humidityVal:{type:Number,default:12},windVal:{type:Number,default:12},rainVal:{type:Number,default:12}},setup(n){const t=n;let{temperatureVal:r,humidityVal:i,windVal:g,rainVal:$}=toRefs(t);const V=oe=>oe+" ℃",re=oe=>oe+" %RH",ie=oe=>oe/10+" m/s",ae=oe=>oe+" mm";return(oe,le)=>{const ue=resolveComponent("el-slider");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$m,[le[4]||(le[4]=createBaseVNode("span",{class:"demonstration"},"温度",-1)),createVNode$1(ue,{modelValue:unref(r),"onUpdate:modelValue":le[0]||(le[0]=de=>isRef(r)?r.value=de:r=de),"format-tooltip":V,disabled:""},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_2$g,[le[5]||(le[5]=createBaseVNode("span",{class:"demonstration"},"湿度",-1)),createVNode$1(ue,{modelValue:unref(i),"onUpdate:modelValue":le[1]||(le[1]=de=>isRef(i)?i.value=de:i=de),"format-tooltip":re,disabled:""},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_3$7,[le[6]||(le[6]=createBaseVNode("span",{class:"demonstration"},"风力",-1)),createVNode$1(ue,{modelValue:unref(g),"onUpdate:modelValue":le[2]||(le[2]=de=>isRef(g)?g.value=de:g=de),"format-tooltip":ie,disabled:""},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_4$5,[le[7]||(le[7]=createBaseVNode("span",{class:"demonstration"},"雨量",-1)),createVNode$1(ue,{modelValue:unref($),"onUpdate:modelValue":le[3]||(le[3]=de=>isRef($)?$.value=de:$=de),"format-tooltip":ae,disabled:""},null,8,["modelValue"])])],64)}}}),vueInstrument_vue_vue_type_style_index_0_scoped_2a7a3518_lang="",vueInstrument=_export_sfc$1(_sfc_main$s,[["__scopeId","data-v-2a7a3518"]]);function bind$2(n,t){return function(){return n.apply(t,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,{iterator:iterator$1,toStringTag}=Symbol,kindOf=(n=>t=>{const r=toString.call(t);return n[r]||(n[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=n=>(n=n.toLowerCase(),t=>kindOf(t)===n),typeOfTest=n=>t=>typeof t===n,{isArray:isArray$1}=Array,isUndefined=typeOfTest("undefined");function isBuffer(n){return n!==null&&!isUndefined(n)&&n.constructor!==null&&!isUndefined(n.constructor)&&isFunction$2(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&isArrayBuffer(n.buffer),t}const isString$1=typeOfTest("string"),isFunction$2=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$3=n=>n!==null&&typeof n=="object",isBoolean=n=>n===!0||n===!1,isPlainObject=n=>{if(kindOf(n)!=="object")return!1;const t=getPrototypeOf(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(toStringTag in n)&&!(iterator$1 in n)},isEmptyObject=n=>{if(!isObject$3(n)||isBuffer(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=n=>isObject$3(n)&&isFunction$2(n.pipe),isFormData=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||isFunction$2(n.append)&&((t=kindOf(n))==="formdata"||t==="object"&&isFunction$2(n.toString)&&n.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim$1=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(n,t,{allOwnKeys:r=!1}={}){if(n===null||typeof n>"u")return;let i,g;if(typeof n!="object"&&(n=[n]),isArray$1(n))for(i=0,g=n.length;i0;)if(g=r[i],t===g.toLowerCase())return g;return null}const _global=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=n=>!isUndefined(n)&&n!==_global;function merge$1(){const{caseless:n,skipUndefined:t}=isContextDefined(this)&&this||{},r={},i=(g,$)=>{const V=n&&findKey(r,$)||$;isPlainObject(r[V])&&isPlainObject(g)?r[V]=merge$1(r[V],g):isPlainObject(g)?r[V]=merge$1({},g):isArray$1(g)?r[V]=g.slice():(!t||!isUndefined(g))&&(r[V]=g)};for(let g=0,$=arguments.length;g<$;g++)arguments[g]&&forEach(arguments[g],i);return r}const extend$1=(n,t,r,{allOwnKeys:i}={})=>(forEach(t,(g,$)=>{r&&isFunction$2(g)?n[$]=bind$2(g,r):n[$]=g},{allOwnKeys:i}),n),stripBOM=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),inherits$1=(n,t,r,i)=>{n.prototype=Object.create(t.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),r&&Object.assign(n.prototype,r)},toFlatObject=(n,t,r,i)=>{let g,$,V;const re={};if(t=t||{},n==null)return t;do{for(g=Object.getOwnPropertyNames(n),$=g.length;$-- >0;)V=g[$],(!i||i(V,n,t))&&!re[V]&&(t[V]=n[V],re[V]=!0);n=r!==!1&&getPrototypeOf(n)}while(n&&(!r||r(n,t))&&n!==Object.prototype);return t},endsWith=(n,t,r)=>{n=String(n),(r===void 0||r>n.length)&&(r=n.length),r-=t.length;const i=n.indexOf(t,r);return i!==-1&&i===r},toArray$1=n=>{if(!n)return null;if(isArray$1(n))return n;let t=n.length;if(!isNumber$1(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=n[t];return r},isTypedArray$2=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(n,t)=>{const i=(n&&n[iterator$1]).call(n);let g;for(;(g=i.next())&&!g.done;){const $=g.value;t.call(n,$[0],$[1])}},matchAll=(n,t)=>{let r;const i=[];for(;(r=n.exec(t))!==null;)i.push(r);return i},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase$1=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,g){return i.toUpperCase()+g}),hasOwnProperty=(({hasOwnProperty:n})=>(t,r)=>n.call(t,r))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(n,t)=>{const r=Object.getOwnPropertyDescriptors(n),i={};forEach(r,(g,$)=>{let V;(V=t(g,$,n))!==!1&&(i[$]=V||g)}),Object.defineProperties(n,i)},freezeMethods=n=>{reduceDescriptors(n,(t,r)=>{if(isFunction$2(n)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=n[r];if(isFunction$2(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet=(n,t)=>{const r={},i=g=>{g.forEach($=>{r[$]=!0})};return isArray$1(n)?i(n):i(String(n).split(t)),r},noop$1=()=>{},toFiniteNumber=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function isSpecCompliantForm(n){return!!(n&&isFunction$2(n.append)&&n[toStringTag]==="FormData"&&n[iterator$1])}const toJSONObject=n=>{const t=new Array(10),r=(i,g)=>{if(isObject$3(i)){if(t.indexOf(i)>=0)return;if(isBuffer(i))return i;if(!("toJSON"in i)){t[g]=i;const $=isArray$1(i)?[]:{};return forEach(i,(V,re)=>{const ie=r(V,g+1);!isUndefined(ie)&&($[re]=ie)}),t[g]=void 0,$}}return i};return r(n,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=n=>n&&(isObject$3(n)||isFunction$2(n))&&isFunction$2(n.then)&&isFunction$2(n.catch),_setImmediate=((n,t)=>n?setImmediate:t?((r,i)=>(_global.addEventListener("message",({source:g,data:$})=>{g===_global&&$===r&&i.length&&i.shift()()},!1),g=>{i.push(g),_global.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",isFunction$2(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,isIterable=n=>n!=null&&isFunction$2(n[iterator$1]),utils$1={isArray:isArray$1,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isBoolean,isObject:isObject$3,isPlainObject,isEmptyObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction:isFunction$2,isStream,isURLSearchParams,isTypedArray:isTypedArray$2,isFileList,forEach,merge:merge$1,extend:extend$1,trim:trim$1,stripBOM,inherits:inherits$1,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$1,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase:toCamelCase$1,noop:noop$1,toFiniteNumber,findKey,global:_global,isContextDefined,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap,isIterable};function AxiosError(n,t,r,i,g){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),g&&(this.response=g,this.status=g.status?g.status:null)}utils$1.inherits(AxiosError,Error,{toJSON:function n(){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$1.toJSONObject(this.config),code:this.code,status:this.status}}});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(n=>{descriptors[n]={value:n}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(n,t,r,i,g,$)=>{const V=Object.create(prototype$1);utils$1.toFlatObject(n,V,function(oe){return oe!==Error.prototype},ae=>ae!=="isAxiosError");const re=n&&n.message?n.message:"Error",ie=t==null&&n?n.code:t;return AxiosError.call(V,re,ie,r,i,g),n&&V.cause==null&&Object.defineProperty(V,"cause",{value:n,configurable:!0}),V.name=n&&n.name||"Error",$&&Object.assign(V,$),V};const httpAdapter=null;function isVisitable(n){return utils$1.isPlainObject(n)||utils$1.isArray(n)}function removeBrackets(n){return utils$1.endsWith(n,"[]")?n.slice(0,-2):n}function renderKey(n,t,r){return n?n.concat(t).map(function(g,$){return g=removeBrackets(g),!r&&$?"["+g+"]":g}).join(r?".":""):t}function isFlatArray(n){return utils$1.isArray(n)&&!n.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function n(t){return/^is[A-Z]/.test(t)});function toFormData(n,t,r){if(!utils$1.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,r=utils$1.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(pe,_e){return!utils$1.isUndefined(_e[pe])});const i=r.metaTokens,g=r.visitor||oe,$=r.dots,V=r.indexes,ie=(r.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(t);if(!utils$1.isFunction(g))throw new TypeError("visitor must be a function");function ae(he){if(he===null)return"";if(utils$1.isDate(he))return he.toISOString();if(utils$1.isBoolean(he))return he.toString();if(!ie&&utils$1.isBlob(he))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(he)||utils$1.isTypedArray(he)?ie&&typeof Blob=="function"?new Blob([he]):Buffer.from(he):he}function oe(he,pe,_e){let Ce=he;if(he&&!_e&&typeof he=="object"){if(utils$1.endsWith(pe,"{}"))pe=i?pe:pe.slice(0,-2),he=JSON.stringify(he);else if(utils$1.isArray(he)&&isFlatArray(he)||(utils$1.isFileList(he)||utils$1.endsWith(pe,"[]"))&&(Ce=utils$1.toArray(he)))return pe=removeBrackets(pe),Ce.forEach(function(Ie,Ne){!(utils$1.isUndefined(Ie)||Ie===null)&&t.append(V===!0?renderKey([pe],Ne,$):V===null?pe:pe+"[]",ae(Ie))}),!1}return isVisitable(he)?!0:(t.append(renderKey(_e,pe,$),ae(he)),!1)}const le=[],ue=Object.assign(predicates,{defaultVisitor:oe,convertValue:ae,isVisitable});function de(he,pe){if(!utils$1.isUndefined(he)){if(le.indexOf(he)!==-1)throw Error("Circular reference detected in "+pe.join("."));le.push(he),utils$1.forEach(he,function(Ce,xe){(!(utils$1.isUndefined(Ce)||Ce===null)&&g.call(t,Ce,utils$1.isString(xe)?xe.trim():xe,pe,ue))===!0&&de(Ce,pe?pe.concat(xe):[xe])}),le.pop()}}if(!utils$1.isObject(n))throw new TypeError("data must be an object");return de(n),t}function encode$1(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function AxiosURLSearchParams(n,t){this._pairs=[],n&&toFormData(n,this,t)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function n(t,r){this._pairs.push([t,r])};prototype.toString=function n(t){const r=t?function(i){return t.call(this,i,encode$1)}:encode$1;return this._pairs.map(function(g){return r(g[0])+"="+r(g[1])},"").join("&")};function encode(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(n,t,r){if(!t)return n;const i=r&&r.encode||encode;utils$1.isFunction(r)&&(r={serialize:r});const g=r&&r.serialize;let $;if(g?$=g(t,r):$=utils$1.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,r).toString(i),$){const V=n.indexOf("#");V!==-1&&(n=n.slice(0,V)),n+=(n.indexOf("?")===-1?"?":"&")+$}return n}class InterceptorManager{constructor(){this.handlers=[]}use(t,r,i){return this.handlers.push({fulfilled:t,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){utils$1.forEach(this.handlers,function(i){i!==null&&t(i)})}}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,platform$2={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform$1={...utils,...platform$2};function toURLEncodedForm(n,t){return toFormData(n,new platform$1.classes.URLSearchParams,{visitor:function(r,i,g,$){return platform$1.isNode&&utils$1.isBuffer(r)?(this.append(i,r.toString("base64")),!1):$.defaultVisitor.apply(this,arguments)},...t})}function parsePropPath(n){return utils$1.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function arrayToObject(n){const t={},r=Object.keys(n);let i;const g=r.length;let $;for(i=0;i=r.length;return V=!V&&utils$1.isArray(g)?g.length:V,ie?(utils$1.hasOwnProp(g,V)?g[V]=[g[V],i]:g[V]=i,!re):((!g[V]||!utils$1.isObject(g[V]))&&(g[V]=[]),t(r,i,g[V],$)&&utils$1.isArray(g[V])&&(g[V]=arrayToObject(g[V])),!re)}if(utils$1.isFormData(n)&&utils$1.isFunction(n.entries)){const r={};return utils$1.forEachEntry(n,(i,g)=>{t(parsePropPath(i),g,r,0)}),r}return null}function stringifySafely(n,t,r){if(utils$1.isString(n))try{return(t||JSON.parse)(n),utils$1.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(n)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function n(t,r){const i=r.getContentType()||"",g=i.indexOf("application/json")>-1,$=utils$1.isObject(t);if($&&utils$1.isHTMLForm(t)&&(t=new FormData(t)),utils$1.isFormData(t))return g?JSON.stringify(formDataToJSON(t)):t;if(utils$1.isArrayBuffer(t)||utils$1.isBuffer(t)||utils$1.isStream(t)||utils$1.isFile(t)||utils$1.isBlob(t)||utils$1.isReadableStream(t))return t;if(utils$1.isArrayBufferView(t))return t.buffer;if(utils$1.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let re;if($){if(i.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(t,this.formSerializer).toString();if((re=utils$1.isFileList(t))||i.indexOf("multipart/form-data")>-1){const ie=this.env&&this.env.FormData;return toFormData(re?{"files[]":t}:t,ie&&new ie,this.formSerializer)}}return $||g?(r.setContentType("application/json",!1),stringifySafely(t)):t}],transformResponse:[function n(t){const r=this.transitional||defaults$1.transitional,i=r&&r.forcedJSONParsing,g=this.responseType==="json";if(utils$1.isResponse(t)||utils$1.isReadableStream(t))return t;if(t&&utils$1.isString(t)&&(i&&!this.responseType||g)){const V=!(r&&r.silentJSONParsing)&&g;try{return JSON.parse(t,this.parseReviver)}catch(re){if(V)throw re.name==="SyntaxError"?AxiosError.from(re,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):re}}return t}],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 n(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],n=>{defaults$1.headers[n]={}});const defaults$2=defaults$1,ignoreDuplicateOf=utils$1.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=n=>{const t={};let r,i,g;return n&&n.split(` `).forEach(function(V){g=V.indexOf(":"),r=V.substring(0,g).trim().toLowerCase(),i=V.substring(g+1).trim(),!(!r||t[r]&&ignoreDuplicateOf[r])&&(r==="set-cookie"?t[r]?t[r].push(i):t[r]=[i]:t[r]=t[r]?t[r]+", "+i:i)}),t},$internals=Symbol("internals");function normalizeHeader(n){return n&&String(n).trim().toLowerCase()}function normalizeValue(n){return n===!1||n==null?n:utils$1.isArray(n)?n.map(normalizeValue):String(n)}function parseTokens(n){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(n);)t[i[1]]=i[2];return t}const isValidHeaderName=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function matchHeaderValue(n,t,r,i,g){if(utils$1.isFunction(i))return i.call(this,t,r);if(g&&(t=r),!!utils$1.isString(t)){if(utils$1.isString(i))return t.indexOf(i)!==-1;if(utils$1.isRegExp(i))return i.test(t)}}function formatHeader(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,i)=>r.toUpperCase()+i)}function buildAccessors(n,t){const r=utils$1.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+r,{value:function(g,$,V){return this[i].call(this,t,g,$,V)},configurable:!0})})}class AxiosHeaders{constructor(t){t&&this.set(t)}set(t,r,i){const g=this;function $(re,ie,ae){const oe=normalizeHeader(ie);if(!oe)throw new Error("header name must be a non-empty string");const le=utils$1.findKey(g,oe);(!le||g[le]===void 0||ae===!0||ae===void 0&&g[le]!==!1)&&(g[le||ie]=normalizeValue(re))}const V=(re,ie)=>utils$1.forEach(re,(ae,oe)=>$(ae,oe,ie));if(utils$1.isPlainObject(t)||t instanceof this.constructor)V(t,r);else if(utils$1.isString(t)&&(t=t.trim())&&!isValidHeaderName(t))V(parseHeaders(t),r);else if(utils$1.isObject(t)&&utils$1.isIterable(t)){let re={},ie,ae;for(const oe of t){if(!utils$1.isArray(oe))throw TypeError("Object iterator must return a key-value pair");re[ae=oe[0]]=(ie=re[ae])?utils$1.isArray(ie)?[...ie,oe[1]]:[ie,oe[1]]:oe[1]}V(re,r)}else t!=null&&$(r,t,i);return this}get(t,r){if(t=normalizeHeader(t),t){const i=utils$1.findKey(this,t);if(i){const g=this[i];if(!r)return g;if(r===!0)return parseTokens(g);if(utils$1.isFunction(r))return r.call(this,g,i);if(utils$1.isRegExp(r))return r.exec(g);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=normalizeHeader(t),t){const i=utils$1.findKey(this,t);return!!(i&&this[i]!==void 0&&(!r||matchHeaderValue(this,this[i],i,r)))}return!1}delete(t,r){const i=this;let g=!1;function $(V){if(V=normalizeHeader(V),V){const re=utils$1.findKey(i,V);re&&(!r||matchHeaderValue(i,i[re],re,r))&&(delete i[re],g=!0)}}return utils$1.isArray(t)?t.forEach($):$(t),g}clear(t){const r=Object.keys(this);let i=r.length,g=!1;for(;i--;){const $=r[i];(!t||matchHeaderValue(this,this[$],$,t,!0))&&(delete this[$],g=!0)}return g}normalize(t){const r=this,i={};return utils$1.forEach(this,(g,$)=>{const V=utils$1.findKey(i,$);if(V){r[V]=normalizeValue(g),delete r[$];return}const re=t?formatHeader($):String($).trim();re!==$&&delete r[$],r[re]=normalizeValue(g),i[re]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return utils$1.forEach(this,(i,g)=>{i!=null&&i!==!1&&(r[g]=t&&utils$1.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const i=new this(t);return r.forEach(g=>i.set(g)),i}static accessor(t){const i=(this[$internals]=this[$internals]={accessors:{}}).accessors,g=this.prototype;function $(V){const re=normalizeHeader(V);i[re]||(buildAccessors(g,V),i[re]=!0)}return utils$1.isArray(t)?t.forEach($):$(t),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:n},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(i){this[r]=i}}});utils$1.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(n,t){const r=this||defaults$2,i=t||r,g=AxiosHeaders$1.from(i.headers);let $=i.data;return utils$1.forEach(n,function(re){$=re.call(r,$,g.normalize(),t?t.status:void 0)}),g.normalize(),$}function isCancel(n){return!!(n&&n.__CANCEL__)}function CanceledError(n,t,r){AxiosError.call(this,n??"canceled",AxiosError.ERR_CANCELED,t,r),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(n,t,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?n(r):t(new AxiosError("Request failed with status code "+r.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function parseProtocol(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function speedometer(n,t){n=n||10;const r=new Array(n),i=new Array(n);let g=0,$=0,V;return t=t!==void 0?t:1e3,function(ie){const ae=Date.now(),oe=i[$];V||(V=ae),r[g]=ie,i[g]=ae;let le=$,ue=0;for(;le!==g;)ue+=r[le++],le=le%n;if(g=(g+1)%n,g===$&&($=($+1)%n),ae-V{r=oe,g=null,$&&(clearTimeout($),$=null),n(...ae)};return[(...ae)=>{const oe=Date.now(),le=oe-r;le>=i?V(ae,oe):(g=ae,$||($=setTimeout(()=>{$=null,V(g)},i-le)))},()=>g&&V(g)]}const progressEventReducer=(n,t,r=3)=>{let i=0;const g=speedometer(50,250);return throttle$1($=>{const V=$.loaded,re=$.lengthComputable?$.total:void 0,ie=V-i,ae=g(ie),oe=V<=re;i=V;const le={loaded:V,total:re,progress:re?V/re:void 0,bytes:ie,rate:ae||void 0,estimated:ae&&re&&oe?(re-V)/ae:void 0,event:$,lengthComputable:re!=null,[t?"download":"upload"]:!0};n(le)},r)},progressEventDecorator=(n,t)=>{const r=n!=null;return[i=>t[0]({lengthComputable:r,total:n,loaded:i}),t[1]]},asyncDecorator=n=>(...t)=>utils$1.asap(()=>n(...t)),isURLSameOrigin=platform$1.hasStandardBrowserEnv?((n,t)=>r=>(r=new URL(r,platform$1.origin),n.protocol===r.protocol&&n.host===r.host&&(t||n.port===r.port)))(new URL(platform$1.origin),platform$1.navigator&&/(msie|trident)/i.test(platform$1.navigator.userAgent)):()=>!0,cookies=platform$1.hasStandardBrowserEnv?{write(n,t,r,i,g,$,V){if(typeof document>"u")return;const re=[`${n}=${encodeURIComponent(t)}`];utils$1.isNumber(r)&&re.push(`expires=${new Date(r).toUTCString()}`),utils$1.isString(i)&&re.push(`path=${i}`),utils$1.isString(g)&&re.push(`domain=${g}`),$===!0&&re.push("secure"),utils$1.isString(V)&&re.push(`SameSite=${V}`),document.cookie=re.join("; ")},read(n){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function combineURLs(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function buildFullPath(n,t,r){let i=!isAbsoluteURL(t);return n&&(i||r==!1)?combineURLs(n,t):t}const headersToObject=n=>n instanceof AxiosHeaders$1?{...n}:n;function mergeConfig(n,t){t=t||{};const r={};function i(ae,oe,le,ue){return utils$1.isPlainObject(ae)&&utils$1.isPlainObject(oe)?utils$1.merge.call({caseless:ue},ae,oe):utils$1.isPlainObject(oe)?utils$1.merge({},oe):utils$1.isArray(oe)?oe.slice():oe}function g(ae,oe,le,ue){if(utils$1.isUndefined(oe)){if(!utils$1.isUndefined(ae))return i(void 0,ae,le,ue)}else return i(ae,oe,le,ue)}function $(ae,oe){if(!utils$1.isUndefined(oe))return i(void 0,oe)}function V(ae,oe){if(utils$1.isUndefined(oe)){if(!utils$1.isUndefined(ae))return i(void 0,ae)}else return i(void 0,oe)}function re(ae,oe,le){if(le in t)return i(ae,oe);if(le in n)return i(void 0,ae)}const ie={url:$,method:$,data:$,baseURL:V,transformRequest:V,transformResponse:V,paramsSerializer:V,timeout:V,timeoutMessage:V,withCredentials:V,withXSRFToken:V,adapter:V,responseType:V,xsrfCookieName:V,xsrfHeaderName:V,onUploadProgress:V,onDownloadProgress:V,decompress:V,maxContentLength:V,maxBodyLength:V,beforeRedirect:V,transport:V,httpAgent:V,httpsAgent:V,cancelToken:V,socketPath:V,responseEncoding:V,validateStatus:re,headers:(ae,oe,le)=>g(headersToObject(ae),headersToObject(oe),le,!0)};return utils$1.forEach(Object.keys({...n,...t}),function(oe){const le=ie[oe]||g,ue=le(n[oe],t[oe],oe);utils$1.isUndefined(ue)&&le!==re||(r[oe]=ue)}),r}const resolveConfig=n=>{const t=mergeConfig({},n);let{data:r,withXSRFToken:i,xsrfHeaderName:g,xsrfCookieName:$,headers:V,auth:re}=t;if(t.headers=V=AxiosHeaders$1.from(V),t.url=buildURL(buildFullPath(t.baseURL,t.url,t.allowAbsoluteUrls),n.params,n.paramsSerializer),re&&V.set("Authorization","Basic "+btoa((re.username||"")+":"+(re.password?unescape(encodeURIComponent(re.password)):""))),utils$1.isFormData(r)){if(platform$1.hasStandardBrowserEnv||platform$1.hasStandardBrowserWebWorkerEnv)V.setContentType(void 0);else if(utils$1.isFunction(r.getHeaders)){const ie=r.getHeaders(),ae=["content-type","content-length"];Object.entries(ie).forEach(([oe,le])=>{ae.includes(oe.toLowerCase())&&V.set(oe,le)})}}if(platform$1.hasStandardBrowserEnv&&(i&&utils$1.isFunction(i)&&(i=i(t)),i||i!==!1&&isURLSameOrigin(t.url))){const ie=g&&$&&cookies.read($);ie&&V.set(g,ie)}return t},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(n){return new Promise(function(r,i){const g=resolveConfig(n);let $=g.data;const V=AxiosHeaders$1.from(g.headers).normalize();let{responseType:re,onUploadProgress:ie,onDownloadProgress:ae}=g,oe,le,ue,de,he;function pe(){de&&de(),he&&he(),g.cancelToken&&g.cancelToken.unsubscribe(oe),g.signal&&g.signal.removeEventListener("abort",oe)}let _e=new XMLHttpRequest;_e.open(g.method.toUpperCase(),g.url,!0),_e.timeout=g.timeout;function Ce(){if(!_e)return;const Ie=AxiosHeaders$1.from("getAllResponseHeaders"in _e&&_e.getAllResponseHeaders()),Oe={data:!re||re==="text"||re==="json"?_e.responseText:_e.response,status:_e.status,statusText:_e.statusText,headers:Ie,config:n,request:_e};settle(function(Ve){r(Ve),pe()},function(Ve){i(Ve),pe()},Oe),_e=null}"onloadend"in _e?_e.onloadend=Ce:_e.onreadystatechange=function(){!_e||_e.readyState!==4||_e.status===0&&!(_e.responseURL&&_e.responseURL.indexOf("file:")===0)||setTimeout(Ce)},_e.onabort=function(){_e&&(i(new AxiosError("Request aborted",AxiosError.ECONNABORTED,n,_e)),_e=null)},_e.onerror=function(Ne){const Oe=Ne&&Ne.message?Ne.message:"Network Error",$e=new AxiosError(Oe,AxiosError.ERR_NETWORK,n,_e);$e.event=Ne||null,i($e),_e=null},_e.ontimeout=function(){let Ne=g.timeout?"timeout of "+g.timeout+"ms exceeded":"timeout exceeded";const Oe=g.transitional||transitionalDefaults;g.timeoutErrorMessage&&(Ne=g.timeoutErrorMessage),i(new AxiosError(Ne,Oe.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,n,_e)),_e=null},$===void 0&&V.setContentType(null),"setRequestHeader"in _e&&utils$1.forEach(V.toJSON(),function(Ne,Oe){_e.setRequestHeader(Oe,Ne)}),utils$1.isUndefined(g.withCredentials)||(_e.withCredentials=!!g.withCredentials),re&&re!=="json"&&(_e.responseType=g.responseType),ae&&([ue,he]=progressEventReducer(ae,!0),_e.addEventListener("progress",ue)),ie&&_e.upload&&([le,de]=progressEventReducer(ie),_e.upload.addEventListener("progress",le),_e.upload.addEventListener("loadend",de)),(g.cancelToken||g.signal)&&(oe=Ie=>{_e&&(i(!Ie||Ie.type?new CanceledError(null,n,_e):Ie),_e.abort(),_e=null)},g.cancelToken&&g.cancelToken.subscribe(oe),g.signal&&(g.signal.aborted?oe():g.signal.addEventListener("abort",oe)));const xe=parseProtocol(g.url);if(xe&&platform$1.protocols.indexOf(xe)===-1){i(new AxiosError("Unsupported protocol "+xe+":",AxiosError.ERR_BAD_REQUEST,n));return}_e.send($||null)})},composeSignals=(n,t)=>{const{length:r}=n=n?n.filter(Boolean):[];if(t||r){let i=new AbortController,g;const $=function(ae){if(!g){g=!0,re();const oe=ae instanceof Error?ae:this.reason;i.abort(oe instanceof AxiosError?oe:new CanceledError(oe instanceof Error?oe.message:oe))}};let V=t&&setTimeout(()=>{V=null,$(new AxiosError(`timeout ${t} of ms exceeded`,AxiosError.ETIMEDOUT))},t);const re=()=>{n&&(V&&clearTimeout(V),V=null,n.forEach(ae=>{ae.unsubscribe?ae.unsubscribe($):ae.removeEventListener("abort",$)}),n=null)};n.forEach(ae=>ae.addEventListener("abort",$));const{signal:ie}=i;return ie.unsubscribe=()=>utils$1.asap(re),ie}},composeSignals$1=composeSignals,streamChunk=function*(n,t){let r=n.byteLength;if(!t||r{const g=readBytes(n,t);let $=0,V,re=ie=>{V||(V=!0,i&&i(ie))};return new ReadableStream({async pull(ie){try{const{done:ae,value:oe}=await g.next();if(ae){re(),ie.close();return}let le=oe.byteLength;if(r){let ue=$+=le;r(ue)}ie.enqueue(new Uint8Array(oe))}catch(ae){throw re(ae),ae}},cancel(ie){return re(ie),g.return()}},{highWaterMark:2})},DEFAULT_CHUNK_SIZE=64*1024,{isFunction:isFunction$1}=utils$1,globalFetchAPI=(({Request:n,Response:t})=>({Request:n,Response:t}))(utils$1.global),{ReadableStream:ReadableStream$1,TextEncoder}=utils$1.global,test=(n,...t)=>{try{return!!n(...t)}catch{return!1}},factory=n=>{n=utils$1.merge.call({skipUndefined:!0},globalFetchAPI,n);const{fetch:t,Request:r,Response:i}=n,g=t?isFunction$1(t):typeof fetch=="function",$=isFunction$1(r),V=isFunction$1(i);if(!g)return!1;const re=g&&isFunction$1(ReadableStream$1),ie=g&&(typeof TextEncoder=="function"?(he=>pe=>he.encode(pe))(new TextEncoder):async he=>new Uint8Array(await new r(he).arrayBuffer())),ae=$&&re&&test(()=>{let he=!1;const pe=new r(platform$1.origin,{body:new ReadableStream$1,method:"POST",get duplex(){return he=!0,"half"}}).headers.has("Content-Type");return he&&!pe}),oe=V&&re&&test(()=>utils$1.isReadableStream(new i("").body)),le={stream:oe&&(he=>he.body)};g&&["text","arrayBuffer","blob","formData","stream"].forEach(he=>{!le[he]&&(le[he]=(pe,_e)=>{let Ce=pe&&pe[he];if(Ce)return Ce.call(pe);throw new AxiosError(`Response type '${he}' is not supported`,AxiosError.ERR_NOT_SUPPORT,_e)})});const ue=async he=>{if(he==null)return 0;if(utils$1.isBlob(he))return he.size;if(utils$1.isSpecCompliantForm(he))return(await new r(platform$1.origin,{method:"POST",body:he}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(he)||utils$1.isArrayBuffer(he))return he.byteLength;if(utils$1.isURLSearchParams(he)&&(he=he+""),utils$1.isString(he))return(await ie(he)).byteLength},de=async(he,pe)=>{const _e=utils$1.toFiniteNumber(he.getContentLength());return _e??ue(pe)};return async he=>{let{url:pe,method:_e,data:Ce,signal:xe,cancelToken:Ie,timeout:Ne,onDownloadProgress:Oe,onUploadProgress:$e,responseType:Ve,headers:Ue,withCredentials:Fe="same-origin",fetchOptions:ze}=resolveConfig(he),Pt=t||fetch;Ve=Ve?(Ve+"").toLowerCase():"text";let qe=composeSignals$1([xe,Ie&&Ie.toAbortSignal()],Ne),Et=null;const kt=qe&&qe.unsubscribe&&(()=>{qe.unsubscribe()});let At;try{if($e&&ae&&_e!=="get"&&_e!=="head"&&(At=await de(Ue,Ce))!==0){let _n=new r(pe,{method:"POST",body:Ce,duplex:"half"}),wn;if(utils$1.isFormData(Ce)&&(wn=_n.headers.get("content-type"))&&Ue.setContentType(wn),_n.body){const[bn,Cn]=progressEventDecorator(At,progressEventReducer(asyncDecorator($e)));Ce=trackStream(_n.body,DEFAULT_CHUNK_SIZE,bn,Cn)}}utils$1.isString(Fe)||(Fe=Fe?"include":"omit");const Dt=$&&"credentials"in r.prototype,Lt={...ze,signal:qe,method:_e.toUpperCase(),headers:Ue.normalize().toJSON(),body:Ce,duplex:"half",credentials:Dt?Fe:void 0};Et=$&&new r(pe,Lt);let jt=await($?Pt(Et,ze):Pt(pe,Lt));const hn=oe&&(Ve==="stream"||Ve==="response");if(oe&&(Oe||hn&&kt)){const _n={};["status","statusText","headers"].forEach(Sn=>{_n[Sn]=jt[Sn]});const wn=utils$1.toFiniteNumber(jt.headers.get("content-length")),[bn,Cn]=Oe&&progressEventDecorator(wn,progressEventReducer(asyncDecorator(Oe),!0))||[];jt=new i(trackStream(jt.body,DEFAULT_CHUNK_SIZE,bn,()=>{Cn&&Cn(),kt&&kt()}),_n)}Ve=Ve||"text";let vn=await le[utils$1.findKey(le,Ve)||"text"](jt,he);return!hn&&kt&&kt(),await new Promise((_n,wn)=>{settle(_n,wn,{data:vn,headers:AxiosHeaders$1.from(jt.headers),status:jt.status,statusText:jt.statusText,config:he,request:Et})})}catch(Dt){throw kt&&kt(),Dt&&Dt.name==="TypeError"&&/Load failed|fetch/i.test(Dt.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,he,Et),{cause:Dt.cause||Dt}):AxiosError.from(Dt,Dt&&Dt.code,he,Et)}}},seedCache=new Map,getFetch=n=>{let t=n&&n.env||{};const{fetch:r,Request:i,Response:g}=t,$=[i,g,r];let V=$.length,re=V,ie,ae,oe=seedCache;for(;re--;)ie=$[re],ae=oe.get(ie),ae===void 0&&oe.set(ie,ae=re?new Map:factory(t)),oe=ae;return ae};getFetch();const knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};utils$1.forEach(knownAdapters,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const renderReason=n=>`- ${n}`,isResolvedHandle=n=>utils$1.isFunction(n)||n===null||n===!1;function getAdapter(n,t){n=utils$1.isArray(n)?n:[n];const{length:r}=n;let i,g;const $={};for(let V=0;V`adapter ${ie} `+(ae===!1?"is not supported by the environment":"is not available in the build"));let re=r?V.length>1?`since : `+V.map(renderReason).join(` `):" "+renderReason(V[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+re,"ERR_NOT_SUPPORT")}return g}const adapters={getAdapter,adapters:knownAdapters};function throwIfCancellationRequested(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new CanceledError(null,n)}function dispatchRequest(n){return throwIfCancellationRequested(n),n.headers=AxiosHeaders$1.from(n.headers),n.data=transformData.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(n.adapter||defaults$2.adapter,n)(n).then(function(i){return throwIfCancellationRequested(n),i.data=transformData.call(n,n.transformResponse,i),i.headers=AxiosHeaders$1.from(i.headers),i},function(i){return isCancel(i)||(throwIfCancellationRequested(n),i&&i.response&&(i.response.data=transformData.call(n,n.transformResponse,i.response),i.response.headers=AxiosHeaders$1.from(i.response.headers))),Promise.reject(i)})}const VERSION$1="1.13.2",validators$1={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{validators$1[n]=function(i){return typeof i===n||"a"+(t<1?"n ":" ")+n}});const deprecatedWarnings={};validators$1.transitional=function n(t,r,i){function g($,V){return"[Axios v"+VERSION$1+"] Transitional option '"+$+"'"+V+(i?". "+i:"")}return($,V,re)=>{if(t===!1)throw new AxiosError(g(V," has been removed"+(r?" in "+r:"")),AxiosError.ERR_DEPRECATED);return r&&!deprecatedWarnings[V]&&(deprecatedWarnings[V]=!0,console.warn(g(V," has been deprecated since v"+r+" and will be removed in the near future"))),t?t($,V,re):!0}};validators$1.spelling=function n(t){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function assertOptions(n,t,r){if(typeof n!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let g=i.length;for(;g-- >0;){const $=i[g],V=t[$];if(V){const re=n[$],ie=re===void 0||V(re,$,n);if(ie!==!0)throw new AxiosError("option "+$+" must be "+ie,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new AxiosError("Unknown option "+$,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(t){this.defaults=t||{},this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}async request(t,r){try{return await this._request(t,r)}catch(i){if(i instanceof Error){let g={};Error.captureStackTrace?Error.captureStackTrace(g):g=new Error;const $=g.stack?g.stack.replace(/^.+\n/,""):"";try{i.stack?$&&!String(i.stack).endsWith($.replace(/^.+\n.+\n/,""))&&(i.stack+=` `+$):i.stack=$}catch{}}throw i}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=mergeConfig(this.defaults,r);const{transitional:i,paramsSerializer:g,headers:$}=r;i!==void 0&&validator.assertOptions(i,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),g!=null&&(utils$1.isFunction(g)?r.paramsSerializer={serialize:g}:validator.assertOptions(g,{encode:validators.function,serialize:validators.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),validator.assertOptions(r,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let V=$&&utils$1.merge($.common,$[r.method]);$&&utils$1.forEach(["delete","get","head","post","put","patch","common"],he=>{delete $[he]}),r.headers=AxiosHeaders$1.concat(V,$);const re=[];let ie=!0;this.interceptors.request.forEach(function(pe){typeof pe.runWhen=="function"&&pe.runWhen(r)===!1||(ie=ie&&pe.synchronous,re.unshift(pe.fulfilled,pe.rejected))});const ae=[];this.interceptors.response.forEach(function(pe){ae.push(pe.fulfilled,pe.rejected)});let oe,le=0,ue;if(!ie){const he=[dispatchRequest.bind(this),void 0];for(he.unshift(...re),he.push(...ae),ue=he.length,oe=Promise.resolve(r);le{if(!i._listeners)return;let $=i._listeners.length;for(;$-- >0;)i._listeners[$](g);i._listeners=null}),this.promise.then=g=>{let $;const V=new Promise(re=>{i.subscribe(re),$=re}).then(g);return V.cancel=function(){i.unsubscribe($)},V},t(function($,V,re){i.reason||(i.reason=new CanceledError($,V,re),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=i=>{t.abort(i)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new CancelToken(function(g){t=g}),cancel:t}}}const CancelToken$1=CancelToken;function spread(n){return function(r){return n.apply(null,r)}}function isAxiosError(n){return utils$1.isObject(n)&&n.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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(HttpStatusCode).forEach(([n,t])=>{HttpStatusCode[t]=n});const HttpStatusCode$1=HttpStatusCode;function createInstance(n){const t=new Axios$1(n),r=bind$2(Axios$1.prototype.request,t);return utils$1.extend(r,Axios$1.prototype,t,{allOwnKeys:!0}),utils$1.extend(r,t,null,{allOwnKeys:!0}),r.create=function(g){return createInstance(mergeConfig(n,g))},r}const axios=createInstance(defaults$2);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION$1;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function n(t){return Promise.all(t)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=n=>formDataToJSON(utils$1.isHTMLForm(n)?new FormData(n):n);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios,useDataMapStore=defineStore("dataMap",{state:()=>({dataMap:{},isLoading:!1,lastUpdate:null}),getters:{getDataMap:n=>n.dataMap,isDataLoaded:n=>Object.keys(n.dataMap).length>0,getDataMapById:n=>t=>n.dataMap[t]},actions:{setDataMap(n){this.dataMap=n,this.lastUpdate=new Date},updateDataMapEntry(n,t){this.dataMap[n]=t},clearDataMap(){this.dataMap={},this.lastUpdate=null},setLoading(n){this.isLoading=n}}}),_hoisted_1$l={class:"compact-table-container-wrapper"},_hoisted_2$f={class:"compact-table-container"},_hoisted_3$6={style:{"margin-top":"10px"},class:"compact-button-container"},_sfc_main$r=defineComponent({__name:"vue-table-only",props:{fontFamily:{type:String,default:"黑体"},fontSize:{type:Number,default:12},testColor:{type:String,default:"#ffffff"}},emits:["update:modelValue"],setup(n,{emit:t}){useCssVars(oe=>({v5623380e:$.testColor,v4c40a3d4:$.fontFamily,af771d1a:unref(V)}));let r=useDataMapStore();function i(oe){switch(oe){case 1:return"遥信";case 2:return"遥测";case 3:return"遥控";case 4:return"遥调";default:return"其他"}}const g=reactive([]),$=n;let V=computed({get(){return $.fontSize+"px"},set(oe){console.log("有人修改了fullName",oe)}});function re(oe){switch(oe){case 0:return"不可用/不在线";case 1:return"工作状态";case 2:return"取代/屏蔽";default:return"未知状态"}}function ie(oe){switch(oe){case-2e3:return"未初始化";case 0:return"分/复归";case 1:return"合/告警";case 5:return"联动关";case-10:return"预警/低限联动";case 10:return"报警/高限联动";case-20:return"低限告警";case 20:return"高限告警";default:return"未知区间状态"}}onMounted(()=>{ae()});async function ae(){try{const oe=await axios$1.get("/api/nrt");if(oe.data){r.setDataMap(oe.data);for(const le in oe.data){const ue=oe.data[le];let de=" - ",he=ue.double;if(ue.bType)switch(ue.bType){case 1:case 3:case 4:he>0?de="开":de="关";break;case 2:de=ue.double+ue.node.unit;break;default:de=" - ";break}ue.double!==void 0&&ue.double&&(de=ue.double+ue.node.unit),g.push({id:ue.id.toString(),name:ue.node.name,bType:i(ue.bType),dateValue:de,runState:re(ue.runState),sig:ie(ue.sig)})}}}catch(oe){console.error("请求失败:",oe)}}return(oe,le)=>{const ue=resolveComponent("el-table-column"),de=resolveComponent("el-table"),he=resolveComponent("el-button");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$l,[createBaseVNode("div",_hoisted_2$f,[createVNode$1(de,{data:g,class:"compact-table",size:"small",height:"100%"},{default:withCtx(()=>[createVNode$1(ue,{type:"index",label:"序号"}),createVNode$1(ue,{prop:"id",label:"ID"}),createVNode$1(ue,{prop:"name",label:"名称"}),createVNode$1(ue,{prop:"bType",label:"类型"}),createVNode$1(ue,{prop:"dateValue",label:"遥值"}),createVNode$1(ue,{prop:"runState",label:"运行状态"}),createVNode$1(ue,{prop:"sig",label:"区间类型"})]),_:1},8,["data"])])]),createBaseVNode("div",_hoisted_3$6,[createVNode$1(he,{onClick:ae,size:"small"},{default:withCtx(()=>[...le[0]||(le[0]=[createTextVNode("获取数据",-1)])]),_:1})])],64)}}}),vueTableOnly_vue_vue_type_style_index_0_scoped_f850a34d_lang="",VueTableOnly=_export_sfc$1(_sfc_main$r,[["__scopeId","data-v-f850a34d"]]),_hoisted_1$k={class:"compact-table-container"},_hoisted_2$e={style:{"margin-top":"10px"},class:"compact-button-container"},_sfc_main$q=defineComponent({__name:"vue-table-complex",props:{fontFamily:{type:String,default:"黑体"},fontSize:{type:Number,default:12},testColor:{type:String,default:"#ffffff"}},setup(n){useCssVars(ie=>({a56ac982:unref(re),v0345aa7c:V.testColor,v38e411e2:V.fontFamily}));const t=useDataMapStore(),{dataMap:r}=storeToRefs(t);onMounted(()=>{$()}),onUnmounted(()=>{});function i(){return{config:null,data:[{groupName:"组名1001",temperatureId:10384,humidityId:10385},{groupName:"组名1002",temperatureId:11384,humidityId:11385},{groupName:"组名1003",temperatureId:12384,humidityId:12385},{groupName:"组名1004",temperatureId:13384,humidityId:13385}],headers:null,request:null,status:200,statusText:"test"}}const g=reactive([]);async function $(){i().data.forEach(ae=>{let oe="-";r.value[ae.humidityId]&&(oe=r.value[ae.humidityId].double+r.value[ae.humidityId].node.unit);let le="-";r.value[ae.temperatureId]&&(le=r.value[ae.temperatureId].double+r.value[ae.temperatureId].node.unit),g.push({groupName:ae.groupName,temperatureStr:oe,humidityStr:le})})}const V=n;let re=computed({get(){return V.fontSize+"px"},set(ie){console.log("有人修改了fullName",ie)}});return(ie,ae)=>{const oe=resolveComponent("el-table-column"),le=resolveComponent("el-table"),ue=resolveComponent("el-button");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$k,[createVNode$1(le,{ref:"singleTableRef",data:g,size:"small",style:{width:"100%"}},{default:withCtx(()=>[createVNode$1(oe,{type:"index",label:"序号"}),createVNode$1(oe,{prop:"groupName",label:"名称"}),createVNode$1(oe,{prop:"temperatureStr",label:"温度"}),createVNode$1(oe,{prop:"humidityStr",label:"湿度"})]),_:1},8,["data"])]),createBaseVNode("div",_hoisted_2$e,[createVNode$1(ue,{onClick:$,size:"small"},{default:withCtx(()=>[...ae[0]||(ae[0]=[createTextVNode("获取数据",-1)])]),_:1})])],64)}}}),vueTableComplex_vue_vue_type_style_index_0_scoped_e4bb72f7_lang="",VueTableComplex=_export_sfc$1(_sfc_main$q,[["__scopeId","data-v-e4bb72f7"]]),_hoisted_1$j={class:"main-img"},_hoisted_2$d={key:0,class:"no-img"},_hoisted_3$5={key:1,class:"img-container"},_hoisted_4$4=["src"],_sfc_main$p=defineComponent({__name:"vue-img",props:{definitionItemJson:{type:Object,default:()=>({})},moduleId:{type:String,default:""}},setup(n){const t=ref();useImgStore();const r=n;console.log("父传子1:",r.definitionItemJson.id),watch(()=>r.moduleId,($,V)=>{console.log("moduleId:",$,V),g($)});let i=ref();async function g($){let V={id:$};const re=await modelApi.fileStorage_file_list_post(V);re.data&&(re.data.list.forEach(ie=>{i.value=formatFilePath(BASE_URL,ie.filePath)}),console.log("imgUrl:",i))}return emitter.on("imgUpload:"+r.definitionItemJson.id,$=>{console.log("imgUpload:",$),t.value=$}),onUnmounted(()=>{console.log("组件卸载")}),onMounted(()=>{g(r.moduleId)}),($,V)=>{const re=resolveComponent("el-icon");return openBlock(),createElementBlock("div",_hoisted_1$j,[unref(i)?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_2$d,[createVNode$1(re,{size:200,class:"no-img-icon"},{default:withCtx(()=>[createVNode$1(unref(picture_default))]),_:1})])),unref(i)?(openBlock(),createElementBlock("div",_hoisted_3$5,[unref(i)?(openBlock(),createElementBlock("img",{key:0,draggable:"false",class:"display-img",src:unref(i)},null,8,_hoisted_4$4)):createCommentVNode("",!0)])):createCommentVNode("",!0)])}}}),vueImg_vue_vue_type_style_index_0_scoped_64175df9_lang="",VueImg=_export_sfc$1(_sfc_main$p,[["__scopeId","data-v-64175df9"]]),_hoisted_1$i={key:0,class:"cardBody"},_hoisted_2$c={key:1,class:"cardBody"},_hoisted_3$4={key:2,class:"cardBody"},_hoisted_4$3={class:"dialog-footer"},_sfc_main$o=defineComponent({__name:"vue-run-info",props:{fontFamily:{type:String,default:"Segoe UI"},fontSize:{type:Number,default:14},testColor:{type:String,default:"#000000"},testBool:{type:Boolean,default:!0},dataSource:{type:String,default:"--"}},setup(n){useCssVars(ae=>({e405c75a:r.testColor,c57b5b1e:r.fontFamily,v49457b4e:unref(ie)}));let t=ref(!1);const r=n,i=[{content:"灭火允许",timestamp:"2018-04-15"},{content:"手动启动",timestamp:"2018-04-16"},{content:"紧急停止",timestamp:"2018-04-17"},{content:"手动启动",timestamp:"2018-04-18"},{content:"灭火允许",timestamp:"2018-04-15"},{content:"手动启动",timestamp:"2018-04-16"},{content:"紧急停止",timestamp:"2018-04-17"},{content:"手动启动",timestamp:"2018-04-18"}];onMounted(()=>{re(r.dataSource)}),watch(()=>r.dataSource,(ae,oe)=>{re(ae)});let g=ref(!1),$=ref(!1),V=ref(!1);function re(ae){ae==="globalOverview"?(g.value=!0,$.value=!1,V.value=!1):ae==="fireExtinguishing"?(g.value=!1,$.value=!0,V.value=!1):ae==="firePolice"&&(g.value=!1,$.value=!1,V.value=!0)}let ie=computed({get(){return r.fontSize+"px"},set(ae){console.log("有人修改了fullName",ae)}});return(ae,oe)=>{const le=resolveComponent("el-col"),ue=resolveComponent("el-tag"),de=resolveComponent("el-row"),he=resolveComponent("el-divider"),pe=resolveComponent("el-text"),_e=resolveComponent("el-popover"),Ce=resolveComponent("el-button"),xe=resolveComponent("el-card"),Ie=resolveComponent("el-timeline-item"),Ne=resolveComponent("el-timeline"),Oe=resolveComponent("el-scrollbar"),$e=resolveComponent("el-dialog");return openBlock(),createElementBlock(Fragment,null,[createVNode$1(xe,{class:"card"},{default:withCtx(()=>[oe[42]||(oe[42]=createBaseVNode("h2",{class:"cardHead"},"运行信息",-1)),unref(g)?(openBlock(),createElementBlock("div",_hoisted_1$i,[createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[3]||(oe[3]=[createTextVNode(" 设备状态: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[4]||(oe[4]=[createTextVNode("正常/中断",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[5]||(oe[5]=[createTextVNode(" 温度: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[6]||(oe[6]=[createTextVNode("23℃",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[7]||(oe[7]=[createTextVNode(" 湿度: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[8]||(oe[8]=[createTextVNode("45%RH",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[9]||(oe[9]=[createTextVNode(" 风力: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[10]||(oe[10]=[createTextVNode("三级(5m/s)",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[11]||(oe[11]=[createTextVNode(" 风向: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[12]||(oe[12]=[createTextVNode("东风",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[13]||(oe[13]=[createTextVNode(" 雨量: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[14]||(oe[14]=[createTextVNode("20mm",-1)])]),_:1})]),_:1})]),_:1})])):createCommentVNode("",!0),unref($)?(openBlock(),createElementBlock("div",_hoisted_2$c,[createVNode$1(de,{style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:24},{default:withCtx(()=>[...oe[15]||(oe[15]=[createTextVNode("火灾报警系统",-1)])]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:1},{default:withCtx(()=>[oe[17]||(oe[17]=createTextVNode("设备状态 ",-1)),createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[16]||(oe[16]=[createTextVNode("正常/故障",-1)])]),_:1})]),_:1}),createVNode$1(le,{span:8,offset:2},{default:withCtx(()=>[oe[19]||(oe[19]=createTextVNode("通信状态 ",-1)),createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[18]||(oe[18]=[createTextVNode("正常/中断",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:22,offset:1},{default:withCtx(()=>[...oe[20]||(oe[20]=[createTextVNode("火灾总告警 ",-1),createBaseVNode("div",{class:"blue-circle redBordered"},null,-1)])]),_:1})]),_:1}),createVNode$1(he,{style:{"margin-top":"10px","margin-bottom":"10px"}}),createVNode$1(de,{style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:24},{default:withCtx(()=>[...oe[21]||(oe[21]=[createTextVNode("2号主变灭火系统(排油注氮灭火)",-1)])]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:7,offset:1},{default:withCtx(()=>[oe[23]||(oe[23]=createTextVNode(" 启动方式 ",-1)),createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[22]||(oe[22]=[createTextVNode("自动/手动",-1)])]),_:1})]),_:1}),createVNode$1(le,{span:7,offset:1},{default:withCtx(()=>[oe[25]||(oe[25]=createTextVNode("设备状态 ",-1)),createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[24]||(oe[24]=[createTextVNode("正常/故障",-1)])]),_:1})]),_:1}),createVNode$1(le,{span:7,offset:1},{default:withCtx(()=>[oe[27]||(oe[27]=createTextVNode("通信状态 ",-1)),createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[26]||(oe[26]=[createTextVNode("正常/中断",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:7,offset:1},{default:withCtx(()=>[...oe[28]||(oe[28]=[createTextVNode("火灾总告警 ",-1),createBaseVNode("div",{class:"blue-circle redBordered"},null,-1)])]),_:1}),createVNode$1(le,{span:7,offset:1},{default:withCtx(()=>[createVNode$1(_e,{placement:"top",width:170,trigger:"hover",content:"查看灭火允许满足条件"},{reference:withCtx(()=>[createVNode$1(pe,{class:"mx-1",type:"primary"},{default:withCtx(()=>[...oe[29]||(oe[29]=[createTextVNode("灭火允许",-1)])]),_:1})]),_:1}),oe[30]||(oe[30]=createBaseVNode("div",{class:"blue-circle greenBordered"},null,-1))]),_:1}),createVNode$1(le,{span:7,offset:1,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(pe,{class:"mx-1",type:"primary",onClick:oe[0]||(oe[0]=Ve=>isRef(t)?t.value=!0:t=!0)},{default:withCtx(()=>[...oe[31]||(oe[31]=[createTextVNode("灭火动作",-1)])]),_:1}),oe[32]||(oe[32]=createBaseVNode("div",{class:"blue-circle redBordered"},null,-1))]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center","margin-top":"8px"}},{default:withCtx(()=>[createVNode$1(le,{span:5,offset:1},{default:withCtx(()=>[...oe[33]||(oe[33]=[createTextVNode("灭火手动操作",-1)])]),_:1}),createVNode$1(le,{span:12},{default:withCtx(()=>[createVNode$1(Ce,{type:"primary",size:"small"},{default:withCtx(()=>[...oe[34]||(oe[34]=[createTextVNode("手动启动",-1)])]),_:1}),createVNode$1(Ce,{type:"primary",size:"small"},{default:withCtx(()=>[...oe[35]||(oe[35]=[createTextVNode("紧急停止",-1)])]),_:1})]),_:1})]),_:1})])):createCommentVNode("",!0),unref(V)?(openBlock(),createElementBlock("div",_hoisted_3$4,[createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[36]||(oe[36]=[createTextVNode(" 设备状态: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[37]||(oe[37]=[createTextVNode("正常/故障",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[38]||(oe[38]=[createTextVNode(" 通信状态: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[39]||(oe[39]=[createTextVNode("正常/中断",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[40]||(oe[40]=[createTextVNode(" 电源状态:",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[41]||(oe[41]=[createTextVNode("主供电源工作",-1)])]),_:1})]),_:1})]),_:1})])):createCommentVNode("",!0)]),_:1}),createVNode$1($e,{modelValue:unref(t),"onUpdate:modelValue":oe[2]||(oe[2]=Ve=>isRef(t)?t.value=Ve:t=Ve),title:"灭火动作流程",style:{height:"60vh"},width:"45%","append-to-body":!0},{footer:withCtx(()=>[createBaseVNode("div",_hoisted_4$3,[createVNode$1(Ce,{onClick:oe[1]||(oe[1]=Ve=>isRef(t)?t.value=!1:t=!1)},{default:withCtx(()=>[...oe[43]||(oe[43]=[createTextVNode("退出",-1)])]),_:1})])]),default:withCtx(()=>[createVNode$1(Oe,{height:"42vh"},{default:withCtx(()=>[createVNode$1(Ne,{mode:"alternate-reverse"},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(i,(Ve,Ue)=>createVNode$1(Ie,{key:Ue,center:"",timestamp:Ve.timestamp},{default:withCtx(()=>[createTextVNode(toDisplayString(Ve.content),1)]),_:2},1032,["timestamp"])),64))]),_:1})]),_:1})]),_:1},8,["modelValue"])],64)}}}),vueRunInfo_vue_vue_type_style_index_0_scoped_70b8fe40_lang="",VueRunInfo=_export_sfc$1(_sfc_main$o,[["__scopeId","data-v-70b8fe40"]]),_hoisted_1$h={class:"cardHead"},_sfc_main$n=defineComponent({__name:"vue-multi-type-info",props:{fontFamily:{type:String,default:"Segoe UI"},fontSize:{type:Number,default:14},testColor:{type:String,default:"#000000"},headline:{type:String,default:"自定义标题"}},setup(n){useCssVars(i=>({v61177bb2:t.testColor,eaa031c6:t.fontFamily,v53b045fa:unref(r)}));const t=n;console.log();let r=computed({get(){return t.fontSize+"px"},set(i){console.log("有人修改了fullName",i)}});return(i,g)=>{const $=resolveComponent("el-card");return openBlock(),createBlock($,{class:"card"},{header:withCtx(()=>[createBaseVNode("h2",_hoisted_1$h,toDisplayString(t.headline),1)]),default:withCtx(()=>[g[0]||(g[0]=createBaseVNode("div",{class:"cardBody"},[createBaseVNode("p",null,"2025-04-25 14:22:17 2号主变油色谱总烃超标"),createBaseVNode("p",null,"2018-03-21 15:28:11 220kV GIS室O2气体含量低报警(2号传感器O2浓度15%)"),createBaseVNode("p",null,"2018-04-25 14:22:17 2号主变油色谱总烃超标"),createBaseVNode("p",null,"2018-03-21 15:28:11 220kV GIS室O2气体含量低报警(2号传感器O2浓度15%)"),createBaseVNode("p",null,"2018-04-25 14:22:17 2号主变油色谱总烃超标"),createBaseVNode("p",null,"2018-03-21 15:28:11 220kV GIS室O2气体含量低报警(2号传感器O2浓度15%)")],-1))]),_:1})}}}),vueMultiTypeInfo_vue_vue_type_style_index_0_scoped_66cdf737_lang="",VueMultiTypeInfo=_export_sfc$1(_sfc_main$n,[["__scopeId","data-v-66cdf737"]]),_hoisted_1$g={class:"cell-item"},_hoisted_2$b={class:"cell-item"},_hoisted_3$3={class:"cell-item"},_hoisted_4$2={class:"cell-item"},_sfc_main$m=defineComponent({__name:"vue-signal-info",setup(n){return ref("default"),(t,r)=>{const i=resolveComponent("el-descriptions-item"),g=resolveComponent("el-icon"),$=resolveComponent("el-tag"),V=resolveComponent("el-descriptions");return openBlock(),createBlock(V,{class:"margin-top",column:1,size:"small",border:""},{default:withCtx(()=>[createVNode$1(i,{align:"center"},{label:withCtx(()=>[...r[0]||(r[0]=[createTextVNode(" 描述 ",-1)])]),default:withCtx(()=>[r[1]||(r[1]=createTextVNode(" 值 ",-1))]),_:1}),createVNode$1(i,{class:"tag-info"},{label:withCtx(()=>[createBaseVNode("div",_hoisted_1$g,[createVNode$1(g,{class:"iconStyle"},{default:withCtx(()=>[createVNode$1(unref(tickets_default))]),_:1}),r[2]||(r[2]=createTextVNode(" 灯光状态 ",-1))])]),default:withCtx(()=>[createVNode$1($,{size:"default",type:"success"},{default:withCtx(()=>[...r[3]||(r[3]=[createTextVNode("开启",-1)])]),_:1})]),_:1}),createVNode$1(i,null,{label:withCtx(()=>[createBaseVNode("div",_hoisted_2$b,[createVNode$1(g,{class:"iconStyle"},{default:withCtx(()=>[createVNode$1(unref(mostly_cloudy_default))]),_:1}),r[4]||(r[4]=createTextVNode(" 湿度 ",-1))])]),default:withCtx(()=>[r[5]||(r[5]=createTextVNode(" 80% ",-1))]),_:1}),createVNode$1(i,null,{label:withCtx(()=>[createBaseVNode("div",_hoisted_3$3,[createVNode$1(g,{class:"iconStyle"},{default:withCtx(()=>[createVNode$1(unref(sunrise_default))]),_:1}),r[6]||(r[6]=createTextVNode(" 温度 ",-1))])]),default:withCtx(()=>[r[7]||(r[7]=createTextVNode(" 36℃% ",-1))]),_:1}),createVNode$1(i,null,{label:withCtx(()=>[createBaseVNode("div",_hoisted_4$2,[createVNode$1(g,{class:"iconStyle"},{default:withCtx(()=>[createVNode$1(unref(house_default))]),_:1}),r[8]||(r[8]=createTextVNode(" 节点ID ",-1))])]),default:withCtx(()=>[r[9]||(r[9]=createTextVNode(" 2100210 ",-1))]),_:1})]),_:1})}}}),vueSignalInfo_vue_vue_type_style_index_0_scoped_0b8b6720_lang="",VueSignalInfo=_export_sfc$1(_sfc_main$m,[["__scopeId","data-v-0b8b6720"]]),useNodeByModelsStore=defineStore("nodeByModels",{state(){return{nodeMap:new Map}},actions:{saveOrUpdate(n,t){if(this.nodeMap.has(n)){const r=this.nodeMap.get(n);r.includes(t)||r.push(t)}else this.nodeMap.set(n,[t])},change(n,t,r){this.delete(t,r),this.saveOrUpdate(n,r)},delete(n,t){if(!this.nodeMap.has(n))return;const r=this.nodeMap.get(n);r&&r.includes(t)&&r.splice(r.indexOf(t),1),(r&&r.length===0||!r)&&this.nodeMap.delete(n)}}}),_hoisted_1$f={style:{display:"flex",gap:"10px","align-items":"center"}},_hoisted_2$a={class:"demo-rich-conent",style:{display:"flex",gap:"20px","flex-direction":"column"}},_sfc_main$l=defineComponent({__name:"vue-signal-gaudy",props:{moduleType:{type:String,default:"--"},moduleId:{type:String,default:"--"},definitionItemJson:{type:Object,default:()=>({})},location:{type:String,default:"bottom"}},setup(n){const t=useNodeByModelsStore();onMounted(()=>{ie(),oe()}),onUnmounted(()=>{ae(),console.log("组件卸载"),emitter.off(r.definitionItemJson.id)});const r=n;let i=ref(),g=ref(!1),$=ref(),V=ref();function re(le){const ue=window.globalData;return!ue||le==null||le==""||r.moduleId=="--"?(console.warn("globalData 未初始化"),null):ue instanceof Map?ue.get(le):ue[le]}function ie(){let le=re(r.moduleId);r.moduleId!==""&&r.moduleId!==void 0&&r.moduleId!=="--"&&le&&le&&(i.value=le.node.name,g.value=le.double==1,$.value=le.alarm,V.value=le.alarmable)}emitter.on(r.definitionItemJson.id,le=>{console.log("触发事件",le),ie()}),watch(()=>r.moduleId,(le,ue)=>{ie(),t.change(le,ue,r.definitionItemJson.id)});function ae(){r.moduleId==""||r.moduleId==null||r.moduleId=="--"||t.delete(r.moduleId,r.definitionItemJson.id)}function oe(){r.moduleId==""||r.moduleId==null||r.moduleId=="--"||t.saveOrUpdate(r.moduleId,r.definitionItemJson.id)}return(le,ue)=>{const de=resolveComponent("el-text"),he=resolveComponent("el-tag"),pe=resolveComponent("el-col"),_e=resolveComponent("el-row"),Ce=resolveComponent("el-icon"),xe=resolveComponent("el-statistic"),Ie=resolveComponent("el-popover");return openBlock(),createElementBlock(Fragment,null,[n.location==="top"?(openBlock(),createBlock(_e,{key:0},{default:withCtx(()=>[createVNode$1(pe,{span:24,class:"flex-center"},{default:withCtx(()=>[createVNode$1(he,{type:"primary",size:"small",style:{opacity:"0.9"}},{default:withCtx(()=>[createVNode$1(de,{type:"primary",style:{"max-width":"65px"},size:"small",truncated:""},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(i)),1)]),_:1})]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0),createVNode$1(_e,{justify:"center"},{default:withCtx(()=>[n.location==="left"?(openBlock(),createBlock(pe,{key:0,span:12,class:"flex-center"},{default:withCtx(()=>[createVNode$1(he,{type:"primary",size:"small",style:{opacity:"0.9"}},{default:withCtx(()=>[createVNode$1(de,{type:"primary",style:{"max-width":"65px"},size:"small",truncated:""},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(i)),1)]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0),createVNode$1(pe,{span:12,class:"flex-center"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$f,[createVNode$1(Ie,{width:300,disabled:!1,"popper-style":"box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;"},{reference:withCtx(()=>[createVNode$1(Ce,{class:normalizeClass(["iconStyle",unref($)?"blink-animation":""]),size:18,style:normalizeStyle$1({color:unref(g)?"rgb(166, 169, 173)":"rgb(247, 137, 137)"})},{default:withCtx(()=>[createVNode$1(unref(warning_filled_default))]),_:1},8,["class","style"])]),default:withCtx(()=>[createBaseVNode("div",_hoisted_2$a,[createVNode$1(Ce,{class:"iconStyle",size:60,style:normalizeStyle$1({color:unref(g)?"rgb(146, 252, 40)":"rgb(252, 40, 40)"})},{default:withCtx(()=>[createVNode$1(unref(warning_filled_default))]),_:1},8,["style"]),createVNode$1(_e,{gutter:6},{default:withCtx(()=>[createVNode$1(pe,{span:12,xs:24,sm:12,md:6,class:"elColInfo"},{default:withCtx(()=>[createVNode$1(xe,{title:"绑定ID",value:null},{suffix:withCtx(()=>[createVNode$1(he,{size:"default",type:"primary"},{default:withCtx(()=>[createTextVNode(toDisplayString(n.moduleId),1)]),_:1})]),_:1})]),_:1}),createVNode$1(pe,{span:12,xs:24,sm:12,md:12,class:"elColInfo"},{default:withCtx(()=>[createVNode$1(xe,{title:"节点名称",value:null},{suffix:withCtx(()=>[createVNode$1(he,{size:"default",type:"success"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(i)),1)]),_:1})]),_:1})]),_:1}),createVNode$1(pe,{span:12,xs:24,sm:12,md:6,class:"elColInfo"},{default:withCtx(()=>[createVNode$1(xe,{title:"类型",value:null},{suffix:withCtx(()=>[createVNode$1(he,{size:"default",type:"primary"},{default:withCtx(()=>[...ue[0]||(ue[0]=[createTextVNode("遥信",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),createVNode$1(_e,{gutter:6},{default:withCtx(()=>[createVNode$1(pe,{span:12,xs:24,sm:12,md:6,class:"elColInfo"},{default:withCtx(()=>[createVNode$1(xe,{title:"开关情况",value:null},{suffix:withCtx(()=>[createVNode$1(he,{size:"default",type:"primary"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(g)),1)]),_:1})]),_:1})]),_:1}),createVNode$1(pe,{span:12,xs:24,sm:12,md:12,class:"elColInfo"},{default:withCtx(()=>[createVNode$1(xe,{title:"告警",value:null},{suffix:withCtx(()=>[createVNode$1(he,{size:"default",type:"primary"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref($)),1)]),_:1})]),_:1})]),_:1}),createVNode$1(pe,{span:12,xs:24,sm:12,md:6,class:"elColInfo"},{default:withCtx(()=>[createVNode$1(xe,{title:"是否可告警",value:null},{suffix:withCtx(()=>[createVNode$1(he,{size:"default",type:"primary"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(V)),1)]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1})])]),_:1}),n.location==="right"?(openBlock(),createBlock(pe,{key:1,span:12,class:"flex-center"},{default:withCtx(()=>[createVNode$1(he,{type:"primary",size:"small",style:{opacity:"0.9"}},{default:withCtx(()=>[createVNode$1(de,{type:"primary",style:{"max-width":"65px"},size:"small",truncated:""},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(i)),1)]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0)]),_:1}),n.location==="bottom"?(openBlock(),createBlock(_e,{key:1},{default:withCtx(()=>[createVNode$1(pe,{span:24,class:"flex-center"},{default:withCtx(()=>[createVNode$1(he,{type:"primary",size:"small",style:{opacity:"0.9"}},{default:withCtx(()=>[createVNode$1(de,{type:"primary",style:{"max-width":"65px"},size:"small",truncated:""},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(i)),1)]),_:1})]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0)],64)}}}),vueSignalGaudy_vue_vue_type_style_index_0_scoped_27472338_lang="",vueSignalGaudy=_export_sfc$1(_sfc_main$l,[["__scopeId","data-v-27472338"]]),_hoisted_1$e={style:{display:"flex","align-items":"center"}},_hoisted_2$9={class:"demo-rich-conent",style:{display:"flex",gap:"2px","flex-direction":"column"}},_sfc_main$k=defineComponent({__name:"vue-switch-info",setup(n){const t=ref(!0);return(r,i)=>{const g=resolveComponent("el-switch"),$=resolveComponent("el-statistic"),V=resolveComponent("el-col"),re=resolveComponent("el-tag"),ie=resolveComponent("el-row"),ae=resolveComponent("el-popover");return openBlock(),createElementBlock("div",_hoisted_1$e,[createVNode$1(ae,{width:300,"popper-style":"box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;"},{reference:withCtx(()=>[createVNode$1(g,{modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=oe=>t.value=oe),size:"large","active-text":"开","inactive-text":"关"},null,8,["modelValue"])]),default:withCtx(()=>[createBaseVNode("div",_hoisted_2$9,[createVNode$1(g,{modelValue:t.value,"onUpdate:modelValue":i[1]||(i[1]=oe=>t.value=oe),size:"large",disabled:""},null,8,["modelValue"]),createVNode$1(ie,{gutter:6},{default:withCtx(()=>[createVNode$1(V,{span:12,xs:24,sm:12,md:8,class:"elColInfo"},{default:withCtx(()=>[createVNode$1($,{title:"绑定ID",value:"1100101"})]),_:1}),createVNode$1(V,{span:12,xs:24,sm:12,md:8,class:"elColInfo"},{default:withCtx(()=>[createVNode$1($,{title:"状态",value:null},{suffix:withCtx(()=>[createVNode$1(re,{size:"default",type:"success"},{default:withCtx(()=>[...i[2]||(i[2]=[createTextVNode("开启",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(V,{span:12,xs:24,sm:12,md:8,class:"elColInfo"},{default:withCtx(()=>[createVNode$1($,{title:"类型",value:null},{suffix:withCtx(()=>[createVNode$1(re,{size:"default",type:"primary"},{default:withCtx(()=>[...i[3]||(i[3]=[createTextVNode("遥控",-1)])]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1})])}}}),vueSwitchInfo_vue_vue_type_style_index_0_scoped_26d71982_lang="",VueSwitchInfo=_export_sfc$1(_sfc_main$k,[["__scopeId","data-v-26d71982"]]),_hoisted_1$d={style:{display:"flex",gap:"10px","align-items":"center"}},_hoisted_2$8={class:"demo-rich-conent",style:{display:"flex",gap:"2px","flex-direction":"column"}},_hoisted_3$2={class:"demo-progress"},_sfc_main$j=defineComponent({__name:"vue-num-info",props:{moduleType:{type:String,default:"--"},moduleId:{type:String,default:"--"},definitionItemJson:{type:Object,default:()=>({})},location:{type:String,default:"bottom"}},setup(n){const t=useNodeByModelsStore();onMounted(()=>{ae(),i()}),onUnmounted(()=>{console.log("组件卸载"),g(),emitter.off(r.definitionItemJson.id)});const r=n;console.log("itemjson:",r.definitionItemJson.id);function i(){r.moduleId==""||r.moduleId==null||r.moduleId=="--"||t.saveOrUpdate(r.moduleId,r.definitionItemJson.id)}function g(){r.moduleId==""||r.moduleId==null||r.moduleId=="--"||t.delete(r.moduleId,r.definitionItemJson.id)}watch(()=>r.moduleId,(de,he)=>{ae(),t.change(de,he,r.definitionItemJson.id)}),emitter.on(r.definitionItemJson.id,de=>{console.log("触发事件",de),ae()});let $=ref(),V=ref(),re=ref();function ie(de){const he=window.globalData;return!he||de==null||de==""||r.moduleId=="--"?(console.warn("globalData 未初始化"),null):he instanceof Map?he.get(de):he[de]}function ae(){let de=ie(r.moduleId);r.moduleId!==""&&r.moduleId!==void 0&&r.moduleId!=="--"&&de&&de&&(V.value=de.node.name,re.value=de.double,$.value=de.node.unit)}let oe=computed({get(){return re.value==null&&$.value==null?"--":re.value+""+$.value},set(){}});const le=()=>re.value==null&&$.value==null?"--":re.value+""+$.value,ue=[{color:"#f56c6c",percentage:20},{color:"#e6a23c",percentage:40},{color:"#5cb87a",percentage:60},{color:"#1989fa",percentage:80},{color:"#6f7ad3",percentage:100}];return(de,he)=>{const pe=resolveComponent("el-text"),_e=resolveComponent("el-tag"),Ce=resolveComponent("el-col"),xe=resolveComponent("el-row"),Ie=resolveComponent("el-progress"),Ne=resolveComponent("el-statistic"),Oe=resolveComponent("el-popover");return openBlock(),createElementBlock(Fragment,null,[n.location==="top"?(openBlock(),createBlock(xe,{key:0},{default:withCtx(()=>[createVNode$1(Ce,{span:24,class:"flex-center"},{default:withCtx(()=>[createVNode$1(_e,{type:"primary",size:"small",style:{opacity:"0.9"}},{default:withCtx(()=>[createVNode$1(pe,{type:"primary",style:{"max-width":"65px"},size:"small",truncated:""},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(V)),1)]),_:1})]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0),createVNode$1(xe,{justify:"center"},{default:withCtx(()=>[n.location==="left"?(openBlock(),createBlock(Ce,{key:0,span:12,class:"flex-center"},{default:withCtx(()=>[createVNode$1(_e,{type:"primary",size:"small",style:{opacity:"0.9"}},{default:withCtx(()=>[createVNode$1(pe,{type:"primary",style:{"max-width":"65px"},size:"small",truncated:""},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(V)),1)]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0),createVNode$1(Ce,{span:12,class:"flex-center"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$d,[createVNode$1(Oe,{width:300,disabled:!0,"popper-style":"box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;"},{reference:withCtx(()=>[createVNode$1(pe,{style:{"font-weight":"bold","text-align":"center",display:"block"}},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(oe)),1)]),_:1})]),default:withCtx(()=>[createBaseVNode("div",_hoisted_2$8,[createBaseVNode("div",_hoisted_3$2,[createVNode$1(Ie,{type:"dashboard",width:100,percentage:unref(re),color:ue,format:le},null,8,["percentage"])]),createVNode$1(xe,{gutter:6},{default:withCtx(()=>[createVNode$1(Ce,{span:12,xs:24,sm:12,md:6,class:"elColInfo"},{default:withCtx(()=>[createVNode$1(Ne,{title:"绑定ID",value:null},{suffix:withCtx(()=>[createVNode$1(_e,{size:"default",type:"primary"},{default:withCtx(()=>[createTextVNode(toDisplayString(n.moduleId),1)]),_:1})]),_:1})]),_:1}),createVNode$1(Ce,{span:12,xs:24,sm:12,md:12,class:"elColInfo"},{default:withCtx(()=>[createVNode$1(Ne,{title:"节点名称",value:null},{suffix:withCtx(()=>[createVNode$1(_e,{size:"default",type:"success"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(V)),1)]),_:1})]),_:1})]),_:1}),createVNode$1(Ce,{span:12,xs:24,sm:12,md:6,class:"elColInfo"},{default:withCtx(()=>[createVNode$1(Ne,{title:"类型",value:null},{suffix:withCtx(()=>[createVNode$1(_e,{size:"default",type:"primary"},{default:withCtx(()=>[createTextVNode(toDisplayString(n.moduleType),1)]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1})])]),_:1}),n.location==="right"?(openBlock(),createBlock(Ce,{key:1,span:12,class:"flex-center"},{default:withCtx(()=>[createVNode$1(_e,{type:"primary",size:"small",style:{opacity:"0.9"}},{default:withCtx(()=>[createVNode$1(pe,{type:"primary",style:{"max-width":"65px"},size:"small",truncated:""},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(V)),1)]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0)]),_:1}),n.location==="bottom"?(openBlock(),createBlock(xe,{key:1},{default:withCtx(()=>[createVNode$1(Ce,{span:24,class:"flex-center"},{default:withCtx(()=>[createVNode$1(_e,{type:"primary",size:"small",style:{opacity:"0.9"}},{default:withCtx(()=>[createVNode$1(pe,{type:"primary",style:{"max-width":"65px",opacity:"1"},size:"small",truncated:""},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(V)),1)]),_:1})]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0)],64)}}}),vueNumInfo_vue_vue_type_style_index_0_scoped_f5a80d66_lang="",VueNumInfo=_export_sfc$1(_sfc_main$j,[["__scopeId","data-v-f5a80d66"]]),_hoisted_1$c={style:{display:"flex","align-items":"center"}},_hoisted_2$7={class:"demo-rich-conent",style:{display:"flex",gap:"2px","flex-direction":"column"}},_hoisted_3$1={class:"progress-container"},_hoisted_4$1={class:"input-button-row"},_sfc_main$i=defineComponent({__name:"vue-regulator",setup(n){const t=ref(5);return(r,i)=>{const g=resolveComponent("el-icon"),$=resolveComponent("el-input-number"),V=resolveComponent("el-button"),re=resolveComponent("el-button-group"),ie=resolveComponent("el-statistic"),ae=resolveComponent("el-col"),oe=resolveComponent("el-tag"),le=resolveComponent("el-row"),ue=resolveComponent("el-popover");return openBlock(),createElementBlock("div",_hoisted_1$c,[createVNode$1(ue,{width:300,"popper-style":"box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;"},{reference:withCtx(()=>[createVNode$1(g,{class:"iconStyle",size:30},{default:withCtx(()=>[createVNode$1(unref(switch_filled_default))]),_:1})]),default:withCtx(()=>[createBaseVNode("div",_hoisted_2$7,[createBaseVNode("div",_hoisted_3$1,[createBaseVNode("div",_hoisted_4$1,[createVNode$1($,{modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=de=>t.value=de),step:2,class:"custom-input-number"},null,8,["modelValue"]),createVNode$1(re,{size:"small",direction:"horizontal"},{default:withCtx(()=>[createVNode$1(V,{type:"primary",icon:unref(check_default)},null,8,["icon"]),createVNode$1(V,{type:"primary",color:"rgb(177, 179, 184)",onClick:i[1]||(i[1]=de=>t.value=0),icon:unref(refresh_left_default)},null,8,["icon"])]),_:1})])]),createVNode$1(le,{gutter:6},{default:withCtx(()=>[createVNode$1(ae,{span:12,xs:24,sm:12,md:8,class:"elColInfo"},{default:withCtx(()=>[createVNode$1(ie,{title:"绑定ID",value:"1100101"})]),_:1}),createVNode$1(ae,{span:12,xs:24,sm:12,md:8,class:"elColInfo"},{default:withCtx(()=>[createVNode$1(ie,{title:"状态",value:null},{suffix:withCtx(()=>[createVNode$1(oe,{size:"default",type:"success"},{default:withCtx(()=>[...i[2]||(i[2]=[createTextVNode("开启",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(ae,{span:12,xs:24,sm:12,md:8,class:"elColInfo"},{default:withCtx(()=>[createVNode$1(ie,{title:"类型",value:null},{suffix:withCtx(()=>[createVNode$1(oe,{size:"default",type:"primary"},{default:withCtx(()=>[...i[3]||(i[3]=[createTextVNode("遥调",-1)])]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1})])}}}),vueRegulator_vue_vue_type_style_index_0_scoped_f4fa7193_lang="",VueRegulator=_export_sfc$1(_sfc_main$i,[["__scopeId","data-v-f4fa7193"]]),_hoisted_1$b={style:{"margin-left":"2vh"}},_sfc_main$h=defineComponent({__name:"vue-base-table",props:{dataSource:{type:String,default:"--"}},setup(n){onMounted(()=>{V(t.dataSource)});const t=n;let r=ref(),i=ref(!1),g=ref(!1),$=ref(!1);const V=xe=>{switch(console.log("moduleId:",xe),xe){case"wholeSiteMessage":he.value=[],i.value=!0,g.value=!1,$.value=!1,r.value="/api/wholeSiteMessage",he.value=Ce;break;case"unitException":he.value=[],i.value=!1,g.value=!0,$.value=!1,r.value="/api/unitException",he.value=pe;break;case"unauthorized":he.value=[],i.value=!1,g.value=!1,$.value=!0,r.value="/api/unauthorized",he.value=_e;break}};watch(()=>t.dataSource,(xe,Ie)=>{console.log("moduleId:",xe,Ie),V(xe)});let re=ref(1),ie=ref(10),ae=ref(45);const oe=xe=>{console.log("size点击:",`${xe} items per page`)},le=xe=>{console.log("Current点击:",`current page: ${xe}`)},ue=reactive({fileId:null,fileName:null,fileDate:null}),de=({row:xe})=>xe.alarmLevel===1?"danger-row":xe.alarmLevel===2?"warning-row":"";let he=ref([]);const pe=[{inkanetName:"南河变电站",date:"2026-02-04 20:48:08",equipmentName:"3号感烟探头",eventContent:"生产综合楼1楼蓄电池室3号感烟探头报警,生",subsystem:"消防系统",operation:0},{inkanetName:"南河变电站",date:"2026-02-04 20:48:08",equipmentName:"3号感烟探头",eventContent:"生产综合楼1楼蓄电池室3号感烟探头报",subsystem:"消防系统",operation:0},{inkanetName:"南河变电站",date:"2026-02-04 20:48:08",equipmentName:"3号感烟探头",eventContent:"生产综合楼1楼蓄电池室3号感烟探头报警",subsystem:"消防系统",operation:0}],_e=[{inkanetName:"南河变电站",date:"2026-02-04 20:48:08",equipmentName:"3号感烟探头",eventContent:"生产综合楼1楼蓄电池室3号感烟探头报警,生产综合楼1楼蓄电池室3号感烟探头报警",offset:10,limit:"10-20",measurementValue:"10.0",subsystem:"消防系统",processingStructure:"成功",operation:0},{inkanetName:"南河变电站",date:"2026-02-04 20:48:08",equipmentName:"3号感烟探头",eventContent:"生产综合楼1楼蓄电池室3号感烟探头报警,生产综合楼1楼蓄电池室3号感烟探头报警",offset:10,limit:"10-20",measurementValue:"10.0",subsystem:"消防系统",processingStructure:"成功",operation:0},{inkanetName:"南河变电站",date:"2026-02-04 20:48:08",equipmentName:"3号感烟探头",eventContent:"生产综合楼1楼蓄电池室3号感烟探头报警,生产综合楼1楼蓄电池室3号感烟探头报警",offset:10,limit:"10-20",measurementValue:"10.0",subsystem:"消防系统",processingStructure:"成功",operation:0}],Ce=[{inkanetName:"南河变电站",date:"2026-02-04 20:48:08",equipmentName:"3号感烟探头",eventContent:"生产综合楼1楼蓄电池室3号感烟探头报警,生产综合楼1楼蓄电池室3号感烟探头报警",alarmLevel:1,subsystem:"消防系统",processingStructure:"成功",operation:0},{inkanetName:"南河变电站",date:"2026-01-27 15:28:08",equipmentName:"荣耀科技",eventContent:"荣耀科技打卡指纹识别告警",alarmLevel:3,subsystem:"指纹识别",processingStructure:"成功",operation:0},{inkanetName:"南河变电站",date:"2026-01-25 12:48:08",equipmentName:"电子围栏",eventContent:"电子围栏一区(东一)入侵告警",alarmLevel:2,subsystem:"安全防范",processingStructure:"成功",operation:1},{inkanetName:"南河变电站",date:"2026-01-26 15:28:08",equipmentName:"荣耀科技",eventContent:"荣耀科技研发部人脸识别告警",alarmLevel:3,subsystem:"人脸识别",processingStructure:"成功",operation:0},{inkanetName:"南河变电站",date:"2026-02-04 20:48:08",equipmentName:"3号感烟探头",eventContent:"生产综合楼1楼蓄电池室3号感烟探头报警",alarmLevel:3,subsystem:"消防系统",processingStructure:"成功",operation:0},{inkanetName:"南河变电站",date:"2026-01-27 15:28:08",equipmentName:"荣耀科技",eventContent:"荣耀科技打卡指纹识别告警",alarmLevel:3,subsystem:"指纹识别",processingStructure:"成功",operation:0},{inkanetName:"南河变电站",date:"2026-01-25 12:48:08",equipmentName:"电子围栏",eventContent:"电子围栏一区(东一)入侵告警",alarmLevel:3,subsystem:"安全防范",processingStructure:"成功",operation:1},{inkanetName:"南河变电站",date:"2026-01-26 15:28:08",equipmentName:"荣耀科技",eventContent:"荣耀科技研发部人脸识别告警",alarmLevel:3,subsystem:"人脸识别",processingStructure:"成功",operation:0},{inkanetName:"南河变电站",date:"2026-02-04 20:48:08",equipmentName:"3号感烟探头",eventContent:"生产综合楼1楼蓄电池室3号感烟探头报警",alarmLevel:3,subsystem:"消防系统",processingStructure:"成功",operation:0},{inkanetName:"南河变电站",date:"2026-01-27 15:28:08",equipmentName:"荣耀科技",eventContent:"荣耀科技打卡指纹识别告警",alarmLevel:3,subsystem:"指纹识别",processingStructure:"成功",operation:0}];return(xe,Ie)=>{const Ne=resolveComponent("el-input"),Oe=resolveComponent("el-form-item"),$e=resolveComponent("el-col"),Ve=resolveComponent("el-option"),Ue=resolveComponent("el-select"),Fe=resolveComponent("el-row"),ze=resolveComponent("el-date-picker"),Pt=resolveComponent("el-button"),qe=resolveComponent("el-form"),Et=resolveComponent("el-table-column"),kt=resolveComponent("el-tag"),At=resolveComponent("el-table"),Dt=resolveComponent("el-pagination");return openBlock(),createElementBlock(Fragment,null,[createVNode$1(qe,{model:ue,"label-width":"auto",style:{"max-width":"100%","margin-left":"2vh"},inline:""},{default:withCtx(()=>[createVNode$1(Fe,{gutter:1},{default:withCtx(()=>[createVNode$1($e,{span:6},{default:withCtx(()=>[createVNode$1(Oe,{label:"设备名称"},{default:withCtx(()=>[createVNode$1(Ne,{modelValue:ue.fileName,"onUpdate:modelValue":Ie[0]||(Ie[0]=Lt=>ue.fileName=Lt),style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),createVNode$1($e,{span:6},{default:withCtx(()=>[createVNode$1(Oe,{label:"所属展柜"},{default:withCtx(()=>[createVNode$1(Ne,{modelValue:ue.fileName,"onUpdate:modelValue":Ie[1]||(Ie[1]=Lt=>ue.fileName=Lt)},null,8,["modelValue"])]),_:1})]),_:1}),createVNode$1($e,{span:6},{default:withCtx(()=>[createVNode$1(Oe,{label:"子系统",style:{width:"100%"}},{default:withCtx(()=>[createVNode$1(Ue,{modelValue:ue.fileId,"onUpdate:modelValue":Ie[2]||(Ie[2]=Lt=>ue.fileId=Lt),style:{width:"100%"}},{default:withCtx(()=>[createVNode$1(Ve,{label:"消防系统",value:"shanghai"}),createVNode$1(Ve,{label:"识别系统",value:"beijing"})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),createVNode$1(Fe,{gutter:1},{default:withCtx(()=>[createVNode$1($e,{span:6,style:{display:"flex","align-items":"left"}},{default:withCtx(()=>[createVNode$1(Oe,{label:"告警级别",style:{width:"100%"}},{default:withCtx(()=>[createVNode$1(Ue,{modelValue:ue.fileDate,"onUpdate:modelValue":Ie[3]||(Ie[3]=Lt=>ue.fileDate=Lt),style:{width:"100%"}},{default:withCtx(()=>[createVNode$1(Ve,{label:"危急",value:"shanghai"}),createVNode$1(Ve,{label:"一般",value:"beijing"}),createVNode$1(Ve,{label:"正常",value:"chengdu"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),createVNode$1($e,{span:8},{default:withCtx(()=>[createVNode$1(Oe,{label:"时间",style:{display:"flex","align-items":"left"}},{default:withCtx(()=>[createVNode$1(ze,{modelValue:ue.fileDate,"onUpdate:modelValue":Ie[4]||(Ie[4]=Lt=>ue.fileDate=Lt),type:"daterange","range-separator":"-","start-placeholder":"开始时间","end-placeholder":"结束时间",size:"default"},null,8,["modelValue"])]),_:1})]),_:1}),createVNode$1($e,{span:5}),createVNode$1($e,{span:5},{default:withCtx(()=>[createVNode$1(Pt,{type:"primary"},{default:withCtx(()=>[...Ie[7]||(Ie[7]=[createTextVNode("查询",-1)])]),_:1}),createVNode$1(Pt,{type:"info"},{default:withCtx(()=>[...Ie[8]||(Ie[8]=[createTextVNode("重置",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),createVNode$1(At,{data:unref(he),style:normalizeStyle$1([{width:"100%","margin-left":"2vh"},{"max-height":"470px"}]),"row-class-name":de,"header-cell-style":{color:"#3b3b3b "}},{default:withCtx(()=>[createVNode$1(Et,{type:"index",label:"序号",resizable:!1,"min-width":"60",align:"center"}),createVNode$1(Et,{prop:"inkanetName",label:"站端名称",resizable:!1,width:"180",align:"center"}),createVNode$1(Et,{prop:"date",label:"时间",resizable:!1,"min-width":"180",align:"center"}),createVNode$1(Et,{prop:"equipmentName",label:"设备名称",resizable:!1,"min-width":"180",align:"center"}),createVNode$1(Et,{prop:"eventContent",label:"事件内容",resizable:!1,"min-width":"280","show-overflow-tooltip":"",align:"center"}),unref($)?(openBlock(),createBlock(Et,{key:0,prop:"measurementValue",label:"当前测量值",resizable:!1,"min-width":"180","show-overflow-tooltip":"",align:"center"})):createCommentVNode("",!0),unref($)?(openBlock(),createBlock(Et,{key:1,prop:"limit",label:"越限范围",resizable:!1,"min-width":"180","show-overflow-tooltip":"",align:"center"})):createCommentVNode("",!0),unref($)?(openBlock(),createBlock(Et,{key:2,prop:"offset",label:"偏移量",resizable:!1,"min-width":"180","show-overflow-tooltip":"",align:"center"})):createCommentVNode("",!0),unref(i)?(openBlock(),createBlock(Et,{key:3,prop:"alarmLevel",label:"告警级别",resizable:!1,align:"center","min-width":"180"},{default:withCtx(Lt=>[Lt.row.alarmLevel===1?(openBlock(),createBlock(kt,{key:0,type:"danger"},{default:withCtx(()=>[...Ie[9]||(Ie[9]=[createTextVNode("危急",-1)])]),_:1})):Lt.row.alarmLevel===2?(openBlock(),createBlock(kt,{key:1,type:"warning"},{default:withCtx(()=>[...Ie[10]||(Ie[10]=[createTextVNode("一般",-1)])]),_:1})):(openBlock(),createBlock(kt,{key:2,type:"primary"},{default:withCtx(()=>[...Ie[11]||(Ie[11]=[createTextVNode("正常",-1)])]),_:1}))]),_:1})):createCommentVNode("",!0),createVNode$1(Et,{prop:"subsystem",label:"所属子系统",resizable:!1,"min-width":"180",align:"center"}),unref(i)||unref($)?(openBlock(),createBlock(Et,{key:4,prop:"processingStructure",label:"处理结果",resizable:!1,"min-width":"180",align:"center"})):createCommentVNode("",!0),createVNode$1(Et,{label:"操作",resizable:!1,align:"center","min-width":"180",fixed:"right"},{default:withCtx(Lt=>[Lt.row.operation===0?(openBlock(),createBlock(Pt,{key:0,type:"primary",size:"small"},{default:withCtx(()=>[...Ie[12]||(Ie[12]=[createTextVNode("确认",-1)])]),_:1})):(openBlock(),createBlock(kt,{key:1,type:"primary"},{default:withCtx(()=>[...Ie[13]||(Ie[13]=[createTextVNode("已解决",-1)])]),_:1}))]),_:1})]),_:1},8,["data"]),createBaseVNode("div",_hoisted_1$b,[createVNode$1(Dt,{"current-page":unref(re),"onUpdate:currentPage":Ie[5]||(Ie[5]=Lt=>isRef(re)?re.value=Lt:re=Lt),"page-size":unref(ie),"onUpdate:pageSize":Ie[6]||(Ie[6]=Lt=>isRef(ie)?ie.value=Lt:ie=Lt),"page-sizes":[10,15,20],"pager-count":3,size:"default",layout:",total,sizes,-> ,prev, pager, next",total:unref(ae),onSizeChange:oe,onCurrentChange:le},null,8,["current-page","page-size","total"])])],64)}}}),vueBaseTable_vue_vue_type_style_index_0_lang="";/** * @license * Copyright 2010-2025 Three.js Authors * SPDX-License-Identifier: MIT */const REVISION="182",MOUSE={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},TOUCH={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},CullFaceNone=0,CullFaceBack=1,CullFaceFront=2,PCFShadowMap=1,PCFSoftShadowMap=2,VSMShadowMap=3,FrontSide=0,BackSide=1,DoubleSide=2,NoBlending=0,NormalBlending=1,AdditiveBlending=2,SubtractiveBlending=3,MultiplyBlending=4,CustomBlending=5,AddEquation=100,SubtractEquation=101,ReverseSubtractEquation=102,MinEquation=103,MaxEquation=104,ZeroFactor=200,OneFactor=201,SrcColorFactor=202,OneMinusSrcColorFactor=203,SrcAlphaFactor=204,OneMinusSrcAlphaFactor=205,DstAlphaFactor=206,OneMinusDstAlphaFactor=207,DstColorFactor=208,OneMinusDstColorFactor=209,SrcAlphaSaturateFactor=210,ConstantColorFactor=211,OneMinusConstantColorFactor=212,ConstantAlphaFactor=213,OneMinusConstantAlphaFactor=214,NeverDepth=0,AlwaysDepth=1,LessDepth=2,LessEqualDepth=3,EqualDepth=4,GreaterEqualDepth=5,GreaterDepth=6,NotEqualDepth=7,MultiplyOperation=0,MixOperation=1,AddOperation=2,NoToneMapping=0,LinearToneMapping=1,ReinhardToneMapping=2,CineonToneMapping=3,ACESFilmicToneMapping=4,CustomToneMapping=5,AgXToneMapping=6,NeutralToneMapping=7,AttachedBindMode="attached",DetachedBindMode="detached",UVMapping=300,CubeReflectionMapping=301,CubeRefractionMapping=302,EquirectangularReflectionMapping=303,EquirectangularRefractionMapping=304,CubeUVReflectionMapping=306,RepeatWrapping=1e3,ClampToEdgeWrapping=1001,MirroredRepeatWrapping=1002,NearestFilter=1003,NearestMipmapNearestFilter=1004,NearestMipmapLinearFilter=1005,LinearFilter=1006,LinearMipmapNearestFilter=1007,LinearMipmapLinearFilter=1008,UnsignedByteType=1009,ByteType=1010,ShortType=1011,UnsignedShortType=1012,IntType=1013,UnsignedIntType=1014,FloatType=1015,HalfFloatType=1016,UnsignedShort4444Type=1017,UnsignedShort5551Type=1018,UnsignedInt248Type=1020,UnsignedInt5999Type=35902,UnsignedInt101111Type=35899,AlphaFormat=1021,RGBFormat=1022,RGBAFormat=1023,DepthFormat=1026,DepthStencilFormat=1027,RedFormat=1028,RedIntegerFormat=1029,RGFormat=1030,RGIntegerFormat=1031,RGBAIntegerFormat=1033,RGB_S3TC_DXT1_Format=33776,RGBA_S3TC_DXT1_Format=33777,RGBA_S3TC_DXT3_Format=33778,RGBA_S3TC_DXT5_Format=33779,RGB_PVRTC_4BPPV1_Format=35840,RGB_PVRTC_2BPPV1_Format=35841,RGBA_PVRTC_4BPPV1_Format=35842,RGBA_PVRTC_2BPPV1_Format=35843,RGB_ETC1_Format=36196,RGB_ETC2_Format=37492,RGBA_ETC2_EAC_Format=37496,R11_EAC_Format=37488,SIGNED_R11_EAC_Format=37489,RG11_EAC_Format=37490,SIGNED_RG11_EAC_Format=37491,RGBA_ASTC_4x4_Format=37808,RGBA_ASTC_5x4_Format=37809,RGBA_ASTC_5x5_Format=37810,RGBA_ASTC_6x5_Format=37811,RGBA_ASTC_6x6_Format=37812,RGBA_ASTC_8x5_Format=37813,RGBA_ASTC_8x6_Format=37814,RGBA_ASTC_8x8_Format=37815,RGBA_ASTC_10x5_Format=37816,RGBA_ASTC_10x6_Format=37817,RGBA_ASTC_10x8_Format=37818,RGBA_ASTC_10x10_Format=37819,RGBA_ASTC_12x10_Format=37820,RGBA_ASTC_12x12_Format=37821,RGBA_BPTC_Format=36492,RGB_BPTC_SIGNED_Format=36494,RGB_BPTC_UNSIGNED_Format=36495,RED_RGTC1_Format=36283,SIGNED_RED_RGTC1_Format=36284,RED_GREEN_RGTC2_Format=36285,SIGNED_RED_GREEN_RGTC2_Format=36286,InterpolateDiscrete=2300,InterpolateLinear=2301,InterpolateSmooth=2302,ZeroCurvatureEnding=2400,ZeroSlopeEnding=2401,WrapAroundEnding=2402,NormalAnimationBlendMode=2500,TrianglesDrawMode=0,TriangleStripDrawMode=1,TriangleFanDrawMode=2,BasicDepthPacking=3200,TangentSpaceNormalMap=0,ObjectSpaceNormalMap=1,NoColorSpace="",SRGBColorSpace="srgb",LinearSRGBColorSpace="srgb-linear",LinearTransfer="linear",SRGBTransfer="srgb",KeepStencilOp=7680,AlwaysStencilFunc=519,NeverCompare=512,LessCompare=513,EqualCompare=514,LessEqualCompare=515,GreaterCompare=516,NotEqualCompare=517,GreaterEqualCompare=518,AlwaysCompare=519,StaticDrawUsage=35044,GLSL3="300 es",WebGLCoordinateSystem=2e3,WebGPUCoordinateSystem=2001;function arrayNeedsUint32(n){for(let t=n.length-1;t>=0;--t)if(n[t]>=65535)return!0;return!1}function isTypedArray$1(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function createElementNS(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function createCanvasElement(){const n=createElementNS("canvas");return n.style.display="block",n}const _cache={};function log(...n){const t="THREE."+n.shift();console.log(t,...n)}function warn(...n){const t="THREE."+n.shift();console.warn(t,...n)}function error(...n){const t="THREE."+n.shift();console.error(t,...n)}function warnOnce(...n){const t=n.join(" ");t in _cache||(_cache[t]=!0,warn(...n))}function probeAsync(n,t,r){return new Promise(function(i,g){function $(){switch(n.clientWaitSync(t,n.SYNC_FLUSH_COMMANDS_BIT,0)){case n.WAIT_FAILED:g();break;case n.TIMEOUT_EXPIRED:setTimeout($,r);break;default:i()}}setTimeout($,r)})}class EventDispatcher{addEventListener(t,r){this._listeners===void 0&&(this._listeners={});const i=this._listeners;i[t]===void 0&&(i[t]=[]),i[t].indexOf(r)===-1&&i[t].push(r)}hasEventListener(t,r){const i=this._listeners;return i===void 0?!1:i[t]!==void 0&&i[t].indexOf(r)!==-1}removeEventListener(t,r){const i=this._listeners;if(i===void 0)return;const g=i[t];if(g!==void 0){const $=g.indexOf(r);$!==-1&&g.splice($,1)}}dispatchEvent(t){const r=this._listeners;if(r===void 0)return;const i=r[t.type];if(i!==void 0){t.target=this;const g=i.slice(0);for(let $=0,V=g.length;$>8&255]+_lut[n>>16&255]+_lut[n>>24&255]+"-"+_lut[t&255]+_lut[t>>8&255]+"-"+_lut[t>>16&15|64]+_lut[t>>24&255]+"-"+_lut[r&63|128]+_lut[r>>8&255]+"-"+_lut[r>>16&255]+_lut[r>>24&255]+_lut[i&255]+_lut[i>>8&255]+_lut[i>>16&255]+_lut[i>>24&255]).toLowerCase()}function clamp$1(n,t,r){return Math.max(t,Math.min(r,n))}function euclideanModulo(n,t){return(n%t+t)%t}function mapLinear(n,t,r,i,g){return i+(n-t)*(g-i)/(r-t)}function inverseLerp(n,t,r){return n!==t?(r-n)/(t-n):0}function lerp$1(n,t,r){return(1-r)*n+r*t}function damp(n,t,r,i){return lerp$1(n,t,1-Math.exp(-r*i))}function pingpong(n,t=1){return t-Math.abs(euclideanModulo(n,t*2)-t)}function smoothstep(n,t,r){return n<=t?0:n>=r?1:(n=(n-t)/(r-t),n*n*(3-2*n))}function smootherstep(n,t,r){return n<=t?0:n>=r?1:(n=(n-t)/(r-t),n*n*n*(n*(n*6-15)+10))}function randInt(n,t){return n+Math.floor(Math.random()*(t-n+1))}function randFloat(n,t){return n+Math.random()*(t-n)}function randFloatSpread(n){return n*(.5-Math.random())}function seededRandom(n){n!==void 0&&(_seed=n);let t=_seed+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function degToRad(n){return n*DEG2RAD}function radToDeg(n){return n*RAD2DEG}function isPowerOfTwo(n){return(n&n-1)===0&&n!==0}function ceilPowerOfTwo(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function floorPowerOfTwo(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function setQuaternionFromProperEuler(n,t,r,i,g){const $=Math.cos,V=Math.sin,re=$(r/2),ie=V(r/2),ae=$((t+i)/2),oe=V((t+i)/2),le=$((t-i)/2),ue=V((t-i)/2),de=$((i-t)/2),he=V((i-t)/2);switch(g){case"XYX":n.set(re*oe,ie*le,ie*ue,re*ae);break;case"YZY":n.set(ie*ue,re*oe,ie*le,re*ae);break;case"ZXZ":n.set(ie*le,ie*ue,re*oe,re*ae);break;case"XZX":n.set(re*oe,ie*he,ie*de,re*ae);break;case"YXY":n.set(ie*de,re*oe,ie*he,re*ae);break;case"ZYZ":n.set(ie*he,ie*de,re*oe,re*ae);break;default:warn("MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+g)}}function denormalize(n,t){switch(t.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function normalize$2(n,t){switch(t.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const MathUtils={DEG2RAD,RAD2DEG,generateUUID,clamp:clamp$1,euclideanModulo,mapLinear,inverseLerp,lerp:lerp$1,damp,pingpong,smoothstep,smootherstep,randInt,randFloat,randFloatSpread,seededRandom,degToRad,radToDeg,isPowerOfTwo,ceilPowerOfTwo,floorPowerOfTwo,setQuaternionFromProperEuler,normalize:normalize$2,denormalize};class Vector2{constructor(t=0,r=0){Vector2.prototype.isVector2=!0,this.x=t,this.y=r}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,r){return this.x=t,this.y=r,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,r){switch(t){case 0:this.x=r;break;case 1:this.y=r;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,r){return this.x=t.x+r.x,this.y=t.y+r.y,this}addScaledVector(t,r){return this.x+=t.x*r,this.y+=t.y*r,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,r){return this.x=t.x-r.x,this.y=t.y-r.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const r=this.x,i=this.y,g=t.elements;return this.x=g[0]*r+g[3]*i+g[6],this.y=g[1]*r+g[4]*i+g[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,r){return this.x=clamp$1(this.x,t.x,r.x),this.y=clamp$1(this.y,t.y,r.y),this}clampScalar(t,r){return this.x=clamp$1(this.x,t,r),this.y=clamp$1(this.y,t,r),this}clampLength(t,r){const i=this.length();return this.divideScalar(i||1).multiplyScalar(clamp$1(i,t,r))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(t){const r=Math.sqrt(this.lengthSq()*t.lengthSq());if(r===0)return Math.PI/2;const i=this.dot(t)/r;return Math.acos(clamp$1(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const r=this.x-t.x,i=this.y-t.y;return r*r+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,r){return this.x+=(t.x-this.x)*r,this.y+=(t.y-this.y)*r,this}lerpVectors(t,r,i){return this.x=t.x+(r.x-t.x)*i,this.y=t.y+(r.y-t.y)*i,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,r=0){return this.x=t[r],this.y=t[r+1],this}toArray(t=[],r=0){return t[r]=this.x,t[r+1]=this.y,t}fromBufferAttribute(t,r){return this.x=t.getX(r),this.y=t.getY(r),this}rotateAround(t,r){const i=Math.cos(r),g=Math.sin(r),$=this.x-t.x,V=this.y-t.y;return this.x=$*i-V*g+t.x,this.y=$*g+V*i+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Quaternion{constructor(t=0,r=0,i=0,g=1){this.isQuaternion=!0,this._x=t,this._y=r,this._z=i,this._w=g}static slerpFlat(t,r,i,g,$,V,re){let ie=i[g+0],ae=i[g+1],oe=i[g+2],le=i[g+3],ue=$[V+0],de=$[V+1],he=$[V+2],pe=$[V+3];if(re<=0){t[r+0]=ie,t[r+1]=ae,t[r+2]=oe,t[r+3]=le;return}if(re>=1){t[r+0]=ue,t[r+1]=de,t[r+2]=he,t[r+3]=pe;return}if(le!==pe||ie!==ue||ae!==de||oe!==he){let _e=ie*ue+ae*de+oe*he+le*pe;_e<0&&(ue=-ue,de=-de,he=-he,pe=-pe,_e=-_e);let Ce=1-re;if(_e<.9995){const xe=Math.acos(_e),Ie=Math.sin(xe);Ce=Math.sin(Ce*xe)/Ie,re=Math.sin(re*xe)/Ie,ie=ie*Ce+ue*re,ae=ae*Ce+de*re,oe=oe*Ce+he*re,le=le*Ce+pe*re}else{ie=ie*Ce+ue*re,ae=ae*Ce+de*re,oe=oe*Ce+he*re,le=le*Ce+pe*re;const xe=1/Math.sqrt(ie*ie+ae*ae+oe*oe+le*le);ie*=xe,ae*=xe,oe*=xe,le*=xe}}t[r]=ie,t[r+1]=ae,t[r+2]=oe,t[r+3]=le}static multiplyQuaternionsFlat(t,r,i,g,$,V){const re=i[g],ie=i[g+1],ae=i[g+2],oe=i[g+3],le=$[V],ue=$[V+1],de=$[V+2],he=$[V+3];return t[r]=re*he+oe*le+ie*de-ae*ue,t[r+1]=ie*he+oe*ue+ae*le-re*de,t[r+2]=ae*he+oe*de+re*ue-ie*le,t[r+3]=oe*he-re*le-ie*ue-ae*de,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,r,i,g){return this._x=t,this._y=r,this._z=i,this._w=g,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,r=!0){const i=t._x,g=t._y,$=t._z,V=t._order,re=Math.cos,ie=Math.sin,ae=re(i/2),oe=re(g/2),le=re($/2),ue=ie(i/2),de=ie(g/2),he=ie($/2);switch(V){case"XYZ":this._x=ue*oe*le+ae*de*he,this._y=ae*de*le-ue*oe*he,this._z=ae*oe*he+ue*de*le,this._w=ae*oe*le-ue*de*he;break;case"YXZ":this._x=ue*oe*le+ae*de*he,this._y=ae*de*le-ue*oe*he,this._z=ae*oe*he-ue*de*le,this._w=ae*oe*le+ue*de*he;break;case"ZXY":this._x=ue*oe*le-ae*de*he,this._y=ae*de*le+ue*oe*he,this._z=ae*oe*he+ue*de*le,this._w=ae*oe*le-ue*de*he;break;case"ZYX":this._x=ue*oe*le-ae*de*he,this._y=ae*de*le+ue*oe*he,this._z=ae*oe*he-ue*de*le,this._w=ae*oe*le+ue*de*he;break;case"YZX":this._x=ue*oe*le+ae*de*he,this._y=ae*de*le+ue*oe*he,this._z=ae*oe*he-ue*de*le,this._w=ae*oe*le-ue*de*he;break;case"XZY":this._x=ue*oe*le-ae*de*he,this._y=ae*de*le-ue*oe*he,this._z=ae*oe*he+ue*de*le,this._w=ae*oe*le+ue*de*he;break;default:warn("Quaternion: .setFromEuler() encountered an unknown order: "+V)}return r===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,r){const i=r/2,g=Math.sin(i);return this._x=t.x*g,this._y=t.y*g,this._z=t.z*g,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(t){const r=t.elements,i=r[0],g=r[4],$=r[8],V=r[1],re=r[5],ie=r[9],ae=r[2],oe=r[6],le=r[10],ue=i+re+le;if(ue>0){const de=.5/Math.sqrt(ue+1);this._w=.25/de,this._x=(oe-ie)*de,this._y=($-ae)*de,this._z=(V-g)*de}else if(i>re&&i>le){const de=2*Math.sqrt(1+i-re-le);this._w=(oe-ie)/de,this._x=.25*de,this._y=(g+V)/de,this._z=($+ae)/de}else if(re>le){const de=2*Math.sqrt(1+re-i-le);this._w=($-ae)/de,this._x=(g+V)/de,this._y=.25*de,this._z=(ie+oe)/de}else{const de=2*Math.sqrt(1+le-i-re);this._w=(V-g)/de,this._x=($+ae)/de,this._y=(ie+oe)/de,this._z=.25*de}return this._onChangeCallback(),this}setFromUnitVectors(t,r){let i=t.dot(r)+1;return i<1e-8?(i=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=i):(this._x=0,this._y=-t.z,this._z=t.y,this._w=i)):(this._x=t.y*r.z-t.z*r.y,this._y=t.z*r.x-t.x*r.z,this._z=t.x*r.y-t.y*r.x,this._w=i),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(clamp$1(this.dot(t),-1,1)))}rotateTowards(t,r){const i=this.angleTo(t);if(i===0)return this;const g=Math.min(1,r/i);return this.slerp(t,g),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,r){const i=t._x,g=t._y,$=t._z,V=t._w,re=r._x,ie=r._y,ae=r._z,oe=r._w;return this._x=i*oe+V*re+g*ae-$*ie,this._y=g*oe+V*ie+$*re-i*ae,this._z=$*oe+V*ae+i*ie-g*re,this._w=V*oe-i*re-g*ie-$*ae,this._onChangeCallback(),this}slerp(t,r){if(r<=0)return this;if(r>=1)return this.copy(t);let i=t._x,g=t._y,$=t._z,V=t._w,re=this.dot(t);re<0&&(i=-i,g=-g,$=-$,V=-V,re=-re);let ie=1-r;if(re<.9995){const ae=Math.acos(re),oe=Math.sin(ae);ie=Math.sin(ie*ae)/oe,r=Math.sin(r*ae)/oe,this._x=this._x*ie+i*r,this._y=this._y*ie+g*r,this._z=this._z*ie+$*r,this._w=this._w*ie+V*r,this._onChangeCallback()}else this._x=this._x*ie+i*r,this._y=this._y*ie+g*r,this._z=this._z*ie+$*r,this._w=this._w*ie+V*r,this.normalize();return this}slerpQuaternions(t,r,i){return this.copy(t).slerp(r,i)}random(){const t=2*Math.PI*Math.random(),r=2*Math.PI*Math.random(),i=Math.random(),g=Math.sqrt(1-i),$=Math.sqrt(i);return this.set(g*Math.sin(t),g*Math.cos(t),$*Math.sin(r),$*Math.cos(r))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,r=0){return this._x=t[r],this._y=t[r+1],this._z=t[r+2],this._w=t[r+3],this._onChangeCallback(),this}toArray(t=[],r=0){return t[r]=this._x,t[r+1]=this._y,t[r+2]=this._z,t[r+3]=this._w,t}fromBufferAttribute(t,r){return this._x=t.getX(r),this._y=t.getY(r),this._z=t.getZ(r),this._w=t.getW(r),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class Vector3{constructor(t=0,r=0,i=0){Vector3.prototype.isVector3=!0,this.x=t,this.y=r,this.z=i}set(t,r,i){return i===void 0&&(i=this.z),this.x=t,this.y=r,this.z=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,r){switch(t){case 0:this.x=r;break;case 1:this.y=r;break;case 2:this.z=r;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,r){return this.x=t.x+r.x,this.y=t.y+r.y,this.z=t.z+r.z,this}addScaledVector(t,r){return this.x+=t.x*r,this.y+=t.y*r,this.z+=t.z*r,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,r){return this.x=t.x-r.x,this.y=t.y-r.y,this.z=t.z-r.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,r){return this.x=t.x*r.x,this.y=t.y*r.y,this.z=t.z*r.z,this}applyEuler(t){return this.applyQuaternion(_quaternion$4.setFromEuler(t))}applyAxisAngle(t,r){return this.applyQuaternion(_quaternion$4.setFromAxisAngle(t,r))}applyMatrix3(t){const r=this.x,i=this.y,g=this.z,$=t.elements;return this.x=$[0]*r+$[3]*i+$[6]*g,this.y=$[1]*r+$[4]*i+$[7]*g,this.z=$[2]*r+$[5]*i+$[8]*g,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const r=this.x,i=this.y,g=this.z,$=t.elements,V=1/($[3]*r+$[7]*i+$[11]*g+$[15]);return this.x=($[0]*r+$[4]*i+$[8]*g+$[12])*V,this.y=($[1]*r+$[5]*i+$[9]*g+$[13])*V,this.z=($[2]*r+$[6]*i+$[10]*g+$[14])*V,this}applyQuaternion(t){const r=this.x,i=this.y,g=this.z,$=t.x,V=t.y,re=t.z,ie=t.w,ae=2*(V*g-re*i),oe=2*(re*r-$*g),le=2*($*i-V*r);return this.x=r+ie*ae+V*le-re*oe,this.y=i+ie*oe+re*ae-$*le,this.z=g+ie*le+$*oe-V*ae,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const r=this.x,i=this.y,g=this.z,$=t.elements;return this.x=$[0]*r+$[4]*i+$[8]*g,this.y=$[1]*r+$[5]*i+$[9]*g,this.z=$[2]*r+$[6]*i+$[10]*g,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,r){return this.x=clamp$1(this.x,t.x,r.x),this.y=clamp$1(this.y,t.y,r.y),this.z=clamp$1(this.z,t.z,r.z),this}clampScalar(t,r){return this.x=clamp$1(this.x,t,r),this.y=clamp$1(this.y,t,r),this.z=clamp$1(this.z,t,r),this}clampLength(t,r){const i=this.length();return this.divideScalar(i||1).multiplyScalar(clamp$1(i,t,r))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,r){return this.x+=(t.x-this.x)*r,this.y+=(t.y-this.y)*r,this.z+=(t.z-this.z)*r,this}lerpVectors(t,r,i){return this.x=t.x+(r.x-t.x)*i,this.y=t.y+(r.y-t.y)*i,this.z=t.z+(r.z-t.z)*i,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,r){const i=t.x,g=t.y,$=t.z,V=r.x,re=r.y,ie=r.z;return this.x=g*ie-$*re,this.y=$*V-i*ie,this.z=i*re-g*V,this}projectOnVector(t){const r=t.lengthSq();if(r===0)return this.set(0,0,0);const i=t.dot(this)/r;return this.copy(t).multiplyScalar(i)}projectOnPlane(t){return _vector$c.copy(this).projectOnVector(t),this.sub(_vector$c)}reflect(t){return this.sub(_vector$c.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const r=Math.sqrt(this.lengthSq()*t.lengthSq());if(r===0)return Math.PI/2;const i=this.dot(t)/r;return Math.acos(clamp$1(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const r=this.x-t.x,i=this.y-t.y,g=this.z-t.z;return r*r+i*i+g*g}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,r,i){const g=Math.sin(r)*t;return this.x=g*Math.sin(i),this.y=Math.cos(r)*t,this.z=g*Math.cos(i),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,r,i){return this.x=t*Math.sin(r),this.y=i,this.z=t*Math.cos(r),this}setFromMatrixPosition(t){const r=t.elements;return this.x=r[12],this.y=r[13],this.z=r[14],this}setFromMatrixScale(t){const r=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length(),g=this.setFromMatrixColumn(t,2).length();return this.x=r,this.y=i,this.z=g,this}setFromMatrixColumn(t,r){return this.fromArray(t.elements,r*4)}setFromMatrix3Column(t,r){return this.fromArray(t.elements,r*3)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,r=0){return this.x=t[r],this.y=t[r+1],this.z=t[r+2],this}toArray(t=[],r=0){return t[r]=this.x,t[r+1]=this.y,t[r+2]=this.z,t}fromBufferAttribute(t,r){return this.x=t.getX(r),this.y=t.getY(r),this.z=t.getZ(r),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=Math.random()*Math.PI*2,r=Math.random()*2-1,i=Math.sqrt(1-r*r);return this.x=i*Math.cos(t),this.y=r,this.z=i*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const _vector$c=new Vector3,_quaternion$4=new Quaternion;class Matrix3{constructor(t,r,i,g,$,V,re,ie,ae){Matrix3.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],t!==void 0&&this.set(t,r,i,g,$,V,re,ie,ae)}set(t,r,i,g,$,V,re,ie,ae){const oe=this.elements;return oe[0]=t,oe[1]=g,oe[2]=re,oe[3]=r,oe[4]=$,oe[5]=ie,oe[6]=i,oe[7]=V,oe[8]=ae,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const r=this.elements,i=t.elements;return r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=i[3],r[4]=i[4],r[5]=i[5],r[6]=i[6],r[7]=i[7],r[8]=i[8],this}extractBasis(t,r,i){return t.setFromMatrix3Column(this,0),r.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const r=t.elements;return this.set(r[0],r[4],r[8],r[1],r[5],r[9],r[2],r[6],r[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,r){const i=t.elements,g=r.elements,$=this.elements,V=i[0],re=i[3],ie=i[6],ae=i[1],oe=i[4],le=i[7],ue=i[2],de=i[5],he=i[8],pe=g[0],_e=g[3],Ce=g[6],xe=g[1],Ie=g[4],Ne=g[7],Oe=g[2],$e=g[5],Ve=g[8];return $[0]=V*pe+re*xe+ie*Oe,$[3]=V*_e+re*Ie+ie*$e,$[6]=V*Ce+re*Ne+ie*Ve,$[1]=ae*pe+oe*xe+le*Oe,$[4]=ae*_e+oe*Ie+le*$e,$[7]=ae*Ce+oe*Ne+le*Ve,$[2]=ue*pe+de*xe+he*Oe,$[5]=ue*_e+de*Ie+he*$e,$[8]=ue*Ce+de*Ne+he*Ve,this}multiplyScalar(t){const r=this.elements;return r[0]*=t,r[3]*=t,r[6]*=t,r[1]*=t,r[4]*=t,r[7]*=t,r[2]*=t,r[5]*=t,r[8]*=t,this}determinant(){const t=this.elements,r=t[0],i=t[1],g=t[2],$=t[3],V=t[4],re=t[5],ie=t[6],ae=t[7],oe=t[8];return r*V*oe-r*re*ae-i*$*oe+i*re*ie+g*$*ae-g*V*ie}invert(){const t=this.elements,r=t[0],i=t[1],g=t[2],$=t[3],V=t[4],re=t[5],ie=t[6],ae=t[7],oe=t[8],le=oe*V-re*ae,ue=re*ie-oe*$,de=ae*$-V*ie,he=r*le+i*ue+g*de;if(he===0)return this.set(0,0,0,0,0,0,0,0,0);const pe=1/he;return t[0]=le*pe,t[1]=(g*ae-oe*i)*pe,t[2]=(re*i-g*V)*pe,t[3]=ue*pe,t[4]=(oe*r-g*ie)*pe,t[5]=(g*$-re*r)*pe,t[6]=de*pe,t[7]=(i*ie-ae*r)*pe,t[8]=(V*r-i*$)*pe,this}transpose(){let t;const r=this.elements;return t=r[1],r[1]=r[3],r[3]=t,t=r[2],r[2]=r[6],r[6]=t,t=r[5],r[5]=r[7],r[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const r=this.elements;return t[0]=r[0],t[1]=r[3],t[2]=r[6],t[3]=r[1],t[4]=r[4],t[5]=r[7],t[6]=r[2],t[7]=r[5],t[8]=r[8],this}setUvTransform(t,r,i,g,$,V,re){const ie=Math.cos($),ae=Math.sin($);return this.set(i*ie,i*ae,-i*(ie*V+ae*re)+V+t,-g*ae,g*ie,-g*(-ae*V+ie*re)+re+r,0,0,1),this}scale(t,r){return this.premultiply(_m3.makeScale(t,r)),this}rotate(t){return this.premultiply(_m3.makeRotation(-t)),this}translate(t,r){return this.premultiply(_m3.makeTranslation(t,r)),this}makeTranslation(t,r){return t.isVector2?this.set(1,0,t.x,0,1,t.y,0,0,1):this.set(1,0,t,0,1,r,0,0,1),this}makeRotation(t){const r=Math.cos(t),i=Math.sin(t);return this.set(r,-i,0,i,r,0,0,0,1),this}makeScale(t,r){return this.set(t,0,0,0,r,0,0,0,1),this}equals(t){const r=this.elements,i=t.elements;for(let g=0;g<9;g++)if(r[g]!==i[g])return!1;return!0}fromArray(t,r=0){for(let i=0;i<9;i++)this.elements[i]=t[i+r];return this}toArray(t=[],r=0){const i=this.elements;return t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2],t[r+3]=i[3],t[r+4]=i[4],t[r+5]=i[5],t[r+6]=i[6],t[r+7]=i[7],t[r+8]=i[8],t}clone(){return new this.constructor().fromArray(this.elements)}}const _m3=new Matrix3,LINEAR_REC709_TO_XYZ=new Matrix3().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),XYZ_TO_LINEAR_REC709=new Matrix3().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function createColorManagement(){const n={enabled:!0,workingColorSpace:LinearSRGBColorSpace,spaces:{},convert:function(g,$,V){return this.enabled===!1||$===V||!$||!V||(this.spaces[$].transfer===SRGBTransfer&&(g.r=SRGBToLinear(g.r),g.g=SRGBToLinear(g.g),g.b=SRGBToLinear(g.b)),this.spaces[$].primaries!==this.spaces[V].primaries&&(g.applyMatrix3(this.spaces[$].toXYZ),g.applyMatrix3(this.spaces[V].fromXYZ)),this.spaces[V].transfer===SRGBTransfer&&(g.r=LinearToSRGB(g.r),g.g=LinearToSRGB(g.g),g.b=LinearToSRGB(g.b))),g},workingToColorSpace:function(g,$){return this.convert(g,this.workingColorSpace,$)},colorSpaceToWorking:function(g,$){return this.convert(g,$,this.workingColorSpace)},getPrimaries:function(g){return this.spaces[g].primaries},getTransfer:function(g){return g===NoColorSpace?LinearTransfer:this.spaces[g].transfer},getToneMappingMode:function(g){return this.spaces[g].outputColorSpaceConfig.toneMappingMode||"standard"},getLuminanceCoefficients:function(g,$=this.workingColorSpace){return g.fromArray(this.spaces[$].luminanceCoefficients)},define:function(g){Object.assign(this.spaces,g)},_getMatrix:function(g,$,V){return g.copy(this.spaces[$].toXYZ).multiply(this.spaces[V].fromXYZ)},_getDrawingBufferColorSpace:function(g){return this.spaces[g].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(g=this.workingColorSpace){return this.spaces[g].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(g,$){return warnOnce("ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."),n.workingToColorSpace(g,$)},toWorkingColorSpace:function(g,$){return warnOnce("ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."),n.colorSpaceToWorking(g,$)}},t=[.64,.33,.3,.6,.15,.06],r=[.2126,.7152,.0722],i=[.3127,.329];return n.define({[LinearSRGBColorSpace]:{primaries:t,whitePoint:i,transfer:LinearTransfer,toXYZ:LINEAR_REC709_TO_XYZ,fromXYZ:XYZ_TO_LINEAR_REC709,luminanceCoefficients:r,workingColorSpaceConfig:{unpackColorSpace:SRGBColorSpace},outputColorSpaceConfig:{drawingBufferColorSpace:SRGBColorSpace}},[SRGBColorSpace]:{primaries:t,whitePoint:i,transfer:SRGBTransfer,toXYZ:LINEAR_REC709_TO_XYZ,fromXYZ:XYZ_TO_LINEAR_REC709,luminanceCoefficients:r,outputColorSpaceConfig:{drawingBufferColorSpace:SRGBColorSpace}}}),n}const ColorManagement=createColorManagement();function SRGBToLinear(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function LinearToSRGB(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let _canvas;class ImageUtils{static getDataURL(t,r="image/png"){if(/^data:/i.test(t.src)||typeof HTMLCanvasElement>"u")return t.src;let i;if(t instanceof HTMLCanvasElement)i=t;else{_canvas===void 0&&(_canvas=createElementNS("canvas")),_canvas.width=t.width,_canvas.height=t.height;const g=_canvas.getContext("2d");t instanceof ImageData?g.putImageData(t,0,0):g.drawImage(t,0,0,t.width,t.height),i=_canvas}return i.toDataURL(r)}static sRGBToLinear(t){if(typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap){const r=createElementNS("canvas");r.width=t.width,r.height=t.height;const i=r.getContext("2d");i.drawImage(t,0,0,t.width,t.height);const g=i.getImageData(0,0,t.width,t.height),$=g.data;for(let V=0;V<$.length;V++)$[V]=SRGBToLinear($[V]/255)*255;return i.putImageData(g,0,0),r}else if(t.data){const r=t.data.slice(0);for(let i=0;i1),this.pmremVersion=0}get width(){return this.source.getSize(_tempVec3).x}get height(){return this.source.getSize(_tempVec3).y}get depth(){return this.source.getSize(_tempVec3).z}get image(){return this.source.data}set image(t=null){this.source.data=t}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(t,r){this.updateRanges.push({start:t,count:r})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(t){return this.name=t.name,this.source=t.source,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.channel=t.channel,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.colorSpace=t.colorSpace,this.renderTarget=t.renderTarget,this.isRenderTargetTexture=t.isRenderTargetTexture,this.isArrayTexture=t.isArrayTexture,this.userData=JSON.parse(JSON.stringify(t.userData)),this.needsUpdate=!0,this}setValues(t){for(const r in t){const i=t[r];if(i===void 0){warn(`Texture.setValues(): parameter '${r}' has value of undefined.`);continue}const g=this[r];if(g===void 0){warn(`Texture.setValues(): property '${r}' does not exist.`);continue}g&&i&&g.isVector2&&i.isVector2||g&&i&&g.isVector3&&i.isVector3||g&&i&&g.isMatrix3&&i.isMatrix3?g.copy(i):this[r]=i}}toJSON(t){const r=t===void 0||typeof t=="string";if(!r&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];const i={metadata:{version:4.7,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(t).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(i.userData=this.userData),r||(t.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==UVMapping)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case RepeatWrapping:t.x=t.x-Math.floor(t.x);break;case ClampToEdgeWrapping:t.x=t.x<0?0:1;break;case MirroredRepeatWrapping:Math.abs(Math.floor(t.x)%2)===1?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);break}if(t.y<0||t.y>1)switch(this.wrapT){case RepeatWrapping:t.y=t.y-Math.floor(t.y);break;case ClampToEdgeWrapping:t.y=t.y<0?0:1;break;case MirroredRepeatWrapping:Math.abs(Math.floor(t.y)%2)===1?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);break}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){t===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(t){t===!0&&this.pmremVersion++}}Texture.DEFAULT_IMAGE=null;Texture.DEFAULT_MAPPING=UVMapping;Texture.DEFAULT_ANISOTROPY=1;class Vector4{constructor(t=0,r=0,i=0,g=1){Vector4.prototype.isVector4=!0,this.x=t,this.y=r,this.z=i,this.w=g}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,r,i,g){return this.x=t,this.y=r,this.z=i,this.w=g,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,r){switch(t){case 0:this.x=r;break;case 1:this.y=r;break;case 2:this.z=r;break;case 3:this.w=r;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w!==void 0?t.w:1,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,r){return this.x=t.x+r.x,this.y=t.y+r.y,this.z=t.z+r.z,this.w=t.w+r.w,this}addScaledVector(t,r){return this.x+=t.x*r,this.y+=t.y*r,this.z+=t.z*r,this.w+=t.w*r,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,r){return this.x=t.x-r.x,this.y=t.y-r.y,this.z=t.z-r.z,this.w=t.w-r.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const r=this.x,i=this.y,g=this.z,$=this.w,V=t.elements;return this.x=V[0]*r+V[4]*i+V[8]*g+V[12]*$,this.y=V[1]*r+V[5]*i+V[9]*g+V[13]*$,this.z=V[2]*r+V[6]*i+V[10]*g+V[14]*$,this.w=V[3]*r+V[7]*i+V[11]*g+V[15]*$,this}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this.w/=t.w,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const r=Math.sqrt(1-t.w*t.w);return r<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/r,this.y=t.y/r,this.z=t.z/r),this}setAxisAngleFromRotationMatrix(t){let r,i,g,$;const ie=t.elements,ae=ie[0],oe=ie[4],le=ie[8],ue=ie[1],de=ie[5],he=ie[9],pe=ie[2],_e=ie[6],Ce=ie[10];if(Math.abs(oe-ue)<.01&&Math.abs(le-pe)<.01&&Math.abs(he-_e)<.01){if(Math.abs(oe+ue)<.1&&Math.abs(le+pe)<.1&&Math.abs(he+_e)<.1&&Math.abs(ae+de+Ce-3)<.1)return this.set(1,0,0,0),this;r=Math.PI;const Ie=(ae+1)/2,Ne=(de+1)/2,Oe=(Ce+1)/2,$e=(oe+ue)/4,Ve=(le+pe)/4,Ue=(he+_e)/4;return Ie>Ne&&Ie>Oe?Ie<.01?(i=0,g=.707106781,$=.707106781):(i=Math.sqrt(Ie),g=$e/i,$=Ve/i):Ne>Oe?Ne<.01?(i=.707106781,g=0,$=.707106781):(g=Math.sqrt(Ne),i=$e/g,$=Ue/g):Oe<.01?(i=.707106781,g=.707106781,$=0):($=Math.sqrt(Oe),i=Ve/$,g=Ue/$),this.set(i,g,$,r),this}let xe=Math.sqrt((_e-he)*(_e-he)+(le-pe)*(le-pe)+(ue-oe)*(ue-oe));return Math.abs(xe)<.001&&(xe=1),this.x=(_e-he)/xe,this.y=(le-pe)/xe,this.z=(ue-oe)/xe,this.w=Math.acos((ae+de+Ce-1)/2),this}setFromMatrixPosition(t){const r=t.elements;return this.x=r[12],this.y=r[13],this.z=r[14],this.w=r[15],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this}clamp(t,r){return this.x=clamp$1(this.x,t.x,r.x),this.y=clamp$1(this.y,t.y,r.y),this.z=clamp$1(this.z,t.z,r.z),this.w=clamp$1(this.w,t.w,r.w),this}clampScalar(t,r){return this.x=clamp$1(this.x,t,r),this.y=clamp$1(this.y,t,r),this.z=clamp$1(this.z,t,r),this.w=clamp$1(this.w,t,r),this}clampLength(t,r){const i=this.length();return this.divideScalar(i||1).multiplyScalar(clamp$1(i,t,r))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,r){return this.x+=(t.x-this.x)*r,this.y+=(t.y-this.y)*r,this.z+=(t.z-this.z)*r,this.w+=(t.w-this.w)*r,this}lerpVectors(t,r,i){return this.x=t.x+(r.x-t.x)*i,this.y=t.y+(r.y-t.y)*i,this.z=t.z+(r.z-t.z)*i,this.w=t.w+(r.w-t.w)*i,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,r=0){return this.x=t[r],this.y=t[r+1],this.z=t[r+2],this.w=t[r+3],this}toArray(t=[],r=0){return t[r]=this.x,t[r+1]=this.y,t[r+2]=this.z,t[r+3]=this.w,t}fromBufferAttribute(t,r){return this.x=t.getX(r),this.y=t.getY(r),this.z=t.getZ(r),this.w=t.getW(r),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class RenderTarget extends EventDispatcher{constructor(t=1,r=1,i={}){super(),i=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:LinearFilter,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1,depth:1,multiview:!1},i),this.isRenderTarget=!0,this.width=t,this.height=r,this.depth=i.depth,this.scissor=new Vector4(0,0,t,r),this.scissorTest=!1,this.viewport=new Vector4(0,0,t,r);const g={width:t,height:r,depth:i.depth},$=new Texture(g);this.textures=[];const V=i.count;for(let re=0;re1);this.dispose()}this.viewport.set(0,0,t,r),this.scissor.set(0,0,t,r)}clone(){return new this.constructor().copy(this)}copy(t){this.width=t.width,this.height=t.height,this.depth=t.depth,this.scissor.copy(t.scissor),this.scissorTest=t.scissorTest,this.viewport.copy(t.viewport),this.textures.length=0;for(let r=0,i=t.textures.length;r=this.min.x&&t.x<=this.max.x&&t.y>=this.min.y&&t.y<=this.max.y&&t.z>=this.min.z&&t.z<=this.max.z}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,r){return r.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return t.max.x>=this.min.x&&t.min.x<=this.max.x&&t.max.y>=this.min.y&&t.min.y<=this.max.y&&t.max.z>=this.min.z&&t.min.z<=this.max.z}intersectsSphere(t){return this.clampPoint(t.center,_vector$b),_vector$b.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let r,i;return t.normal.x>0?(r=t.normal.x*this.min.x,i=t.normal.x*this.max.x):(r=t.normal.x*this.max.x,i=t.normal.x*this.min.x),t.normal.y>0?(r+=t.normal.y*this.min.y,i+=t.normal.y*this.max.y):(r+=t.normal.y*this.max.y,i+=t.normal.y*this.min.y),t.normal.z>0?(r+=t.normal.z*this.min.z,i+=t.normal.z*this.max.z):(r+=t.normal.z*this.max.z,i+=t.normal.z*this.min.z),r<=-t.constant&&i>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(_center),_extents.subVectors(this.max,_center),_v0$2.subVectors(t.a,_center),_v1$7.subVectors(t.b,_center),_v2$4.subVectors(t.c,_center),_f0.subVectors(_v1$7,_v0$2),_f1.subVectors(_v2$4,_v1$7),_f2.subVectors(_v0$2,_v2$4);let r=[0,-_f0.z,_f0.y,0,-_f1.z,_f1.y,0,-_f2.z,_f2.y,_f0.z,0,-_f0.x,_f1.z,0,-_f1.x,_f2.z,0,-_f2.x,-_f0.y,_f0.x,0,-_f1.y,_f1.x,0,-_f2.y,_f2.x,0];return!satForAxes(r,_v0$2,_v1$7,_v2$4,_extents)||(r=[1,0,0,0,1,0,0,0,1],!satForAxes(r,_v0$2,_v1$7,_v2$4,_extents))?!1:(_triangleNormal.crossVectors(_f0,_f1),r=[_triangleNormal.x,_triangleNormal.y,_triangleNormal.z],satForAxes(r,_v0$2,_v1$7,_v2$4,_extents))}clampPoint(t,r){return r.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,_vector$b).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=this.getSize(_vector$b).length()*.5),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()?this:(_points[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),_points[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),_points[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),_points[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),_points[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),_points[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),_points[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),_points[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(_points),this)}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(t){return this.min.fromArray(t.min),this.max.fromArray(t.max),this}}const _points=[new Vector3,new Vector3,new Vector3,new Vector3,new Vector3,new Vector3,new Vector3,new Vector3],_vector$b=new Vector3,_box$4=new Box3,_v0$2=new Vector3,_v1$7=new Vector3,_v2$4=new Vector3,_f0=new Vector3,_f1=new Vector3,_f2=new Vector3,_center=new Vector3,_extents=new Vector3,_triangleNormal=new Vector3,_testAxis=new Vector3;function satForAxes(n,t,r,i,g){for(let $=0,V=n.length-3;$<=V;$+=3){_testAxis.fromArray(n,$);const re=g.x*Math.abs(_testAxis.x)+g.y*Math.abs(_testAxis.y)+g.z*Math.abs(_testAxis.z),ie=t.dot(_testAxis),ae=r.dot(_testAxis),oe=i.dot(_testAxis);if(Math.max(-Math.max(ie,ae,oe),Math.min(ie,ae,oe))>re)return!1}return!0}const _box$3=new Box3,_v1$6=new Vector3,_v2$3=new Vector3;class Sphere{constructor(t=new Vector3,r=-1){this.isSphere=!0,this.center=t,this.radius=r}set(t,r){return this.center.copy(t),this.radius=r,this}setFromPoints(t,r){const i=this.center;r!==void 0?i.copy(r):_box$3.setFromPoints(t).getCenter(i);let g=0;for(let $=0,V=t.length;$this.radius*this.radius&&(r.sub(this.center).normalize(),r.multiplyScalar(this.radius).add(this.center)),r}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;_v1$6.subVectors(t,this.center);const r=_v1$6.lengthSq();if(r>this.radius*this.radius){const i=Math.sqrt(r),g=(i-this.radius)*.5;this.center.addScaledVector(_v1$6,g/i),this.radius+=g}return this}union(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(this.center.equals(t.center)===!0?this.radius=Math.max(this.radius,t.radius):(_v2$3.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(_v1$6.copy(t.center).add(_v2$3)),this.expandByPoint(_v1$6.copy(t.center).sub(_v2$3))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(t){return this.radius=t.radius,this.center.fromArray(t.center),this}}const _vector$a=new Vector3,_segCenter=new Vector3,_segDir=new Vector3,_diff=new Vector3,_edge1=new Vector3,_edge2=new Vector3,_normal$1=new Vector3;class Ray{constructor(t=new Vector3,r=new Vector3(0,0,-1)){this.origin=t,this.direction=r}set(t,r){return this.origin.copy(t),this.direction.copy(r),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,r){return r.copy(this.origin).addScaledVector(this.direction,t)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,_vector$a)),this}closestPointToPoint(t,r){r.subVectors(t,this.origin);const i=r.dot(this.direction);return i<0?r.copy(this.origin):r.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const r=_vector$a.subVectors(t,this.origin).dot(this.direction);return r<0?this.origin.distanceToSquared(t):(_vector$a.copy(this.origin).addScaledVector(this.direction,r),_vector$a.distanceToSquared(t))}distanceSqToSegment(t,r,i,g){_segCenter.copy(t).add(r).multiplyScalar(.5),_segDir.copy(r).sub(t).normalize(),_diff.copy(this.origin).sub(_segCenter);const $=t.distanceTo(r)*.5,V=-this.direction.dot(_segDir),re=_diff.dot(this.direction),ie=-_diff.dot(_segDir),ae=_diff.lengthSq(),oe=Math.abs(1-V*V);let le,ue,de,he;if(oe>0)if(le=V*ie-re,ue=V*re-ie,he=$*oe,le>=0)if(ue>=-he)if(ue<=he){const pe=1/oe;le*=pe,ue*=pe,de=le*(le+V*ue+2*re)+ue*(V*le+ue+2*ie)+ae}else ue=$,le=Math.max(0,-(V*ue+re)),de=-le*le+ue*(ue+2*ie)+ae;else ue=-$,le=Math.max(0,-(V*ue+re)),de=-le*le+ue*(ue+2*ie)+ae;else ue<=-he?(le=Math.max(0,-(-V*$+re)),ue=le>0?-$:Math.min(Math.max(-$,-ie),$),de=-le*le+ue*(ue+2*ie)+ae):ue<=he?(le=0,ue=Math.min(Math.max(-$,-ie),$),de=ue*(ue+2*ie)+ae):(le=Math.max(0,-(V*$+re)),ue=le>0?$:Math.min(Math.max(-$,-ie),$),de=-le*le+ue*(ue+2*ie)+ae);else ue=V>0?-$:$,le=Math.max(0,-(V*ue+re)),de=-le*le+ue*(ue+2*ie)+ae;return i&&i.copy(this.origin).addScaledVector(this.direction,le),g&&g.copy(_segCenter).addScaledVector(_segDir,ue),de}intersectSphere(t,r){_vector$a.subVectors(t.center,this.origin);const i=_vector$a.dot(this.direction),g=_vector$a.dot(_vector$a)-i*i,$=t.radius*t.radius;if(g>$)return null;const V=Math.sqrt($-g),re=i-V,ie=i+V;return ie<0?null:re<0?this.at(ie,r):this.at(re,r)}intersectsSphere(t){return t.radius<0?!1:this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const r=t.normal.dot(this.direction);if(r===0)return t.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(t.normal)+t.constant)/r;return i>=0?i:null}intersectPlane(t,r){const i=this.distanceToPlane(t);return i===null?null:this.at(i,r)}intersectsPlane(t){const r=t.distanceToPoint(this.origin);return r===0||t.normal.dot(this.direction)*r<0}intersectBox(t,r){let i,g,$,V,re,ie;const ae=1/this.direction.x,oe=1/this.direction.y,le=1/this.direction.z,ue=this.origin;return ae>=0?(i=(t.min.x-ue.x)*ae,g=(t.max.x-ue.x)*ae):(i=(t.max.x-ue.x)*ae,g=(t.min.x-ue.x)*ae),oe>=0?($=(t.min.y-ue.y)*oe,V=(t.max.y-ue.y)*oe):($=(t.max.y-ue.y)*oe,V=(t.min.y-ue.y)*oe),i>V||$>g||(($>i||isNaN(i))&&(i=$),(V=0?(re=(t.min.z-ue.z)*le,ie=(t.max.z-ue.z)*le):(re=(t.max.z-ue.z)*le,ie=(t.min.z-ue.z)*le),i>ie||re>g)||((re>i||i!==i)&&(i=re),(ie=0?i:g,r)}intersectsBox(t){return this.intersectBox(t,_vector$a)!==null}intersectTriangle(t,r,i,g,$){_edge1.subVectors(r,t),_edge2.subVectors(i,t),_normal$1.crossVectors(_edge1,_edge2);let V=this.direction.dot(_normal$1),re;if(V>0){if(g)return null;re=1}else if(V<0)re=-1,V=-V;else return null;_diff.subVectors(this.origin,t);const ie=re*this.direction.dot(_edge2.crossVectors(_diff,_edge2));if(ie<0)return null;const ae=re*this.direction.dot(_edge1.cross(_diff));if(ae<0||ie+ae>V)return null;const oe=-re*_diff.dot(_normal$1);return oe<0?null:this.at(oe/V,$)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Matrix4{constructor(t,r,i,g,$,V,re,ie,ae,oe,le,ue,de,he,pe,_e){Matrix4.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],t!==void 0&&this.set(t,r,i,g,$,V,re,ie,ae,oe,le,ue,de,he,pe,_e)}set(t,r,i,g,$,V,re,ie,ae,oe,le,ue,de,he,pe,_e){const Ce=this.elements;return Ce[0]=t,Ce[4]=r,Ce[8]=i,Ce[12]=g,Ce[1]=$,Ce[5]=V,Ce[9]=re,Ce[13]=ie,Ce[2]=ae,Ce[6]=oe,Ce[10]=le,Ce[14]=ue,Ce[3]=de,Ce[7]=he,Ce[11]=pe,Ce[15]=_e,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Matrix4().fromArray(this.elements)}copy(t){const r=this.elements,i=t.elements;return r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=i[3],r[4]=i[4],r[5]=i[5],r[6]=i[6],r[7]=i[7],r[8]=i[8],r[9]=i[9],r[10]=i[10],r[11]=i[11],r[12]=i[12],r[13]=i[13],r[14]=i[14],r[15]=i[15],this}copyPosition(t){const r=this.elements,i=t.elements;return r[12]=i[12],r[13]=i[13],r[14]=i[14],this}setFromMatrix3(t){const r=t.elements;return this.set(r[0],r[3],r[6],0,r[1],r[4],r[7],0,r[2],r[5],r[8],0,0,0,0,1),this}extractBasis(t,r,i){return this.determinant()===0?(t.set(1,0,0),r.set(0,1,0),i.set(0,0,1),this):(t.setFromMatrixColumn(this,0),r.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this)}makeBasis(t,r,i){return this.set(t.x,r.x,i.x,0,t.y,r.y,i.y,0,t.z,r.z,i.z,0,0,0,0,1),this}extractRotation(t){if(t.determinant()===0)return this.identity();const r=this.elements,i=t.elements,g=1/_v1$5.setFromMatrixColumn(t,0).length(),$=1/_v1$5.setFromMatrixColumn(t,1).length(),V=1/_v1$5.setFromMatrixColumn(t,2).length();return r[0]=i[0]*g,r[1]=i[1]*g,r[2]=i[2]*g,r[3]=0,r[4]=i[4]*$,r[5]=i[5]*$,r[6]=i[6]*$,r[7]=0,r[8]=i[8]*V,r[9]=i[9]*V,r[10]=i[10]*V,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,this}makeRotationFromEuler(t){const r=this.elements,i=t.x,g=t.y,$=t.z,V=Math.cos(i),re=Math.sin(i),ie=Math.cos(g),ae=Math.sin(g),oe=Math.cos($),le=Math.sin($);if(t.order==="XYZ"){const ue=V*oe,de=V*le,he=re*oe,pe=re*le;r[0]=ie*oe,r[4]=-ie*le,r[8]=ae,r[1]=de+he*ae,r[5]=ue-pe*ae,r[9]=-re*ie,r[2]=pe-ue*ae,r[6]=he+de*ae,r[10]=V*ie}else if(t.order==="YXZ"){const ue=ie*oe,de=ie*le,he=ae*oe,pe=ae*le;r[0]=ue+pe*re,r[4]=he*re-de,r[8]=V*ae,r[1]=V*le,r[5]=V*oe,r[9]=-re,r[2]=de*re-he,r[6]=pe+ue*re,r[10]=V*ie}else if(t.order==="ZXY"){const ue=ie*oe,de=ie*le,he=ae*oe,pe=ae*le;r[0]=ue-pe*re,r[4]=-V*le,r[8]=he+de*re,r[1]=de+he*re,r[5]=V*oe,r[9]=pe-ue*re,r[2]=-V*ae,r[6]=re,r[10]=V*ie}else if(t.order==="ZYX"){const ue=V*oe,de=V*le,he=re*oe,pe=re*le;r[0]=ie*oe,r[4]=he*ae-de,r[8]=ue*ae+pe,r[1]=ie*le,r[5]=pe*ae+ue,r[9]=de*ae-he,r[2]=-ae,r[6]=re*ie,r[10]=V*ie}else if(t.order==="YZX"){const ue=V*ie,de=V*ae,he=re*ie,pe=re*ae;r[0]=ie*oe,r[4]=pe-ue*le,r[8]=he*le+de,r[1]=le,r[5]=V*oe,r[9]=-re*oe,r[2]=-ae*oe,r[6]=de*le+he,r[10]=ue-pe*le}else if(t.order==="XZY"){const ue=V*ie,de=V*ae,he=re*ie,pe=re*ae;r[0]=ie*oe,r[4]=-le,r[8]=ae*oe,r[1]=ue*le+pe,r[5]=V*oe,r[9]=de*le-he,r[2]=he*le-de,r[6]=re*oe,r[10]=pe*le+ue}return r[3]=0,r[7]=0,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,this}makeRotationFromQuaternion(t){return this.compose(_zero,t,_one)}lookAt(t,r,i){const g=this.elements;return _z.subVectors(t,r),_z.lengthSq()===0&&(_z.z=1),_z.normalize(),_x.crossVectors(i,_z),_x.lengthSq()===0&&(Math.abs(i.z)===1?_z.x+=1e-4:_z.z+=1e-4,_z.normalize(),_x.crossVectors(i,_z)),_x.normalize(),_y.crossVectors(_z,_x),g[0]=_x.x,g[4]=_y.x,g[8]=_z.x,g[1]=_x.y,g[5]=_y.y,g[9]=_z.y,g[2]=_x.z,g[6]=_y.z,g[10]=_z.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,r){const i=t.elements,g=r.elements,$=this.elements,V=i[0],re=i[4],ie=i[8],ae=i[12],oe=i[1],le=i[5],ue=i[9],de=i[13],he=i[2],pe=i[6],_e=i[10],Ce=i[14],xe=i[3],Ie=i[7],Ne=i[11],Oe=i[15],$e=g[0],Ve=g[4],Ue=g[8],Fe=g[12],ze=g[1],Pt=g[5],qe=g[9],Et=g[13],kt=g[2],At=g[6],Dt=g[10],Lt=g[14],jt=g[3],hn=g[7],vn=g[11],_n=g[15];return $[0]=V*$e+re*ze+ie*kt+ae*jt,$[4]=V*Ve+re*Pt+ie*At+ae*hn,$[8]=V*Ue+re*qe+ie*Dt+ae*vn,$[12]=V*Fe+re*Et+ie*Lt+ae*_n,$[1]=oe*$e+le*ze+ue*kt+de*jt,$[5]=oe*Ve+le*Pt+ue*At+de*hn,$[9]=oe*Ue+le*qe+ue*Dt+de*vn,$[13]=oe*Fe+le*Et+ue*Lt+de*_n,$[2]=he*$e+pe*ze+_e*kt+Ce*jt,$[6]=he*Ve+pe*Pt+_e*At+Ce*hn,$[10]=he*Ue+pe*qe+_e*Dt+Ce*vn,$[14]=he*Fe+pe*Et+_e*Lt+Ce*_n,$[3]=xe*$e+Ie*ze+Ne*kt+Oe*jt,$[7]=xe*Ve+Ie*Pt+Ne*At+Oe*hn,$[11]=xe*Ue+Ie*qe+Ne*Dt+Oe*vn,$[15]=xe*Fe+Ie*Et+Ne*Lt+Oe*_n,this}multiplyScalar(t){const r=this.elements;return r[0]*=t,r[4]*=t,r[8]*=t,r[12]*=t,r[1]*=t,r[5]*=t,r[9]*=t,r[13]*=t,r[2]*=t,r[6]*=t,r[10]*=t,r[14]*=t,r[3]*=t,r[7]*=t,r[11]*=t,r[15]*=t,this}determinant(){const t=this.elements,r=t[0],i=t[4],g=t[8],$=t[12],V=t[1],re=t[5],ie=t[9],ae=t[13],oe=t[2],le=t[6],ue=t[10],de=t[14],he=t[3],pe=t[7],_e=t[11],Ce=t[15],xe=ie*de-ae*ue,Ie=re*de-ae*le,Ne=re*ue-ie*le,Oe=V*de-ae*oe,$e=V*ue-ie*oe,Ve=V*le-re*oe;return r*(pe*xe-_e*Ie+Ce*Ne)-i*(he*xe-_e*Oe+Ce*$e)+g*(he*Ie-pe*Oe+Ce*Ve)-$*(he*Ne-pe*$e+_e*Ve)}transpose(){const t=this.elements;let r;return r=t[1],t[1]=t[4],t[4]=r,r=t[2],t[2]=t[8],t[8]=r,r=t[6],t[6]=t[9],t[9]=r,r=t[3],t[3]=t[12],t[12]=r,r=t[7],t[7]=t[13],t[13]=r,r=t[11],t[11]=t[14],t[14]=r,this}setPosition(t,r,i){const g=this.elements;return t.isVector3?(g[12]=t.x,g[13]=t.y,g[14]=t.z):(g[12]=t,g[13]=r,g[14]=i),this}invert(){const t=this.elements,r=t[0],i=t[1],g=t[2],$=t[3],V=t[4],re=t[5],ie=t[6],ae=t[7],oe=t[8],le=t[9],ue=t[10],de=t[11],he=t[12],pe=t[13],_e=t[14],Ce=t[15],xe=le*_e*ae-pe*ue*ae+pe*ie*de-re*_e*de-le*ie*Ce+re*ue*Ce,Ie=he*ue*ae-oe*_e*ae-he*ie*de+V*_e*de+oe*ie*Ce-V*ue*Ce,Ne=oe*pe*ae-he*le*ae+he*re*de-V*pe*de-oe*re*Ce+V*le*Ce,Oe=he*le*ie-oe*pe*ie-he*re*ue+V*pe*ue+oe*re*_e-V*le*_e,$e=r*xe+i*Ie+g*Ne+$*Oe;if($e===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const Ve=1/$e;return t[0]=xe*Ve,t[1]=(pe*ue*$-le*_e*$-pe*g*de+i*_e*de+le*g*Ce-i*ue*Ce)*Ve,t[2]=(re*_e*$-pe*ie*$+pe*g*ae-i*_e*ae-re*g*Ce+i*ie*Ce)*Ve,t[3]=(le*ie*$-re*ue*$-le*g*ae+i*ue*ae+re*g*de-i*ie*de)*Ve,t[4]=Ie*Ve,t[5]=(oe*_e*$-he*ue*$+he*g*de-r*_e*de-oe*g*Ce+r*ue*Ce)*Ve,t[6]=(he*ie*$-V*_e*$-he*g*ae+r*_e*ae+V*g*Ce-r*ie*Ce)*Ve,t[7]=(V*ue*$-oe*ie*$+oe*g*ae-r*ue*ae-V*g*de+r*ie*de)*Ve,t[8]=Ne*Ve,t[9]=(he*le*$-oe*pe*$-he*i*de+r*pe*de+oe*i*Ce-r*le*Ce)*Ve,t[10]=(V*pe*$-he*re*$+he*i*ae-r*pe*ae-V*i*Ce+r*re*Ce)*Ve,t[11]=(oe*re*$-V*le*$-oe*i*ae+r*le*ae+V*i*de-r*re*de)*Ve,t[12]=Oe*Ve,t[13]=(oe*pe*g-he*le*g+he*i*ue-r*pe*ue-oe*i*_e+r*le*_e)*Ve,t[14]=(he*re*g-V*pe*g-he*i*ie+r*pe*ie+V*i*_e-r*re*_e)*Ve,t[15]=(V*le*g-oe*re*g+oe*i*ie-r*le*ie-V*i*ue+r*re*ue)*Ve,this}scale(t){const r=this.elements,i=t.x,g=t.y,$=t.z;return r[0]*=i,r[4]*=g,r[8]*=$,r[1]*=i,r[5]*=g,r[9]*=$,r[2]*=i,r[6]*=g,r[10]*=$,r[3]*=i,r[7]*=g,r[11]*=$,this}getMaxScaleOnAxis(){const t=this.elements,r=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],g=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(r,i,g))}makeTranslation(t,r,i){return t.isVector3?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,r,0,0,1,i,0,0,0,1),this}makeRotationX(t){const r=Math.cos(t),i=Math.sin(t);return this.set(1,0,0,0,0,r,-i,0,0,i,r,0,0,0,0,1),this}makeRotationY(t){const r=Math.cos(t),i=Math.sin(t);return this.set(r,0,i,0,0,1,0,0,-i,0,r,0,0,0,0,1),this}makeRotationZ(t){const r=Math.cos(t),i=Math.sin(t);return this.set(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,r){const i=Math.cos(r),g=Math.sin(r),$=1-i,V=t.x,re=t.y,ie=t.z,ae=$*V,oe=$*re;return this.set(ae*V+i,ae*re-g*ie,ae*ie+g*re,0,ae*re+g*ie,oe*re+i,oe*ie-g*V,0,ae*ie-g*re,oe*ie+g*V,$*ie*ie+i,0,0,0,0,1),this}makeScale(t,r,i){return this.set(t,0,0,0,0,r,0,0,0,0,i,0,0,0,0,1),this}makeShear(t,r,i,g,$,V){return this.set(1,i,$,0,t,1,V,0,r,g,1,0,0,0,0,1),this}compose(t,r,i){const g=this.elements,$=r._x,V=r._y,re=r._z,ie=r._w,ae=$+$,oe=V+V,le=re+re,ue=$*ae,de=$*oe,he=$*le,pe=V*oe,_e=V*le,Ce=re*le,xe=ie*ae,Ie=ie*oe,Ne=ie*le,Oe=i.x,$e=i.y,Ve=i.z;return g[0]=(1-(pe+Ce))*Oe,g[1]=(de+Ne)*Oe,g[2]=(he-Ie)*Oe,g[3]=0,g[4]=(de-Ne)*$e,g[5]=(1-(ue+Ce))*$e,g[6]=(_e+xe)*$e,g[7]=0,g[8]=(he+Ie)*Ve,g[9]=(_e-xe)*Ve,g[10]=(1-(ue+pe))*Ve,g[11]=0,g[12]=t.x,g[13]=t.y,g[14]=t.z,g[15]=1,this}decompose(t,r,i){const g=this.elements;if(t.x=g[12],t.y=g[13],t.z=g[14],this.determinant()===0)return i.set(1,1,1),r.identity(),this;let $=_v1$5.set(g[0],g[1],g[2]).length();const V=_v1$5.set(g[4],g[5],g[6]).length(),re=_v1$5.set(g[8],g[9],g[10]).length();this.determinant()<0&&($=-$),_m1$2.copy(this);const ae=1/$,oe=1/V,le=1/re;return _m1$2.elements[0]*=ae,_m1$2.elements[1]*=ae,_m1$2.elements[2]*=ae,_m1$2.elements[4]*=oe,_m1$2.elements[5]*=oe,_m1$2.elements[6]*=oe,_m1$2.elements[8]*=le,_m1$2.elements[9]*=le,_m1$2.elements[10]*=le,r.setFromRotationMatrix(_m1$2),i.x=$,i.y=V,i.z=re,this}makePerspective(t,r,i,g,$,V,re=WebGLCoordinateSystem,ie=!1){const ae=this.elements,oe=2*$/(r-t),le=2*$/(i-g),ue=(r+t)/(r-t),de=(i+g)/(i-g);let he,pe;if(ie)he=$/(V-$),pe=V*$/(V-$);else if(re===WebGLCoordinateSystem)he=-(V+$)/(V-$),pe=-2*V*$/(V-$);else if(re===WebGPUCoordinateSystem)he=-V/(V-$),pe=-V*$/(V-$);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+re);return ae[0]=oe,ae[4]=0,ae[8]=ue,ae[12]=0,ae[1]=0,ae[5]=le,ae[9]=de,ae[13]=0,ae[2]=0,ae[6]=0,ae[10]=he,ae[14]=pe,ae[3]=0,ae[7]=0,ae[11]=-1,ae[15]=0,this}makeOrthographic(t,r,i,g,$,V,re=WebGLCoordinateSystem,ie=!1){const ae=this.elements,oe=2/(r-t),le=2/(i-g),ue=-(r+t)/(r-t),de=-(i+g)/(i-g);let he,pe;if(ie)he=1/(V-$),pe=V/(V-$);else if(re===WebGLCoordinateSystem)he=-2/(V-$),pe=-(V+$)/(V-$);else if(re===WebGPUCoordinateSystem)he=-1/(V-$),pe=-$/(V-$);else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+re);return ae[0]=oe,ae[4]=0,ae[8]=0,ae[12]=ue,ae[1]=0,ae[5]=le,ae[9]=0,ae[13]=de,ae[2]=0,ae[6]=0,ae[10]=he,ae[14]=pe,ae[3]=0,ae[7]=0,ae[11]=0,ae[15]=1,this}equals(t){const r=this.elements,i=t.elements;for(let g=0;g<16;g++)if(r[g]!==i[g])return!1;return!0}fromArray(t,r=0){for(let i=0;i<16;i++)this.elements[i]=t[i+r];return this}toArray(t=[],r=0){const i=this.elements;return t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2],t[r+3]=i[3],t[r+4]=i[4],t[r+5]=i[5],t[r+6]=i[6],t[r+7]=i[7],t[r+8]=i[8],t[r+9]=i[9],t[r+10]=i[10],t[r+11]=i[11],t[r+12]=i[12],t[r+13]=i[13],t[r+14]=i[14],t[r+15]=i[15],t}}const _v1$5=new Vector3,_m1$2=new Matrix4,_zero=new Vector3(0,0,0),_one=new Vector3(1,1,1),_x=new Vector3,_y=new Vector3,_z=new Vector3,_matrix$2=new Matrix4,_quaternion$3=new Quaternion;class Euler{constructor(t=0,r=0,i=0,g=Euler.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=r,this._z=i,this._order=g}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,r,i,g=this._order){return this._x=t,this._y=r,this._z=i,this._order=g,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,r=this._order,i=!0){const g=t.elements,$=g[0],V=g[4],re=g[8],ie=g[1],ae=g[5],oe=g[9],le=g[2],ue=g[6],de=g[10];switch(r){case"XYZ":this._y=Math.asin(clamp$1(re,-1,1)),Math.abs(re)<.9999999?(this._x=Math.atan2(-oe,de),this._z=Math.atan2(-V,$)):(this._x=Math.atan2(ue,ae),this._z=0);break;case"YXZ":this._x=Math.asin(-clamp$1(oe,-1,1)),Math.abs(oe)<.9999999?(this._y=Math.atan2(re,de),this._z=Math.atan2(ie,ae)):(this._y=Math.atan2(-le,$),this._z=0);break;case"ZXY":this._x=Math.asin(clamp$1(ue,-1,1)),Math.abs(ue)<.9999999?(this._y=Math.atan2(-le,de),this._z=Math.atan2(-V,ae)):(this._y=0,this._z=Math.atan2(ie,$));break;case"ZYX":this._y=Math.asin(-clamp$1(le,-1,1)),Math.abs(le)<.9999999?(this._x=Math.atan2(ue,de),this._z=Math.atan2(ie,$)):(this._x=0,this._z=Math.atan2(-V,ae));break;case"YZX":this._z=Math.asin(clamp$1(ie,-1,1)),Math.abs(ie)<.9999999?(this._x=Math.atan2(-oe,ae),this._y=Math.atan2(-le,$)):(this._x=0,this._y=Math.atan2(re,de));break;case"XZY":this._z=Math.asin(-clamp$1(V,-1,1)),Math.abs(V)<.9999999?(this._x=Math.atan2(ue,ae),this._y=Math.atan2(re,$)):(this._x=Math.atan2(-oe,de),this._y=0);break;default:warn("Euler: .setFromRotationMatrix() encountered an unknown order: "+r)}return this._order=r,i===!0&&this._onChangeCallback(),this}setFromQuaternion(t,r,i){return _matrix$2.makeRotationFromQuaternion(t),this.setFromRotationMatrix(_matrix$2,r,i)}setFromVector3(t,r=this._order){return this.set(t.x,t.y,t.z,r)}reorder(t){return _quaternion$3.setFromEuler(this),this.setFromQuaternion(_quaternion$3,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],r=0){return t[r]=this._x,t[r+1]=this._y,t[r+2]=this._z,t[r+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Euler.DEFAULT_ORDER="XYZ";class Layers{constructor(){this.mask=1}set(t){this.mask=(1<>>0}enable(t){this.mask|=1<1){for(let r=0;r1){for(let i=0;i0&&(g.userData=this.userData),g.layers=this.layers.mask,g.matrix=this.matrix.toArray(),g.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(g.matrixAutoUpdate=!1),this.isInstancedMesh&&(g.type="InstancedMesh",g.count=this.count,g.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(g.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(g.type="BatchedMesh",g.perObjectFrustumCulled=this.perObjectFrustumCulled,g.sortObjects=this.sortObjects,g.drawRanges=this._drawRanges,g.reservedRanges=this._reservedRanges,g.geometryInfo=this._geometryInfo.map(re=>({...re,boundingBox:re.boundingBox?re.boundingBox.toJSON():void 0,boundingSphere:re.boundingSphere?re.boundingSphere.toJSON():void 0})),g.instanceInfo=this._instanceInfo.map(re=>({...re})),g.availableInstanceIds=this._availableInstanceIds.slice(),g.availableGeometryIds=this._availableGeometryIds.slice(),g.nextIndexStart=this._nextIndexStart,g.nextVertexStart=this._nextVertexStart,g.geometryCount=this._geometryCount,g.maxInstanceCount=this._maxInstanceCount,g.maxVertexCount=this._maxVertexCount,g.maxIndexCount=this._maxIndexCount,g.geometryInitialized=this._geometryInitialized,g.matricesTexture=this._matricesTexture.toJSON(t),g.indirectTexture=this._indirectTexture.toJSON(t),this._colorsTexture!==null&&(g.colorsTexture=this._colorsTexture.toJSON(t)),this.boundingSphere!==null&&(g.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(g.boundingBox=this.boundingBox.toJSON()));function $(re,ie){return re[ie.uuid]===void 0&&(re[ie.uuid]=ie.toJSON(t)),ie.uuid}if(this.isScene)this.background&&(this.background.isColor?g.background=this.background.toJSON():this.background.isTexture&&(g.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(g.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){g.geometry=$(t.geometries,this.geometry);const re=this.geometry.parameters;if(re!==void 0&&re.shapes!==void 0){const ie=re.shapes;if(Array.isArray(ie))for(let ae=0,oe=ie.length;ae0){g.children=[];for(let re=0;re0){g.animations=[];for(let re=0;re0&&(i.geometries=re),ie.length>0&&(i.materials=ie),ae.length>0&&(i.textures=ae),oe.length>0&&(i.images=oe),le.length>0&&(i.shapes=le),ue.length>0&&(i.skeletons=ue),de.length>0&&(i.animations=de),he.length>0&&(i.nodes=he)}return i.object=g,i;function V(re){const ie=[];for(const ae in re){const oe=re[ae];delete oe.metadata,ie.push(oe)}return ie}}clone(t){return new this.constructor().copy(this,t)}copy(t,r=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),r===!0)for(let i=0;i0?g.multiplyScalar(1/Math.sqrt($)):g.set(0,0,0)}static getBarycoord(t,r,i,g,$){_v0$1$1.subVectors(g,r),_v1$3.subVectors(i,r),_v2$2.subVectors(t,r);const V=_v0$1$1.dot(_v0$1$1),re=_v0$1$1.dot(_v1$3),ie=_v0$1$1.dot(_v2$2),ae=_v1$3.dot(_v1$3),oe=_v1$3.dot(_v2$2),le=V*ae-re*re;if(le===0)return $.set(0,0,0),null;const ue=1/le,de=(ae*ie-re*oe)*ue,he=(V*oe-re*ie)*ue;return $.set(1-de-he,he,de)}static containsPoint(t,r,i,g){return this.getBarycoord(t,r,i,g,_v3$2)===null?!1:_v3$2.x>=0&&_v3$2.y>=0&&_v3$2.x+_v3$2.y<=1}static getInterpolation(t,r,i,g,$,V,re,ie){return this.getBarycoord(t,r,i,g,_v3$2)===null?(ie.x=0,ie.y=0,"z"in ie&&(ie.z=0),"w"in ie&&(ie.w=0),null):(ie.setScalar(0),ie.addScaledVector($,_v3$2.x),ie.addScaledVector(V,_v3$2.y),ie.addScaledVector(re,_v3$2.z),ie)}static getInterpolatedAttribute(t,r,i,g,$,V){return _v40.setScalar(0),_v41.setScalar(0),_v42.setScalar(0),_v40.fromBufferAttribute(t,r),_v41.fromBufferAttribute(t,i),_v42.fromBufferAttribute(t,g),V.setScalar(0),V.addScaledVector(_v40,$.x),V.addScaledVector(_v41,$.y),V.addScaledVector(_v42,$.z),V}static isFrontFacing(t,r,i,g){return _v0$1$1.subVectors(i,r),_v1$3.subVectors(t,r),_v0$1$1.cross(_v1$3).dot(g)<0}set(t,r,i){return this.a.copy(t),this.b.copy(r),this.c.copy(i),this}setFromPointsAndIndices(t,r,i,g){return this.a.copy(t[r]),this.b.copy(t[i]),this.c.copy(t[g]),this}setFromAttributeAndIndices(t,r,i,g){return this.a.fromBufferAttribute(t,r),this.b.fromBufferAttribute(t,i),this.c.fromBufferAttribute(t,g),this}clone(){return new this.constructor().copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return _v0$1$1.subVectors(this.c,this.b),_v1$3.subVectors(this.a,this.b),_v0$1$1.cross(_v1$3).length()*.5}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return di.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,r){return di.getBarycoord(t,this.a,this.b,this.c,r)}getInterpolation(t,r,i,g,$){return di.getInterpolation(t,this.a,this.b,this.c,r,i,g,$)}containsPoint(t){return di.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return di.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,r){const i=this.a,g=this.b,$=this.c;let V,re;_vab.subVectors(g,i),_vac.subVectors($,i),_vap.subVectors(t,i);const ie=_vab.dot(_vap),ae=_vac.dot(_vap);if(ie<=0&&ae<=0)return r.copy(i);_vbp.subVectors(t,g);const oe=_vab.dot(_vbp),le=_vac.dot(_vbp);if(oe>=0&&le<=oe)return r.copy(g);const ue=ie*le-oe*ae;if(ue<=0&&ie>=0&&oe<=0)return V=ie/(ie-oe),r.copy(i).addScaledVector(_vab,V);_vcp.subVectors(t,$);const de=_vab.dot(_vcp),he=_vac.dot(_vcp);if(he>=0&&de<=he)return r.copy($);const pe=de*ae-ie*he;if(pe<=0&&ae>=0&&he<=0)return re=ae/(ae-he),r.copy(i).addScaledVector(_vac,re);const _e=oe*he-de*le;if(_e<=0&&le-oe>=0&&de-he>=0)return _vbc.subVectors($,g),re=(le-oe)/(le-oe+(de-he)),r.copy(g).addScaledVector(_vbc,re);const Ce=1/(_e+pe+ue);return V=pe*Ce,re=ue*Ce,r.copy(i).addScaledVector(_vab,V).addScaledVector(_vac,re)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}};const _colorKeywords={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},_hslA={h:0,s:0,l:0},_hslB={h:0,s:0,l:0};function hue2rgb(n,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?n+(t-n)*6*r:r<1/2?t:r<2/3?n+(t-n)*6*(2/3-r):n}class Color{constructor(t,r,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,r,i)}set(t,r,i){if(r===void 0&&i===void 0){const g=t;g&&g.isColor?this.copy(g):typeof g=="number"?this.setHex(g):typeof g=="string"&&this.setStyle(g)}else this.setRGB(t,r,i);return this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,r=SRGBColorSpace){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,ColorManagement.colorSpaceToWorking(this,r),this}setRGB(t,r,i,g=ColorManagement.workingColorSpace){return this.r=t,this.g=r,this.b=i,ColorManagement.colorSpaceToWorking(this,g),this}setHSL(t,r,i,g=ColorManagement.workingColorSpace){if(t=euclideanModulo(t,1),r=clamp$1(r,0,1),i=clamp$1(i,0,1),r===0)this.r=this.g=this.b=i;else{const $=i<=.5?i*(1+r):i+r-i*r,V=2*i-$;this.r=hue2rgb(V,$,t+1/3),this.g=hue2rgb(V,$,t),this.b=hue2rgb(V,$,t-1/3)}return ColorManagement.colorSpaceToWorking(this,g),this}setStyle(t,r=SRGBColorSpace){function i($){$!==void 0&&parseFloat($)<1&&warn("Color: Alpha component of "+t+" will be ignored.")}let g;if(g=/^(\w+)\(([^\)]*)\)/.exec(t)){let $;const V=g[1],re=g[2];switch(V){case"rgb":case"rgba":if($=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(re))return i($[4]),this.setRGB(Math.min(255,parseInt($[1],10))/255,Math.min(255,parseInt($[2],10))/255,Math.min(255,parseInt($[3],10))/255,r);if($=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(re))return i($[4]),this.setRGB(Math.min(100,parseInt($[1],10))/100,Math.min(100,parseInt($[2],10))/100,Math.min(100,parseInt($[3],10))/100,r);break;case"hsl":case"hsla":if($=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(re))return i($[4]),this.setHSL(parseFloat($[1])/360,parseFloat($[2])/100,parseFloat($[3])/100,r);break;default:warn("Color: Unknown color model "+t)}}else if(g=/^\#([A-Fa-f\d]+)$/.exec(t)){const $=g[1],V=$.length;if(V===3)return this.setRGB(parseInt($.charAt(0),16)/15,parseInt($.charAt(1),16)/15,parseInt($.charAt(2),16)/15,r);if(V===6)return this.setHex(parseInt($,16),r);warn("Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,r);return this}setColorName(t,r=SRGBColorSpace){const i=_colorKeywords[t.toLowerCase()];return i!==void 0?this.setHex(i,r):warn("Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=SRGBToLinear(t.r),this.g=SRGBToLinear(t.g),this.b=SRGBToLinear(t.b),this}copyLinearToSRGB(t){return this.r=LinearToSRGB(t.r),this.g=LinearToSRGB(t.g),this.b=LinearToSRGB(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=SRGBColorSpace){return ColorManagement.workingToColorSpace(_color.copy(this),t),Math.round(clamp$1(_color.r*255,0,255))*65536+Math.round(clamp$1(_color.g*255,0,255))*256+Math.round(clamp$1(_color.b*255,0,255))}getHexString(t=SRGBColorSpace){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,r=ColorManagement.workingColorSpace){ColorManagement.workingToColorSpace(_color.copy(this),r);const i=_color.r,g=_color.g,$=_color.b,V=Math.max(i,g,$),re=Math.min(i,g,$);let ie,ae;const oe=(re+V)/2;if(re===V)ie=0,ae=0;else{const le=V-re;switch(ae=oe<=.5?le/(V+re):le/(2-V-re),V){case i:ie=(g-$)/le+(g<$?6:0);break;case g:ie=($-i)/le+2;break;case $:ie=(i-g)/le+4;break}ie/=6}return t.h=ie,t.s=ae,t.l=oe,t}getRGB(t,r=ColorManagement.workingColorSpace){return ColorManagement.workingToColorSpace(_color.copy(this),r),t.r=_color.r,t.g=_color.g,t.b=_color.b,t}getStyle(t=SRGBColorSpace){ColorManagement.workingToColorSpace(_color.copy(this),t);const r=_color.r,i=_color.g,g=_color.b;return t!==SRGBColorSpace?`color(${t} ${r.toFixed(3)} ${i.toFixed(3)} ${g.toFixed(3)})`:`rgb(${Math.round(r*255)},${Math.round(i*255)},${Math.round(g*255)})`}offsetHSL(t,r,i){return this.getHSL(_hslA),this.setHSL(_hslA.h+t,_hslA.s+r,_hslA.l+i)}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addColors(t,r){return this.r=t.r+r.r,this.g=t.g+r.g,this.b=t.b+r.b,this}addScalar(t){return this.r+=t,this.g+=t,this.b+=t,this}sub(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}lerp(t,r){return this.r+=(t.r-this.r)*r,this.g+=(t.g-this.g)*r,this.b+=(t.b-this.b)*r,this}lerpColors(t,r,i){return this.r=t.r+(r.r-t.r)*i,this.g=t.g+(r.g-t.g)*i,this.b=t.b+(r.b-t.b)*i,this}lerpHSL(t,r){this.getHSL(_hslA),t.getHSL(_hslB);const i=lerp$1(_hslA.h,_hslB.h,r),g=lerp$1(_hslA.s,_hslB.s,r),$=lerp$1(_hslA.l,_hslB.l,r);return this.setHSL(i,g,$),this}setFromVector3(t){return this.r=t.x,this.g=t.y,this.b=t.z,this}applyMatrix3(t){const r=this.r,i=this.g,g=this.b,$=t.elements;return this.r=$[0]*r+$[3]*i+$[6]*g,this.g=$[1]*r+$[4]*i+$[7]*g,this.b=$[2]*r+$[5]*i+$[8]*g,this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}fromArray(t,r=0){return this.r=t[r],this.g=t[r+1],this.b=t[r+2],this}toArray(t=[],r=0){return t[r]=this.r,t[r+1]=this.g,t[r+2]=this.b,t}fromBufferAttribute(t,r){return this.r=t.getX(r),this.g=t.getY(r),this.b=t.getZ(r),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const _color=new Color;Color.NAMES=_colorKeywords;let _materialId=0;class Material extends EventDispatcher{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:_materialId++}),this.uuid=generateUUID(),this.name="",this.type="Material",this.blending=NormalBlending,this.side=FrontSide,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=SrcAlphaFactor,this.blendDst=OneMinusSrcAlphaFactor,this.blendEquation=AddEquation,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new Color(0,0,0),this.blendAlpha=0,this.depthFunc=LessEqualDepth,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=AlwaysStencilFunc,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=KeepStencilOp,this.stencilZFail=KeepStencilOp,this.stencilZPass=KeepStencilOp,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.allowOverride=!0,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(t){this._alphaTest>0!=t>0&&this.version++,this._alphaTest=t}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(t!==void 0)for(const r in t){const i=t[r];if(i===void 0){warn(`Material: parameter '${r}' has value of undefined.`);continue}const g=this[r];if(g===void 0){warn(`Material: '${r}' is not a property of THREE.${this.type}.`);continue}g&&g.isColor?g.set(i):g&&g.isVector3&&i&&i.isVector3?g.copy(i):this[r]=i}}toJSON(t){const r=t===void 0||typeof t=="string";r&&(t={textures:{},images:{}});const i={metadata:{version:4.7,type:"Material",generator:"Material.toJSON"}};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(i.sheenColorMap=this.sheenColorMap.toJSON(t).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(i.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(t).uuid),this.dispersion!==void 0&&(i.dispersion=this.dispersion),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(t).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(t).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(t).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(t).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(t).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(t).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapRotation!==void 0&&(i.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(t).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(t).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(t).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==NormalBlending&&(i.blending=this.blending),this.side!==FrontSide&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==SrcAlphaFactor&&(i.blendSrc=this.blendSrc),this.blendDst!==OneMinusSrcAlphaFactor&&(i.blendDst=this.blendDst),this.blendEquation!==AddEquation&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==LessEqualDepth&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==AlwaysStencilFunc&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==KeepStencilOp&&(i.stencilFail=this.stencilFail),this.stencilZFail!==KeepStencilOp&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==KeepStencilOp&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.allowOverride===!1&&(i.allowOverride=!1),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function g($){const V=[];for(const re in $){const ie=$[re];delete ie.metadata,V.push(ie)}return V}if(r){const $=g(t.textures),V=g(t.images);$.length>0&&(i.textures=$),V.length>0&&(i.images=V)}return i}clone(){return new this.constructor().copy(this)}copy(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.blendColor.copy(t.blendColor),this.blendAlpha=t.blendAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const r=t.clippingPlanes;let i=null;if(r!==null){const g=r.length;i=new Array(g);for(let $=0;$!==g;++$)i[$]=r[$].clone()}return this.clippingPlanes=i,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaHash=t.alphaHash,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.allowOverride=t.allowOverride,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){t===!0&&this.version++}}class MeshBasicMaterial extends Material{constructor(t){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Color(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Euler,this.combine=MultiplyOperation,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapRotation.copy(t.envMapRotation),this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}}const _vector$9=new Vector3,_vector2$1=new Vector2;let _id$2=0;class BufferAttribute{constructor(t,r,i=!1){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:_id$2++}),this.name="",this.array=t,this.itemSize=r,this.count=t!==void 0?t.length/r:0,this.normalized=i,this.usage=StaticDrawUsage,this.updateRanges=[],this.gpuType=FloatType,this.version=0}onUploadCallback(){}set needsUpdate(t){t===!0&&this.version++}setUsage(t){return this.usage=t,this}addUpdateRange(t,r){this.updateRanges.push({start:t,count:r})}clearUpdateRanges(){this.updateRanges.length=0}copy(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this.gpuType=t.gpuType,this}copyAt(t,r,i){t*=this.itemSize,i*=r.itemSize;for(let g=0,$=this.itemSize;g<$;g++)this.array[t+g]=r.array[i+g];return this}copyArray(t){return this.array.set(t),this}applyMatrix3(t){if(this.itemSize===2)for(let r=0,i=this.count;rr.count&&warn("BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."),r.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Box3);const t=this.attributes.position,r=this.morphAttributes.position;if(t&&t.isGLBufferAttribute){error("BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new Vector3(-1/0,-1/0,-1/0),new Vector3(1/0,1/0,1/0));return}if(t!==void 0){if(this.boundingBox.setFromBufferAttribute(t),r)for(let i=0,g=r.length;i0&&(t.userData=this.userData),this.parameters!==void 0){const ie=this.parameters;for(const ae in ie)ie[ae]!==void 0&&(t[ae]=ie[ae]);return t}t.data={attributes:{}};const r=this.index;r!==null&&(t.data.index={type:r.array.constructor.name,array:Array.prototype.slice.call(r.array)});const i=this.attributes;for(const ie in i){const ae=i[ie];t.data.attributes[ie]=ae.toJSON(t.data)}const g={};let $=!1;for(const ie in this.morphAttributes){const ae=this.morphAttributes[ie],oe=[];for(let le=0,ue=ae.length;le0&&(g[ie]=oe,$=!0)}$&&(t.data.morphAttributes=g,t.data.morphTargetsRelative=this.morphTargetsRelative);const V=this.groups;V.length>0&&(t.data.groups=JSON.parse(JSON.stringify(V)));const re=this.boundingSphere;return re!==null&&(t.data.boundingSphere=re.toJSON()),t}clone(){return new this.constructor().copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const r={};this.name=t.name;const i=t.index;i!==null&&this.setIndex(i.clone());const g=t.attributes;for(const ae in g){const oe=g[ae];this.setAttribute(ae,oe.clone(r))}const $=t.morphAttributes;for(const ae in $){const oe=[],le=$[ae];for(let ue=0,de=le.length;ue0){const g=r[i[0]];if(g!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let $=0,V=g.length;$(t.far-t.near)**2))&&(_inverseMatrix$3.copy($).invert(),_ray$3.copy(t.ray).applyMatrix4(_inverseMatrix$3),!(i.boundingBox!==null&&_ray$3.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(t,r,_ray$3)))}_computeIntersections(t,r,i){let g;const $=this.geometry,V=this.material,re=$.index,ie=$.attributes.position,ae=$.attributes.uv,oe=$.attributes.uv1,le=$.attributes.normal,ue=$.groups,de=$.drawRange;if(re!==null)if(Array.isArray(V))for(let he=0,pe=ue.length;her.far?null:{distance:ae,point:_intersectionPointWorld.clone(),object:n}}function checkGeometryIntersection(n,t,r,i,g,$,V,re,ie,ae){n.getVertexPosition(re,_vA$1),n.getVertexPosition(ie,_vB$1),n.getVertexPosition(ae,_vC$1);const oe=checkIntersection$1(n,t,r,i,_vA$1,_vB$1,_vC$1,_intersectionPoint);if(oe){const le=new Vector3;Triangle$1.getBarycoord(_intersectionPoint,_vA$1,_vB$1,_vC$1,le),g&&(oe.uv=Triangle$1.getInterpolatedAttribute(g,re,ie,ae,le,new Vector2)),$&&(oe.uv1=Triangle$1.getInterpolatedAttribute($,re,ie,ae,le,new Vector2)),V&&(oe.normal=Triangle$1.getInterpolatedAttribute(V,re,ie,ae,le,new Vector3),oe.normal.dot(i.direction)>0&&oe.normal.multiplyScalar(-1));const ue={a:re,b:ie,c:ae,normal:new Vector3,materialIndex:0};Triangle$1.getNormal(_vA$1,_vB$1,_vC$1,ue.normal),oe.face=ue,oe.barycoord=le}return oe}class BoxGeometry extends BufferGeometry{constructor(t=1,r=1,i=1,g=1,$=1,V=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:r,depth:i,widthSegments:g,heightSegments:$,depthSegments:V};const re=this;g=Math.floor(g),$=Math.floor($),V=Math.floor(V);const ie=[],ae=[],oe=[],le=[];let ue=0,de=0;he("z","y","x",-1,-1,i,r,t,V,$,0),he("z","y","x",1,-1,i,r,-t,V,$,1),he("x","z","y",1,1,t,i,r,g,V,2),he("x","z","y",1,-1,t,i,-r,g,V,3),he("x","y","z",1,-1,t,r,i,g,$,4),he("x","y","z",-1,-1,t,r,-i,g,$,5),this.setIndex(ie),this.setAttribute("position",new Float32BufferAttribute(ae,3)),this.setAttribute("normal",new Float32BufferAttribute(oe,3)),this.setAttribute("uv",new Float32BufferAttribute(le,2));function he(pe,_e,Ce,xe,Ie,Ne,Oe,$e,Ve,Ue,Fe){const ze=Ne/Ve,Pt=Oe/Ue,qe=Ne/2,Et=Oe/2,kt=$e/2,At=Ve+1,Dt=Ue+1;let Lt=0,jt=0;const hn=new Vector3;for(let vn=0;vn0?1:-1,oe.push(hn.x,hn.y,hn.z),le.push(wn/Ve),le.push(1-vn/Ue),Lt+=1}}for(let vn=0;vn0&&(r.defines=this.defines),r.vertexShader=this.vertexShader,r.fragmentShader=this.fragmentShader,r.lights=this.lights,r.clipping=this.clipping;const i={};for(const g in this.extensions)this.extensions[g]===!0&&(i[g]=!0);return Object.keys(i).length>0&&(r.extensions=i),r}}class Camera extends Object3D{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Matrix4,this.projectionMatrix=new Matrix4,this.projectionMatrixInverse=new Matrix4,this.coordinateSystem=WebGLCoordinateSystem,this._reversedDepth=!1}get reversedDepth(){return this._reversedDepth}copy(t,r){return super.copy(t,r),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this.coordinateSystem=t.coordinateSystem,this}getWorldDirection(t){return super.getWorldDirection(t).negate()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,r){super.updateWorldMatrix(t,r),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const _v3$1=new Vector3,_minTarget=new Vector2,_maxTarget=new Vector2;class PerspectiveCamera extends Camera{constructor(t=50,r=1,i=.1,g=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=t,this.zoom=1,this.near=i,this.far=g,this.focus=10,this.aspect=r,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(t,r){return super.copy(t,r),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=t.view===null?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this}setFocalLength(t){const r=.5*this.getFilmHeight()/t;this.fov=RAD2DEG*2*Math.atan(r),this.updateProjectionMatrix()}getFocalLength(){const t=Math.tan(DEG2RAD*.5*this.fov);return .5*this.getFilmHeight()/t}getEffectiveFOV(){return RAD2DEG*2*Math.atan(Math.tan(DEG2RAD*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(t,r,i){_v3$1.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),r.set(_v3$1.x,_v3$1.y).multiplyScalar(-t/_v3$1.z),_v3$1.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),i.set(_v3$1.x,_v3$1.y).multiplyScalar(-t/_v3$1.z)}getViewSize(t,r){return this.getViewBounds(t,_minTarget,_maxTarget),r.subVectors(_maxTarget,_minTarget)}setViewOffset(t,r,i,g,$,V){this.aspect=t/r,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=r,this.view.offsetX=i,this.view.offsetY=g,this.view.width=$,this.view.height=V,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=this.near;let r=t*Math.tan(DEG2RAD*.5*this.fov)/this.zoom,i=2*r,g=this.aspect*i,$=-.5*g;const V=this.view;if(this.view!==null&&this.view.enabled){const ie=V.fullWidth,ae=V.fullHeight;$+=V.offsetX*g/ie,r-=V.offsetY*i/ae,g*=V.width/ie,i*=V.height/ae}const re=this.filmOffset;re!==0&&($+=t*re/this.getFilmWidth()),this.projectionMatrix.makePerspective($,$+g,r,r-i,t,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const r=super.toJSON(t);return r.object.fov=this.fov,r.object.zoom=this.zoom,r.object.near=this.near,r.object.far=this.far,r.object.focus=this.focus,r.object.aspect=this.aspect,this.view!==null&&(r.object.view=Object.assign({},this.view)),r.object.filmGauge=this.filmGauge,r.object.filmOffset=this.filmOffset,r}}const fov=-90,aspect=1;class CubeCamera extends Object3D{constructor(t,r,i){super(),this.type="CubeCamera",this.renderTarget=i,this.coordinateSystem=null,this.activeMipmapLevel=0;const g=new PerspectiveCamera(fov,aspect,t,r);g.layers=this.layers,this.add(g);const $=new PerspectiveCamera(fov,aspect,t,r);$.layers=this.layers,this.add($);const V=new PerspectiveCamera(fov,aspect,t,r);V.layers=this.layers,this.add(V);const re=new PerspectiveCamera(fov,aspect,t,r);re.layers=this.layers,this.add(re);const ie=new PerspectiveCamera(fov,aspect,t,r);ie.layers=this.layers,this.add(ie);const ae=new PerspectiveCamera(fov,aspect,t,r);ae.layers=this.layers,this.add(ae)}updateCoordinateSystem(){const t=this.coordinateSystem,r=this.children.concat(),[i,g,$,V,re,ie]=r;for(const ae of r)this.remove(ae);if(t===WebGLCoordinateSystem)i.up.set(0,1,0),i.lookAt(1,0,0),g.up.set(0,1,0),g.lookAt(-1,0,0),$.up.set(0,0,-1),$.lookAt(0,1,0),V.up.set(0,0,1),V.lookAt(0,-1,0),re.up.set(0,1,0),re.lookAt(0,0,1),ie.up.set(0,1,0),ie.lookAt(0,0,-1);else if(t===WebGPUCoordinateSystem)i.up.set(0,-1,0),i.lookAt(-1,0,0),g.up.set(0,-1,0),g.lookAt(1,0,0),$.up.set(0,0,1),$.lookAt(0,1,0),V.up.set(0,0,-1),V.lookAt(0,-1,0),re.up.set(0,-1,0),re.lookAt(0,0,1),ie.up.set(0,-1,0),ie.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+t);for(const ae of r)this.add(ae),ae.updateMatrixWorld()}update(t,r){this.parent===null&&this.updateMatrixWorld();const{renderTarget:i,activeMipmapLevel:g}=this;this.coordinateSystem!==t.coordinateSystem&&(this.coordinateSystem=t.coordinateSystem,this.updateCoordinateSystem());const[$,V,re,ie,ae,oe]=this.children,le=t.getRenderTarget(),ue=t.getActiveCubeFace(),de=t.getActiveMipmapLevel(),he=t.xr.enabled;t.xr.enabled=!1;const pe=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,t.setRenderTarget(i,0,g),t.render(r,$),t.setRenderTarget(i,1,g),t.render(r,V),t.setRenderTarget(i,2,g),t.render(r,re),t.setRenderTarget(i,3,g),t.render(r,ie),t.setRenderTarget(i,4,g),t.render(r,ae),i.texture.generateMipmaps=pe,t.setRenderTarget(i,5,g),t.render(r,oe),t.setRenderTarget(le,ue,de),t.xr.enabled=he,i.texture.needsPMREMUpdate=!0}}class CubeTexture extends Texture{constructor(t=[],r=CubeReflectionMapping,i,g,$,V,re,ie,ae,oe){super(t,r,i,g,$,V,re,ie,ae,oe),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(t){this.image=t}}class WebGLCubeRenderTarget extends WebGLRenderTarget{constructor(t=1,r={}){super(t,t,r),this.isWebGLCubeRenderTarget=!0;const i={width:t,height:t,depth:1},g=[i,i,i,i,i,i];this.texture=new CubeTexture(g),this._setTextureOptions(r),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(t,r){this.texture.type=r.type,this.texture.colorSpace=r.colorSpace,this.texture.generateMipmaps=r.generateMipmaps,this.texture.minFilter=r.minFilter,this.texture.magFilter=r.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:` varying vec3 vWorldDirection; vec3 transformDirection( in vec3 dir, in mat4 matrix ) { return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); } void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include } `,fragmentShader:` uniform sampler2D tEquirect; varying vec3 vWorldDirection; #include void main() { vec3 direction = normalize( vWorldDirection ); vec2 sampleUV = equirectUv( direction ); gl_FragColor = texture2D( tEquirect, sampleUV ); } `},g=new BoxGeometry(5,5,5),$=new ShaderMaterial({name:"CubemapFromEquirect",uniforms:cloneUniforms(i.uniforms),vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,side:BackSide,blending:NoBlending});$.uniforms.tEquirect.value=r;const V=new Mesh(g,$),re=r.minFilter;return r.minFilter===LinearMipmapLinearFilter&&(r.minFilter=LinearFilter),new CubeCamera(1,10,this).update(t,V),r.minFilter=re,V.geometry.dispose(),V.material.dispose(),this}clear(t,r=!0,i=!0,g=!0){const $=t.getRenderTarget();for(let V=0;V<6;V++)t.setRenderTarget(this,V),t.clear(r,i,g);t.setRenderTarget($)}}let Group$5=class extends Object3D{constructor(){super(),this.isGroup=!0,this.type="Group"}};const _moveEvent={type:"move"};class WebXRController{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Group$5,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Group$5,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new Vector3,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new Vector3),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Group$5,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new Vector3,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new Vector3),this._grip}dispatchEvent(t){return this._targetRay!==null&&this._targetRay.dispatchEvent(t),this._grip!==null&&this._grip.dispatchEvent(t),this._hand!==null&&this._hand.dispatchEvent(t),this}connect(t){if(t&&t.hand){const r=this._hand;if(r)for(const i of t.hand.values())this._getHandJoint(r,i)}return this.dispatchEvent({type:"connected",data:t}),this}disconnect(t){return this.dispatchEvent({type:"disconnected",data:t}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(t,r,i){let g=null,$=null,V=null;const re=this._targetRay,ie=this._grip,ae=this._hand;if(t&&r.session.visibilityState!=="visible-blurred"){if(ae&&t.hand){V=!0;for(const pe of t.hand.values()){const _e=r.getJointPose(pe,i),Ce=this._getHandJoint(ae,pe);_e!==null&&(Ce.matrix.fromArray(_e.transform.matrix),Ce.matrix.decompose(Ce.position,Ce.rotation,Ce.scale),Ce.matrixWorldNeedsUpdate=!0,Ce.jointRadius=_e.radius),Ce.visible=_e!==null}const oe=ae.joints["index-finger-tip"],le=ae.joints["thumb-tip"],ue=oe.position.distanceTo(le.position),de=.02,he=.005;ae.inputState.pinching&&ue>de+he?(ae.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:t.handedness,target:this})):!ae.inputState.pinching&&ue<=de-he&&(ae.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:t.handedness,target:this}))}else ie!==null&&t.gripSpace&&($=r.getPose(t.gripSpace,i),$!==null&&(ie.matrix.fromArray($.transform.matrix),ie.matrix.decompose(ie.position,ie.rotation,ie.scale),ie.matrixWorldNeedsUpdate=!0,$.linearVelocity?(ie.hasLinearVelocity=!0,ie.linearVelocity.copy($.linearVelocity)):ie.hasLinearVelocity=!1,$.angularVelocity?(ie.hasAngularVelocity=!0,ie.angularVelocity.copy($.angularVelocity)):ie.hasAngularVelocity=!1));re!==null&&(g=r.getPose(t.targetRaySpace,i),g===null&&$!==null&&(g=$),g!==null&&(re.matrix.fromArray(g.transform.matrix),re.matrix.decompose(re.position,re.rotation,re.scale),re.matrixWorldNeedsUpdate=!0,g.linearVelocity?(re.hasLinearVelocity=!0,re.linearVelocity.copy(g.linearVelocity)):re.hasLinearVelocity=!1,g.angularVelocity?(re.hasAngularVelocity=!0,re.angularVelocity.copy(g.angularVelocity)):re.hasAngularVelocity=!1,this.dispatchEvent(_moveEvent)))}return re!==null&&(re.visible=g!==null),ie!==null&&(ie.visible=$!==null),ae!==null&&(ae.visible=V!==null),this}_getHandJoint(t,r){if(t.joints[r.jointName]===void 0){const i=new Group$5;i.matrixAutoUpdate=!1,i.visible=!1,t.joints[r.jointName]=i,t.add(i)}return t.joints[r.jointName]}}class Scene extends Object3D{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new Euler,this.environmentIntensity=1,this.environmentRotation=new Euler,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,r){return super.copy(t,r),t.background!==null&&(this.background=t.background.clone()),t.environment!==null&&(this.environment=t.environment.clone()),t.fog!==null&&(this.fog=t.fog.clone()),this.backgroundBlurriness=t.backgroundBlurriness,this.backgroundIntensity=t.backgroundIntensity,this.backgroundRotation.copy(t.backgroundRotation),this.environmentIntensity=t.environmentIntensity,this.environmentRotation.copy(t.environmentRotation),t.overrideMaterial!==null&&(this.overrideMaterial=t.overrideMaterial.clone()),this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const r=super.toJSON(t);return this.fog!==null&&(r.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(r.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(r.object.backgroundIntensity=this.backgroundIntensity),r.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(r.object.environmentIntensity=this.environmentIntensity),r.object.environmentRotation=this.environmentRotation.toArray(),r}}class InterleavedBuffer{constructor(t,r){this.isInterleavedBuffer=!0,this.array=t,this.stride=r,this.count=t!==void 0?t.length/r:0,this.usage=StaticDrawUsage,this.updateRanges=[],this.version=0,this.uuid=generateUUID()}onUploadCallback(){}set needsUpdate(t){t===!0&&this.version++}setUsage(t){return this.usage=t,this}addUpdateRange(t,r){this.updateRanges.push({start:t,count:r})}clearUpdateRanges(){this.updateRanges.length=0}copy(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.usage=t.usage,this}copyAt(t,r,i){t*=this.stride,i*=r.stride;for(let g=0,$=this.stride;g<$;g++)this.array[t+g]=r.array[i+g];return this}set(t,r=0){return this.array.set(t,r),this}clone(t){t.arrayBuffers===void 0&&(t.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=generateUUID()),t.arrayBuffers[this.array.buffer._uuid]===void 0&&(t.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const r=new this.array.constructor(t.arrayBuffers[this.array.buffer._uuid]),i=new this.constructor(r,this.stride);return i.setUsage(this.usage),i}onUpload(t){return this.onUploadCallback=t,this}toJSON(t){return t.arrayBuffers===void 0&&(t.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=generateUUID()),t.arrayBuffers[this.array.buffer._uuid]===void 0&&(t.arrayBuffers[this.array.buffer._uuid]=Array.from(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}const _vector$7=new Vector3;class InterleavedBufferAttribute{constructor(t,r,i,g=!1){this.isInterleavedBufferAttribute=!0,this.name="",this.data=t,this.itemSize=r,this.offset=i,this.normalized=g}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(t){this.data.needsUpdate=t}applyMatrix4(t){for(let r=0,i=this.data.count;rt.far||r.push({distance:ie,point:_intersectPoint.clone(),uv:Triangle$1.getInterpolation(_intersectPoint,_vA,_vB,_vC,_uvA,_uvB,_uvC,new Vector2),face:null,object:this})}copy(t,r){return super.copy(t,r),t.center!==void 0&&this.center.copy(t.center),this.material=t.material,this}}function transformVertex(n,t,r,i,g,$){_alignedPosition.subVectors(n,r).addScalar(.5).multiply(i),g!==void 0?(_rotatedPosition.x=$*_alignedPosition.x-g*_alignedPosition.y,_rotatedPosition.y=g*_alignedPosition.x+$*_alignedPosition.y):_rotatedPosition.copy(_alignedPosition),n.copy(t),n.x+=_rotatedPosition.x,n.y+=_rotatedPosition.y,n.applyMatrix4(_viewWorldMatrix)}const _basePosition=new Vector3,_skinIndex=new Vector4,_skinWeight=new Vector4,_vector3=new Vector3,_matrix4=new Matrix4,_vertex=new Vector3,_sphere$5=new Sphere,_inverseMatrix$2=new Matrix4,_ray$2=new Ray;class SkinnedMesh extends Mesh{constructor(t,r){super(t,r),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode=AttachedBindMode,this.bindMatrix=new Matrix4,this.bindMatrixInverse=new Matrix4,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const t=this.geometry;this.boundingBox===null&&(this.boundingBox=new Box3),this.boundingBox.makeEmpty();const r=t.getAttribute("position");for(let i=0;i1?null:r.copy(t.start).addScaledVector(i,$)}intersectsLine(t){const r=this.distanceToPoint(t.start),i=this.distanceToPoint(t.end);return r<0&&i>0||i<0&&r>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,r){const i=r||_normalMatrix.getNormalMatrix(t),g=this.coplanarPoint(_vector1).applyMatrix4(t),$=this.normal.applyMatrix3(i).normalize();return this.constant=-g.dot($),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return new this.constructor().copy(this)}}const _sphere$3=new Sphere,_defaultSpriteCenter=new Vector2(.5,.5),_vector$6=new Vector3;class Frustum{constructor(t=new Plane,r=new Plane,i=new Plane,g=new Plane,$=new Plane,V=new Plane){this.planes=[t,r,i,g,$,V]}set(t,r,i,g,$,V){const re=this.planes;return re[0].copy(t),re[1].copy(r),re[2].copy(i),re[3].copy(g),re[4].copy($),re[5].copy(V),this}copy(t){const r=this.planes;for(let i=0;i<6;i++)r[i].copy(t.planes[i]);return this}setFromProjectionMatrix(t,r=WebGLCoordinateSystem,i=!1){const g=this.planes,$=t.elements,V=$[0],re=$[1],ie=$[2],ae=$[3],oe=$[4],le=$[5],ue=$[6],de=$[7],he=$[8],pe=$[9],_e=$[10],Ce=$[11],xe=$[12],Ie=$[13],Ne=$[14],Oe=$[15];if(g[0].setComponents(ae-V,de-oe,Ce-he,Oe-xe).normalize(),g[1].setComponents(ae+V,de+oe,Ce+he,Oe+xe).normalize(),g[2].setComponents(ae+re,de+le,Ce+pe,Oe+Ie).normalize(),g[3].setComponents(ae-re,de-le,Ce-pe,Oe-Ie).normalize(),i)g[4].setComponents(ie,ue,_e,Ne).normalize(),g[5].setComponents(ae-ie,de-ue,Ce-_e,Oe-Ne).normalize();else if(g[4].setComponents(ae-ie,de-ue,Ce-_e,Oe-Ne).normalize(),r===WebGLCoordinateSystem)g[5].setComponents(ae+ie,de+ue,Ce+_e,Oe+Ne).normalize();else if(r===WebGPUCoordinateSystem)g[5].setComponents(ie,ue,_e,Ne).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+r);return this}intersectsObject(t){if(t.boundingSphere!==void 0)t.boundingSphere===null&&t.computeBoundingSphere(),_sphere$3.copy(t.boundingSphere).applyMatrix4(t.matrixWorld);else{const r=t.geometry;r.boundingSphere===null&&r.computeBoundingSphere(),_sphere$3.copy(r.boundingSphere).applyMatrix4(t.matrixWorld)}return this.intersectsSphere(_sphere$3)}intersectsSprite(t){_sphere$3.center.set(0,0,0);const r=_defaultSpriteCenter.distanceTo(t.center);return _sphere$3.radius=.7071067811865476+r,_sphere$3.applyMatrix4(t.matrixWorld),this.intersectsSphere(_sphere$3)}intersectsSphere(t){const r=this.planes,i=t.center,g=-t.radius;for(let $=0;$<6;$++)if(r[$].distanceToPoint(i)0?t.max.x:t.min.x,_vector$6.y=g.normal.y>0?t.max.y:t.min.y,_vector$6.z=g.normal.z>0?t.max.z:t.min.z,g.distanceToPoint(_vector$6)<0)return!1}return!0}containsPoint(t){const r=this.planes;for(let i=0;i<6;i++)if(r[i].distanceToPoint(t)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}class LineBasicMaterial extends Material{constructor(t){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new Color(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this.fog=t.fog,this}}const _vStart=new Vector3,_vEnd=new Vector3,_inverseMatrix$1=new Matrix4,_ray$1=new Ray,_sphere$1=new Sphere,_intersectPointOnRay=new Vector3,_intersectPointOnSegment=new Vector3;let Line$2=class extends Object3D{constructor(t=new BufferGeometry,r=new LineBasicMaterial){super(),this.isLine=!0,this.type="Line",this.geometry=t,this.material=r,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(t,r){return super.copy(t,r),this.material=Array.isArray(t.material)?t.material.slice():t.material,this.geometry=t.geometry,this}computeLineDistances(){const t=this.geometry;if(t.index===null){const r=t.attributes.position,i=[0];for(let g=1,$=r.count;g<$;g++)_vStart.fromBufferAttribute(r,g-1),_vEnd.fromBufferAttribute(r,g),i[g]=i[g-1],i[g]+=_vStart.distanceTo(_vEnd);t.setAttribute("lineDistance",new Float32BufferAttribute(i,1))}else warn("Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}raycast(t,r){const i=this.geometry,g=this.matrixWorld,$=t.params.Line.threshold,V=i.drawRange;if(i.boundingSphere===null&&i.computeBoundingSphere(),_sphere$1.copy(i.boundingSphere),_sphere$1.applyMatrix4(g),_sphere$1.radius+=$,t.ray.intersectsSphere(_sphere$1)===!1)return;_inverseMatrix$1.copy(g).invert(),_ray$1.copy(t.ray).applyMatrix4(_inverseMatrix$1);const re=$/((this.scale.x+this.scale.y+this.scale.z)/3),ie=re*re,ae=this.isLineSegments?2:1,oe=i.index,ue=i.attributes.position;if(oe!==null){const de=Math.max(0,V.start),he=Math.min(oe.count,V.start+V.count);for(let pe=de,_e=he-1;pe<_e;pe+=ae){const Ce=oe.getX(pe),xe=oe.getX(pe+1),Ie=checkIntersection(this,t,_ray$1,ie,Ce,xe,pe);Ie&&r.push(Ie)}if(this.isLineLoop){const pe=oe.getX(he-1),_e=oe.getX(de),Ce=checkIntersection(this,t,_ray$1,ie,pe,_e,he-1);Ce&&r.push(Ce)}}else{const de=Math.max(0,V.start),he=Math.min(ue.count,V.start+V.count);for(let pe=de,_e=he-1;pe<_e;pe+=ae){const Ce=checkIntersection(this,t,_ray$1,ie,pe,pe+1,pe);Ce&&r.push(Ce)}if(this.isLineLoop){const pe=checkIntersection(this,t,_ray$1,ie,he-1,de,he-1);pe&&r.push(pe)}}}updateMorphTargets(){const r=this.geometry.morphAttributes,i=Object.keys(r);if(i.length>0){const g=r[i[0]];if(g!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let $=0,V=g.length;$i)return;_intersectPointOnRay.applyMatrix4(n.matrixWorld);const ae=t.ray.origin.distanceTo(_intersectPointOnRay);if(!(aet.far))return{distance:ae,point:_intersectPointOnSegment.clone().applyMatrix4(n.matrixWorld),index:V,face:null,faceIndex:null,barycoord:null,object:n}}const _start=new Vector3,_end=new Vector3;class LineSegments extends Line$2{constructor(t,r){super(t,r),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const t=this.geometry;if(t.index===null){const r=t.attributes.position,i=[];for(let g=0,$=r.count;g<$;g+=2)_start.fromBufferAttribute(r,g),_end.fromBufferAttribute(r,g+1),i[g]=g===0?0:i[g-1],i[g+1]=i[g]+_start.distanceTo(_end);t.setAttribute("lineDistance",new Float32BufferAttribute(i,1))}else warn("LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}class LineLoop extends Line$2{constructor(t,r){super(t,r),this.isLineLoop=!0,this.type="LineLoop"}}class PointsMaterial extends Material{constructor(t){super(),this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new Color(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this.fog=t.fog,this}}const _inverseMatrix=new Matrix4,_ray$4=new Ray,_sphere=new Sphere,_position$2=new Vector3;class Points extends Object3D{constructor(t=new BufferGeometry,r=new PointsMaterial){super(),this.isPoints=!0,this.type="Points",this.geometry=t,this.material=r,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(t,r){return super.copy(t,r),this.material=Array.isArray(t.material)?t.material.slice():t.material,this.geometry=t.geometry,this}raycast(t,r){const i=this.geometry,g=this.matrixWorld,$=t.params.Points.threshold,V=i.drawRange;if(i.boundingSphere===null&&i.computeBoundingSphere(),_sphere.copy(i.boundingSphere),_sphere.applyMatrix4(g),_sphere.radius+=$,t.ray.intersectsSphere(_sphere)===!1)return;_inverseMatrix.copy(g).invert(),_ray$4.copy(t.ray).applyMatrix4(_inverseMatrix);const re=$/((this.scale.x+this.scale.y+this.scale.z)/3),ie=re*re,ae=i.index,le=i.attributes.position;if(ae!==null){const ue=Math.max(0,V.start),de=Math.min(ae.count,V.start+V.count);for(let he=ue,pe=de;he0){const g=r[i[0]];if(g!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let $=0,V=g.length;$g.far)return;$.push({distance:ae,distanceToRay:Math.sqrt(re),point:ie,index:t,face:null,faceIndex:null,barycoord:null,object:V})}}class CanvasTexture extends Texture{constructor(t,r,i,g,$,V,re,ie,ae){super(t,r,i,g,$,V,re,ie,ae),this.isCanvasTexture=!0,this.needsUpdate=!0}}class DepthTexture extends Texture{constructor(t,r,i=UnsignedIntType,g,$,V,re=NearestFilter,ie=NearestFilter,ae,oe=DepthFormat,le=1){if(oe!==DepthFormat&&oe!==DepthStencilFormat)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");const ue={width:t,height:r,depth:le};super(ue,g,$,V,re,ie,oe,i,ae),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(t){return super.copy(t),this.source=new Source(Object.assign({},t.image)),this.compareFunction=t.compareFunction,this}toJSON(t){const r=super.toJSON(t);return this.compareFunction!==null&&(r.compareFunction=this.compareFunction),r}}class CubeDepthTexture extends DepthTexture{constructor(t,r=UnsignedIntType,i=CubeReflectionMapping,g,$,V=NearestFilter,re=NearestFilter,ie,ae=DepthFormat){const oe={width:t,height:t,depth:1},le=[oe,oe,oe,oe,oe,oe];super(t,t,r,i,g,$,V,re,ie,ae),this.image=le,this.isCubeDepthTexture=!0,this.isCubeTexture=!0}get images(){return this.image}set images(t){this.image=t}}class ExternalTexture extends Texture{constructor(t=null){super(),this.sourceTexture=t,this.isExternalTexture=!0}copy(t){return super.copy(t),this.sourceTexture=t.sourceTexture,this}}class CylinderGeometry extends BufferGeometry{constructor(t=1,r=1,i=1,g=32,$=1,V=!1,re=0,ie=Math.PI*2){super(),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:r,height:i,radialSegments:g,heightSegments:$,openEnded:V,thetaStart:re,thetaLength:ie};const ae=this;g=Math.floor(g),$=Math.floor($);const oe=[],le=[],ue=[],de=[];let he=0;const pe=[],_e=i/2;let Ce=0;xe(),V===!1&&(t>0&&Ie(!0),r>0&&Ie(!1)),this.setIndex(oe),this.setAttribute("position",new Float32BufferAttribute(le,3)),this.setAttribute("normal",new Float32BufferAttribute(ue,3)),this.setAttribute("uv",new Float32BufferAttribute(de,2));function xe(){const Ne=new Vector3,Oe=new Vector3;let $e=0;const Ve=(r-t)/i;for(let Ue=0;Ue<=$;Ue++){const Fe=[],ze=Ue/$,Pt=ze*(r-t)+t;for(let qe=0;qe<=g;qe++){const Et=qe/g,kt=Et*ie+re,At=Math.sin(kt),Dt=Math.cos(kt);Oe.x=Pt*At,Oe.y=-ze*i+_e,Oe.z=Pt*Dt,le.push(Oe.x,Oe.y,Oe.z),Ne.set(At,Ve,Dt).normalize(),ue.push(Ne.x,Ne.y,Ne.z),de.push(Et,1-ze),Fe.push(he++)}pe.push(Fe)}for(let Ue=0;Ue0||Fe!==0)&&(oe.push(ze,Pt,Et),$e+=3),(r>0||Fe!==$-1)&&(oe.push(Pt,qe,Et),$e+=3)}ae.addGroup(Ce,$e,0),Ce+=$e}function Ie(Ne){const Oe=he,$e=new Vector2,Ve=new Vector3;let Ue=0;const Fe=Ne===!0?t:r,ze=Ne===!0?1:-1;for(let qe=1;qe<=g;qe++)le.push(0,_e*ze,0),ue.push(0,ze,0),de.push(.5,.5),he++;const Pt=he;for(let qe=0;qe<=g;qe++){const kt=qe/g*ie+re,At=Math.cos(kt),Dt=Math.sin(kt);Ve.x=Fe*Dt,Ve.y=_e*ze,Ve.z=Fe*At,le.push(Ve.x,Ve.y,Ve.z),ue.push(0,ze,0),$e.x=At*.5+.5,$e.y=Dt*.5*ze+.5,de.push($e.x,$e.y),he++}for(let qe=0;qe0)&&de.push(Ie,Ne,$e),(Ce!==i-1||ie0!=t>0&&this.version++,this._anisotropy=t}get clearcoat(){return this._clearcoat}set clearcoat(t){this._clearcoat>0!=t>0&&this.version++,this._clearcoat=t}get iridescence(){return this._iridescence}set iridescence(t){this._iridescence>0!=t>0&&this.version++,this._iridescence=t}get dispersion(){return this._dispersion}set dispersion(t){this._dispersion>0!=t>0&&this.version++,this._dispersion=t}get sheen(){return this._sheen}set sheen(t){this._sheen>0!=t>0&&this.version++,this._sheen=t}get transmission(){return this._transmission}set transmission(t){this._transmission>0!=t>0&&this.version++,this._transmission=t}copy(t){return super.copy(t),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=t.anisotropy,this.anisotropyRotation=t.anisotropyRotation,this.anisotropyMap=t.anisotropyMap,this.clearcoat=t.clearcoat,this.clearcoatMap=t.clearcoatMap,this.clearcoatRoughness=t.clearcoatRoughness,this.clearcoatRoughnessMap=t.clearcoatRoughnessMap,this.clearcoatNormalMap=t.clearcoatNormalMap,this.clearcoatNormalScale.copy(t.clearcoatNormalScale),this.dispersion=t.dispersion,this.ior=t.ior,this.iridescence=t.iridescence,this.iridescenceMap=t.iridescenceMap,this.iridescenceIOR=t.iridescenceIOR,this.iridescenceThicknessRange=[...t.iridescenceThicknessRange],this.iridescenceThicknessMap=t.iridescenceThicknessMap,this.sheen=t.sheen,this.sheenColor.copy(t.sheenColor),this.sheenColorMap=t.sheenColorMap,this.sheenRoughness=t.sheenRoughness,this.sheenRoughnessMap=t.sheenRoughnessMap,this.transmission=t.transmission,this.transmissionMap=t.transmissionMap,this.thickness=t.thickness,this.thicknessMap=t.thicknessMap,this.attenuationDistance=t.attenuationDistance,this.attenuationColor.copy(t.attenuationColor),this.specularIntensity=t.specularIntensity,this.specularIntensityMap=t.specularIntensityMap,this.specularColor.copy(t.specularColor),this.specularColorMap=t.specularColorMap,this}}class MeshDepthMaterial extends Material{constructor(t){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=BasicDepthPacking,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(t)}copy(t){return super.copy(t),this.depthPacking=t.depthPacking,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this}}class MeshDistanceMaterial extends Material{constructor(t){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(t)}copy(t){return super.copy(t),this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this}}function convertArray(n,t){return!n||n.constructor===t?n:typeof t.BYTES_PER_ELEMENT=="number"?new t(n):Array.prototype.slice.call(n)}function getKeyframeOrder(n){function t(g,$){return n[g]-n[$]}const r=n.length,i=new Array(r);for(let g=0;g!==r;++g)i[g]=g;return i.sort(t),i}function sortedArray(n,t,r){const i=n.length,g=new n.constructor(i);for(let $=0,V=0;V!==i;++$){const re=r[$]*t;for(let ie=0;ie!==t;++ie)g[V++]=n[re+ie]}return g}function flattenJSON(n,t,r,i){let g=1,$=n[0];for(;$!==void 0&&$[i]===void 0;)$=n[g++];if($===void 0)return;let V=$[i];if(V!==void 0)if(Array.isArray(V))do V=$[i],V!==void 0&&(t.push($.time),r.push(...V)),$=n[g++];while($!==void 0);else if(V.toArray!==void 0)do V=$[i],V!==void 0&&(t.push($.time),V.toArray(r,r.length)),$=n[g++];while($!==void 0);else do V=$[i],V!==void 0&&(t.push($.time),r.push(V)),$=n[g++];while($!==void 0)}class Interpolant{constructor(t,r,i,g){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=g!==void 0?g:new r.constructor(i),this.sampleValues=r,this.valueSize=i,this.settings=null,this.DefaultSettings_={}}evaluate(t){const r=this.parameterPositions;let i=this._cachedIndex,g=r[i],$=r[i-1];e:{t:{let V;n:{r:if(!(t=$)){const re=r[1];t=$)break t}V=i,i=0;break n}break e}for(;i>>1;tr;)--V;if(++V,$!==0||V!==g){$>=V&&(V=Math.max(V,1),$=V-1);const re=this.getValueSize();this.times=i.slice($,V),this.values=this.values.slice($*re,V*re)}return this}validate(){let t=!0;const r=this.getValueSize();r-Math.floor(r)!==0&&(error("KeyframeTrack: Invalid value size in track.",this),t=!1);const i=this.times,g=this.values,$=i.length;$===0&&(error("KeyframeTrack: Track is empty.",this),t=!1);let V=null;for(let re=0;re!==$;re++){const ie=i[re];if(typeof ie=="number"&&isNaN(ie)){error("KeyframeTrack: Time is not a valid number.",this,re,ie),t=!1;break}if(V!==null&&V>ie){error("KeyframeTrack: Out of order keys.",this,re,ie,V),t=!1;break}V=ie}if(g!==void 0&&isTypedArray$1(g))for(let re=0,ie=g.length;re!==ie;++re){const ae=g[re];if(isNaN(ae)){error("KeyframeTrack: Value is not a valid number.",this,re,ae),t=!1;break}}return t}optimize(){const t=this.times.slice(),r=this.values.slice(),i=this.getValueSize(),g=this.getInterpolation()===InterpolateSmooth,$=t.length-1;let V=1;for(let re=1;re<$;++re){let ie=!1;const ae=t[re],oe=t[re+1];if(ae!==oe&&(re!==1||ae!==t[0]))if(g)ie=!0;else{const le=re*i,ue=le-i,de=le+i;for(let he=0;he!==i;++he){const pe=r[le+he];if(pe!==r[ue+he]||pe!==r[de+he]){ie=!0;break}}}if(ie){if(re!==V){t[V]=t[re];const le=re*i,ue=V*i;for(let de=0;de!==i;++de)r[ue+de]=r[le+de]}++V}}if($>0){t[V]=t[$];for(let re=$*i,ie=V*i,ae=0;ae!==i;++ae)r[ie+ae]=r[re+ae];++V}return V!==t.length?(this.times=t.slice(0,V),this.values=r.slice(0,V*i)):(this.times=t,this.values=r),this}clone(){const t=this.times.slice(),r=this.values.slice(),i=this.constructor,g=new i(this.name,t,r);return g.createInterpolant=this.createInterpolant,g}}KeyframeTrack.prototype.ValueTypeName="";KeyframeTrack.prototype.TimeBufferType=Float32Array;KeyframeTrack.prototype.ValueBufferType=Float32Array;KeyframeTrack.prototype.DefaultInterpolation=InterpolateLinear;class BooleanKeyframeTrack extends KeyframeTrack{constructor(t,r,i){super(t,r,i)}}BooleanKeyframeTrack.prototype.ValueTypeName="bool";BooleanKeyframeTrack.prototype.ValueBufferType=Array;BooleanKeyframeTrack.prototype.DefaultInterpolation=InterpolateDiscrete;BooleanKeyframeTrack.prototype.InterpolantFactoryMethodLinear=void 0;BooleanKeyframeTrack.prototype.InterpolantFactoryMethodSmooth=void 0;class ColorKeyframeTrack extends KeyframeTrack{constructor(t,r,i,g){super(t,r,i,g)}}ColorKeyframeTrack.prototype.ValueTypeName="color";class NumberKeyframeTrack extends KeyframeTrack{constructor(t,r,i,g){super(t,r,i,g)}}NumberKeyframeTrack.prototype.ValueTypeName="number";class QuaternionLinearInterpolant extends Interpolant{constructor(t,r,i,g){super(t,r,i,g)}interpolate_(t,r,i,g){const $=this.resultBuffer,V=this.sampleValues,re=this.valueSize,ie=(i-r)/(g-r);let ae=t*re;for(let oe=ae+re;ae!==oe;ae+=4)Quaternion.slerpFlat($,0,V,ae-re,V,ae,ie);return $}}class QuaternionKeyframeTrack extends KeyframeTrack{constructor(t,r,i,g){super(t,r,i,g)}InterpolantFactoryMethodLinear(t){return new QuaternionLinearInterpolant(this.times,this.values,this.getValueSize(),t)}}QuaternionKeyframeTrack.prototype.ValueTypeName="quaternion";QuaternionKeyframeTrack.prototype.InterpolantFactoryMethodSmooth=void 0;class StringKeyframeTrack extends KeyframeTrack{constructor(t,r,i){super(t,r,i)}}StringKeyframeTrack.prototype.ValueTypeName="string";StringKeyframeTrack.prototype.ValueBufferType=Array;StringKeyframeTrack.prototype.DefaultInterpolation=InterpolateDiscrete;StringKeyframeTrack.prototype.InterpolantFactoryMethodLinear=void 0;StringKeyframeTrack.prototype.InterpolantFactoryMethodSmooth=void 0;class VectorKeyframeTrack extends KeyframeTrack{constructor(t,r,i,g){super(t,r,i,g)}}VectorKeyframeTrack.prototype.ValueTypeName="vector";class AnimationClip{constructor(t="",r=-1,i=[],g=NormalAnimationBlendMode){this.name=t,this.tracks=i,this.duration=r,this.blendMode=g,this.uuid=generateUUID(),this.userData={},this.duration<0&&this.resetDuration()}static parse(t){const r=[],i=t.tracks,g=1/(t.fps||1);for(let V=0,re=i.length;V!==re;++V)r.push(parseKeyframeTrack(i[V]).scale(g));const $=new this(t.name,t.duration,r,t.blendMode);return $.uuid=t.uuid,$.userData=JSON.parse(t.userData||"{}"),$}static toJSON(t){const r=[],i=t.tracks,g={name:t.name,duration:t.duration,tracks:r,uuid:t.uuid,blendMode:t.blendMode,userData:JSON.stringify(t.userData)};for(let $=0,V=i.length;$!==V;++$)r.push(KeyframeTrack.toJSON(i[$]));return g}static CreateFromMorphTargetSequence(t,r,i,g){const $=r.length,V=[];for(let re=0;re<$;re++){let ie=[],ae=[];ie.push((re+$-1)%$,re,(re+1)%$),ae.push(0,1,0);const oe=getKeyframeOrder(ie);ie=sortedArray(ie,1,oe),ae=sortedArray(ae,1,oe),!g&&ie[0]===0&&(ie.push($),ae.push(ae[0])),V.push(new NumberKeyframeTrack(".morphTargetInfluences["+r[re].name+"]",ie,ae).scale(1/i))}return new this(t,-1,V)}static findByName(t,r){let i=t;if(!Array.isArray(t)){const g=t;i=g.geometry&&g.geometry.animations||g.animations}for(let g=0;g1){const le=oe[1];let ue=g[le];ue||(g[le]=ue=[]),ue.push(ae)}}const V=[];for(const re in g)V.push(this.CreateFromMorphTargetSequence(re,g[re],r,i));return V}static parseAnimation(t,r){if(warn("AnimationClip: parseAnimation() is deprecated and will be removed with r185"),!t)return error("AnimationClip: No animation in JSONLoader data."),null;const i=function(le,ue,de,he,pe){if(de.length!==0){const _e=[],Ce=[];flattenJSON(de,_e,Ce,he),_e.length!==0&&pe.push(new le(ue,_e,Ce))}},g=[],$=t.name||"default",V=t.fps||30,re=t.blendMode;let ie=t.length||-1;const ae=t.hierarchy||[];for(let le=0;le{r&&r($),this.manager.itemEnd(t)},0),$;if(loading[t]!==void 0){loading[t].push({onLoad:r,onProgress:i,onError:g});return}loading[t]=[],loading[t].push({onLoad:r,onProgress:i,onError:g});const V=new Request(t,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin",signal:typeof AbortSignal.any=="function"?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal}),re=this.mimeType,ie=this.responseType;fetch(V).then(ae=>{if(ae.status===200||ae.status===0){if(ae.status===0&&warn("FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||ae.body===void 0||ae.body.getReader===void 0)return ae;const oe=loading[t],le=ae.body.getReader(),ue=ae.headers.get("X-File-Size")||ae.headers.get("Content-Length"),de=ue?parseInt(ue):0,he=de!==0;let pe=0;const _e=new ReadableStream({start(Ce){xe();function xe(){le.read().then(({done:Ie,value:Ne})=>{if(Ie)Ce.close();else{pe+=Ne.byteLength;const Oe=new ProgressEvent("progress",{lengthComputable:he,loaded:pe,total:de});for(let $e=0,Ve=oe.length;$e{Ce.error(Ie)})}}});return new Response(_e)}else throw new HttpError(`fetch for "${ae.url}" responded with ${ae.status}: ${ae.statusText}`,ae)}).then(ae=>{switch(ie){case"arraybuffer":return ae.arrayBuffer();case"blob":return ae.blob();case"document":return ae.text().then(oe=>new DOMParser().parseFromString(oe,re));case"json":return ae.json();default:if(re==="")return ae.text();{const le=/charset="?([^;"\s]*)"?/i.exec(re),ue=le&&le[1]?le[1].toLowerCase():void 0,de=new TextDecoder(ue);return ae.arrayBuffer().then(he=>de.decode(he))}}}).then(ae=>{Cache.add(`file:${t}`,ae);const oe=loading[t];delete loading[t];for(let le=0,ue=oe.length;le{const oe=loading[t];if(oe===void 0)throw this.manager.itemError(t),ae;delete loading[t];for(let le=0,ue=oe.length;le{this.manager.itemEnd(t)}),this.manager.itemStart(t)}setResponseType(t){return this.responseType=t,this}setMimeType(t){return this.mimeType=t,this}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}}const _loading=new WeakMap;class ImageLoader extends Loader{constructor(t){super(t)}load(t,r,i,g){this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);const $=this,V=Cache.get(`image:${t}`);if(V!==void 0){if(V.complete===!0)$.manager.itemStart(t),setTimeout(function(){r&&r(V),$.manager.itemEnd(t)},0);else{let le=_loading.get(V);le===void 0&&(le=[],_loading.set(V,le)),le.push({onLoad:r,onError:g})}return V}const re=createElementNS("img");function ie(){oe(),r&&r(this);const le=_loading.get(this)||[];for(let ue=0;ue"u"&&warn("ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&warn("ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"},this._abortController=new AbortController}setOptions(t){return this.options=t,this}load(t,r,i,g){t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);const $=this,V=Cache.get(`image-bitmap:${t}`);if(V!==void 0){if($.manager.itemStart(t),V.then){V.then(ae=>{if(_errorMap.has(V)===!0)g&&g(_errorMap.get(V)),$.manager.itemError(t),$.manager.itemEnd(t);else return r&&r(ae),$.manager.itemEnd(t),ae});return}return setTimeout(function(){r&&r(V),$.manager.itemEnd(t)},0),V}const re={};re.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",re.headers=this.requestHeader,re.signal=typeof AbortSignal.any=="function"?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal;const ie=fetch(t,re).then(function(ae){return ae.blob()}).then(function(ae){return createImageBitmap(ae,Object.assign($.options,{colorSpaceConversion:"none"}))}).then(function(ae){return Cache.add(`image-bitmap:${t}`,ae),r&&r(ae),$.manager.itemEnd(t),ae}).catch(function(ae){g&&g(ae),_errorMap.set(ie,ae),Cache.remove(`image-bitmap:${t}`),$.manager.itemError(t),$.manager.itemEnd(t)});Cache.add(`image-bitmap:${t}`,ie),$.manager.itemStart(t)}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}}class ArrayCamera extends PerspectiveCamera{constructor(t=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=t}}const _RESERVED_CHARS_RE="\\[\\]\\.:\\/",_reservedRe=new RegExp("["+_RESERVED_CHARS_RE+"]","g"),_wordChar="[^"+_RESERVED_CHARS_RE+"]",_wordCharOrDot="[^"+_RESERVED_CHARS_RE.replace("\\.","")+"]",_directoryRe=/((?:WC+[\/:])*)/.source.replace("WC",_wordChar),_nodeRe=/(WCOD+)?/.source.replace("WCOD",_wordCharOrDot),_objectRe=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",_wordChar),_propertyRe=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",_wordChar),_trackRe=new RegExp("^"+_directoryRe+_nodeRe+_objectRe+_propertyRe+"$"),_supportedObjectNames=["material","materials","bones","map"];class Composite{constructor(t,r,i){const g=i||PropertyBinding.parseTrackName(r);this._targetGroup=t,this._bindings=t.subscribe_(r,g)}getValue(t,r){this.bind();const i=this._targetGroup.nCachedObjects_,g=this._bindings[i];g!==void 0&&g.getValue(t,r)}setValue(t,r){const i=this._bindings;for(let g=this._targetGroup.nCachedObjects_,$=i.length;g!==$;++g)i[g].setValue(t,r)}bind(){const t=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=t.length;r!==i;++r)t[r].bind()}unbind(){const t=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=t.length;r!==i;++r)t[r].unbind()}}class PropertyBinding{constructor(t,r,i){this.path=r,this.parsedPath=i||PropertyBinding.parseTrackName(r),this.node=PropertyBinding.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,r,i){return t&&t.isAnimationObjectGroup?new PropertyBinding.Composite(t,r,i):new PropertyBinding(t,r,i)}static sanitizeNodeName(t){return t.replace(/\s/g,"_").replace(_reservedRe,"")}static parseTrackName(t){const r=_trackRe.exec(t);if(r===null)throw new Error("PropertyBinding: Cannot parse trackName: "+t);const i={nodeName:r[2],objectName:r[3],objectIndex:r[4],propertyName:r[5],propertyIndex:r[6]},g=i.nodeName&&i.nodeName.lastIndexOf(".");if(g!==void 0&&g!==-1){const $=i.nodeName.substring(g+1);_supportedObjectNames.indexOf($)!==-1&&(i.nodeName=i.nodeName.substring(0,g),i.objectName=$)}if(i.propertyName===null||i.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return i}static findNode(t,r){if(r===void 0||r===""||r==="."||r===-1||r===t.name||r===t.uuid)return t;if(t.skeleton){const i=t.skeleton.getBoneByName(r);if(i!==void 0)return i}if(t.children){const i=function($){for(let V=0;V<$.length;V++){const re=$[V];if(re.name===r||re.uuid===r)return re;const ie=i(re.children);if(ie)return ie}return null},g=i(t.children);if(g)return g}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(t,r){t[r]=this.targetObject[this.propertyName]}_getValue_array(t,r){const i=this.resolvedProperty;for(let g=0,$=i.length;g!==$;++g)t[r++]=i[g]}_getValue_arrayElement(t,r){t[r]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(t,r){this.resolvedProperty.toArray(t,r)}_setValue_direct(t,r){this.targetObject[this.propertyName]=t[r]}_setValue_direct_setNeedsUpdate(t,r){this.targetObject[this.propertyName]=t[r],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(t,r){this.targetObject[this.propertyName]=t[r],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(t,r){const i=this.resolvedProperty;for(let g=0,$=i.length;g!==$;++g)i[g]=t[r++]}_setValue_array_setNeedsUpdate(t,r){const i=this.resolvedProperty;for(let g=0,$=i.length;g!==$;++g)i[g]=t[r++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(t,r){const i=this.resolvedProperty;for(let g=0,$=i.length;g!==$;++g)i[g]=t[r++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(t,r){this.resolvedProperty[this.propertyIndex]=t[r]}_setValue_arrayElement_setNeedsUpdate(t,r){this.resolvedProperty[this.propertyIndex]=t[r],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(t,r){this.resolvedProperty[this.propertyIndex]=t[r],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(t,r){this.resolvedProperty.fromArray(t,r)}_setValue_fromArray_setNeedsUpdate(t,r){this.resolvedProperty.fromArray(t,r),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(t,r){this.resolvedProperty.fromArray(t,r),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(t,r){this.bind(),this.getValue(t,r)}_setValue_unbound(t,r){this.bind(),this.setValue(t,r)}bind(){let t=this.node;const r=this.parsedPath,i=r.objectName,g=r.propertyName;let $=r.propertyIndex;if(t||(t=PropertyBinding.findNode(this.rootNode,r.nodeName),this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t){warn("PropertyBinding: No target node found for track: "+this.path+".");return}if(i){let ae=r.objectIndex;switch(i){case"materials":if(!t.material){error("PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!t.material.materials){error("PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);return}t=t.material.materials;break;case"bones":if(!t.skeleton){error("PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);return}t=t.skeleton.bones;for(let oe=0;oede.start-he.start);let ue=0;for(let de=1;de 0 vec4 plane; #ifdef ALPHA_TO_COVERAGE float distanceToPlane, distanceGradient; float clipOpacity = 1.0; #pragma unroll_loop_start for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { plane = clippingPlanes[ i ]; distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; distanceGradient = fwidth( distanceToPlane ) / 2.0; clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); if ( clipOpacity == 0.0 ) discard; } #pragma unroll_loop_end #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES float unionClipOpacity = 1.0; #pragma unroll_loop_start for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { plane = clippingPlanes[ i ]; distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; distanceGradient = fwidth( distanceToPlane ) / 2.0; unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); } #pragma unroll_loop_end clipOpacity *= 1.0 - unionClipOpacity; #endif diffuseColor.a *= clipOpacity; if ( diffuseColor.a == 0.0 ) discard; #else #pragma unroll_loop_start for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { plane = clippingPlanes[ i ]; if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; } #pragma unroll_loop_end #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES bool clipped = true; #pragma unroll_loop_start for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { plane = clippingPlanes[ i ]; clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; } #pragma unroll_loop_end if ( clipped ) discard; #endif #endif #endif`,clipping_planes_pars_fragment=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; #endif`,clipping_planes_pars_vertex=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; #endif`,clipping_planes_vertex=`#if NUM_CLIPPING_PLANES > 0 vClipPosition = - mvPosition.xyz; #endif`,color_fragment=`#if defined( USE_COLOR_ALPHA ) diffuseColor *= vColor; #elif defined( USE_COLOR ) diffuseColor.rgb *= vColor; #endif`,color_pars_fragment=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) varying vec3 vColor; #endif`,color_pars_vertex=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) varying vec3 vColor; #endif`,color_vertex=`#if defined( USE_COLOR_ALPHA ) vColor = vec4( 1.0 ); #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) vColor = vec3( 1.0 ); #endif #ifdef USE_COLOR vColor *= color; #endif #ifdef USE_INSTANCING_COLOR vColor.xyz *= instanceColor.xyz; #endif #ifdef USE_BATCHING_COLOR vec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) ); vColor.xyz *= batchingColor.xyz; #endif`,common=`#define PI 3.141592653589793 #define PI2 6.283185307179586 #define PI_HALF 1.5707963267948966 #define RECIPROCAL_PI 0.3183098861837907 #define RECIPROCAL_PI2 0.15915494309189535 #define EPSILON 1e-6 #ifndef saturate #define saturate( a ) clamp( a, 0.0, 1.0 ) #endif #define whiteComplement( a ) ( 1.0 - saturate( a ) ) float pow2( const in float x ) { return x*x; } vec3 pow2( const in vec3 x ) { return x*x; } float pow3( const in float x ) { return x*x*x; } float pow4( const in float x ) { float x2 = x*x; return x2*x2; } float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } highp float rand( const in vec2 uv ) { const highp float a = 12.9898, b = 78.233, c = 43758.5453; highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); return fract( sin( sn ) * c ); } #ifdef HIGH_PRECISION float precisionSafeLength( vec3 v ) { return length( v ); } #else float precisionSafeLength( vec3 v ) { float maxComponent = max3( abs( v ) ); return length( v / maxComponent ) * maxComponent; } #endif struct IncidentLight { vec3 color; vec3 direction; bool visible; }; struct ReflectedLight { vec3 directDiffuse; vec3 directSpecular; vec3 indirectDiffuse; vec3 indirectSpecular; }; #ifdef USE_ALPHAHASH varying vec3 vPosition; #endif vec3 transformDirection( in vec3 dir, in mat4 matrix ) { return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); } vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); } bool isPerspectiveMatrix( mat4 m ) { return m[ 2 ][ 3 ] == - 1.0; } vec2 equirectUv( in vec3 dir ) { float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; return vec2( u, v ); } vec3 BRDF_Lambert( const in vec3 diffuseColor ) { return RECIPROCAL_PI * diffuseColor; } vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); } float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); } // validated`,cube_uv_reflection_fragment=`#ifdef ENVMAP_TYPE_CUBE_UV #define cubeUV_minMipLevel 4.0 #define cubeUV_minTileSize 16.0 float getFace( vec3 direction ) { vec3 absDirection = abs( direction ); float face = - 1.0; if ( absDirection.x > absDirection.z ) { if ( absDirection.x > absDirection.y ) face = direction.x > 0.0 ? 0.0 : 3.0; else face = direction.y > 0.0 ? 1.0 : 4.0; } else { if ( absDirection.z > absDirection.y ) face = direction.z > 0.0 ? 2.0 : 5.0; else face = direction.y > 0.0 ? 1.0 : 4.0; } return face; } vec2 getUV( vec3 direction, float face ) { vec2 uv; if ( face == 0.0 ) { uv = vec2( direction.z, direction.y ) / abs( direction.x ); } else if ( face == 1.0 ) { uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); } else if ( face == 2.0 ) { uv = vec2( - direction.x, direction.y ) / abs( direction.z ); } else if ( face == 3.0 ) { uv = vec2( - direction.z, direction.y ) / abs( direction.x ); } else if ( face == 4.0 ) { uv = vec2( - direction.x, direction.z ) / abs( direction.y ); } else { uv = vec2( direction.x, direction.y ) / abs( direction.z ); } return 0.5 * ( uv + 1.0 ); } vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { float face = getFace( direction ); float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); mipInt = max( mipInt, cubeUV_minMipLevel ); float faceSize = exp2( mipInt ); highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; if ( face > 2.0 ) { uv.y += faceSize; face -= 3.0; } uv.x += face * faceSize; uv.x += filterInt * 3.0 * cubeUV_minTileSize; uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); uv.x *= CUBEUV_TEXEL_WIDTH; uv.y *= CUBEUV_TEXEL_HEIGHT; #ifdef texture2DGradEXT return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; #else return texture2D( envMap, uv ).rgb; #endif } #define cubeUV_r0 1.0 #define cubeUV_m0 - 2.0 #define cubeUV_r1 0.8 #define cubeUV_m1 - 1.0 #define cubeUV_r4 0.4 #define cubeUV_m4 2.0 #define cubeUV_r5 0.305 #define cubeUV_m5 3.0 #define cubeUV_r6 0.21 #define cubeUV_m6 4.0 float roughnessToMip( float roughness ) { float mip = 0.0; if ( roughness >= cubeUV_r1 ) { mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; } else if ( roughness >= cubeUV_r4 ) { mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; } else if ( roughness >= cubeUV_r5 ) { mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; } else if ( roughness >= cubeUV_r6 ) { mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; } else { mip = - 2.0 * log2( 1.16 * roughness ); } return mip; } vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); float mipF = fract( mip ); float mipInt = floor( mip ); vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); if ( mipF == 0.0 ) { return vec4( color0, 1.0 ); } else { vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); return vec4( mix( color0, color1, mipF ), 1.0 ); } } #endif`,defaultnormal_vertex=`vec3 transformedNormal = objectNormal; #ifdef USE_TANGENT vec3 transformedTangent = objectTangent; #endif #ifdef USE_BATCHING mat3 bm = mat3( batchingMatrix ); transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); transformedNormal = bm * transformedNormal; #ifdef USE_TANGENT transformedTangent = bm * transformedTangent; #endif #endif #ifdef USE_INSTANCING mat3 im = mat3( instanceMatrix ); transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); transformedNormal = im * transformedNormal; #ifdef USE_TANGENT transformedTangent = im * transformedTangent; #endif #endif transformedNormal = normalMatrix * transformedNormal; #ifdef FLIP_SIDED transformedNormal = - transformedNormal; #endif #ifdef USE_TANGENT transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; #ifdef FLIP_SIDED transformedTangent = - transformedTangent; #endif #endif`,displacementmap_pars_vertex=`#ifdef USE_DISPLACEMENTMAP uniform sampler2D displacementMap; uniform float displacementScale; uniform float displacementBias; #endif`,displacementmap_vertex=`#ifdef USE_DISPLACEMENTMAP transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); #endif`,emissivemap_fragment=`#ifdef USE_EMISSIVEMAP vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE emissiveColor = sRGBTransferEOTF( emissiveColor ); #endif totalEmissiveRadiance *= emissiveColor.rgb; #endif`,emissivemap_pars_fragment=`#ifdef USE_EMISSIVEMAP uniform sampler2D emissiveMap; #endif`,colorspace_fragment="gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment=`vec4 LinearTransferOETF( in vec4 value ) { return value; } vec4 sRGBTransferEOTF( in vec4 value ) { return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a ); } vec4 sRGBTransferOETF( in vec4 value ) { return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); }`,envmap_fragment=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vec3 cameraToFrag; if ( isOrthographic ) { cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); } else { cameraToFrag = normalize( vWorldPosition - cameraPosition ); } vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); #ifdef ENVMAP_MODE_REFLECTION vec3 reflectVec = reflect( cameraToFrag, worldNormal ); #else vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); #endif #else vec3 reflectVec = vReflect; #endif #ifdef ENVMAP_TYPE_CUBE vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) ); #else vec4 envColor = vec4( 0.0 ); #endif #ifdef ENVMAP_BLENDING_MULTIPLY outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); #elif defined( ENVMAP_BLENDING_MIX ) outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); #elif defined( ENVMAP_BLENDING_ADD ) outgoingLight += envColor.xyz * specularStrength * reflectivity; #endif #endif`,envmap_common_pars_fragment=`#ifdef USE_ENVMAP uniform float envMapIntensity; uniform float flipEnvMap; uniform mat3 envMapRotation; #ifdef ENVMAP_TYPE_CUBE uniform samplerCube envMap; #else uniform sampler2D envMap; #endif #endif`,envmap_pars_fragment=`#ifdef USE_ENVMAP uniform float reflectivity; #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS #endif #ifdef ENV_WORLDPOS varying vec3 vWorldPosition; uniform float refractionRatio; #else varying vec3 vReflect; #endif #endif`,envmap_pars_vertex=`#ifdef USE_ENVMAP #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS #endif #ifdef ENV_WORLDPOS varying vec3 vWorldPosition; #else varying vec3 vReflect; uniform float refractionRatio; #endif #endif`,envmap_vertex=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vWorldPosition = worldPosition.xyz; #else vec3 cameraToVertex; if ( isOrthographic ) { cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); } else { cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); } vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); #ifdef ENVMAP_MODE_REFLECTION vReflect = reflect( cameraToVertex, worldNormal ); #else vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); #endif #endif #endif`,fog_vertex=`#ifdef USE_FOG vFogDepth = - mvPosition.z; #endif`,fog_pars_vertex=`#ifdef USE_FOG varying float vFogDepth; #endif`,fog_fragment=`#ifdef USE_FOG #ifdef FOG_EXP2 float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); #else float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); #endif gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); #endif`,fog_pars_fragment=`#ifdef USE_FOG uniform vec3 fogColor; varying float vFogDepth; #ifdef FOG_EXP2 uniform float fogDensity; #else uniform float fogNear; uniform float fogFar; #endif #endif`,gradientmap_pars_fragment=`#ifdef USE_GRADIENTMAP uniform sampler2D gradientMap; #endif vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { float dotNL = dot( normal, lightDirection ); vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); #ifdef USE_GRADIENTMAP return vec3( texture2D( gradientMap, coord ).r ); #else vec2 fw = fwidth( coord ) * 0.5; return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); #endif }`,lightmap_pars_fragment=`#ifdef USE_LIGHTMAP uniform sampler2D lightMap; uniform float lightMapIntensity; #endif`,lights_lambert_fragment=`LambertMaterial material; material.diffuseColor = diffuseColor.rgb; material.specularStrength = specularStrength;`,lights_lambert_pars_fragment=`varying vec3 vViewPosition; struct LambertMaterial { vec3 diffuseColor; float specularStrength; }; void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); vec3 irradiance = dotNL * directLight.color; reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Lambert #define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,lights_pars_begin=`uniform bool receiveShadow; uniform vec3 ambientLightColor; #if defined( USE_LIGHT_PROBES ) uniform vec3 lightProbe[ 9 ]; #endif vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { float x = normal.x, y = normal.y, z = normal.z; vec3 result = shCoefficients[ 0 ] * 0.886227; result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); return result; } vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); return irradiance; } vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { vec3 irradiance = ambientLightColor; return irradiance; } float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); if ( cutoffDistance > 0.0 ) { distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); } return distanceFalloff; } float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { return smoothstep( coneCosine, penumbraCosine, angleCosine ); } #if NUM_DIR_LIGHTS > 0 struct DirectionalLight { vec3 direction; vec3 color; }; uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { light.color = directionalLight.color; light.direction = directionalLight.direction; light.visible = true; } #endif #if NUM_POINT_LIGHTS > 0 struct PointLight { vec3 position; vec3 color; float distance; float decay; }; uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { vec3 lVector = pointLight.position - geometryPosition; light.direction = normalize( lVector ); float lightDistance = length( lVector ); light.color = pointLight.color; light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); light.visible = ( light.color != vec3( 0.0 ) ); } #endif #if NUM_SPOT_LIGHTS > 0 struct SpotLight { vec3 position; vec3 direction; vec3 color; float distance; float decay; float coneCos; float penumbraCos; }; uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { vec3 lVector = spotLight.position - geometryPosition; light.direction = normalize( lVector ); float angleCos = dot( light.direction, spotLight.direction ); float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); if ( spotAttenuation > 0.0 ) { float lightDistance = length( lVector ); light.color = spotLight.color * spotAttenuation; light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); light.visible = ( light.color != vec3( 0.0 ) ); } else { light.color = vec3( 0.0 ); light.visible = false; } } #endif #if NUM_RECT_AREA_LIGHTS > 0 struct RectAreaLight { vec3 color; vec3 position; vec3 halfWidth; vec3 halfHeight; }; uniform sampler2D ltc_1; uniform sampler2D ltc_2; uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; #endif #if NUM_HEMI_LIGHTS > 0 struct HemisphereLight { vec3 direction; vec3 skyColor; vec3 groundColor; }; uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { float dotNL = dot( normal, hemiLight.direction ); float hemiDiffuseWeight = 0.5 * dotNL + 0.5; vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); return irradiance; } #endif`,envmap_physical_pars_fragment=`#ifdef USE_ENVMAP vec3 getIBLIrradiance( const in vec3 normal ) { #ifdef ENVMAP_TYPE_CUBE_UV vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); return PI * envMapColor.rgb * envMapIntensity; #else return vec3( 0.0 ); #endif } vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { #ifdef ENVMAP_TYPE_CUBE_UV vec3 reflectVec = reflect( - viewDir, normal ); reflectVec = normalize( mix( reflectVec, normal, pow4( roughness ) ) ); reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); return envMapColor.rgb * envMapIntensity; #else return vec3( 0.0 ); #endif } #ifdef USE_ANISOTROPY vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { #ifdef ENVMAP_TYPE_CUBE_UV vec3 bentNormal = cross( bitangent, viewDir ); bentNormal = normalize( cross( bentNormal, bitangent ) ); bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); return getIBLRadiance( viewDir, bentNormal, roughness ); #else return vec3( 0.0 ); #endif } #endif #endif`,lights_toon_fragment=`ToonMaterial material; material.diffuseColor = diffuseColor.rgb;`,lights_toon_pars_fragment=`varying vec3 vViewPosition; struct ToonMaterial { vec3 diffuseColor; }; void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Toon #define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,lights_phong_fragment=`BlinnPhongMaterial material; material.diffuseColor = diffuseColor.rgb; material.specularColor = specular; material.specularShininess = shininess; material.specularStrength = specularStrength;`,lights_phong_pars_fragment=`varying vec3 vViewPosition; struct BlinnPhongMaterial { vec3 diffuseColor; vec3 specularColor; float specularShininess; float specularStrength; }; void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); vec3 irradiance = dotNL * directLight.color; reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; } void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_BlinnPhong #define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,lights_physical_fragment=`PhysicalMaterial material; material.diffuseColor = diffuseColor.rgb; material.diffuseContribution = diffuseColor.rgb * ( 1.0 - metalnessFactor ); material.metalness = metalnessFactor; vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; material.roughness = min( material.roughness, 1.0 ); #ifdef IOR material.ior = ior; #ifdef USE_SPECULAR float specularIntensityFactor = specularIntensity; vec3 specularColorFactor = specularColor; #ifdef USE_SPECULAR_COLORMAP specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; #endif #ifdef USE_SPECULAR_INTENSITYMAP specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; #endif material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); #else float specularIntensityFactor = 1.0; vec3 specularColorFactor = vec3( 1.0 ); material.specularF90 = 1.0; #endif material.specularColor = min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor; material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor ); #else material.specularColor = vec3( 0.04 ); material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor ); material.specularF90 = 1.0; #endif #ifdef USE_CLEARCOAT material.clearcoat = clearcoat; material.clearcoatRoughness = clearcoatRoughness; material.clearcoatF0 = vec3( 0.04 ); material.clearcoatF90 = 1.0; #ifdef USE_CLEARCOATMAP material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; #endif material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); material.clearcoatRoughness += geometryRoughness; material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); #endif #ifdef USE_DISPERSION material.dispersion = dispersion; #endif #ifdef USE_IRIDESCENCE material.iridescence = iridescence; material.iridescenceIOR = iridescenceIOR; #ifdef USE_IRIDESCENCEMAP material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; #else material.iridescenceThickness = iridescenceThicknessMaximum; #endif #endif #ifdef USE_SHEEN material.sheenColor = sheenColor; #ifdef USE_SHEEN_COLORMAP material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; #endif material.sheenRoughness = clamp( sheenRoughness, 0.0001, 1.0 ); #ifdef USE_SHEEN_ROUGHNESSMAP material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; #endif #endif #ifdef USE_ANISOTROPY #ifdef USE_ANISOTROPYMAP mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; #else vec2 anisotropyV = anisotropyVector; #endif material.anisotropy = length( anisotropyV ); if( material.anisotropy == 0.0 ) { anisotropyV = vec2( 1.0, 0.0 ); } else { anisotropyV /= material.anisotropy; material.anisotropy = saturate( material.anisotropy ); } material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; #endif`,lights_physical_pars_fragment=`uniform sampler2D dfgLUT; struct PhysicalMaterial { vec3 diffuseColor; vec3 diffuseContribution; vec3 specularColor; vec3 specularColorBlended; float roughness; float metalness; float specularF90; float dispersion; #ifdef USE_CLEARCOAT float clearcoat; float clearcoatRoughness; vec3 clearcoatF0; float clearcoatF90; #endif #ifdef USE_IRIDESCENCE float iridescence; float iridescenceIOR; float iridescenceThickness; vec3 iridescenceFresnel; vec3 iridescenceF0; vec3 iridescenceFresnelDielectric; vec3 iridescenceFresnelMetallic; #endif #ifdef USE_SHEEN vec3 sheenColor; float sheenRoughness; #endif #ifdef IOR float ior; #endif #ifdef USE_TRANSMISSION float transmission; float transmissionAlpha; float thickness; float attenuationDistance; vec3 attenuationColor; #endif #ifdef USE_ANISOTROPY float anisotropy; float alphaT; vec3 anisotropyT; vec3 anisotropyB; #endif }; vec3 clearcoatSpecularDirect = vec3( 0.0 ); vec3 clearcoatSpecularIndirect = vec3( 0.0 ); vec3 sheenSpecularDirect = vec3( 0.0 ); vec3 sheenSpecularIndirect = vec3(0.0 ); vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); float x2 = x * x; float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); } float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { float a2 = pow2( alpha ); float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); return 0.5 / max( gv + gl, EPSILON ); } float D_GGX( const in float alpha, const in float dotNH ) { float a2 = pow2( alpha ); float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; return RECIPROCAL_PI * a2 / pow2( denom ); } #ifdef USE_ANISOTROPY float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); float v = 0.5 / ( gv + gl ); return v; } float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { float a2 = alphaT * alphaB; highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); highp float v2 = dot( v, v ); float w2 = a2 / v2; return RECIPROCAL_PI * a2 * pow2 ( w2 ); } #endif #ifdef USE_CLEARCOAT vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { vec3 f0 = material.clearcoatF0; float f90 = material.clearcoatF90; float roughness = material.clearcoatRoughness; float alpha = pow2( roughness ); vec3 halfDir = normalize( lightDir + viewDir ); float dotNL = saturate( dot( normal, lightDir ) ); float dotNV = saturate( dot( normal, viewDir ) ); float dotNH = saturate( dot( normal, halfDir ) ); float dotVH = saturate( dot( viewDir, halfDir ) ); vec3 F = F_Schlick( f0, f90, dotVH ); float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); float D = D_GGX( alpha, dotNH ); return F * ( V * D ); } #endif vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { vec3 f0 = material.specularColorBlended; float f90 = material.specularF90; float roughness = material.roughness; float alpha = pow2( roughness ); vec3 halfDir = normalize( lightDir + viewDir ); float dotNL = saturate( dot( normal, lightDir ) ); float dotNV = saturate( dot( normal, viewDir ) ); float dotNH = saturate( dot( normal, halfDir ) ); float dotVH = saturate( dot( viewDir, halfDir ) ); vec3 F = F_Schlick( f0, f90, dotVH ); #ifdef USE_IRIDESCENCE F = mix( F, material.iridescenceFresnel, material.iridescence ); #endif #ifdef USE_ANISOTROPY float dotTL = dot( material.anisotropyT, lightDir ); float dotTV = dot( material.anisotropyT, viewDir ); float dotTH = dot( material.anisotropyT, halfDir ); float dotBL = dot( material.anisotropyB, lightDir ); float dotBV = dot( material.anisotropyB, viewDir ); float dotBH = dot( material.anisotropyB, halfDir ); float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); #else float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); float D = D_GGX( alpha, dotNH ); #endif return F * ( V * D ); } vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { const float LUT_SIZE = 64.0; const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; const float LUT_BIAS = 0.5 / LUT_SIZE; float dotNV = saturate( dot( N, V ) ); vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); uv = uv * LUT_SCALE + LUT_BIAS; return uv; } float LTC_ClippedSphereFormFactor( const in vec3 f ) { float l = length( f ); return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); } vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { float x = dot( v1, v2 ); float y = abs( x ); float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; float b = 3.4175940 + ( 4.1616724 + y ) * y; float v = a / b; float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; return cross( v1, v2 ) * theta_sintheta; } vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; vec3 lightNormal = cross( v1, v2 ); if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); vec3 T1, T2; T1 = normalize( V - N * dot( V, N ) ); T2 = - cross( N, T1 ); mat3 mat = mInv * transpose( mat3( T1, T2, N ) ); vec3 coords[ 4 ]; coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); coords[ 0 ] = normalize( coords[ 0 ] ); coords[ 1 ] = normalize( coords[ 1 ] ); coords[ 2 ] = normalize( coords[ 2 ] ); coords[ 3 ] = normalize( coords[ 3 ] ); vec3 vectorFormFactor = vec3( 0.0 ); vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); return vec3( result ); } #if defined( USE_SHEEN ) float D_Charlie( float roughness, float dotNH ) { float alpha = pow2( roughness ); float invAlpha = 1.0 / alpha; float cos2h = dotNH * dotNH; float sin2h = max( 1.0 - cos2h, 0.0078125 ); return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); } float V_Neubelt( float dotNV, float dotNL ) { return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); } vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { vec3 halfDir = normalize( lightDir + viewDir ); float dotNL = saturate( dot( normal, lightDir ) ); float dotNV = saturate( dot( normal, viewDir ) ); float dotNH = saturate( dot( normal, halfDir ) ); float D = D_Charlie( sheenRoughness, dotNH ); float V = V_Neubelt( dotNV, dotNL ); return sheenColor * ( D * V ); } #endif float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { float dotNV = saturate( dot( normal, viewDir ) ); float r2 = roughness * roughness; float rInv = 1.0 / ( roughness + 0.1 ); float a = -1.9362 + 1.0678 * roughness + 0.4573 * r2 - 0.8469 * rInv; float b = -0.6014 + 0.5538 * roughness - 0.4670 * r2 - 0.1255 * rInv; float DG = exp( a * dotNV + b ); return saturate( DG ); } vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { float dotNV = saturate( dot( normal, viewDir ) ); vec2 fab = texture2D( dfgLUT, vec2( roughness, dotNV ) ).rg; return specularColor * fab.x + specularF90 * fab.y; } #ifdef USE_IRIDESCENCE void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { #else void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { #endif float dotNV = saturate( dot( normal, viewDir ) ); vec2 fab = texture2D( dfgLUT, vec2( roughness, dotNV ) ).rg; #ifdef USE_IRIDESCENCE vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); #else vec3 Fr = specularColor; #endif vec3 FssEss = Fr * fab.x + specularF90 * fab.y; float Ess = fab.x + fab.y; float Ems = 1.0 - Ess; vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); singleScatter += FssEss; multiScatter += Fms * Ems; } vec3 BRDF_GGX_Multiscatter( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { vec3 singleScatter = BRDF_GGX( lightDir, viewDir, normal, material ); float dotNL = saturate( dot( normal, lightDir ) ); float dotNV = saturate( dot( normal, viewDir ) ); vec2 dfgV = texture2D( dfgLUT, vec2( material.roughness, dotNV ) ).rg; vec2 dfgL = texture2D( dfgLUT, vec2( material.roughness, dotNL ) ).rg; vec3 FssEss_V = material.specularColorBlended * dfgV.x + material.specularF90 * dfgV.y; vec3 FssEss_L = material.specularColorBlended * dfgL.x + material.specularF90 * dfgL.y; float Ess_V = dfgV.x + dfgV.y; float Ess_L = dfgL.x + dfgL.y; float Ems_V = 1.0 - Ess_V; float Ems_L = 1.0 - Ess_L; vec3 Favg = material.specularColorBlended + ( 1.0 - material.specularColorBlended ) * 0.047619; vec3 Fms = FssEss_V * FssEss_L * Favg / ( 1.0 - Ems_V * Ems_L * Favg + EPSILON ); float compensationFactor = Ems_V * Ems_L; vec3 multiScatter = Fms * compensationFactor; return singleScatter + multiScatter; } #if NUM_RECT_AREA_LIGHTS > 0 void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { vec3 normal = geometryNormal; vec3 viewDir = geometryViewDir; vec3 position = geometryPosition; vec3 lightPos = rectAreaLight.position; vec3 halfWidth = rectAreaLight.halfWidth; vec3 halfHeight = rectAreaLight.halfHeight; vec3 lightColor = rectAreaLight.color; float roughness = material.roughness; vec3 rectCoords[ 4 ]; rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; vec2 uv = LTC_Uv( normal, viewDir, roughness ); vec4 t1 = texture2D( ltc_1, uv ); vec4 t2 = texture2D( ltc_2, uv ); mat3 mInv = mat3( vec3( t1.x, 0, t1.y ), vec3( 0, 1, 0 ), vec3( t1.z, 0, t1.w ) ); vec3 fresnel = ( material.specularColorBlended * t2.x + ( vec3( 1.0 ) - material.specularColorBlended ) * t2.y ); reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); reflectedLight.directDiffuse += lightColor * material.diffuseContribution * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); } #endif void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); vec3 irradiance = dotNL * directLight.color; #ifdef USE_CLEARCOAT float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); vec3 ccIrradiance = dotNLcc * directLight.color; clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); #endif #ifdef USE_SHEEN sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); float sheenAlbedoV = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); float sheenAlbedoL = IBLSheenBRDF( geometryNormal, directLight.direction, material.sheenRoughness ); float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * max( sheenAlbedoV, sheenAlbedoL ); irradiance *= sheenEnergyComp; #endif reflectedLight.directSpecular += irradiance * BRDF_GGX_Multiscatter( directLight.direction, geometryViewDir, geometryNormal, material ); reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseContribution ); } void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { vec3 diffuse = irradiance * BRDF_Lambert( material.diffuseContribution ); #ifdef USE_SHEEN float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo; diffuse *= sheenEnergyComp; #endif reflectedLight.indirectDiffuse += diffuse; } void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { #ifdef USE_CLEARCOAT clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); #endif #ifdef USE_SHEEN sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ) * RECIPROCAL_PI; #endif vec3 singleScatteringDielectric = vec3( 0.0 ); vec3 multiScatteringDielectric = vec3( 0.0 ); vec3 singleScatteringMetallic = vec3( 0.0 ); vec3 multiScatteringMetallic = vec3( 0.0 ); #ifdef USE_IRIDESCENCE computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnelDielectric, material.roughness, singleScatteringDielectric, multiScatteringDielectric ); computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.diffuseColor, material.specularF90, material.iridescence, material.iridescenceFresnelMetallic, material.roughness, singleScatteringMetallic, multiScatteringMetallic ); #else computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScatteringDielectric, multiScatteringDielectric ); computeMultiscattering( geometryNormal, geometryViewDir, material.diffuseColor, material.specularF90, material.roughness, singleScatteringMetallic, multiScatteringMetallic ); #endif vec3 singleScattering = mix( singleScatteringDielectric, singleScatteringMetallic, material.metalness ); vec3 multiScattering = mix( multiScatteringDielectric, multiScatteringMetallic, material.metalness ); vec3 totalScatteringDielectric = singleScatteringDielectric + multiScatteringDielectric; vec3 diffuse = material.diffuseContribution * ( 1.0 - totalScatteringDielectric ); vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; vec3 indirectSpecular = radiance * singleScattering; indirectSpecular += multiScattering * cosineWeightedIrradiance; vec3 indirectDiffuse = diffuse * cosineWeightedIrradiance; #ifdef USE_SHEEN float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo; indirectSpecular *= sheenEnergyComp; indirectDiffuse *= sheenEnergyComp; #endif reflectedLight.indirectSpecular += indirectSpecular; reflectedLight.indirectDiffuse += indirectDiffuse; } #define RE_Direct RE_Direct_Physical #define RE_Direct_RectArea RE_Direct_RectArea_Physical #define RE_IndirectDiffuse RE_IndirectDiffuse_Physical #define RE_IndirectSpecular RE_IndirectSpecular_Physical float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); }`,lights_fragment_begin=` vec3 geometryPosition = - vViewPosition; vec3 geometryNormal = normal; vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); vec3 geometryClearcoatNormal = vec3( 0.0 ); #ifdef USE_CLEARCOAT geometryClearcoatNormal = clearcoatNormal; #endif #ifdef USE_IRIDESCENCE float dotNVi = saturate( dot( normal, geometryViewDir ) ); if ( material.iridescenceThickness == 0.0 ) { material.iridescence = 0.0; } else { material.iridescence = saturate( material.iridescence ); } if ( material.iridescence > 0.0 ) { material.iridescenceFresnelDielectric = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); material.iridescenceFresnelMetallic = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.diffuseColor ); material.iridescenceFresnel = mix( material.iridescenceFresnelDielectric, material.iridescenceFresnelMetallic, material.metalness ); material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); } #endif IncidentLight directLight; #if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) PointLight pointLight; #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 PointLightShadow pointLightShadow; #endif #pragma unroll_loop_start for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { pointLight = pointLights[ i ]; getPointLightInfo( pointLight, geometryPosition, directLight ); #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) ) pointLightShadow = pointLightShadows[ i ]; directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; #endif RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); } #pragma unroll_loop_end #endif #if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) SpotLight spotLight; vec4 spotColor; vec3 spotLightCoord; bool inSpotLightMap; #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 SpotLightShadow spotLightShadow; #endif #pragma unroll_loop_start for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { spotLight = spotLights[ i ]; getSpotLightInfo( spotLight, geometryPosition, directLight ); #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS #else #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) #endif #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; #endif #undef SPOT_LIGHT_MAP_INDEX #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) spotLightShadow = spotLightShadows[ i ]; directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; #endif RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); } #pragma unroll_loop_end #endif #if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) DirectionalLight directionalLight; #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 DirectionalLightShadow directionalLightShadow; #endif #pragma unroll_loop_start for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { directionalLight = directionalLights[ i ]; getDirectionalLightInfo( directionalLight, directLight ); #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) directionalLightShadow = directionalLightShadows[ i ]; directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; #endif RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); } #pragma unroll_loop_end #endif #if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) RectAreaLight rectAreaLight; #pragma unroll_loop_start for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { rectAreaLight = rectAreaLights[ i ]; RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); } #pragma unroll_loop_end #endif #if defined( RE_IndirectDiffuse ) vec3 iblIrradiance = vec3( 0.0 ); vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); #if defined( USE_LIGHT_PROBES ) irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); #endif #if ( NUM_HEMI_LIGHTS > 0 ) #pragma unroll_loop_start for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); } #pragma unroll_loop_end #endif #endif #if defined( RE_IndirectSpecular ) vec3 radiance = vec3( 0.0 ); vec3 clearcoatRadiance = vec3( 0.0 ); #endif`,lights_fragment_maps=`#if defined( RE_IndirectDiffuse ) #ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; irradiance += lightMapIrradiance; #endif #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV ) iblIrradiance += getIBLIrradiance( geometryNormal ); #endif #endif #if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) #ifdef USE_ANISOTROPY radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); #else radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); #endif #ifdef USE_CLEARCOAT clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); #endif #endif`,lights_fragment_end=`#if defined( RE_IndirectDiffuse ) RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); #endif #if defined( RE_IndirectSpecular ) RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); #endif`,logdepthbuf_fragment=`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; #endif`,logdepthbuf_pars_fragment=`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) uniform float logDepthBufFC; varying float vFragDepth; varying float vIsPerspective; #endif`,logdepthbuf_pars_vertex=`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER varying float vFragDepth; varying float vIsPerspective; #endif`,logdepthbuf_vertex=`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER vFragDepth = 1.0 + gl_Position.w; vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); #endif`,map_fragment=`#ifdef USE_MAP vec4 sampledDiffuseColor = texture2D( map, vMapUv ); #ifdef DECODE_VIDEO_TEXTURE sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor ); #endif diffuseColor *= sampledDiffuseColor; #endif`,map_pars_fragment=`#ifdef USE_MAP uniform sampler2D map; #endif`,map_particle_fragment=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) #if defined( USE_POINTS_UV ) vec2 uv = vUv; #else vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; #endif #endif #ifdef USE_MAP diffuseColor *= texture2D( map, uv ); #endif #ifdef USE_ALPHAMAP diffuseColor.a *= texture2D( alphaMap, uv ).g; #endif`,map_particle_pars_fragment=`#if defined( USE_POINTS_UV ) varying vec2 vUv; #else #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) uniform mat3 uvTransform; #endif #endif #ifdef USE_MAP uniform sampler2D map; #endif #ifdef USE_ALPHAMAP uniform sampler2D alphaMap; #endif`,metalnessmap_fragment=`float metalnessFactor = metalness; #ifdef USE_METALNESSMAP vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); metalnessFactor *= texelMetalness.b; #endif`,metalnessmap_pars_fragment=`#ifdef USE_METALNESSMAP uniform sampler2D metalnessMap; #endif`,morphinstance_vertex=`#ifdef USE_INSTANCING_MORPH float morphTargetInfluences[ MORPHTARGETS_COUNT ]; float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; } #endif`,morphcolor_vertex=`#if defined( USE_MORPHCOLORS ) vColor *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { #if defined( USE_COLOR_ALPHA ) if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; #elif defined( USE_COLOR ) if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; #endif } #endif`,morphnormal_vertex=`#ifdef USE_MORPHNORMALS objectNormal *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; } #endif`,morphtarget_pars_vertex=`#ifdef USE_MORPHTARGETS #ifndef USE_INSTANCING_MORPH uniform float morphTargetBaseInfluence; uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; #endif uniform sampler2DArray morphTargetsTexture; uniform ivec2 morphTargetsTextureSize; vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; int y = texelIndex / morphTargetsTextureSize.x; int x = texelIndex - y * morphTargetsTextureSize.x; ivec3 morphUV = ivec3( x, y, morphTargetIndex ); return texelFetch( morphTargetsTexture, morphUV, 0 ); } #endif`,morphtarget_vertex=`#ifdef USE_MORPHTARGETS transformed *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; } #endif`,normal_fragment_begin=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; #ifdef FLAT_SHADED vec3 fdx = dFdx( vViewPosition ); vec3 fdy = dFdy( vViewPosition ); vec3 normal = normalize( cross( fdx, fdy ) ); #else vec3 normal = normalize( vNormal ); #ifdef DOUBLE_SIDED normal *= faceDirection; #endif #endif #if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) #ifdef USE_TANGENT mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); #else mat3 tbn = getTangentFrame( - vViewPosition, normal, #if defined( USE_NORMALMAP ) vNormalMapUv #elif defined( USE_CLEARCOAT_NORMALMAP ) vClearcoatNormalMapUv #else vUv #endif ); #endif #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) tbn[0] *= faceDirection; tbn[1] *= faceDirection; #endif #endif #ifdef USE_CLEARCOAT_NORMALMAP #ifdef USE_TANGENT mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); #else mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); #endif #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) tbn2[0] *= faceDirection; tbn2[1] *= faceDirection; #endif #endif vec3 nonPerturbedNormal = normal;`,normal_fragment_maps=`#ifdef USE_NORMALMAP_OBJECTSPACE normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; #ifdef FLIP_SIDED normal = - normal; #endif #ifdef DOUBLE_SIDED normal = normal * faceDirection; #endif normal = normalize( normalMatrix * normal ); #elif defined( USE_NORMALMAP_TANGENTSPACE ) vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; mapN.xy *= normalScale; normal = normalize( tbn * mapN ); #elif defined( USE_BUMPMAP ) normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); #endif`,normal_pars_fragment=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif #endif`,normal_pars_vertex=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif #endif`,normal_vertex=`#ifndef FLAT_SHADED vNormal = normalize( transformedNormal ); #ifdef USE_TANGENT vTangent = normalize( transformedTangent ); vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); #endif #endif`,normalmap_pars_fragment=`#ifdef USE_NORMALMAP uniform sampler2D normalMap; uniform vec2 normalScale; #endif #ifdef USE_NORMALMAP_OBJECTSPACE uniform mat3 normalMatrix; #endif #if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { vec3 q0 = dFdx( eye_pos.xyz ); vec3 q1 = dFdy( eye_pos.xyz ); vec2 st0 = dFdx( uv.st ); vec2 st1 = dFdy( uv.st ); vec3 N = surf_norm; vec3 q1perp = cross( q1, N ); vec3 q0perp = cross( N, q0 ); vec3 T = q1perp * st0.x + q0perp * st1.x; vec3 B = q1perp * st0.y + q0perp * st1.y; float det = max( dot( T, T ), dot( B, B ) ); float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); return mat3( T * scale, B * scale, N ); } #endif`,clearcoat_normal_fragment_begin=`#ifdef USE_CLEARCOAT vec3 clearcoatNormal = nonPerturbedNormal; #endif`,clearcoat_normal_fragment_maps=`#ifdef USE_CLEARCOAT_NORMALMAP vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; clearcoatMapN.xy *= clearcoatNormalScale; clearcoatNormal = normalize( tbn2 * clearcoatMapN ); #endif`,clearcoat_pars_fragment=`#ifdef USE_CLEARCOATMAP uniform sampler2D clearcoatMap; #endif #ifdef USE_CLEARCOAT_NORMALMAP uniform sampler2D clearcoatNormalMap; uniform vec2 clearcoatNormalScale; #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP uniform sampler2D clearcoatRoughnessMap; #endif`,iridescence_pars_fragment=`#ifdef USE_IRIDESCENCEMAP uniform sampler2D iridescenceMap; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP uniform sampler2D iridescenceThicknessMap; #endif`,opaque_fragment=`#ifdef OPAQUE diffuseColor.a = 1.0; #endif #ifdef USE_TRANSMISSION diffuseColor.a *= material.transmissionAlpha; #endif gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,packing=`vec3 packNormalToRGB( const in vec3 normal ) { return normalize( normal ) * 0.5 + 0.5; } vec3 unpackRGBToNormal( const in vec3 rgb ) { return 2.0 * rgb.xyz - 1.0; } const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.; const float Inv255 = 1. / 255.; const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 ); const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g ); const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b ); const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a ); vec4 packDepthToRGBA( const in float v ) { if( v <= 0.0 ) return vec4( 0., 0., 0., 0. ); if( v >= 1.0 ) return vec4( 1., 1., 1., 1. ); float vuf; float af = modf( v * PackFactors.a, vuf ); float bf = modf( vuf * ShiftRight8, vuf ); float gf = modf( vuf * ShiftRight8, vuf ); return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af ); } vec3 packDepthToRGB( const in float v ) { if( v <= 0.0 ) return vec3( 0., 0., 0. ); if( v >= 1.0 ) return vec3( 1., 1., 1. ); float vuf; float bf = modf( v * PackFactors.b, vuf ); float gf = modf( vuf * ShiftRight8, vuf ); return vec3( vuf * Inv255, gf * PackUpscale, bf ); } vec2 packDepthToRG( const in float v ) { if( v <= 0.0 ) return vec2( 0., 0. ); if( v >= 1.0 ) return vec2( 1., 1. ); float vuf; float gf = modf( v * 256., vuf ); return vec2( vuf * Inv255, gf ); } float unpackRGBAToDepth( const in vec4 v ) { return dot( v, UnpackFactors4 ); } float unpackRGBToDepth( const in vec3 v ) { return dot( v, UnpackFactors3 ); } float unpackRGToDepth( const in vec2 v ) { return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g; } vec4 pack2HalfToRGBA( const in vec2 v ) { vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); } vec2 unpackRGBATo2Half( const in vec4 v ) { return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); } float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { return ( viewZ + near ) / ( near - far ); } float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { return depth * ( near - far ) - near; } float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); } float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { return ( near * far ) / ( ( far - near ) * depth - far ); }`,premultiplied_alpha_fragment=`#ifdef PREMULTIPLIED_ALPHA gl_FragColor.rgb *= gl_FragColor.a; #endif`,project_vertex=`vec4 mvPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING mvPosition = batchingMatrix * mvPosition; #endif #ifdef USE_INSTANCING mvPosition = instanceMatrix * mvPosition; #endif mvPosition = modelViewMatrix * mvPosition; gl_Position = projectionMatrix * mvPosition;`,dithering_fragment=`#ifdef DITHERING gl_FragColor.rgb = dithering( gl_FragColor.rgb ); #endif`,dithering_pars_fragment=`#ifdef DITHERING vec3 dithering( vec3 color ) { float grid_position = rand( gl_FragCoord.xy ); vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); return color + dither_shift_RGB; } #endif`,roughnessmap_fragment=`float roughnessFactor = roughness; #ifdef USE_ROUGHNESSMAP vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); roughnessFactor *= texelRoughness.g; #endif`,roughnessmap_pars_fragment=`#ifdef USE_ROUGHNESSMAP uniform sampler2D roughnessMap; #endif`,shadowmap_pars_fragment=`#if NUM_SPOT_LIGHT_COORDS > 0 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif #if NUM_SPOT_LIGHT_MAPS > 0 uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; #endif #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 #if defined( SHADOWMAP_TYPE_PCF ) uniform sampler2DShadow directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; #else uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; #endif varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; struct DirectionalLightShadow { float shadowIntensity; float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; }; uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; #endif #if NUM_SPOT_LIGHT_SHADOWS > 0 #if defined( SHADOWMAP_TYPE_PCF ) uniform sampler2DShadow spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; #else uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; #endif struct SpotLightShadow { float shadowIntensity; float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; }; uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; #endif #if NUM_POINT_LIGHT_SHADOWS > 0 #if defined( SHADOWMAP_TYPE_PCF ) uniform samplerCubeShadow pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; #elif defined( SHADOWMAP_TYPE_BASIC ) uniform samplerCube pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; #endif varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; struct PointLightShadow { float shadowIntensity; float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; float shadowCameraNear; float shadowCameraFar; }; uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; #endif #if defined( SHADOWMAP_TYPE_PCF ) float interleavedGradientNoise( vec2 position ) { return fract( 52.9829189 * fract( dot( position, vec2( 0.06711056, 0.00583715 ) ) ) ); } vec2 vogelDiskSample( int sampleIndex, int samplesCount, float phi ) { const float goldenAngle = 2.399963229728653; float r = sqrt( ( float( sampleIndex ) + 0.5 ) / float( samplesCount ) ); float theta = float( sampleIndex ) * goldenAngle + phi; return vec2( cos( theta ), sin( theta ) ) * r; } #endif #if defined( SHADOWMAP_TYPE_PCF ) float getShadow( sampler2DShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { float shadow = 1.0; shadowCoord.xyz /= shadowCoord.w; shadowCoord.z += shadowBias; bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; bool frustumTest = inFrustum && shadowCoord.z <= 1.0; if ( frustumTest ) { vec2 texelSize = vec2( 1.0 ) / shadowMapSize; float radius = shadowRadius * texelSize.x; float phi = interleavedGradientNoise( gl_FragCoord.xy ) * 6.28318530718; shadow = ( texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 0, 5, phi ) * radius, shadowCoord.z ) ) + texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 1, 5, phi ) * radius, shadowCoord.z ) ) + texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 2, 5, phi ) * radius, shadowCoord.z ) ) + texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 3, 5, phi ) * radius, shadowCoord.z ) ) + texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 4, 5, phi ) * radius, shadowCoord.z ) ) ) * 0.2; } return mix( 1.0, shadow, shadowIntensity ); } #elif defined( SHADOWMAP_TYPE_VSM ) float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { float shadow = 1.0; shadowCoord.xyz /= shadowCoord.w; shadowCoord.z += shadowBias; bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; bool frustumTest = inFrustum && shadowCoord.z <= 1.0; if ( frustumTest ) { vec2 distribution = texture2D( shadowMap, shadowCoord.xy ).rg; float mean = distribution.x; float variance = distribution.y * distribution.y; #ifdef USE_REVERSED_DEPTH_BUFFER float hard_shadow = step( mean, shadowCoord.z ); #else float hard_shadow = step( shadowCoord.z, mean ); #endif if ( hard_shadow == 1.0 ) { shadow = 1.0; } else { variance = max( variance, 0.0000001 ); float d = shadowCoord.z - mean; float p_max = variance / ( variance + d * d ); p_max = clamp( ( p_max - 0.3 ) / 0.65, 0.0, 1.0 ); shadow = max( hard_shadow, p_max ); } } return mix( 1.0, shadow, shadowIntensity ); } #else float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { float shadow = 1.0; shadowCoord.xyz /= shadowCoord.w; shadowCoord.z += shadowBias; bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; bool frustumTest = inFrustum && shadowCoord.z <= 1.0; if ( frustumTest ) { float depth = texture2D( shadowMap, shadowCoord.xy ).r; #ifdef USE_REVERSED_DEPTH_BUFFER shadow = step( depth, shadowCoord.z ); #else shadow = step( shadowCoord.z, depth ); #endif } return mix( 1.0, shadow, shadowIntensity ); } #endif #if NUM_POINT_LIGHT_SHADOWS > 0 #if defined( SHADOWMAP_TYPE_PCF ) float getPointShadow( samplerCubeShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { float shadow = 1.0; vec3 lightToPosition = shadowCoord.xyz; vec3 bd3D = normalize( lightToPosition ); vec3 absVec = abs( lightToPosition ); float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z ); if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) { float dp = ( shadowCameraFar * ( viewSpaceZ - shadowCameraNear ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); dp += shadowBias; float texelSize = shadowRadius / shadowMapSize.x; vec3 absDir = abs( bd3D ); vec3 tangent = absDir.x > absDir.z ? vec3( 0.0, 1.0, 0.0 ) : vec3( 1.0, 0.0, 0.0 ); tangent = normalize( cross( bd3D, tangent ) ); vec3 bitangent = cross( bd3D, tangent ); float phi = interleavedGradientNoise( gl_FragCoord.xy ) * 6.28318530718; shadow = ( texture( shadowMap, vec4( bd3D + ( tangent * vogelDiskSample( 0, 5, phi ).x + bitangent * vogelDiskSample( 0, 5, phi ).y ) * texelSize, dp ) ) + texture( shadowMap, vec4( bd3D + ( tangent * vogelDiskSample( 1, 5, phi ).x + bitangent * vogelDiskSample( 1, 5, phi ).y ) * texelSize, dp ) ) + texture( shadowMap, vec4( bd3D + ( tangent * vogelDiskSample( 2, 5, phi ).x + bitangent * vogelDiskSample( 2, 5, phi ).y ) * texelSize, dp ) ) + texture( shadowMap, vec4( bd3D + ( tangent * vogelDiskSample( 3, 5, phi ).x + bitangent * vogelDiskSample( 3, 5, phi ).y ) * texelSize, dp ) ) + texture( shadowMap, vec4( bd3D + ( tangent * vogelDiskSample( 4, 5, phi ).x + bitangent * vogelDiskSample( 4, 5, phi ).y ) * texelSize, dp ) ) ) * 0.2; } return mix( 1.0, shadow, shadowIntensity ); } #elif defined( SHADOWMAP_TYPE_BASIC ) float getPointShadow( samplerCube shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { float shadow = 1.0; vec3 lightToPosition = shadowCoord.xyz; vec3 bd3D = normalize( lightToPosition ); vec3 absVec = abs( lightToPosition ); float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z ); if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) { float dp = ( shadowCameraFar * ( viewSpaceZ - shadowCameraNear ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); dp += shadowBias; float depth = textureCube( shadowMap, bd3D ).r; #ifdef USE_REVERSED_DEPTH_BUFFER shadow = step( depth, dp ); #else shadow = step( dp, depth ); #endif } return mix( 1.0, shadow, shadowIntensity ); } #endif #endif #endif`,shadowmap_pars_vertex=`#if NUM_SPOT_LIGHT_COORDS > 0 uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; struct DirectionalLightShadow { float shadowIntensity; float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; }; uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; #endif #if NUM_SPOT_LIGHT_SHADOWS > 0 struct SpotLightShadow { float shadowIntensity; float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; }; uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; #endif #if NUM_POINT_LIGHT_SHADOWS > 0 uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; struct PointLightShadow { float shadowIntensity; float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; float shadowCameraNear; float shadowCameraFar; }; uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; #endif #endif`,shadowmap_vertex=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); vec4 shadowWorldPosition; #endif #if defined( USE_SHADOWMAP ) #if NUM_DIR_LIGHT_SHADOWS > 0 #pragma unroll_loop_start for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; } #pragma unroll_loop_end #endif #if NUM_POINT_LIGHT_SHADOWS > 0 #pragma unroll_loop_start for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; } #pragma unroll_loop_end #endif #endif #if NUM_SPOT_LIGHT_COORDS > 0 #pragma unroll_loop_start for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { shadowWorldPosition = worldPosition; #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; #endif vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; } #pragma unroll_loop_end #endif`,shadowmask_pars_fragment=`float getShadowMask() { float shadow = 1.0; #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 DirectionalLightShadow directionalLight; #pragma unroll_loop_start for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { directionalLight = directionalLightShadows[ i ]; shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; } #pragma unroll_loop_end #endif #if NUM_SPOT_LIGHT_SHADOWS > 0 SpotLightShadow spotLight; #pragma unroll_loop_start for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { spotLight = spotLightShadows[ i ]; shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; } #pragma unroll_loop_end #endif #if NUM_POINT_LIGHT_SHADOWS > 0 && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) ) PointLightShadow pointLight; #pragma unroll_loop_start for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { pointLight = pointLightShadows[ i ]; shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; } #pragma unroll_loop_end #endif #endif return shadow; }`,skinbase_vertex=`#ifdef USE_SKINNING mat4 boneMatX = getBoneMatrix( skinIndex.x ); mat4 boneMatY = getBoneMatrix( skinIndex.y ); mat4 boneMatZ = getBoneMatrix( skinIndex.z ); mat4 boneMatW = getBoneMatrix( skinIndex.w ); #endif`,skinning_pars_vertex=`#ifdef USE_SKINNING uniform mat4 bindMatrix; uniform mat4 bindMatrixInverse; uniform highp sampler2D boneTexture; mat4 getBoneMatrix( const in float i ) { int size = textureSize( boneTexture, 0 ).x; int j = int( i ) * 4; int x = j % size; int y = j / size; vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); return mat4( v1, v2, v3, v4 ); } #endif`,skinning_vertex=`#ifdef USE_SKINNING vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); vec4 skinned = vec4( 0.0 ); skinned += boneMatX * skinVertex * skinWeight.x; skinned += boneMatY * skinVertex * skinWeight.y; skinned += boneMatZ * skinVertex * skinWeight.z; skinned += boneMatW * skinVertex * skinWeight.w; transformed = ( bindMatrixInverse * skinned ).xyz; #endif`,skinnormal_vertex=`#ifdef USE_SKINNING mat4 skinMatrix = mat4( 0.0 ); skinMatrix += skinWeight.x * boneMatX; skinMatrix += skinWeight.y * boneMatY; skinMatrix += skinWeight.z * boneMatZ; skinMatrix += skinWeight.w * boneMatW; skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; #ifdef USE_TANGENT objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; #endif #endif`,specularmap_fragment=`float specularStrength; #ifdef USE_SPECULARMAP vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); specularStrength = texelSpecular.r; #else specularStrength = 1.0; #endif`,specularmap_pars_fragment=`#ifdef USE_SPECULARMAP uniform sampler2D specularMap; #endif`,tonemapping_fragment=`#if defined( TONE_MAPPING ) gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); #endif`,tonemapping_pars_fragment=`#ifndef saturate #define saturate( a ) clamp( a, 0.0, 1.0 ) #endif uniform float toneMappingExposure; vec3 LinearToneMapping( vec3 color ) { return saturate( toneMappingExposure * color ); } vec3 ReinhardToneMapping( vec3 color ) { color *= toneMappingExposure; return saturate( color / ( vec3( 1.0 ) + color ) ); } vec3 CineonToneMapping( vec3 color ) { color *= toneMappingExposure; color = max( vec3( 0.0 ), color - 0.004 ); return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); } vec3 RRTAndODTFit( vec3 v ) { vec3 a = v * ( v + 0.0245786 ) - 0.000090537; vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; return a / b; } vec3 ACESFilmicToneMapping( vec3 color ) { const mat3 ACESInputMat = mat3( vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), vec3( 0.04823, 0.01566, 0.83777 ) ); const mat3 ACESOutputMat = mat3( vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), vec3( -0.07367, -0.00605, 1.07602 ) ); color *= toneMappingExposure / 0.6; color = ACESInputMat * color; color = RRTAndODTFit( color ); color = ACESOutputMat * color; return saturate( color ); } const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( vec3( 1.6605, - 0.1246, - 0.0182 ), vec3( - 0.5876, 1.1329, - 0.1006 ), vec3( - 0.0728, - 0.0083, 1.1187 ) ); const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( vec3( 0.6274, 0.0691, 0.0164 ), vec3( 0.3293, 0.9195, 0.0880 ), vec3( 0.0433, 0.0113, 0.8956 ) ); vec3 agxDefaultContrastApprox( vec3 x ) { vec3 x2 = x * x; vec3 x4 = x2 * x2; return + 15.5 * x4 * x2 - 40.14 * x4 * x + 31.96 * x4 - 6.868 * x2 * x + 0.4298 * x2 + 0.1191 * x - 0.00232; } vec3 AgXToneMapping( vec3 color ) { const mat3 AgXInsetMatrix = mat3( vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) ); const mat3 AgXOutsetMatrix = mat3( vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) ); const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; color *= toneMappingExposure; color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; color = AgXInsetMatrix * color; color = max( color, 1e-10 ); color = log2( color ); color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); color = clamp( color, 0.0, 1.0 ); color = agxDefaultContrastApprox( color ); color = AgXOutsetMatrix * color; color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); color = LINEAR_REC2020_TO_LINEAR_SRGB * color; color = clamp( color, 0.0, 1.0 ); return color; } vec3 NeutralToneMapping( vec3 color ) { const float StartCompression = 0.8 - 0.04; const float Desaturation = 0.15; color *= toneMappingExposure; float x = min( color.r, min( color.g, color.b ) ); float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; color -= offset; float peak = max( color.r, max( color.g, color.b ) ); if ( peak < StartCompression ) return color; float d = 1. - StartCompression; float newPeak = 1. - d * d / ( peak + d - StartCompression ); color *= newPeak / peak; float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); return mix( color, vec3( newPeak ), g ); } vec3 CustomToneMapping( vec3 color ) { return color; }`,transmission_fragment=`#ifdef USE_TRANSMISSION material.transmission = transmission; material.transmissionAlpha = 1.0; material.thickness = thickness; material.attenuationDistance = attenuationDistance; material.attenuationColor = attenuationColor; #ifdef USE_TRANSMISSIONMAP material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; #endif #ifdef USE_THICKNESSMAP material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; #endif vec3 pos = vWorldPosition; vec3 v = normalize( cameraPosition - pos ); vec3 n = inverseTransformDirection( normal, viewMatrix ); vec4 transmitted = getIBLVolumeRefraction( n, v, material.roughness, material.diffuseContribution, material.specularColorBlended, material.specularF90, pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness, material.attenuationColor, material.attenuationDistance ); material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); #endif`,transmission_pars_fragment=`#ifdef USE_TRANSMISSION uniform float transmission; uniform float thickness; uniform float attenuationDistance; uniform vec3 attenuationColor; #ifdef USE_TRANSMISSIONMAP uniform sampler2D transmissionMap; #endif #ifdef USE_THICKNESSMAP uniform sampler2D thicknessMap; #endif uniform vec2 transmissionSamplerSize; uniform sampler2D transmissionSamplerMap; uniform mat4 modelMatrix; uniform mat4 projectionMatrix; varying vec3 vWorldPosition; float w0( float a ) { return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); } float w1( float a ) { return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); } float w2( float a ){ return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); } float w3( float a ) { return ( 1.0 / 6.0 ) * ( a * a * a ); } float g0( float a ) { return w0( a ) + w1( a ); } float g1( float a ) { return w2( a ) + w3( a ); } float h0( float a ) { return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); } float h1( float a ) { return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); } vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { uv = uv * texelSize.zw + 0.5; vec2 iuv = floor( uv ); vec2 fuv = fract( uv ); float g0x = g0( fuv.x ); float g1x = g1( fuv.x ); float h0x = h0( fuv.x ); float h1x = h1( fuv.x ); float h0y = h0( fuv.y ); float h1y = h1( fuv.y ); vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); } vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); vec2 fLodSizeInv = 1.0 / fLodSize; vec2 cLodSizeInv = 1.0 / cLodSize; vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); return mix( fSample, cSample, fract( lod ) ); } vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); vec3 modelScale; modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); return normalize( refractionVector ) * thickness * modelScale; } float applyIorToRoughness( const in float roughness, const in float ior ) { return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); } vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); } vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { if ( isinf( attenuationDistance ) ) { return vec3( 1.0 ); } else { vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; } } vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness, const in vec3 attenuationColor, const in float attenuationDistance ) { vec4 transmittedLight; vec3 transmittance; #ifdef USE_DISPERSION float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion; vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread ); for ( int i = 0; i < 3; i ++ ) { vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix ); vec3 refractedRayExit = position + transmissionRay; vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); vec2 refractionCoords = ndcPos.xy / ndcPos.w; refractionCoords += 1.0; refractionCoords /= 2.0; vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] ); transmittedLight[ i ] = transmissionSample[ i ]; transmittedLight.a += transmissionSample.a; transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ]; } transmittedLight.a /= 3.0; #else vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); vec3 refractedRayExit = position + transmissionRay; vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); vec2 refractionCoords = ndcPos.xy / ndcPos.w; refractionCoords += 1.0; refractionCoords /= 2.0; transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); #endif vec3 attenuatedColor = transmittance * transmittedLight.rgb; vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); } #endif`,uv_pars_fragment=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP varying vec2 vMapUv; #endif #ifdef USE_ALPHAMAP varying vec2 vAlphaMapUv; #endif #ifdef USE_LIGHTMAP varying vec2 vLightMapUv; #endif #ifdef USE_AOMAP varying vec2 vAoMapUv; #endif #ifdef USE_BUMPMAP varying vec2 vBumpMapUv; #endif #ifdef USE_NORMALMAP varying vec2 vNormalMapUv; #endif #ifdef USE_EMISSIVEMAP varying vec2 vEmissiveMapUv; #endif #ifdef USE_METALNESSMAP varying vec2 vMetalnessMapUv; #endif #ifdef USE_ROUGHNESSMAP varying vec2 vRoughnessMapUv; #endif #ifdef USE_ANISOTROPYMAP varying vec2 vAnisotropyMapUv; #endif #ifdef USE_CLEARCOATMAP varying vec2 vClearcoatMapUv; #endif #ifdef USE_CLEARCOAT_NORMALMAP varying vec2 vClearcoatNormalMapUv; #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP varying vec2 vClearcoatRoughnessMapUv; #endif #ifdef USE_IRIDESCENCEMAP varying vec2 vIridescenceMapUv; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP varying vec2 vIridescenceThicknessMapUv; #endif #ifdef USE_SHEEN_COLORMAP varying vec2 vSheenColorMapUv; #endif #ifdef USE_SHEEN_ROUGHNESSMAP varying vec2 vSheenRoughnessMapUv; #endif #ifdef USE_SPECULARMAP varying vec2 vSpecularMapUv; #endif #ifdef USE_SPECULAR_COLORMAP varying vec2 vSpecularColorMapUv; #endif #ifdef USE_SPECULAR_INTENSITYMAP varying vec2 vSpecularIntensityMapUv; #endif #ifdef USE_TRANSMISSIONMAP uniform mat3 transmissionMapTransform; varying vec2 vTransmissionMapUv; #endif #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; #endif`,uv_pars_vertex=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP uniform mat3 mapTransform; varying vec2 vMapUv; #endif #ifdef USE_ALPHAMAP uniform mat3 alphaMapTransform; varying vec2 vAlphaMapUv; #endif #ifdef USE_LIGHTMAP uniform mat3 lightMapTransform; varying vec2 vLightMapUv; #endif #ifdef USE_AOMAP uniform mat3 aoMapTransform; varying vec2 vAoMapUv; #endif #ifdef USE_BUMPMAP uniform mat3 bumpMapTransform; varying vec2 vBumpMapUv; #endif #ifdef USE_NORMALMAP uniform mat3 normalMapTransform; varying vec2 vNormalMapUv; #endif #ifdef USE_DISPLACEMENTMAP uniform mat3 displacementMapTransform; varying vec2 vDisplacementMapUv; #endif #ifdef USE_EMISSIVEMAP uniform mat3 emissiveMapTransform; varying vec2 vEmissiveMapUv; #endif #ifdef USE_METALNESSMAP uniform mat3 metalnessMapTransform; varying vec2 vMetalnessMapUv; #endif #ifdef USE_ROUGHNESSMAP uniform mat3 roughnessMapTransform; varying vec2 vRoughnessMapUv; #endif #ifdef USE_ANISOTROPYMAP uniform mat3 anisotropyMapTransform; varying vec2 vAnisotropyMapUv; #endif #ifdef USE_CLEARCOATMAP uniform mat3 clearcoatMapTransform; varying vec2 vClearcoatMapUv; #endif #ifdef USE_CLEARCOAT_NORMALMAP uniform mat3 clearcoatNormalMapTransform; varying vec2 vClearcoatNormalMapUv; #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP uniform mat3 clearcoatRoughnessMapTransform; varying vec2 vClearcoatRoughnessMapUv; #endif #ifdef USE_SHEEN_COLORMAP uniform mat3 sheenColorMapTransform; varying vec2 vSheenColorMapUv; #endif #ifdef USE_SHEEN_ROUGHNESSMAP uniform mat3 sheenRoughnessMapTransform; varying vec2 vSheenRoughnessMapUv; #endif #ifdef USE_IRIDESCENCEMAP uniform mat3 iridescenceMapTransform; varying vec2 vIridescenceMapUv; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP uniform mat3 iridescenceThicknessMapTransform; varying vec2 vIridescenceThicknessMapUv; #endif #ifdef USE_SPECULARMAP uniform mat3 specularMapTransform; varying vec2 vSpecularMapUv; #endif #ifdef USE_SPECULAR_COLORMAP uniform mat3 specularColorMapTransform; varying vec2 vSpecularColorMapUv; #endif #ifdef USE_SPECULAR_INTENSITYMAP uniform mat3 specularIntensityMapTransform; varying vec2 vSpecularIntensityMapUv; #endif #ifdef USE_TRANSMISSIONMAP uniform mat3 transmissionMapTransform; varying vec2 vTransmissionMapUv; #endif #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; #endif`,uv_vertex=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) vUv = vec3( uv, 1 ).xy; #endif #ifdef USE_MAP vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; #endif #ifdef USE_ALPHAMAP vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; #endif #ifdef USE_LIGHTMAP vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; #endif #ifdef USE_AOMAP vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; #endif #ifdef USE_BUMPMAP vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; #endif #ifdef USE_NORMALMAP vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; #endif #ifdef USE_DISPLACEMENTMAP vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; #endif #ifdef USE_EMISSIVEMAP vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; #endif #ifdef USE_METALNESSMAP vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; #endif #ifdef USE_ROUGHNESSMAP vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; #endif #ifdef USE_ANISOTROPYMAP vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; #endif #ifdef USE_CLEARCOATMAP vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; #endif #ifdef USE_CLEARCOAT_NORMALMAP vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; #endif #ifdef USE_IRIDESCENCEMAP vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; #endif #ifdef USE_SHEEN_COLORMAP vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; #endif #ifdef USE_SHEEN_ROUGHNESSMAP vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; #endif #ifdef USE_SPECULARMAP vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; #endif #ifdef USE_SPECULAR_COLORMAP vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; #endif #ifdef USE_SPECULAR_INTENSITYMAP vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; #endif #ifdef USE_TRANSMISSIONMAP vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; #endif #ifdef USE_THICKNESSMAP vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; #endif`,worldpos_vertex=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 vec4 worldPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING worldPosition = batchingMatrix * worldPosition; #endif #ifdef USE_INSTANCING worldPosition = instanceMatrix * worldPosition; #endif worldPosition = modelMatrix * worldPosition; #endif`;const vertex$h=`varying vec2 vUv; uniform mat3 uvTransform; void main() { vUv = ( uvTransform * vec3( uv, 1 ) ).xy; gl_Position = vec4( position.xy, 1.0, 1.0 ); }`,fragment$h=`uniform sampler2D t2D; uniform float backgroundIntensity; varying vec2 vUv; void main() { vec4 texColor = texture2D( t2D, vUv ); #ifdef DECODE_VIDEO_TEXTURE texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); #endif texColor.rgb *= backgroundIntensity; gl_FragColor = texColor; #include #include }`,vertex$g=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; }`,fragment$g=`#ifdef ENVMAP_TYPE_CUBE uniform samplerCube envMap; #elif defined( ENVMAP_TYPE_CUBE_UV ) uniform sampler2D envMap; #endif uniform float flipEnvMap; uniform float backgroundBlurriness; uniform float backgroundIntensity; uniform mat3 backgroundRotation; varying vec3 vWorldDirection; #include void main() { #ifdef ENVMAP_TYPE_CUBE vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) ); #elif defined( ENVMAP_TYPE_CUBE_UV ) vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); #else vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); #endif texColor.rgb *= backgroundIntensity; gl_FragColor = texColor; #include #include }`,vertex$f=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; }`,fragment$f=`uniform samplerCube tCube; uniform float tFlip; uniform float opacity; varying vec3 vWorldDirection; void main() { vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); gl_FragColor = texColor; gl_FragColor.a *= opacity; #include #include }`,vertex$e=`#include #include #include #include #include #include #include #include varying vec2 vHighPrecisionZW; void main() { #include #include #include #include #ifdef USE_DISPLACEMENTMAP #include #include #include #endif #include #include #include #include #include #include #include vHighPrecisionZW = gl_Position.zw; }`,fragment$e=`#if DEPTH_PACKING == 3200 uniform float opacity; #endif #include #include #include #include #include #include #include #include #include varying vec2 vHighPrecisionZW; void main() { vec4 diffuseColor = vec4( 1.0 ); #include #if DEPTH_PACKING == 3200 diffuseColor.a = opacity; #endif #include #include #include #include #include #ifdef USE_REVERSED_DEPTH_BUFFER float fragCoordZ = vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ]; #else float fragCoordZ = 0.5 * vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ] + 0.5; #endif #if DEPTH_PACKING == 3200 gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); #elif DEPTH_PACKING == 3201 gl_FragColor = packDepthToRGBA( fragCoordZ ); #elif DEPTH_PACKING == 3202 gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 ); #elif DEPTH_PACKING == 3203 gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 ); #endif }`,vertex$d=`#define DISTANCE varying vec3 vWorldPosition; #include #include #include #include #include #include #include void main() { #include #include #include #include #ifdef USE_DISPLACEMENTMAP #include #include #include #endif #include #include #include #include #include #include #include vWorldPosition = worldPosition.xyz; }`,fragment$d=`#define DISTANCE uniform vec3 referencePosition; uniform float nearDistance; uniform float farDistance; varying vec3 vWorldPosition; #include #include #include #include #include #include #include void main () { vec4 diffuseColor = vec4( 1.0 ); #include #include #include #include #include float dist = length( vWorldPosition - referencePosition ); dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); dist = saturate( dist ); gl_FragColor = vec4( dist, 0.0, 0.0, 1.0 ); }`,vertex$c=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include }`,fragment$c=`uniform sampler2D tEquirect; varying vec3 vWorldDirection; #include void main() { vec3 direction = normalize( vWorldDirection ); vec2 sampleUV = equirectUv( direction ); gl_FragColor = texture2D( tEquirect, sampleUV ); #include #include }`,vertex$b=`uniform float scale; attribute float lineDistance; varying float vLineDistance; #include #include #include #include #include #include #include void main() { vLineDistance = scale * lineDistance; #include #include #include #include #include #include #include #include #include #include }`,fragment$b=`uniform vec3 diffuse; uniform float opacity; uniform float dashSize; uniform float totalSize; varying float vLineDistance; #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include if ( mod( vLineDistance, totalSize ) > dashSize ) { discard; } vec3 outgoingLight = vec3( 0.0 ); #include #include #include outgoingLight = diffuseColor.rgb; #include #include #include #include #include }`,vertex$a=`#include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) #include #include #include #include #include #endif #include #include #include #include #include #include #include #include #include }`,fragment$a=`uniform vec3 diffuse; uniform float opacity; #ifndef FLAT_SHADED varying vec3 vNormal; #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include #include #include #include #include #include #include #include ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); #ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; #else reflectedLight.indirectDiffuse += vec3( 1.0 ); #endif #include reflectedLight.indirectDiffuse *= diffuseColor.rgb; vec3 outgoingLight = reflectedLight.indirectDiffuse; #include #include #include #include #include #include #include }`,vertex$9=`#define LAMBERT varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vViewPosition = - mvPosition.xyz; #include #include #include #include }`,fragment$9=`#define LAMBERT uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); vec3 totalEmissiveRadiance = emissive; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; #include #include #include #include #include #include #include }`,vertex$8=`#define MATCAP varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vViewPosition = - mvPosition.xyz; }`,fragment$8=`#define MATCAP uniform vec3 diffuse; uniform float opacity; uniform sampler2D matcap; varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include #include #include #include #include #include #include #include #include vec3 viewDir = normalize( vViewPosition ); vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); vec3 y = cross( viewDir, x ); vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; #ifdef USE_MATCAP vec4 matcapColor = texture2D( matcap, uv ); #else vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); #endif vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; #include #include #include #include #include #include }`,vertex$7=`#define NORMAL #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) varying vec3 vViewPosition; #endif #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) vViewPosition = - mvPosition.xyz; #endif }`,fragment$7=`#define NORMAL uniform float opacity; #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) varying vec3 vViewPosition; #endif #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); #include #include #include #include gl_FragColor = vec4( normalize( normal ) * 0.5 + 0.5, diffuseColor.a ); #ifdef OPAQUE gl_FragColor.a = 1.0; #endif }`,vertex$6=`#define PHONG varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vViewPosition = - mvPosition.xyz; #include #include #include #include }`,fragment$6=`#define PHONG uniform vec3 diffuse; uniform vec3 emissive; uniform vec3 specular; uniform float shininess; uniform float opacity; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); vec3 totalEmissiveRadiance = emissive; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; #include #include #include #include #include #include #include }`,vertex$5=`#define STANDARD varying vec3 vViewPosition; #ifdef USE_TRANSMISSION varying vec3 vWorldPosition; #endif #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vViewPosition = - mvPosition.xyz; #include #include #include #ifdef USE_TRANSMISSION vWorldPosition = worldPosition.xyz; #endif }`,fragment$5=`#define STANDARD #ifdef PHYSICAL #define IOR #define USE_SPECULAR #endif uniform vec3 diffuse; uniform vec3 emissive; uniform float roughness; uniform float metalness; uniform float opacity; #ifdef IOR uniform float ior; #endif #ifdef USE_SPECULAR uniform float specularIntensity; uniform vec3 specularColor; #ifdef USE_SPECULAR_COLORMAP uniform sampler2D specularColorMap; #endif #ifdef USE_SPECULAR_INTENSITYMAP uniform sampler2D specularIntensityMap; #endif #endif #ifdef USE_CLEARCOAT uniform float clearcoat; uniform float clearcoatRoughness; #endif #ifdef USE_DISPERSION uniform float dispersion; #endif #ifdef USE_IRIDESCENCE uniform float iridescence; uniform float iridescenceIOR; uniform float iridescenceThicknessMinimum; uniform float iridescenceThicknessMaximum; #endif #ifdef USE_SHEEN uniform vec3 sheenColor; uniform float sheenRoughness; #ifdef USE_SHEEN_COLORMAP uniform sampler2D sheenColorMap; #endif #ifdef USE_SHEEN_ROUGHNESSMAP uniform sampler2D sheenRoughnessMap; #endif #endif #ifdef USE_ANISOTROPY uniform vec2 anisotropyVector; #ifdef USE_ANISOTROPYMAP uniform sampler2D anisotropyMap; #endif #endif varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); vec3 totalEmissiveRadiance = emissive; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; #include vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; #ifdef USE_SHEEN outgoingLight = outgoingLight + sheenSpecularDirect + sheenSpecularIndirect; #endif #ifdef USE_CLEARCOAT float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; #endif #include #include #include #include #include #include }`,vertex$4=`#define TOON varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vViewPosition = - mvPosition.xyz; #include #include #include }`,fragment$4=`#define TOON uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); vec3 totalEmissiveRadiance = emissive; #include #include #include #include #include #include #include #include #include #include #include #include #include #include vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; #include #include #include #include #include #include }`,vertex$3=`uniform float size; uniform float scale; #include #include #include #include #include #include #ifdef USE_POINTS_UV varying vec2 vUv; uniform mat3 uvTransform; #endif void main() { #ifdef USE_POINTS_UV vUv = ( uvTransform * vec3( uv, 1 ) ).xy; #endif #include #include #include #include #include #include gl_PointSize = size; #ifdef USE_SIZEATTENUATION bool isPerspective = isPerspectiveMatrix( projectionMatrix ); if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); #endif #include #include #include #include }`,fragment$3=`uniform vec3 diffuse; uniform float opacity; #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include vec3 outgoingLight = vec3( 0.0 ); #include #include #include #include #include outgoingLight = diffuseColor.rgb; #include #include #include #include #include }`,vertex$2=`#include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include }`,fragment$2=`uniform vec3 color; uniform float opacity; #include #include #include #include #include #include #include void main() { #include gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); #include #include #include }`,vertex$1=`uniform float rotation; uniform vec2 center; #include #include #include #include #include void main() { #include vec4 mvPosition = modelViewMatrix[ 3 ]; vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) ); #ifndef USE_SIZEATTENUATION bool isPerspective = isPerspectiveMatrix( projectionMatrix ); if ( isPerspective ) scale *= - mvPosition.z; #endif vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; vec2 rotatedPosition; rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; mvPosition.xy += rotatedPosition; gl_Position = projectionMatrix * mvPosition; #include #include #include }`,fragment$1=`uniform vec3 diffuse; uniform float opacity; #include #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include vec3 outgoingLight = vec3( 0.0 ); #include #include #include #include #include outgoingLight = diffuseColor.rgb; #include #include #include #include }`,ShaderChunk={alphahash_fragment,alphahash_pars_fragment,alphamap_fragment,alphamap_pars_fragment,alphatest_fragment,alphatest_pars_fragment,aomap_fragment,aomap_pars_fragment,batching_pars_vertex,batching_vertex,begin_vertex,beginnormal_vertex,bsdfs,iridescence_fragment,bumpmap_pars_fragment,clipping_planes_fragment,clipping_planes_pars_fragment,clipping_planes_pars_vertex,clipping_planes_vertex,color_fragment,color_pars_fragment,color_pars_vertex,color_vertex,common,cube_uv_reflection_fragment,defaultnormal_vertex,displacementmap_pars_vertex,displacementmap_vertex,emissivemap_fragment,emissivemap_pars_fragment,colorspace_fragment,colorspace_pars_fragment,envmap_fragment,envmap_common_pars_fragment,envmap_pars_fragment,envmap_pars_vertex,envmap_physical_pars_fragment,envmap_vertex,fog_vertex,fog_pars_vertex,fog_fragment,fog_pars_fragment,gradientmap_pars_fragment,lightmap_pars_fragment,lights_lambert_fragment,lights_lambert_pars_fragment,lights_pars_begin,lights_toon_fragment,lights_toon_pars_fragment,lights_phong_fragment,lights_phong_pars_fragment,lights_physical_fragment,lights_physical_pars_fragment,lights_fragment_begin,lights_fragment_maps,lights_fragment_end,logdepthbuf_fragment,logdepthbuf_pars_fragment,logdepthbuf_pars_vertex,logdepthbuf_vertex,map_fragment,map_pars_fragment,map_particle_fragment,map_particle_pars_fragment,metalnessmap_fragment,metalnessmap_pars_fragment,morphinstance_vertex,morphcolor_vertex,morphnormal_vertex,morphtarget_pars_vertex,morphtarget_vertex,normal_fragment_begin,normal_fragment_maps,normal_pars_fragment,normal_pars_vertex,normal_vertex,normalmap_pars_fragment,clearcoat_normal_fragment_begin,clearcoat_normal_fragment_maps,clearcoat_pars_fragment,iridescence_pars_fragment,opaque_fragment,packing,premultiplied_alpha_fragment,project_vertex,dithering_fragment,dithering_pars_fragment,roughnessmap_fragment,roughnessmap_pars_fragment,shadowmap_pars_fragment,shadowmap_pars_vertex,shadowmap_vertex,shadowmask_pars_fragment,skinbase_vertex,skinning_pars_vertex,skinning_vertex,skinnormal_vertex,specularmap_fragment,specularmap_pars_fragment,tonemapping_fragment,tonemapping_pars_fragment,transmission_fragment,transmission_pars_fragment,uv_pars_fragment,uv_pars_vertex,uv_vertex,worldpos_vertex,background_vert:vertex$h,background_frag:fragment$h,backgroundCube_vert:vertex$g,backgroundCube_frag:fragment$g,cube_vert:vertex$f,cube_frag:fragment$f,depth_vert:vertex$e,depth_frag:fragment$e,distance_vert:vertex$d,distance_frag:fragment$d,equirect_vert:vertex$c,equirect_frag:fragment$c,linedashed_vert:vertex$b,linedashed_frag:fragment$b,meshbasic_vert:vertex$a,meshbasic_frag:fragment$a,meshlambert_vert:vertex$9,meshlambert_frag:fragment$9,meshmatcap_vert:vertex$8,meshmatcap_frag:fragment$8,meshnormal_vert:vertex$7,meshnormal_frag:fragment$7,meshphong_vert:vertex$6,meshphong_frag:fragment$6,meshphysical_vert:vertex$5,meshphysical_frag:fragment$5,meshtoon_vert:vertex$4,meshtoon_frag:fragment$4,points_vert:vertex$3,points_frag:fragment$3,shadow_vert:vertex$2,shadow_frag:fragment$2,sprite_vert:vertex$1,sprite_frag:fragment$1},UniformsLib={common:{diffuse:{value:new Color(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Matrix3},alphaMap:{value:null},alphaMapTransform:{value:new Matrix3},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Matrix3}},envmap:{envMap:{value:null},envMapRotation:{value:new Matrix3},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98},dfgLUT:{value:null}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Matrix3}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Matrix3}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Matrix3},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Matrix3},normalScale:{value:new Vector2(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Matrix3},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Matrix3}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Matrix3}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Matrix3}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Color(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Color(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Matrix3},alphaTest:{value:0},uvTransform:{value:new Matrix3}},sprite:{diffuse:{value:new Color(16777215)},opacity:{value:1},center:{value:new Vector2(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Matrix3},alphaMap:{value:null},alphaMapTransform:{value:new Matrix3},alphaTest:{value:0}}},ShaderLib={basic:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.specularmap,UniformsLib.envmap,UniformsLib.aomap,UniformsLib.lightmap,UniformsLib.fog]),vertexShader:ShaderChunk.meshbasic_vert,fragmentShader:ShaderChunk.meshbasic_frag},lambert:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.specularmap,UniformsLib.envmap,UniformsLib.aomap,UniformsLib.lightmap,UniformsLib.emissivemap,UniformsLib.bumpmap,UniformsLib.normalmap,UniformsLib.displacementmap,UniformsLib.fog,UniformsLib.lights,{emissive:{value:new Color(0)}}]),vertexShader:ShaderChunk.meshlambert_vert,fragmentShader:ShaderChunk.meshlambert_frag},phong:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.specularmap,UniformsLib.envmap,UniformsLib.aomap,UniformsLib.lightmap,UniformsLib.emissivemap,UniformsLib.bumpmap,UniformsLib.normalmap,UniformsLib.displacementmap,UniformsLib.fog,UniformsLib.lights,{emissive:{value:new Color(0)},specular:{value:new Color(1118481)},shininess:{value:30}}]),vertexShader:ShaderChunk.meshphong_vert,fragmentShader:ShaderChunk.meshphong_frag},standard:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.envmap,UniformsLib.aomap,UniformsLib.lightmap,UniformsLib.emissivemap,UniformsLib.bumpmap,UniformsLib.normalmap,UniformsLib.displacementmap,UniformsLib.roughnessmap,UniformsLib.metalnessmap,UniformsLib.fog,UniformsLib.lights,{emissive:{value:new Color(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:ShaderChunk.meshphysical_vert,fragmentShader:ShaderChunk.meshphysical_frag},toon:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.aomap,UniformsLib.lightmap,UniformsLib.emissivemap,UniformsLib.bumpmap,UniformsLib.normalmap,UniformsLib.displacementmap,UniformsLib.gradientmap,UniformsLib.fog,UniformsLib.lights,{emissive:{value:new Color(0)}}]),vertexShader:ShaderChunk.meshtoon_vert,fragmentShader:ShaderChunk.meshtoon_frag},matcap:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.bumpmap,UniformsLib.normalmap,UniformsLib.displacementmap,UniformsLib.fog,{matcap:{value:null}}]),vertexShader:ShaderChunk.meshmatcap_vert,fragmentShader:ShaderChunk.meshmatcap_frag},points:{uniforms:mergeUniforms([UniformsLib.points,UniformsLib.fog]),vertexShader:ShaderChunk.points_vert,fragmentShader:ShaderChunk.points_frag},dashed:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:ShaderChunk.linedashed_vert,fragmentShader:ShaderChunk.linedashed_frag},depth:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.displacementmap]),vertexShader:ShaderChunk.depth_vert,fragmentShader:ShaderChunk.depth_frag},normal:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.bumpmap,UniformsLib.normalmap,UniformsLib.displacementmap,{opacity:{value:1}}]),vertexShader:ShaderChunk.meshnormal_vert,fragmentShader:ShaderChunk.meshnormal_frag},sprite:{uniforms:mergeUniforms([UniformsLib.sprite,UniformsLib.fog]),vertexShader:ShaderChunk.sprite_vert,fragmentShader:ShaderChunk.sprite_frag},background:{uniforms:{uvTransform:{value:new Matrix3},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:ShaderChunk.background_vert,fragmentShader:ShaderChunk.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Matrix3}},vertexShader:ShaderChunk.backgroundCube_vert,fragmentShader:ShaderChunk.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:ShaderChunk.cube_vert,fragmentShader:ShaderChunk.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:ShaderChunk.equirect_vert,fragmentShader:ShaderChunk.equirect_frag},distance:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.displacementmap,{referencePosition:{value:new Vector3},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:ShaderChunk.distance_vert,fragmentShader:ShaderChunk.distance_frag},shadow:{uniforms:mergeUniforms([UniformsLib.lights,UniformsLib.fog,{color:{value:new Color(0)},opacity:{value:1}}]),vertexShader:ShaderChunk.shadow_vert,fragmentShader:ShaderChunk.shadow_frag}};ShaderLib.physical={uniforms:mergeUniforms([ShaderLib.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Matrix3},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Matrix3},clearcoatNormalScale:{value:new Vector2(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Matrix3},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Matrix3},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Matrix3},sheen:{value:0},sheenColor:{value:new Color(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Matrix3},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Matrix3},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Matrix3},transmissionSamplerSize:{value:new Vector2},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Matrix3},attenuationDistance:{value:0},attenuationColor:{value:new Color(0)},specularColor:{value:new Color(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Matrix3},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Matrix3},anisotropyVector:{value:new Vector2},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Matrix3}}]),vertexShader:ShaderChunk.meshphysical_vert,fragmentShader:ShaderChunk.meshphysical_frag};const _rgb={r:0,b:0,g:0},_e1$1=new Euler,_m1$1=new Matrix4;function WebGLBackground(n,t,r,i,g,$,V){const re=new Color(0);let ie=$===!0?0:1,ae,oe,le=null,ue=0,de=null;function he(Ie){let Ne=Ie.isScene===!0?Ie.background:null;return Ne&&Ne.isTexture&&(Ne=(Ie.backgroundBlurriness>0?r:t).get(Ne)),Ne}function pe(Ie){let Ne=!1;const Oe=he(Ie);Oe===null?Ce(re,ie):Oe&&Oe.isColor&&(Ce(Oe,1),Ne=!0);const $e=n.xr.getEnvironmentBlendMode();$e==="additive"?i.buffers.color.setClear(0,0,0,1,V):$e==="alpha-blend"&&i.buffers.color.setClear(0,0,0,0,V),(n.autoClear||Ne)&&(i.buffers.depth.setTest(!0),i.buffers.depth.setMask(!0),i.buffers.color.setMask(!0),n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil))}function _e(Ie,Ne){const Oe=he(Ne);Oe&&(Oe.isCubeTexture||Oe.mapping===CubeUVReflectionMapping)?(oe===void 0&&(oe=new Mesh(new BoxGeometry(1,1,1),new ShaderMaterial({name:"BackgroundCubeMaterial",uniforms:cloneUniforms(ShaderLib.backgroundCube.uniforms),vertexShader:ShaderLib.backgroundCube.vertexShader,fragmentShader:ShaderLib.backgroundCube.fragmentShader,side:BackSide,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),oe.geometry.deleteAttribute("normal"),oe.geometry.deleteAttribute("uv"),oe.onBeforeRender=function($e,Ve,Ue){this.matrixWorld.copyPosition(Ue.matrixWorld)},Object.defineProperty(oe.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),g.update(oe)),_e1$1.copy(Ne.backgroundRotation),_e1$1.x*=-1,_e1$1.y*=-1,_e1$1.z*=-1,Oe.isCubeTexture&&Oe.isRenderTargetTexture===!1&&(_e1$1.y*=-1,_e1$1.z*=-1),oe.material.uniforms.envMap.value=Oe,oe.material.uniforms.flipEnvMap.value=Oe.isCubeTexture&&Oe.isRenderTargetTexture===!1?-1:1,oe.material.uniforms.backgroundBlurriness.value=Ne.backgroundBlurriness,oe.material.uniforms.backgroundIntensity.value=Ne.backgroundIntensity,oe.material.uniforms.backgroundRotation.value.setFromMatrix4(_m1$1.makeRotationFromEuler(_e1$1)),oe.material.toneMapped=ColorManagement.getTransfer(Oe.colorSpace)!==SRGBTransfer,(le!==Oe||ue!==Oe.version||de!==n.toneMapping)&&(oe.material.needsUpdate=!0,le=Oe,ue=Oe.version,de=n.toneMapping),oe.layers.enableAll(),Ie.unshift(oe,oe.geometry,oe.material,0,0,null)):Oe&&Oe.isTexture&&(ae===void 0&&(ae=new Mesh(new PlaneGeometry(2,2),new ShaderMaterial({name:"BackgroundMaterial",uniforms:cloneUniforms(ShaderLib.background.uniforms),vertexShader:ShaderLib.background.vertexShader,fragmentShader:ShaderLib.background.fragmentShader,side:FrontSide,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),ae.geometry.deleteAttribute("normal"),Object.defineProperty(ae.material,"map",{get:function(){return this.uniforms.t2D.value}}),g.update(ae)),ae.material.uniforms.t2D.value=Oe,ae.material.uniforms.backgroundIntensity.value=Ne.backgroundIntensity,ae.material.toneMapped=ColorManagement.getTransfer(Oe.colorSpace)!==SRGBTransfer,Oe.matrixAutoUpdate===!0&&Oe.updateMatrix(),ae.material.uniforms.uvTransform.value.copy(Oe.matrix),(le!==Oe||ue!==Oe.version||de!==n.toneMapping)&&(ae.material.needsUpdate=!0,le=Oe,ue=Oe.version,de=n.toneMapping),ae.layers.enableAll(),Ie.unshift(ae,ae.geometry,ae.material,0,0,null))}function Ce(Ie,Ne){Ie.getRGB(_rgb,getUnlitUniformColorSpace(n)),i.buffers.color.setClear(_rgb.r,_rgb.g,_rgb.b,Ne,V)}function xe(){oe!==void 0&&(oe.geometry.dispose(),oe.material.dispose(),oe=void 0),ae!==void 0&&(ae.geometry.dispose(),ae.material.dispose(),ae=void 0)}return{getClearColor:function(){return re},setClearColor:function(Ie,Ne=1){re.set(Ie),ie=Ne,Ce(re,ie)},getClearAlpha:function(){return ie},setClearAlpha:function(Ie){ie=Ie,Ce(re,ie)},render:pe,addToRenderList:_e,dispose:xe}}function WebGLBindingStates(n,t){const r=n.getParameter(n.MAX_VERTEX_ATTRIBS),i={},g=ue(null);let $=g,V=!1;function re(ze,Pt,qe,Et,kt){let At=!1;const Dt=le(Et,qe,Pt);$!==Dt&&($=Dt,ae($.object)),At=de(ze,Et,qe,kt),At&&he(ze,Et,qe,kt),kt!==null&&t.update(kt,n.ELEMENT_ARRAY_BUFFER),(At||V)&&(V=!1,Ne(ze,Pt,qe,Et),kt!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get(kt).buffer))}function ie(){return n.createVertexArray()}function ae(ze){return n.bindVertexArray(ze)}function oe(ze){return n.deleteVertexArray(ze)}function le(ze,Pt,qe){const Et=qe.wireframe===!0;let kt=i[ze.id];kt===void 0&&(kt={},i[ze.id]=kt);let At=kt[Pt.id];At===void 0&&(At={},kt[Pt.id]=At);let Dt=At[Et];return Dt===void 0&&(Dt=ue(ie()),At[Et]=Dt),Dt}function ue(ze){const Pt=[],qe=[],Et=[];for(let kt=0;kt=0){const vn=kt[jt];let _n=At[jt];if(_n===void 0&&(jt==="instanceMatrix"&&ze.instanceMatrix&&(_n=ze.instanceMatrix),jt==="instanceColor"&&ze.instanceColor&&(_n=ze.instanceColor)),vn===void 0||vn.attribute!==_n||_n&&vn.data!==_n.data)return!0;Dt++}return $.attributesNum!==Dt||$.index!==Et}function he(ze,Pt,qe,Et){const kt={},At=Pt.attributes;let Dt=0;const Lt=qe.getAttributes();for(const jt in Lt)if(Lt[jt].location>=0){let vn=At[jt];vn===void 0&&(jt==="instanceMatrix"&&ze.instanceMatrix&&(vn=ze.instanceMatrix),jt==="instanceColor"&&ze.instanceColor&&(vn=ze.instanceColor));const _n={};_n.attribute=vn,vn&&vn.data&&(_n.data=vn.data),kt[jt]=_n,Dt++}$.attributes=kt,$.attributesNum=Dt,$.index=Et}function pe(){const ze=$.newAttributes;for(let Pt=0,qe=ze.length;Pt=0){let hn=kt[Lt];if(hn===void 0&&(Lt==="instanceMatrix"&&ze.instanceMatrix&&(hn=ze.instanceMatrix),Lt==="instanceColor"&&ze.instanceColor&&(hn=ze.instanceColor)),hn!==void 0){const vn=hn.normalized,_n=hn.itemSize,wn=t.get(hn);if(wn===void 0)continue;const bn=wn.buffer,Cn=wn.type,Sn=wn.bytesPerElement,Tn=Cn===n.INT||Cn===n.UNSIGNED_INT||hn.gpuType===IntType;if(hn.isInterleavedBufferAttribute){const En=hn.data,kn=En.stride,$n=hn.offset;if(En.isInstancedInterleavedBuffer){for(let An=0;An0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";Ve="mediump"}return Ve==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let ae=r.precision!==void 0?r.precision:"highp";const oe=ie(ae);oe!==ae&&(warn("WebGLRenderer:",ae,"not supported, using",oe,"instead."),ae=oe);const le=r.logarithmicDepthBuffer===!0,ue=r.reversedDepthBuffer===!0&&t.has("EXT_clip_control"),de=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),he=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),pe=n.getParameter(n.MAX_TEXTURE_SIZE),_e=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),Ce=n.getParameter(n.MAX_VERTEX_ATTRIBS),xe=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),Ie=n.getParameter(n.MAX_VARYING_VECTORS),Ne=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),Oe=n.getParameter(n.MAX_SAMPLES),$e=n.getParameter(n.SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:$,getMaxPrecision:ie,textureFormatReadable:V,textureTypeReadable:re,precision:ae,logarithmicDepthBuffer:le,reversedDepthBuffer:ue,maxTextures:de,maxVertexTextures:he,maxTextureSize:pe,maxCubemapSize:_e,maxAttributes:Ce,maxVertexUniforms:xe,maxVaryings:Ie,maxFragmentUniforms:Ne,maxSamples:Oe,samples:$e}}function WebGLClipping(n){const t=this;let r=null,i=0,g=!1,$=!1;const V=new Plane,re=new Matrix3,ie={value:null,needsUpdate:!1};this.uniform=ie,this.numPlanes=0,this.numIntersection=0,this.init=function(le,ue){const de=le.length!==0||ue||i!==0||g;return g=ue,i=le.length,de},this.beginShadows=function(){$=!0,oe(null)},this.endShadows=function(){$=!1},this.setGlobalState=function(le,ue){r=oe(le,ue,0)},this.setState=function(le,ue,de){const he=le.clippingPlanes,pe=le.clipIntersection,_e=le.clipShadows,Ce=n.get(le);if(!g||he===null||he.length===0||$&&!_e)$?oe(null):ae();else{const xe=$?0:i,Ie=xe*4;let Ne=Ce.clippingState||null;ie.value=Ne,Ne=oe(he,ue,Ie,de);for(let Oe=0;Oe!==Ie;++Oe)Ne[Oe]=r[Oe];Ce.clippingState=Ne,this.numIntersection=pe?this.numPlanes:0,this.numPlanes+=xe}};function ae(){ie.value!==r&&(ie.value=r,ie.needsUpdate=i>0),t.numPlanes=i,t.numIntersection=0}function oe(le,ue,de,he){const pe=le!==null?le.length:0;let _e=null;if(pe!==0){if(_e=ie.value,he!==!0||_e===null){const Ce=de+pe*4,xe=ue.matrixWorldInverse;re.getNormalMatrix(xe),(_e===null||_e.length0){const ae=new WebGLCubeRenderTarget(ie.height);return ae.fromEquirectangularTexture(n,V),t.set(V,ae),V.addEventListener("dispose",g),r(ae.texture,V.mapping)}else return null}}return V}function g(V){const re=V.target;re.removeEventListener("dispose",g);const ie=t.get(re);ie!==void 0&&(t.delete(re),ie.dispose())}function $(){t=new WeakMap}return{get:i,dispose:$}}const LOD_MIN=4,EXTRA_LOD_SIGMA=[.125,.215,.35,.446,.526,.582],MAX_SAMPLES=20,GGX_SAMPLES=256,_flatCamera=new OrthographicCamera,_clearColor=new Color;let _oldTarget=null,_oldActiveCubeFace=0,_oldActiveMipmapLevel=0,_oldXrEnabled=!1;const _origin=new Vector3;class PMREMGenerator{constructor(t){this._renderer=t,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._sizeLods=[],this._sigmas=[],this._lodMeshes=[],this._backgroundBox=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._blurMaterial=null,this._ggxMaterial=null}fromScene(t,r=0,i=.1,g=100,$={}){const{size:V=256,position:re=_origin}=$;_oldTarget=this._renderer.getRenderTarget(),_oldActiveCubeFace=this._renderer.getActiveCubeFace(),_oldActiveMipmapLevel=this._renderer.getActiveMipmapLevel(),_oldXrEnabled=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(V);const ie=this._allocateTargets();return ie.depthBuffer=!0,this._sceneToCubeUV(t,i,g,ie,re),r>0&&this._blur(ie,0,0,r),this._applyPMREM(ie),this._cleanup(ie),ie}fromEquirectangular(t,r=null){return this._fromTexture(t,r)}fromCubemap(t,r=null){return this._fromTexture(t,r)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=_getCubemapMaterial(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=_getEquirectMaterial(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose(),this._backgroundBox!==null&&(this._backgroundBox.geometry.dispose(),this._backgroundBox.material.dispose())}_setSize(t){this._lodMax=Math.floor(Math.log2(t)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._ggxMaterial!==null&&this._ggxMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let t=0;t2?Oe:0,Oe,Oe),le.setRenderTarget(g),Ce&&le.render(pe,ie),le.render(t,ie)}le.toneMapping=de,le.autoClear=ue,t.background=xe}_textureToCubeUV(t,r){const i=this._renderer,g=t.mapping===CubeReflectionMapping||t.mapping===CubeRefractionMapping;g?(this._cubemapMaterial===null&&(this._cubemapMaterial=_getCubemapMaterial()),this._cubemapMaterial.uniforms.flipEnvMap.value=t.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=_getEquirectMaterial());const $=g?this._cubemapMaterial:this._equirectMaterial,V=this._lodMeshes[0];V.material=$;const re=$.uniforms;re.envMap.value=t;const ie=this._cubeSize;_setViewport(r,0,0,3*ie,2*ie),i.setRenderTarget(r),i.render(V,_flatCamera)}_applyPMREM(t){const r=this._renderer,i=r.autoClear;r.autoClear=!1;const g=this._lodMeshes.length;for(let $=1;$he-LOD_MIN?i-he+LOD_MIN:0),Ce=4*(this._cubeSize-pe);ie.envMap.value=t.texture,ie.roughness.value=de,ie.mipInt.value=he-r,_setViewport($,_e,Ce,3*pe,2*pe),g.setRenderTarget($),g.render(re,_flatCamera),ie.envMap.value=$.texture,ie.roughness.value=0,ie.mipInt.value=he-i,_setViewport(t,_e,Ce,3*pe,2*pe),g.setRenderTarget(t),g.render(re,_flatCamera)}_blur(t,r,i,g,$){const V=this._pingPongRenderTarget;this._halfBlur(t,V,r,i,g,"latitudinal",$),this._halfBlur(V,t,i,i,g,"longitudinal",$)}_halfBlur(t,r,i,g,$,V,re){const ie=this._renderer,ae=this._blurMaterial;V!=="latitudinal"&&V!=="longitudinal"&&error("blur direction must be either latitudinal or longitudinal!");const oe=3,le=this._lodMeshes[g];le.material=ae;const ue=ae.uniforms,de=this._sizeLods[i]-1,he=isFinite($)?Math.PI/(2*de):2*Math.PI/(2*MAX_SAMPLES-1),pe=$/he,_e=isFinite($)?1+Math.floor(oe*pe):MAX_SAMPLES;_e>MAX_SAMPLES&&warn(`sigmaRadians, ${$}, is too large and will clip, as it requested ${_e} samples when the maximum is set to ${MAX_SAMPLES}`);const Ce=[];let xe=0;for(let Ve=0;VeIe-LOD_MIN?g-Ie+LOD_MIN:0),$e=4*(this._cubeSize-Ne);_setViewport(r,Oe,$e,3*Ne,2*Ne),ie.setRenderTarget(r),ie.render(le,_flatCamera)}}function _createPlanes(n){const t=[],r=[],i=[];let g=n;const $=n-LOD_MIN+1+EXTRA_LOD_SIGMA.length;for(let V=0;V<$;V++){const re=Math.pow(2,g);t.push(re);let ie=1/re;V>n-LOD_MIN?ie=EXTRA_LOD_SIGMA[V-n+LOD_MIN-1]:V===0&&(ie=0),r.push(ie);const ae=1/(re-2),oe=-ae,le=1+ae,ue=[oe,oe,le,oe,le,le,oe,oe,le,le,oe,le],de=6,he=6,pe=3,_e=2,Ce=1,xe=new Float32Array(pe*he*de),Ie=new Float32Array(_e*he*de),Ne=new Float32Array(Ce*he*de);for(let $e=0;$e2?0:-1,Fe=[Ve,Ue,0,Ve+2/3,Ue,0,Ve+2/3,Ue+1,0,Ve,Ue,0,Ve+2/3,Ue+1,0,Ve,Ue+1,0];xe.set(Fe,pe*he*$e),Ie.set(ue,_e*he*$e);const ze=[$e,$e,$e,$e,$e,$e];Ne.set(ze,Ce*he*$e)}const Oe=new BufferGeometry;Oe.setAttribute("position",new BufferAttribute(xe,pe)),Oe.setAttribute("uv",new BufferAttribute(Ie,_e)),Oe.setAttribute("faceIndex",new BufferAttribute(Ne,Ce)),i.push(new Mesh(Oe,null)),g>LOD_MIN&&g--}return{lodMeshes:i,sizeLods:t,sigmas:r}}function _createRenderTarget(n,t,r){const i=new WebGLRenderTarget(n,t,r);return i.texture.mapping=CubeUVReflectionMapping,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function _setViewport(n,t,r,i,g){n.viewport.set(t,r,i,g),n.scissor.set(t,r,i,g)}function _getGGXShader(n,t,r){return new ShaderMaterial({name:"PMREMGGXConvolution",defines:{GGX_SAMPLES,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/r,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},roughness:{value:0},mipInt:{value:0}},vertexShader:_getCommonVertexShader(),fragmentShader:` precision highp float; precision highp int; varying vec3 vOutputDirection; uniform sampler2D envMap; uniform float roughness; uniform float mipInt; #define ENVMAP_TYPE_CUBE_UV #include #define PI 3.14159265359 // Van der Corput radical inverse float radicalInverse_VdC(uint bits) { bits = (bits << 16u) | (bits >> 16u); bits = ((bits & 0x55555555u) << 1u) | ((bits & 0xAAAAAAAAu) >> 1u); bits = ((bits & 0x33333333u) << 2u) | ((bits & 0xCCCCCCCCu) >> 2u); bits = ((bits & 0x0F0F0F0Fu) << 4u) | ((bits & 0xF0F0F0F0u) >> 4u); bits = ((bits & 0x00FF00FFu) << 8u) | ((bits & 0xFF00FF00u) >> 8u); return float(bits) * 2.3283064365386963e-10; // / 0x100000000 } // Hammersley sequence vec2 hammersley(uint i, uint N) { return vec2(float(i) / float(N), radicalInverse_VdC(i)); } // GGX VNDF importance sampling (Eric Heitz 2018) // "Sampling the GGX Distribution of Visible Normals" // https://jcgt.org/published/0007/04/01/ vec3 importanceSampleGGX_VNDF(vec2 Xi, vec3 V, float roughness) { float alpha = roughness * roughness; // Section 3.2: Transform view direction to hemisphere configuration vec3 Vh = normalize(vec3(alpha * V.x, alpha * V.y, V.z)); // Section 4.1: Orthonormal basis float lensq = Vh.x * Vh.x + Vh.y * Vh.y; vec3 T1 = lensq > 0.0 ? vec3(-Vh.y, Vh.x, 0.0) / sqrt(lensq) : vec3(1.0, 0.0, 0.0); vec3 T2 = cross(Vh, T1); // Section 4.2: Parameterization of projected area float r = sqrt(Xi.x); float phi = 2.0 * PI * Xi.y; float t1 = r * cos(phi); float t2 = r * sin(phi); float s = 0.5 * (1.0 + Vh.z); t2 = (1.0 - s) * sqrt(1.0 - t1 * t1) + s * t2; // Section 4.3: Reprojection onto hemisphere vec3 Nh = t1 * T1 + t2 * T2 + sqrt(max(0.0, 1.0 - t1 * t1 - t2 * t2)) * Vh; // Section 3.4: Transform back to ellipsoid configuration return normalize(vec3(alpha * Nh.x, alpha * Nh.y, max(0.0, Nh.z))); } void main() { vec3 N = normalize(vOutputDirection); vec3 V = N; // Assume view direction equals normal for pre-filtering vec3 prefilteredColor = vec3(0.0); float totalWeight = 0.0; // For very low roughness, just sample the environment directly if (roughness < 0.001) { gl_FragColor = vec4(bilinearCubeUV(envMap, N, mipInt), 1.0); return; } // Tangent space basis for VNDF sampling vec3 up = abs(N.z) < 0.999 ? vec3(0.0, 0.0, 1.0) : vec3(1.0, 0.0, 0.0); vec3 tangent = normalize(cross(up, N)); vec3 bitangent = cross(N, tangent); for(uint i = 0u; i < uint(GGX_SAMPLES); i++) { vec2 Xi = hammersley(i, uint(GGX_SAMPLES)); // For PMREM, V = N, so in tangent space V is always (0, 0, 1) vec3 H_tangent = importanceSampleGGX_VNDF(Xi, vec3(0.0, 0.0, 1.0), roughness); // Transform H back to world space vec3 H = normalize(tangent * H_tangent.x + bitangent * H_tangent.y + N * H_tangent.z); vec3 L = normalize(2.0 * dot(V, H) * H - V); float NdotL = max(dot(N, L), 0.0); if(NdotL > 0.0) { // Sample environment at fixed mip level // VNDF importance sampling handles the distribution filtering vec3 sampleColor = bilinearCubeUV(envMap, L, mipInt); // Weight by NdotL for the split-sum approximation // VNDF PDF naturally accounts for the visible microfacet distribution prefilteredColor += sampleColor * NdotL; totalWeight += NdotL; } } if (totalWeight > 0.0) { prefilteredColor = prefilteredColor / totalWeight; } gl_FragColor = vec4(prefilteredColor, 1.0); } `,blending:NoBlending,depthTest:!1,depthWrite:!1})}function _getBlurShader(n,t,r){const i=new Float32Array(MAX_SAMPLES),g=new Vector3(0,1,0);return new ShaderMaterial({name:"SphericalGaussianBlur",defines:{n:MAX_SAMPLES,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/r,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:g}},vertexShader:_getCommonVertexShader(),fragmentShader:` precision mediump float; precision mediump int; varying vec3 vOutputDirection; uniform sampler2D envMap; uniform int samples; uniform float weights[ n ]; uniform bool latitudinal; uniform float dTheta; uniform float mipInt; uniform vec3 poleAxis; #define ENVMAP_TYPE_CUBE_UV #include vec3 getSample( float theta, vec3 axis ) { float cosTheta = cos( theta ); // Rodrigues' axis-angle rotation vec3 sampleDirection = vOutputDirection * cosTheta + cross( axis, vOutputDirection ) * sin( theta ) + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); return bilinearCubeUV( envMap, sampleDirection, mipInt ); } void main() { vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); if ( all( equal( axis, vec3( 0.0 ) ) ) ) { axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); } axis = normalize( axis ); gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); for ( int i = 1; i < n; i++ ) { if ( i >= samples ) { break; } float theta = dTheta * float( i ); gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); } } `,blending:NoBlending,depthTest:!1,depthWrite:!1})}function _getEquirectMaterial(){return new ShaderMaterial({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:_getCommonVertexShader(),fragmentShader:` precision mediump float; precision mediump int; varying vec3 vOutputDirection; uniform sampler2D envMap; #include void main() { vec3 outputDirection = normalize( vOutputDirection ); vec2 uv = equirectUv( outputDirection ); gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); } `,blending:NoBlending,depthTest:!1,depthWrite:!1})}function _getCubemapMaterial(){return new ShaderMaterial({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:_getCommonVertexShader(),fragmentShader:` precision mediump float; precision mediump int; uniform float flipEnvMap; varying vec3 vOutputDirection; uniform samplerCube envMap; void main() { gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); } `,blending:NoBlending,depthTest:!1,depthWrite:!1})}function _getCommonVertexShader(){return` precision mediump float; precision mediump int; attribute float faceIndex; varying vec3 vOutputDirection; // RH coordinate system; PMREM face-indexing convention vec3 getDirection( vec2 uv, float face ) { uv = 2.0 * uv - 1.0; vec3 direction = vec3( uv, 1.0 ); if ( face == 0.0 ) { direction = direction.zyx; // ( 1, v, u ) pos x } else if ( face == 1.0 ) { direction = direction.xzy; direction.xz *= -1.0; // ( -u, 1, -v ) pos y } else if ( face == 2.0 ) { direction.x *= -1.0; // ( -u, v, 1 ) pos z } else if ( face == 3.0 ) { direction = direction.zyx; direction.xz *= -1.0; // ( -1, v, -u ) neg x } else if ( face == 4.0 ) { direction = direction.xzy; direction.xy *= -1.0; // ( -u, -1, v ) neg y } else if ( face == 5.0 ) { direction.z *= -1.0; // ( u, v, -1 ) neg z } return direction; } void main() { vOutputDirection = getDirection( uv, faceIndex ); gl_Position = vec4( position, 1.0 ); } `}function WebGLCubeUVMaps(n){let t=new WeakMap,r=null;function i(re){if(re&&re.isTexture){const ie=re.mapping,ae=ie===EquirectangularReflectionMapping||ie===EquirectangularRefractionMapping,oe=ie===CubeReflectionMapping||ie===CubeRefractionMapping;if(ae||oe){let le=t.get(re);const ue=le!==void 0?le.texture.pmremVersion:0;if(re.isRenderTargetTexture&&re.pmremVersion!==ue)return r===null&&(r=new PMREMGenerator(n)),le=ae?r.fromEquirectangular(re,le):r.fromCubemap(re,le),le.texture.pmremVersion=re.pmremVersion,t.set(re,le),le.texture;if(le!==void 0)return le.texture;{const de=re.image;return ae&&de&&de.height>0||oe&&de&&g(de)?(r===null&&(r=new PMREMGenerator(n)),le=ae?r.fromEquirectangular(re):r.fromCubemap(re),le.texture.pmremVersion=re.pmremVersion,t.set(re,le),re.addEventListener("dispose",$),le.texture):null}}}return re}function g(re){let ie=0;const ae=6;for(let oe=0;oet.maxTextureSize&&(Oe=Math.ceil(Ne/t.maxTextureSize),Ne=t.maxTextureSize);const $e=new Float32Array(Ne*Oe*4*le),Ve=new DataArrayTexture($e,Ne,Oe,le);Ve.type=FloatType,Ve.needsUpdate=!0;const Ue=Ie*4;for(let ze=0;ze #include void main() { gl_FragColor = texture2D( tDiffuse, vUv ); #ifdef LINEAR_TONE_MAPPING gl_FragColor.rgb = LinearToneMapping( gl_FragColor.rgb ); #elif defined( REINHARD_TONE_MAPPING ) gl_FragColor.rgb = ReinhardToneMapping( gl_FragColor.rgb ); #elif defined( CINEON_TONE_MAPPING ) gl_FragColor.rgb = CineonToneMapping( gl_FragColor.rgb ); #elif defined( ACES_FILMIC_TONE_MAPPING ) gl_FragColor.rgb = ACESFilmicToneMapping( gl_FragColor.rgb ); #elif defined( AGX_TONE_MAPPING ) gl_FragColor.rgb = AgXToneMapping( gl_FragColor.rgb ); #elif defined( NEUTRAL_TONE_MAPPING ) gl_FragColor.rgb = NeutralToneMapping( gl_FragColor.rgb ); #elif defined( CUSTOM_TONE_MAPPING ) gl_FragColor.rgb = CustomToneMapping( gl_FragColor.rgb ); #endif #ifdef SRGB_TRANSFER gl_FragColor = sRGBTransferOETF( gl_FragColor ); #endif }`,depthTest:!1,depthWrite:!1}),ae=new Mesh(re,ie),oe=new OrthographicCamera(-1,1,1,-1,0,1);let le=null,ue=null,de=!1,he,pe=null,_e=[],Ce=!1;this.setSize=function(xe,Ie){$.setSize(xe,Ie),V.setSize(xe,Ie);for(let Ne=0;Ne<_e.length;Ne++){const Oe=_e[Ne];Oe.setSize&&Oe.setSize(xe,Ie)}},this.setEffects=function(xe){_e=xe,Ce=_e.length>0&&_e[0].isRenderPass===!0;const Ie=$.width,Ne=$.height;for(let Oe=0;Oe<_e.length;Oe++){const $e=_e[Oe];$e.setSize&&$e.setSize(Ie,Ne)}},this.begin=function(xe,Ie){if(de||xe.toneMapping===NoToneMapping&&_e.length===0)return!1;if(pe=Ie,Ie!==null){const Ne=Ie.width,Oe=Ie.height;($.width!==Ne||$.height!==Oe)&&this.setSize(Ne,Oe)}return Ce===!1&&xe.setRenderTarget($),he=xe.toneMapping,xe.toneMapping=NoToneMapping,!0},this.hasRenderPass=function(){return Ce},this.end=function(xe,Ie){xe.toneMapping=he,de=!0;let Ne=$,Oe=V;for(let $e=0;$e<_e.length;$e++){const Ve=_e[$e];if(Ve.enabled!==!1&&(Ve.render(xe,Oe,Ne,Ie),Ve.needsSwap!==!1)){const Ue=Ne;Ne=Oe,Oe=Ue}}if(le!==xe.outputColorSpace||ue!==xe.toneMapping){le=xe.outputColorSpace,ue=xe.toneMapping,ie.defines={},ColorManagement.getTransfer(le)===SRGBTransfer&&(ie.defines.SRGB_TRANSFER="");const $e=toneMappingMap[ue];$e&&(ie.defines[$e]=""),ie.needsUpdate=!0}ie.uniforms.tDiffuse.value=Ne.texture,xe.setRenderTarget(pe),xe.render(ae,oe),pe=null,de=!1},this.isCompositing=function(){return de},this.dispose=function(){$.dispose(),V.dispose(),re.dispose(),ie.dispose()}}const emptyTexture=new Texture,emptyShadowTexture=new DepthTexture(1,1),emptyArrayTexture=new DataArrayTexture,empty3dTexture=new Data3DTexture,emptyCubeTexture=new CubeTexture,arrayCacheF32=[],arrayCacheI32=[],mat4array=new Float32Array(16),mat3array=new Float32Array(9),mat2array=new Float32Array(4);function flatten(n,t,r){const i=n[0];if(i<=0||i>0)return n;const g=t*r;let $=arrayCacheF32[g];if($===void 0&&($=new Float32Array(g),arrayCacheF32[g]=$),t!==0){i.toArray($,0);for(let V=1,re=0;V!==t;++V)re+=r,n[V].toArray($,re)}return $}function arraysEqual(n,t){if(n.length!==t.length)return!1;for(let r=0,i=n.length;r0&&(this.seq=g.concat($))}setValue(t,r,i,g){const $=this.map[r];$!==void 0&&$.setValue(t,i,g)}setOptional(t,r,i){const g=r[i];g!==void 0&&this.setValue(t,i,g)}static upload(t,r,i,g){for(let $=0,V=r.length;$!==V;++$){const re=r[$],ie=i[re.id];ie.needsUpdate!==!1&&re.setValue(t,ie.value,g)}}static seqWithValue(t,r){const i=[];for(let g=0,$=t.length;g!==$;++g){const V=t[g];V.id in r&&i.push(V)}return i}}function WebGLShader(n,t,r){const i=n.createShader(t);return n.shaderSource(i,r),n.compileShader(i),i}const COMPLETION_STATUS_KHR=37297;let programIdCount=0;function handleSource(n,t){const r=n.split(` `),i=[],g=Math.max(t-6,0),$=Math.min(t+6,r.length);for(let V=g;V<$;V++){const re=V+1;i.push(`${re===t?">":" "} ${re}: ${r[V]}`)}return i.join(` `)}const _m0=new Matrix3;function getEncodingComponents(n){ColorManagement._getMatrix(_m0,ColorManagement.workingColorSpace,n);const t=`mat3( ${_m0.elements.map(r=>r.toFixed(4))} )`;switch(ColorManagement.getTransfer(n)){case LinearTransfer:return[t,"LinearTransferOETF"];case SRGBTransfer:return[t,"sRGBTransferOETF"];default:return warn("WebGLProgram: Unsupported color space: ",n),[t,"LinearTransferOETF"]}}function getShaderErrors(n,t,r){const i=n.getShaderParameter(t,n.COMPILE_STATUS),$=(n.getShaderInfoLog(t)||"").trim();if(i&&$==="")return"";const V=/ERROR: 0:(\d+)/.exec($);if(V){const re=parseInt(V[1]);return r.toUpperCase()+` `+$+` `+handleSource(n.getShaderSource(t),re)}else return $}function getTexelEncodingFunction(n,t){const r=getEncodingComponents(t);return[`vec4 ${n}( vec4 value ) {`,` return ${r[1]}( vec4( value.rgb * ${r[0]}, value.a ) );`,"}"].join(` `)}const toneMappingFunctions={[LinearToneMapping]:"Linear",[ReinhardToneMapping]:"Reinhard",[CineonToneMapping]:"Cineon",[ACESFilmicToneMapping]:"ACESFilmic",[AgXToneMapping]:"AgX",[NeutralToneMapping]:"Neutral",[CustomToneMapping]:"Custom"};function getToneMappingFunction(n,t){const r=toneMappingFunctions[t];return r===void 0?(warn("WebGLProgram: Unsupported toneMapping:",t),"vec3 "+n+"( vec3 color ) { return LinearToneMapping( color ); }"):"vec3 "+n+"( vec3 color ) { return "+r+"ToneMapping( color ); }"}const _v0$1=new Vector3;function getLuminanceFunction(){ColorManagement.getLuminanceCoefficients(_v0$1);const n=_v0$1.x.toFixed(4),t=_v0$1.y.toFixed(4),r=_v0$1.z.toFixed(4);return["float luminance( const in vec3 rgb ) {",` const vec3 weights = vec3( ${n}, ${t}, ${r} );`," return dot( weights, rgb );","}"].join(` `)}function generateVertexExtensions(n){return[n.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",n.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(filterEmptyLine).join(` `)}function generateDefines(n){const t=[];for(const r in n){const i=n[r];i!==!1&&t.push("#define "+r+" "+i)}return t.join(` `)}function fetchAttributeLocations(n,t){const r={},i=n.getProgramParameter(t,n.ACTIVE_ATTRIBUTES);for(let g=0;g/gm;function resolveIncludes(n){return n.replace(includePattern,includeReplacer)}const shaderChunkMap=new Map;function includeReplacer(n,t){let r=ShaderChunk[t];if(r===void 0){const i=shaderChunkMap.get(t);if(i!==void 0)r=ShaderChunk[i],warn('WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',t,i);else throw new Error("Can not resolve #include <"+t+">")}return resolveIncludes(r)}const unrollLoopPattern=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function unrollLoops(n){return n.replace(unrollLoopPattern,loopReplacer)}function loopReplacer(n,t,r,i){let g="";for(let $=parseInt(t);$0&&(_e+=` `),Ce=["#define SHADER_TYPE "+r.shaderType,"#define SHADER_NAME "+r.shaderName,he].filter(filterEmptyLine).join(` `),Ce.length>0&&(Ce+=` `)):(_e=[generatePrecision(r),"#define SHADER_TYPE "+r.shaderType,"#define SHADER_NAME "+r.shaderName,he,r.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",r.batching?"#define USE_BATCHING":"",r.batchingColor?"#define USE_BATCHING_COLOR":"",r.instancing?"#define USE_INSTANCING":"",r.instancingColor?"#define USE_INSTANCING_COLOR":"",r.instancingMorph?"#define USE_INSTANCING_MORPH":"",r.useFog&&r.fog?"#define USE_FOG":"",r.useFog&&r.fogExp2?"#define FOG_EXP2":"",r.map?"#define USE_MAP":"",r.envMap?"#define USE_ENVMAP":"",r.envMap?"#define "+oe:"",r.lightMap?"#define USE_LIGHTMAP":"",r.aoMap?"#define USE_AOMAP":"",r.bumpMap?"#define USE_BUMPMAP":"",r.normalMap?"#define USE_NORMALMAP":"",r.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",r.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",r.displacementMap?"#define USE_DISPLACEMENTMAP":"",r.emissiveMap?"#define USE_EMISSIVEMAP":"",r.anisotropy?"#define USE_ANISOTROPY":"",r.anisotropyMap?"#define USE_ANISOTROPYMAP":"",r.clearcoatMap?"#define USE_CLEARCOATMAP":"",r.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",r.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",r.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",r.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",r.specularMap?"#define USE_SPECULARMAP":"",r.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",r.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",r.roughnessMap?"#define USE_ROUGHNESSMAP":"",r.metalnessMap?"#define USE_METALNESSMAP":"",r.alphaMap?"#define USE_ALPHAMAP":"",r.alphaHash?"#define USE_ALPHAHASH":"",r.transmission?"#define USE_TRANSMISSION":"",r.transmissionMap?"#define USE_TRANSMISSIONMAP":"",r.thicknessMap?"#define USE_THICKNESSMAP":"",r.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",r.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",r.mapUv?"#define MAP_UV "+r.mapUv:"",r.alphaMapUv?"#define ALPHAMAP_UV "+r.alphaMapUv:"",r.lightMapUv?"#define LIGHTMAP_UV "+r.lightMapUv:"",r.aoMapUv?"#define AOMAP_UV "+r.aoMapUv:"",r.emissiveMapUv?"#define EMISSIVEMAP_UV "+r.emissiveMapUv:"",r.bumpMapUv?"#define BUMPMAP_UV "+r.bumpMapUv:"",r.normalMapUv?"#define NORMALMAP_UV "+r.normalMapUv:"",r.displacementMapUv?"#define DISPLACEMENTMAP_UV "+r.displacementMapUv:"",r.metalnessMapUv?"#define METALNESSMAP_UV "+r.metalnessMapUv:"",r.roughnessMapUv?"#define ROUGHNESSMAP_UV "+r.roughnessMapUv:"",r.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+r.anisotropyMapUv:"",r.clearcoatMapUv?"#define CLEARCOATMAP_UV "+r.clearcoatMapUv:"",r.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+r.clearcoatNormalMapUv:"",r.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+r.clearcoatRoughnessMapUv:"",r.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+r.iridescenceMapUv:"",r.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+r.iridescenceThicknessMapUv:"",r.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+r.sheenColorMapUv:"",r.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+r.sheenRoughnessMapUv:"",r.specularMapUv?"#define SPECULARMAP_UV "+r.specularMapUv:"",r.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+r.specularColorMapUv:"",r.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+r.specularIntensityMapUv:"",r.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+r.transmissionMapUv:"",r.thicknessMapUv?"#define THICKNESSMAP_UV "+r.thicknessMapUv:"",r.vertexTangents&&r.flatShading===!1?"#define USE_TANGENT":"",r.vertexColors?"#define USE_COLOR":"",r.vertexAlphas?"#define USE_COLOR_ALPHA":"",r.vertexUv1s?"#define USE_UV1":"",r.vertexUv2s?"#define USE_UV2":"",r.vertexUv3s?"#define USE_UV3":"",r.pointsUvs?"#define USE_POINTS_UV":"",r.flatShading?"#define FLAT_SHADED":"",r.skinning?"#define USE_SKINNING":"",r.morphTargets?"#define USE_MORPHTARGETS":"",r.morphNormals&&r.flatShading===!1?"#define USE_MORPHNORMALS":"",r.morphColors?"#define USE_MORPHCOLORS":"",r.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+r.morphTextureStride:"",r.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+r.morphTargetsCount:"",r.doubleSided?"#define DOUBLE_SIDED":"",r.flipSided?"#define FLIP_SIDED":"",r.shadowMapEnabled?"#define USE_SHADOWMAP":"",r.shadowMapEnabled?"#define "+ie:"",r.sizeAttenuation?"#define USE_SIZEATTENUATION":"",r.numLightProbes>0?"#define USE_LIGHT_PROBES":"",r.logarithmicDepthBuffer?"#define USE_LOGARITHMIC_DEPTH_BUFFER":"",r.reversedDepthBuffer?"#define USE_REVERSED_DEPTH_BUFFER":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` `].filter(filterEmptyLine).join(` `),Ce=[generatePrecision(r),"#define SHADER_TYPE "+r.shaderType,"#define SHADER_NAME "+r.shaderName,he,r.useFog&&r.fog?"#define USE_FOG":"",r.useFog&&r.fogExp2?"#define FOG_EXP2":"",r.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",r.map?"#define USE_MAP":"",r.matcap?"#define USE_MATCAP":"",r.envMap?"#define USE_ENVMAP":"",r.envMap?"#define "+ae:"",r.envMap?"#define "+oe:"",r.envMap?"#define "+le:"",ue?"#define CUBEUV_TEXEL_WIDTH "+ue.texelWidth:"",ue?"#define CUBEUV_TEXEL_HEIGHT "+ue.texelHeight:"",ue?"#define CUBEUV_MAX_MIP "+ue.maxMip+".0":"",r.lightMap?"#define USE_LIGHTMAP":"",r.aoMap?"#define USE_AOMAP":"",r.bumpMap?"#define USE_BUMPMAP":"",r.normalMap?"#define USE_NORMALMAP":"",r.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",r.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",r.emissiveMap?"#define USE_EMISSIVEMAP":"",r.anisotropy?"#define USE_ANISOTROPY":"",r.anisotropyMap?"#define USE_ANISOTROPYMAP":"",r.clearcoat?"#define USE_CLEARCOAT":"",r.clearcoatMap?"#define USE_CLEARCOATMAP":"",r.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",r.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",r.dispersion?"#define USE_DISPERSION":"",r.iridescence?"#define USE_IRIDESCENCE":"",r.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",r.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",r.specularMap?"#define USE_SPECULARMAP":"",r.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",r.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",r.roughnessMap?"#define USE_ROUGHNESSMAP":"",r.metalnessMap?"#define USE_METALNESSMAP":"",r.alphaMap?"#define USE_ALPHAMAP":"",r.alphaTest?"#define USE_ALPHATEST":"",r.alphaHash?"#define USE_ALPHAHASH":"",r.sheen?"#define USE_SHEEN":"",r.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",r.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",r.transmission?"#define USE_TRANSMISSION":"",r.transmissionMap?"#define USE_TRANSMISSIONMAP":"",r.thicknessMap?"#define USE_THICKNESSMAP":"",r.vertexTangents&&r.flatShading===!1?"#define USE_TANGENT":"",r.vertexColors||r.instancingColor||r.batchingColor?"#define USE_COLOR":"",r.vertexAlphas?"#define USE_COLOR_ALPHA":"",r.vertexUv1s?"#define USE_UV1":"",r.vertexUv2s?"#define USE_UV2":"",r.vertexUv3s?"#define USE_UV3":"",r.pointsUvs?"#define USE_POINTS_UV":"",r.gradientMap?"#define USE_GRADIENTMAP":"",r.flatShading?"#define FLAT_SHADED":"",r.doubleSided?"#define DOUBLE_SIDED":"",r.flipSided?"#define FLIP_SIDED":"",r.shadowMapEnabled?"#define USE_SHADOWMAP":"",r.shadowMapEnabled?"#define "+ie:"",r.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",r.numLightProbes>0?"#define USE_LIGHT_PROBES":"",r.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",r.decodeVideoTextureEmissive?"#define DECODE_VIDEO_TEXTURE_EMISSIVE":"",r.logarithmicDepthBuffer?"#define USE_LOGARITHMIC_DEPTH_BUFFER":"",r.reversedDepthBuffer?"#define USE_REVERSED_DEPTH_BUFFER":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",r.toneMapping!==NoToneMapping?"#define TONE_MAPPING":"",r.toneMapping!==NoToneMapping?ShaderChunk.tonemapping_pars_fragment:"",r.toneMapping!==NoToneMapping?getToneMappingFunction("toneMapping",r.toneMapping):"",r.dithering?"#define DITHERING":"",r.opaque?"#define OPAQUE":"",ShaderChunk.colorspace_pars_fragment,getTexelEncodingFunction("linearToOutputTexel",r.outputColorSpace),getLuminanceFunction(),r.useDepthPacking?"#define DEPTH_PACKING "+r.depthPacking:"",` `].filter(filterEmptyLine).join(` `)),V=resolveIncludes(V),V=replaceLightNums(V,r),V=replaceClippingPlaneNums(V,r),re=resolveIncludes(re),re=replaceLightNums(re,r),re=replaceClippingPlaneNums(re,r),V=unrollLoops(V),re=unrollLoops(re),r.isRawShaderMaterial!==!0&&(xe=`#version 300 es `,_e=[de,"#define attribute in","#define varying out","#define texture2D texture"].join(` `)+` `+_e,Ce=["#define varying in",r.glslVersion===GLSL3?"":"layout(location = 0) out highp vec4 pc_fragColor;",r.glslVersion===GLSL3?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` `)+` `+Ce);const Ie=xe+_e+V,Ne=xe+Ce+re,Oe=WebGLShader(g,g.VERTEX_SHADER,Ie),$e=WebGLShader(g,g.FRAGMENT_SHADER,Ne);g.attachShader(pe,Oe),g.attachShader(pe,$e),r.index0AttributeName!==void 0?g.bindAttribLocation(pe,0,r.index0AttributeName):r.morphTargets===!0&&g.bindAttribLocation(pe,0,"position"),g.linkProgram(pe);function Ve(Pt){if(n.debug.checkShaderErrors){const qe=g.getProgramInfoLog(pe)||"",Et=g.getShaderInfoLog(Oe)||"",kt=g.getShaderInfoLog($e)||"",At=qe.trim(),Dt=Et.trim(),Lt=kt.trim();let jt=!0,hn=!0;if(g.getProgramParameter(pe,g.LINK_STATUS)===!1)if(jt=!1,typeof n.debug.onShaderError=="function")n.debug.onShaderError(g,pe,Oe,$e);else{const vn=getShaderErrors(g,Oe,"vertex"),_n=getShaderErrors(g,$e,"fragment");error("THREE.WebGLProgram: Shader Error "+g.getError()+" - VALIDATE_STATUS "+g.getProgramParameter(pe,g.VALIDATE_STATUS)+` Material Name: `+Pt.name+` Material Type: `+Pt.type+` Program Info Log: `+At+` `+vn+` `+_n)}else At!==""?warn("WebGLProgram: Program Info Log:",At):(Dt===""||Lt==="")&&(hn=!1);hn&&(Pt.diagnostics={runnable:jt,programLog:At,vertexShader:{log:Dt,prefix:_e},fragmentShader:{log:Lt,prefix:Ce}})}g.deleteShader(Oe),g.deleteShader($e),Ue=new WebGLUniforms(g,pe),Fe=fetchAttributeLocations(g,pe)}let Ue;this.getUniforms=function(){return Ue===void 0&&Ve(this),Ue};let Fe;this.getAttributes=function(){return Fe===void 0&&Ve(this),Fe};let ze=r.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return ze===!1&&(ze=g.getProgramParameter(pe,COMPLETION_STATUS_KHR)),ze},this.destroy=function(){i.releaseStatesOfProgram(this),g.deleteProgram(pe),this.program=void 0},this.type=r.shaderType,this.name=r.shaderName,this.id=programIdCount++,this.cacheKey=t,this.usedTimes=1,this.program=pe,this.vertexShader=Oe,this.fragmentShader=$e,this}let _id=0;class WebGLShaderCache{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(t){const r=t.vertexShader,i=t.fragmentShader,g=this._getShaderStage(r),$=this._getShaderStage(i),V=this._getShaderCacheForMaterial(t);return V.has(g)===!1&&(V.add(g),g.usedTimes++),V.has($)===!1&&(V.add($),$.usedTimes++),this}remove(t){const r=this.materialCache.get(t);for(const i of r)i.usedTimes--,i.usedTimes===0&&this.shaderCache.delete(i.code);return this.materialCache.delete(t),this}getVertexShaderID(t){return this._getShaderStage(t.vertexShader).id}getFragmentShaderID(t){return this._getShaderStage(t.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(t){const r=this.materialCache;let i=r.get(t);return i===void 0&&(i=new Set,r.set(t,i)),i}_getShaderStage(t){const r=this.shaderCache;let i=r.get(t);return i===void 0&&(i=new WebGLShaderStage(t),r.set(t,i)),i}}class WebGLShaderStage{constructor(t){this.id=_id++,this.code=t,this.usedTimes=0}}function WebGLPrograms(n,t,r,i,g,$,V){const re=new Layers,ie=new WebGLShaderCache,ae=new Set,oe=[],le=new Map,ue=g.logarithmicDepthBuffer;let de=g.precision;const he={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distance",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function pe(Fe){return ae.add(Fe),Fe===0?"uv":`uv${Fe}`}function _e(Fe,ze,Pt,qe,Et){const kt=qe.fog,At=Et.geometry,Dt=Fe.isMeshStandardMaterial?qe.environment:null,Lt=(Fe.isMeshStandardMaterial?r:t).get(Fe.envMap||Dt),jt=Lt&&Lt.mapping===CubeUVReflectionMapping?Lt.image.height:null,hn=he[Fe.type];Fe.precision!==null&&(de=g.getMaxPrecision(Fe.precision),de!==Fe.precision&&warn("WebGLProgram.getParameters:",Fe.precision,"not supported, using",de,"instead."));const vn=At.morphAttributes.position||At.morphAttributes.normal||At.morphAttributes.color,_n=vn!==void 0?vn.length:0;let wn=0;At.morphAttributes.position!==void 0&&(wn=1),At.morphAttributes.normal!==void 0&&(wn=2),At.morphAttributes.color!==void 0&&(wn=3);let bn,Cn,Sn,Tn;if(hn){const fr=ShaderLib[hn];bn=fr.vertexShader,Cn=fr.fragmentShader}else bn=Fe.vertexShader,Cn=Fe.fragmentShader,ie.update(Fe),Sn=ie.getVertexShaderID(Fe),Tn=ie.getFragmentShaderID(Fe);const En=n.getRenderTarget(),kn=n.state.buffers.depth.getReversed(),$n=Et.isInstancedMesh===!0,An=Et.isBatchedMesh===!0,xn=!!Fe.map,Ln=!!Fe.matcap,Nn=!!Lt,Pn=!!Fe.aoMap,On=!!Fe.lightMap,Hn=!!Fe.bumpMap,Xn=!!Fe.normalMap,In=!!Fe.displacementMap,or=!!Fe.emissiveMap,Qn=!!Fe.metalnessMap,Zn=!!Fe.roughnessMap,Gn=Fe.anisotropy>0,Rn=Fe.clearcoat>0,Mn=Fe.dispersion>0,Bn=Fe.iridescence>0,qn=Fe.sheen>0,zn=Fe.transmission>0,jn=Gn&&!!Fe.anisotropyMap,tr=Rn&&!!Fe.clearcoatMap,hr=Rn&&!!Fe.clearcoatNormalMap,ir=Rn&&!!Fe.clearcoatRoughnessMap,pr=Bn&&!!Fe.iridescenceMap,rr=Bn&&!!Fe.iridescenceThicknessMap,lr=qn&&!!Fe.sheenColorMap,Yn=qn&&!!Fe.sheenRoughnessMap,er=!!Fe.specularMap,Fn=!!Fe.specularColorMap,cr=!!Fe.specularIntensityMap,Un=zn&&!!Fe.transmissionMap,gr=zn&&!!Fe.thicknessMap,vr=!!Fe.gradientMap,yr=!!Fe.alphaMap,Wn=Fe.alphaTest>0,Jn=!!Fe.alphaHash,sr=!!Fe.extensions;let Sr=NoToneMapping;Fe.toneMapped&&(En===null||En.isXRRenderTarget===!0)&&(Sr=n.toneMapping);const Tr={shaderID:hn,shaderType:Fe.type,shaderName:Fe.name,vertexShader:bn,fragmentShader:Cn,defines:Fe.defines,customVertexShaderID:Sn,customFragmentShaderID:Tn,isRawShaderMaterial:Fe.isRawShaderMaterial===!0,glslVersion:Fe.glslVersion,precision:de,batching:An,batchingColor:An&&Et._colorsTexture!==null,instancing:$n,instancingColor:$n&&Et.instanceColor!==null,instancingMorph:$n&&Et.morphTexture!==null,outputColorSpace:En===null?n.outputColorSpace:En.isXRRenderTarget===!0?En.texture.colorSpace:LinearSRGBColorSpace,alphaToCoverage:!!Fe.alphaToCoverage,map:xn,matcap:Ln,envMap:Nn,envMapMode:Nn&&Lt.mapping,envMapCubeUVHeight:jt,aoMap:Pn,lightMap:On,bumpMap:Hn,normalMap:Xn,displacementMap:In,emissiveMap:or,normalMapObjectSpace:Xn&&Fe.normalMapType===ObjectSpaceNormalMap,normalMapTangentSpace:Xn&&Fe.normalMapType===TangentSpaceNormalMap,metalnessMap:Qn,roughnessMap:Zn,anisotropy:Gn,anisotropyMap:jn,clearcoat:Rn,clearcoatMap:tr,clearcoatNormalMap:hr,clearcoatRoughnessMap:ir,dispersion:Mn,iridescence:Bn,iridescenceMap:pr,iridescenceThicknessMap:rr,sheen:qn,sheenColorMap:lr,sheenRoughnessMap:Yn,specularMap:er,specularColorMap:Fn,specularIntensityMap:cr,transmission:zn,transmissionMap:Un,thicknessMap:gr,gradientMap:vr,opaque:Fe.transparent===!1&&Fe.blending===NormalBlending&&Fe.alphaToCoverage===!1,alphaMap:yr,alphaTest:Wn,alphaHash:Jn,combine:Fe.combine,mapUv:xn&&pe(Fe.map.channel),aoMapUv:Pn&&pe(Fe.aoMap.channel),lightMapUv:On&&pe(Fe.lightMap.channel),bumpMapUv:Hn&&pe(Fe.bumpMap.channel),normalMapUv:Xn&&pe(Fe.normalMap.channel),displacementMapUv:In&&pe(Fe.displacementMap.channel),emissiveMapUv:or&&pe(Fe.emissiveMap.channel),metalnessMapUv:Qn&&pe(Fe.metalnessMap.channel),roughnessMapUv:Zn&&pe(Fe.roughnessMap.channel),anisotropyMapUv:jn&&pe(Fe.anisotropyMap.channel),clearcoatMapUv:tr&&pe(Fe.clearcoatMap.channel),clearcoatNormalMapUv:hr&&pe(Fe.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:ir&&pe(Fe.clearcoatRoughnessMap.channel),iridescenceMapUv:pr&&pe(Fe.iridescenceMap.channel),iridescenceThicknessMapUv:rr&&pe(Fe.iridescenceThicknessMap.channel),sheenColorMapUv:lr&&pe(Fe.sheenColorMap.channel),sheenRoughnessMapUv:Yn&&pe(Fe.sheenRoughnessMap.channel),specularMapUv:er&&pe(Fe.specularMap.channel),specularColorMapUv:Fn&&pe(Fe.specularColorMap.channel),specularIntensityMapUv:cr&&pe(Fe.specularIntensityMap.channel),transmissionMapUv:Un&&pe(Fe.transmissionMap.channel),thicknessMapUv:gr&&pe(Fe.thicknessMap.channel),alphaMapUv:yr&&pe(Fe.alphaMap.channel),vertexTangents:!!At.attributes.tangent&&(Xn||Gn),vertexColors:Fe.vertexColors,vertexAlphas:Fe.vertexColors===!0&&!!At.attributes.color&&At.attributes.color.itemSize===4,pointsUvs:Et.isPoints===!0&&!!At.attributes.uv&&(xn||yr),fog:!!kt,useFog:Fe.fog===!0,fogExp2:!!kt&&kt.isFogExp2,flatShading:Fe.flatShading===!0&&Fe.wireframe===!1,sizeAttenuation:Fe.sizeAttenuation===!0,logarithmicDepthBuffer:ue,reversedDepthBuffer:kn,skinning:Et.isSkinnedMesh===!0,morphTargets:At.morphAttributes.position!==void 0,morphNormals:At.morphAttributes.normal!==void 0,morphColors:At.morphAttributes.color!==void 0,morphTargetsCount:_n,morphTextureStride:wn,numDirLights:ze.directional.length,numPointLights:ze.point.length,numSpotLights:ze.spot.length,numSpotLightMaps:ze.spotLightMap.length,numRectAreaLights:ze.rectArea.length,numHemiLights:ze.hemi.length,numDirLightShadows:ze.directionalShadowMap.length,numPointLightShadows:ze.pointShadowMap.length,numSpotLightShadows:ze.spotShadowMap.length,numSpotLightShadowsWithMaps:ze.numSpotLightShadowsWithMaps,numLightProbes:ze.numLightProbes,numClippingPlanes:V.numPlanes,numClipIntersection:V.numIntersection,dithering:Fe.dithering,shadowMapEnabled:n.shadowMap.enabled&&Pt.length>0,shadowMapType:n.shadowMap.type,toneMapping:Sr,decodeVideoTexture:xn&&Fe.map.isVideoTexture===!0&&ColorManagement.getTransfer(Fe.map.colorSpace)===SRGBTransfer,decodeVideoTextureEmissive:or&&Fe.emissiveMap.isVideoTexture===!0&&ColorManagement.getTransfer(Fe.emissiveMap.colorSpace)===SRGBTransfer,premultipliedAlpha:Fe.premultipliedAlpha,doubleSided:Fe.side===DoubleSide,flipSided:Fe.side===BackSide,useDepthPacking:Fe.depthPacking>=0,depthPacking:Fe.depthPacking||0,index0AttributeName:Fe.index0AttributeName,extensionClipCullDistance:sr&&Fe.extensions.clipCullDistance===!0&&i.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(sr&&Fe.extensions.multiDraw===!0||An)&&i.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:Fe.customProgramCacheKey()};return Tr.vertexUv1s=ae.has(1),Tr.vertexUv2s=ae.has(2),Tr.vertexUv3s=ae.has(3),ae.clear(),Tr}function Ce(Fe){const ze=[];if(Fe.shaderID?ze.push(Fe.shaderID):(ze.push(Fe.customVertexShaderID),ze.push(Fe.customFragmentShaderID)),Fe.defines!==void 0)for(const Pt in Fe.defines)ze.push(Pt),ze.push(Fe.defines[Pt]);return Fe.isRawShaderMaterial===!1&&(xe(ze,Fe),Ie(ze,Fe),ze.push(n.outputColorSpace)),ze.push(Fe.customProgramCacheKey),ze.join()}function xe(Fe,ze){Fe.push(ze.precision),Fe.push(ze.outputColorSpace),Fe.push(ze.envMapMode),Fe.push(ze.envMapCubeUVHeight),Fe.push(ze.mapUv),Fe.push(ze.alphaMapUv),Fe.push(ze.lightMapUv),Fe.push(ze.aoMapUv),Fe.push(ze.bumpMapUv),Fe.push(ze.normalMapUv),Fe.push(ze.displacementMapUv),Fe.push(ze.emissiveMapUv),Fe.push(ze.metalnessMapUv),Fe.push(ze.roughnessMapUv),Fe.push(ze.anisotropyMapUv),Fe.push(ze.clearcoatMapUv),Fe.push(ze.clearcoatNormalMapUv),Fe.push(ze.clearcoatRoughnessMapUv),Fe.push(ze.iridescenceMapUv),Fe.push(ze.iridescenceThicknessMapUv),Fe.push(ze.sheenColorMapUv),Fe.push(ze.sheenRoughnessMapUv),Fe.push(ze.specularMapUv),Fe.push(ze.specularColorMapUv),Fe.push(ze.specularIntensityMapUv),Fe.push(ze.transmissionMapUv),Fe.push(ze.thicknessMapUv),Fe.push(ze.combine),Fe.push(ze.fogExp2),Fe.push(ze.sizeAttenuation),Fe.push(ze.morphTargetsCount),Fe.push(ze.morphAttributeCount),Fe.push(ze.numDirLights),Fe.push(ze.numPointLights),Fe.push(ze.numSpotLights),Fe.push(ze.numSpotLightMaps),Fe.push(ze.numHemiLights),Fe.push(ze.numRectAreaLights),Fe.push(ze.numDirLightShadows),Fe.push(ze.numPointLightShadows),Fe.push(ze.numSpotLightShadows),Fe.push(ze.numSpotLightShadowsWithMaps),Fe.push(ze.numLightProbes),Fe.push(ze.shadowMapType),Fe.push(ze.toneMapping),Fe.push(ze.numClippingPlanes),Fe.push(ze.numClipIntersection),Fe.push(ze.depthPacking)}function Ie(Fe,ze){re.disableAll(),ze.instancing&&re.enable(0),ze.instancingColor&&re.enable(1),ze.instancingMorph&&re.enable(2),ze.matcap&&re.enable(3),ze.envMap&&re.enable(4),ze.normalMapObjectSpace&&re.enable(5),ze.normalMapTangentSpace&&re.enable(6),ze.clearcoat&&re.enable(7),ze.iridescence&&re.enable(8),ze.alphaTest&&re.enable(9),ze.vertexColors&&re.enable(10),ze.vertexAlphas&&re.enable(11),ze.vertexUv1s&&re.enable(12),ze.vertexUv2s&&re.enable(13),ze.vertexUv3s&&re.enable(14),ze.vertexTangents&&re.enable(15),ze.anisotropy&&re.enable(16),ze.alphaHash&&re.enable(17),ze.batching&&re.enable(18),ze.dispersion&&re.enable(19),ze.batchingColor&&re.enable(20),ze.gradientMap&&re.enable(21),Fe.push(re.mask),re.disableAll(),ze.fog&&re.enable(0),ze.useFog&&re.enable(1),ze.flatShading&&re.enable(2),ze.logarithmicDepthBuffer&&re.enable(3),ze.reversedDepthBuffer&&re.enable(4),ze.skinning&&re.enable(5),ze.morphTargets&&re.enable(6),ze.morphNormals&&re.enable(7),ze.morphColors&&re.enable(8),ze.premultipliedAlpha&&re.enable(9),ze.shadowMapEnabled&&re.enable(10),ze.doubleSided&&re.enable(11),ze.flipSided&&re.enable(12),ze.useDepthPacking&&re.enable(13),ze.dithering&&re.enable(14),ze.transmission&&re.enable(15),ze.sheen&&re.enable(16),ze.opaque&&re.enable(17),ze.pointsUvs&&re.enable(18),ze.decodeVideoTexture&&re.enable(19),ze.decodeVideoTextureEmissive&&re.enable(20),ze.alphaToCoverage&&re.enable(21),Fe.push(re.mask)}function Ne(Fe){const ze=he[Fe.type];let Pt;if(ze){const qe=ShaderLib[ze];Pt=UniformsUtils.clone(qe.uniforms)}else Pt=Fe.uniforms;return Pt}function Oe(Fe,ze){let Pt=le.get(ze);return Pt!==void 0?++Pt.usedTimes:(Pt=new WebGLProgram(n,ze,Fe,$),oe.push(Pt),le.set(ze,Pt)),Pt}function $e(Fe){if(--Fe.usedTimes===0){const ze=oe.indexOf(Fe);oe[ze]=oe[oe.length-1],oe.pop(),le.delete(Fe.cacheKey),Fe.destroy()}}function Ve(Fe){ie.remove(Fe)}function Ue(){ie.dispose()}return{getParameters:_e,getProgramCacheKey:Ce,getUniforms:Ne,acquireProgram:Oe,releaseProgram:$e,releaseShaderCache:Ve,programs:oe,dispose:Ue}}function WebGLProperties(){let n=new WeakMap;function t(V){return n.has(V)}function r(V){let re=n.get(V);return re===void 0&&(re={},n.set(V,re)),re}function i(V){n.delete(V)}function g(V,re,ie){n.get(V)[re]=ie}function $(){n=new WeakMap}return{has:t,get:r,remove:i,update:g,dispose:$}}function painterSortStable(n,t){return n.groupOrder!==t.groupOrder?n.groupOrder-t.groupOrder:n.renderOrder!==t.renderOrder?n.renderOrder-t.renderOrder:n.material.id!==t.material.id?n.material.id-t.material.id:n.z!==t.z?n.z-t.z:n.id-t.id}function reversePainterSortStable(n,t){return n.groupOrder!==t.groupOrder?n.groupOrder-t.groupOrder:n.renderOrder!==t.renderOrder?n.renderOrder-t.renderOrder:n.z!==t.z?t.z-n.z:n.id-t.id}function WebGLRenderList(){const n=[];let t=0;const r=[],i=[],g=[];function $(){t=0,r.length=0,i.length=0,g.length=0}function V(le,ue,de,he,pe,_e){let Ce=n[t];return Ce===void 0?(Ce={id:le.id,object:le,geometry:ue,material:de,groupOrder:he,renderOrder:le.renderOrder,z:pe,group:_e},n[t]=Ce):(Ce.id=le.id,Ce.object=le,Ce.geometry=ue,Ce.material=de,Ce.groupOrder=he,Ce.renderOrder=le.renderOrder,Ce.z=pe,Ce.group=_e),t++,Ce}function re(le,ue,de,he,pe,_e){const Ce=V(le,ue,de,he,pe,_e);de.transmission>0?i.push(Ce):de.transparent===!0?g.push(Ce):r.push(Ce)}function ie(le,ue,de,he,pe,_e){const Ce=V(le,ue,de,he,pe,_e);de.transmission>0?i.unshift(Ce):de.transparent===!0?g.unshift(Ce):r.unshift(Ce)}function ae(le,ue){r.length>1&&r.sort(le||painterSortStable),i.length>1&&i.sort(ue||reversePainterSortStable),g.length>1&&g.sort(ue||reversePainterSortStable)}function oe(){for(let le=t,ue=n.length;le=$.length?(V=new WebGLRenderList,$.push(V)):V=$[g],V}function r(){n=new WeakMap}return{get:t,dispose:r}}function UniformsCache(){const n={};return{get:function(t){if(n[t.id]!==void 0)return n[t.id];let r;switch(t.type){case"DirectionalLight":r={direction:new Vector3,color:new Color};break;case"SpotLight":r={position:new Vector3,direction:new Vector3,color:new Color,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":r={position:new Vector3,color:new Color,distance:0,decay:0};break;case"HemisphereLight":r={direction:new Vector3,skyColor:new Color,groundColor:new Color};break;case"RectAreaLight":r={color:new Color,position:new Vector3,halfWidth:new Vector3,halfHeight:new Vector3};break}return n[t.id]=r,r}}}function ShadowUniformsCache(){const n={};return{get:function(t){if(n[t.id]!==void 0)return n[t.id];let r;switch(t.type){case"DirectionalLight":r={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Vector2};break;case"SpotLight":r={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Vector2};break;case"PointLight":r={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Vector2,shadowCameraNear:1,shadowCameraFar:1e3};break}return n[t.id]=r,r}}}let nextVersion=0;function shadowCastingAndTexturingLightsFirst(n,t){return(t.castShadow?2:0)-(n.castShadow?2:0)+(t.map?1:0)-(n.map?1:0)}function WebGLLights(n){const t=new UniformsCache,r=ShadowUniformsCache(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let ae=0;ae<9;ae++)i.probe.push(new Vector3);const g=new Vector3,$=new Matrix4,V=new Matrix4;function re(ae){let oe=0,le=0,ue=0;for(let Fe=0;Fe<9;Fe++)i.probe[Fe].set(0,0,0);let de=0,he=0,pe=0,_e=0,Ce=0,xe=0,Ie=0,Ne=0,Oe=0,$e=0,Ve=0;ae.sort(shadowCastingAndTexturingLightsFirst);for(let Fe=0,ze=ae.length;Fe0&&(n.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=UniformsLib.LTC_FLOAT_1,i.rectAreaLTC2=UniformsLib.LTC_FLOAT_2):(i.rectAreaLTC1=UniformsLib.LTC_HALF_1,i.rectAreaLTC2=UniformsLib.LTC_HALF_2)),i.ambient[0]=oe,i.ambient[1]=le,i.ambient[2]=ue;const Ue=i.hash;(Ue.directionalLength!==de||Ue.pointLength!==he||Ue.spotLength!==pe||Ue.rectAreaLength!==_e||Ue.hemiLength!==Ce||Ue.numDirectionalShadows!==xe||Ue.numPointShadows!==Ie||Ue.numSpotShadows!==Ne||Ue.numSpotMaps!==Oe||Ue.numLightProbes!==Ve)&&(i.directional.length=de,i.spot.length=pe,i.rectArea.length=_e,i.point.length=he,i.hemi.length=Ce,i.directionalShadow.length=xe,i.directionalShadowMap.length=xe,i.pointShadow.length=Ie,i.pointShadowMap.length=Ie,i.spotShadow.length=Ne,i.spotShadowMap.length=Ne,i.directionalShadowMatrix.length=xe,i.pointShadowMatrix.length=Ie,i.spotLightMatrix.length=Ne+Oe-$e,i.spotLightMap.length=Oe,i.numSpotLightShadowsWithMaps=$e,i.numLightProbes=Ve,Ue.directionalLength=de,Ue.pointLength=he,Ue.spotLength=pe,Ue.rectAreaLength=_e,Ue.hemiLength=Ce,Ue.numDirectionalShadows=xe,Ue.numPointShadows=Ie,Ue.numSpotShadows=Ne,Ue.numSpotMaps=Oe,Ue.numLightProbes=Ve,i.version=nextVersion++)}function ie(ae,oe){let le=0,ue=0,de=0,he=0,pe=0;const _e=oe.matrixWorldInverse;for(let Ce=0,xe=ae.length;Ce=V.length?(re=new WebGLRenderState(n),V.push(re)):re=V[$],re}function i(){t=new WeakMap}return{get:r,dispose:i}}const vertex=`void main() { gl_Position = vec4( position, 1.0 ); }`,fragment=`uniform sampler2D shadow_pass; uniform vec2 resolution; uniform float radius; void main() { const float samples = float( VSM_SAMPLES ); float mean = 0.0; float squared_mean = 0.0; float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); float uvStart = samples <= 1.0 ? 0.0 : - 1.0; for ( float i = 0.0; i < samples; i ++ ) { float uvOffset = uvStart + i * uvStride; #ifdef HORIZONTAL_PASS vec2 distribution = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ).rg; mean += distribution.x; squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; #else float depth = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ).r; mean += depth; squared_mean += depth * depth; #endif } mean = mean / samples; squared_mean = squared_mean / samples; float std_dev = sqrt( max( 0.0, squared_mean - mean * mean ) ); gl_FragColor = vec4( mean, std_dev, 0.0, 1.0 ); }`,_cubeDirections=[new Vector3(1,0,0),new Vector3(-1,0,0),new Vector3(0,1,0),new Vector3(0,-1,0),new Vector3(0,0,1),new Vector3(0,0,-1)],_cubeUps=[new Vector3(0,-1,0),new Vector3(0,-1,0),new Vector3(0,0,1),new Vector3(0,0,-1),new Vector3(0,-1,0),new Vector3(0,-1,0)],_projScreenMatrix=new Matrix4,_lightPositionWorld=new Vector3,_lookTarget=new Vector3;function WebGLShadowMap(n,t,r){let i=new Frustum;const g=new Vector2,$=new Vector2,V=new Vector4,re=new MeshDepthMaterial,ie=new MeshDistanceMaterial,ae={},oe=r.maxTextureSize,le={[FrontSide]:BackSide,[BackSide]:FrontSide,[DoubleSide]:DoubleSide},ue=new ShaderMaterial({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Vector2},radius:{value:4}},vertexShader:vertex,fragmentShader:fragment}),de=ue.clone();de.defines.HORIZONTAL_PASS=1;const he=new BufferGeometry;he.setAttribute("position",new BufferAttribute(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const pe=new Mesh(he,ue),_e=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=PCFShadowMap;let Ce=this.type;this.render=function($e,Ve,Ue){if(_e.enabled===!1||_e.autoUpdate===!1&&_e.needsUpdate===!1||$e.length===0)return;$e.type===PCFSoftShadowMap&&(warn("WebGLShadowMap: PCFSoftShadowMap has been deprecated. Using PCFShadowMap instead."),$e.type=PCFShadowMap);const Fe=n.getRenderTarget(),ze=n.getActiveCubeFace(),Pt=n.getActiveMipmapLevel(),qe=n.state;qe.setBlending(NoBlending),qe.buffers.depth.getReversed()===!0?qe.buffers.color.setClear(0,0,0,0):qe.buffers.color.setClear(1,1,1,1),qe.buffers.depth.setTest(!0),qe.setScissorTest(!1);const Et=Ce!==this.type;Et&&Ve.traverse(function(kt){kt.material&&(Array.isArray(kt.material)?kt.material.forEach(At=>At.needsUpdate=!0):kt.material.needsUpdate=!0)});for(let kt=0,At=$e.length;ktoe||g.y>oe)&&(g.x>oe&&($.x=Math.floor(oe/jt.x),g.x=$.x*jt.x,Lt.mapSize.x=$.x),g.y>oe&&($.y=Math.floor(oe/jt.y),g.y=$.y*jt.y,Lt.mapSize.y=$.y)),Lt.map===null||Et===!0){if(Lt.map!==null&&(Lt.map.depthTexture!==null&&(Lt.map.depthTexture.dispose(),Lt.map.depthTexture=null),Lt.map.dispose()),this.type===VSMShadowMap){if(Dt.isPointLight){warn("WebGLShadowMap: VSM shadow maps are not supported for PointLights. Use PCF or BasicShadowMap instead.");continue}Lt.map=new WebGLRenderTarget(g.x,g.y,{format:RGFormat,type:HalfFloatType,minFilter:LinearFilter,magFilter:LinearFilter,generateMipmaps:!1}),Lt.map.texture.name=Dt.name+".shadowMap",Lt.map.depthTexture=new DepthTexture(g.x,g.y,FloatType),Lt.map.depthTexture.name=Dt.name+".shadowMapDepth",Lt.map.depthTexture.format=DepthFormat,Lt.map.depthTexture.compareFunction=null,Lt.map.depthTexture.minFilter=NearestFilter,Lt.map.depthTexture.magFilter=NearestFilter}else{Dt.isPointLight?(Lt.map=new WebGLCubeRenderTarget(g.x),Lt.map.depthTexture=new CubeDepthTexture(g.x,UnsignedIntType)):(Lt.map=new WebGLRenderTarget(g.x,g.y),Lt.map.depthTexture=new DepthTexture(g.x,g.y,UnsignedIntType)),Lt.map.depthTexture.name=Dt.name+".shadowMap",Lt.map.depthTexture.format=DepthFormat;const vn=n.state.buffers.depth.getReversed();this.type===PCFShadowMap?(Lt.map.depthTexture.compareFunction=vn?GreaterEqualCompare:LessEqualCompare,Lt.map.depthTexture.minFilter=LinearFilter,Lt.map.depthTexture.magFilter=LinearFilter):(Lt.map.depthTexture.compareFunction=null,Lt.map.depthTexture.minFilter=NearestFilter,Lt.map.depthTexture.magFilter=NearestFilter)}Lt.camera.updateProjectionMatrix()}const hn=Lt.map.isWebGLCubeRenderTarget?6:1;for(let vn=0;vn0||Ve.map&&Ve.alphaTest>0||Ve.alphaToCoverage===!0){const qe=ze.uuid,Et=Ve.uuid;let kt=ae[qe];kt===void 0&&(kt={},ae[qe]=kt);let At=kt[Et];At===void 0&&(At=ze.clone(),kt[Et]=At,Ve.addEventListener("dispose",Oe)),ze=At}if(ze.visible=Ve.visible,ze.wireframe=Ve.wireframe,Fe===VSMShadowMap?ze.side=Ve.shadowSide!==null?Ve.shadowSide:Ve.side:ze.side=Ve.shadowSide!==null?Ve.shadowSide:le[Ve.side],ze.alphaMap=Ve.alphaMap,ze.alphaTest=Ve.alphaToCoverage===!0?.5:Ve.alphaTest,ze.map=Ve.map,ze.clipShadows=Ve.clipShadows,ze.clippingPlanes=Ve.clippingPlanes,ze.clipIntersection=Ve.clipIntersection,ze.displacementMap=Ve.displacementMap,ze.displacementScale=Ve.displacementScale,ze.displacementBias=Ve.displacementBias,ze.wireframeLinewidth=Ve.wireframeLinewidth,ze.linewidth=Ve.linewidth,Ue.isPointLight===!0&&ze.isMeshDistanceMaterial===!0){const qe=n.properties.get(ze);qe.light=Ue}return ze}function Ne($e,Ve,Ue,Fe,ze){if($e.visible===!1)return;if($e.layers.test(Ve.layers)&&($e.isMesh||$e.isLine||$e.isPoints)&&($e.castShadow||$e.receiveShadow&&ze===VSMShadowMap)&&(!$e.frustumCulled||i.intersectsObject($e))){$e.modelViewMatrix.multiplyMatrices(Ue.matrixWorldInverse,$e.matrixWorld);const Et=t.update($e),kt=$e.material;if(Array.isArray(kt)){const At=Et.groups;for(let Dt=0,Lt=At.length;Dt=1):jt.indexOf("OpenGL ES")!==-1&&(Lt=parseFloat(/^OpenGL ES (\d)/.exec(jt)[1]),Dt=Lt>=2);let hn=null,vn={};const _n=n.getParameter(n.SCISSOR_BOX),wn=n.getParameter(n.VIEWPORT),bn=new Vector4().fromArray(_n),Cn=new Vector4().fromArray(wn);function Sn(Un,gr,vr,yr){const Wn=new Uint8Array(4),Jn=n.createTexture();n.bindTexture(Un,Jn),n.texParameteri(Un,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(Un,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let sr=0;sr"u"?!1:/OculusBrowser/g.test(navigator.userAgent),ae=new Vector2,oe=new WeakMap;let le;const ue=new WeakMap;let de=!1;try{de=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function he(Rn,Mn){return de?new OffscreenCanvas(Rn,Mn):createElementNS("canvas")}function pe(Rn,Mn,Bn){let qn=1;const zn=Gn(Rn);if((zn.width>Bn||zn.height>Bn)&&(qn=Bn/Math.max(zn.width,zn.height)),qn<1)if(typeof HTMLImageElement<"u"&&Rn instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&Rn instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&Rn instanceof ImageBitmap||typeof VideoFrame<"u"&&Rn instanceof VideoFrame){const jn=Math.floor(qn*zn.width),tr=Math.floor(qn*zn.height);le===void 0&&(le=he(jn,tr));const hr=Mn?he(jn,tr):le;return hr.width=jn,hr.height=tr,hr.getContext("2d").drawImage(Rn,0,0,jn,tr),warn("WebGLRenderer: Texture has been resized from ("+zn.width+"x"+zn.height+") to ("+jn+"x"+tr+")."),hr}else return"data"in Rn&&warn("WebGLRenderer: Image in DataTexture is too big ("+zn.width+"x"+zn.height+")."),Rn;return Rn}function _e(Rn){return Rn.generateMipmaps}function Ce(Rn){n.generateMipmap(Rn)}function xe(Rn){return Rn.isWebGLCubeRenderTarget?n.TEXTURE_CUBE_MAP:Rn.isWebGL3DRenderTarget?n.TEXTURE_3D:Rn.isWebGLArrayRenderTarget||Rn.isCompressedArrayTexture?n.TEXTURE_2D_ARRAY:n.TEXTURE_2D}function Ie(Rn,Mn,Bn,qn,zn=!1){if(Rn!==null){if(n[Rn]!==void 0)return n[Rn];warn("WebGLRenderer: Attempt to use non-existing WebGL internal format '"+Rn+"'")}let jn=Mn;if(Mn===n.RED&&(Bn===n.FLOAT&&(jn=n.R32F),Bn===n.HALF_FLOAT&&(jn=n.R16F),Bn===n.UNSIGNED_BYTE&&(jn=n.R8)),Mn===n.RED_INTEGER&&(Bn===n.UNSIGNED_BYTE&&(jn=n.R8UI),Bn===n.UNSIGNED_SHORT&&(jn=n.R16UI),Bn===n.UNSIGNED_INT&&(jn=n.R32UI),Bn===n.BYTE&&(jn=n.R8I),Bn===n.SHORT&&(jn=n.R16I),Bn===n.INT&&(jn=n.R32I)),Mn===n.RG&&(Bn===n.FLOAT&&(jn=n.RG32F),Bn===n.HALF_FLOAT&&(jn=n.RG16F),Bn===n.UNSIGNED_BYTE&&(jn=n.RG8)),Mn===n.RG_INTEGER&&(Bn===n.UNSIGNED_BYTE&&(jn=n.RG8UI),Bn===n.UNSIGNED_SHORT&&(jn=n.RG16UI),Bn===n.UNSIGNED_INT&&(jn=n.RG32UI),Bn===n.BYTE&&(jn=n.RG8I),Bn===n.SHORT&&(jn=n.RG16I),Bn===n.INT&&(jn=n.RG32I)),Mn===n.RGB_INTEGER&&(Bn===n.UNSIGNED_BYTE&&(jn=n.RGB8UI),Bn===n.UNSIGNED_SHORT&&(jn=n.RGB16UI),Bn===n.UNSIGNED_INT&&(jn=n.RGB32UI),Bn===n.BYTE&&(jn=n.RGB8I),Bn===n.SHORT&&(jn=n.RGB16I),Bn===n.INT&&(jn=n.RGB32I)),Mn===n.RGBA_INTEGER&&(Bn===n.UNSIGNED_BYTE&&(jn=n.RGBA8UI),Bn===n.UNSIGNED_SHORT&&(jn=n.RGBA16UI),Bn===n.UNSIGNED_INT&&(jn=n.RGBA32UI),Bn===n.BYTE&&(jn=n.RGBA8I),Bn===n.SHORT&&(jn=n.RGBA16I),Bn===n.INT&&(jn=n.RGBA32I)),Mn===n.RGB&&(Bn===n.UNSIGNED_INT_5_9_9_9_REV&&(jn=n.RGB9_E5),Bn===n.UNSIGNED_INT_10F_11F_11F_REV&&(jn=n.R11F_G11F_B10F)),Mn===n.RGBA){const tr=zn?LinearTransfer:ColorManagement.getTransfer(qn);Bn===n.FLOAT&&(jn=n.RGBA32F),Bn===n.HALF_FLOAT&&(jn=n.RGBA16F),Bn===n.UNSIGNED_BYTE&&(jn=tr===SRGBTransfer?n.SRGB8_ALPHA8:n.RGBA8),Bn===n.UNSIGNED_SHORT_4_4_4_4&&(jn=n.RGBA4),Bn===n.UNSIGNED_SHORT_5_5_5_1&&(jn=n.RGB5_A1)}return(jn===n.R16F||jn===n.R32F||jn===n.RG16F||jn===n.RG32F||jn===n.RGBA16F||jn===n.RGBA32F)&&t.get("EXT_color_buffer_float"),jn}function Ne(Rn,Mn){let Bn;return Rn?Mn===null||Mn===UnsignedIntType||Mn===UnsignedInt248Type?Bn=n.DEPTH24_STENCIL8:Mn===FloatType?Bn=n.DEPTH32F_STENCIL8:Mn===UnsignedShortType&&(Bn=n.DEPTH24_STENCIL8,warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):Mn===null||Mn===UnsignedIntType||Mn===UnsignedInt248Type?Bn=n.DEPTH_COMPONENT24:Mn===FloatType?Bn=n.DEPTH_COMPONENT32F:Mn===UnsignedShortType&&(Bn=n.DEPTH_COMPONENT16),Bn}function Oe(Rn,Mn){return _e(Rn)===!0||Rn.isFramebufferTexture&&Rn.minFilter!==NearestFilter&&Rn.minFilter!==LinearFilter?Math.log2(Math.max(Mn.width,Mn.height))+1:Rn.mipmaps!==void 0&&Rn.mipmaps.length>0?Rn.mipmaps.length:Rn.isCompressedTexture&&Array.isArray(Rn.image)?Mn.mipmaps.length:1}function $e(Rn){const Mn=Rn.target;Mn.removeEventListener("dispose",$e),Ue(Mn),Mn.isVideoTexture&&oe.delete(Mn)}function Ve(Rn){const Mn=Rn.target;Mn.removeEventListener("dispose",Ve),ze(Mn)}function Ue(Rn){const Mn=i.get(Rn);if(Mn.__webglInit===void 0)return;const Bn=Rn.source,qn=ue.get(Bn);if(qn){const zn=qn[Mn.__cacheKey];zn.usedTimes--,zn.usedTimes===0&&Fe(Rn),Object.keys(qn).length===0&&ue.delete(Bn)}i.remove(Rn)}function Fe(Rn){const Mn=i.get(Rn);n.deleteTexture(Mn.__webglTexture);const Bn=Rn.source,qn=ue.get(Bn);delete qn[Mn.__cacheKey],V.memory.textures--}function ze(Rn){const Mn=i.get(Rn);if(Rn.depthTexture&&(Rn.depthTexture.dispose(),i.remove(Rn.depthTexture)),Rn.isWebGLCubeRenderTarget)for(let qn=0;qn<6;qn++){if(Array.isArray(Mn.__webglFramebuffer[qn]))for(let zn=0;zn=g.maxTextures&&warn("WebGLTextures: Trying to use "+Rn+" texture units while this GPU supports only "+g.maxTextures),Pt+=1,Rn}function kt(Rn){const Mn=[];return Mn.push(Rn.wrapS),Mn.push(Rn.wrapT),Mn.push(Rn.wrapR||0),Mn.push(Rn.magFilter),Mn.push(Rn.minFilter),Mn.push(Rn.anisotropy),Mn.push(Rn.internalFormat),Mn.push(Rn.format),Mn.push(Rn.type),Mn.push(Rn.generateMipmaps),Mn.push(Rn.premultiplyAlpha),Mn.push(Rn.flipY),Mn.push(Rn.unpackAlignment),Mn.push(Rn.colorSpace),Mn.join()}function At(Rn,Mn){const Bn=i.get(Rn);if(Rn.isVideoTexture&&Qn(Rn),Rn.isRenderTargetTexture===!1&&Rn.isExternalTexture!==!0&&Rn.version>0&&Bn.__version!==Rn.version){const qn=Rn.image;if(qn===null)warn("WebGLRenderer: Texture marked for update but no image data found.");else if(qn.complete===!1)warn("WebGLRenderer: Texture marked for update but image is incomplete");else{Tn(Bn,Rn,Mn);return}}else Rn.isExternalTexture&&(Bn.__webglTexture=Rn.sourceTexture?Rn.sourceTexture:null);r.bindTexture(n.TEXTURE_2D,Bn.__webglTexture,n.TEXTURE0+Mn)}function Dt(Rn,Mn){const Bn=i.get(Rn);if(Rn.isRenderTargetTexture===!1&&Rn.version>0&&Bn.__version!==Rn.version){Tn(Bn,Rn,Mn);return}else Rn.isExternalTexture&&(Bn.__webglTexture=Rn.sourceTexture?Rn.sourceTexture:null);r.bindTexture(n.TEXTURE_2D_ARRAY,Bn.__webglTexture,n.TEXTURE0+Mn)}function Lt(Rn,Mn){const Bn=i.get(Rn);if(Rn.isRenderTargetTexture===!1&&Rn.version>0&&Bn.__version!==Rn.version){Tn(Bn,Rn,Mn);return}r.bindTexture(n.TEXTURE_3D,Bn.__webglTexture,n.TEXTURE0+Mn)}function jt(Rn,Mn){const Bn=i.get(Rn);if(Rn.isCubeDepthTexture!==!0&&Rn.version>0&&Bn.__version!==Rn.version){En(Bn,Rn,Mn);return}r.bindTexture(n.TEXTURE_CUBE_MAP,Bn.__webglTexture,n.TEXTURE0+Mn)}const hn={[RepeatWrapping]:n.REPEAT,[ClampToEdgeWrapping]:n.CLAMP_TO_EDGE,[MirroredRepeatWrapping]:n.MIRRORED_REPEAT},vn={[NearestFilter]:n.NEAREST,[NearestMipmapNearestFilter]:n.NEAREST_MIPMAP_NEAREST,[NearestMipmapLinearFilter]:n.NEAREST_MIPMAP_LINEAR,[LinearFilter]:n.LINEAR,[LinearMipmapNearestFilter]:n.LINEAR_MIPMAP_NEAREST,[LinearMipmapLinearFilter]:n.LINEAR_MIPMAP_LINEAR},_n={[NeverCompare]:n.NEVER,[AlwaysCompare]:n.ALWAYS,[LessCompare]:n.LESS,[LessEqualCompare]:n.LEQUAL,[EqualCompare]:n.EQUAL,[GreaterEqualCompare]:n.GEQUAL,[GreaterCompare]:n.GREATER,[NotEqualCompare]:n.NOTEQUAL};function wn(Rn,Mn){if(Mn.type===FloatType&&t.has("OES_texture_float_linear")===!1&&(Mn.magFilter===LinearFilter||Mn.magFilter===LinearMipmapNearestFilter||Mn.magFilter===NearestMipmapLinearFilter||Mn.magFilter===LinearMipmapLinearFilter||Mn.minFilter===LinearFilter||Mn.minFilter===LinearMipmapNearestFilter||Mn.minFilter===NearestMipmapLinearFilter||Mn.minFilter===LinearMipmapLinearFilter)&&warn("WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),n.texParameteri(Rn,n.TEXTURE_WRAP_S,hn[Mn.wrapS]),n.texParameteri(Rn,n.TEXTURE_WRAP_T,hn[Mn.wrapT]),(Rn===n.TEXTURE_3D||Rn===n.TEXTURE_2D_ARRAY)&&n.texParameteri(Rn,n.TEXTURE_WRAP_R,hn[Mn.wrapR]),n.texParameteri(Rn,n.TEXTURE_MAG_FILTER,vn[Mn.magFilter]),n.texParameteri(Rn,n.TEXTURE_MIN_FILTER,vn[Mn.minFilter]),Mn.compareFunction&&(n.texParameteri(Rn,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(Rn,n.TEXTURE_COMPARE_FUNC,_n[Mn.compareFunction])),t.has("EXT_texture_filter_anisotropic")===!0){if(Mn.magFilter===NearestFilter||Mn.minFilter!==NearestMipmapLinearFilter&&Mn.minFilter!==LinearMipmapLinearFilter||Mn.type===FloatType&&t.has("OES_texture_float_linear")===!1)return;if(Mn.anisotropy>1||i.get(Mn).__currentAnisotropy){const Bn=t.get("EXT_texture_filter_anisotropic");n.texParameterf(Rn,Bn.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(Mn.anisotropy,g.getMaxAnisotropy())),i.get(Mn).__currentAnisotropy=Mn.anisotropy}}}function bn(Rn,Mn){let Bn=!1;Rn.__webglInit===void 0&&(Rn.__webglInit=!0,Mn.addEventListener("dispose",$e));const qn=Mn.source;let zn=ue.get(qn);zn===void 0&&(zn={},ue.set(qn,zn));const jn=kt(Mn);if(jn!==Rn.__cacheKey){zn[jn]===void 0&&(zn[jn]={texture:n.createTexture(),usedTimes:0},V.memory.textures++,Bn=!0),zn[jn].usedTimes++;const tr=zn[Rn.__cacheKey];tr!==void 0&&(zn[Rn.__cacheKey].usedTimes--,tr.usedTimes===0&&Fe(Mn)),Rn.__cacheKey=jn,Rn.__webglTexture=zn[jn].texture}return Bn}function Cn(Rn,Mn,Bn){return Math.floor(Math.floor(Rn/Bn)/Mn)}function Sn(Rn,Mn,Bn,qn){const jn=Rn.updateRanges;if(jn.length===0)r.texSubImage2D(n.TEXTURE_2D,0,0,0,Mn.width,Mn.height,Bn,qn,Mn.data);else{jn.sort((rr,lr)=>rr.start-lr.start);let tr=0;for(let rr=1;rr0){Un&&gr&&r.texStorage2D(n.TEXTURE_2D,yr,er,cr[0].width,cr[0].height);for(let Wn=0,Jn=cr.length;Wn0){const sr=getByteLength(Fn.width,Fn.height,Mn.format,Mn.type);for(const Sr of Mn.layerUpdates){const Tr=Fn.data.subarray(Sr*sr/Fn.data.BYTES_PER_ELEMENT,(Sr+1)*sr/Fn.data.BYTES_PER_ELEMENT);r.compressedTexSubImage3D(n.TEXTURE_2D_ARRAY,Wn,0,0,Sr,Fn.width,Fn.height,1,lr,Tr)}Mn.clearLayerUpdates()}else r.compressedTexSubImage3D(n.TEXTURE_2D_ARRAY,Wn,0,0,0,Fn.width,Fn.height,rr.depth,lr,Fn.data)}else r.compressedTexImage3D(n.TEXTURE_2D_ARRAY,Wn,er,Fn.width,Fn.height,rr.depth,0,Fn.data,0,0);else warn("WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else Un?vr&&r.texSubImage3D(n.TEXTURE_2D_ARRAY,Wn,0,0,0,Fn.width,Fn.height,rr.depth,lr,Yn,Fn.data):r.texImage3D(n.TEXTURE_2D_ARRAY,Wn,er,Fn.width,Fn.height,rr.depth,0,lr,Yn,Fn.data)}else{Un&&gr&&r.texStorage2D(n.TEXTURE_2D,yr,er,cr[0].width,cr[0].height);for(let Wn=0,Jn=cr.length;Wn0){const Wn=getByteLength(rr.width,rr.height,Mn.format,Mn.type);for(const Jn of Mn.layerUpdates){const sr=rr.data.subarray(Jn*Wn/rr.data.BYTES_PER_ELEMENT,(Jn+1)*Wn/rr.data.BYTES_PER_ELEMENT);r.texSubImage3D(n.TEXTURE_2D_ARRAY,0,0,0,Jn,rr.width,rr.height,1,lr,Yn,sr)}Mn.clearLayerUpdates()}else r.texSubImage3D(n.TEXTURE_2D_ARRAY,0,0,0,0,rr.width,rr.height,rr.depth,lr,Yn,rr.data)}else r.texImage3D(n.TEXTURE_2D_ARRAY,0,er,rr.width,rr.height,rr.depth,0,lr,Yn,rr.data);else if(Mn.isData3DTexture)Un?(gr&&r.texStorage3D(n.TEXTURE_3D,yr,er,rr.width,rr.height,rr.depth),vr&&r.texSubImage3D(n.TEXTURE_3D,0,0,0,0,rr.width,rr.height,rr.depth,lr,Yn,rr.data)):r.texImage3D(n.TEXTURE_3D,0,er,rr.width,rr.height,rr.depth,0,lr,Yn,rr.data);else if(Mn.isFramebufferTexture){if(gr)if(Un)r.texStorage2D(n.TEXTURE_2D,yr,er,rr.width,rr.height);else{let Wn=rr.width,Jn=rr.height;for(let sr=0;sr>=1,Jn>>=1}}else if(cr.length>0){if(Un&&gr){const Wn=Gn(cr[0]);r.texStorage2D(n.TEXTURE_2D,yr,er,Wn.width,Wn.height)}for(let Wn=0,Jn=cr.length;Wn0&&yr++;const Jn=Gn(lr[0]);r.texStorage2D(n.TEXTURE_CUBE_MAP,yr,cr,Jn.width,Jn.height)}for(let Jn=0;Jn<6;Jn++)if(rr){Un?vr&&r.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Jn,0,0,0,lr[Jn].width,lr[Jn].height,er,Fn,lr[Jn].data):r.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Jn,0,cr,lr[Jn].width,lr[Jn].height,0,er,Fn,lr[Jn].data);for(let sr=0;sr>jn),Yn=Math.max(1,Mn.height>>jn);zn===n.TEXTURE_3D||zn===n.TEXTURE_2D_ARRAY?r.texImage3D(zn,jn,ir,lr,Yn,Mn.depth,0,tr,hr,null):r.texImage2D(zn,jn,ir,lr,Yn,0,tr,hr,null)}r.bindFramebuffer(n.FRAMEBUFFER,Rn),or(Mn)?re.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,qn,zn,rr.__webglTexture,0,In(Mn)):(zn===n.TEXTURE_2D||zn>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&zn<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,qn,zn,rr.__webglTexture,jn),r.bindFramebuffer(n.FRAMEBUFFER,null)}function $n(Rn,Mn,Bn){if(n.bindRenderbuffer(n.RENDERBUFFER,Rn),Mn.depthBuffer){const qn=Mn.depthTexture,zn=qn&&qn.isDepthTexture?qn.type:null,jn=Ne(Mn.stencilBuffer,zn),tr=Mn.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT;or(Mn)?re.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,In(Mn),jn,Mn.width,Mn.height):Bn?n.renderbufferStorageMultisample(n.RENDERBUFFER,In(Mn),jn,Mn.width,Mn.height):n.renderbufferStorage(n.RENDERBUFFER,jn,Mn.width,Mn.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,tr,n.RENDERBUFFER,Rn)}else{const qn=Mn.textures;for(let zn=0;zn{delete Mn.__boundDepthTexture,delete Mn.__depthDisposeCallback,qn.removeEventListener("dispose",zn)};qn.addEventListener("dispose",zn),Mn.__depthDisposeCallback=zn}Mn.__boundDepthTexture=qn}if(Rn.depthTexture&&!Mn.__autoAllocateDepthBuffer)if(Bn)for(let qn=0;qn<6;qn++)An(Mn.__webglFramebuffer[qn],Rn,qn);else{const qn=Rn.texture.mipmaps;qn&&qn.length>0?An(Mn.__webglFramebuffer[0],Rn,0):An(Mn.__webglFramebuffer,Rn,0)}else if(Bn){Mn.__webglDepthbuffer=[];for(let qn=0;qn<6;qn++)if(r.bindFramebuffer(n.FRAMEBUFFER,Mn.__webglFramebuffer[qn]),Mn.__webglDepthbuffer[qn]===void 0)Mn.__webglDepthbuffer[qn]=n.createRenderbuffer(),$n(Mn.__webglDepthbuffer[qn],Rn,!1);else{const zn=Rn.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,jn=Mn.__webglDepthbuffer[qn];n.bindRenderbuffer(n.RENDERBUFFER,jn),n.framebufferRenderbuffer(n.FRAMEBUFFER,zn,n.RENDERBUFFER,jn)}}else{const qn=Rn.texture.mipmaps;if(qn&&qn.length>0?r.bindFramebuffer(n.FRAMEBUFFER,Mn.__webglFramebuffer[0]):r.bindFramebuffer(n.FRAMEBUFFER,Mn.__webglFramebuffer),Mn.__webglDepthbuffer===void 0)Mn.__webglDepthbuffer=n.createRenderbuffer(),$n(Mn.__webglDepthbuffer,Rn,!1);else{const zn=Rn.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,jn=Mn.__webglDepthbuffer;n.bindRenderbuffer(n.RENDERBUFFER,jn),n.framebufferRenderbuffer(n.FRAMEBUFFER,zn,n.RENDERBUFFER,jn)}}r.bindFramebuffer(n.FRAMEBUFFER,null)}function Ln(Rn,Mn,Bn){const qn=i.get(Rn);Mn!==void 0&&kn(qn.__webglFramebuffer,Rn,Rn.texture,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,0),Bn!==void 0&&xn(Rn)}function Nn(Rn){const Mn=Rn.texture,Bn=i.get(Rn),qn=i.get(Mn);Rn.addEventListener("dispose",Ve);const zn=Rn.textures,jn=Rn.isWebGLCubeRenderTarget===!0,tr=zn.length>1;if(tr||(qn.__webglTexture===void 0&&(qn.__webglTexture=n.createTexture()),qn.__version=Mn.version,V.memory.textures++),jn){Bn.__webglFramebuffer=[];for(let hr=0;hr<6;hr++)if(Mn.mipmaps&&Mn.mipmaps.length>0){Bn.__webglFramebuffer[hr]=[];for(let ir=0;ir0){Bn.__webglFramebuffer=[];for(let hr=0;hr0&&or(Rn)===!1){Bn.__webglMultisampledFramebuffer=n.createFramebuffer(),Bn.__webglColorRenderbuffer=[],r.bindFramebuffer(n.FRAMEBUFFER,Bn.__webglMultisampledFramebuffer);for(let hr=0;hr0)for(let ir=0;ir0)for(let ir=0;ir0){if(or(Rn)===!1){const Mn=Rn.textures,Bn=Rn.width,qn=Rn.height;let zn=n.COLOR_BUFFER_BIT;const jn=Rn.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,tr=i.get(Rn),hr=Mn.length>1;if(hr)for(let pr=0;pr0?r.bindFramebuffer(n.DRAW_FRAMEBUFFER,tr.__webglFramebuffer[0]):r.bindFramebuffer(n.DRAW_FRAMEBUFFER,tr.__webglFramebuffer);for(let pr=0;pr0&&t.has("WEBGL_multisampled_render_to_texture")===!0&&Mn.__useRenderToTexture!==!1}function Qn(Rn){const Mn=V.render.frame;oe.get(Rn)!==Mn&&(oe.set(Rn,Mn),Rn.update())}function Zn(Rn,Mn){const Bn=Rn.colorSpace,qn=Rn.format,zn=Rn.type;return Rn.isCompressedTexture===!0||Rn.isVideoTexture===!0||Bn!==LinearSRGBColorSpace&&Bn!==NoColorSpace&&(ColorManagement.getTransfer(Bn)===SRGBTransfer?(qn!==RGBAFormat||zn!==UnsignedByteType)&&warn("WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):error("WebGLTextures: Unsupported texture color space:",Bn)),Mn}function Gn(Rn){return typeof HTMLImageElement<"u"&&Rn instanceof HTMLImageElement?(ae.width=Rn.naturalWidth||Rn.width,ae.height=Rn.naturalHeight||Rn.height):typeof VideoFrame<"u"&&Rn instanceof VideoFrame?(ae.width=Rn.displayWidth,ae.height=Rn.displayHeight):(ae.width=Rn.width,ae.height=Rn.height),ae}this.allocateTextureUnit=Et,this.resetTextureUnits=qe,this.setTexture2D=At,this.setTexture2DArray=Dt,this.setTexture3D=Lt,this.setTextureCube=jt,this.rebindTextures=Ln,this.setupRenderTarget=Nn,this.updateRenderTargetMipmap=Pn,this.updateMultisampleRenderTarget=Xn,this.setupDepthRenderbuffer=xn,this.setupFrameBufferTexture=kn,this.useMultisampledRTT=or,this.isReversedDepthBuffer=function(){return r.buffers.depth.getReversed()}}function WebGLUtils(n,t){function r(i,g=NoColorSpace){let $;const V=ColorManagement.getTransfer(g);if(i===UnsignedByteType)return n.UNSIGNED_BYTE;if(i===UnsignedShort4444Type)return n.UNSIGNED_SHORT_4_4_4_4;if(i===UnsignedShort5551Type)return n.UNSIGNED_SHORT_5_5_5_1;if(i===UnsignedInt5999Type)return n.UNSIGNED_INT_5_9_9_9_REV;if(i===UnsignedInt101111Type)return n.UNSIGNED_INT_10F_11F_11F_REV;if(i===ByteType)return n.BYTE;if(i===ShortType)return n.SHORT;if(i===UnsignedShortType)return n.UNSIGNED_SHORT;if(i===IntType)return n.INT;if(i===UnsignedIntType)return n.UNSIGNED_INT;if(i===FloatType)return n.FLOAT;if(i===HalfFloatType)return n.HALF_FLOAT;if(i===AlphaFormat)return n.ALPHA;if(i===RGBFormat)return n.RGB;if(i===RGBAFormat)return n.RGBA;if(i===DepthFormat)return n.DEPTH_COMPONENT;if(i===DepthStencilFormat)return n.DEPTH_STENCIL;if(i===RedFormat)return n.RED;if(i===RedIntegerFormat)return n.RED_INTEGER;if(i===RGFormat)return n.RG;if(i===RGIntegerFormat)return n.RG_INTEGER;if(i===RGBAIntegerFormat)return n.RGBA_INTEGER;if(i===RGB_S3TC_DXT1_Format||i===RGBA_S3TC_DXT1_Format||i===RGBA_S3TC_DXT3_Format||i===RGBA_S3TC_DXT5_Format)if(V===SRGBTransfer)if($=t.get("WEBGL_compressed_texture_s3tc_srgb"),$!==null){if(i===RGB_S3TC_DXT1_Format)return $.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(i===RGBA_S3TC_DXT1_Format)return $.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(i===RGBA_S3TC_DXT3_Format)return $.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(i===RGBA_S3TC_DXT5_Format)return $.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if($=t.get("WEBGL_compressed_texture_s3tc"),$!==null){if(i===RGB_S3TC_DXT1_Format)return $.COMPRESSED_RGB_S3TC_DXT1_EXT;if(i===RGBA_S3TC_DXT1_Format)return $.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(i===RGBA_S3TC_DXT3_Format)return $.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(i===RGBA_S3TC_DXT5_Format)return $.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(i===RGB_PVRTC_4BPPV1_Format||i===RGB_PVRTC_2BPPV1_Format||i===RGBA_PVRTC_4BPPV1_Format||i===RGBA_PVRTC_2BPPV1_Format)if($=t.get("WEBGL_compressed_texture_pvrtc"),$!==null){if(i===RGB_PVRTC_4BPPV1_Format)return $.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(i===RGB_PVRTC_2BPPV1_Format)return $.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(i===RGBA_PVRTC_4BPPV1_Format)return $.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(i===RGBA_PVRTC_2BPPV1_Format)return $.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(i===RGB_ETC1_Format||i===RGB_ETC2_Format||i===RGBA_ETC2_EAC_Format||i===R11_EAC_Format||i===SIGNED_R11_EAC_Format||i===RG11_EAC_Format||i===SIGNED_RG11_EAC_Format)if($=t.get("WEBGL_compressed_texture_etc"),$!==null){if(i===RGB_ETC1_Format||i===RGB_ETC2_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ETC2:$.COMPRESSED_RGB8_ETC2;if(i===RGBA_ETC2_EAC_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:$.COMPRESSED_RGBA8_ETC2_EAC;if(i===R11_EAC_Format)return $.COMPRESSED_R11_EAC;if(i===SIGNED_R11_EAC_Format)return $.COMPRESSED_SIGNED_R11_EAC;if(i===RG11_EAC_Format)return $.COMPRESSED_RG11_EAC;if(i===SIGNED_RG11_EAC_Format)return $.COMPRESSED_SIGNED_RG11_EAC}else return null;if(i===RGBA_ASTC_4x4_Format||i===RGBA_ASTC_5x4_Format||i===RGBA_ASTC_5x5_Format||i===RGBA_ASTC_6x5_Format||i===RGBA_ASTC_6x6_Format||i===RGBA_ASTC_8x5_Format||i===RGBA_ASTC_8x6_Format||i===RGBA_ASTC_8x8_Format||i===RGBA_ASTC_10x5_Format||i===RGBA_ASTC_10x6_Format||i===RGBA_ASTC_10x8_Format||i===RGBA_ASTC_10x10_Format||i===RGBA_ASTC_12x10_Format||i===RGBA_ASTC_12x12_Format)if($=t.get("WEBGL_compressed_texture_astc"),$!==null){if(i===RGBA_ASTC_4x4_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:$.COMPRESSED_RGBA_ASTC_4x4_KHR;if(i===RGBA_ASTC_5x4_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:$.COMPRESSED_RGBA_ASTC_5x4_KHR;if(i===RGBA_ASTC_5x5_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:$.COMPRESSED_RGBA_ASTC_5x5_KHR;if(i===RGBA_ASTC_6x5_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:$.COMPRESSED_RGBA_ASTC_6x5_KHR;if(i===RGBA_ASTC_6x6_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:$.COMPRESSED_RGBA_ASTC_6x6_KHR;if(i===RGBA_ASTC_8x5_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:$.COMPRESSED_RGBA_ASTC_8x5_KHR;if(i===RGBA_ASTC_8x6_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:$.COMPRESSED_RGBA_ASTC_8x6_KHR;if(i===RGBA_ASTC_8x8_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:$.COMPRESSED_RGBA_ASTC_8x8_KHR;if(i===RGBA_ASTC_10x5_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:$.COMPRESSED_RGBA_ASTC_10x5_KHR;if(i===RGBA_ASTC_10x6_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:$.COMPRESSED_RGBA_ASTC_10x6_KHR;if(i===RGBA_ASTC_10x8_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:$.COMPRESSED_RGBA_ASTC_10x8_KHR;if(i===RGBA_ASTC_10x10_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:$.COMPRESSED_RGBA_ASTC_10x10_KHR;if(i===RGBA_ASTC_12x10_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:$.COMPRESSED_RGBA_ASTC_12x10_KHR;if(i===RGBA_ASTC_12x12_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:$.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(i===RGBA_BPTC_Format||i===RGB_BPTC_SIGNED_Format||i===RGB_BPTC_UNSIGNED_Format)if($=t.get("EXT_texture_compression_bptc"),$!==null){if(i===RGBA_BPTC_Format)return V===SRGBTransfer?$.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:$.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(i===RGB_BPTC_SIGNED_Format)return $.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(i===RGB_BPTC_UNSIGNED_Format)return $.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(i===RED_RGTC1_Format||i===SIGNED_RED_RGTC1_Format||i===RED_GREEN_RGTC2_Format||i===SIGNED_RED_GREEN_RGTC2_Format)if($=t.get("EXT_texture_compression_rgtc"),$!==null){if(i===RED_RGTC1_Format)return $.COMPRESSED_RED_RGTC1_EXT;if(i===SIGNED_RED_RGTC1_Format)return $.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(i===RED_GREEN_RGTC2_Format)return $.COMPRESSED_RED_GREEN_RGTC2_EXT;if(i===SIGNED_RED_GREEN_RGTC2_Format)return $.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return i===UnsignedInt248Type?n.UNSIGNED_INT_24_8:n[i]!==void 0?n[i]:null}return{convert:r}}const _occlusion_vertex=` void main() { gl_Position = vec4( position, 1.0 ); }`,_occlusion_fragment=` uniform sampler2DArray depthColor; uniform float depthWidth; uniform float depthHeight; void main() { vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); if ( coord.x >= 1.0 ) { gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; } else { gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; } }`;class WebXRDepthSensing{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(t,r){if(this.texture===null){const i=new ExternalTexture(t.texture);(t.depthNear!==r.depthNear||t.depthFar!==r.depthFar)&&(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=i}}getMesh(t){if(this.texture!==null&&this.mesh===null){const r=t.cameras[0].viewport,i=new ShaderMaterial({vertexShader:_occlusion_vertex,fragmentShader:_occlusion_fragment,uniforms:{depthColor:{value:this.texture},depthWidth:{value:r.z},depthHeight:{value:r.w}}});this.mesh=new Mesh(new PlaneGeometry(20,20),i)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class WebXRManager extends EventDispatcher{constructor(t,r){super();const i=this;let g=null,$=1,V=null,re="local-floor",ie=1,ae=null,oe=null,le=null,ue=null,de=null,he=null;const pe=typeof XRWebGLBinding<"u",_e=new WebXRDepthSensing,Ce={},xe=r.getContextAttributes();let Ie=null,Ne=null;const Oe=[],$e=[],Ve=new Vector2;let Ue=null;const Fe=new PerspectiveCamera;Fe.viewport=new Vector4;const ze=new PerspectiveCamera;ze.viewport=new Vector4;const Pt=[Fe,ze],qe=new ArrayCamera;let Et=null,kt=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(Tn){let En=Oe[Tn];return En===void 0&&(En=new WebXRController,Oe[Tn]=En),En.getTargetRaySpace()},this.getControllerGrip=function(Tn){let En=Oe[Tn];return En===void 0&&(En=new WebXRController,Oe[Tn]=En),En.getGripSpace()},this.getHand=function(Tn){let En=Oe[Tn];return En===void 0&&(En=new WebXRController,Oe[Tn]=En),En.getHandSpace()};function At(Tn){const En=$e.indexOf(Tn.inputSource);if(En===-1)return;const kn=Oe[En];kn!==void 0&&(kn.update(Tn.inputSource,Tn.frame,ae||V),kn.dispatchEvent({type:Tn.type,data:Tn.inputSource}))}function Dt(){g.removeEventListener("select",At),g.removeEventListener("selectstart",At),g.removeEventListener("selectend",At),g.removeEventListener("squeeze",At),g.removeEventListener("squeezestart",At),g.removeEventListener("squeezeend",At),g.removeEventListener("end",Dt),g.removeEventListener("inputsourceschange",Lt);for(let Tn=0;Tn=0&&($e[$n]=null,Oe[$n].disconnect(kn))}for(let En=0;En=$e.length){$e.push(kn),$n=xn;break}else if($e[xn]===null){$e[xn]=kn,$n=xn;break}if($n===-1)break}const An=Oe[$n];An&&An.connect(kn)}}const jt=new Vector3,hn=new Vector3;function vn(Tn,En,kn){jt.setFromMatrixPosition(En.matrixWorld),hn.setFromMatrixPosition(kn.matrixWorld);const $n=jt.distanceTo(hn),An=En.projectionMatrix.elements,xn=kn.projectionMatrix.elements,Ln=An[14]/(An[10]-1),Nn=An[14]/(An[10]+1),Pn=(An[9]+1)/An[5],On=(An[9]-1)/An[5],Hn=(An[8]-1)/An[0],Xn=(xn[8]+1)/xn[0],In=Ln*Hn,or=Ln*Xn,Qn=$n/(-Hn+Xn),Zn=Qn*-Hn;if(En.matrixWorld.decompose(Tn.position,Tn.quaternion,Tn.scale),Tn.translateX(Zn),Tn.translateZ(Qn),Tn.matrixWorld.compose(Tn.position,Tn.quaternion,Tn.scale),Tn.matrixWorldInverse.copy(Tn.matrixWorld).invert(),An[10]===-1)Tn.projectionMatrix.copy(En.projectionMatrix),Tn.projectionMatrixInverse.copy(En.projectionMatrixInverse);else{const Gn=Ln+Qn,Rn=Nn+Qn,Mn=In-Zn,Bn=or+($n-Zn),qn=Pn*Nn/Rn*Gn,zn=On*Nn/Rn*Gn;Tn.projectionMatrix.makePerspective(Mn,Bn,qn,zn,Gn,Rn),Tn.projectionMatrixInverse.copy(Tn.projectionMatrix).invert()}}function _n(Tn,En){En===null?Tn.matrixWorld.copy(Tn.matrix):Tn.matrixWorld.multiplyMatrices(En.matrixWorld,Tn.matrix),Tn.matrixWorldInverse.copy(Tn.matrixWorld).invert()}this.updateCamera=function(Tn){if(g===null)return;let En=Tn.near,kn=Tn.far;_e.texture!==null&&(_e.depthNear>0&&(En=_e.depthNear),_e.depthFar>0&&(kn=_e.depthFar)),qe.near=ze.near=Fe.near=En,qe.far=ze.far=Fe.far=kn,(Et!==qe.near||kt!==qe.far)&&(g.updateRenderState({depthNear:qe.near,depthFar:qe.far}),Et=qe.near,kt=qe.far),qe.layers.mask=Tn.layers.mask|6,Fe.layers.mask=qe.layers.mask&3,ze.layers.mask=qe.layers.mask&5;const $n=Tn.parent,An=qe.cameras;_n(qe,$n);for(let xn=0;xn0&&(_e.alphaTest.value=Ce.alphaTest);const xe=t.get(Ce),Ie=xe.envMap,Ne=xe.envMapRotation;Ie&&(_e.envMap.value=Ie,_e1.copy(Ne),_e1.x*=-1,_e1.y*=-1,_e1.z*=-1,Ie.isCubeTexture&&Ie.isRenderTargetTexture===!1&&(_e1.y*=-1,_e1.z*=-1),_e.envMapRotation.value.setFromMatrix4(_m1.makeRotationFromEuler(_e1)),_e.flipEnvMap.value=Ie.isCubeTexture&&Ie.isRenderTargetTexture===!1?-1:1,_e.reflectivity.value=Ce.reflectivity,_e.ior.value=Ce.ior,_e.refractionRatio.value=Ce.refractionRatio),Ce.lightMap&&(_e.lightMap.value=Ce.lightMap,_e.lightMapIntensity.value=Ce.lightMapIntensity,r(Ce.lightMap,_e.lightMapTransform)),Ce.aoMap&&(_e.aoMap.value=Ce.aoMap,_e.aoMapIntensity.value=Ce.aoMapIntensity,r(Ce.aoMap,_e.aoMapTransform))}function V(_e,Ce){_e.diffuse.value.copy(Ce.color),_e.opacity.value=Ce.opacity,Ce.map&&(_e.map.value=Ce.map,r(Ce.map,_e.mapTransform))}function re(_e,Ce){_e.dashSize.value=Ce.dashSize,_e.totalSize.value=Ce.dashSize+Ce.gapSize,_e.scale.value=Ce.scale}function ie(_e,Ce,xe,Ie){_e.diffuse.value.copy(Ce.color),_e.opacity.value=Ce.opacity,_e.size.value=Ce.size*xe,_e.scale.value=Ie*.5,Ce.map&&(_e.map.value=Ce.map,r(Ce.map,_e.uvTransform)),Ce.alphaMap&&(_e.alphaMap.value=Ce.alphaMap,r(Ce.alphaMap,_e.alphaMapTransform)),Ce.alphaTest>0&&(_e.alphaTest.value=Ce.alphaTest)}function ae(_e,Ce){_e.diffuse.value.copy(Ce.color),_e.opacity.value=Ce.opacity,_e.rotation.value=Ce.rotation,Ce.map&&(_e.map.value=Ce.map,r(Ce.map,_e.mapTransform)),Ce.alphaMap&&(_e.alphaMap.value=Ce.alphaMap,r(Ce.alphaMap,_e.alphaMapTransform)),Ce.alphaTest>0&&(_e.alphaTest.value=Ce.alphaTest)}function oe(_e,Ce){_e.specular.value.copy(Ce.specular),_e.shininess.value=Math.max(Ce.shininess,1e-4)}function le(_e,Ce){Ce.gradientMap&&(_e.gradientMap.value=Ce.gradientMap)}function ue(_e,Ce){_e.metalness.value=Ce.metalness,Ce.metalnessMap&&(_e.metalnessMap.value=Ce.metalnessMap,r(Ce.metalnessMap,_e.metalnessMapTransform)),_e.roughness.value=Ce.roughness,Ce.roughnessMap&&(_e.roughnessMap.value=Ce.roughnessMap,r(Ce.roughnessMap,_e.roughnessMapTransform)),Ce.envMap&&(_e.envMapIntensity.value=Ce.envMapIntensity)}function de(_e,Ce,xe){_e.ior.value=Ce.ior,Ce.sheen>0&&(_e.sheenColor.value.copy(Ce.sheenColor).multiplyScalar(Ce.sheen),_e.sheenRoughness.value=Ce.sheenRoughness,Ce.sheenColorMap&&(_e.sheenColorMap.value=Ce.sheenColorMap,r(Ce.sheenColorMap,_e.sheenColorMapTransform)),Ce.sheenRoughnessMap&&(_e.sheenRoughnessMap.value=Ce.sheenRoughnessMap,r(Ce.sheenRoughnessMap,_e.sheenRoughnessMapTransform))),Ce.clearcoat>0&&(_e.clearcoat.value=Ce.clearcoat,_e.clearcoatRoughness.value=Ce.clearcoatRoughness,Ce.clearcoatMap&&(_e.clearcoatMap.value=Ce.clearcoatMap,r(Ce.clearcoatMap,_e.clearcoatMapTransform)),Ce.clearcoatRoughnessMap&&(_e.clearcoatRoughnessMap.value=Ce.clearcoatRoughnessMap,r(Ce.clearcoatRoughnessMap,_e.clearcoatRoughnessMapTransform)),Ce.clearcoatNormalMap&&(_e.clearcoatNormalMap.value=Ce.clearcoatNormalMap,r(Ce.clearcoatNormalMap,_e.clearcoatNormalMapTransform),_e.clearcoatNormalScale.value.copy(Ce.clearcoatNormalScale),Ce.side===BackSide&&_e.clearcoatNormalScale.value.negate())),Ce.dispersion>0&&(_e.dispersion.value=Ce.dispersion),Ce.iridescence>0&&(_e.iridescence.value=Ce.iridescence,_e.iridescenceIOR.value=Ce.iridescenceIOR,_e.iridescenceThicknessMinimum.value=Ce.iridescenceThicknessRange[0],_e.iridescenceThicknessMaximum.value=Ce.iridescenceThicknessRange[1],Ce.iridescenceMap&&(_e.iridescenceMap.value=Ce.iridescenceMap,r(Ce.iridescenceMap,_e.iridescenceMapTransform)),Ce.iridescenceThicknessMap&&(_e.iridescenceThicknessMap.value=Ce.iridescenceThicknessMap,r(Ce.iridescenceThicknessMap,_e.iridescenceThicknessMapTransform))),Ce.transmission>0&&(_e.transmission.value=Ce.transmission,_e.transmissionSamplerMap.value=xe.texture,_e.transmissionSamplerSize.value.set(xe.width,xe.height),Ce.transmissionMap&&(_e.transmissionMap.value=Ce.transmissionMap,r(Ce.transmissionMap,_e.transmissionMapTransform)),_e.thickness.value=Ce.thickness,Ce.thicknessMap&&(_e.thicknessMap.value=Ce.thicknessMap,r(Ce.thicknessMap,_e.thicknessMapTransform)),_e.attenuationDistance.value=Ce.attenuationDistance,_e.attenuationColor.value.copy(Ce.attenuationColor)),Ce.anisotropy>0&&(_e.anisotropyVector.value.set(Ce.anisotropy*Math.cos(Ce.anisotropyRotation),Ce.anisotropy*Math.sin(Ce.anisotropyRotation)),Ce.anisotropyMap&&(_e.anisotropyMap.value=Ce.anisotropyMap,r(Ce.anisotropyMap,_e.anisotropyMapTransform))),_e.specularIntensity.value=Ce.specularIntensity,_e.specularColor.value.copy(Ce.specularColor),Ce.specularColorMap&&(_e.specularColorMap.value=Ce.specularColorMap,r(Ce.specularColorMap,_e.specularColorMapTransform)),Ce.specularIntensityMap&&(_e.specularIntensityMap.value=Ce.specularIntensityMap,r(Ce.specularIntensityMap,_e.specularIntensityMapTransform))}function he(_e,Ce){Ce.matcap&&(_e.matcap.value=Ce.matcap)}function pe(_e,Ce){const xe=t.get(Ce).light;_e.referencePosition.value.setFromMatrixPosition(xe.matrixWorld),_e.nearDistance.value=xe.shadow.camera.near,_e.farDistance.value=xe.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:g}}function WebGLUniformsGroups(n,t,r,i){let g={},$={},V=[];const re=n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS);function ie(xe,Ie){const Ne=Ie.program;i.uniformBlockBinding(xe,Ne)}function ae(xe,Ie){let Ne=g[xe.id];Ne===void 0&&(he(xe),Ne=oe(xe),g[xe.id]=Ne,xe.addEventListener("dispose",_e));const Oe=Ie.program;i.updateUBOMapping(xe,Oe);const $e=t.render.frame;$[xe.id]!==$e&&(ue(xe),$[xe.id]=$e)}function oe(xe){const Ie=le();xe.__bindingPointIndex=Ie;const Ne=n.createBuffer(),Oe=xe.__size,$e=xe.usage;return n.bindBuffer(n.UNIFORM_BUFFER,Ne),n.bufferData(n.UNIFORM_BUFFER,Oe,$e),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,Ie,Ne),Ne}function le(){for(let xe=0;xe0&&(Ne+=Oe-$e),xe.__size=Ne,xe.__cache={},this}function pe(xe){const Ie={boundary:0,storage:0};return typeof xe=="number"||typeof xe=="boolean"?(Ie.boundary=4,Ie.storage=4):xe.isVector2?(Ie.boundary=8,Ie.storage=8):xe.isVector3||xe.isColor?(Ie.boundary=16,Ie.storage=12):xe.isVector4?(Ie.boundary=16,Ie.storage=16):xe.isMatrix3?(Ie.boundary=48,Ie.storage=48):xe.isMatrix4?(Ie.boundary=64,Ie.storage=64):xe.isTexture?warn("WebGLRenderer: Texture samplers can not be part of an uniforms group."):warn("WebGLRenderer: Unsupported uniform value type.",xe),Ie}function _e(xe){const Ie=xe.target;Ie.removeEventListener("dispose",_e);const Ne=V.indexOf(Ie.__bindingPointIndex);V.splice(Ne,1),n.deleteBuffer(g[Ie.id]),delete g[Ie.id],delete $[Ie.id]}function Ce(){for(const xe in g)n.deleteBuffer(g[xe]);V=[],g={},$={}}return{bind:ie,update:ae,dispose:Ce}}const DATA=new Uint16Array([12469,15057,12620,14925,13266,14620,13807,14376,14323,13990,14545,13625,14713,13328,14840,12882,14931,12528,14996,12233,15039,11829,15066,11525,15080,11295,15085,10976,15082,10705,15073,10495,13880,14564,13898,14542,13977,14430,14158,14124,14393,13732,14556,13410,14702,12996,14814,12596,14891,12291,14937,11834,14957,11489,14958,11194,14943,10803,14921,10506,14893,10278,14858,9960,14484,14039,14487,14025,14499,13941,14524,13740,14574,13468,14654,13106,14743,12678,14818,12344,14867,11893,14889,11509,14893,11180,14881,10751,14852,10428,14812,10128,14765,9754,14712,9466,14764,13480,14764,13475,14766,13440,14766,13347,14769,13070,14786,12713,14816,12387,14844,11957,14860,11549,14868,11215,14855,10751,14825,10403,14782,10044,14729,9651,14666,9352,14599,9029,14967,12835,14966,12831,14963,12804,14954,12723,14936,12564,14917,12347,14900,11958,14886,11569,14878,11247,14859,10765,14828,10401,14784,10011,14727,9600,14660,9289,14586,8893,14508,8533,15111,12234,15110,12234,15104,12216,15092,12156,15067,12010,15028,11776,14981,11500,14942,11205,14902,10752,14861,10393,14812,9991,14752,9570,14682,9252,14603,8808,14519,8445,14431,8145,15209,11449,15208,11451,15202,11451,15190,11438,15163,11384,15117,11274,15055,10979,14994,10648,14932,10343,14871,9936,14803,9532,14729,9218,14645,8742,14556,8381,14461,8020,14365,7603,15273,10603,15272,10607,15267,10619,15256,10631,15231,10614,15182,10535,15118,10389,15042,10167,14963,9787,14883,9447,14800,9115,14710,8665,14615,8318,14514,7911,14411,7507,14279,7198,15314,9675,15313,9683,15309,9712,15298,9759,15277,9797,15229,9773,15166,9668,15084,9487,14995,9274,14898,8910,14800,8539,14697,8234,14590,7790,14479,7409,14367,7067,14178,6621,15337,8619,15337,8631,15333,8677,15325,8769,15305,8871,15264,8940,15202,8909,15119,8775,15022,8565,14916,8328,14804,8009,14688,7614,14569,7287,14448,6888,14321,6483,14088,6171,15350,7402,15350,7419,15347,7480,15340,7613,15322,7804,15287,7973,15229,8057,15148,8012,15046,7846,14933,7611,14810,7357,14682,7069,14552,6656,14421,6316,14251,5948,14007,5528,15356,5942,15356,5977,15353,6119,15348,6294,15332,6551,15302,6824,15249,7044,15171,7122,15070,7050,14949,6861,14818,6611,14679,6349,14538,6067,14398,5651,14189,5311,13935,4958,15359,4123,15359,4153,15356,4296,15353,4646,15338,5160,15311,5508,15263,5829,15188,6042,15088,6094,14966,6001,14826,5796,14678,5543,14527,5287,14377,4985,14133,4586,13869,4257,15360,1563,15360,1642,15358,2076,15354,2636,15341,3350,15317,4019,15273,4429,15203,4732,15105,4911,14981,4932,14836,4818,14679,4621,14517,4386,14359,4156,14083,3795,13808,3437,15360,122,15360,137,15358,285,15355,636,15344,1274,15322,2177,15281,2765,15215,3223,15120,3451,14995,3569,14846,3567,14681,3466,14511,3305,14344,3121,14037,2800,13753,2467,15360,0,15360,1,15359,21,15355,89,15346,253,15325,479,15287,796,15225,1148,15133,1492,15008,1749,14856,1882,14685,1886,14506,1783,14324,1608,13996,1398,13702,1183]);let lut=null;function getDFGLUT(){return lut===null&&(lut=new DataTexture(DATA,16,16,RGFormat,HalfFloatType),lut.name="DFG_LUT",lut.minFilter=LinearFilter,lut.magFilter=LinearFilter,lut.wrapS=ClampToEdgeWrapping,lut.wrapT=ClampToEdgeWrapping,lut.generateMipmaps=!1,lut.needsUpdate=!0),lut}class WebGLRenderer{constructor(t={}){const{canvas:r=createCanvasElement(),context:i=null,depth:g=!0,stencil:$=!1,alpha:V=!1,antialias:re=!1,premultipliedAlpha:ie=!0,preserveDrawingBuffer:ae=!1,powerPreference:oe="default",failIfMajorPerformanceCaveat:le=!1,reversedDepthBuffer:ue=!1,outputBufferType:de=UnsignedByteType}=t;this.isWebGLRenderer=!0;let he;if(i!==null){if(typeof WebGLRenderingContext<"u"&&i instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");he=i.getContextAttributes().alpha}else he=V;const pe=de,_e=new Set([RGBAIntegerFormat,RGIntegerFormat,RedIntegerFormat]),Ce=new Set([UnsignedByteType,UnsignedIntType,UnsignedShortType,UnsignedInt248Type,UnsignedShort4444Type,UnsignedShort5551Type]),xe=new Uint32Array(4),Ie=new Int32Array(4);let Ne=null,Oe=null;const $e=[],Ve=[];let Ue=null;this.domElement=r,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=NoToneMapping,this.toneMappingExposure=1,this.transmissionResolutionScale=1;const Fe=this;let ze=!1;this._outputColorSpace=SRGBColorSpace;let Pt=0,qe=0,Et=null,kt=-1,At=null;const Dt=new Vector4,Lt=new Vector4;let jt=null;const hn=new Color(0);let vn=0,_n=r.width,wn=r.height,bn=1,Cn=null,Sn=null;const Tn=new Vector4(0,0,_n,wn),En=new Vector4(0,0,_n,wn);let kn=!1;const $n=new Frustum;let An=!1,xn=!1;const Ln=new Matrix4,Nn=new Vector3,Pn=new Vector4,On={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let Hn=!1;function Xn(){return Et===null?bn:1}let In=i;function or(Dn,nr){return r.getContext(Dn,nr)}try{const Dn={alpha:!0,depth:g,stencil:$,antialias:re,premultipliedAlpha:ie,preserveDrawingBuffer:ae,powerPreference:oe,failIfMajorPerformanceCaveat:le};if("setAttribute"in r&&r.setAttribute("data-engine",`three.js r${REVISION}`),r.addEventListener("webglcontextlost",Sr,!1),r.addEventListener("webglcontextrestored",Tr,!1),r.addEventListener("webglcontextcreationerror",fr,!1),In===null){const nr="webgl2";if(In=or(nr,Dn),In===null)throw or(nr)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(Dn){throw error("WebGLRenderer: "+Dn.message),Dn}let Qn,Zn,Gn,Rn,Mn,Bn,qn,zn,jn,tr,hr,ir,pr,rr,lr,Yn,er,Fn,cr,Un,gr,vr,yr,Wn;function Jn(){Qn=new WebGLExtensions(In),Qn.init(),vr=new WebGLUtils(In,Qn),Zn=new WebGLCapabilities(In,Qn,t,vr),Gn=new WebGLState(In,Qn),Zn.reversedDepthBuffer&&ue&&Gn.buffers.depth.setReversed(!0),Rn=new WebGLInfo(In),Mn=new WebGLProperties,Bn=new WebGLTextures(In,Qn,Gn,Mn,Zn,vr,Rn),qn=new WebGLCubeMaps(Fe),zn=new WebGLCubeUVMaps(Fe),jn=new WebGLAttributes(In),yr=new WebGLBindingStates(In,jn),tr=new WebGLGeometries(In,jn,Rn,yr),hr=new WebGLObjects(In,tr,jn,Rn),cr=new WebGLMorphtargets(In,Zn,Bn),Yn=new WebGLClipping(Mn),ir=new WebGLPrograms(Fe,qn,zn,Qn,Zn,yr,Yn),pr=new WebGLMaterials(Fe,Mn),rr=new WebGLRenderLists,lr=new WebGLRenderStates(Qn),Fn=new WebGLBackground(Fe,qn,zn,Gn,hr,he,ie),er=new WebGLShadowMap(Fe,hr,Zn),Wn=new WebGLUniformsGroups(In,Rn,Zn,Gn),Un=new WebGLBufferRenderer(In,Qn,Rn),gr=new WebGLIndexedBufferRenderer(In,Qn,Rn),Rn.programs=ir.programs,Fe.capabilities=Zn,Fe.extensions=Qn,Fe.properties=Mn,Fe.renderLists=rr,Fe.shadowMap=er,Fe.state=Gn,Fe.info=Rn}Jn(),pe!==UnsignedByteType&&(Ue=new WebGLOutput(pe,r.width,r.height,g,$));const sr=new WebXRManager(Fe,In);this.xr=sr,this.getContext=function(){return In},this.getContextAttributes=function(){return In.getContextAttributes()},this.forceContextLoss=function(){const Dn=Qn.get("WEBGL_lose_context");Dn&&Dn.loseContext()},this.forceContextRestore=function(){const Dn=Qn.get("WEBGL_lose_context");Dn&&Dn.restoreContext()},this.getPixelRatio=function(){return bn},this.setPixelRatio=function(Dn){Dn!==void 0&&(bn=Dn,this.setSize(_n,wn,!1))},this.getSize=function(Dn){return Dn.set(_n,wn)},this.setSize=function(Dn,nr,ur=!0){if(sr.isPresenting){warn("WebGLRenderer: Can't change size while VR device is presenting.");return}_n=Dn,wn=nr,r.width=Math.floor(Dn*bn),r.height=Math.floor(nr*bn),ur===!0&&(r.style.width=Dn+"px",r.style.height=nr+"px"),Ue!==null&&Ue.setSize(r.width,r.height),this.setViewport(0,0,Dn,nr)},this.getDrawingBufferSize=function(Dn){return Dn.set(_n*bn,wn*bn).floor()},this.setDrawingBufferSize=function(Dn,nr,ur){_n=Dn,wn=nr,bn=ur,r.width=Math.floor(Dn*ur),r.height=Math.floor(nr*ur),this.setViewport(0,0,Dn,nr)},this.setEffects=function(Dn){if(pe===UnsignedByteType){console.error("THREE.WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.");return}if(Dn){for(let nr=0;nr{function dr(){if(Vn.forEach(function(mr){Mn.get(mr).currentProgram.isReady()&&Vn.delete(mr)}),Vn.size===0){Kn(Dn);return}setTimeout(dr,10)}Qn.get("KHR_parallel_shader_compile")!==null?dr():setTimeout(dr,10)})};let jr=null;function ai(Dn){jr&&jr(Dn)}function ti(){Wr.stop()}function ri(){Wr.start()}const Wr=new WebGLAnimation;Wr.setAnimationLoop(ai),typeof self<"u"&&Wr.setContext(self),this.setAnimationLoop=function(Dn){jr=Dn,sr.setAnimationLoop(Dn),Dn===null?Wr.stop():Wr.start()},sr.addEventListener("sessionstart",ti),sr.addEventListener("sessionend",ri),this.render=function(Dn,nr){if(nr!==void 0&&nr.isCamera!==!0){error("WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(ze===!0)return;const ur=sr.enabled===!0&&sr.isPresenting===!0,Vn=Ue!==null&&(Et===null||ur)&&Ue.begin(Fe,Et);if(Dn.matrixWorldAutoUpdate===!0&&Dn.updateMatrixWorld(),nr.parent===null&&nr.matrixWorldAutoUpdate===!0&&nr.updateMatrixWorld(),sr.enabled===!0&&sr.isPresenting===!0&&(Ue===null||Ue.isCompositing()===!1)&&(sr.cameraAutoUpdate===!0&&sr.updateCamera(nr),nr=sr.getCamera()),Dn.isScene===!0&&Dn.onBeforeRender(Fe,Dn,nr,Et),Oe=lr.get(Dn,Ve.length),Oe.init(nr),Ve.push(Oe),Ln.multiplyMatrices(nr.projectionMatrix,nr.matrixWorldInverse),$n.setFromProjectionMatrix(Ln,WebGLCoordinateSystem,nr.reversedDepth),xn=this.localClippingEnabled,An=Yn.init(this.clippingPlanes,xn),Ne=rr.get(Dn,$e.length),Ne.init(),$e.push(Ne),sr.enabled===!0&&sr.isPresenting===!0){const mr=Fe.xr.getDepthSensingMesh();mr!==null&&ii(mr,nr,-1/0,Fe.sortObjects)}ii(Dn,nr,0,Fe.sortObjects),Ne.finish(),Fe.sortObjects===!0&&Ne.sort(Cn,Sn),Hn=sr.enabled===!1||sr.isPresenting===!1||sr.hasDepthSensing()===!1,Hn&&Fn.addToRenderList(Ne,Dn),this.info.render.frame++,An===!0&&Yn.beginShadows();const Kn=Oe.state.shadowsArray;if(er.render(Kn,Dn,nr),An===!0&&Yn.endShadows(),this.info.autoReset===!0&&this.info.reset(),(Vn&&Ue.hasRenderPass())===!1){const mr=Ne.opaque,br=Ne.transmissive;if(Oe.setupLights(),nr.isArrayCamera){const Er=nr.cameras;if(br.length>0)for(let xr=0,Nr=Er.length;xr0&&li(mr,br,Dn,nr),Hn&&Fn.render(Dn),si(Ne,Dn,nr)}Et!==null&&qe===0&&(Bn.updateMultisampleRenderTarget(Et),Bn.updateRenderTargetMipmap(Et)),Vn&&Ue.end(Fe),Dn.isScene===!0&&Dn.onAfterRender(Fe,Dn,nr),yr.resetDefaultState(),kt=-1,At=null,Ve.pop(),Ve.length>0?(Oe=Ve[Ve.length-1],An===!0&&Yn.setGlobalState(Fe.clippingPlanes,Oe.state.camera)):Oe=null,$e.pop(),$e.length>0?Ne=$e[$e.length-1]:Ne=null};function ii(Dn,nr,ur,Vn){if(Dn.visible===!1)return;if(Dn.layers.test(nr.layers)){if(Dn.isGroup)ur=Dn.renderOrder;else if(Dn.isLOD)Dn.autoUpdate===!0&&Dn.update(nr);else if(Dn.isLight)Oe.pushLight(Dn),Dn.castShadow&&Oe.pushShadow(Dn);else if(Dn.isSprite){if(!Dn.frustumCulled||$n.intersectsSprite(Dn)){Vn&&Pn.setFromMatrixPosition(Dn.matrixWorld).applyMatrix4(Ln);const mr=hr.update(Dn),br=Dn.material;br.visible&&Ne.push(Dn,mr,br,ur,Pn.z,null)}}else if((Dn.isMesh||Dn.isLine||Dn.isPoints)&&(!Dn.frustumCulled||$n.intersectsObject(Dn))){const mr=hr.update(Dn),br=Dn.material;if(Vn&&(Dn.boundingSphere!==void 0?(Dn.boundingSphere===null&&Dn.computeBoundingSphere(),Pn.copy(Dn.boundingSphere.center)):(mr.boundingSphere===null&&mr.computeBoundingSphere(),Pn.copy(mr.boundingSphere.center)),Pn.applyMatrix4(Dn.matrixWorld).applyMatrix4(Ln)),Array.isArray(br)){const Er=mr.groups;for(let xr=0,Nr=Er.length;xr0&&ni(Kn,nr,ur),dr.length>0&&ni(dr,nr,ur),mr.length>0&&ni(mr,nr,ur),Gn.buffers.depth.setTest(!0),Gn.buffers.depth.setMask(!0),Gn.buffers.color.setMask(!0),Gn.setPolygonOffset(!1)}function li(Dn,nr,ur,Vn){if((ur.isScene===!0?ur.overrideMaterial:null)!==null)return;if(Oe.state.transmissionRenderTarget[Vn.id]===void 0){const $r=Qn.has("EXT_color_buffer_half_float")||Qn.has("EXT_color_buffer_float");Oe.state.transmissionRenderTarget[Vn.id]=new WebGLRenderTarget(1,1,{generateMipmaps:!0,type:$r?HalfFloatType:UnsignedByteType,minFilter:LinearMipmapLinearFilter,samples:Zn.samples,stencilBuffer:$,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:ColorManagement.workingColorSpace})}const dr=Oe.state.transmissionRenderTarget[Vn.id],mr=Vn.viewport||Dt;dr.setSize(mr.z*Fe.transmissionResolutionScale,mr.w*Fe.transmissionResolutionScale);const br=Fe.getRenderTarget(),Er=Fe.getActiveCubeFace(),xr=Fe.getActiveMipmapLevel();Fe.setRenderTarget(dr),Fe.getClearColor(hn),vn=Fe.getClearAlpha(),vn<1&&Fe.setClearColor(16777215,.5),Fe.clear(),Hn&&Fn.render(ur);const Nr=Fe.toneMapping;Fe.toneMapping=NoToneMapping;const Ar=Vn.viewport;if(Vn.viewport!==void 0&&(Vn.viewport=void 0),Oe.setupLightsView(Vn),An===!0&&Yn.setGlobalState(Fe.clippingPlanes,Vn),ni(Dn,ur,Vn),Bn.updateMultisampleRenderTarget(dr),Bn.updateRenderTargetMipmap(dr),Qn.has("WEBGL_multisampled_render_to_texture")===!1){let $r=!1;for(let Ir=0,Vr=nr.length;Ir0),Ar=!!ur.morphAttributes.position,$r=!!ur.morphAttributes.normal,Ir=!!ur.morphAttributes.color;let Vr=NoToneMapping;Vn.toneMapped&&(Et===null||Et.isXRRenderTarget===!0)&&(Vr=Fe.toneMapping);const Fr=ur.morphAttributes.position||ur.morphAttributes.normal||ur.morphAttributes.color,Or=Fr!==void 0?Fr.length:0,kr=Mn.get(Vn),Lr=Oe.state.lights;if(An===!0&&(xn===!0||Dn!==At)){const Kr=Dn===At&&Vn.id===kt;Yn.setState(Vn,Dn,Kr)}let Pr=!1;Vn.version===kr.__version?(kr.needsLights&&kr.lightsStateVersion!==Lr.state.version||kr.outputColorSpace!==br||Kn.isBatchedMesh&&kr.batching===!1||!Kn.isBatchedMesh&&kr.batching===!0||Kn.isBatchedMesh&&kr.batchingColor===!0&&Kn.colorTexture===null||Kn.isBatchedMesh&&kr.batchingColor===!1&&Kn.colorTexture!==null||Kn.isInstancedMesh&&kr.instancing===!1||!Kn.isInstancedMesh&&kr.instancing===!0||Kn.isSkinnedMesh&&kr.skinning===!1||!Kn.isSkinnedMesh&&kr.skinning===!0||Kn.isInstancedMesh&&kr.instancingColor===!0&&Kn.instanceColor===null||Kn.isInstancedMesh&&kr.instancingColor===!1&&Kn.instanceColor!==null||Kn.isInstancedMesh&&kr.instancingMorph===!0&&Kn.morphTexture===null||Kn.isInstancedMesh&&kr.instancingMorph===!1&&Kn.morphTexture!==null||kr.envMap!==Er||Vn.fog===!0&&kr.fog!==dr||kr.numClippingPlanes!==void 0&&(kr.numClippingPlanes!==Yn.numPlanes||kr.numIntersection!==Yn.numIntersection)||kr.vertexAlphas!==xr||kr.vertexTangents!==Nr||kr.morphTargets!==Ar||kr.morphNormals!==$r||kr.morphColors!==Ir||kr.toneMapping!==Vr||kr.morphTargetsCount!==Or)&&(Pr=!0):(Pr=!0,kr.__version=Vn.version);let qr=kr.currentProgram;Pr===!0&&(qr=Jr(Vn,nr,Kn));let ui=!1,Zr=!1,fi=!1;const Br=qr.getUniforms(),Yr=kr.uniforms;if(Gn.useProgram(qr.program)&&(ui=!0,Zr=!0,fi=!0),Vn.id!==kt&&(kt=Vn.id,Zr=!0),ui||At!==Dn){Gn.buffers.depth.getReversed()&&Dn.reversedDepth!==!0&&(Dn._reversedDepth=!0,Dn.updateProjectionMatrix()),Br.setValue(In,"projectionMatrix",Dn.projectionMatrix),Br.setValue(In,"viewMatrix",Dn.matrixWorldInverse);const Xr=Br.map.cameraPosition;Xr!==void 0&&Xr.setValue(In,Nn.setFromMatrixPosition(Dn.matrixWorld)),Zn.logarithmicDepthBuffer&&Br.setValue(In,"logDepthBufFC",2/(Math.log(Dn.far+1)/Math.LN2)),(Vn.isMeshPhongMaterial||Vn.isMeshToonMaterial||Vn.isMeshLambertMaterial||Vn.isMeshBasicMaterial||Vn.isMeshStandardMaterial||Vn.isShaderMaterial)&&Br.setValue(In,"isOrthographic",Dn.isOrthographicCamera===!0),At!==Dn&&(At=Dn,Zr=!0,fi=!0)}if(kr.needsLights&&(Lr.state.directionalShadowMap.length>0&&Br.setValue(In,"directionalShadowMap",Lr.state.directionalShadowMap,Bn),Lr.state.spotShadowMap.length>0&&Br.setValue(In,"spotShadowMap",Lr.state.spotShadowMap,Bn),Lr.state.pointShadowMap.length>0&&Br.setValue(In,"pointShadowMap",Lr.state.pointShadowMap,Bn)),Kn.isSkinnedMesh){Br.setOptional(In,Kn,"bindMatrix"),Br.setOptional(In,Kn,"bindMatrixInverse");const Kr=Kn.skeleton;Kr&&(Kr.boneTexture===null&&Kr.computeBoneTexture(),Br.setValue(In,"boneTexture",Kr.boneTexture,Bn))}Kn.isBatchedMesh&&(Br.setOptional(In,Kn,"batchingTexture"),Br.setValue(In,"batchingTexture",Kn._matricesTexture,Bn),Br.setOptional(In,Kn,"batchingIdTexture"),Br.setValue(In,"batchingIdTexture",Kn._indirectTexture,Bn),Br.setOptional(In,Kn,"batchingColorTexture"),Kn._colorsTexture!==null&&Br.setValue(In,"batchingColorTexture",Kn._colorsTexture,Bn));const ei=ur.morphAttributes;if((ei.position!==void 0||ei.normal!==void 0||ei.color!==void 0)&&cr.update(Kn,ur,qr),(Zr||kr.receiveShadow!==Kn.receiveShadow)&&(kr.receiveShadow=Kn.receiveShadow,Br.setValue(In,"receiveShadow",Kn.receiveShadow)),Vn.isMeshGouraudMaterial&&Vn.envMap!==null&&(Yr.envMap.value=Er,Yr.flipEnvMap.value=Er.isCubeTexture&&Er.isRenderTargetTexture===!1?-1:1),Vn.isMeshStandardMaterial&&Vn.envMap===null&&nr.environment!==null&&(Yr.envMapIntensity.value=nr.environmentIntensity),Yr.dfgLUT!==void 0&&(Yr.dfgLUT.value=getDFGLUT()),Zr&&(Br.setValue(In,"toneMappingExposure",Fe.toneMappingExposure),kr.needsLights&&Rr(Yr,fi),dr&&Vn.fog===!0&&pr.refreshFogUniforms(Yr,dr),pr.refreshMaterialUniforms(Yr,Vn,bn,wn,Oe.state.transmissionRenderTarget[Dn.id]),WebGLUniforms.upload(In,ar(kr),Yr,Bn)),Vn.isShaderMaterial&&Vn.uniformsNeedUpdate===!0&&(WebGLUniforms.upload(In,ar(kr),Yr,Bn),Vn.uniformsNeedUpdate=!1),Vn.isSpriteMaterial&&Br.setValue(In,"center",Kn.center),Br.setValue(In,"modelViewMatrix",Kn.modelViewMatrix),Br.setValue(In,"normalMatrix",Kn.normalMatrix),Br.setValue(In,"modelMatrix",Kn.matrixWorld),Vn.isShaderMaterial||Vn.isRawShaderMaterial){const Kr=Vn.uniformsGroups;for(let Xr=0,pi=Kr.length;Xr0&&Bn.useMultisampledRTT(Dn)===!1?Vn=Mn.get(Dn).__webglMultisampledFramebuffer:Array.isArray(xr)?Vn=xr[ur]:Vn=xr,Dt.copy(Dn.viewport),Lt.copy(Dn.scissor),jt=Dn.scissorTest}else Dt.copy(Tn).multiplyScalar(bn).floor(),Lt.copy(En).multiplyScalar(bn).floor(),jt=kn;if(ur!==0&&(Vn=Gr),Gn.bindFramebuffer(In.FRAMEBUFFER,Vn)&&Gn.drawBuffers(Dn,Vn),Gn.viewport(Dt),Gn.scissor(Lt),Gn.setScissorTest(jt),Kn){const br=Mn.get(Dn.texture);In.framebufferTexture2D(In.FRAMEBUFFER,In.COLOR_ATTACHMENT0,In.TEXTURE_CUBE_MAP_POSITIVE_X+nr,br.__webglTexture,ur)}else if(dr){const br=nr;for(let Er=0;Er=0&&nr<=Dn.width-Vn&&ur>=0&&ur<=Dn.height-Kn&&(Dn.textures.length>1&&In.readBuffer(In.COLOR_ATTACHMENT0+br),In.readPixels(nr,ur,Vn,Kn,vr.convert(Nr),vr.convert(Ar),dr))}finally{const xr=Et!==null?Mn.get(Et).__webglFramebuffer:null;Gn.bindFramebuffer(In.FRAMEBUFFER,xr)}}},this.readRenderTargetPixelsAsync=async function(Dn,nr,ur,Vn,Kn,dr,mr,br=0){if(!(Dn&&Dn.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let Er=Mn.get(Dn).__webglFramebuffer;if(Dn.isWebGLCubeRenderTarget&&mr!==void 0&&(Er=Er[mr]),Er)if(nr>=0&&nr<=Dn.width-Vn&&ur>=0&&ur<=Dn.height-Kn){Gn.bindFramebuffer(In.FRAMEBUFFER,Er);const xr=Dn.textures[br],Nr=xr.format,Ar=xr.type;if(!Zn.textureFormatReadable(Nr))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!Zn.textureTypeReadable(Ar))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");const $r=In.createBuffer();In.bindBuffer(In.PIXEL_PACK_BUFFER,$r),In.bufferData(In.PIXEL_PACK_BUFFER,dr.byteLength,In.STREAM_READ),Dn.textures.length>1&&In.readBuffer(In.COLOR_ATTACHMENT0+br),In.readPixels(nr,ur,Vn,Kn,vr.convert(Nr),vr.convert(Ar),0);const Ir=Et!==null?Mn.get(Et).__webglFramebuffer:null;Gn.bindFramebuffer(In.FRAMEBUFFER,Ir);const Vr=In.fenceSync(In.SYNC_GPU_COMMANDS_COMPLETE,0);return In.flush(),await probeAsync(In,Vr,4),In.bindBuffer(In.PIXEL_PACK_BUFFER,$r),In.getBufferSubData(In.PIXEL_PACK_BUFFER,0,dr),In.deleteBuffer($r),In.deleteSync(Vr),dr}else throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.")},this.copyFramebufferToTexture=function(Dn,nr=null,ur=0){const Vn=Math.pow(2,-ur),Kn=Math.floor(Dn.image.width*Vn),dr=Math.floor(Dn.image.height*Vn),mr=nr!==null?nr.x:0,br=nr!==null?nr.y:0;Bn.setTexture2D(Dn,0),In.copyTexSubImage2D(In.TEXTURE_2D,ur,0,0,mr,br,Kn,dr),Gn.unbindTexture()};const Hr=In.createFramebuffer(),Qr=In.createFramebuffer();this.copyTextureToTexture=function(Dn,nr,ur=null,Vn=null,Kn=0,dr=null){dr===null&&(Kn!==0?(warnOnce("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."),dr=Kn,Kn=0):dr=0);let mr,br,Er,xr,Nr,Ar,$r,Ir,Vr;const Fr=Dn.isCompressedTexture?Dn.mipmaps[dr]:Dn.image;if(ur!==null)mr=ur.max.x-ur.min.x,br=ur.max.y-ur.min.y,Er=ur.isBox3?ur.max.z-ur.min.z:1,xr=ur.min.x,Nr=ur.min.y,Ar=ur.isBox3?ur.min.z:0;else{const ei=Math.pow(2,-Kn);mr=Math.floor(Fr.width*ei),br=Math.floor(Fr.height*ei),Dn.isDataArrayTexture?Er=Fr.depth:Dn.isData3DTexture?Er=Math.floor(Fr.depth*ei):Er=1,xr=0,Nr=0,Ar=0}Vn!==null?($r=Vn.x,Ir=Vn.y,Vr=Vn.z):($r=0,Ir=0,Vr=0);const Or=vr.convert(nr.format),kr=vr.convert(nr.type);let Lr;nr.isData3DTexture?(Bn.setTexture3D(nr,0),Lr=In.TEXTURE_3D):nr.isDataArrayTexture||nr.isCompressedArrayTexture?(Bn.setTexture2DArray(nr,0),Lr=In.TEXTURE_2D_ARRAY):(Bn.setTexture2D(nr,0),Lr=In.TEXTURE_2D),In.pixelStorei(In.UNPACK_FLIP_Y_WEBGL,nr.flipY),In.pixelStorei(In.UNPACK_PREMULTIPLY_ALPHA_WEBGL,nr.premultiplyAlpha),In.pixelStorei(In.UNPACK_ALIGNMENT,nr.unpackAlignment);const Pr=In.getParameter(In.UNPACK_ROW_LENGTH),qr=In.getParameter(In.UNPACK_IMAGE_HEIGHT),ui=In.getParameter(In.UNPACK_SKIP_PIXELS),Zr=In.getParameter(In.UNPACK_SKIP_ROWS),fi=In.getParameter(In.UNPACK_SKIP_IMAGES);In.pixelStorei(In.UNPACK_ROW_LENGTH,Fr.width),In.pixelStorei(In.UNPACK_IMAGE_HEIGHT,Fr.height),In.pixelStorei(In.UNPACK_SKIP_PIXELS,xr),In.pixelStorei(In.UNPACK_SKIP_ROWS,Nr),In.pixelStorei(In.UNPACK_SKIP_IMAGES,Ar);const Br=Dn.isDataArrayTexture||Dn.isData3DTexture,Yr=nr.isDataArrayTexture||nr.isData3DTexture;if(Dn.isDepthTexture){const ei=Mn.get(Dn),Kr=Mn.get(nr),Xr=Mn.get(ei.__renderTarget),pi=Mn.get(Kr.__renderTarget);Gn.bindFramebuffer(In.READ_FRAMEBUFFER,Xr.__webglFramebuffer),Gn.bindFramebuffer(In.DRAW_FRAMEBUFFER,pi.__webglFramebuffer);for(let oi=0;oiMath.PI&&(i-=_twoPI),g<-Math.PI?g+=_twoPI:g>Math.PI&&(g-=_twoPI),i<=g?this._spherical.theta=Math.max(i,Math.min(g,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(i+g)/2?Math.max(i,this._spherical.theta):Math.min(g,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let $=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const V=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),$=V!=this._spherical.radius}if(_v.setFromSpherical(this._spherical),_v.applyQuaternion(this._quatInverse),r.copy(this.target).add(_v),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let V=null;if(this.object.isPerspectiveCamera){const re=_v.length();V=this._clampDistance(re*this._scale);const ie=re-V;this.object.position.addScaledVector(this._dollyDirection,ie),this.object.updateMatrixWorld(),$=!!ie}else if(this.object.isOrthographicCamera){const re=new Vector3(this._mouse.x,this._mouse.y,0);re.unproject(this.object);const ie=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),$=ie!==this.object.zoom;const ae=new Vector3(this._mouse.x,this._mouse.y,0);ae.unproject(this.object),this.object.position.sub(ae).add(re),this.object.updateMatrixWorld(),V=_v.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;V!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(V).add(this.object.position):(_ray.origin.copy(this.object.position),_ray.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(_ray.direction))<_TILT_LIMIT?this.object.lookAt(this.target):(_plane.setFromNormalAndCoplanarPoint(this.object.up,this.target),_ray.intersectPlane(_plane,this.target))))}else if(this.object.isOrthographicCamera){const V=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),V!==this.object.zoom&&(this.object.updateProjectionMatrix(),$=!0)}return this._scale=1,this._performCursorZoom=!1,$||this._lastPosition.distanceToSquared(this.object.position)>_EPS||8*(1-this._lastQuaternion.dot(this.object.quaternion))>_EPS||this._lastTargetPosition.distanceToSquared(this.target)>_EPS?(this.dispatchEvent(_changeEvent),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(t){return t!==null?_twoPI/60*this.autoRotateSpeed*t:_twoPI/60/60*this.autoRotateSpeed}_getZoomScale(t){const r=Math.abs(t*.01);return Math.pow(.95,this.zoomSpeed*r)}_rotateLeft(t){this._sphericalDelta.theta-=t}_rotateUp(t){this._sphericalDelta.phi-=t}_panLeft(t,r){_v.setFromMatrixColumn(r,0),_v.multiplyScalar(-t),this._panOffset.add(_v)}_panUp(t,r){this.screenSpacePanning===!0?_v.setFromMatrixColumn(r,1):(_v.setFromMatrixColumn(r,0),_v.crossVectors(this.object.up,_v)),_v.multiplyScalar(t),this._panOffset.add(_v)}_pan(t,r){const i=this.domElement;if(this.object.isPerspectiveCamera){const g=this.object.position;_v.copy(g).sub(this.target);let $=_v.length();$*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*t*$/i.clientHeight,this.object.matrix),this._panUp(2*r*$/i.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(t*(this.object.right-this.object.left)/this.object.zoom/i.clientWidth,this.object.matrix),this._panUp(r*(this.object.top-this.object.bottom)/this.object.zoom/i.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(t,r){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const i=this.domElement.getBoundingClientRect(),g=t-i.left,$=r-i.top,V=i.width,re=i.height;this._mouse.x=g/V*2-1,this._mouse.y=-($/re)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(t){return Math.max(this.minDistance,Math.min(this.maxDistance,t))}_handleMouseDownRotate(t){this._rotateStart.set(t.clientX,t.clientY)}_handleMouseDownDolly(t){this._updateZoomParameters(t.clientX,t.clientX),this._dollyStart.set(t.clientX,t.clientY)}_handleMouseDownPan(t){this._panStart.set(t.clientX,t.clientY)}_handleMouseMoveRotate(t){this._rotateEnd.set(t.clientX,t.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const r=this.domElement;this._rotateLeft(_twoPI*this._rotateDelta.x/r.clientHeight),this._rotateUp(_twoPI*this._rotateDelta.y/r.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(t){this._dollyEnd.set(t.clientX,t.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(t){this._panEnd.set(t.clientX,t.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(t){this._updateZoomParameters(t.clientX,t.clientY),t.deltaY<0?this._dollyIn(this._getZoomScale(t.deltaY)):t.deltaY>0&&this._dollyOut(this._getZoomScale(t.deltaY)),this.update()}_handleKeyDown(t){let r=!1;switch(t.code){case this.keys.UP:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(_twoPI*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),r=!0;break;case this.keys.BOTTOM:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(-_twoPI*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),r=!0;break;case this.keys.LEFT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(_twoPI*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),r=!0;break;case this.keys.RIGHT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(-_twoPI*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),r=!0;break}r&&(t.preventDefault(),this.update())}_handleTouchStartRotate(t){if(this._pointers.length===1)this._rotateStart.set(t.pageX,t.pageY);else{const r=this._getSecondPointerPosition(t),i=.5*(t.pageX+r.x),g=.5*(t.pageY+r.y);this._rotateStart.set(i,g)}}_handleTouchStartPan(t){if(this._pointers.length===1)this._panStart.set(t.pageX,t.pageY);else{const r=this._getSecondPointerPosition(t),i=.5*(t.pageX+r.x),g=.5*(t.pageY+r.y);this._panStart.set(i,g)}}_handleTouchStartDolly(t){const r=this._getSecondPointerPosition(t),i=t.pageX-r.x,g=t.pageY-r.y,$=Math.sqrt(i*i+g*g);this._dollyStart.set(0,$)}_handleTouchStartDollyPan(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enablePan&&this._handleTouchStartPan(t)}_handleTouchStartDollyRotate(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enableRotate&&this._handleTouchStartRotate(t)}_handleTouchMoveRotate(t){if(this._pointers.length==1)this._rotateEnd.set(t.pageX,t.pageY);else{const i=this._getSecondPointerPosition(t),g=.5*(t.pageX+i.x),$=.5*(t.pageY+i.y);this._rotateEnd.set(g,$)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const r=this.domElement;this._rotateLeft(_twoPI*this._rotateDelta.x/r.clientHeight),this._rotateUp(_twoPI*this._rotateDelta.y/r.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(t){if(this._pointers.length===1)this._panEnd.set(t.pageX,t.pageY);else{const r=this._getSecondPointerPosition(t),i=.5*(t.pageX+r.x),g=.5*(t.pageY+r.y);this._panEnd.set(i,g)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(t){const r=this._getSecondPointerPosition(t),i=t.pageX-r.x,g=t.pageY-r.y,$=Math.sqrt(i*i+g*g);this._dollyEnd.set(0,$),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const V=(t.pageX+r.x)*.5,re=(t.pageY+r.y)*.5;this._updateZoomParameters(V,re)}_handleTouchMoveDollyPan(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enablePan&&this._handleTouchMovePan(t)}_handleTouchMoveDollyRotate(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enableRotate&&this._handleTouchMoveRotate(t)}_addPointer(t){this._pointers.push(t.pointerId)}_removePointer(t){delete this._pointerPositions[t.pointerId];for(let r=0;r1e4?1e4:n,{In:function(t){return Math.pow(t,n)},Out:function(t){return 1-Math.pow(1-t,n)},InOut:function(t){return t<.5?Math.pow(t*2,n)/2:(1-Math.pow(2-t*2,n))/2+.5}}}}),now=function(){return performance.now()},Group$4=function(){function n(){for(var t=[],r=0;r0;){this._tweensAddedDuringUpdate={};for(var g=0;g1?$(n[r],n[r-1],r-i):$(n[g],n[g+1>r?r:g+1],i-g)},Bezier:function(n,t){for(var r=0,i=n.length-1,g=Math.pow,$=Interpolation.Utils.Bernstein,V=0;V<=i;V++)r+=g(1-t,i-V)*g(t,V)*n[V]*$(i,V);return r},CatmullRom:function(n,t){var r=n.length-1,i=r*t,g=Math.floor(i),$=Interpolation.Utils.CatmullRom;return n[0]===n[r]?(t<0&&(g=Math.floor(i=r*(1+t))),$(n[(g-1+r)%r],n[g],n[(g+1)%r],n[(g+2)%r],i-g)):t<0?n[0]-($(n[0],n[0],n[1],n[1],-i)-n[0]):t>1?n[r]-($(n[r],n[r],n[r-1],n[r-1],i-r)-n[r]):$(n[g?g-1:0],n[g],n[r1;i--)r*=i;return n[t]=r,r}}(),CatmullRom:function(n,t,r,i,g){var $=(r-n)*.5,V=(i-t)*.5,re=g*g,ie=g*re;return(2*t-2*r+$+V)*ie+(-3*t+3*r-2*$-V)*re+$*g+t}}},Sequence=function(){function n(){}return n.nextId=function(){return n._nextId++},n._nextId=0,n}(),mainGroup=new Group$4,Tween$1=function(){function n(t,r){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=Easing.Linear.None,this._interpolationFunction=Interpolation.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=Sequence.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=t,typeof r=="object"?(this._group=r,r.add(this)):r===!0&&(this._group=mainGroup,mainGroup.add(this))}return n.prototype.getId=function(){return this._id},n.prototype.isPlaying=function(){return this._isPlaying},n.prototype.isPaused=function(){return this._isPaused},n.prototype.getDuration=function(){return this._duration},n.prototype.to=function(t,r){if(r===void 0&&(r=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=t,this._propertiesAreSetUp=!1,this._duration=r<0?0:r,this},n.prototype.duration=function(t){return t===void 0&&(t=1e3),this._duration=t<0?0:t,this},n.prototype.dynamic=function(t){return t===void 0&&(t=!1),this._isDynamic=t,this},n.prototype.start=function(t,r){if(t===void 0&&(t=now()),r===void 0&&(r=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var i in this._valuesStartRepeat)this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,!this._propertiesAreSetUp||r){if(this._propertiesAreSetUp=!0,!this._isDynamic){var g={};for(var $ in this._valuesEnd)g[$]=this._valuesEnd[$];this._valuesEnd=g}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,r)}return this},n.prototype.startFromCurrentValues=function(t){return this.start(t,!0)},n.prototype._setupProperties=function(t,r,i,g,$){for(var V in i){var re=t[V],ie=Array.isArray(re),ae=ie?"array":typeof re,oe=!ie&&Array.isArray(i[V]);if(!(ae==="undefined"||ae==="function")){if(oe){var le=i[V];if(le.length===0)continue;for(var ue=[re],de=0,he=le.length;de"u"||$)&&(r[V]=re),ie||(r[V]*=1),oe?g[V]=i[V].slice().reverse():g[V]=r[V]||0}}},n.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},n.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},n.prototype.pause=function(t){return t===void 0&&(t=now()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=t,this)},n.prototype.resume=function(t){return t===void 0&&(t=now()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStart,this._pauseStart=0,this)},n.prototype.stopChainedTweens=function(){for(var t=0,r=this._chainedTweens.length;tie)return 1;var pe=Math.trunc(V/re),_e=V-pe*re,Ce=Math.min(_e/i._duration,1);return Ce===0&&V===i._duration?1:Ce},oe=ae(),le=this._easingFunction(oe);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,le),this._onUpdateCallback&&this._onUpdateCallback(this._object,oe),this._duration===0||V>=this._duration)if(this._repeat>0){var ue=Math.min(Math.trunc((V-this._duration)/re)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=ue);for($ in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[$]=="string"&&(this._valuesStartRepeat[$]=this._valuesStartRepeat[$]+parseFloat(this._valuesEnd[$])),this._yoyo&&this._swapEndStartRepeatValues($),this._valuesStart[$]=this._valuesStartRepeat[$];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=re*ue,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var de=0,he=this._chainedTweens.length;de=2.0 are supported."));return}const ae=new GLTFParser($,{path:r||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});ae.fileLoader.setRequestHeader(this.requestHeader);for(let oe=0;oe=0&&re[le]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+le+'".')}}ae.setExtensions(V),ae.setPlugins(re),ae.parse(i,g)}parseAsync(t,r){const i=this;return new Promise(function(g,$){i.parse(t,r,g,$)})}}function GLTFRegistry(){let n={};return{get:function(t){return n[t]},add:function(t,r){n[t]=r},remove:function(t){delete n[t]},removeAll:function(){n={}}}}const EXTENSIONS={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_DISPERSION:"KHR_materials_dispersion",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class GLTFLightsExtension{constructor(t){this.parser=t,this.name=EXTENSIONS.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const t=this.parser,r=this.parser.json.nodes||[];for(let i=0,g=r.length;i=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return r.loadTextureImage(t,$.source,V)}}class GLTFTextureWebPExtension{constructor(t){this.parser=t,this.name=EXTENSIONS.EXT_TEXTURE_WEBP}loadTexture(t){const r=this.name,i=this.parser,g=i.json,$=g.textures[t];if(!$.extensions||!$.extensions[r])return null;const V=$.extensions[r],re=g.images[V.source];let ie=i.textureLoader;if(re.uri){const ae=i.options.manager.getHandler(re.uri);ae!==null&&(ie=ae)}return i.loadTextureImage(t,V.source,ie)}}class GLTFTextureAVIFExtension{constructor(t){this.parser=t,this.name=EXTENSIONS.EXT_TEXTURE_AVIF}loadTexture(t){const r=this.name,i=this.parser,g=i.json,$=g.textures[t];if(!$.extensions||!$.extensions[r])return null;const V=$.extensions[r],re=g.images[V.source];let ie=i.textureLoader;if(re.uri){const ae=i.options.manager.getHandler(re.uri);ae!==null&&(ie=ae)}return i.loadTextureImage(t,V.source,ie)}}class GLTFMeshoptCompression{constructor(t){this.name=EXTENSIONS.EXT_MESHOPT_COMPRESSION,this.parser=t}loadBufferView(t){const r=this.parser.json,i=r.bufferViews[t];if(i.extensions&&i.extensions[this.name]){const g=i.extensions[this.name],$=this.parser.getDependency("buffer",g.buffer),V=this.parser.options.meshoptDecoder;if(!V||!V.supported){if(r.extensionsRequired&&r.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return $.then(function(re){const ie=g.byteOffset||0,ae=g.byteLength||0,oe=g.count,le=g.byteStride,ue=new Uint8Array(re,ie,ae);return V.decodeGltfBufferAsync?V.decodeGltfBufferAsync(oe,le,ue,g.mode,g.filter).then(function(de){return de.buffer}):V.ready.then(function(){const de=new ArrayBuffer(oe*le);return V.decodeGltfBuffer(new Uint8Array(de),oe,le,ue,g.mode,g.filter),de})})}else return null}}class GLTFMeshGpuInstancing{constructor(t){this.name=EXTENSIONS.EXT_MESH_GPU_INSTANCING,this.parser=t}createNodeMesh(t){const r=this.parser.json,i=r.nodes[t];if(!i.extensions||!i.extensions[this.name]||i.mesh===void 0)return null;const g=r.meshes[i.mesh];for(const ae of g.primitives)if(ae.mode!==WEBGL_CONSTANTS.TRIANGLES&&ae.mode!==WEBGL_CONSTANTS.TRIANGLE_STRIP&&ae.mode!==WEBGL_CONSTANTS.TRIANGLE_FAN&&ae.mode!==void 0)return null;const V=i.extensions[this.name].attributes,re=[],ie={};for(const ae in V)re.push(this.parser.getDependency("accessor",V[ae]).then(oe=>(ie[ae]=oe,ie[ae])));return re.length<1?null:(re.push(this.parser.createNodeMesh(t)),Promise.all(re).then(ae=>{const oe=ae.pop(),le=oe.isGroup?oe.children:[oe],ue=ae[0].count,de=[];for(const he of le){const pe=new Matrix4,_e=new Vector3,Ce=new Quaternion,xe=new Vector3(1,1,1),Ie=new InstancedMesh(he.geometry,he.material,ue);for(let Ne=0;Ne0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":n.search(/\.ktx2($|\?)/i)>0||n.search(/^data\:image\/ktx2/)===0?"image/ktx2":"image/png"}const _identityMatrix=new Matrix4;class GLTFParser{constructor(t={},r={}){this.json=t,this.extensions={},this.plugins={},this.options=r,this.cache=new GLTFRegistry,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let i=!1,g=-1,$=!1,V=-1;if(typeof navigator<"u"){const re=navigator.userAgent;i=/^((?!chrome|android).)*safari/i.test(re)===!0;const ie=re.match(/Version\/(\d+)/);g=i&&ie?parseInt(ie[1],10):-1,$=re.indexOf("Firefox")>-1,V=$?re.match(/Firefox\/([0-9]+)\./)[1]:-1}typeof createImageBitmap>"u"||i&&g<17||$&&V<98?this.textureLoader=new TextureLoader(this.options.manager):this.textureLoader=new ImageBitmapLoader(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new FileLoader(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(t){this.extensions=t}setPlugins(t){this.plugins=t}parse(t,r){const i=this,g=this.json,$=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(V){return V._markDefs&&V._markDefs()}),Promise.all(this._invokeAll(function(V){return V.beforeRoot&&V.beforeRoot()})).then(function(){return Promise.all([i.getDependencies("scene"),i.getDependencies("animation"),i.getDependencies("camera")])}).then(function(V){const re={scene:V[0][g.scene||0],scenes:V[0],animations:V[1],cameras:V[2],asset:g.asset,parser:i,userData:{}};return addUnknownExtensionsToUserData($,re,g),assignExtrasToUserData(re,g),Promise.all(i._invokeAll(function(ie){return ie.afterRoot&&ie.afterRoot(re)})).then(function(){for(const ie of re.scenes)ie.updateMatrixWorld();t(re)})}).catch(r)}_markDefs(){const t=this.json.nodes||[],r=this.json.skins||[],i=this.json.meshes||[];for(let g=0,$=r.length;g<$;g++){const V=r[g].joints;for(let re=0,ie=V.length;re{const ie=this.associations.get(V);ie!=null&&this.associations.set(re,ie);for(const[ae,oe]of V.children.entries())$(oe,re.children[ae])};return $(i,g),g.name+="_instance_"+t.uses[r]++,g}_invokeOne(t){const r=Object.values(this.plugins);r.push(this);for(let i=0;i=2&&_e.setY(Fe,$e[Ve*ie+1]),ie>=3&&_e.setZ(Fe,$e[Ve*ie+2]),ie>=4&&_e.setW(Fe,$e[Ve*ie+3]),ie>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}_e.normalized=he}return _e})}loadTexture(t){const r=this.json,i=this.options,$=r.textures[t].source,V=r.images[$];let re=this.textureLoader;if(V.uri){const ie=i.manager.getHandler(V.uri);ie!==null&&(re=ie)}return this.loadTextureImage(t,$,re)}loadTextureImage(t,r,i){const g=this,$=this.json,V=$.textures[t],re=$.images[r],ie=(re.uri||re.bufferView)+":"+V.sampler;if(this.textureCache[ie])return this.textureCache[ie];const ae=this.loadImageSource(r,i).then(function(oe){oe.flipY=!1,oe.name=V.name||re.name||"",oe.name===""&&typeof re.uri=="string"&&re.uri.startsWith("data:image/")===!1&&(oe.name=re.uri);const ue=($.samplers||{})[V.sampler]||{};return oe.magFilter=WEBGL_FILTERS[ue.magFilter]||LinearFilter,oe.minFilter=WEBGL_FILTERS[ue.minFilter]||LinearMipmapLinearFilter,oe.wrapS=WEBGL_WRAPPINGS[ue.wrapS]||RepeatWrapping,oe.wrapT=WEBGL_WRAPPINGS[ue.wrapT]||RepeatWrapping,oe.generateMipmaps=!oe.isCompressedTexture&&oe.minFilter!==NearestFilter&&oe.minFilter!==LinearFilter,g.associations.set(oe,{textures:t}),oe}).catch(function(){return null});return this.textureCache[ie]=ae,ae}loadImageSource(t,r){const i=this,g=this.json,$=this.options;if(this.sourceCache[t]!==void 0)return this.sourceCache[t].then(le=>le.clone());const V=g.images[t],re=self.URL||self.webkitURL;let ie=V.uri||"",ae=!1;if(V.bufferView!==void 0)ie=i.getDependency("bufferView",V.bufferView).then(function(le){ae=!0;const ue=new Blob([le],{type:V.mimeType});return ie=re.createObjectURL(ue),ie});else if(V.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+t+" is missing URI and bufferView");const oe=Promise.resolve(ie).then(function(le){return new Promise(function(ue,de){let he=ue;r.isImageBitmapLoader===!0&&(he=function(pe){const _e=new Texture(pe);_e.needsUpdate=!0,ue(_e)}),r.load(LoaderUtils.resolveURL(le,$.path),he,void 0,de)})}).then(function(le){return ae===!0&&re.revokeObjectURL(ie),assignExtrasToUserData(le,V),le.userData.mimeType=V.mimeType||getImageURIMimeType(V.uri),le}).catch(function(le){throw console.error("THREE.GLTFLoader: Couldn't load texture",ie),le});return this.sourceCache[t]=oe,oe}assignTexture(t,r,i,g){const $=this;return this.getDependency("texture",i.index).then(function(V){if(!V)return null;if(i.texCoord!==void 0&&i.texCoord>0&&(V=V.clone(),V.channel=i.texCoord),$.extensions[EXTENSIONS.KHR_TEXTURE_TRANSFORM]){const re=i.extensions!==void 0?i.extensions[EXTENSIONS.KHR_TEXTURE_TRANSFORM]:void 0;if(re){const ie=$.associations.get(V);V=$.extensions[EXTENSIONS.KHR_TEXTURE_TRANSFORM].extendTexture(V,re),$.associations.set(V,ie)}}return g!==void 0&&(V.colorSpace=g),t[r]=V,V})}assignFinalMaterial(t){const r=t.geometry;let i=t.material;const g=r.attributes.tangent===void 0,$=r.attributes.color!==void 0,V=r.attributes.normal===void 0;if(t.isPoints){const re="PointsMaterial:"+i.uuid;let ie=this.cache.get(re);ie||(ie=new PointsMaterial,Material.prototype.copy.call(ie,i),ie.color.copy(i.color),ie.map=i.map,ie.sizeAttenuation=!1,this.cache.add(re,ie)),i=ie}else if(t.isLine){const re="LineBasicMaterial:"+i.uuid;let ie=this.cache.get(re);ie||(ie=new LineBasicMaterial,Material.prototype.copy.call(ie,i),ie.color.copy(i.color),ie.map=i.map,this.cache.add(re,ie)),i=ie}if(g||$||V){let re="ClonedMaterial:"+i.uuid+":";g&&(re+="derivative-tangents:"),$&&(re+="vertex-colors:"),V&&(re+="flat-shading:");let ie=this.cache.get(re);ie||(ie=i.clone(),$&&(ie.vertexColors=!0),V&&(ie.flatShading=!0),g&&(ie.normalScale&&(ie.normalScale.y*=-1),ie.clearcoatNormalScale&&(ie.clearcoatNormalScale.y*=-1)),this.cache.add(re,ie),this.associations.set(ie,this.associations.get(i))),i=ie}t.material=i}getMaterialType(){return MeshStandardMaterial}loadMaterial(t){const r=this,i=this.json,g=this.extensions,$=i.materials[t];let V;const re={},ie=$.extensions||{},ae=[];if(ie[EXTENSIONS.KHR_MATERIALS_UNLIT]){const le=g[EXTENSIONS.KHR_MATERIALS_UNLIT];V=le.getMaterialType(),ae.push(le.extendParams(re,$,r))}else{const le=$.pbrMetallicRoughness||{};if(re.color=new Color(1,1,1),re.opacity=1,Array.isArray(le.baseColorFactor)){const ue=le.baseColorFactor;re.color.setRGB(ue[0],ue[1],ue[2],LinearSRGBColorSpace),re.opacity=ue[3]}le.baseColorTexture!==void 0&&ae.push(r.assignTexture(re,"map",le.baseColorTexture,SRGBColorSpace)),re.metalness=le.metallicFactor!==void 0?le.metallicFactor:1,re.roughness=le.roughnessFactor!==void 0?le.roughnessFactor:1,le.metallicRoughnessTexture!==void 0&&(ae.push(r.assignTexture(re,"metalnessMap",le.metallicRoughnessTexture)),ae.push(r.assignTexture(re,"roughnessMap",le.metallicRoughnessTexture))),V=this._invokeOne(function(ue){return ue.getMaterialType&&ue.getMaterialType(t)}),ae.push(Promise.all(this._invokeAll(function(ue){return ue.extendMaterialParams&&ue.extendMaterialParams(t,re)})))}$.doubleSided===!0&&(re.side=DoubleSide);const oe=$.alphaMode||ALPHA_MODES.OPAQUE;if(oe===ALPHA_MODES.BLEND?(re.transparent=!0,re.depthWrite=!1):(re.transparent=!1,oe===ALPHA_MODES.MASK&&(re.alphaTest=$.alphaCutoff!==void 0?$.alphaCutoff:.5)),$.normalTexture!==void 0&&V!==MeshBasicMaterial&&(ae.push(r.assignTexture(re,"normalMap",$.normalTexture)),re.normalScale=new Vector2(1,1),$.normalTexture.scale!==void 0)){const le=$.normalTexture.scale;re.normalScale.set(le,le)}if($.occlusionTexture!==void 0&&V!==MeshBasicMaterial&&(ae.push(r.assignTexture(re,"aoMap",$.occlusionTexture)),$.occlusionTexture.strength!==void 0&&(re.aoMapIntensity=$.occlusionTexture.strength)),$.emissiveFactor!==void 0&&V!==MeshBasicMaterial){const le=$.emissiveFactor;re.emissive=new Color().setRGB(le[0],le[1],le[2],LinearSRGBColorSpace)}return $.emissiveTexture!==void 0&&V!==MeshBasicMaterial&&ae.push(r.assignTexture(re,"emissiveMap",$.emissiveTexture,SRGBColorSpace)),Promise.all(ae).then(function(){const le=new V(re);return $.name&&(le.name=$.name),assignExtrasToUserData(le,$),r.associations.set(le,{materials:t}),$.extensions&&addUnknownExtensionsToUserData(g,le,$),le})}createUniqueName(t){const r=PropertyBinding.sanitizeNodeName(t||"");return r in this.nodeNamesUsed?r+"_"+ ++this.nodeNamesUsed[r]:(this.nodeNamesUsed[r]=0,r)}loadGeometries(t){const r=this,i=this.extensions,g=this.primitiveCache;function $(re){return i[EXTENSIONS.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(re,r).then(function(ie){return addPrimitiveAttributes(ie,re,r)})}const V=[];for(let re=0,ie=t.length;re0&&updateMorphTargets(Ce,$),Ce.name=r.createUniqueName($.name||"mesh_"+t),assignExtrasToUserData(Ce,$),_e.extensions&&addUnknownExtensionsToUserData(g,Ce,_e),r.assignFinalMaterial(Ce),le.push(Ce)}for(let de=0,he=le.length;de1?oe=new Group$5:ae.length===1?oe=ae[0]:oe=new Object3D,oe!==ae[0])for(let le=0,ue=ae.length;le1){const le=g.associations.get(oe);g.associations.set(oe,{...le})}return g.associations.get(oe).nodes=t,oe}),this.nodeCache[t]}loadScene(t){const r=this.extensions,i=this.json.scenes[t],g=this,$=new Group$5;i.name&&($.name=g.createUniqueName(i.name)),assignExtrasToUserData($,i),i.extensions&&addUnknownExtensionsToUserData(r,$,i);const V=i.nodes||[],re=[];for(let ie=0,ae=V.length;ie{const le=new Map;for(const[ue,de]of g.associations)(ue instanceof Material||ue instanceof Texture)&&le.set(ue,de);return oe.traverse(ue=>{const de=g.associations.get(ue);de!=null&&le.set(ue,de)}),le};return g.associations=ae($),$})}_createAnimationTracks(t,r,i,g,$){const V=[],re=t.name?t.name:t.uuid,ie=[];PATH_PROPERTIES[$.path]===PATH_PROPERTIES.weights?t.traverse(function(ue){ue.morphTargetInfluences&&ie.push(ue.name?ue.name:ue.uuid)}):ie.push(re);let ae;switch(PATH_PROPERTIES[$.path]){case PATH_PROPERTIES.weights:ae=NumberKeyframeTrack;break;case PATH_PROPERTIES.rotation:ae=QuaternionKeyframeTrack;break;case PATH_PROPERTIES.translation:case PATH_PROPERTIES.scale:ae=VectorKeyframeTrack;break;default:switch(i.itemSize){case 1:ae=NumberKeyframeTrack;break;case 2:case 3:default:ae=VectorKeyframeTrack;break}break}const oe=g.interpolation!==void 0?INTERPOLATION[g.interpolation]:InterpolateLinear,le=this._getArrayFromAccessor(i);for(let ue=0,de=ie.length;ue{var Et;const{x:ze,y:Pt,z:qe}=Ue;(Et=i.value)==null||Et.position.set(ze,Pt,qe)}).start(),g.value=new OrbitControls(i.value,(Fe=r.value)==null?void 0:Fe.domElement),g.value.autoRotate=!1,g.value.autoRotateSpeed=1,g.value.dampingFactor=.2,g.value.rotateSpeed=.3,g.value.enableDamping=!0,g.value.enableRotate=!0,g.value.minDistance=10,g.value.maxPolarAngle=Math.PI*.5}function de(){const Ve=t.value;r.value=new WebGLRenderer({antialias:!0,alpha:!0}),r.value.setClearColor(new Color("#212d36")),r.value.setSize(Ve.clientWidth,Ve.clientHeight),r.value.shadowMap.enabled=!0}function he(){var Ve,Ue;requestAnimationFrame(he),i.value&&((Ve=r.value)==null||Ve.render(re,i.value)),(Ue=g.value)==null||Ue.update(),exports$1.update()}function pe(Ve){let Ue=$.get(Ve);return Ue||(Ue=new TextureLoader().load("/models/"+Ve),Ue.flipY=!1,Ue.wrapS=RepeatWrapping,Ue.wrapT=RepeatWrapping,$.set(Ve,Ue)),Ue}function _e(Ve,Ue,Fe){Ue?Ve.material=new MeshBasicMaterial({map:pe(Ue.name)}):Ve.material=new MeshBasicMaterial({color:Fe})}function Ce({name:Ve}){le.style.display="block",le.curCabinet.name=Ve,le.curCabinet.temperature=Math.round(Math.random()*100);const Ue=Math.ceil(200*Math.random());le.curCabinet.capacity=Ue,le.curCabinet.count=Ue-5}function xe(){le.style.display="none"}function Ie(Ve,Ue){le.style.left=Ve,le.style.top=Ue}function Ne(Ve,Ue){const Fe=r.value.domElement,{width:ze,height:Pt}=Fe;ae.set(Ve/ze*2-1,-(Ue/Pt)*2+1),i.value&&ie.setFromCamera(ae,i.value);const qe=ie.intersectObjects(V)[0];let Et=qe?qe.object:null;oe.value&&oe.value!==Et&&oe.value.material.setValues({map:$.get("cabinet.jpg")}),Et?(Ie(Ve,Ue),Et!==oe.value&&(oe.value=Et,Et.material.setValues({map:$.get("cabinet-hover.jpg")}),Ce(Et))):oe.value&&(oe.value=null,xe())}function Oe(Ve){const Fe=t.value.getBoundingClientRect(),ze=Ve.clientX-Fe.left,Pt=Ve.clientY-Fe.top;Ne(ze,Pt)}let $e=null;return onMounted(()=>{pe("cabinet-hover.jpg"),t.value.onmousemove=Oe,new GLTFLoader().load("/models/machineRoom.gltf",Ue=>{Ue.scene.children.forEach(Fe=>{if(console.log("obj",Fe),Fe instanceof Mesh){const{map:ze,color:Pt}=Fe.material;_e(Fe,ze,Pt),Fe.name.includes("cabinet")&&V.push(Fe)}}),re.add(...Ue.scene.children)}),de(),ue(),he(),$e=new ResizeObserver(()=>{const Ue=t.value;i.value.aspect=Ue.clientWidth/Ue.clientHeight,i.value.updateProjectionMatrix(),r.value.setSize(Ue.clientWidth,Ue.clientHeight)}),$e.observe(t.value)}),onUnmounted(()=>{$e&&($e.disconnect(),$e=null)}),watchEffect(()=>{var Ve;r.value&&((Ve=t.value)==null||Ve.append(r.value.domElement))}),(Ve,Ue)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",{id:"plane",style:normalizeStyle$1({left:le.style.left+"px",top:le.style.top+"px",display:le.style.display})},[createBaseVNode("p",null,"机柜名称:"+toDisplayString(le.curCabinet.name),1),createBaseVNode("p",null,"机柜温度:"+toDisplayString(le.curCabinet.temperature)+"°",1),createBaseVNode("p",null,"使用情况:"+toDisplayString(le.curCabinet.count)+"/"+toDisplayString(le.curCabinet.capacity),1)],4),createBaseVNode("div",{ref_key:"containerRef",ref:t,class:"container"},null,512)],64))}}),vueThreeMachine_vue_vue_type_style_index_0_scoped_72cea5bb_lang="",VueThreeMachine=_export_sfc$1(_sfc_main$g,[["__scopeId","data-v-72cea5bb"]]),_taskCache=new WeakMap;class DRACOLoader extends Loader{constructor(t){super(t),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(t){return this.decoderPath=t,this}setDecoderConfig(t){return this.decoderConfig=t,this}setWorkerLimit(t){return this.workerLimit=t,this}load(t,r,i,g){const $=new FileLoader(this.manager);$.setPath(this.path),$.setResponseType("arraybuffer"),$.setRequestHeader(this.requestHeader),$.setWithCredentials(this.withCredentials),$.load(t,V=>{this.parse(V,r,g)},i,g)}parse(t,r,i=()=>{}){this.decodeDracoFile(t,r,null,null,SRGBColorSpace,i).catch(i)}decodeDracoFile(t,r,i,g,$=LinearSRGBColorSpace,V=()=>{}){const re={attributeIDs:i||this.defaultAttributeIDs,attributeTypes:g||this.defaultAttributeTypes,useUniqueIDs:!!i,vertexColorSpace:$};return this.decodeGeometry(t,re).then(r).catch(V)}decodeGeometry(t,r){const i=JSON.stringify(r);if(_taskCache.has(t)){const ie=_taskCache.get(t);if(ie.key===i)return ie.promise;if(t.byteLength===0)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let g;const $=this.workerNextTaskID++,V=t.byteLength,re=this._getWorker($,V).then(ie=>(g=ie,new Promise((ae,oe)=>{g._callbacks[$]={resolve:ae,reject:oe},g.postMessage({type:"decode",id:$,taskConfig:r,buffer:t},[t])}))).then(ie=>this._createGeometry(ie.geometry));return re.catch(()=>!0).then(()=>{g&&$&&this._releaseTask(g,$)}),_taskCache.set(t,{key:i,promise:re}),re}_createGeometry(t){const r=new BufferGeometry;t.index&&r.setIndex(new BufferAttribute(t.index.array,1));for(let i=0;i{i.load(t,g,void 0,$)})}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const t=typeof WebAssembly!="object"||this.decoderConfig.type==="js",r=[];return t?r.push(this._loadLibrary("draco_decoder.js","text")):(r.push(this._loadLibrary("draco_wasm_wrapper.js","text")),r.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(r).then(i=>{const g=i[0];t||(this.decoderConfig.wasmBinary=i[1]);const $=DRACOWorker.toString(),V=["/* draco decoder */",g,"","/* worker */",$.substring($.indexOf("{")+1,$.lastIndexOf("}"))].join(` `);this.workerSourceURL=URL.createObjectURL(new Blob([V]))}),this.decoderPending}_getWorker(t,r){return this._initDecoder().then(()=>{if(this.workerPool.length$._taskLoad?-1:1});const i=this.workerPool[this.workerPool.length-1];return i._taskCosts[t]=r,i._taskLoad+=r,i})}_releaseTask(t,r){t._taskLoad-=t._taskCosts[r],delete t._callbacks[r],delete t._taskCosts[r]}debug(){console.log("Task load: ",this.workerPool.map(t=>t._taskLoad))}dispose(){for(let t=0;t{const le=oe.draco,ue=new le.Decoder;try{const de=r(le,ue,new Int8Array(ie),ae),he=de.attributes.map(pe=>pe.array.buffer);de.index&&he.push(de.index.array.buffer),self.postMessage({type:"decode",id:re.id,geometry:de},he)}catch(de){console.error(de),self.postMessage({type:"error",id:re.id,error:de.message})}finally{le.destroy(ue)}});break}};function r(V,re,ie,ae){const oe=ae.attributeIDs,le=ae.attributeTypes;let ue,de;const he=re.GetEncodedGeometryType(ie);if(he===V.TRIANGULAR_MESH)ue=new V.Mesh,de=re.DecodeArrayToMesh(ie,ie.byteLength,ue);else if(he===V.POINT_CLOUD)ue=new V.PointCloud,de=re.DecodeArrayToPointCloud(ie,ie.byteLength,ue);else throw new Error("THREE.DRACOLoader: Unexpected geometry type.");if(!de.ok()||ue.ptr===0)throw new Error("THREE.DRACOLoader: Decoding failed: "+de.error_msg());const pe={index:null,attributes:[]};for(const _e in oe){const Ce=self[le[_e]];let xe,Ie;if(ae.useUniqueIDs)Ie=oe[_e],xe=re.GetAttributeByUniqueId(ue,Ie);else{if(Ie=re.GetAttributeId(ue,V[oe[_e]]),Ie===-1)continue;xe=re.GetAttribute(ue,Ie)}const Ne=g(V,re,ue,_e,Ce,xe);_e==="color"&&(Ne.vertexColorSpace=ae.vertexColorSpace),pe.attributes.push(Ne)}return he===V.TRIANGULAR_MESH&&(pe.index=i(V,re,ue)),V.destroy(ue),pe}function i(V,re,ie){const oe=ie.num_faces()*3,le=oe*4,ue=V._malloc(le);re.GetTrianglesUInt32Array(ie,le,ue);const de=new Uint32Array(V.HEAPF32.buffer,ue,oe).slice();return V._free(ue),{array:de,itemSize:1}}function g(V,re,ie,ae,oe,le){const ue=ie.num_points(),de=le.num_components(),he=$(V,oe),pe=de*oe.BYTES_PER_ELEMENT,_e=Math.ceil(pe/4)*4,Ce=_e/oe.BYTES_PER_ELEMENT,xe=ue*pe,Ie=ue*_e,Ne=V._malloc(xe);re.GetAttributeDataArrayForAllPoints(ie,le,he,xe,Ne);const Oe=new oe(V.HEAPF32.buffer,Ne,xe/oe.BYTES_PER_ELEMENT);let $e;if(pe===_e)$e=Oe.slice();else{$e=new oe(Ie/oe.BYTES_PER_ELEMENT);let Ve=0;for(let Ue=0,Fe=Oe.length;Ue{const Ve=t.value;Ve.appendChild(g.domElement),i.aspect=Ve.clientWidth/Ve.clientHeight,i.updateProjectionMatrix(),g.setSize(Ve.clientWidth,Ve.clientHeight),xe=new ResizeObserver(()=>{i.aspect=Ve.clientWidth/Ve.clientHeight,i.updateProjectionMatrix(),g.setSize(Ve.clientWidth,Ve.clientHeight)}),xe.observe(Ve);const Ue=new GLTFLoader,Fe=new DRACOLoader;Ue.setDRACOLoader(Fe),Ue.load("/models/pipeline/new_model.glb",qe=>{qe.scene.children.forEach(Et=>{console.log(Et.name,Et),Et.name==="平面"&&(Et.position.set(Et.position.x,Et.position.y-45,Et.position.z),Et.material=new MeshStandardMaterial({color:new Color("#FFFFFF")})),Et.children&&Et.children.length>0&&Et.traverse(kt=>{if(kt.isMesh&&pe.includes(kt.name)){const At=new Box3().setFromObject(kt),Dt=new Vector3;kt.getWorldPosition(Dt);const Lt=new Sprite(ue.clone());Lt.scale.set(scaleFactor$1,scaleFactor$1,scaleFactor$1),Lt.position.set(Dt.x*.05,(Dt.y+At.min.y/4)*.05,Dt.z*.05),r.add(Lt)}})}),qe.scene.scale.set(.05,.05,.05),r.add(qe.scene)});const ze=new Raycaster,Pt=new Vector2;g.domElement.addEventListener("mousedown",qe=>{const Et=Ve.getBoundingClientRect(),kt=qe.clientX-Et.left,At=qe.clientY-Et.top;Pt.x=kt/Ve.clientWidth*2-1,Pt.y=-(At/Ve.clientHeight)*2+1,ze.setFromCamera(Pt,i);const Dt=ze.intersectObjects(r.children,!0);if(console.log(Dt),Dt.length>0)if(console.log("点击了物体",Dt[0].object.name),pe.includes(Dt[0].object.name)&&Dt[0].object.isMesh){const Lt=Dt[0].object;_e.value&&(_e.value.material=Ce.value),_e.value=Lt,Lt.material&&(Ce.value=Array.isArray(Lt.material)?Lt.material[0].clone():Lt.material.clone()),console.log(Dt[0]),Lt.material=new MeshStandardMaterial({color:new Color("#973939")})}else _e.value&&Ce.value&&(_e.value.material=Ce.value)}),he()}),onUnmounted(()=>{xe&&(xe.disconnect(),xe=null)}),(Ve,Ue)=>(openBlock(),createElementBlock("div",{ref_key:"containerRef",ref:t,class:"container"},null,512))}}),vueThreePipeline_vue_vue_type_style_index_0_scoped_969268fd_lang="",VueThreePipeline=_export_sfc$1(_sfc_main$f,[["__scopeId","data-v-969268fd"]]),_hoisted_1$a={class:"cardInfo"},_hoisted_2$6={class:"cardHead"},_sfc_main$e=defineComponent({__name:"vue-base-card-info",props:{fontFamily:{type:String,default:"Segoe UI"},fontSize:{type:Number,default:14},headline:{type:String,default:"自定义标题"}},setup(n){useCssVars($=>({ba69330a:t.fontFamily,v7cbe2458:unref(r)}));const t=n;let r=computed({get(){return t.fontSize+"px"},set($){console.log("有人修改了fullName",$)}});function i($,V){const re=[];for(let ie=0;ie<$.length;ie+=V)re.push($.slice(ie,ie+V));return re}ref("1");let g=reactive([{id:"1",name:"1号感烟",policeType:"1"},{id:"2",name:"2号感烟",policeType:"1"},{id:"3",name:"3号感烟",policeType:"2"},{id:"4",name:"4号感烟",policeType:"1"},{id:"5",name:"5号感烟",policeType:"1"},{id:"6",name:"6号感烟",policeType:"1"},{id:"7",name:"7号感烟",policeType:"1"},{id:"8",name:"8号感烟",policeType:"1"},{id:"9",name:"9号感烟",policeType:"1"},{id:"10",name:"10号感烟",policeType:"1"},{id:"11",name:"11号感烟",policeType:"1"},{id:"12",name:"12号感烟",policeType:"3"},{id:"13",name:"13号感烟",policeType:"2"},{id:"14",name:"14号感烟",policeType:"1"},{id:"15",name:"15号感烟",policeType:"1"},{id:"16",name:"16号感烟",policeType:"3"},{id:"17",name:"17号感烟",policeType:"1"},{id:"18",name:"18号感烟",policeType:"1"},{id:"19",name:"1号声光报警器",policeType:"1"},{id:"20",name:"2号声光报警器",policeType:"1"},{id:"21",name:"1号手报",policeType:"1"},{id:"22",name:"2号手报",policeType:"2"}]);return($,V)=>{const re=resolveComponent("el-tag"),ie=resolveComponent("el-col"),ae=resolveComponent("el-row"),oe=resolveComponent("el-card");return openBlock(),createElementBlock("div",_hoisted_1$a,[createVNode$1(oe,{shadow:"card"},{default:withCtx(()=>[createBaseVNode("h2",_hoisted_2$6,toDisplayString(n.headline),1),(openBlock(!0),createElementBlock(Fragment,null,renderList(i(unref(g),6),(le,ue)=>(openBlock(),createBlock(ae,{key:ue,gutter:10,class:"mb-4"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(le,(de,he)=>(openBlock(),createBlock(ie,{key:he,span:24/le.length},{default:withCtx(()=>[createBaseVNode("div",null,[de.policeType=="1"?(openBlock(),createBlock(re,{key:0,type:"primary"},{default:withCtx(()=>[createTextVNode(toDisplayString(de.name),1)]),_:2},1024)):de.policeType=="2"?(openBlock(),createBlock(re,{key:1,type:"warning"},{default:withCtx(()=>[createTextVNode(toDisplayString(de.name),1)]),_:2},1024)):(openBlock(),createBlock(re,{key:2,type:"danger"},{default:withCtx(()=>[createTextVNode(toDisplayString(de.name),1)]),_:2},1024))])]),_:2},1032,["span"]))),128))]),_:2},1024))),128))]),_:1})])}}}),vueBaseCardInfo_vue_vue_type_style_index_0_scoped_0f6e4aac_lang="",VueBaseCardInfo=_export_sfc$1(_sfc_main$e,[["__scopeId","data-v-0f6e4aac"]]),_hoisted_1$9={class:"cardBody"},_sfc_main$d=defineComponent({__name:"vue-photon-card",props:{fontFamily:{type:String,default:"Segoe UI"},fontSize:{type:Number,default:14},testColor:{type:String,default:"#000000"},testBool:{type:Boolean,default:!0}},setup(n){useCssVars(i=>({d1c97962:unref(r),v4ef2c8b2:t.testColor,v09fb9c1c:t.fontFamily,v2ecafa31:"computedSize"-1,v2ecaf2b0:"computedSize2"}));const t=n;let r=computed({get(){return t.fontSize+"px"},set(i){console.log("有人修改了fullName",i)}});return(i,g)=>{const $=resolveComponent("el-tag"),V=resolveComponent("el-col"),re=resolveComponent("el-row"),ie=resolveComponent("el-card");return openBlock(),createBlock(ie,{class:"card"},{default:withCtx(()=>[g[7]||(g[7]=createBaseVNode("h3",{class:"cardHead"},"光字牌",-1)),createBaseVNode("div",_hoisted_1$9,[createVNode$1(re,{gutter:0,style:{display:"flex","align-items":"center"},class:"row-spacing"},{default:withCtx(()=>[createVNode$1(V,{span:24,class:"full-width-col"},{default:withCtx(()=>[createVNode$1($,{type:"primary",size:"large",class:"full-width-tag"},{default:withCtx(()=>[...g[0]||(g[0]=[createTextVNode("生产综合楼1楼火灾报警",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(re,{gutter:0,style:{display:"flex","align-items":"center"},class:"row-spacing"},{default:withCtx(()=>[createVNode$1(V,{span:24,class:"full-width-col"},{default:withCtx(()=>[createVNode$1($,{type:"danger",size:"large",class:"full-width-tag blinking-tag"},{default:withCtx(()=>[...g[1]||(g[1]=[createTextVNode("生产综合楼2楼火灾报警",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(re,{gutter:0,style:{display:"flex","align-items":"center"},class:"row-spacing"},{default:withCtx(()=>[createVNode$1(V,{span:24,class:"full-width-col"},{default:withCtx(()=>[createVNode$1($,{type:"primary",size:"large",class:"full-width-tag"},{default:withCtx(()=>[...g[2]||(g[2]=[createTextVNode("220kV配电装置楼1楼火灾报警",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(re,{gutter:0,style:{display:"flex","align-items":"center"},class:"row-spacing"},{default:withCtx(()=>[createVNode$1(V,{span:24,class:"full-width-col"},{default:withCtx(()=>[createVNode$1($,{type:"primary",size:"large",class:"full-width-tag"},{default:withCtx(()=>[...g[3]||(g[3]=[createTextVNode("220kV配电装置楼2楼火灾报警",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(re,{gutter:0,style:{display:"flex","align-items":"center"},class:"row-spacing"},{default:withCtx(()=>[createVNode$1(V,{span:24,class:"full-width-col"},{default:withCtx(()=>[createVNode$1($,{type:"primary",size:"large",class:"full-width-tag"},{default:withCtx(()=>[...g[4]||(g[4]=[createTextVNode("主供电源故障",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(re,{gutter:0,style:{display:"flex","align-items":"center"},class:"row-spacing"},{default:withCtx(()=>[createVNode$1(V,{span:24,class:"full-width-col"},{default:withCtx(()=>[createVNode$1($,{type:"primary",size:"large",class:"full-width-tag"},{default:withCtx(()=>[...g[5]||(g[5]=[createTextVNode("备用电源故障",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(re,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(V,{span:24,class:"full-width-col"},{default:withCtx(()=>[createVNode$1($,{type:"primary",size:"large",class:"full-width-tag"},{default:withCtx(()=>[...g[6]||(g[6]=[createTextVNode("接地故障",-1)])]),_:1})]),_:1})]),_:1})])]),_:1})}}}),vuePhotonCard_vue_vue_type_style_index_0_scoped_e2138675_lang="",VuePhotonCard=_export_sfc$1(_sfc_main$d,[["__scopeId","data-v-e2138675"]]),_hoisted_1$8={class:"cardBody"},_hoisted_2$5={class:"dialog-footer"},_sfc_main$c=defineComponent({__name:"vue-essential-information",props:{fontFamily:{type:String,default:"Segoe UI"},fontSize:{type:Number,default:14},testColor:{type:String,default:"#000000"},testBool:{type:Boolean,default:!0},dataSource:{type:String,default:"--"}},setup(n){useCssVars(ae=>({v2a5a99be:r.testColor,v49c0d53a:r.fontFamily,v11e3f180:unref(ie)}));let t=ref(!1);const r=n,i=[{content:"灭火允许",timestamp:"2018-04-15"},{content:"手动启动",timestamp:"2018-04-16"},{content:"紧急停止",timestamp:"2018-04-17"},{content:"手动启动",timestamp:"2018-04-18"},{content:"灭火允许",timestamp:"2018-04-15"},{content:"手动启动",timestamp:"2018-04-16"},{content:"紧急停止",timestamp:"2018-04-17"},{content:"手动启动",timestamp:"2018-04-18"}];onMounted(()=>{re(r.dataSource)}),watch(()=>r.dataSource,(ae,oe)=>{re(ae)});let g=ref(!1),$=ref(!1),V=ref(!1);function re(ae){ae==="globalOverview"?(g.value=!0,$.value=!1,V.value=!1):ae==="fireExtinguishing"?(g.value=!1,$.value=!0,V.value=!1):ae==="firePolice"&&(g.value=!1,$.value=!1,V.value=!0)}let ie=computed({get(){return r.fontSize+"px"},set(ae){console.log("有人修改了fullName",ae)}});return(ae,oe)=>{const le=resolveComponent("el-col"),ue=resolveComponent("el-tag"),de=resolveComponent("el-row"),he=resolveComponent("el-card"),pe=resolveComponent("el-timeline-item"),_e=resolveComponent("el-timeline"),Ce=resolveComponent("el-scrollbar"),xe=resolveComponent("el-button"),Ie=resolveComponent("el-dialog");return openBlock(),createElementBlock(Fragment,null,[createVNode$1(he,{class:"card"},{default:withCtx(()=>[oe[26]||(oe[26]=createBaseVNode("h2",{class:"cardHead"},"基本信息",-1)),createBaseVNode("div",_hoisted_1$8,[createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[2]||(oe[2]=[createTextVNode(" 名称 ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[3]||(oe[3]=[createTextVNode("火灾报警系统主机",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[4]||(oe[4]=[createTextVNode(" 产品型号: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[5]||(oe[5]=[createTextVNode("JB-QB-GST200",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[6]||(oe[6]=[createTextVNode(" 厂家: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[7]||(oe[7]=[createTextVNode("海湾公司",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[8]||(oe[8]=[createTextVNode(" 投运日期: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[9]||(oe[9]=[createTextVNode("2015-10-10",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[10]||(oe[10]=[createTextVNode(" 电源电压: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[11]||(oe[11]=[createTextVNode("220V AC",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[12]||(oe[12]=[createTextVNode(" 频率: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[13]||(oe[13]=[createTextVNode("50Hz",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[14]||(oe[14]=[createTextVNode(" 输出电压: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[15]||(oe[15]=[createTextVNode("24V DC",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[16]||(oe[16]=[createTextVNode(" 输出电流: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[17]||(oe[17]=[createTextVNode("5A",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[18]||(oe[18]=[createTextVNode(" 环境温度: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[19]||(oe[19]=[createTextVNode("-5℃ ~ 45℃",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[20]||(oe[20]=[createTextVNode(" 相对湿度: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[21]||(oe[21]=[createTextVNode("5% ~ 95%",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[22]||(oe[22]=[createTextVNode(" 维保单位: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[23]||(oe[23]=[createTextVNode("陕西消防科技有限公司",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(de,{gutter:0,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(le,{span:8,offset:4},{default:withCtx(()=>[...oe[24]||(oe[24]=[createTextVNode(" 联系电话: ",-1)])]),_:1}),createVNode$1(le,{span:4},{default:withCtx(()=>[createVNode$1(ue,{type:"primary"},{default:withCtx(()=>[...oe[25]||(oe[25]=[createTextVNode("188*****00 ",-1)])]),_:1})]),_:1})]),_:1})])]),_:1}),createVNode$1(Ie,{modelValue:unref(t),"onUpdate:modelValue":oe[1]||(oe[1]=Ne=>isRef(t)?t.value=Ne:t=Ne),title:"灭火动作流程",style:{height:"60vh"},width:"45%","append-to-body":!0},{footer:withCtx(()=>[createBaseVNode("div",_hoisted_2$5,[createVNode$1(xe,{onClick:oe[0]||(oe[0]=Ne=>isRef(t)?t.value=!1:t=!1)},{default:withCtx(()=>[...oe[27]||(oe[27]=[createTextVNode("退出",-1)])]),_:1})])]),default:withCtx(()=>[createVNode$1(Ce,{height:"42vh"},{default:withCtx(()=>[createVNode$1(_e,{mode:"alternate-reverse"},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(i,(Ne,Oe)=>createVNode$1(pe,{key:Oe,center:"",timestamp:Ne.timestamp},{default:withCtx(()=>[createTextVNode(toDisplayString(Ne.content),1)]),_:2},1032,["timestamp"])),64))]),_:1})]),_:1})]),_:1},8,["modelValue"])],64)}}}),vueEssentialInformation_vue_vue_type_style_index_0_scoped_23c5c9c6_lang="",VueEssentialInformation=_export_sfc$1(_sfc_main$c,[["__scopeId","data-v-23c5c9c6"]]),_sfc_main$b=defineComponent({__name:"vue-assemble-table",props:{fontFamily:{type:String,default:"黑体"},fontSize:{type:Number,default:12},testColor:{type:String,default:"#ffffff"}},setup(n){useCssVars(g=>({v431b09c3:unref(i)}));const t=n;reactive({fileId:null,fileName:null,fileDate:null});const r=[{pilotLamp:"火灾",order:!1,explain:"未隔离系统中一个或多个设备启动了控制器的报警,变亮"},{pilotLamp:"故障",order:!1,explain:"系统发生一个或多个故障,变亮"},{pilotLamp:"隔离",order:!1,explain:"系统中任何设备或防区被隔离,变亮"},{pilotLamp:"主供电源",order:!0,explain:"交流电源接通时亮"},{pilotLamp:"备用电源",order:!1,explain:"交流电源不接通,且备用电源(直流24V)接通时,变亮"},{pilotLamp:"讯响器屏蔽",order:!1,explain:"外部讯响器发生故障时,变亮"},{pilotLamp:"测试模式",order:!1,explain:"控制板处于测试方式时,变亮"},{pilotLamp:"电源故障",order:!1,explain:"主电或备电发生故障,变亮"},{pilotLamp:"讯响器故障",order:!1,explain:"外部讯响器发生故障,变亮"},{pilotLamp:"接地故障",order:!1,explain:"控制回路发生直流接地时,此信号灯亮"},{pilotLamp:"系统故障",order:!1,explain:"控制器中主处理器发生故障,变亮"}];let i=computed({get(){return t.fontSize+"px"},set(g){console.log("有人修改了fullName",g)}});return(g,$)=>{const V=resolveComponent("el-text"),re=resolveComponent("el-col"),ie=resolveComponent("el-row"),ae=resolveComponent("el-table-column"),oe=resolveComponent("el-tag"),le=resolveComponent("el-table");return openBlock(),createElementBlock(Fragment,null,[createVNode$1(ie,{gutter:20,style:{display:"flex","align-items":"center"}},{default:withCtx(()=>[createVNode$1(re,{span:24,class:"centered-col"},{default:withCtx(()=>[createVNode$1(V,{class:"mx-1",size:"large",style:{"font-size":"16px","margin-bottom":"15px"}},{default:withCtx(()=>[...$[0]||($[0]=[createTextVNode("配置说明",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(ie,{gutter:20},{default:withCtx(()=>[createVNode$1(re,{span:24,class:"centered-col"},{default:withCtx(()=>[createVNode$1(le,{data:r,"header-cell-style":{color:"#3b3b3b "},style:{height:"200px"}},{default:withCtx(()=>[createVNode$1(ae,{type:"index",label:"序号",resizable:!1,"min-width":"60",align:"center"}),createVNode$1(ae,{prop:"pilotLamp",label:"指示灯",resizable:!1,width:"120",align:"center"}),createVNode$1(ae,{label:"正常时状态",resizable:!1,align:"center","min-width":"180"},{default:withCtx(ue=>[ue.row.order?(openBlock(),createBlock(oe,{key:1,type:"primary",style:normalizeStyle$1({fontSize:unref(i)})},{default:withCtx(()=>[...$[2]||($[2]=[createTextVNode("亮",-1)])]),_:1},8,["style"])):(openBlock(),createBlock(oe,{key:0,type:"info",style:normalizeStyle$1({fontSize:unref(i)})},{default:withCtx(()=>[...$[1]||($[1]=[createTextVNode("不亮",-1)])]),_:1},8,["style"]))]),_:1}),createVNode$1(ae,{prop:"explain",label:"说明",resizable:!1,"min-width":"280","show-overflow-tooltip":"",align:"left"})]),_:1})]),_:1})]),_:1})],64)}}}),vueAssembleTable_vue_vue_type_style_index_0_scoped_104bc5cc_lang="",VueAssembleTable=_export_sfc$1(_sfc_main$b,[["__scopeId","data-v-104bc5cc"]]),_sfc_main$a=defineComponent({__name:"vue-synthesize-table",setup(n){const t=[{floorName:"安全工器具室",equipments:[{id:"10010",name:"1号感烟探头",eState:0,currentState:0,operation:!0},{id:"10011",name:"2号感烟探头",eState:0,currentState:0,operation:!0}]},{floorName:"蓄电池室",equipments:[{id:"10012",name:"3号感烟探头",eState:1,currentState:1,operation:!1},{id:"10013",name:"4号感烟探头",eState:0,currentState:0,operation:!0}]},{floorName:"220kV保护室",equipments:[{id:"10014",name:"5号感烟探头",eState:0,currentState:2,operation:!1},{id:"10015",name:"6号感烟探头",eState:1,currentState:1,operation:!0}]},{floorName:"380kV配电室",equipments:[{id:"10016",name:"7号感烟探头",eState:0,currentState:0,operation:!1},{id:"10017",name:"8号感烟探头",eState:0,currentState:2,operation:!0}]},{floorName:"35kV高压室",equipments:[{id:"10018",name:"9号感烟探头",eState:1,currentState:1,operation:!1},{id:"10019",name:"10号感烟探头",eState:0,currentState:0,operation:!0}]},{floorName:"2号接地变室",equipments:[{id:"10020",name:"11号感烟探头",eState:0,currentState:2,operation:!1},{id:"10021",name:"12号感烟探头",eState:1,currentState:1,operation:!0}]},{floorName:"110kV电缆室",equipments:[{id:"10022",name:"13号感烟探头",eState:0,currentState:0,operation:!1},{id:"10023",name:"14号感烟探头",eState:0,currentState:0,operation:!0}]},{floorName:"2号站用变室",equipments:[{id:"10024",name:"15号感烟探头",eState:0,currentState:0,operation:!1},{id:"10025",name:"16号感烟探头",eState:0,currentState:0,operation:!0}]},{floorName:"生产综合楼1楼走廊",equipments:[{id:"10026",name:"17号感烟探头",eState:0,currentState:0,operation:!1},{id:"10027",name:"18号感烟探头",eState:0,currentState:0,operation:!0},{id:"10028",name:"1号声光报警器",eState:0,currentState:0,operation:!1},{id:"10029",name:"2号声光报警器",eState:0,currentState:0,operation:!0},{id:"10030",name:"1号手报",eState:0,currentState:0,operation:!1},{id:"10031",name:"2号手报",eState:0,currentState:0,operation:!0}]}],r=({row:g,columnIndex:$})=>{if($===0){const V=t.find(re=>re.floorName===g.floorName);if(V)return V.equipments.findIndex(ie=>ie.id===g.id)===0?{rowspan:V.equipments.length,colspan:1}:{rowspan:0,colspan:0}}return{rowspan:1,colspan:1}},i=computed(()=>t.flatMap(g=>g.equipments.map($=>({...$,floorName:g.floorName,address:$.address||g.floorName}))));return(g,$)=>{const V=resolveComponent("el-table-column"),re=resolveComponent("el-tag"),ie=resolveComponent("el-button"),ae=resolveComponent("el-table");return openBlock(),createElementBlock("div",null,[createVNode$1(ae,{data:i.value,border:"","span-method":r,style:{width:"100%","margin-top":"20px"},"max-height":"530"},{default:withCtx(()=>[createVNode$1(V,{prop:"floorName",label:"楼层"}),createVNode$1(V,{type:"index",label:"ID"}),createVNode$1(V,{prop:"name",label:"设备名称"}),createVNode$1(V,{prop:"id",label:"设备ID"}),createVNode$1(V,{label:"设备状态"},{default:withCtx(({row:oe})=>[createVNode$1(re,{type:oe.eState===0?"success":"warning"},{default:withCtx(()=>[createTextVNode(toDisplayString(oe.eState===0?"正常":"故障"),1)]),_:2},1032,["type"])]),_:1}),createVNode$1(V,{label:"当前状态"},{default:withCtx(({row:oe})=>[oe.currentState===0?(openBlock(),createBlock(re,{key:0,type:"success"},{default:withCtx(()=>[...$[0]||($[0]=[createTextVNode("运行",-1)])]),_:1})):oe.currentState===1?(openBlock(),createBlock(re,{key:1,type:"info"},{default:withCtx(()=>[...$[1]||($[1]=[createTextVNode("停止",-1)])]),_:1})):(openBlock(),createBlock(re,{key:2,type:"error"},{default:withCtx(()=>[...$[2]||($[2]=[createTextVNode("报警",-1)])]),_:1}))]),_:1}),createVNode$1(V,{label:"操作"},{default:withCtx(({row:oe})=>[oe.operation?(openBlock(),createBlock(ie,{key:0,type:"primary",class:"operation-btn"},{default:withCtx(()=>[...$[3]||($[3]=[createTextVNode(" 屏蔽 ",-1)])]),_:1})):(openBlock(),createBlock(ie,{key:1,type:"primary",class:"operation-btn"},{default:withCtx(()=>[...$[4]||($[4]=[createTextVNode(" 取消屏蔽 ",-1)])]),_:1}))]),_:1})]),_:1},8,["data"])])}}}),vueSynthesizeTable_vue_vue_type_style_index_0_scoped_424993ed_lang="",VueSynthesizeTable=_export_sfc$1(_sfc_main$a,[["__scopeId","data-v-424993ed"]]),_hoisted_1$7={class:"cardBody"},scaleFactor=5,_sfc_main$9=defineComponent({__name:"vue-three-smokeSiren",setup(n){var Ie,Ne,Oe,$e;const t=ref(),r=ref(),i=ref(!1),g=()=>{nextTick(()=>{if(r.value){const Ve=r.value.$el||r.value;i.value=Ve.scrollWidth>Ve.clientWidth}})},$=new Scene,V=new PerspectiveCamera(45,((Ie=t.value)==null?void 0:Ie.clientWidth)/((Ne=t.value)==null?void 0:Ne.clientHeight),.1,1e3);V.position.set(-40,20,30),V.lookAt($.position);const re=new WebGLRenderer({antialias:!0,alpha:!0,preserveDrawingBuffer:!0});re.setClearColor(new Color("#131519")),re.setSize((Oe=t.value)==null?void 0:Oe.clientWidth,($e=t.value)==null?void 0:$e.clientHeight),re.shadowMap.enabled=!0,re.setPixelRatio(window.devicePixelRatio||1);const ie=new OrbitControls(V,re.domElement);ie.autoRotate=!1,ie.autoRotateSpeed=5,ie.dampingFactor=.1,ie.enableDamping=!0,ie.enableRotate=!0,ie.minDistance=10,ie.maxPolarAngle=Math.PI*.5,$.add(new AxesHelper(20));const ae=new AmbientLight("#ffffff",1.8);$.add(ae);const oe=new DirectionalLight("#ffffff",1.8);$.add(oe),oe.position.set(20,20,10);const le=new PointLight("#ffffff",1.8,1800);$.add(le),le.position.set(0,40,0);const ue=document.createElement("canvas");ue.width=250,ue.height=250;const de=ue.getContext("2d");de&&(de.fillStyle="rgba(0,0,0,.7)",de.fillRect(0,0,200,100),de.fillStyle="white",de.font="21px 黑体",de.textAlign="center",de.textBaseline="middle",de.fillText("遥测:100111",100,30),de.fillText("温度:25℃",90,65));const he=new CanvasTexture(ue),pe=new SpriteMaterial({map:he}),_e=new Sprite(pe);_e.scale.set(scaleFactor,scaleFactor,scaleFactor),_e.position.set(-9.644502679789724,5.815449539931501+.5,21.66345220492572);function Ce(){requestAnimationFrame(Ce),ie.update(),re.render($,V)}ref(),ref();let xe=null;return onMounted(()=>{const Ve=t.value;Ve.appendChild(re.domElement),V.aspect=Ve.clientWidth/Ve.clientHeight,V.updateProjectionMatrix(),re.setSize(Ve.clientWidth,Ve.clientHeight),xe=new ResizeObserver(()=>{V.aspect=Ve.clientWidth/Ve.clientHeight,V.updateProjectionMatrix(),re.setSize(Ve.clientWidth,Ve.clientHeight)}),xe.observe(Ve);const Ue=new GLTFLoader,Fe=new DRACOLoader;Ue.setDRACOLoader(Fe),Ue.load("/models/smokeSiren/smokeSiren.glb",qe=>{console.log("3D:",qe),qe.scene.scale.set(1,1,1),$.add(qe.scene)});const ze=new Raycaster,Pt=new Vector2;re.domElement.addEventListener("mousedown",qe=>{const Et=Ve.getBoundingClientRect(),kt=qe.clientX-Et.left,At=qe.clientY-Et.top;Pt.x=kt/Ve.clientWidth*2-1,Pt.y=-(At/Ve.clientHeight)*2+1,ze.setFromCamera(Pt,V),ze.intersectObjects($.children,!0)}),Ce()}),onUnmounted(()=>{xe&&(xe.disconnect(),xe=null)}),(Ve,Ue)=>{const Fe=resolveComponent("el-col"),ze=resolveComponent("el-tag"),Pt=resolveComponent("el-row"),qe=resolveComponent("el-card");return openBlock(),createBlock(Pt,{class:"main-container"},{default:withCtx(()=>[createVNode$1(Fe,{span:10,style:{height:"100%"}},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"containerRef",ref:t,class:"container"},null,512)]),_:1}),createVNode$1(Fe,{span:14,class:"info-col"},{default:withCtx(()=>[createVNode$1(qe,{class:"card","body-style":{padding:"10px"}},{default:withCtx(()=>[Ue[24]||(Ue[24]=createBaseVNode("h2",{class:"cardHead"},"单个装置基本信息",-1)),createBaseVNode("div",_hoisted_1$7,[createVNode$1(Pt,{gutter:0,class:"info-row"},{default:withCtx(()=>[createVNode$1(Fe,{span:8},{default:withCtx(()=>[...Ue[0]||(Ue[0]=[createTextVNode("厂家:",-1)])]),_:1}),createVNode$1(Fe,{span:16},{default:withCtx(()=>[createVNode$1(ze,{type:"primary"},{default:withCtx(()=>[...Ue[1]||(Ue[1]=[createTextVNode("海湾公司",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(Pt,{gutter:0,class:"info-row"},{default:withCtx(()=>[createVNode$1(Fe,{span:8},{default:withCtx(()=>[...Ue[2]||(Ue[2]=[createTextVNode("投运日期",-1)])]),_:1}),createVNode$1(Fe,{span:16},{default:withCtx(()=>[createVNode$1(ze,{type:"primary"},{default:withCtx(()=>[...Ue[3]||(Ue[3]=[createTextVNode("2014-08-08",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(Pt,{gutter:0,class:"info-row"},{default:withCtx(()=>[createVNode$1(Fe,{span:8},{default:withCtx(()=>[...Ue[4]||(Ue[4]=[createTextVNode("电源电压:",-1)])]),_:1}),createVNode$1(Fe,{span:16},{default:withCtx(()=>[createVNode$1(ze,{type:"primary"},{default:withCtx(()=>[...Ue[5]||(Ue[5]=[createTextVNode("220V AC",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(Pt,{gutter:0,class:"info-row"},{default:withCtx(()=>[createVNode$1(Fe,{span:8},{default:withCtx(()=>[...Ue[6]||(Ue[6]=[createTextVNode("布设位置",-1)])]),_:1}),createVNode$1(Fe,{span:16},{default:withCtx(()=>[createVNode$1(ze,{type:"primary"},{default:withCtx(()=>[...Ue[7]||(Ue[7]=[createTextVNode("35kV高压室",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(Pt,{gutter:0,class:"info-row"},{default:withCtx(()=>[createVNode$1(Fe,{span:8},{default:withCtx(()=>[...Ue[8]||(Ue[8]=[createTextVNode("供电电压",-1)])]),_:1}),createVNode$1(Fe,{span:16},{default:withCtx(()=>[createVNode$1(ze,{type:"primary"},{default:withCtx(()=>[...Ue[9]||(Ue[9]=[createTextVNode("18-30V DC",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(Pt,{gutter:0,class:"info-row"},{default:withCtx(()=>[createVNode$1(Fe,{span:8},{default:withCtx(()=>[...Ue[10]||(Ue[10]=[createTextVNode("输出电流:",-1)])]),_:1}),createVNode$1(Fe,{span:16},{default:withCtx(()=>[createVNode$1(ze,{type:"primary"},{default:withCtx(()=>[...Ue[11]||(Ue[11]=[createTextVNode("5A",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(Pt,{gutter:0,class:"info-row"},{default:withCtx(()=>[createVNode$1(Fe,{span:8},{default:withCtx(()=>[...Ue[12]||(Ue[12]=[createTextVNode("IP等级",-1)])]),_:1}),createVNode$1(Fe,{span:16},{default:withCtx(()=>[createVNode$1(ze,{type:"primary"},{default:withCtx(()=>[...Ue[13]||(Ue[13]=[createTextVNode("IP30",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(Pt,{gutter:0,class:"info-row"},{default:withCtx(()=>[createVNode$1(Fe,{span:8},{default:withCtx(()=>[...Ue[14]||(Ue[14]=[createTextVNode("相对湿度:",-1)])]),_:1}),createVNode$1(Fe,{span:16},{default:withCtx(()=>[createVNode$1(ze,{type:"primary"},{default:withCtx(()=>[...Ue[15]||(Ue[15]=[createTextVNode("5% ~ 95%",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(Pt,{gutter:0,class:"info-row"},{default:withCtx(()=>[createVNode$1(Fe,{span:8},{default:withCtx(()=>[...Ue[16]||(Ue[16]=[createTextVNode("接线方式",-1)])]),_:1}),createVNode$1(Fe,{span:16},{default:withCtx(()=>[createVNode$1(ze,{type:"primary"},{default:withCtx(()=>[...Ue[17]||(Ue[17]=[createTextVNode("两线制(L+、L-)",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(Pt,{gutter:0,class:"info-row"},{default:withCtx(()=>[createVNode$1(Fe,{span:8},{default:withCtx(()=>[...Ue[18]||(Ue[18]=[createTextVNode("尺寸(长x高x宽)",-1)])]),_:1}),createVNode$1(Fe,{span:16},{default:withCtx(()=>[createVNode$1(ze,{type:"primary"},{default:withCtx(()=>[...Ue[19]||(Ue[19]=[createTextVNode("350mm x 225mm x 125mm",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(Pt,{gutter:0,class:"info-row"},{default:withCtx(()=>[createVNode$1(Fe,{span:8},{default:withCtx(()=>[...Ue[20]||(Ue[20]=[createTextVNode("报警灵敏度范围",-1)])]),_:1}),createVNode$1(Fe,{span:16},{default:withCtx(()=>[createVNode$1(ze,{type:"primary"},{default:withCtx(()=>[...Ue[21]||(Ue[21]=[createTextVNode("0.005% 至 20%obs/m",-1)])]),_:1})]),_:1})]),_:1}),createVNode$1(Pt,{gutter:0,class:"info-row"},{default:withCtx(()=>[createVNode$1(Fe,{span:8},{default:withCtx(()=>[...Ue[22]||(Ue[22]=[createTextVNode("运行条件",-1)])]),_:1}),createVNode$1(Fe,{span:16},{default:withCtx(()=>[createVNode$1(ze,{ref_key:"conditionTagRef",ref:r,type:"primary",onMouseenter:g},{default:withCtx(()=>[...Ue[23]||(Ue[23]=[createTextVNode(" 探测器环境(-5°C至45°C) / 采样空气(-20°C至60°C) / 湿度(5%至95%RH) ",-1)])]),_:1},512)]),_:1})]),_:1})])]),_:1})]),_:1})]),_:1})}}}),vueThreeSmokeSiren_vue_vue_type_style_index_0_scoped_cc09b8dd_lang="",VueThreeSmokeSiren=_export_sfc$1(_sfc_main$9,[["__scopeId","data-v-cc09b8dd"]]),_hoisted_1$6={class:"scene-wrapper"},_hoisted_2$4={class:"control-buttons"},_sfc_main$8=defineComponent({__name:"vue-three-scene",setup(n){var _e,Ce,xe,Ie;const t=ref();ref(),ref(!1);const r=new Scene,i=new PerspectiveCamera(45,((_e=t.value)==null?void 0:_e.clientWidth)/((Ce=t.value)==null?void 0:Ce.clientHeight),.1,1e3);i.position.set(-50,45,-140),i.lookAt(r.position);const g=new AxesHelper(100);r.add(g);const $=new WebGLRenderer({antialias:!0,alpha:!0,preserveDrawingBuffer:!0});$.setClearColor(new Color("#131519")),$.setSize((xe=t.value)==null?void 0:xe.clientWidth,(Ie=t.value)==null?void 0:Ie.clientHeight),$.shadowMap.enabled=!0,$.setPixelRatio(window.devicePixelRatio||1);const V=new OrbitControls(i,$.domElement);V.autoRotate=!1,V.autoRotateSpeed=5,V.dampingFactor=.1,V.enableDamping=!0,V.enableRotate=!0,V.minDistance=10,V.maxPolarAngle=Math.PI*.5,r.add(new AxesHelper(20));const re=new AmbientLight("#ffffff",1.8);r.add(re);const ie=new DirectionalLight("#ffffff",1.8);r.add(ie),ie.position.set(20,20,10);const ae=new PointLight("#ffffff",1.8,1800);r.add(ae),ae.position.set(0,40,0);function oe(){requestAnimationFrame(oe),V.update(),$.render(r,i)}ref(),ref();let le=null,ue=[],de=[],he=[];function pe(Ne){Ne==="group_sd"?(ue.forEach(Oe=>{Oe.visible=!0}),de.forEach(Oe=>{Oe.visible=!1}),he.forEach(Oe=>{Oe.visible=!1})):Ne==="group_voice"?(de.forEach(Oe=>{Oe.visible=!0}),ue.forEach(Oe=>{Oe.visible=!1}),he.forEach(Oe=>{Oe.visible=!1})):Ne==="group_manual"?(he.forEach(Oe=>{Oe.visible=!0}),de.forEach(Oe=>{Oe.visible=!1}),ue.forEach(Oe=>{Oe.visible=!1})):Ne==="all"&&(ue.forEach(Oe=>{Oe.visible=!0}),de.forEach(Oe=>{Oe.visible=!0}),he.forEach(Oe=>{Oe.visible=!0}))}return onMounted(()=>{const Ne=t.value;Ne.appendChild($.domElement),i.aspect=Ne.clientWidth/Ne.clientHeight,i.updateProjectionMatrix(),$.setSize(Ne.clientWidth,Ne.clientHeight),le=new ResizeObserver(()=>{i.aspect=Ne.clientWidth/Ne.clientHeight,i.updateProjectionMatrix(),$.setSize(Ne.clientWidth,Ne.clientHeight)}),le.observe(Ne);const Oe=new GLTFLoader,$e=new DRACOLoader;Oe.setDRACOLoader($e),Oe.load("/models/scene/backe_edit_10.glb",Fe=>{console.log(Fe.scene.children),Fe.scene.children.forEach(ze=>{if(ze.name&&ze.name.includes("group_sd")?ue.push(ze):ze.name&&ze.name.includes("group_voice")?de.push(ze):ze.name&&ze.name.includes("group_manual")&&he.push(ze),ze.name&&ze.name.includes("group_sd_g"))if(ze&&typeof ze.updateWorldMatrix=="function")try{const Pt=new Box3().setFromObject(ze),qe=Pt.getSize(new Vector3),Et=Pt.getCenter(new Vector3),kt=Math.floor(Math.random()*9e3)+1e3,At=document.createElement("canvas");At.width=250,At.height=250;const Dt=At.getContext("2d");Dt&&(Dt.fillStyle="rgba(0,0,0,.7)",Dt.fillRect(0,0,200,100),Dt.fillStyle="white",Dt.font="21px 黑体",Dt.textAlign="center",Dt.textBaseline="middle");const Lt=5,jt=new CanvasTexture(At),hn=new SpriteMaterial({map:jt});Dt&&(Dt.fillText(`遥测:${kt}`,100,30),Dt.fillText("名称:烟感报警器",100,65));const vn=new Sprite(hn);vn.scale.set(Lt,Lt,Lt),vn.position.set(Et.x-.5,Et.y+qe.y*2/3,Et.z),ue.push(vn),r.add(vn)}catch(Pt){console.error("处理锥体时出错:",Pt)}else console.warn("无效的3D对象:",ze);if(ze.name&&ze.name.includes("group_voice_g"))if(ze&&typeof ze.updateWorldMatrix=="function")try{const Pt=new Box3().setFromObject(ze),qe=Pt.getSize(new Vector3),Et=Pt.getCenter(new Vector3),kt=Math.floor(Math.random()*9e3)+1e3,At=document.createElement("canvas");At.width=250,At.height=250;const Dt=At.getContext("2d");Dt&&(Dt.fillStyle="rgba(0,0,0,.7)",Dt.fillRect(0,0,200,100),Dt.fillStyle="white",Dt.font="21px 黑体",Dt.textAlign="center",Dt.textBaseline="middle");const Lt=5,jt=new CanvasTexture(At),hn=new SpriteMaterial({map:jt});Dt&&(Dt.fillText(`遥测:${kt}`,100,30),Dt.fillText("名称:光感报警器",100,65));const vn=new Sprite(hn);vn.scale.set(Lt,Lt,Lt),vn.position.set(Et.x-5,Et.y+qe.y*1/3,Et.z),de.push(vn),r.add(vn)}catch(Pt){console.error("处理锥体时出错:",Pt)}else console.warn("无效的3D对象:",ze);if(ze.name&&ze.name.includes("group_manual_g"))if(ze&&typeof ze.updateWorldMatrix=="function")try{const Pt=new Box3().setFromObject(ze),qe=Pt.getSize(new Vector3),Et=Pt.getCenter(new Vector3),kt=Math.floor(Math.random()*9e3)+1e3,At=document.createElement("canvas");At.width=250,At.height=250;const Dt=At.getContext("2d");Dt&&(Dt.fillStyle="rgba(0,0,0,.7)",Dt.fillRect(0,0,200,100),Dt.fillStyle="white",Dt.font="21px 黑体",Dt.textAlign="center",Dt.textBaseline="middle");const Lt=5,jt=new CanvasTexture(At),hn=new SpriteMaterial({map:jt});Dt&&(Dt.fillText(`遥测:${kt}`,100,30),Dt.fillText("名称:手动报警器",100,65));const vn=new Sprite(hn);vn.scale.set(Lt,Lt,Lt),vn.position.set(Et.x+5,Et.y+qe.y*1/3,Et.z-5),he.push(vn),r.add(vn)}catch(Pt){console.error("处理锥体时出错:",Pt)}else console.warn("无效的3D对象:",ze)}),Fe.scene.scale.set(1,1,1),r.add(Fe.scene)});const Ve=new Raycaster,Ue=new Vector2;$.domElement.addEventListener("mousedown",Fe=>{const ze=Ne.getBoundingClientRect(),Pt=Fe.clientX-ze.left,qe=Fe.clientY-ze.top;Ue.x=Pt/Ne.clientWidth*2-1,Ue.y=-(qe/Ne.clientHeight)*2+1,Ve.setFromCamera(Ue,i),Ve.intersectObjects(r.children,!0)}),oe()}),onUnmounted(()=>{le&&(le.disconnect(),le=null)}),(Ne,Oe)=>{const $e=resolveComponent("el-button");return openBlock(),createElementBlock("div",_hoisted_1$6,[createBaseVNode("div",{ref_key:"containerRef",ref:t,class:"container"},null,512),createBaseVNode("div",_hoisted_2$4,[createVNode$1($e,{type:"primary",onClick:Oe[0]||(Oe[0]=Ve=>pe("group_sd")),icon:unref(bell_default)},null,8,["icon"]),createVNode$1($e,{type:"danger",onClick:Oe[1]||(Oe[1]=Ve=>pe("group_voice")),icon:unref(magic_stick_default)},null,8,["icon"]),createVNode$1($e,{type:"warning",onClick:Oe[2]||(Oe[2]=Ve=>pe("group_manual")),icon:unref(star_default)},null,8,["icon"]),createVNode$1($e,{type:"warning",onClick:Oe[3]||(Oe[3]=Ve=>pe("all")),icon:unref(compass_default)},null,8,["icon"]),createVNode$1($e,{type:"warning",onClick:Oe[4]||(Oe[4]=Ve=>unref(i).position.set(-50,45,-140)),icon:unref(refresh_default)},null,8,["icon"])])])}}}),vueThreeScene_vue_vue_type_style_index_0_scoped_bb297a8b_lang="",VueThreeScene=_export_sfc$1(_sfc_main$8,[["__scopeId","data-v-bb297a8b"]]),_hoisted_1$5={class:"cardInfo"},_sfc_main$7=defineComponent({__name:"vue-host-machine",props:{fontFamily:{type:String,default:"Segoe UI"},fontSize:{type:Number,default:14},headline:{type:String,default:"自定义标题"}},setup(n){useCssVars(i=>({v46fe1561:t.fontFamily,v31b8363e:unref(r)}));const t=n;let r=computed({get(){return t.fontSize+"px"},set(i){console.log("有人修改了fullName",i)}});return(i,g)=>{const $=resolveComponent("el-tag"),V=resolveComponent("el-col"),re=resolveComponent("el-button"),ie=resolveComponent("el-row"),ae=resolveComponent("el-card");return openBlock(),createElementBlock("div",_hoisted_1$5,[createVNode$1(ae,{shadow:"card",style:{height:"100%"}},{default:withCtx(()=>[g[4]||(g[4]=createBaseVNode("h2",{class:"cardHead"},"主机",-1)),createVNode$1(ie,{gutter:20},{default:withCtx(()=>[createVNode$1(V,{span:6},{default:withCtx(()=>[createVNode$1($,{type:"success"},{default:withCtx(()=>[...g[0]||(g[0]=[createTextVNode("运行",-1)])]),_:1})]),_:1}),createVNode$1(V,{span:6},{default:withCtx(()=>[createVNode$1($,{type:"info"},{default:withCtx(()=>[...g[1]||(g[1]=[createTextVNode("报警",-1)])]),_:1})]),_:1}),createVNode$1(V,{span:6},{default:withCtx(()=>[createVNode$1(re,{key:"primary",type:"primary",size:"small",text:"",bg:""},{default:withCtx(()=>[...g[2]||(g[2]=[createTextVNode(" 自动启动 ",-1)])]),_:1})]),_:1}),createVNode$1(V,{span:6},{default:withCtx(()=>[createVNode$1(re,{key:"info",type:"info",size:"small",text:"",bg:""},{default:withCtx(()=>[...g[3]||(g[3]=[createTextVNode("手动启动",-1)])]),_:1})]),_:1})]),_:1})]),_:1})])}}}),vueHostMachine_vue_vue_type_style_index_0_scoped_c958c45e_lang="",VueHostMachine=_export_sfc$1(_sfc_main$7,[["__scopeId","data-v-c958c45e"]]),_hoisted_1$4={class:"scene-wrapper"},_hoisted_2$3={class:"control-buttons"},_sfc_main$6=defineComponent({__name:"vue-three-test",setup(n){var _e,Ce,xe,Ie;const t=ref();ref(),ref(!1);const r=new Scene,i=new PerspectiveCamera(45,((_e=t.value)==null?void 0:_e.clientWidth)/((Ce=t.value)==null?void 0:Ce.clientHeight),.1,1e3);i.position.set(-50,45,-140),i.lookAt(r.position);const g=new AxesHelper(100);r.add(g);const $=new WebGLRenderer({antialias:!0,alpha:!0,preserveDrawingBuffer:!0});$.setClearColor(new Color("#131519")),$.setSize((xe=t.value)==null?void 0:xe.clientWidth,(Ie=t.value)==null?void 0:Ie.clientHeight),$.shadowMap.enabled=!0,$.setPixelRatio(window.devicePixelRatio||1);const V=new OrbitControls(i,$.domElement);V.autoRotate=!1,V.autoRotateSpeed=5,V.dampingFactor=.1,V.enableDamping=!0,V.enableRotate=!0,V.minDistance=10,V.maxPolarAngle=Math.PI*.5,r.add(new AxesHelper(20));const re=new AmbientLight("#ffffff",1.8);r.add(re);const ie=new DirectionalLight("#ffffff",1.8);r.add(ie),ie.position.set(20,20,10);const ae=new PointLight("#ffffff",1.8,1800);r.add(ae),ae.position.set(0,40,0);function oe(){requestAnimationFrame(oe),V.update(),$.render(r,i)}ref(),ref();let le=null,ue=[],de=[],he=[];function pe(Ne){Ne==="group_sd"?(ue.forEach(Oe=>{Oe.visible=!0}),de.forEach(Oe=>{Oe.visible=!1}),he.forEach(Oe=>{Oe.visible=!1})):Ne==="group_voice"?(de.forEach(Oe=>{Oe.visible=!0}),ue.forEach(Oe=>{Oe.visible=!1}),he.forEach(Oe=>{Oe.visible=!1})):Ne==="group_manual"?(he.forEach(Oe=>{Oe.visible=!0}),de.forEach(Oe=>{Oe.visible=!1}),ue.forEach(Oe=>{Oe.visible=!1})):Ne==="all"&&(ue.forEach(Oe=>{Oe.visible=!0}),de.forEach(Oe=>{Oe.visible=!0}),he.forEach(Oe=>{Oe.visible=!0}))}return onMounted(()=>{const Ne=t.value;Ne.appendChild($.domElement),i.aspect=Ne.clientWidth/Ne.clientHeight,i.updateProjectionMatrix(),$.setSize(Ne.clientWidth,Ne.clientHeight),le=new ResizeObserver(()=>{i.aspect=Ne.clientWidth/Ne.clientHeight,i.updateProjectionMatrix(),$.setSize(Ne.clientWidth,Ne.clientHeight)}),le.observe(Ne);const Oe=new GLTFLoader,$e=new DRACOLoader;Oe.setDRACOLoader($e),Oe.load("/models/scene/test.glb",Fe=>{console.log(Fe.scene.children),Fe.scene.scale.set(1,1,1),r.add(Fe.scene)});const Ve=new Raycaster,Ue=new Vector2;$.domElement.addEventListener("mousedown",Fe=>{const ze=Ne.getBoundingClientRect(),Pt=Fe.clientX-ze.left,qe=Fe.clientY-ze.top;Ue.x=Pt/Ne.clientWidth*2-1,Ue.y=-(qe/Ne.clientHeight)*2+1,Ve.setFromCamera(Ue,i),Ve.intersectObjects(r.children,!0)}),oe()}),onUnmounted(()=>{le&&(le.disconnect(),le=null)}),(Ne,Oe)=>{const $e=resolveComponent("el-button");return openBlock(),createElementBlock("div",_hoisted_1$4,[createBaseVNode("div",{ref_key:"containerRef",ref:t,class:"container"},null,512),createBaseVNode("div",_hoisted_2$3,[createVNode$1($e,{type:"primary",onClick:Oe[0]||(Oe[0]=Ve=>pe("group_sd")),icon:unref(bell_default)},null,8,["icon"]),createVNode$1($e,{type:"danger",onClick:Oe[1]||(Oe[1]=Ve=>pe("group_voice")),icon:unref(magic_stick_default)},null,8,["icon"]),createVNode$1($e,{type:"warning",onClick:Oe[2]||(Oe[2]=Ve=>pe("group_manual")),icon:unref(star_default)},null,8,["icon"]),createVNode$1($e,{type:"warning",onClick:Oe[3]||(Oe[3]=Ve=>pe("all")),icon:unref(compass_default)},null,8,["icon"]),createVNode$1($e,{type:"warning",onClick:Oe[4]||(Oe[4]=Ve=>unref(i).position.set(-50,45,-140)),icon:unref(refresh_default)},null,8,["icon"])])])}}}),vueThreeTest_vue_vue_type_style_index_0_scoped_668e441c_lang="",VueThreeTest=_export_sfc$1(_sfc_main$6,[["__scopeId","data-v-668e441c"]]);function _assertThisInitialized(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _inheritsLoose(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t}/*! * GSAP 3.14.2 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var _config={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},_defaults={duration:.5,overwrite:!1,delay:0},_suppressOverwrites,_reverting$1,_context,_bigNum$1=1e8,_tinyNum=1/_bigNum$1,_2PI=Math.PI*2,_HALF_PI=_2PI/4,_gsID=0,_sqrt=Math.sqrt,_cos=Math.cos,_sin=Math.sin,_isString=function n(t){return typeof t=="string"},_isFunction=function n(t){return typeof t=="function"},_isNumber=function n(t){return typeof t=="number"},_isUndefined=function n(t){return typeof t>"u"},_isObject=function n(t){return typeof t=="object"},_isNotFalse=function n(t){return t!==!1},_windowExists$1=function n(){return typeof window<"u"},_isFuncOrString=function n(t){return _isFunction(t)||_isString(t)},_isTypedArray=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},_isArray=Array.isArray,_randomExp=/random\([^)]+\)/g,_commaDelimExp=/,\s*/g,_strictNumExp=/(?:-?\.?\d|\.)+/gi,_numExp=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,_numWithUnitExp=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,_complexStringNumExp=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,_relExp=/[+-]=-?[.\d]+/,_delimitedValueExp=/[^,'"\[\]\s]+/gi,_unitExp=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,_globalTimeline,_win$1,_coreInitted,_doc$1,_globals={},_installScope={},_coreReady,_install=function n(t){return(_installScope=_merge(t,_globals))&&gsap},_missingPlugin=function n(t,r){return console.warn("Invalid property",t,"set to",r,"Missing plugin? gsap.registerPlugin()")},_warn=function n(t,r){return!r&&console.warn(t)},_addGlobal=function n(t,r){return t&&(_globals[t]=r)&&_installScope&&(_installScope[t]=r)||_globals},_emptyFunc=function n(){return 0},_startAtRevertConfig={suppressEvents:!0,isStart:!0,kill:!1},_revertConfigNoKill={suppressEvents:!0,kill:!1},_revertConfig={suppressEvents:!0},_reservedProps={},_lazyTweens=[],_lazyLookup={},_lastRenderedFrame,_plugins={},_effects={},_nextGCFrame=30,_harnessPlugins=[],_callbackNames="",_harness=function n(t){var r=t[0],i,g;if(_isObject(r)||_isFunction(r)||(t=[t]),!(i=(r._gsap||{}).harness)){for(g=_harnessPlugins.length;g--&&!_harnessPlugins[g].targetTest(r););i=_harnessPlugins[g]}for(g=t.length;g--;)t[g]&&(t[g]._gsap||(t[g]._gsap=new GSCache(t[g],i)))||t.splice(g,1);return t},_getCache=function n(t){return t._gsap||_harness(toArray(t))[0]._gsap},_getProperty=function n(t,r,i){return(i=t[r])&&_isFunction(i)?t[r]():_isUndefined(i)&&t.getAttribute&&t.getAttribute(r)||i},_forEachName=function n(t,r){return(t=t.split(",")).forEach(r)||t},_round=function n(t){return Math.round(t*1e5)/1e5||0},_roundPrecise=function n(t){return Math.round(t*1e7)/1e7||0},_parseRelative=function n(t,r){var i=r.charAt(0),g=parseFloat(r.substr(2));return t=parseFloat(t),i==="+"?t+g:i==="-"?t-g:i==="*"?t*g:t/g},_arrayContainsAny=function n(t,r){for(var i=r.length,g=0;t.indexOf(r[g])<0&&++gre;)V=V._prev;return V?(r._next=V._next,V._next=r):(r._next=t[i],t[i]=r),r._next?r._next._prev=r:t[g]=r,r._prev=V,r.parent=r._dp=t,r},_removeLinkedListItem=function n(t,r,i,g){i===void 0&&(i="_first"),g===void 0&&(g="_last");var $=r._prev,V=r._next;$?$._next=V:t[i]===r&&(t[i]=V),V?V._prev=$:t[g]===r&&(t[g]=$),r._next=r._prev=r.parent=null},_removeFromParent=function n(t,r){t.parent&&(!r||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},_uncache=function n(t,r){if(t&&(!r||r._end>t._dur||r._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},_recacheAncestors=function n(t){for(var r=t.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return t},_rewindStartAt=function n(t,r,i,g){return t._startAt&&(_reverting$1?t._startAt.revert(_revertConfigNoKill):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(r,!0,g))},_hasNoPausedAncestors=function n(t){return!t||t._ts&&n(t.parent)},_elapsedCycleDuration=function n(t){return t._repeat?_animationCycle(t._tTime,t=t.duration()+t._rDelay)*t:0},_animationCycle=function n(t,r){var i=Math.floor(t=_roundPrecise(t/r));return t&&i===t?i-1:i},_parentToChildTotalTime=function n(t,r){return(t-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},_setEnd=function n(t){return t._end=_roundPrecise(t._start+(t._tDur/Math.abs(t._ts||t._rts||_tinyNum)||0))},_alignPlayhead=function n(t,r){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=_roundPrecise(i._time-(t._ts>0?r/t._ts:((t._dirty?t.totalDuration():t._tDur)-r)/-t._ts)),_setEnd(t),i._dirty||_uncache(i,t)),t},_postAddChecks=function n(t,r){var i;if((r._time||!r._dur&&r._initted||r._start_tinyNum)&&r.render(i,!0)),_uncache(t,r)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-_tinyNum}},_addToTimeline=function n(t,r,i,g){return r.parent&&_removeFromParent(r),r._start=_roundPrecise((_isNumber(i)?i:i||t!==_globalTimeline?_parsePosition(t,i,r):t._time)+r._delay),r._end=_roundPrecise(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),_addLinkedListItem(t,r,"_first","_last",t._sort?"_start":0),_isFromOrFromStart(r)||(t._recent=r),g||_postAddChecks(t,r),t._ts<0&&_alignPlayhead(t,t._tTime),t},_scrollTrigger=function n(t,r){return(_globals.ScrollTrigger||_missingPlugin("scrollTrigger",r))&&_globals.ScrollTrigger.create(r,t)},_attemptInitTween=function n(t,r,i,g,$){if(_initTween(t,r,$),!t._initted)return 1;if(!i&&t._pt&&!_reverting$1&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&_lastRenderedFrame!==_ticker.frame)return _lazyTweens.push(t),t._lazy=[$,g],1},_parentPlayheadIsBeforeStart=function n(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||n(r))},_isFromOrFromStart=function n(t){var r=t.data;return r==="isFromStart"||r==="isStart"},_renderZeroDurationTween=function n(t,r,i,g){var $=t.ratio,V=r<0||!r&&(!t._start&&_parentPlayheadIsBeforeStart(t)&&!(!t._initted&&_isFromOrFromStart(t))||(t._ts<0||t._dp._ts<0)&&!_isFromOrFromStart(t))?0:1,re=t._rDelay,ie=0,ae,oe,le;if(re&&t._repeat&&(ie=_clamp(0,t._tDur,r),oe=_animationCycle(ie,re),t._yoyo&&oe&1&&(V=1-V),oe!==_animationCycle(t._tTime,re)&&($=1-V,t.vars.repeatRefresh&&t._initted&&t.invalidate())),V!==$||_reverting$1||g||t._zTime===_tinyNum||!r&&t._zTime){if(!t._initted&&_attemptInitTween(t,r,g,i,ie))return;for(le=t._zTime,t._zTime=r||(i?_tinyNum:0),i||(i=r&&!le),t.ratio=V,t._from&&(V=1-V),t._time=0,t._tTime=ie,ae=t._pt;ae;)ae.r(V,ae.d),ae=ae._next;r<0&&_rewindStartAt(t,r,i,!0),t._onUpdate&&!i&&_callback(t,"onUpdate"),ie&&t._repeat&&!i&&t.parent&&_callback(t,"onRepeat"),(r>=t._tDur||r<0)&&t.ratio===V&&(V&&_removeFromParent(t,1),!i&&!_reverting$1&&(_callback(t,V?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=r)},_findNextPauseTween=function n(t,r,i){var g;if(i>r)for(g=t._first;g&&g._start<=i;){if(g.data==="isPause"&&g._start>r)return g;g=g._next}else for(g=t._last;g&&g._start>=i;){if(g.data==="isPause"&&g._start0&&!g&&_alignPlayhead(t,t._tTime=t._tDur*re),t.parent&&_setEnd(t),i||_uncache(t.parent,t),t},_onUpdateTotalDuration=function n(t){return t instanceof Timeline?_uncache(t):_setDuration(t,t._dur)},_zeroPosition={_start:0,endTime:_emptyFunc,totalDuration:_emptyFunc},_parsePosition=function n(t,r,i){var g=t.labels,$=t._recent||_zeroPosition,V=t.duration()>=_bigNum$1?$.endTime(!1):t._dur,re,ie,ae;return _isString(r)&&(isNaN(r)||r in g)?(ie=r.charAt(0),ae=r.substr(-1)==="%",re=r.indexOf("="),ie==="<"||ie===">"?(re>=0&&(r=r.replace(/=/,"")),(ie==="<"?$._start:$.endTime($._repeat>=0))+(parseFloat(r.substr(1))||0)*(ae?(re<0?$:i).totalDuration()/100:1)):re<0?(r in g||(g[r]=V),g[r]):(ie=parseFloat(r.charAt(re-1)+r.substr(re+1)),ae&&i&&(ie=ie/100*(_isArray(i)?i[0]:i).totalDuration()),re>1?n(t,r.substr(0,re-1),i)+ie:V+ie)):r==null?V:+r},_createTweenType=function n(t,r,i){var g=_isNumber(r[1]),$=(g?2:1)+(t<2?0:1),V=r[$],re,ie;if(g&&(V.duration=r[1]),V.parent=i,t){for(re=V,ie=i;ie&&!("immediateRender"in re);)re=ie.vars.defaults||{},ie=_isNotFalse(ie.vars.inherit)&&ie.parent;V.immediateRender=_isNotFalse(re.immediateRender),t<2?V.runBackwards=1:V.startAt=r[$-1]}return new Tween(r[0],V,r[$+1])},_conditionalReturn=function n(t,r){return t||t===0?r(t):r},_clamp=function n(t,r,i){return ir?r:i},getUnit=function n(t,r){return!_isString(t)||!(r=_unitExp.exec(t))?"":r[1]},clamp=function n(t,r,i){return _conditionalReturn(i,function(g){return _clamp(t,r,g)})},_slice=[].slice,_isArrayLike=function n(t,r){return t&&_isObject(t)&&"length"in t&&(!r&&!t.length||t.length-1 in t&&_isObject(t[0]))&&!t.nodeType&&t!==_win$1},_flatten=function n(t,r,i){return i===void 0&&(i=[]),t.forEach(function(g){var $;return _isString(g)&&!r||_isArrayLike(g,1)?($=i).push.apply($,toArray(g)):i.push(g)})||i},toArray=function n(t,r,i){return _context&&!r&&_context.selector?_context.selector(t):_isString(t)&&!i&&(_coreInitted||!_wake())?_slice.call((r||_doc$1).querySelectorAll(t),0):_isArray(t)?_flatten(t,i):_isArrayLike(t)?_slice.call(t,0):t?[t]:[]},selector=function n(t){return t=toArray(t)[0]||_warn("Invalid scope")||{},function(r){var i=t.current||t.nativeElement||t;return toArray(r,i.querySelectorAll?i:i===t?_warn("Invalid scope")||_doc$1.createElement("div"):t)}},shuffle=function n(t){return t.sort(function(){return .5-Math.random()})},distribute=function n(t){if(_isFunction(t))return t;var r=_isObject(t)?t:{each:t},i=_parseEase(r.ease),g=r.from||0,$=parseFloat(r.base)||0,V={},re=g>0&&g<1,ie=isNaN(g)||re,ae=r.axis,oe=g,le=g;return _isString(g)?oe=le={center:.5,edges:.5,end:1}[g]||0:!re&&ie&&(oe=g[0],le=g[1]),function(ue,de,he){var pe=(he||r).length,_e=V[pe],Ce,xe,Ie,Ne,Oe,$e,Ve,Ue,Fe;if(!_e){if(Fe=r.grid==="auto"?0:(r.grid||[1,_bigNum$1])[1],!Fe){for(Ve=-_bigNum$1;Ve<(Ve=he[Fe++].getBoundingClientRect().left)&&FeVe&&(Ve=Oe),Oepe?pe-1:ae?ae==="y"?pe/Fe:Fe:Math.max(Fe,pe/Fe))||0)*(g==="edges"?-1:1),_e.b=pe<0?$-pe:$,_e.u=getUnit(r.amount||r.each)||0,i=i&&pe<0?_invertEase(i):i}return pe=(_e[ue]-_e.min)/_e.max||0,_roundPrecise(_e.b+(i?i(pe):pe)*_e.v)+_e.u}},_roundModifier=function n(t){var r=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var g=_roundPrecise(Math.round(parseFloat(i)/t)*t*r);return(g-g%1)/r+(_isNumber(i)?0:getUnit(i))}},snap=function n(t,r){var i=_isArray(t),g,$;return!i&&_isObject(t)&&(g=i=t.radius||_bigNum$1,t.values?(t=toArray(t.values),($=!_isNumber(t[0]))&&(g*=g)):t=_roundModifier(t.increment)),_conditionalReturn(r,i?_isFunction(t)?function(V){return $=t(V),Math.abs($-V)<=g?$:V}:function(V){for(var re=parseFloat($?V.x:V),ie=parseFloat($?V.y:0),ae=_bigNum$1,oe=0,le=t.length,ue,de;le--;)$?(ue=t[le].x-re,de=t[le].y-ie,ue=ue*ue+de*de):ue=Math.abs(t[le]-re),ueg?$-V:V)})},_replaceRandom=function n(t){return t.replace(_randomExp,function(r){var i=r.indexOf("[")+1,g=r.substring(i||7,i?r.indexOf("]"):r.length-1).split(_commaDelimExp);return random(i?g:+g[0],i?0:+g[1],+g[2]||1e-5)})},mapRange=function n(t,r,i,g,$){var V=r-t,re=g-i;return _conditionalReturn($,function(ie){return i+((ie-t)/V*re||0)})},interpolate=function n(t,r,i,g){var $=isNaN(t+r)?0:function(de){return(1-de)*t+de*r};if(!$){var V=_isString(t),re={},ie,ae,oe,le,ue;if(i===!0&&(g=1)&&(i=null),V)t={p:t},r={p:r};else if(_isArray(t)&&!_isArray(r)){for(oe=[],le=t.length,ue=le-2,ae=1;ae(re=Math.abs(re))&&(ie=V,$=re);return ie},_callback=function n(t,r,i){var g=t.vars,$=g[r],V=_context,re=t._ctx,ie,ae,oe;if($)return ie=g[r+"Params"],ae=g.callbackScope||t,i&&_lazyTweens.length&&_lazyRender(),re&&(_context=re),oe=ie?$.apply(ae,ie):$.call(ae),_context=V,oe},_interrupt=function n(t){return _removeFromParent(t),t.scrollTrigger&&t.scrollTrigger.kill(!!_reverting$1),t.progress()<1&&_callback(t,"onInterrupt"),t},_quickTween,_registerPluginQueue=[],_createPlugin=function n(t){if(t)if(t=!t.name&&t.default||t,_windowExists$1()||t.headless){var r=t.name,i=_isFunction(t),g=r&&!i&&t.init?function(){this._props=[]}:t,$={init:_emptyFunc,render:_renderPropTweens,add:_addPropTween,kill:_killPropTweensOf,modifier:_addPluginModifier,rawVars:0},V={targetTest:0,get:0,getSetter:_getSetter,aliases:{},register:0};if(_wake(),t!==g){if(_plugins[r])return;_setDefaults(g,_setDefaults(_copyExcluding(t,$),V)),_merge(g.prototype,_merge($,_copyExcluding(t,V))),_plugins[g.prop=r]=g,t.targetTest&&(_harnessPlugins.push(g),_reservedProps[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}_addGlobal(r,g),t.register&&t.register(gsap,g,PropTween)}else _registerPluginQueue.push(t)},_255=255,_colorLookup={aqua:[0,_255,_255],lime:[0,_255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,_255],navy:[0,0,128],white:[_255,_255,_255],olive:[128,128,0],yellow:[_255,_255,0],orange:[_255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[_255,0,0],pink:[_255,192,203],cyan:[0,_255,_255],transparent:[_255,_255,_255,0]},_hue=function n(t,r,i){return t+=t<0?1:t>1?-1:0,(t*6<1?r+(i-r)*t*6:t<.5?i:t*3<2?r+(i-r)*(2/3-t)*6:r)*_255+.5|0},splitColor=function n(t,r,i){var g=t?_isNumber(t)?[t>>16,t>>8&_255,t&_255]:0:_colorLookup.black,$,V,re,ie,ae,oe,le,ue,de,he;if(!g){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),_colorLookup[t])g=_colorLookup[t];else if(t.charAt(0)==="#"){if(t.length<6&&($=t.charAt(1),V=t.charAt(2),re=t.charAt(3),t="#"+$+$+V+V+re+re+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return g=parseInt(t.substr(1,6),16),[g>>16,g>>8&_255,g&_255,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),g=[t>>16,t>>8&_255,t&_255]}else if(t.substr(0,3)==="hsl"){if(g=he=t.match(_strictNumExp),!r)ie=+g[0]%360/360,ae=+g[1]/100,oe=+g[2]/100,V=oe<=.5?oe*(ae+1):oe+ae-oe*ae,$=oe*2-V,g.length>3&&(g[3]*=1),g[0]=_hue(ie+1/3,$,V),g[1]=_hue(ie,$,V),g[2]=_hue(ie-1/3,$,V);else if(~t.indexOf("="))return g=t.match(_numExp),i&&g.length<4&&(g[3]=1),g}else g=t.match(_strictNumExp)||_colorLookup.transparent;g=g.map(Number)}return r&&!he&&($=g[0]/_255,V=g[1]/_255,re=g[2]/_255,le=Math.max($,V,re),ue=Math.min($,V,re),oe=(le+ue)/2,le===ue?ie=ae=0:(de=le-ue,ae=oe>.5?de/(2-le-ue):de/(le+ue),ie=le===$?(V-re)/de+(Vt||Ce<0)&&(i+=Ce-r),g+=Ce,Oe=g-i,Ie=Oe-V,(Ie>0||xe)&&($e=++le.frame,ue=Oe-le.time*1e3,le.time=Oe=Oe/1e3,V+=Ie+(Ie>=$?4:$-Ie),Ne=1),xe||(ie=ae(pe)),Ne)for(de=0;de=Ce&&de--},_listeners:re},le}(),_wake=function n(){return!_tickerActive&&_ticker.wake()},_easeMap={},_customEaseExp=/^[\d.\-M][\d.\-,\s]/,_quotesExp=/["']/g,_parseObjectInString=function n(t){for(var r={},i=t.substr(1,t.length-3).split(":"),g=i[0],$=1,V=i.length,re,ie,ae;$1&&i.config?i.config.apply(null,~t.indexOf("{")?[_parseObjectInString(r[1])]:_valueInParentheses(t).split(",").map(_numericIfPossible)):_easeMap._CE&&_customEaseExp.test(t)?_easeMap._CE("",t):i},_invertEase=function n(t){return function(r){return 1-t(1-r)}},_propagateYoyoEase=function n(t,r){for(var i=t._first,g;i;)i instanceof Timeline?n(i,r):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==r&&(i.timeline?n(i.timeline,r):(g=i._ease,i._ease=i._yEase,i._yEase=g,i._yoyo=r)),i=i._next},_parseEase=function n(t,r){return t&&(_isFunction(t)?t:_easeMap[t]||_configEaseFromString(t))||r},_insertEase=function n(t,r,i,g){i===void 0&&(i=function(ie){return 1-r(1-ie)}),g===void 0&&(g=function(ie){return ie<.5?r(ie*2)/2:1-r((1-ie)*2)/2});var $={easeIn:r,easeOut:i,easeInOut:g},V;return _forEachName(t,function(re){_easeMap[re]=_globals[re]=$,_easeMap[V=re.toLowerCase()]=i;for(var ie in $)_easeMap[V+(ie==="easeIn"?".in":ie==="easeOut"?".out":".inOut")]=_easeMap[re+"."+ie]=$[ie]}),$},_easeInOutFromOut=function n(t){return function(r){return r<.5?(1-t(1-r*2))/2:.5+t((r-.5)*2)/2}},_configElastic=function n(t,r,i){var g=r>=1?r:1,$=(i||(t?.3:.45))/(r<1?r:1),V=$/_2PI*(Math.asin(1/g)||0),re=function(oe){return oe===1?1:g*Math.pow(2,-10*oe)*_sin((oe-V)*$)+1},ie=t==="out"?re:t==="in"?function(ae){return 1-re(1-ae)}:_easeInOutFromOut(re);return $=_2PI/$,ie.config=function(ae,oe){return n(t,ae,oe)},ie},_configBack=function n(t,r){r===void 0&&(r=1.70158);var i=function(V){return V?--V*V*((r+1)*V+r)+1:0},g=t==="out"?i:t==="in"?function($){return 1-i(1-$)}:_easeInOutFromOut(i);return g.config=function($){return n(t,$)},g};_forEachName("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,t){var r=t<5?t+1:t;_insertEase(n+",Power"+(r-1),t?function(i){return Math.pow(i,r)}:function(i){return i},function(i){return 1-Math.pow(1-i,r)},function(i){return i<.5?Math.pow(i*2,r)/2:1-Math.pow((1-i)*2,r)/2})});_easeMap.Linear.easeNone=_easeMap.none=_easeMap.Linear.easeIn;_insertEase("Elastic",_configElastic("in"),_configElastic("out"),_configElastic());(function(n,t){var r=1/t,i=2*r,g=2.5*r,$=function(re){return re0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},t.totalDuration=function(i){return arguments.length?(this._dirty=0,_setDuration(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(i,g){if(_wake(),!arguments.length)return this._tTime;var $=this._dp;if($&&$.smoothChildTiming&&this._ts){for(_alignPlayhead(this,i),!$._dp||$.parent||_postAddChecks($,this);$&&$.parent;)$.parent._time!==$._start+($._ts>=0?$._tTime/$._ts:($.totalDuration()-$._tTime)/-$._ts)&&$.totalTime($._tTime,!0),$=$.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i0||!this._tDur&&!i)&&_addToTimeline(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!g||this._initted&&Math.abs(this._zTime)===_tinyNum||!this._initted&&this._dur&&i||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),_lazySafeRender(this,i,g)),this},t.time=function(i,g){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+_elapsedCycleDuration(this))%(this._dur+this._rDelay)||(i?this._dur:0),g):this._time},t.totalProgress=function(i,g){return arguments.length?this.totalTime(this.totalDuration()*i,g):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(i,g){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+_elapsedCycleDuration(this),g):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(i,g){var $=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*$,g):this._repeat?_animationCycle(this._tTime,$)+1:1},t.timeScale=function(i,g){if(!arguments.length)return this._rts===-_tinyNum?0:this._rts;if(this._rts===i)return this;var $=this.parent&&this._ts?_parentToChildTotalTime(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-_tinyNum?0:this._rts,this.totalTime(_clamp(-Math.abs(this._delay),this.totalDuration(),$),g!==!1),_setEnd(this),_recacheAncestors(this)},t.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(_wake(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==_tinyNum&&(this._tTime-=_tinyNum)))),this):this._ps},t.startTime=function(i){if(arguments.length){this._start=_roundPrecise(i);var g=this.parent||this._dp;return g&&(g._sort||!this.parent)&&_addToTimeline(g,this,this._start-this._delay),this}return this._start},t.endTime=function(i){return this._start+(_isNotFalse(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(i){var g=this.parent||this._dp;return g?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?_parentToChildTotalTime(g.rawTime(i),this):this._tTime:this._tTime},t.revert=function(i){i===void 0&&(i=_revertConfig);var g=_reverting$1;return _reverting$1=i,_isRevertWorthy(this)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),_reverting$1=g,this},t.globalTime=function(i){for(var g=this,$=arguments.length?i:g.rawTime();g;)$=g._start+$/(Math.abs(g._ts)||1),g=g._dp;return!this.parent&&this._sat?this._sat.globalTime(i):$},t.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,_onUpdateTotalDuration(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(i){if(arguments.length){var g=this._time;return this._rDelay=i,_onUpdateTotalDuration(this),g?this.time(g):this}return this._rDelay},t.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},t.seek=function(i,g){return this.totalTime(_parsePosition(this,i),_isNotFalse(g))},t.restart=function(i,g){return this.play().totalTime(i?-this._delay:0,_isNotFalse(g)),this._dur||(this._zTime=-_tinyNum),this},t.play=function(i,g){return i!=null&&this.seek(i,g),this.reversed(!1).paused(!1)},t.reverse=function(i,g){return i!=null&&this.seek(i||this.totalDuration(),g),this.reversed(!0).paused(!1)},t.pause=function(i,g){return i!=null&&this.seek(i,g),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-_tinyNum:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-_tinyNum,this},t.isActive=function(){var i=this.parent||this._dp,g=this._start,$;return!!(!i||this._ts&&this._initted&&i.isActive()&&($=i.rawTime(!0))>=g&&$1?(g?(V[i]=g,$&&(V[i+"Params"]=$),i==="onUpdate"&&(this._onUpdate=g)):delete V[i],this):V[i]},t.then=function(i){var g=this,$=g._prom;return new Promise(function(V){var re=_isFunction(i)?i:_passThrough,ie=function(){var oe=g.then;g.then=null,$&&$(),_isFunction(re)&&(re=re(g))&&(re.then||re===g)&&(g.then=oe),V(re),g.then=oe};g._initted&&g.totalProgress()===1&&g._ts>=0||!g._tTime&&g._ts<0?ie():g._prom=ie})},t.kill=function(){_interrupt(this)},n}();_setDefaults(Animation$2.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-_tinyNum,_prom:0,_ps:!1,_rts:1});var Timeline=function(n){_inheritsLoose(t,n);function t(i,g){var $;return i===void 0&&(i={}),$=n.call(this,i)||this,$.labels={},$.smoothChildTiming=!!i.smoothChildTiming,$.autoRemoveChildren=!!i.autoRemoveChildren,$._sort=_isNotFalse(i.sortChildren),_globalTimeline&&_addToTimeline(i.parent||_globalTimeline,_assertThisInitialized($),g),i.reversed&&$.reverse(),i.paused&&$.paused(!0),i.scrollTrigger&&_scrollTrigger(_assertThisInitialized($),i.scrollTrigger),$}var r=t.prototype;return r.to=function(g,$,V){return _createTweenType(0,arguments,this),this},r.from=function(g,$,V){return _createTweenType(1,arguments,this),this},r.fromTo=function(g,$,V,re){return _createTweenType(2,arguments,this),this},r.set=function(g,$,V){return $.duration=0,$.parent=this,_inheritDefaults($).repeatDelay||($.repeat=0),$.immediateRender=!!$.immediateRender,new Tween(g,$,_parsePosition(this,V),1),this},r.call=function(g,$,V){return _addToTimeline(this,Tween.delayedCall(0,g,$),V)},r.staggerTo=function(g,$,V,re,ie,ae,oe){return V.duration=$,V.stagger=V.stagger||re,V.onComplete=ae,V.onCompleteParams=oe,V.parent=this,new Tween(g,V,_parsePosition(this,ie)),this},r.staggerFrom=function(g,$,V,re,ie,ae,oe){return V.runBackwards=1,_inheritDefaults(V).immediateRender=_isNotFalse(V.immediateRender),this.staggerTo(g,$,V,re,ie,ae,oe)},r.staggerFromTo=function(g,$,V,re,ie,ae,oe,le){return re.startAt=V,_inheritDefaults(re).immediateRender=_isNotFalse(re.immediateRender),this.staggerTo(g,$,re,ie,ae,oe,le)},r.render=function(g,$,V){var re=this._time,ie=this._dirty?this.totalDuration():this._tDur,ae=this._dur,oe=g<=0?0:_roundPrecise(g),le=this._zTime<0!=g<0&&(this._initted||!ae),ue,de,he,pe,_e,Ce,xe,Ie,Ne,Oe,$e,Ve;if(this!==_globalTimeline&&oe>ie&&g>=0&&(oe=ie),oe!==this._tTime||V||le){if(re!==this._time&&ae&&(oe+=this._time-re,g+=this._time-re),ue=oe,Ne=this._start,Ie=this._ts,Ce=!Ie,le&&(ae||(re=this._zTime),(g||!$)&&(this._zTime=g)),this._repeat){if($e=this._yoyo,_e=ae+this._rDelay,this._repeat<-1&&g<0)return this.totalTime(_e*100+g,$,V);if(ue=_roundPrecise(oe%_e),oe===ie?(pe=this._repeat,ue=ae):(Oe=_roundPrecise(oe/_e),pe=~~Oe,pe&&pe===Oe&&(ue=ae,pe--),ue>ae&&(ue=ae)),Oe=_animationCycle(this._tTime,_e),!re&&this._tTime&&Oe!==pe&&this._tTime-Oe*_e-this._dur<=0&&(Oe=pe),$e&&pe&1&&(ue=ae-ue,Ve=1),pe!==Oe&&!this._lock){var Ue=$e&&Oe&1,Fe=Ue===($e&&pe&1);if(pe=re&&g>=0)for(de=this._first;de;){if(he=de._next,(de._act||ue>=de._start)&&de._ts&&xe!==de){if(de.parent!==this)return this.render(g,$,V);if(de.render(de._ts>0?(ue-de._start)*de._ts:(de._dirty?de.totalDuration():de._tDur)+(ue-de._start)*de._ts,$,V),ue!==this._time||!this._ts&&!Ce){xe=0,he&&(oe+=this._zTime=-_tinyNum);break}}de=he}else{de=this._last;for(var ze=g<0?g:ue;de;){if(he=de._prev,(de._act||ze<=de._end)&&de._ts&&xe!==de){if(de.parent!==this)return this.render(g,$,V);if(de.render(de._ts>0?(ze-de._start)*de._ts:(de._dirty?de.totalDuration():de._tDur)+(ze-de._start)*de._ts,$,V||_reverting$1&&_isRevertWorthy(de)),ue!==this._time||!this._ts&&!Ce){xe=0,he&&(oe+=this._zTime=ze?-_tinyNum:_tinyNum);break}}de=he}}if(xe&&!$&&(this.pause(),xe.render(ue>=re?0:-_tinyNum)._zTime=ue>=re?1:-1,this._ts))return this._start=Ne,_setEnd(this),this.render(g,$,V);this._onUpdate&&!$&&_callback(this,"onUpdate",!0),(oe===ie&&this._tTime>=this.totalDuration()||!oe&&re)&&(Ne===this._start||Math.abs(Ie)!==Math.abs(this._ts))&&(this._lock||((g||!ae)&&(oe===ie&&this._ts>0||!oe&&this._ts<0)&&_removeFromParent(this,1),!$&&!(g<0&&!re)&&(oe||re||!ie)&&(_callback(this,oe===ie&&g>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(oe0)&&this._prom())))}return this},r.add=function(g,$){var V=this;if(_isNumber($)||($=_parsePosition(this,$,g)),!(g instanceof Animation$2)){if(_isArray(g))return g.forEach(function(re){return V.add(re,$)}),this;if(_isString(g))return this.addLabel(g,$);if(_isFunction(g))g=Tween.delayedCall(0,g);else return this}return this!==g?_addToTimeline(this,g,$):this},r.getChildren=function(g,$,V,re){g===void 0&&(g=!0),$===void 0&&($=!0),V===void 0&&(V=!0),re===void 0&&(re=-_bigNum$1);for(var ie=[],ae=this._first;ae;)ae._start>=re&&(ae instanceof Tween?$&&ie.push(ae):(V&&ie.push(ae),g&&ie.push.apply(ie,ae.getChildren(!0,$,V)))),ae=ae._next;return ie},r.getById=function(g){for(var $=this.getChildren(1,1,1),V=$.length;V--;)if($[V].vars.id===g)return $[V]},r.remove=function(g){return _isString(g)?this.removeLabel(g):_isFunction(g)?this.killTweensOf(g):(g.parent===this&&_removeLinkedListItem(this,g),g===this._recent&&(this._recent=this._last),_uncache(this))},r.totalTime=function(g,$){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=_roundPrecise(_ticker.time-(this._ts>0?g/this._ts:(this.totalDuration()-g)/-this._ts))),n.prototype.totalTime.call(this,g,$),this._forcing=0,this):this._tTime},r.addLabel=function(g,$){return this.labels[g]=_parsePosition(this,$),this},r.removeLabel=function(g){return delete this.labels[g],this},r.addPause=function(g,$,V){var re=Tween.delayedCall(0,$||_emptyFunc,V);return re.data="isPause",this._hasPause=1,_addToTimeline(this,re,_parsePosition(this,g))},r.removePause=function(g){var $=this._first;for(g=_parsePosition(this,g);$;)$._start===g&&$.data==="isPause"&&_removeFromParent($),$=$._next},r.killTweensOf=function(g,$,V){for(var re=this.getTweensOf(g,V),ie=re.length;ie--;)_overwritingTween!==re[ie]&&re[ie].kill(g,$);return this},r.getTweensOf=function(g,$){for(var V=[],re=toArray(g),ie=this._first,ae=_isNumber($),oe;ie;)ie instanceof Tween?_arrayContainsAny(ie._targets,re)&&(ae?(!_overwritingTween||ie._initted&&ie._ts)&&ie.globalTime(0)<=$&&ie.globalTime(ie.totalDuration())>$:!$||ie.isActive())&&V.push(ie):(oe=ie.getTweensOf(re,$)).length&&V.push.apply(V,oe),ie=ie._next;return V},r.tweenTo=function(g,$){$=$||{};var V=this,re=_parsePosition(V,g),ie=$,ae=ie.startAt,oe=ie.onStart,le=ie.onStartParams,ue=ie.immediateRender,de,he=Tween.to(V,_setDefaults({ease:$.ease||"none",lazy:!1,immediateRender:!1,time:re,overwrite:"auto",duration:$.duration||Math.abs((re-(ae&&"time"in ae?ae.time:V._time))/V.timeScale())||_tinyNum,onStart:function(){if(V.pause(),!de){var _e=$.duration||Math.abs((re-(ae&&"time"in ae?ae.time:V._time))/V.timeScale());he._dur!==_e&&_setDuration(he,_e,0,1).render(he._time,!0,!0),de=1}oe&&oe.apply(he,le||[])}},$));return ue?he.render(0):he},r.tweenFromTo=function(g,$,V){return this.tweenTo($,_setDefaults({startAt:{time:_parsePosition(this,g)}},V))},r.recent=function(){return this._recent},r.nextLabel=function(g){return g===void 0&&(g=this._time),_getLabelInDirection(this,_parsePosition(this,g))},r.previousLabel=function(g){return g===void 0&&(g=this._time),_getLabelInDirection(this,_parsePosition(this,g),1)},r.currentLabel=function(g){return arguments.length?this.seek(g,!0):this.previousLabel(this._time+_tinyNum)},r.shiftChildren=function(g,$,V){V===void 0&&(V=0);var re=this._first,ie=this.labels,ae;for(g=_roundPrecise(g);re;)re._start>=V&&(re._start+=g,re._end+=g),re=re._next;if($)for(ae in ie)ie[ae]>=V&&(ie[ae]+=g);return _uncache(this)},r.invalidate=function(g){var $=this._first;for(this._lock=0;$;)$.invalidate(g),$=$._next;return n.prototype.invalidate.call(this,g)},r.clear=function(g){g===void 0&&(g=!0);for(var $=this._first,V;$;)V=$._next,this.remove($),$=V;return this._dp&&(this._time=this._tTime=this._pTime=0),g&&(this.labels={}),_uncache(this)},r.totalDuration=function(g){var $=0,V=this,re=V._last,ie=_bigNum$1,ae,oe,le;if(arguments.length)return V.timeScale((V._repeat<0?V.duration():V.totalDuration())/(V.reversed()?-g:g));if(V._dirty){for(le=V.parent;re;)ae=re._prev,re._dirty&&re.totalDuration(),oe=re._start,oe>ie&&V._sort&&re._ts&&!V._lock?(V._lock=1,_addToTimeline(V,re,oe-re._delay,1)._lock=0):ie=oe,oe<0&&re._ts&&($-=oe,(!le&&!V._dp||le&&le.smoothChildTiming)&&(V._start+=_roundPrecise(oe/V._ts),V._time-=oe,V._tTime-=oe),V.shiftChildren(-oe,!1,-1/0),ie=0),re._end>$&&re._ts&&($=re._end),re=ae;_setDuration(V,V===_globalTimeline&&V._time>$?V._time:$,1,1),V._dirty=0}return V._tDur},t.updateRoot=function(g){if(_globalTimeline._ts&&(_lazySafeRender(_globalTimeline,_parentToChildTotalTime(g,_globalTimeline)),_lastRenderedFrame=_ticker.frame),_ticker.frame>=_nextGCFrame){_nextGCFrame+=_config.autoSleep||120;var $=_globalTimeline._first;if((!$||!$._ts)&&_config.autoSleep&&_ticker._listeners.length<2){for(;$&&!$._ts;)$=$._next;$||_ticker.sleep()}}},t}(Animation$2);_setDefaults(Timeline.prototype,{_lock:0,_hasPause:0,_forcing:0});var _addComplexStringPropTween=function n(t,r,i,g,$,V,re){var ie=new PropTween(this._pt,t,r,0,1,_renderComplexString,null,$),ae=0,oe=0,le,ue,de,he,pe,_e,Ce,xe;for(ie.b=i,ie.e=g,i+="",g+="",(Ce=~g.indexOf("random("))&&(g=_replaceRandom(g)),V&&(xe=[i,g],V(xe,t,r),i=xe[0],g=xe[1]),ue=i.match(_complexStringNumExp)||[];le=_complexStringNumExp.exec(g);)he=le[0],pe=g.substring(ae,le.index),de?de=(de+1)%5:pe.substr(-5)==="rgba("&&(de=1),he!==ue[oe++]&&(_e=parseFloat(ue[oe-1])||0,ie._pt={_next:ie._pt,p:pe||oe===1?pe:",",s:_e,c:he.charAt(1)==="="?_parseRelative(_e,he)-_e:parseFloat(he)-_e,m:de&&de<4?Math.round:0},ae=_complexStringNumExp.lastIndex);return ie.c=ae")}),Ne.duration();else{$e={};for(Ue in he)Ue==="ease"||Ue==="easeEach"||_parseKeyframe(Ue,he[Ue],$e,he.easeEach);for(Ue in $e)for(Et=$e[Ue].sort(function(Dt,Lt){return Dt.t-Lt.t}),qe=0,Oe=0;Oeie-_tinyNum&&!oe?ie:g<_tinyNum?0:g,ue,de,he,pe,_e,Ce,xe,Ie,Ne;if(!ae)_renderZeroDurationTween(this,g,$,V);else if(le!==this._tTime||!g||V||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==oe||this._lazy){if(ue=le,Ie=this.timeline,this._repeat){if(pe=ae+this._rDelay,this._repeat<-1&&oe)return this.totalTime(pe*100+g,$,V);if(ue=_roundPrecise(le%pe),le===ie?(he=this._repeat,ue=ae):(_e=_roundPrecise(le/pe),he=~~_e,he&&he===_e?(ue=ae,he--):ue>ae&&(ue=ae)),Ce=this._yoyo&&he&1,Ce&&(Ne=this._yEase,ue=ae-ue),_e=_animationCycle(this._tTime,pe),ue===re&&!V&&this._initted&&he===_e)return this._tTime=le,this;he!==_e&&(Ie&&this._yEase&&_propagateYoyoEase(Ie,Ce),this.vars.repeatRefresh&&!Ce&&!this._lock&&ue!==pe&&this._initted&&(this._lock=V=1,this.render(_roundPrecise(pe*he),!0).invalidate()._lock=0))}if(!this._initted){if(_attemptInitTween(this,oe?g:ue,V,$,le))return this._tTime=0,this;if(re!==this._time&&!(V&&this.vars.repeatRefresh&&he!==_e))return this;if(ae!==this._dur)return this.render(g,$,V)}if(this._tTime=le,this._time=ue,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=xe=(Ne||this._ease)(ue/ae),this._from&&(this.ratio=xe=1-xe),!re&&le&&!$&&!_e&&(_callback(this,"onStart"),this._tTime!==le))return this;for(de=this._pt;de;)de.r(xe,de.d),de=de._next;Ie&&Ie.render(g<0?g:Ie._dur*Ie._ease(ue/this._dur),$,V)||this._startAt&&(this._zTime=g),this._onUpdate&&!$&&(oe&&_rewindStartAt(this,g,$,V),_callback(this,"onUpdate")),this._repeat&&he!==_e&&this.vars.onRepeat&&!$&&this.parent&&_callback(this,"onRepeat"),(le===this._tDur||!le)&&this._tTime===le&&(oe&&!this._onUpdate&&_rewindStartAt(this,g,!0,!0),(g||!ae)&&(le===this._tDur&&this._ts>0||!le&&this._ts<0)&&_removeFromParent(this,1),!$&&!(oe&&!re)&&(le||re||Ce)&&(_callback(this,le===ie?"onComplete":"onReverseComplete",!0),this._prom&&!(le0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(g){return(!g||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(g),n.prototype.invalidate.call(this,g)},r.resetTo=function(g,$,V,re,ie){_tickerActive||_ticker.wake(),this._ts||this.play();var ae=Math.min(this._dur,(this._dp._time-this._start)*this._ts),oe;return this._initted||_initTween(this,ae),oe=this._ease(ae/this._dur),_updatePropTweens(this,g,$,V,re,oe,ae,ie)?this.resetTo(g,$,V,re,1):(_alignPlayhead(this,0),this.parent||_addLinkedListItem(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(g,$){if($===void 0&&($="all"),!g&&(!$||$==="all"))return this._lazy=this._pt=0,this.parent?_interrupt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!_reverting$1),this;if(this.timeline){var V=this.timeline.totalDuration();return this.timeline.killTweensOf(g,$,_overwritingTween&&_overwritingTween.vars.overwrite!==!0)._first||_interrupt(this),this.parent&&V!==this.timeline.totalDuration()&&_setDuration(this,this._dur*this.timeline._tDur/V,0,1),this}var re=this._targets,ie=g?toArray(g):re,ae=this._ptLookup,oe=this._pt,le,ue,de,he,pe,_e,Ce;if((!$||$==="all")&&_arraysMatch(re,ie))return $==="all"&&(this._pt=0),_interrupt(this);for(le=this._op=this._op||[],$!=="all"&&(_isString($)&&(pe={},_forEachName($,function(xe){return pe[xe]=1}),$=pe),$=_addAliasesToVars(re,$)),Ce=re.length;Ce--;)if(~ie.indexOf(re[Ce])){ue=ae[Ce],$==="all"?(le[Ce]=$,he=ue,de={}):(de=le[Ce]=le[Ce]||{},he=$);for(pe in he)_e=ue&&ue[pe],_e&&((!("kill"in _e.d)||_e.d.kill(pe)===!0)&&_removeLinkedListItem(this,_e,"_pt"),delete ue[pe]),de!=="all"&&(de[pe]=1)}return this._initted&&!this._pt&&oe&&_interrupt(this),this},t.to=function(g,$){return new t(g,$,arguments[2])},t.from=function(g,$){return _createTweenType(1,arguments)},t.delayedCall=function(g,$,V,re){return new t($,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:g,onComplete:$,onReverseComplete:$,onCompleteParams:V,onReverseCompleteParams:V,callbackScope:re})},t.fromTo=function(g,$,V){return _createTweenType(2,arguments)},t.set=function(g,$){return $.duration=0,$.repeatDelay||($.repeat=0),new t(g,$)},t.killTweensOf=function(g,$,V){return _globalTimeline.killTweensOf(g,$,V)},t}(Animation$2);_setDefaults(Tween.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});_forEachName("staggerTo,staggerFrom,staggerFromTo",function(n){Tween[n]=function(){var t=new Timeline,r=_slice.call(arguments,0);return r.splice(n==="staggerFromTo"?5:4,0,0),t[n].apply(t,r)}});var _setterPlain=function n(t,r,i){return t[r]=i},_setterFunc=function n(t,r,i){return t[r](i)},_setterFuncWithParam=function n(t,r,i,g){return t[r](g.fp,i)},_setterAttribute=function n(t,r,i){return t.setAttribute(r,i)},_getSetter=function n(t,r){return _isFunction(t[r])?_setterFunc:_isUndefined(t[r])&&t.setAttribute?_setterAttribute:_setterPlain},_renderPlain=function n(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e6)/1e6,r)},_renderBoolean=function n(t,r){return r.set(r.t,r.p,!!(r.s+r.c*t),r)},_renderComplexString=function n(t,r){var i=r._pt,g="";if(!t&&r.b)g=r.b;else if(t===1&&r.e)g=r.e;else{for(;i;)g=i.p+(i.m?i.m(i.s+i.c*t):Math.round((i.s+i.c*t)*1e4)/1e4)+g,i=i._next;g+=r.c}r.set(r.t,r.p,g,r)},_renderPropTweens=function n(t,r){for(var i=r._pt;i;)i.r(t,i.d),i=i._next},_addPluginModifier=function n(t,r,i,g){for(var $=this._pt,V;$;)V=$._next,$.p===g&&$.modifier(t,r,i),$=V},_killPropTweensOf=function n(t){for(var r=this._pt,i,g;r;)g=r._next,r.p===t&&!r.op||r.op===t?_removeLinkedListItem(this,r,"_pt"):r.dep||(i=1),r=g;return!i},_setterWithModifier=function n(t,r,i,g){g.mSet(t,r,g.m.call(g.tween,i,g.mt),g)},_sortPropTweensByPriority=function n(t){for(var r=t._pt,i,g,$,V;r;){for(i=r._next,g=$;g&&g.pr>r.pr;)g=g._next;(r._prev=g?g._prev:V)?r._prev._next=r:$=r,(r._next=g)?g._prev=r:V=r,r=i}t._pt=$},PropTween=function(){function n(r,i,g,$,V,re,ie,ae,oe){this.t=i,this.s=$,this.c=V,this.p=g,this.r=re||_renderPlain,this.d=ie||this,this.set=ae||_setterPlain,this.pr=oe||0,this._next=r,r&&(r._prev=this)}var t=n.prototype;return t.modifier=function(i,g,$){this.mSet=this.mSet||this.set,this.set=_setterWithModifier,this.m=i,this.mt=$,this.tween=g},n}();_forEachName(_callbackNames+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(n){return _reservedProps[n]=1});_globals.TweenMax=_globals.TweenLite=Tween;_globals.TimelineLite=_globals.TimelineMax=Timeline;_globalTimeline=new Timeline({sortChildren:!1,defaults:_defaults,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});_config.stringFilter=_colorStringFilter;var _media=[],_listeners={},_emptyArray=[],_lastMediaTime=0,_contextID=0,_dispatch=function n(t){return(_listeners[t]||_emptyArray).map(function(r){return r()})},_onMediaChange=function n(){var t=Date.now(),r=[];t-_lastMediaTime>2&&(_dispatch("matchMediaInit"),_media.forEach(function(i){var g=i.queries,$=i.conditions,V,re,ie,ae;for(re in g)V=_win$1.matchMedia(g[re]).matches,V&&(ie=1),V!==$[re]&&($[re]=V,ae=1);ae&&(i.revert(),ie&&r.push(i))}),_dispatch("matchMediaRevert"),r.forEach(function(i){return i.onMatch(i,function(g){return i.add(null,g)})}),_lastMediaTime=t,_dispatch("matchMedia"))},Context=function(){function n(r,i){this.selector=i&&selector(i),this.data=[],this._r=[],this.isReverted=!1,this.id=_contextID++,r&&this.add(r)}var t=n.prototype;return t.add=function(i,g,$){_isFunction(i)&&($=g,g=i,i=_isFunction);var V=this,re=function(){var ae=_context,oe=V.selector,le;return ae&&ae!==V&&ae.data.push(V),$&&(V.selector=selector($)),_context=V,le=g.apply(V,arguments),_isFunction(le)&&V._r.push(le),_context=ae,V.selector=oe,V.isReverted=!1,le};return V.last=re,i===_isFunction?re(V,function(ie){return V.add(null,ie)}):i?V[i]=re:re},t.ignore=function(i){var g=_context;_context=null,i(this),_context=g},t.getTweens=function(){var i=[];return this.data.forEach(function(g){return g instanceof n?i.push.apply(i,g.getTweens()):g instanceof Tween&&!(g.parent&&g.parent.data==="nested")&&i.push(g)}),i},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(i,g){var $=this;if(i?function(){for(var re=$.getTweens(),ie=$.data.length,ae;ie--;)ae=$.data[ie],ae.data==="isFlip"&&(ae.revert(),ae.getChildren(!0,!0,!1).forEach(function(oe){return re.splice(re.indexOf(oe),1)}));for(re.map(function(oe){return{g:oe._dur||oe._delay||oe._sat&&!oe._sat.vars.immediateRender?oe.globalTime(0):-1/0,t:oe}}).sort(function(oe,le){return le.g-oe.g||-1/0}).forEach(function(oe){return oe.t.revert(i)}),ie=$.data.length;ie--;)ae=$.data[ie],ae instanceof Timeline?ae.data!=="nested"&&(ae.scrollTrigger&&ae.scrollTrigger.revert(),ae.kill()):!(ae instanceof Tween)&&ae.revert&&ae.revert(i);$._r.forEach(function(oe){return oe(i,$)}),$.isReverted=!0}():this.data.forEach(function(re){return re.kill&&re.kill()}),this.clear(),g)for(var V=_media.length;V--;)_media[V].id===this.id&&_media.splice(V,1)},t.revert=function(i){this.kill(i||{})},n}(),MatchMedia=function(){function n(r){this.contexts=[],this.scope=r,_context&&_context.data.push(this)}var t=n.prototype;return t.add=function(i,g,$){_isObject(i)||(i={matches:i});var V=new Context(0,$||this.scope),re=V.conditions={},ie,ae,oe;_context&&!V.selector&&(V.selector=_context.selector),this.contexts.push(V),g=V.add("onMatch",g),V.queries=i;for(ae in i)ae==="all"?oe=1:(ie=_win$1.matchMedia(i[ae]),ie&&(_media.indexOf(V)<0&&_media.push(V),(re[ae]=ie.matches)&&(oe=1),ie.addListener?ie.addListener(_onMediaChange):ie.addEventListener("change",_onMediaChange)));return oe&&g(V,function(le){return V.add(null,le)}),this},t.revert=function(i){this.kill(i||{})},t.kill=function(i){this.contexts.forEach(function(g){return g.kill(i,!0)})},n}(),_gsap={registerPlugin:function n(){for(var t=arguments.length,r=new Array(t),i=0;i1){var g=t.map(function(oe){return gsap.quickSetter(oe,r,i)}),$=g.length;return function(oe){for(var le=$;le--;)g[le](oe)}}t=t[0]||{};var V=_plugins[r],re=_getCache(t),ie=re.harness&&(re.harness.aliases||{})[r]||r,ae=V?function(oe){var le=new V;_quickTween._pt=0,le.init(t,i?oe+i:oe,_quickTween,0,[t]),le.render(1,le),_quickTween._pt&&_renderPropTweens(1,_quickTween)}:re.set(t,ie);return V?ae:function(oe){return ae(t,ie,i?oe+i:oe,re,1)}},quickTo:function n(t,r,i){var g,$=gsap.to(t,_setDefaults((g={},g[r]="+=0.1",g.paused=!0,g.stagger=0,g),i||{})),V=function(ie,ae,oe){return $.resetTo(r,ie,ae,oe)};return V.tween=$,V},isTweening:function n(t){return _globalTimeline.getTweensOf(t,!0).length>0},defaults:function n(t){return t&&t.ease&&(t.ease=_parseEase(t.ease,_defaults.ease)),_mergeDeep(_defaults,t||{})},config:function n(t){return _mergeDeep(_config,t||{})},registerEffect:function n(t){var r=t.name,i=t.effect,g=t.plugins,$=t.defaults,V=t.extendTimeline;(g||"").split(",").forEach(function(re){return re&&!_plugins[re]&&!_globals[re]&&_warn(r+" effect requires "+re+" plugin.")}),_effects[r]=function(re,ie,ae){return i(toArray(re),_setDefaults(ie||{},$),ae)},V&&(Timeline.prototype[r]=function(re,ie,ae){return this.add(_effects[r](re,_isObject(ie)?ie:(ae=ie)&&{},this),ae)})},registerEase:function n(t,r){_easeMap[t]=_parseEase(r)},parseEase:function n(t,r){return arguments.length?_parseEase(t,r):_easeMap},getById:function n(t){return _globalTimeline.getById(t)},exportRoot:function n(t,r){t===void 0&&(t={});var i=new Timeline(t),g,$;for(i.smoothChildTiming=_isNotFalse(t.smoothChildTiming),_globalTimeline.remove(i),i._dp=0,i._time=i._tTime=_globalTimeline._time,g=_globalTimeline._first;g;)$=g._next,(r||!(!g._dur&&g instanceof Tween&&g.vars.onComplete===g._targets[0]))&&_addToTimeline(i,g,g._start-g._delay),g=$;return _addToTimeline(_globalTimeline,i,0),i},context:function n(t,r){return t?new Context(t,r):_context},matchMedia:function n(t){return new MatchMedia(t)},matchMediaRefresh:function n(){return _media.forEach(function(t){var r=t.conditions,i,g;for(g in r)r[g]&&(r[g]=!1,i=1);i&&t.revert()})||_onMediaChange()},addEventListener:function n(t,r){var i=_listeners[t]||(_listeners[t]=[]);~i.indexOf(r)||i.push(r)},removeEventListener:function n(t,r){var i=_listeners[t],g=i&&i.indexOf(r);g>=0&&i.splice(g,1)},utils:{wrap,wrapYoyo,distribute,random,snap,normalize:normalize$1,getUnit,clamp,splitColor,toArray,selector,mapRange,pipe,unitize,interpolate,shuffle},install:_install,effects:_effects,ticker:_ticker,updateRoot:Timeline.updateRoot,plugins:_plugins,globalTimeline:_globalTimeline,core:{PropTween,globals:_addGlobal,Tween,Timeline,Animation:Animation$2,getCache:_getCache,_removeLinkedListItem,reverting:function n(){return _reverting$1},context:function n(t){return t&&_context&&(_context.data.push(t),t._ctx=_context),_context},suppressOverwrites:function n(t){return _suppressOverwrites=t}}};_forEachName("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return _gsap[n]=Tween[n]});_ticker.add(Timeline.updateRoot);_quickTween=_gsap.to({},{duration:0});var _getPluginPropTween=function n(t,r){for(var i=t._pt;i&&i.p!==r&&i.op!==r&&i.fp!==r;)i=i._next;return i},_addModifiers=function n(t,r){var i=t._targets,g,$,V;for(g in r)for($=i.length;$--;)V=t._ptLookup[$][g],V&&(V=V.d)&&(V._pt&&(V=_getPluginPropTween(V,g)),V&&V.modifier&&V.modifier(r[g],t,i[$],g))},_buildModifierPlugin=function n(t,r){return{name:t,headless:1,rawVars:1,init:function(g,$,V){V._onInit=function(re){var ie,ae;if(_isString($)&&(ie={},_forEachName($,function(oe){return ie[oe]=1}),$=ie),r){ie={};for(ae in $)ie[ae]=r($[ae]);$=ie}_addModifiers(re,$)}}}},gsap=_gsap.registerPlugin({name:"attr",init:function n(t,r,i,g,$){var V,re,ie;this.tween=i;for(V in r)ie=t.getAttribute(V)||"",re=this.add(t,"setAttribute",(ie||0)+"",r[V],g,$,0,0,V),re.op=V,re.b=ie,this._props.push(V)},render:function n(t,r){for(var i=r._pt;i;)_reverting$1?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",headless:1,init:function n(t,r){for(var i=r.length;i--;)this.add(t,i,t[i]||0,r[i],0,0,0,0,0,1)}},_buildModifierPlugin("roundProps",_roundModifier),_buildModifierPlugin("modifiers"),_buildModifierPlugin("snap",snap))||_gsap;Tween.version=Timeline.version=gsap.version="3.14.2";_coreReady=1;_windowExists$1()&&_wake();_easeMap.Power0;_easeMap.Power1;_easeMap.Power2;_easeMap.Power3;_easeMap.Power4;_easeMap.Linear;_easeMap.Quad;_easeMap.Cubic;_easeMap.Quart;_easeMap.Quint;_easeMap.Strong;_easeMap.Elastic;_easeMap.Back;_easeMap.SteppedEase;_easeMap.Bounce;_easeMap.Sine;_easeMap.Expo;_easeMap.Circ;/*! * CSSPlugin 3.14.2 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var _win,_doc,_docElement,_pluginInitted,_tempDiv,_recentSetterPlugin,_reverting,_windowExists=function n(){return typeof window<"u"},_transformProps={},_RAD2DEG=180/Math.PI,_DEG2RAD=Math.PI/180,_atan2=Math.atan2,_bigNum=1e8,_capsExp=/([A-Z])/g,_horizontalExp=/(left|right|width|margin|padding|x)/i,_complexExp=/[\s,\(]\S/,_propertyAliases={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_renderCSSProp=function n(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},_renderPropWithEnd=function n(t,r){return r.set(r.t,r.p,t===1?r.e:Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},_renderCSSPropWithBeginning=function n(t,r){return r.set(r.t,r.p,t?Math.round((r.s+r.c*t)*1e4)/1e4+r.u:r.b,r)},_renderCSSPropWithBeginningAndEnd=function n(t,r){return r.set(r.t,r.p,t===1?r.e:t?Math.round((r.s+r.c*t)*1e4)/1e4+r.u:r.b,r)},_renderRoundedCSSProp=function n(t,r){var i=r.s+r.c*t;r.set(r.t,r.p,~~(i+(i<0?-.5:.5))+r.u,r)},_renderNonTweeningValue=function n(t,r){return r.set(r.t,r.p,t?r.e:r.b,r)},_renderNonTweeningValueOnlyAtEnd=function n(t,r){return r.set(r.t,r.p,t!==1?r.b:r.e,r)},_setterCSSStyle=function n(t,r,i){return t.style[r]=i},_setterCSSProp=function n(t,r,i){return t.style.setProperty(r,i)},_setterTransform=function n(t,r,i){return t._gsap[r]=i},_setterScale=function n(t,r,i){return t._gsap.scaleX=t._gsap.scaleY=i},_setterScaleWithRender=function n(t,r,i,g,$){var V=t._gsap;V.scaleX=V.scaleY=i,V.renderTransform($,V)},_setterTransformWithRender=function n(t,r,i,g,$){var V=t._gsap;V[r]=i,V.renderTransform($,V)},_transformProp="transform",_transformOriginProp=_transformProp+"Origin",_saveStyle=function n(t,r){var i=this,g=this.target,$=g.style,V=g._gsap;if(t in _transformProps&&$){if(this.tfm=this.tfm||{},t!=="transform")t=_propertyAliases[t]||t,~t.indexOf(",")?t.split(",").forEach(function(re){return i.tfm[re]=_get(g,re)}):this.tfm[t]=V.x?V[t]:_get(g,t),t===_transformOriginProp&&(this.tfm.zOrigin=V.zOrigin);else return _propertyAliases.transform.split(",").forEach(function(re){return n.call(i,re,r)});if(this.props.indexOf(_transformProp)>=0)return;V.svg&&(this.svgo=g.getAttribute("data-svg-origin"),this.props.push(_transformOriginProp,r,"")),t=_transformProp}($||r)&&this.props.push(t,r,$[t])},_removeIndependentTransforms=function n(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},_revertStyle=function n(){var t=this.props,r=this.target,i=r.style,g=r._gsap,$,V;for($=0;$=0?_prefixes[V]:"")+t},_initCore=function n(){_windowExists()&&window.document&&(_win=window,_doc=_win.document,_docElement=_doc.documentElement,_tempDiv=_createElement("div")||{style:{}},_createElement("div"),_transformProp=_checkPropPrefix(_transformProp),_transformOriginProp=_transformProp+"Origin",_tempDiv.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",_supports3D=!!_checkPropPrefix("perspective"),_reverting=gsap.core.reverting,_pluginInitted=1)},_getReparentedCloneBBox=function n(t){var r=t.ownerSVGElement,i=_createElement("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),g=t.cloneNode(!0),$;g.style.display="block",i.appendChild(g),_docElement.appendChild(i);try{$=g.getBBox()}catch{}return i.removeChild(g),_docElement.removeChild(i),$},_getAttributeFallbacks=function n(t,r){for(var i=r.length;i--;)if(t.hasAttribute(r[i]))return t.getAttribute(r[i])},_getBBox=function n(t){var r,i;try{r=t.getBBox()}catch{r=_getReparentedCloneBBox(t),i=1}return r&&(r.width||r.height)||i||(r=_getReparentedCloneBBox(t)),r&&!r.width&&!r.x&&!r.y?{x:+_getAttributeFallbacks(t,["x","cx","x1"])||0,y:+_getAttributeFallbacks(t,["y","cy","y1"])||0,width:0,height:0}:r},_isSVG=function n(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&_getBBox(t))},_removeProperty=function n(t,r){if(r){var i=t.style,g;r in _transformProps&&r!==_transformOriginProp&&(r=_transformProp),i.removeProperty?(g=r.substr(0,2),(g==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),i.removeProperty(g==="--"?r:r.replace(_capsExp,"-$1").toLowerCase())):i.removeAttribute(r)}},_addNonTweeningPT=function n(t,r,i,g,$,V){var re=new PropTween(t._pt,r,i,0,1,V?_renderNonTweeningValueOnlyAtEnd:_renderNonTweeningValue);return t._pt=re,re.b=g,re.e=$,t._props.push(i),re},_nonConvertibleUnits={deg:1,rad:1,turn:1},_nonStandardLayouts={grid:1,flex:1},_convertToUnit=function n(t,r,i,g){var $=parseFloat(i)||0,V=(i+"").trim().substr(($+"").length)||"px",re=_tempDiv.style,ie=_horizontalExp.test(r),ae=t.tagName.toLowerCase()==="svg",oe=(ae?"client":"offset")+(ie?"Width":"Height"),le=100,ue=g==="px",de=g==="%",he,pe,_e,Ce;if(g===V||!$||_nonConvertibleUnits[g]||_nonConvertibleUnits[V])return $;if(V!=="px"&&!ue&&($=n(t,r,i,"px")),Ce=t.getCTM&&_isSVG(t),(de||V==="%")&&(_transformProps[r]||~r.indexOf("adius")))return he=Ce?t.getBBox()[ie?"width":"height"]:t[oe],_round(de?$/he*le:$/100*he);if(re[ie?"width":"height"]=le+(ue?V:g),pe=g!=="rem"&&~r.indexOf("adius")||g==="em"&&t.appendChild&&!ae?t:t.parentNode,Ce&&(pe=(t.ownerSVGElement||{}).parentNode),(!pe||pe===_doc||!pe.appendChild)&&(pe=_doc.body),_e=pe._gsap,_e&&de&&_e.width&&ie&&_e.time===_ticker.time&&!_e.uncache)return _round($/_e.width*le);if(de&&(r==="height"||r==="width")){var xe=t.style[r];t.style[r]=le+g,he=t[oe],xe?t.style[r]=xe:_removeProperty(t,r)}else(de||V==="%")&&!_nonStandardLayouts[_getComputedProperty(pe,"display")]&&(re.position=_getComputedProperty(t,"position")),pe===t&&(re.position="static"),pe.appendChild(_tempDiv),he=_tempDiv[oe],pe.removeChild(_tempDiv),re.position="absolute";return ie&&de&&(_e=_getCache(pe),_e.time=_ticker.time,_e.width=pe[oe]),_round(ue?he*$/le:he&&$?le/he*$:0)},_get=function n(t,r,i,g){var $;return _pluginInitted||_initCore(),r in _propertyAliases&&r!=="transform"&&(r=_propertyAliases[r],~r.indexOf(",")&&(r=r.split(",")[0])),_transformProps[r]&&r!=="transform"?($=_parseTransform(t,g),$=r!=="transformOrigin"?$[r]:$.svg?$.origin:_firstTwoOnly(_getComputedProperty(t,_transformOriginProp))+" "+$.zOrigin+"px"):($=t.style[r],(!$||$==="auto"||g||~($+"").indexOf("calc("))&&($=_specialProps[r]&&_specialProps[r](t,r,i)||_getComputedProperty(t,r)||_getProperty(t,r)||(r==="opacity"?1:0))),i&&!~($+"").trim().indexOf(" ")?_convertToUnit(t,r,$,i)+i:$},_tweenComplexCSSString=function n(t,r,i,g){if(!i||i==="none"){var $=_checkPropPrefix(r,t,1),V=$&&_getComputedProperty(t,$,1);V&&V!==i?(r=$,i=V):r==="borderColor"&&(i=_getComputedProperty(t,"borderTopColor"))}var re=new PropTween(this._pt,t.style,r,0,1,_renderComplexString),ie=0,ae=0,oe,le,ue,de,he,pe,_e,Ce,xe,Ie,Ne,Oe;if(re.b=i,re.e=g,i+="",g+="",g.substring(0,6)==="var(--"&&(g=_getComputedProperty(t,g.substring(4,g.indexOf(")")))),g==="auto"&&(pe=t.style[r],t.style[r]=g,g=_getComputedProperty(t,r)||g,pe?t.style[r]=pe:_removeProperty(t,r)),oe=[i,g],_colorStringFilter(oe),i=oe[0],g=oe[1],ue=i.match(_numWithUnitExp)||[],Oe=g.match(_numWithUnitExp)||[],Oe.length){for(;le=_numWithUnitExp.exec(g);)_e=le[0],xe=g.substring(ie,le.index),he?he=(he+1)%5:(xe.substr(-5)==="rgba("||xe.substr(-5)==="hsla(")&&(he=1),_e!==(pe=ue[ae++]||"")&&(de=parseFloat(pe)||0,Ne=pe.substr((de+"").length),_e.charAt(1)==="="&&(_e=_parseRelative(de,_e)+Ne),Ce=parseFloat(_e),Ie=_e.substr((Ce+"").length),ie=_numWithUnitExp.lastIndex-Ie.length,Ie||(Ie=Ie||_config.units[r]||Ne,ie===g.length&&(g+=Ie,re.e+=Ie)),Ne!==Ie&&(de=_convertToUnit(t,r,pe,Ie)||0),re._pt={_next:re._pt,p:xe||ae===1?xe:",",s:de,c:Ce-de,m:he&&he<4||r==="zIndex"?Math.round:0});re.c=ie-1;)re=$[ae],_transformProps[re]&&(ie=1,re=re==="transformOrigin"?_transformOriginProp:_transformProp),_removeProperty(i,re);ie&&(_removeProperty(i,_transformProp),V&&(V.svg&&i.removeAttribute("transform"),g.scale=g.rotate=g.translate="none",_parseTransform(i,1),V.uncache=1,_removeIndependentTransforms(g)))}},_specialProps={clearProps:function n(t,r,i,g,$){if($.data!=="isFromStart"){var V=t._pt=new PropTween(t._pt,r,i,0,0,_renderClearProps);return V.u=g,V.pr=-10,V.tween=$,t._props.push(i),1}}},_identity2DMatrix=[1,0,0,1,0,0],_rotationalProperties={},_isNullTransform=function n(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},_getComputedTransformMatrixAsArray=function n(t){var r=_getComputedProperty(t,_transformProp);return _isNullTransform(r)?_identity2DMatrix:r.substr(7).match(_numExp).map(_round)},_getMatrix=function n(t,r){var i=t._gsap||_getCache(t),g=t.style,$=_getComputedTransformMatrixAsArray(t),V,re,ie,ae;return i.svg&&t.getAttribute("transform")?(ie=t.transform.baseVal.consolidate().matrix,$=[ie.a,ie.b,ie.c,ie.d,ie.e,ie.f],$.join(",")==="1,0,0,1,0,0"?_identity2DMatrix:$):($===_identity2DMatrix&&!t.offsetParent&&t!==_docElement&&!i.svg&&(ie=g.display,g.display="block",V=t.parentNode,(!V||!t.offsetParent&&!t.getBoundingClientRect().width)&&(ae=1,re=t.nextElementSibling,_docElement.appendChild(t)),$=_getComputedTransformMatrixAsArray(t),ie?g.display=ie:_removeProperty(t,"display"),ae&&(re?V.insertBefore(t,re):V?V.appendChild(t):_docElement.removeChild(t))),r&&$.length>6?[$[0],$[1],$[4],$[5],$[12],$[13]]:$)},_applySVGOrigin=function n(t,r,i,g,$,V){var re=t._gsap,ie=$||_getMatrix(t,!0),ae=re.xOrigin||0,oe=re.yOrigin||0,le=re.xOffset||0,ue=re.yOffset||0,de=ie[0],he=ie[1],pe=ie[2],_e=ie[3],Ce=ie[4],xe=ie[5],Ie=r.split(" "),Ne=parseFloat(Ie[0])||0,Oe=parseFloat(Ie[1])||0,$e,Ve,Ue,Fe;i?ie!==_identity2DMatrix&&(Ve=de*_e-he*pe)&&(Ue=Ne*(_e/Ve)+Oe*(-pe/Ve)+(pe*xe-_e*Ce)/Ve,Fe=Ne*(-he/Ve)+Oe*(de/Ve)-(de*xe-he*Ce)/Ve,Ne=Ue,Oe=Fe):($e=_getBBox(t),Ne=$e.x+(~Ie[0].indexOf("%")?Ne/100*$e.width:Ne),Oe=$e.y+(~(Ie[1]||Ie[0]).indexOf("%")?Oe/100*$e.height:Oe)),g||g!==!1&&re.smooth?(Ce=Ne-ae,xe=Oe-oe,re.xOffset=le+(Ce*de+xe*pe)-Ce,re.yOffset=ue+(Ce*he+xe*_e)-xe):re.xOffset=re.yOffset=0,re.xOrigin=Ne,re.yOrigin=Oe,re.smooth=!!g,re.origin=r,re.originIsAbsolute=!!i,t.style[_transformOriginProp]="0px 0px",V&&(_addNonTweeningPT(V,re,"xOrigin",ae,Ne),_addNonTweeningPT(V,re,"yOrigin",oe,Oe),_addNonTweeningPT(V,re,"xOffset",le,re.xOffset),_addNonTweeningPT(V,re,"yOffset",ue,re.yOffset)),t.setAttribute("data-svg-origin",Ne+" "+Oe)},_parseTransform=function n(t,r){var i=t._gsap||new GSCache(t);if("x"in i&&!r&&!i.uncache)return i;var g=t.style,$=i.scaleX<0,V="px",re="deg",ie=getComputedStyle(t),ae=_getComputedProperty(t,_transformOriginProp)||"0",oe,le,ue,de,he,pe,_e,Ce,xe,Ie,Ne,Oe,$e,Ve,Ue,Fe,ze,Pt,qe,Et,kt,At,Dt,Lt,jt,hn,vn,_n,wn,bn,Cn,Sn;return oe=le=ue=pe=_e=Ce=xe=Ie=Ne=0,de=he=1,i.svg=!!(t.getCTM&&_isSVG(t)),ie.translate&&((ie.translate!=="none"||ie.scale!=="none"||ie.rotate!=="none")&&(g[_transformProp]=(ie.translate!=="none"?"translate3d("+(ie.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(ie.rotate!=="none"?"rotate("+ie.rotate+") ":"")+(ie.scale!=="none"?"scale("+ie.scale.split(" ").join(",")+") ":"")+(ie[_transformProp]!=="none"?ie[_transformProp]:"")),g.scale=g.rotate=g.translate="none"),Ve=_getMatrix(t,i.svg),i.svg&&(i.uncache?(jt=t.getBBox(),ae=i.xOrigin-jt.x+"px "+(i.yOrigin-jt.y)+"px",Lt=""):Lt=!r&&t.getAttribute("data-svg-origin"),_applySVGOrigin(t,Lt||ae,!!Lt||i.originIsAbsolute,i.smooth!==!1,Ve)),Oe=i.xOrigin||0,$e=i.yOrigin||0,Ve!==_identity2DMatrix&&(Pt=Ve[0],qe=Ve[1],Et=Ve[2],kt=Ve[3],oe=At=Ve[4],le=Dt=Ve[5],Ve.length===6?(de=Math.sqrt(Pt*Pt+qe*qe),he=Math.sqrt(kt*kt+Et*Et),pe=Pt||qe?_atan2(qe,Pt)*_RAD2DEG:0,xe=Et||kt?_atan2(Et,kt)*_RAD2DEG+pe:0,xe&&(he*=Math.abs(Math.cos(xe*_DEG2RAD))),i.svg&&(oe-=Oe-(Oe*Pt+$e*Et),le-=$e-(Oe*qe+$e*kt))):(Sn=Ve[6],bn=Ve[7],vn=Ve[8],_n=Ve[9],wn=Ve[10],Cn=Ve[11],oe=Ve[12],le=Ve[13],ue=Ve[14],Ue=_atan2(Sn,wn),_e=Ue*_RAD2DEG,Ue&&(Fe=Math.cos(-Ue),ze=Math.sin(-Ue),Lt=At*Fe+vn*ze,jt=Dt*Fe+_n*ze,hn=Sn*Fe+wn*ze,vn=At*-ze+vn*Fe,_n=Dt*-ze+_n*Fe,wn=Sn*-ze+wn*Fe,Cn=bn*-ze+Cn*Fe,At=Lt,Dt=jt,Sn=hn),Ue=_atan2(-Et,wn),Ce=Ue*_RAD2DEG,Ue&&(Fe=Math.cos(-Ue),ze=Math.sin(-Ue),Lt=Pt*Fe-vn*ze,jt=qe*Fe-_n*ze,hn=Et*Fe-wn*ze,Cn=kt*ze+Cn*Fe,Pt=Lt,qe=jt,Et=hn),Ue=_atan2(qe,Pt),pe=Ue*_RAD2DEG,Ue&&(Fe=Math.cos(Ue),ze=Math.sin(Ue),Lt=Pt*Fe+qe*ze,jt=At*Fe+Dt*ze,qe=qe*Fe-Pt*ze,Dt=Dt*Fe-At*ze,Pt=Lt,At=jt),_e&&Math.abs(_e)+Math.abs(pe)>359.9&&(_e=pe=0,Ce=180-Ce),de=_round(Math.sqrt(Pt*Pt+qe*qe+Et*Et)),he=_round(Math.sqrt(Dt*Dt+Sn*Sn)),Ue=_atan2(At,Dt),xe=Math.abs(Ue)>2e-4?Ue*_RAD2DEG:0,Ne=Cn?1/(Cn<0?-Cn:Cn):0),i.svg&&(Lt=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!_isNullTransform(_getComputedProperty(t,_transformProp)),Lt&&t.setAttribute("transform",Lt))),Math.abs(xe)>90&&Math.abs(xe)<270&&($?(de*=-1,xe+=pe<=0?180:-180,pe+=pe<=0?180:-180):(he*=-1,xe+=xe<=0?180:-180)),r=r||i.uncache,i.x=oe-((i.xPercent=oe&&(!r&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-oe)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+V,i.y=le-((i.yPercent=le&&(!r&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-le)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+V,i.z=ue+V,i.scaleX=_round(de),i.scaleY=_round(he),i.rotation=_round(pe)+re,i.rotationX=_round(_e)+re,i.rotationY=_round(Ce)+re,i.skewX=xe+re,i.skewY=Ie+re,i.transformPerspective=Ne+V,(i.zOrigin=parseFloat(ae.split(" ")[2])||!r&&i.zOrigin||0)&&(g[_transformOriginProp]=_firstTwoOnly(ae)),i.xOffset=i.yOffset=0,i.force3D=_config.force3D,i.renderTransform=i.svg?_renderSVGTransforms:_supports3D?_renderCSSTransforms:_renderNon3DTransforms,i.uncache=0,i},_firstTwoOnly=function n(t){return(t=t.split(" "))[0]+" "+t[1]},_addPxTranslate=function n(t,r,i){var g=getUnit(r);return _round(parseFloat(r)+parseFloat(_convertToUnit(t,"x",i+"px",g)))+g},_renderNon3DTransforms=function n(t,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,_renderCSSTransforms(t,r)},_zeroDeg="0deg",_zeroPx="0px",_endParenthesis=") ",_renderCSSTransforms=function n(t,r){var i=r||this,g=i.xPercent,$=i.yPercent,V=i.x,re=i.y,ie=i.z,ae=i.rotation,oe=i.rotationY,le=i.rotationX,ue=i.skewX,de=i.skewY,he=i.scaleX,pe=i.scaleY,_e=i.transformPerspective,Ce=i.force3D,xe=i.target,Ie=i.zOrigin,Ne="",Oe=Ce==="auto"&&t&&t!==1||Ce===!0;if(Ie&&(le!==_zeroDeg||oe!==_zeroDeg)){var $e=parseFloat(oe)*_DEG2RAD,Ve=Math.sin($e),Ue=Math.cos($e),Fe;$e=parseFloat(le)*_DEG2RAD,Fe=Math.cos($e),V=_addPxTranslate(xe,V,Ve*Fe*-Ie),re=_addPxTranslate(xe,re,-Math.sin($e)*-Ie),ie=_addPxTranslate(xe,ie,Ue*Fe*-Ie+Ie)}_e!==_zeroPx&&(Ne+="perspective("+_e+_endParenthesis),(g||$)&&(Ne+="translate("+g+"%, "+$+"%) "),(Oe||V!==_zeroPx||re!==_zeroPx||ie!==_zeroPx)&&(Ne+=ie!==_zeroPx||Oe?"translate3d("+V+", "+re+", "+ie+") ":"translate("+V+", "+re+_endParenthesis),ae!==_zeroDeg&&(Ne+="rotate("+ae+_endParenthesis),oe!==_zeroDeg&&(Ne+="rotateY("+oe+_endParenthesis),le!==_zeroDeg&&(Ne+="rotateX("+le+_endParenthesis),(ue!==_zeroDeg||de!==_zeroDeg)&&(Ne+="skew("+ue+", "+de+_endParenthesis),(he!==1||pe!==1)&&(Ne+="scale("+he+", "+pe+_endParenthesis),xe.style[_transformProp]=Ne||"translate(0, 0)"},_renderSVGTransforms=function n(t,r){var i=r||this,g=i.xPercent,$=i.yPercent,V=i.x,re=i.y,ie=i.rotation,ae=i.skewX,oe=i.skewY,le=i.scaleX,ue=i.scaleY,de=i.target,he=i.xOrigin,pe=i.yOrigin,_e=i.xOffset,Ce=i.yOffset,xe=i.forceCSS,Ie=parseFloat(V),Ne=parseFloat(re),Oe,$e,Ve,Ue,Fe;ie=parseFloat(ie),ae=parseFloat(ae),oe=parseFloat(oe),oe&&(oe=parseFloat(oe),ae+=oe,ie+=oe),ie||ae?(ie*=_DEG2RAD,ae*=_DEG2RAD,Oe=Math.cos(ie)*le,$e=Math.sin(ie)*le,Ve=Math.sin(ie-ae)*-ue,Ue=Math.cos(ie-ae)*ue,ae&&(oe*=_DEG2RAD,Fe=Math.tan(ae-oe),Fe=Math.sqrt(1+Fe*Fe),Ve*=Fe,Ue*=Fe,oe&&(Fe=Math.tan(oe),Fe=Math.sqrt(1+Fe*Fe),Oe*=Fe,$e*=Fe)),Oe=_round(Oe),$e=_round($e),Ve=_round(Ve),Ue=_round(Ue)):(Oe=le,Ue=ue,$e=Ve=0),(Ie&&!~(V+"").indexOf("px")||Ne&&!~(re+"").indexOf("px"))&&(Ie=_convertToUnit(de,"x",V,"px"),Ne=_convertToUnit(de,"y",re,"px")),(he||pe||_e||Ce)&&(Ie=_round(Ie+he-(he*Oe+pe*Ve)+_e),Ne=_round(Ne+pe-(he*$e+pe*Ue)+Ce)),(g||$)&&(Fe=de.getBBox(),Ie=_round(Ie+g/100*Fe.width),Ne=_round(Ne+$/100*Fe.height)),Fe="matrix("+Oe+","+$e+","+Ve+","+Ue+","+Ie+","+Ne+")",de.setAttribute("transform",Fe),xe&&(de.style[_transformProp]=Fe)},_addRotationalPropTween=function n(t,r,i,g,$){var V=360,re=_isString($),ie=parseFloat($)*(re&&~$.indexOf("rad")?_RAD2DEG:1),ae=ie-g,oe=g+ae+"deg",le,ue;return re&&(le=$.split("_")[1],le==="short"&&(ae%=V,ae!==ae%(V/2)&&(ae+=ae<0?V:-V)),le==="cw"&&ae<0?ae=(ae+V*_bigNum)%V-~~(ae/V)*V:le==="ccw"&&ae>0&&(ae=(ae-V*_bigNum)%V-~~(ae/V)*V)),t._pt=ue=new PropTween(t._pt,r,i,g,ae,_renderPropWithEnd),ue.e=oe,ue.u="deg",t._props.push(i),ue},_assign=function n(t,r){for(var i in r)t[i]=r[i];return t},_addRawTransformPTs=function n(t,r,i){var g=_assign({},i._gsap),$="perspective,force3D,transformOrigin,svgOrigin",V=i.style,re,ie,ae,oe,le,ue,de,he;g.svg?(ae=i.getAttribute("transform"),i.setAttribute("transform",""),V[_transformProp]=r,re=_parseTransform(i,1),_removeProperty(i,_transformProp),i.setAttribute("transform",ae)):(ae=getComputedStyle(i)[_transformProp],V[_transformProp]=r,re=_parseTransform(i,1),V[_transformProp]=ae);for(ie in _transformProps)ae=g[ie],oe=re[ie],ae!==oe&&$.indexOf(ie)<0&&(de=getUnit(ae),he=getUnit(oe),le=de!==he?_convertToUnit(i,ie,ae,he):parseFloat(ae),ue=parseFloat(oe),t._pt=new PropTween(t._pt,re,ie,le,ue-le,_renderCSSProp),t._pt.u=he||0,t._props.push(ie));_assign(re,g)};_forEachName("padding,margin,Width,Radius",function(n,t){var r="Top",i="Right",g="Bottom",$="Left",V=(t<3?[r,i,g,$]:[r+$,r+i,g+i,g+$]).map(function(re){return t<2?n+re:"border"+re+n});_specialProps[t>1?"border"+n:n]=function(re,ie,ae,oe,le){var ue,de;if(arguments.length<4)return ue=V.map(function(he){return _get(re,he,ae)}),de=ue.join(" "),de.split(ue[0]).length===5?ue[0]:de;ue=(oe+"").split(" "),de={},V.forEach(function(he,pe){return de[he]=ue[pe]=ue[pe]||ue[(pe-1)/2|0]}),re.init(ie,de,le)}});var CSSPlugin={name:"css",register:_initCore,targetTest:function n(t){return t.style&&t.nodeType},init:function n(t,r,i,g,$){var V=this._props,re=t.style,ie=i.vars.startAt,ae,oe,le,ue,de,he,pe,_e,Ce,xe,Ie,Ne,Oe,$e,Ve,Ue,Fe;_pluginInitted||_initCore(),this.styles=this.styles||_getStyleSaver(t),Ue=this.styles.props,this.tween=i;for(pe in r)if(pe!=="autoRound"&&(oe=r[pe],!(_plugins[pe]&&_checkPlugin(pe,r,i,g,t,$)))){if(de=typeof oe,he=_specialProps[pe],de==="function"&&(oe=oe.call(i,g,t,$),de=typeof oe),de==="string"&&~oe.indexOf("random(")&&(oe=_replaceRandom(oe)),he)he(this,t,pe,oe,i)&&(Ve=1);else if(pe.substr(0,2)==="--")ae=(getComputedStyle(t).getPropertyValue(pe)+"").trim(),oe+="",_colorExp.lastIndex=0,_colorExp.test(ae)||(_e=getUnit(ae),Ce=getUnit(oe),Ce?_e!==Ce&&(ae=_convertToUnit(t,pe,ae,Ce)+Ce):_e&&(oe+=_e)),this.add(re,"setProperty",ae,oe,g,$,0,0,pe),V.push(pe),Ue.push(pe,0,re[pe]);else if(de!=="undefined"){if(ie&&pe in ie?(ae=typeof ie[pe]=="function"?ie[pe].call(i,g,t,$):ie[pe],_isString(ae)&&~ae.indexOf("random(")&&(ae=_replaceRandom(ae)),getUnit(ae+"")||ae==="auto"||(ae+=_config.units[pe]||getUnit(_get(t,pe))||""),(ae+"").charAt(1)==="="&&(ae=_get(t,pe))):ae=_get(t,pe),ue=parseFloat(ae),xe=de==="string"&&oe.charAt(1)==="="&&oe.substr(0,2),xe&&(oe=oe.substr(2)),le=parseFloat(oe),pe in _propertyAliases&&(pe==="autoAlpha"&&(ue===1&&_get(t,"visibility")==="hidden"&&le&&(ue=0),Ue.push("visibility",0,re.visibility),_addNonTweeningPT(this,re,"visibility",ue?"inherit":"hidden",le?"inherit":"hidden",!le)),pe!=="scale"&&pe!=="transform"&&(pe=_propertyAliases[pe],~pe.indexOf(",")&&(pe=pe.split(",")[0]))),Ie=pe in _transformProps,Ie){if(this.styles.save(pe),Fe=oe,de==="string"&&oe.substring(0,6)==="var(--"){if(oe=_getComputedProperty(t,oe.substring(4,oe.indexOf(")"))),oe.substring(0,5)==="calc("){var ze=t.style.perspective;t.style.perspective=oe,oe=_getComputedProperty(t,"perspective"),ze?t.style.perspective=ze:_removeProperty(t,"perspective")}le=parseFloat(oe)}if(Ne||(Oe=t._gsap,Oe.renderTransform&&!r.parseTransform||_parseTransform(t,r.parseTransform),$e=r.smoothOrigin!==!1&&Oe.smooth,Ne=this._pt=new PropTween(this._pt,re,_transformProp,0,1,Oe.renderTransform,Oe,0,-1),Ne.dep=1),pe==="scale")this._pt=new PropTween(this._pt,Oe,"scaleY",Oe.scaleY,(xe?_parseRelative(Oe.scaleY,xe+le):le)-Oe.scaleY||0,_renderCSSProp),this._pt.u=0,V.push("scaleY",pe),pe+="X";else if(pe==="transformOrigin"){Ue.push(_transformOriginProp,0,re[_transformOriginProp]),oe=_convertKeywordsToPercentages(oe),Oe.svg?_applySVGOrigin(t,oe,0,$e,0,this):(Ce=parseFloat(oe.split(" ")[2])||0,Ce!==Oe.zOrigin&&_addNonTweeningPT(this,Oe,"zOrigin",Oe.zOrigin,Ce),_addNonTweeningPT(this,re,pe,_firstTwoOnly(ae),_firstTwoOnly(oe)));continue}else if(pe==="svgOrigin"){_applySVGOrigin(t,oe,1,$e,0,this);continue}else if(pe in _rotationalProperties){_addRotationalPropTween(this,Oe,pe,ue,xe?_parseRelative(ue,xe+oe):oe);continue}else if(pe==="smoothOrigin"){_addNonTweeningPT(this,Oe,"smooth",Oe.smooth,oe);continue}else if(pe==="force3D"){Oe[pe]=oe;continue}else if(pe==="transform"){_addRawTransformPTs(this,oe,t);continue}}else pe in re||(pe=_checkPropPrefix(pe)||pe);if(Ie||(le||le===0)&&(ue||ue===0)&&!_complexExp.test(oe)&&pe in re)_e=(ae+"").substr((ue+"").length),le||(le=0),Ce=getUnit(oe)||(pe in _config.units?_config.units[pe]:_e),_e!==Ce&&(ue=_convertToUnit(t,pe,ae,Ce)),this._pt=new PropTween(this._pt,Ie?Oe:re,pe,ue,(xe?_parseRelative(ue,xe+le):le)-ue,!Ie&&(Ce==="px"||pe==="zIndex")&&r.autoRound!==!1?_renderRoundedCSSProp:_renderCSSProp),this._pt.u=Ce||0,Ie&&Fe!==oe?(this._pt.b=ae,this._pt.e=Fe,this._pt.r=_renderCSSPropWithBeginningAndEnd):_e!==Ce&&Ce!=="%"&&(this._pt.b=ae,this._pt.r=_renderCSSPropWithBeginning);else if(pe in re)_tweenComplexCSSString.call(this,t,pe,ae,xe?xe+oe:oe);else if(pe in t)this.add(t,pe,ae||t[pe],xe?xe+oe:oe,g,$);else if(pe!=="parseTransform"){_missingPlugin(pe,oe);continue}Ie||(pe in re?Ue.push(pe,0,re[pe]):typeof t[pe]=="function"?Ue.push(pe,2,t[pe]()):Ue.push(pe,1,ae||t[pe])),V.push(pe)}}Ve&&_sortPropTweensByPriority(this)},render:function n(t,r){if(r.tween._time||!_reverting())for(var i=r._pt;i;)i.r(t,i.d),i=i._next;else r.styles.revert()},get:_get,aliases:_propertyAliases,getSetter:function n(t,r,i){var g=_propertyAliases[r];return g&&g.indexOf(",")<0&&(r=g),r in _transformProps&&r!==_transformOriginProp&&(t._gsap.x||_get(t,"x"))?i&&_recentSetterPlugin===i?r==="scale"?_setterScale:_setterTransform:(_recentSetterPlugin=i||{})&&(r==="scale"?_setterScaleWithRender:_setterTransformWithRender):t.style&&!_isUndefined(t.style[r])?_setterCSSStyle:~r.indexOf("-")?_setterCSSProp:_getSetter(t,r)},core:{_removeProperty,_getMatrix}};gsap.utils.checkPrefix=_checkPropPrefix;gsap.core.getStyleSaver=_getStyleSaver;(function(n,t,r,i){var g=_forEachName(n+","+t+","+r,function($){_transformProps[$]=1});_forEachName(t,function($){_config.units[$]="deg",_rotationalProperties[$]=1}),_propertyAliases[g[13]]=n+","+t,_forEachName(i,function($){var V=$.split(":");_propertyAliases[V[1]]=g[V[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");_forEachName("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){_config.units[n]="px"});gsap.registerPlugin(CSSPlugin);var gsapWithCSS=gsap.registerPlugin(CSSPlugin)||gsap;gsapWithCSS.core.Tween;const _hoisted_1$3={class:"scene-wrapper"},_hoisted_2$2={class:"control-buttons"},_sfc_main$5=defineComponent({__name:"vue-three-groundFloor",setup(n){var Et,kt,At,Dt;const t=ref(),r=new Scene,i=new PerspectiveCamera(45,((Et=t.value)==null?void 0:Et.clientWidth)/((kt=t.value)==null?void 0:kt.clientHeight),.1,1e3);i.position.set(0,14,13.5),i.lookAt(0,0,0);const g=new AxesHelper(100);r.add(g);const $=new WebGLRenderer({antialias:!0,alpha:!0,preserveDrawingBuffer:!0});$.setClearColor(new Color("#131519")),$.setSize((At=t.value)==null?void 0:At.clientWidth,(Dt=t.value)==null?void 0:Dt.clientHeight),$.shadowMap.enabled=!0,$.setPixelRatio(window.devicePixelRatio||1);const V=new OrbitControls(i,$.domElement);V.autoRotate=!1,V.autoRotateSpeed=5,V.dampingFactor=.1,V.enableDamping=!0,V.enableRotate=!0,V.minDistance=10,V.maxPolarAngle=Math.PI*.5,r.add(new AxesHelper(20));const re=new AmbientLight("#ffffff",1.8);r.add(re);const ie=new DirectionalLight("#ffffff",1.8);r.add(ie),ie.position.set(20,20,10);const ae=new PointLight("#ffffff",1.8,1e3);r.add(ae),ae.position.set(0,40,0);let oe=[],le=[],ue=[],de=[],he=[],pe=[];const _e=new GLTFLoader,Ce=new TextureLoader,xe=new MeshBasicMaterial({color:4235007,transparent:!0,opacity:.3}),Ie=Ce.load("/models/texture/alpha.png"),Ne=new MeshBasicMaterial({color:4235007,alphaMap:Ie,transparent:!0});_e.load("/models/groundFloor/ground_floor06.gltf",Lt=>{Lt.scene.children.forEach(jt=>{var hn;if(jt.name.includes("area_oneFloor")){const vn=jt.geometry;vn.computeBoundingBox(),vn.center();const _n=((hn=vn.boundingBox)==null?void 0:hn.clone())||new Box3;jt.updateWorldMatrix(!0,!0),_n.applyMatrix4(jt.matrixWorld);const wn=new BoxHelper(jt,15790320);wn.material.transparent=!0,wn.material.opacity=.38,r.add(wn);const bn=new Vector3;jt.getWorldPosition(bn);const Cn=document.createElement("canvas"),Sn=window.devicePixelRatio||1;Cn.width=512*Sn,Cn.height=256*Sn,Cn.style.width="512px",Cn.style.height="256px";const Tn=Cn.getContext("2d");Tn&&(Tn.scale(Sn,Sn),Tn.fillStyle="rgba(0, 0, 0, 0)",Tn.fillRect(0,0,512,256),Tn.fillStyle="white",Tn.textAlign="center",Tn.textBaseline="middle",Tn.font="24px 微软雅黑, Arial, sans-serif",Tn.fillText($e(jt.name),256,128));const En=new CanvasTexture(Cn),kn=new SpriteMaterial({map:En}),$n=new Sprite(kn);$n.scale.set(4,2,1),$n.position.copy(bn),$n.position.y+=1.5,r.add($n),$n.visible=!1,wn.visible=!1,jt.visible=!1,oe.push($n),oe.push(wn),oe.push(jt),he.push(jt)}else if(jt.name.includes("acoustoOptic")){jt.visible=!1;let vn=jt.position;const _n=new SphereGeometry(1,13,8),wn=new Mesh(_n,xe);wn.position.set(vn.x,vn.y,vn.z),r.add(wn),wn.visible=!1,le.push(wn),le.push(jt),pe.push({meshName:jt.name,targetMesh:jt,geometry:wn,controller:Oe(wn)}),he.push(jt)}else if(jt.name.includes("manual")){let vn=jt.position;const _n=new SphereGeometry(1,28,14),wn=new Mesh(_n,xe);wn.position.set(vn.x,vn.y,vn.z),r.add(wn),jt.visible=!1,wn.visible=!1,ue.push(wn),ue.push(jt),pe.push({meshName:jt.name,targetMesh:jt,geometry:wn,controller:Oe(wn)}),he.push(jt)}else if(jt.name.includes("smokeDetecto")){jt.visible=!1;let vn=jt.position;const _n=new ConeGeometry(1.8,1.8,16,1,!0),wn=new Mesh(_n,Ne);wn.position.set(vn.x,vn.y-.8,vn.z+.028),r.add(wn),wn.visible=!1,de.push(wn),de.push(jt),pe.push({meshName:jt.name,targetMesh:jt,geometry:wn,controller:Oe(wn)}),he.push(jt)}}),r.add(Lt.scene)}),console.log("xxx:",pe);function Oe(Lt){if(!Lt.material){console.warn("对象没有材质属性:",Lt);return}const hn=(Array.isArray(Lt.material)?Lt.material:[Lt.material])[0];if(!("color"in hn)){console.warn("材质没有color属性:",hn);return}const vn=hn.clone(),_n=hn.clone();_n.color.set(15114812);const wn=hn.clone();wn.color.set(16084076);let bn=!1,Cn=!1;function Sn(){if(bn)return;bn=!0,Lt.material=_n,gsapWithCSS.timeline({repeat:-1,yoyo:!0}).to(Lt.material,{opacity:.7,duration:.5,ease:"sine.inOut"}).to(Lt.material,{opacity:.2,duration:.5,ease:"sine.inOut"})}function Tn(){if(Cn)return;Cn=!0,Lt.material=wn,gsapWithCSS.timeline({repeat:-1,yoyo:!0}).to(Lt.material,{opacity:.7,duration:.5,ease:"sine.inOut"}).to(Lt.material,{opacity:.2,duration:.5,ease:"sine.inOut"})}function En(){bn&&(bn=!1,Lt.visible=!0,Lt.material=vn)}return Lt.startAlarm=Sn,Lt.restore=En,Lt.startMalfunction=Tn,Lt}function $e(Lt){switch(Lt){case"area_oneFloor_35kV":return"35kV高压室";case"area_oneFloor_220kV":return"220kV维电器室";case"area_oneFloor_14":return"备品备件间";case"area_oneFloor_3":return"站用电柜室";case"area_oneFloor_13":return"110kV电镜间(一)";case"area_oneFloor_4":return"1站用变室";case"area_oneFloor_6":return"消弧线圈1室";case"area_oneFloor_7":return"消弧线圈2室";case"area_oneFloor_8":return"消弧线圈3室";case"area_oneFloor_9":return"2站用变室";case"area_oneFloor_10":return"110kV电镜间(二)";case"area_oneFloor_12":return"工具间";case"area_oneFloor_11":return"消弧线圈4室";default:return"未知"}}function Ve(){requestAnimationFrame(Ve),V.update(),$.render(r,i)}let Ue=null;const Fe=gsapWithCSS.timeline(),ze=gsapWithCSS.timeline();function Pt(Lt,jt){Fe.to(i.position,{x:Lt.x,y:Lt.y,z:Lt.z,duration:1,ease:"power2.inOut"}),ze.to(V.target,{x:jt.x,y:jt.y,z:jt.z,duration:1,ease:"power2.inOut"})}function qe(Lt){Pt(new Vector3(0,14,13.5),new Vector3(0,0,0)),Lt==="area_oneFloor"?(oe.forEach(jt=>{jt.visible=!0}),le.forEach(jt=>{jt.visible=!1}),ue.forEach(jt=>{jt.visible=!1}),de.forEach(jt=>{jt.visible=!1})):Lt==="acoustoOptic"?(oe.forEach(jt=>{jt.visible=!1}),le.forEach(jt=>{jt.visible=!0}),ue.forEach(jt=>{jt.visible=!1}),de.forEach(jt=>{jt.visible=!1})):Lt==="manual"?(oe.forEach(jt=>{jt.visible=!1}),le.forEach(jt=>{jt.visible=!1}),ue.forEach(jt=>{jt.visible=!0}),de.forEach(jt=>{jt.visible=!1})):Lt==="smokeDetector"?(oe.forEach(jt=>{jt.visible=!1}),le.forEach(jt=>{jt.visible=!1}),ue.forEach(jt=>{jt.visible=!1}),de.forEach(jt=>{jt.visible=!0})):Lt==="refresh"&&(oe.forEach(jt=>{jt.visible=!1}),le.forEach(jt=>{jt.visible=!1}),ue.forEach(jt=>{jt.visible=!1}),de.forEach(jt=>{jt.visible=!1}))}return onMounted(()=>{const Lt=t.value;Lt.appendChild($.domElement),i.aspect=Lt.clientWidth/Lt.clientHeight,i.updateProjectionMatrix(),$.setSize(Lt.clientWidth,Lt.clientHeight),Ue=new ResizeObserver(()=>{i.aspect=Lt.clientWidth/Lt.clientHeight,i.updateProjectionMatrix(),$.setSize(Lt.clientWidth,Lt.clientHeight)}),Ue.observe(Lt);const jt=new Raycaster,hn=new Vector2;$.domElement.addEventListener("click",vn=>{var Tn;const _n=Lt.getBoundingClientRect(),wn=vn.clientX-_n.left,bn=vn.clientY-_n.top;hn.x=wn/Lt.clientWidth*2-1,hn.y=-(bn/Lt.clientHeight)*2+1,jt.setFromCamera(hn,i);const Cn=[...he].filter(En=>En.visible),Sn=jt.intersectObjects(Cn,!0);if(Sn.length>0){let En,kn=0,$n=0,An=0,xn;Sn[0].object.name.includes("acoustoSon")||Sn[0].object.name.includes("manualSon")||Sn[0].object.name.includes("smokeSon")?(xn=Sn[0].object.parent,En=((Tn=Sn[0].object.parent)==null?void 0:Tn.position)||new Vector3(0,0,0),kn=-.3,$n=.5,An=.5):(xn=Sn[0].object,En=Sn[0].object.position,kn=-1,$n=3,An=3),console.log("点击了物体",xn),En&&Pt(new Vector3(En.x+kn,En.y+$n,En.z+An),new Vector3(En.x,En.y,En.z))}}),Ve()}),onUnmounted(()=>{Ue&&(Ue.disconnect(),Ue=null)}),(Lt,jt)=>{const hn=resolveComponent("el-button");return openBlock(),createElementBlock("div",_hoisted_1$3,[createBaseVNode("div",{ref_key:"containerRef",ref:t,class:"container"},null,512),createBaseVNode("div",_hoisted_2$2,[createVNode$1(hn,{type:"primary",onClick:jt[0]||(jt[0]=vn=>qe("area_oneFloor")),icon:unref(bell_default)},null,8,["icon"]),createVNode$1(hn,{type:"warning",onClick:jt[1]||(jt[1]=vn=>qe("smokeDetector")),icon:unref(compass_default)},null,8,["icon"]),createVNode$1(hn,{type:"warning",onClick:jt[2]||(jt[2]=vn=>qe("acoustoOptic")),icon:unref(magic_stick_default)},null,8,["icon"]),createVNode$1(hn,{type:"warning",onClick:jt[3]||(jt[3]=vn=>qe("manual")),icon:unref(star_default)},null,8,["icon"]),createVNode$1(hn,{type:"warning",onClick:jt[4]||(jt[4]=vn=>qe("refresh")),icon:unref(refresh_default)},null,8,["icon"]),createVNode$1(hn,{type:"warning",onClick:jt[5]||(jt[5]=vn=>unref(pe)[0].controller.startAlarm()),icon:unref(refresh_default)},null,8,["icon"]),createVNode$1(hn,{type:"warning",onClick:jt[6]||(jt[6]=vn=>unref(pe)[0].controller.restore()),icon:unref(refresh_default)},null,8,["icon"])])])}}}),vueThreeGroundFloor_vue_vue_type_style_index_0_scoped_7dbcf4e4_lang="",VueThreeGroundFloor=_export_sfc$1(_sfc_main$5,[["__scopeId","data-v-7dbcf4e4"]]),_sfc_main$4=defineComponent({__name:"App",setup(n){const t=getCurrentInstance();t==null||t.appContext.app.component("vue-my-button",VueMyButton),t==null||t.appContext.app.component("vue-my-input",VueMyTest),t==null||t.appContext.app.component("vue-my-instrument",vueInstrument),t==null||t.appContext.app.component("vue-my-tableOnly",VueTableOnly),t==null||t.appContext.app.component("vue-my-complex",VueTableComplex),t==null||t.appContext.app.component("vue-my-img",VueImg),t==null||t.appContext.app.component("vue-my-run-info",VueRunInfo),t==null||t.appContext.app.component("vue-my-multi-type-info",VueMultiTypeInfo),t==null||t.appContext.app.component("vue-my-signal-info",VueSignalInfo),t==null||t.appContext.app.component("vue-my-signal-gaudy",vueSignalGaudy),t==null||t.appContext.app.component("vue-my-switch-info",VueSwitchInfo),t==null||t.appContext.app.component("vue-my-num-info",VueNumInfo),t==null||t.appContext.app.component("vue-my-regulator",VueRegulator),t==null||t.appContext.app.component("vue-my-base-table",_sfc_main$h),t==null||t.appContext.app.component("vue-my-regulator",VueRegulator),t==null||t.appContext.app.component("vue-my-three-machine",VueThreeMachine),t==null||t.appContext.app.component("vue-my-three-pipeline",VueThreePipeline),t==null||t.appContext.app.component("vue-my-base-card-info",VueBaseCardInfo),t==null||t.appContext.app.component("vue-my-photon-card",VuePhotonCard),t==null||t.appContext.app.component("vue-my-essential-information",VueEssentialInformation),t==null||t.appContext.app.component("vue-my-assemble-table",VueAssembleTable),t==null||t.appContext.app.component("vue-my-synthesize-table",VueSynthesizeTable),t==null||t.appContext.app.component("vue-my-three-smoke-siren",VueThreeSmokeSiren),t==null||t.appContext.app.component("vue-my-three-scene",VueThreeScene),t==null||t.appContext.app.component("vue-my-host-machine",VueHostMachine),t==null||t.appContext.app.component("vue-my-three-test",VueThreeTest),t==null||t.appContext.app.component("vue-my-three-ground-floor",VueThreeGroundFloor);const r=Object.assign({"./assets/svgs/electrical/三绕组变压器.svg":__vite_glob_0_0,"./assets/svgs/electrical/交流发电机.svg":__vite_glob_0_1,"./assets/svgs/electrical/双绕组变压器.svg":__vite_glob_0_2,"./assets/svgs/electrical/手车02.svg":__vite_glob_0_3}),i=Object.assign({"./assets/svgs/electrical/stroke/三绕组自耦变压器.svg":__vite_glob_1_0,"./assets/svgs/electrical/stroke/手车01.svg":__vite_glob_1_1,"./assets/svgs/electrical/stroke/接地.svg":__vite_glob_1_2,"./assets/svgs/electrical/stroke/断路器-开关.svg":__vite_glob_1_3,"./assets/svgs/electrical/stroke/消弧线圈.svg":__vite_glob_1_4,"./assets/svgs/electrical/stroke/熔断器.svg":__vite_glob_1_5,"./assets/svgs/electrical/stroke/电动机.svg":__vite_glob_1_6,"./assets/svgs/electrical/stroke/电容器.svg":__vite_glob_1_7,"./assets/svgs/electrical/stroke/电抗器.svg":__vite_glob_1_8,"./assets/svgs/electrical/stroke/电缆终端头.svg":__vite_glob_1_9,"./assets/svgs/electrical/stroke/自动空气断路器.svg":__vite_glob_1_10,"./assets/svgs/electrical/stroke/跌落式熔断器.svg":__vite_glob_1_11,"./assets/svgs/electrical/stroke/隔离开关-刀闸.svg":__vite_glob_1_12}),g=[];for(const $ in r){const V=$.split("/").pop().split(".")[0];g.push({id:V,title:V,type:"svg",thumbnail:"data:image/svg+xml;utf8,"+encodeURIComponent(r[$]),svg:r[$],props:{fill:{type:"color",val:"#FF0000",title:"填充色"}}})}for(const $ in i){const V=$.split("/").pop().split(".")[0];g.push({id:V,title:V,type:"svg",thumbnail:"data:image/svg+xml;utf8,"+encodeURIComponent(i[$]),svg:i[$],props:{stroke:{type:"color",val:"#00ff00",title:"边框色"}}})}return leftAsideStore.registerConfig("电气符号",g),leftAsideStore.registerConfig("vue四遥组件",[{id:"vue-my-signal-info",title:"vue遥信01",type:"vue",thumbnail:"/svgs/info.svg",props:{}},{id:"vue-my-signal-gaudy",title:"vue遥信02",type:"vue",thumbnail:"/svgs/signal-gaudy.svg",props:{moduleType:{type:"inputTypeTag",val:"遥信",title:"四遥类型"},moduleId:{type:"inputSelectId",val:"",title:"绑定ID"},location:{type:"select",val:"bottom",title:"名称位置",options:[{value:"top",label:"上"},{value:"bottom",label:"下"},{value:"left",label:"左"},{value:"right",label:"右"}]}}},{id:"vue-my-switch-info",title:"vue遥控",type:"vue",thumbnail:"/svgs/switch-info.svg",props:{moduleType:{type:"inputTypeTag",val:"遥控",title:"四遥类型"},moduleId:{type:"inputSelectId",val:"",title:"绑定ID"}}},{id:"vue-my-num-info",title:"vue遥测",type:"vue",thumbnail:"/svgs/num-info.svg",props:{moduleType:{type:"inputTypeTag",val:"遥测",title:"四遥类型"},moduleId:{type:"inputSelectId",val:"--",title:"绑定ID"},location:{type:"select",val:"bottom",title:"名称位置",options:[{value:"top",label:"上"},{value:"bottom",label:"下"},{value:"left",label:"左"},{value:"right",label:"右"}]}}},{id:"vue-my-regulator",title:"vue遥调",type:"vue",thumbnail:"/svgs/regulator.svg",props:{moduleType:{type:"inputTypeTag",val:"遥测",title:"四遥类型"},moduleId:{type:"inputSelectId",val:"--",title:"绑定ID"}}}]),leftAsideStore.registerConfig("vue公共组件",[{id:"vue-my-input",title:"vue输入框",type:"vue",thumbnail:"/svgs/my-input.svg",props:{modelValue:{type:"input",val:"输入框",title:"文本"},fontFamily:{title:"字体",type:"select",val:"黑体",options:[{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]},testColor:{type:"color",val:"#44B6E7",title:"文字颜色"}}},{id:"vue-my-tableOnly",title:"单一功能表单",type:"vue",thumbnail:"/svgs/table-only.svg",props:{fontFamily:{title:"字体",type:"select",val:"黑体",options:[{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]},fontSize:{type:"number",val:12,title:"字体大小"},testColor:{type:"color",val:"#767676",title:"文字颜色"}}},{id:"vue-my-complex",title:"分组功能表单",type:"vue",thumbnail:"/svgs/table-only.svg",props:{fontFamily:{title:"字体",type:"select",val:"黑体",options:[{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]},fontSize:{type:"number",val:12,title:"字体大小"},testColor:{type:"color",val:"#767676",title:"文字颜色"}}},{id:"vue-my-img",title:"vue图形组件",type:"vue",thumbnail:"/svgs/image.svg",props:{moduleId:{type:"upload",val:"--",title:"绑定"}}},{id:"vue-my-run-info",title:"vue运行信息",type:"vue",thumbnail:"/svgs/log.svg",props:{fontFamily:{title:"字体",type:"select",val:"Segoe UI",options:[{value:"Segoe UI",label:"Segoe UI"},{value:"微软雅黑",label:"微软雅黑"},{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]},fontSize:{type:"number",val:14,title:"字体大小"},testColor:{type:"color",val:"#000000",title:"文字颜色"},dataSource:{title:"信息类型",type:"select",val:"--",options:[{value:"globalOverview",label:"全站总揽"},{value:"fireExtinguishing",label:"消防系统"},{value:"firePolice",label:"火灾报警主机"}]}}},{id:"vue-my-multi-type-info",title:"vue运行状态信息",type:"vue",thumbnail:"/svgs/log-sel.svg",props:{headline:{type:"input",val:"自定义标题",title:"标题"},fontFamily:{title:"字体",type:"select",val:"Segoe UI",options:[{value:"Segoe UI",label:"Segoe UI"},{value:"微软雅黑",label:"微软雅黑"},{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]},fontSize:{type:"number",val:14,title:"字体大小"},dataSource:{type:"select",val:"ultraVires",title:"数据来源",options:[{value:"ultraVires",label:"越权信息"},{value:"linkage",label:"联动信息"},{value:"unitException",label:"异常设备"}]},testColor:{type:"color",val:"#000000",title:"文字颜色"}}},{id:"vue-my-base-table",title:"vue公共表格",type:"vue",thumbnail:"/svgs/table-base.svg",props:{dataSource:{title:"数据源",type:"select",val:"--",options:[{value:"wholeSiteMessage",label:"全站报文"},{value:"unitException",label:"异常设备"},{value:"unauthorized",label:"越权消息"}]}}}]),leftAsideStore.registerConfig("vue3D组件",[{id:"vue-my-three-machine",title:"3d机房",type:"vue",thumbnail:"/svgs/table-base.svg",props:{dataSource:{title:"数据源",type:"input",val:"--"}}},{id:"vue-my-three-pipeline",title:"3d管道",type:"vue",thumbnail:"/svgs/table-base.svg",props:{dataSource:{title:"数据源",type:"input",val:"--"}}},{id:"vue-my-three-smoke-siren",title:"3d烟感报警器+信息",type:"vue",thumbnail:"/svgs/table-only.svg",props:{dataSource:{title:"数据源",type:"input",val:"--"}}},{id:"vue-my-three-scene",title:"3d烟感报警器+楼层",type:"vue",thumbnail:"/svgs/table-only.svg",props:{dataSource:{title:"数据源",type:"input",val:"--"}}},{id:"vue-my-three-test",title:"3d-test",type:"vue",thumbnail:"/svgs/table-only.svg",props:{dataSource:{title:"数据源",type:"input",val:"--"}}},{id:"vue-my-three-ground-floor",title:"3d-生产综合楼一楼",type:"vue",thumbnail:"/svgs/table-only.svg",props:{dataSource:{title:"数据源",type:"input",val:"--"}}}]),leftAsideStore.registerConfig("vue组件",[{id:"vue-my-base-card-info",title:"火灾报警-火警卡片",type:"vue",thumbnail:"/svgs/table-base.svg",props:{fontFamily:{title:"字体",type:"select",val:"Segoe UI",options:[{value:"Segoe UI",label:"Segoe UI"},{value:"微软雅黑",label:"微软雅黑"},{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]},fontSize:{type:"number",val:14,title:"字体大小"},headline:{type:"input",val:"自定义标题",title:"标题"}}},{id:"vue-my-photon-card",title:"火灾报警主机-光字牌",type:"vue",thumbnail:"/svgs/table-base.svg",props:{fontFamily:{title:"字体",type:"select",val:"Segoe UI",options:[{value:"Segoe UI",label:"Segoe UI"},{value:"微软雅黑",label:"微软雅黑"},{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]},fontSize:{type:"number",val:14,title:"字体大小"},testColor:{type:"color",val:"#000000",title:"文字颜色"}}},{id:"vue-my-essential-information",title:"火灾报警主机-基本信息",type:"vue",thumbnail:"/svgs/table-base.svg",props:{fontFamily:{title:"字体",type:"select",val:"Segoe UI",options:[{value:"Segoe UI",label:"Segoe UI"},{value:"微软雅黑",label:"微软雅黑"},{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]},fontSize:{type:"number",val:14,title:"字体大小"},testColor:{type:"color",val:"#000000",title:"文字颜色"}}},{id:"vue-my-assemble-table",title:"火灾报警主机-装配说明",type:"vue",thumbnail:"/svgs/table-base.svg",props:{fontFamily:{title:"字体",type:"select",val:"黑体",options:[{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]},fontSize:{type:"number",val:12,title:"字体大小"},testColor:{type:"color",val:"#767676",title:"文字颜色"}}},{id:"vue-my-synthesize-table",title:"生产综合楼1楼-运行信息(表格)",type:"vue",thumbnail:"/svgs/table-only.svg",props:{fontFamily:{title:"字体",type:"select",val:"黑体",options:[{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]},fontSize:{type:"number",val:12,title:"字体大小"},testColor:{type:"color",val:"#767676",title:"文字颜色"}}},{id:"vue-my-host-machine",title:"生产综合楼1楼-主机",type:"vue",thumbnail:"/svgs/table-only.svg",props:{fontFamily:{title:"字体",type:"select",val:"Segoe UI",options:[{value:"Segoe UI",label:"Segoe UI"},{value:"微软雅黑",label:"微软雅黑"},{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]},fontSize:{type:"number",val:14,title:"字体大小"},headline:{type:"input",val:"自定义标题",title:"标题"}}}]),leftAsideStore.registerConfig("开发测试用",[{id:"my-button",title:"我的按钮",type:"vue",thumbnail:"/svgs/my-button.svg",props:{text:{type:"input",val:"按钮",title:"文本"},bgColor:{type:"color",val:"#44B6E7",title:"背景色"},fontFamily:{title:"字体",type:"select",val:"黑体",options:[{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]}}},{id:"my-input",title:"我的输入框",type:"vue",thumbnail:"/svgs/my-input.svg",props:{modelValue:{type:"input",val:"输入框",title:"文本"}}},{id:"custom-demo",title:"自定义svg",type:"custom-svg",thumbnail:"/svgs/demo.svg",props:{circleFill:{type:"color",val:"#FF0000",title:"圆颜色"},pathFill1:{type:"color",val:"#00FF00",title:"线1颜色"},pathFill2:{type:"color",val:"#0000FF",title:"线2颜色"},pathFill3:{type:"color",val:"#FFFF00",title:"线3颜色"},showLine2:{type:"switch",val:!0,title:"显示线2"}}},{id:"pie-charts",title:"echarts饼图",type:"vue",thumbnail:"/svgs/pie-charts.svg",props:{title:{title:"标题",type:"input",val:"默认标题"},seriesName:{title:"详情",type:"input",val:"详情标题"},seriesData:{title:"数据",type:"jsonEdit",val:[{value:1048,name:"办公楼A"},{value:735,name:"办公楼B"},{value:580,name:"保安室"},{value:484,name:"地下车库"},{value:300,name:"食堂"}]}}}]),($,V)=>{const re=resolveComponent("router-view"),ie=resolveComponent("el-config-provider");return openBlock(),createBlock(ie,{locale:unref(zhCn)},{default:withCtx(()=>[createVNode$1(re)]),_:1},8,["locale"])}}}),main="",_hoisted_1$2={style:{width:"100%",height:"100%"}},_hoisted_2$1={class:"my-button",style:{width:"100%",height:"100%"}},_sfc_main$3=defineComponent({__name:"index",props:{text:String,bgColor:String,fontFamily:String},setup(n){useCssVars(r=>({v902168fe:t.bgColor,v5d004850:t.fontFamily}));const t=n;return(r,i)=>(openBlock(),createElementBlock("div",_hoisted_1$2,[createBaseVNode("button",_hoisted_2$1,toDisplayString(t.text),1)]))}}),index_vue_vue_type_style_index_0_scoped_fa696b76_lang="",MyButton=_export_sfc$1(_sfc_main$3,[["__scopeId","data-v-fa696b76"]]),_hoisted_1$1={style:{width:"100%",height:"100%"}},_sfc_main$2=defineComponent({__name:"index",props:["modelValue"],emits:["update:modelValue"],setup(n,{emit:t}){const r=n,i=t,g=computed({get:()=>r.modelValue,set:$=>{i("update:modelValue",$)}});return($,V)=>(openBlock(),createElementBlock("div",_hoisted_1$1,[createVNode$1(unref(ElInput),{modelValue:g.value,"onUpdate:modelValue":V[0]||(V[0]=re=>g.value=re),style:{width:"100%",height:"100%"}},null,8,["modelValue"])]))}}),_hoisted_1={width:"557",height:"554",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"},_hoisted_2=["fill"],_hoisted_3=["fill"],_hoisted_4=["fill"],_hoisted_5=["fill"],_sfc_main$1=defineComponent({__name:"index",props:{id:String,circleFill:String,pathFill1:String,pathFill2:String,pathFill3:String,showLine2:Boolean},setup(n){const t=n;return(r,i)=>(openBlock(),createElementBlock("svg",_hoisted_1,[createBaseVNode("g",null,[createBaseVNode("path",{fill:t.circleFill,d:"m279,38.19467a238.80533,238.80533 0 1 1 -238.80533,238.80533a238.80533,238.80533 0 0 1 238.80533,-238.80533m0,-38.528a277.33333,277.33333 0 1 0 277.33333,277.33333a277.33333,277.33333 0 0 0 -277.33333,-277.33333z",id:"circle1"},null,8,_hoisted_2),createBaseVNode("path",{id:"line1",fill:t.pathFill1,d:"m436.15733,143.928a14.67733,14.67733 0 0 0 -12.8,7.44533a96,96 0 0 1 -137.10933,24.66134a125.09867,125.09867 0 0 0 -188.032,24.14933a14.208,14.208 0 0 0 -1.28,2.13333a5.80267,5.80267 0 0 0 -0.66133,1.408a14.656,14.656 0 0 0 24.14933,15.68a6.272,6.272 0 0 0 1.28,-1.49333a96.832,96.832 0 0 1 13.248,-16.49067a95.76533,95.76533 0 0 1 124.62933,-9.30133a125.07733,125.07733 0 0 0 189.26934,-26.176a5.824,5.824 0 0 0 0.68266,-1.49333a14.63467,14.63467 0 0 0 -13.44,-20.43734l0.064,-0.08533z"},null,8,_hoisted_3),t.showLine2?(openBlock(),createElementBlock("path",{key:0,id:"line2",fill:t.pathFill2,d:"m440.15733,239.928a14.67733,14.67733 0 0 0 -12.8,7.44533a96,96 0 0 1 -137.10933,24.66134a125.09867,125.09867 0 0 0 -188.032,24.14933a14.208,14.208 0 0 0 -1.28,2.13333a5.80267,5.80267 0 0 0 -0.66133,1.408a14.656,14.656 0 0 0 24.14933,15.68a6.272,6.272 0 0 0 1.28,-1.49333a96.832,96.832 0 0 1 13.248,-16.49067a95.76533,95.76533 0 0 1 124.62933,-9.30133a125.07733,125.07733 0 0 0 189.26934,-26.176a5.824,5.824 0 0 0 0.68266,-1.49333a14.63467,14.63467 0 0 0 -13.44,-20.43734l0.064,-0.08533z"},null,8,_hoisted_4)):createCommentVNode("",!0),createBaseVNode("path",{id:"line3",fill:t.pathFill3,d:"m444.15733,336.928a14.67733,14.67733 0 0 0 -12.8,7.44533a96,96 0 0 1 -137.10933,24.66134a125.09867,125.09867 0 0 0 -188.032,24.14933a14.208,14.208 0 0 0 -1.28,2.13333a5.80267,5.80267 0 0 0 -0.66133,1.408a14.656,14.656 0 0 0 24.14933,15.68a6.272,6.272 0 0 0 1.28,-1.49333a96.832,96.832 0 0 1 13.248,-16.49067a95.76533,95.76533 0 0 1 124.62933,-9.30133a125.07733,125.07733 0 0 0 189.26934,-26.176a5.824,5.824 0 0 0 0.68266,-1.49333a14.63467,14.63467 0 0 0 -13.44,-20.43734l0.064,-0.08533z"},null,8,_hoisted_5)])]))}});/*! ***************************************************************************** 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(n,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var g in i)Object.prototype.hasOwnProperty.call(i,g)&&(r[g]=i[g])},extendStatics(n,t)};function __extends(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Browser=function(){function n(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return n}(),Env=function(){function n(){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 n}(),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:!env.hasGlobalWindow||"Deno"in window?(env.node=!0,env.svgSupported=!0):detect(navigator.userAgent,env);function detect(n,t){var r=t.browser,i=n.match(/Firefox\/([\d.]+)/),g=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),$=n.match(/Edge?\/([\d.]+)/),V=/micromessenger/i.test(n);i&&(r.firefox=!0,r.version=i[1]),g&&(r.ie=!0,r.version=g[1]),$&&(r.edge=!0,r.version=$[1],r.newEdge=+$[1].split(".")[0]>18),V&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var re=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in re||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in re)&&!("OTransition"in re),t.transformSupported=t.transform3dSupported||r.ie&&+r.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(n){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)re=V*r.length;else for(var ie=0;ie>1)%2;re.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[ie]+":0",g[ae]+":0",i[1-ie]+":auto",g[1-ae]+":auto",""].join("!important;"),n.appendChild(V),r.push(V)}return r}function preparePointerTransformer(n,t,r){for(var i=r?"invTrans":"trans",g=t[i],$=t.srcCoords,V=[],re=[],ie=!0,ae=0;ae<4;ae++){var oe=n[ae].getBoundingClientRect(),le=2*ae,ue=oe.left,de=oe.top;V.push(ue,de),ie=ie&&$&&ue===$[le]&&de===$[le+1],re.push(n[ae].offsetLeft,n[ae].offsetTop)}return ie&&g?g:(t.srcCoords=V,t[i]=r?buildTransformer(re,V):buildTransformer(V,re))}function isCanvasEl(n){return n.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&","<":"<",">":">",'"':""","'":"'"};function encodeHTML(n){return n==null?"":(n+"").replace(replaceReg,function(t,r){return replaceMap[r]})}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(n,t,r,i){return r=r||{},i?calculateZrXY(n,t,r):firefoxNotSupportOffsetXY&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):calculateZrXY(n,t,r),r}function calculateZrXY(n,t,r){if(env$1.domSupported&&n.getBoundingClientRect){var i=t.clientX,g=t.clientY;if(isCanvasEl(n)){var $=n.getBoundingClientRect();r.zrX=i-$.left,r.zrY=g-$.top;return}else if(transformCoordWithViewport(_calcOut,n,i,g)){r.zrX=_calcOut[0],r.zrY=_calcOut[1];return}}r.zrX=r.zrY=0}function getNativeEvent(n){return n||window.event}function normalizeEvent(n,t,r){if(t=getNativeEvent(t),t.zrX!=null)return t;var i=t.type,g=i&&i.indexOf("touch")>=0;if(g){var V=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];V&&clientToLocal(n,V,t,r)}else{clientToLocal(n,t,t,r);var $=getWheelDeltaMayPolyfill(t);t.zrDelta=$?$/120:-(t.detail||0)/3}var re=t.button;return t.which==null&&re!==void 0&&MOUSE_EVENT_REG.test(t.type)&&(t.which=re&1?1:re&2?3:re&4?2:0),t}function getWheelDeltaMayPolyfill(n){var t=n.wheelDelta;if(t)return t;var r=n.deltaX,i=n.deltaY;if(r==null||i==null)return t;var g=Math.abs(i!==0?i:r),$=i>0?-1:i<0?1:r>0?-1:1;return 3*g*$}function addEventListener(n,t,r,i){n.addEventListener(t,r,i)}function removeEventListener(n,t,r,i){n.removeEventListener(t,r,i)}var stop=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0},GestureMgr=function(){function n(){this._track=[]}return n.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(t,r,i){var g=t.touches;if(g){for(var $={points:[],touches:[],target:r,event:t},V=0,re=g.length;V1&&i&&i.length>1){var $=dist(i)/dist(g);!isFinite($)&&($=1),t.pinchScale=$;var V=center(i);return t.pinchX=V[0],t.pinchY=V[1],{type:"pinch",target:n[0].target,event:t}}}}};function create(){return[1,0,0,1,0,0]}function identity(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function copy(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function mul(n,t,r){var i=t[0]*r[0]+t[2]*r[1],g=t[1]*r[0]+t[3]*r[1],$=t[0]*r[2]+t[2]*r[3],V=t[1]*r[2]+t[3]*r[3],re=t[0]*r[4]+t[2]*r[5]+t[4],ie=t[1]*r[4]+t[3]*r[5]+t[5];return n[0]=i,n[1]=g,n[2]=$,n[3]=V,n[4]=re,n[5]=ie,n}function translate(n,t,r){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4]+r[0],n[5]=t[5]+r[1],n}function rotate(n,t,r,i){i===void 0&&(i=[0,0]);var g=t[0],$=t[2],V=t[4],re=t[1],ie=t[3],ae=t[5],oe=Math.sin(r),le=Math.cos(r);return n[0]=g*le+re*oe,n[1]=-g*oe+re*le,n[2]=$*le+ie*oe,n[3]=-$*oe+le*ie,n[4]=le*(V-i[0])+oe*(ae-i[1])+i[0],n[5]=le*(ae-i[1])-oe*(V-i[0])+i[1],n}function scale(n,t,r){var i=r[0],g=r[1];return n[0]=t[0]*i,n[1]=t[1]*g,n[2]=t[2]*i,n[3]=t[3]*g,n[4]=t[4]*i,n[5]=t[5]*g,n}function invert(n,t){var r=t[0],i=t[2],g=t[4],$=t[1],V=t[3],re=t[5],ie=r*V-$*i;return ie?(ie=1/ie,n[0]=V*ie,n[1]=-$*ie,n[2]=-i*ie,n[3]=r*ie,n[4]=(i*re-V*g)*ie,n[5]=($*g-r*re)*ie,n):null}var Point=function(){function n(t,r){this.x=t||0,this.y=r||0}return n.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(t,r){return this.x=t,this.y=r,this},n.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},n.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},n.prototype.scale=function(t){this.x*=t,this.y*=t},n.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},n.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},n.prototype.dot=function(t){return this.x*t.x+this.y*t.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},n.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},n.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},n.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},n.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},n.set=function(t,r,i){t.x=r,t.y=i},n.copy=function(t,r){t.x=r.x,t.y=r.y},n.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},n.lenSquare=function(t){return t.x*t.x+t.y*t.y},n.dot=function(t,r){return t.x*r.x+t.y*r.y},n.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},n.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},n.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},n.scaleAndAdd=function(t,r,i,g){t.x=r.x+i.x*g,t.y=r.y+i.y*g},n.lerp=function(t,r,i,g){var $=1-g;t.x=$*r.x+g*i.x,t.y=$*r.y+g*i.y},n}();const Point$1=Point;var mathMin$4=Math.min,mathMax$4=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 n(t,r,i,g){i<0&&(t=t+i,i=-i),g<0&&(r=r+g,g=-g),this.x=t,this.y=r,this.width=i,this.height=g}return n.prototype.union=function(t){var r=mathMin$4(t.x,this.x),i=mathMin$4(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$4(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$4(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},n.prototype.applyTransform=function(t){n.applyTransform(this,this,t)},n.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,g=t.height/r.height,$=create();return translate($,$,[-r.x,-r.y]),scale($,$,[i,g]),translate($,$,[t.x,t.y]),$},n.prototype.intersect=function(t,r){if(!t)return!1;t instanceof n||(t=n.create(t));var i=this,g=i.x,$=i.x+i.width,V=i.y,re=i.y+i.height,ie=t.x,ae=t.x+t.width,oe=t.y,le=t.y+t.height,ue=!($he&&(he=Ie,pe<_e?Point$1.set(maxTv$1,-pe,0):Point$1.set(maxTv$1,_e,0)):Iehe&&(he=Ne,Ce=i.x&&t<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(t){n.copy(this,t)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(t){return new n(t.x,t.y,t.width,t.height)},n.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},n.applyTransform=function(t,r,i){if(!i){t!==r&&n.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var g=i[0],$=i[3],V=i[4],re=i[5];t.x=r.x*g+V,t.y=r.y*$+re,t.width=r.width*g,t.height=r.height*$,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}lt.x=lb.x=r.x,lt.y=rt.y=r.y,rb.x=rt.x=r.x+r.width,rb.y=lb.y=r.y+r.height,lt.transform(i),rt.transform(i),rb.transform(i),lb.transform(i),t.x=mathMin$4(lt.x,rb.x,lb.x,rt.x),t.y=mathMin$4(lt.y,rb.y,lb.y,rt.y);var ie=mathMax$4(lt.x,rb.x,lb.x,rt.x),ae=mathMax$4(lt.y,rb.y,lb.y,rt.y);t.width=ie-t.x,t.height=ae-t.y},n}();const BoundingRect$1=BoundingRect;var SILENT="silent";function makeEventPacket(n,t,r){return{type:n,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:stopEvent}}function stopEvent(){stop(this.event)}var EmptyProxy=function(n){__extends(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Eventful$1),HoveredResult=function(){function n(t,r){this.x=t,this.y=r}return n}(),handlerNames=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tmpRect$1=new BoundingRect$1(0,0,0,0),Handler=function(n){__extends(t,n);function t(r,i,g,$,V){var re=n.call(this)||this;return re._hovered=new HoveredResult(0,0),re.storage=r,re.painter=i,re.painterRoot=$,re._pointerSize=V,g=g||new EmptyProxy,re.proxy=null,re.setHandlerProxy(g),re._draggingMgr=new Draggable$1(re),re}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(each$4(handlerNames,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,g=r.zrY,$=isOutsideBoundary(this,i,g),V=this._hovered,re=V.target;re&&!re.__zr&&(V=this.findHover(V.x,V.y),re=V.target);var ie=this._hovered=$?new HoveredResult(i,g):this.findHover(i,g),ae=ie.target,oe=this.proxy;oe.setCursor&&oe.setCursor(ae?ae.cursor:"default"),re&&ae!==re&&this.dispatchToElement(V,"mouseout",r),this.dispatchToElement(ie,"mousemove",r),ae&&ae!==re&&this.dispatchToElement(ie,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new HoveredResult(0,0)},t.prototype.dispatch=function(r,i){var g=this[r];g&&g.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,g){r=r||{};var $=r.target;if(!($&&$.silent)){for(var V="on"+i,re=makeEventPacket(i,r,g);$&&($[V]&&(re.cancelBubble=!!$[V].call($,re)),$.trigger(i,re),$=$.__hostTarget?$.__hostTarget:$.parent,!re.cancelBubble););re.cancelBubble||(this.trigger(i,re),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(ie){typeof ie[V]=="function"&&ie[V].call(ie,re),ie.trigger&&ie.trigger(i,re)}))}},t.prototype.findHover=function(r,i,g){var $=this.storage.getDisplayList(),V=new HoveredResult(r,i);if(setHoverTarget($,V,r,i,g),this._pointerSize&&!V.target){for(var re=[],ie=this._pointerSize,ae=ie/2,oe=new BoundingRect$1(r-ae,i-ae,ie,ie),le=$.length-1;le>=0;le--){var ue=$[le];ue!==g&&!ue.ignore&&!ue.ignoreCoarsePointer&&(!ue.parent||!ue.parent.ignoreCoarsePointer)&&(tmpRect$1.copy(ue.getBoundingRect()),ue.transform&&tmpRect$1.applyTransform(ue.transform),tmpRect$1.intersect(oe)&&re.push(ue))}if(re.length)for(var de=4,he=Math.PI/12,pe=Math.PI*2,_e=0;_e4)return;this._downPoint=null}this.dispatchToElement($,n,t)}});function isHover(n,t,r){if(n[n.rectHover?"rectContain":"contain"](t,r)){for(var i=n,g=void 0,$=!1;i;){if(i.ignoreClip&&($=!0),!$){var V=i.getClipPath();if(V&&!V.contain(t,r))return!1}i.silent&&(g=!0);var re=i.__hostTarget;i=re||i.parent}return g?SILENT:!0}return!1}function setHoverTarget(n,t,r,i,g){for(var $=n.length-1;$>=0;$--){var V=n[$],re=void 0;if(V!==g&&!V.ignore&&(re=isHover(V,r,i))&&(!t.topTarget&&(t.topTarget=V),re!==SILENT)){t.target=V;break}}}function isOutsideBoundary(n,t,r){var i=n.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}const Handler$1=Handler;var DEFAULT_MIN_MERGE=32,DEFAULT_MIN_GALLOPING=7;function minRunLength(n){for(var t=0;n>=DEFAULT_MIN_MERGE;)t|=n&1,n>>=1;return n+t}function makeAscendingRun(n,t,r,i){var g=t+1;if(g===r)return 1;if(i(n[g++],n[t])<0){for(;g=0;)g++;return g-t}function reverseRun(n,t,r){for(r--;t>>1,g($,n[ie])<0?re=ie:V=ie+1;var ae=i-V;switch(ae){case 3:n[V+3]=n[V+2];case 2:n[V+2]=n[V+1];case 1:n[V+1]=n[V];break;default:for(;ae>0;)n[V+ae]=n[V+ae-1],ae--}n[V]=$}}function gallopLeft(n,t,r,i,g,$){var V=0,re=0,ie=1;if($(n,t[r+g])>0){for(re=i-g;ie0;)V=ie,ie=(ie<<1)+1,ie<=0&&(ie=re);ie>re&&(ie=re),V+=g,ie+=g}else{for(re=g+1;iere&&(ie=re);var ae=V;V=g-ie,ie=g-ae}for(V++;V>>1);$(n,t[r+oe])>0?V=oe+1:ie=oe}return ie}function gallopRight(n,t,r,i,g,$){var V=0,re=0,ie=1;if($(n,t[r+g])<0){for(re=g+1;iere&&(ie=re);var ae=V;V=g-ie,ie=g-ae}else{for(re=i-g;ie=0;)V=ie,ie=(ie<<1)+1,ie<=0&&(ie=re);ie>re&&(ie=re),V+=g,ie+=g}for(V++;V>>1);$(n,t[r+oe])<0?ie=oe:V=oe+1}return ie}function TimSort(n,t){var r=DEFAULT_MIN_GALLOPING,i,g,$=0,V=[];i=[],g=[];function re(de,he){i[$]=de,g[$]=he,$+=1}function ie(){for(;$>1;){var de=$-2;if(de>=1&&g[de-1]<=g[de]+g[de+1]||de>=2&&g[de-2]<=g[de]+g[de-1])g[de-1]g[de+1])break;oe(de)}}function ae(){for(;$>1;){var de=$-2;de>0&&g[de-1]=DEFAULT_MIN_GALLOPING||Ve>=DEFAULT_MIN_GALLOPING);if(Ue)break;Oe<0&&(Oe=0),Oe+=2}if(r=Oe,r<1&&(r=1),he===1){for(Ce=0;Ce<_e;Ce++)n[Ne+Ce]=n[Ie+Ce];n[Ne+_e]=V[xe]}else{if(he===0)throw new Error;for(Ce=0;Ce=0;Ce--)n[$e+Ce]=n[Oe+Ce];n[Ne]=V[Ie];return}for(var Ve=r;;){var Ue=0,Fe=0,ze=!1;do if(t(V[Ie],n[xe])<0){if(n[Ne--]=n[xe--],Ue++,Fe=0,--he===0){ze=!0;break}}else if(n[Ne--]=V[Ie--],Fe++,Ue=0,--_e===1){ze=!0;break}while((Ue|Fe)=0;Ce--)n[$e+Ce]=n[Oe+Ce];if(he===0){ze=!0;break}}if(n[Ne--]=V[Ie--],--_e===1){ze=!0;break}if(Fe=_e-gallopLeft(n[xe],V,0,_e,_e-1,t),Fe!==0){for(Ne-=Fe,Ie-=Fe,_e-=Fe,$e=Ne+1,Oe=Ie+1,Ce=0;Ce=DEFAULT_MIN_GALLOPING||Fe>=DEFAULT_MIN_GALLOPING);if(ze)break;Ve<0&&(Ve=0),Ve+=2}if(r=Ve,r<1&&(r=1),_e===1){for(Ne-=he,xe-=he,$e=Ne+1,Oe=xe+1,Ce=he-1;Ce>=0;Ce--)n[$e+Ce]=n[Oe+Ce];n[Ne]=V[Ie]}else{if(_e===0)throw new Error;for(Oe=Ne-(_e-1),Ce=0;Ce<_e;Ce++)n[Oe+Ce]=V[Ce]}}return{mergeRuns:ie,forceMergeRuns:ae,pushRun:re}}function sort(n,t,r,i){r||(r=0),i||(i=n.length);var g=i-r;if(!(g<2)){var $=0;if(gre&&(ie=re),binaryInsertionSort(n,r,r+ie,r+$,t),$=ie}V.pushRun(r,$),V.mergeRuns(),g-=$,r+=$}while(g!==0);V.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(n,t){return n.zlevel===t.zlevel?n.z===t.z?n.z2-t.z2:n.z-t.z:n.zlevel-t.zlevel}var Storage=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=shapeCompareFunc}return n.prototype.traverse=function(t,r){for(var i=0;i0&&(oe.__clipPaths=[]),isNaN(oe.z)&&(logInvalidZError(),oe.z=0),isNaN(oe.z2)&&(logInvalidZError(),oe.z2=0),isNaN(oe.zlevel)&&(logInvalidZError(),oe.zlevel=0),this._displayList[this._displayListLen++]=oe}var le=t.getDecalElement&&t.getDecalElement();le&&this._updateAndAddDisplayable(le,r,i);var ue=t.getTextGuideLine();ue&&this._updateAndAddDisplayable(ue,r,i);var de=t.getTextContent();de&&this._updateAndAddDisplayable(de,r,i)}},n.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},n.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r=0&&this._roots.splice(g,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Storage$1=Storage;var requestAnimationFrame$2;requestAnimationFrame$2=env$1.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const requestAnimationFrame$3=requestAnimationFrame$2;var easingFuncs={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var t,r=.1,i=.4;return n===0?0:n===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/i)))},elasticOut:function(n){var t,r=.1,i=.4;return n===0?0:n===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*n)*Math.sin((n-t)*(2*Math.PI)/i)+1)},elasticInOut:function(n){var t,r=.1,i=.4;return n===0?0:n===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(n*=2)<1?-.5*(r*Math.pow(2,10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/i)*.5+1)},backIn:function(n){var t=1.70158;return n*n*((t+1)*n-t)},backOut:function(n){var t=1.70158;return--n*n*((t+1)*n+t)+1},backInOut:function(n){var t=2.5949095;return(n*=2)<1?.5*(n*n*((t+1)*n-t)):.5*((n-=2)*n*((t+1)*n+t)+2)},bounceIn:function(n){return 1-easingFuncs.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?easingFuncs.bounceIn(n*2)*.5:easingFuncs.bounceOut(n*2-1)*.5+.5}};const easingFuncs$1=easingFuncs;var mathPow=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$1(n){return n>-EPSILON$3&&nEPSILON$3||n<-EPSILON$3}function cubicAt(n,t,r,i,g){var $=1-g;return $*$*($*n+3*g*t)+g*g*(g*i+3*$*r)}function cubicDerivativeAt(n,t,r,i,g){var $=1-g;return 3*(((t-n)*$+2*(r-t)*g)*$+(i-r)*g*g)}function cubicRootAt(n,t,r,i,g,$){var V=i+3*(t-r)-n,re=3*(r-t*2+n),ie=3*(t-n),ae=n-g,oe=re*re-3*V*ie,le=re*ie-9*V*ae,ue=ie*ie-3*re*ae,de=0;if(isAroundZero$1(oe)&&isAroundZero$1(le))if(isAroundZero$1(re))$[0]=0;else{var he=-ie/re;he>=0&&he<=1&&($[de++]=he)}else{var pe=le*le-4*oe*ue;if(isAroundZero$1(pe)){var _e=le/oe,he=-re/V+_e,Ce=-_e/2;he>=0&&he<=1&&($[de++]=he),Ce>=0&&Ce<=1&&($[de++]=Ce)}else if(pe>0){var xe=mathSqrt$3(pe),Ie=oe*re+1.5*V*(-le+xe),Ne=oe*re+1.5*V*(-le-xe);Ie<0?Ie=-mathPow(-Ie,ONE_THIRD):Ie=mathPow(Ie,ONE_THIRD),Ne<0?Ne=-mathPow(-Ne,ONE_THIRD):Ne=mathPow(Ne,ONE_THIRD);var he=(-re-(Ie+Ne))/(3*V);he>=0&&he<=1&&($[de++]=he)}else{var Oe=(2*oe*re-3*V*le)/(2*mathSqrt$3(oe*oe*oe)),$e=Math.acos(Oe)/3,Ve=mathSqrt$3(oe),Ue=Math.cos($e),he=(-re-2*Ve*Ue)/(3*V),Ce=(-re+Ve*(Ue+THREE_SQRT*Math.sin($e)))/(3*V),Fe=(-re+Ve*(Ue-THREE_SQRT*Math.sin($e)))/(3*V);he>=0&&he<=1&&($[de++]=he),Ce>=0&&Ce<=1&&($[de++]=Ce),Fe>=0&&Fe<=1&&($[de++]=Fe)}}return de}function cubicExtrema(n,t,r,i,g){var $=6*r-12*t+6*n,V=9*t+3*i-3*n-9*r,re=3*t-3*n,ie=0;if(isAroundZero$1(V)){if(isNotAroundZero$1($)){var ae=-re/$;ae>=0&&ae<=1&&(g[ie++]=ae)}}else{var oe=$*$-4*V*re;if(isAroundZero$1(oe))g[0]=-$/(2*V);else if(oe>0){var le=mathSqrt$3(oe),ae=(-$+le)/(2*V),ue=(-$-le)/(2*V);ae>=0&&ae<=1&&(g[ie++]=ae),ue>=0&&ue<=1&&(g[ie++]=ue)}}return ie}function cubicSubdivide(n,t,r,i,g,$){var V=(t-n)*g+n,re=(r-t)*g+t,ie=(i-r)*g+r,ae=(re-V)*g+V,oe=(ie-re)*g+re,le=(oe-ae)*g+ae;$[0]=n,$[1]=V,$[2]=ae,$[3]=le,$[4]=le,$[5]=oe,$[6]=ie,$[7]=i}function cubicProjectPoint(n,t,r,i,g,$,V,re,ie,ae,oe){var le,ue=.005,de=1/0,he,pe,_e,Ce;_v0[0]=ie,_v0[1]=ae;for(var xe=0;xe<1;xe+=.05)_v1[0]=cubicAt(n,r,g,V,xe),_v1[1]=cubicAt(t,i,$,re,xe),_e=distSquare(_v0,_v1),_e=0&&_e=0&&ae<=1&&(g[ie++]=ae)}}else{var oe=V*V-4*$*re;if(isAroundZero$1(oe)){var ae=-V/(2*$);ae>=0&&ae<=1&&(g[ie++]=ae)}else if(oe>0){var le=mathSqrt$3(oe),ae=(-V+le)/(2*$),ue=(-V-le)/(2*$);ae>=0&&ae<=1&&(g[ie++]=ae),ue>=0&&ue<=1&&(g[ie++]=ue)}}return ie}function quadraticExtremum(n,t,r){var i=n+r-2*t;return i===0?.5:(n-t)/i}function quadraticSubdivide(n,t,r,i,g){var $=(t-n)*i+n,V=(r-t)*i+t,re=(V-$)*i+$;g[0]=n,g[1]=$,g[2]=re,g[3]=re,g[4]=V,g[5]=r}function quadraticProjectPoint(n,t,r,i,g,$,V,re,ie){var ae,oe=.005,le=1/0;_v0[0]=V,_v0[1]=re;for(var ue=0;ue<1;ue+=.05){_v1[0]=quadraticAt(n,r,g,ue),_v1[1]=quadraticAt(t,i,$,ue);var de=distSquare(_v0,_v1);de=0&&de=1?1:cubicRootAt(0,i,$,1,ie,re)&&cubicAt(0,g,V,1,re[0])}}}var Clip=function(){function n(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||noop,this.ondestroy=t.ondestroy||noop,this.onrestart=t.onrestart||noop,t.easing&&this.setEasing(t.easing)}return n.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,g=t-this._startTime-this._pausedTime,$=g/i;$<0&&($=0),$=Math.min($,1);var V=this.easingFunc,re=V?V($):$;if(this.onframe(re),$===1)if(this.loop){var ie=g%i;this._startTime=t-ie,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(t){this.easing=t,this.easingFunc=isFunction(t)?t:easingFuncs$1[t]||createCubicEasingFunc(t)},n}();const Clip$1=Clip;var Entry=function(){function n(t){this.value=t}return n}(),LinkedList=function(){function n(){this._len=0}return n.prototype.insert=function(t){var r=new Entry(t);return this.insertEntry(r),r},n.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},n.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),LRU=function(){function n(t){this._list=new LinkedList,this._maxSize=10,this._map={},this._maxSize=t}return n.prototype.put=function(t,r){var i=this._list,g=this._map,$=null;if(g[t]==null){var V=i.len(),re=this._lastRemovedEntry;if(V>=this._maxSize&&V>0){var ie=i.head;i.remove(ie),delete g[ie.key],$=ie.value,this._lastRemovedEntry=ie}re?re.value=r:re=new Entry(r),re.key=t,i.insertEntry(re),g[t]=re}return $},n.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();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(n){return n=Math.round(n),n<0?0:n>255?255:n}function clampCssFloat(n){return n<0?0:n>1?1:n}function parseCssInt(n){var t=n;return t.length&&t.charAt(t.length-1)==="%"?clampCssByte(parseFloat(t)/100*255):clampCssByte(parseInt(t,10))}function parseCssFloat(n){var t=n;return t.length&&t.charAt(t.length-1)==="%"?clampCssFloat(parseFloat(t)/100):clampCssFloat(parseFloat(t))}function cssHueToRgb(n,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?n+(t-n)*r*6:r*2<1?t:r*3<2?n+(t-n)*(2/3-r)*6:n}function setRgba(n,t,r,i,g){return n[0]=t,n[1]=r,n[2]=i,n[3]=g,n}function copyRgba(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n}var colorCache=new LRU$1(20),lastRemovedArr=null;function putToCache(n,t){lastRemovedArr&©Rgba(lastRemovedArr,t),lastRemovedArr=colorCache.put(n,lastRemovedArr||t.slice())}function parse(n,t){if(n){t=t||[];var r=colorCache.get(n);if(r)return copyRgba(t,r);n=n+"";var i=n.replace(/ /g,"").toLowerCase();if(i in kCSSColorTable)return copyRgba(t,kCSSColorTable[i]),putToCache(n,t),t;var g=i.length;if(i.charAt(0)==="#"){if(g===4||g===5){var $=parseInt(i.slice(1,4),16);if(!($>=0&&$<=4095)){setRgba(t,0,0,0,1);return}return setRgba(t,($&3840)>>4|($&3840)>>8,$&240|($&240)>>4,$&15|($&15)<<4,g===5?parseInt(i.slice(4),16)/15:1),putToCache(n,t),t}else if(g===7||g===9){var $=parseInt(i.slice(1,7),16);if(!($>=0&&$<=16777215)){setRgba(t,0,0,0,1);return}return setRgba(t,($&16711680)>>16,($&65280)>>8,$&255,g===9?parseInt(i.slice(7),16)/255:1),putToCache(n,t),t}return}var V=i.indexOf("("),re=i.indexOf(")");if(V!==-1&&re+1===g){var ie=i.substr(0,V),ae=i.substr(V+1,re-(V+1)).split(","),oe=1;switch(ie){case"rgba":if(ae.length!==4)return ae.length===3?setRgba(t,+ae[0],+ae[1],+ae[2],1):setRgba(t,0,0,0,1);oe=parseCssFloat(ae.pop());case"rgb":if(ae.length>=3)return setRgba(t,parseCssInt(ae[0]),parseCssInt(ae[1]),parseCssInt(ae[2]),ae.length===3?oe:parseCssFloat(ae[3])),putToCache(n,t),t;setRgba(t,0,0,0,1);return;case"hsla":if(ae.length!==4){setRgba(t,0,0,0,1);return}return ae[3]=parseCssFloat(ae[3]),hsla2rgba(ae,t),putToCache(n,t),t;case"hsl":if(ae.length!==3){setRgba(t,0,0,0,1);return}return hsla2rgba(ae,t),putToCache(n,t),t;default:return}}setRgba(t,0,0,0,1)}}function hsla2rgba(n,t){var r=(parseFloat(n[0])%360+360)%360/360,i=parseCssFloat(n[1]),g=parseCssFloat(n[2]),$=g<=.5?g*(i+1):g+i-g*i,V=g*2-$;return t=t||[],setRgba(t,clampCssByte(cssHueToRgb(V,$,r+1/3)*255),clampCssByte(cssHueToRgb(V,$,r)*255),clampCssByte(cssHueToRgb(V,$,r-1/3)*255),1),n.length===4&&(t[3]=n[3]),t}function lift(n,t){var r=parse(n);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return stringify(r,r.length===4?"rgba":"rgb")}}function stringify(n,t){if(!(!n||!n.length)){var r=n[0]+","+n[1]+","+n[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+n[3]),t+"("+r+")"}}function lum(n,t){var r=parse(n);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var liftedColorCache=new LRU$1(100);function liftColor(n){if(isString(n)){var t=liftedColorCache.get(n);return t||(t=lift(n,-.1),liftedColorCache.put(n,t)),t}else if(isGradientObject(n)){var r=extend({},n);return r.colorStops=map$1(n.colorStops,function(i){return{offset:i.offset,color:lift(i.color,-.1)}}),r}return n}var mathRound$1=Math.round;function normalizeColor(n){var t;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var r=parse(n);r&&(n="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:n,opacity:t??1}}var EPSILON$2=1e-4;function isAroundZero(n){return n-EPSILON$2}function round3(n){return mathRound$1(n*1e3)/1e3}function round4(n){return mathRound$1(n*1e4)/1e4}function getMatrixStr(n){return"matrix("+round3(n[0])+","+round3(n[1])+","+round3(n[2])+","+round3(n[3])+","+round4(n[4])+","+round4(n[5])+")"}var TEXT_ALIGN_TO_ANCHOR={left:"start",right:"end",center:"middle",middle:"middle"};function adjustTextY$1(n,t,r){return r==="top"?n+=t/2:r==="bottom"&&(n-=t/2),n}function hasShadow(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function getShadowKey(n){var t=n.style,r=n.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function isImagePattern(n){return n&&!!n.image}function isSVGPattern(n){return n&&!!n.svgElement}function isPattern(n){return isImagePattern(n)||isSVGPattern(n)}function isLinearGradient(n){return n.type==="linear"}function isRadialGradient(n){return n.type==="radial"}function isGradient(n){return n&&(n.type==="linear"||n.type==="radial")}function getIdURL(n){return"url(#"+n+")"}function getPathPrecision(n){var t=n.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function getSRTTransformString(n){var t=n.x||0,r=n.y||0,i=(n.rotation||0)*RADIAN_TO_DEGREE,g=retrieve2(n.scaleX,1),$=retrieve2(n.scaleY,1),V=n.skewX||0,re=n.skewY||0,ie=[];return(t||r)&&ie.push("translate("+t+"px,"+r+"px)"),i&&ie.push("rotate("+i+")"),(g!==1||$!==1)&&ie.push("scale("+g+","+$+")"),(V||re)&&ie.push("skew("+mathRound$1(V*RADIAN_TO_DEGREE)+"deg, "+mathRound$1(re*RADIAN_TO_DEGREE)+"deg)"),ie.join(" ")}var encodeBase64=function(){return env$1.hasGlobalWindow&&isFunction(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),arraySlice=Array.prototype.slice;function interpolateNumber(n,t,r){return(t-n)*r+n}function interpolate1DArray(n,t,r,i){for(var g=t.length,$=0;$i?t:n,$=Math.min(r,i),V=g[$-1]||{color:[0,0,0,0],offset:0},re=$;reV;if(re)i.length=V;else for(var ie=$;ie=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var g=this.keyframes,$=g.length,V=!1,re=VALUE_TYPE_UNKOWN,ie=r;if(isArrayLike(r)){var ae=guessArrayDim(r);re=ae,(ae===1&&!isNumber(r[0])||ae===2&&!isNumber(r[0][0]))&&(V=!0)}else if(isNumber(r)&&!eqNaN(r))re=VALUE_TYPE_NUMBER;else if(isString(r))if(!isNaN(+r))re=VALUE_TYPE_NUMBER;else{var oe=parse(r);oe&&(ie=oe,re=VALUE_TYPE_COLOR)}else if(isGradientObject(r)){var le=extend({},ie);le.colorStops=map$1(r.colorStops,function(de){return{offset:de.offset,color:parse(de.color)}}),isLinearGradient(r)?re=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient(r)&&(re=VALUE_TYPE_RADIAL_GRADIENT),ie=le}$===0?this.valType=re:(re!==this.valType||re===VALUE_TYPE_UNKOWN)&&(V=!0),this.discrete=this.discrete||V;var ue={time:t,value:ie,rawValue:r,percent:0};return i&&(ue.easing=i,ue.easingFunc=isFunction(i)?i:easingFuncs$1[i]||createCubicEasingFunc(i)),g.push(ue),ue},n.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(pe,_e){return pe.time-_e.time});for(var g=this.valType,$=i.length,V=i[$-1],re=this.discrete,ie=isArrayValueType(g),ae=isGradientValueType(g),oe=0;oe<$;oe++){var le=i[oe],ue=le.value,de=V.value;le.percent=le.time/t,re||(ie&&oe!==$-1?fillArray(ue,de,g):ae&&fillColorStops(ue.colorStops,de.colorStops))}if(!re&&g!==VALUE_TYPE_RADIAL_GRADIENT&&r&&this.needsAnimate()&&r.needsAnimate()&&g===r.valType&&!r._finished){this._additiveTrack=r;for(var he=i[0].value,oe=0;oe<$;oe++)g===VALUE_TYPE_NUMBER?i[oe].additiveValue=i[oe].value-he:g===VALUE_TYPE_COLOR?i[oe].additiveValue=add1DArray([],i[oe].value,he,-1):isArrayValueType(g)&&(i[oe].additiveValue=g===VALUE_TYPE_1D_ARRAY?add1DArray([],i[oe].value,he,-1):add2DArray([],i[oe].value,he,-1))}},n.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,g=i?"additiveValue":"value",$=this.valType,V=this.keyframes,re=V.length,ie=this.propName,ae=$===VALUE_TYPE_COLOR,oe,le=this._lastFr,ue=Math.min,de,he;if(re===1)de=he=V[0];else{if(r<0)oe=0;else if(r=0&&!(V[oe].percent<=r);oe--);oe=ue(oe,re-2)}else{for(oe=le;oer);oe++);oe=ue(oe-1,re-2)}he=V[oe+1],de=V[oe]}if(de&&he){this._lastFr=oe,this._lastFrP=r;var _e=he.percent-de.percent,Ce=_e===0?1:ue((r-de.percent)/_e,1);he.easingFunc&&(Ce=he.easingFunc(Ce));var xe=i?this._additiveValue:ae?tmpRgba:t[ie];if((isArrayValueType($)||ae)&&!xe&&(xe=this._additiveValue=[]),this.discrete)t[ie]=Ce<1?de.rawValue:he.rawValue;else if(isArrayValueType($))$===VALUE_TYPE_1D_ARRAY?interpolate1DArray(xe,de[g],he[g],Ce):interpolate2DArray(xe,de[g],he[g],Ce);else if(isGradientValueType($)){var Ie=de[g],Ne=he[g],Oe=$===VALUE_TYPE_LINEAR_GRADIENT;t[ie]={type:Oe?"linear":"radial",x:interpolateNumber(Ie.x,Ne.x,Ce),y:interpolateNumber(Ie.y,Ne.y,Ce),colorStops:map$1(Ie.colorStops,function(Ve,Ue){var Fe=Ne.colorStops[Ue];return{offset:interpolateNumber(Ve.offset,Fe.offset,Ce),color:rgba2String(interpolate1DArray([],Ve.color,Fe.color,Ce))}}),global:Ne.global},Oe?(t[ie].x2=interpolateNumber(Ie.x2,Ne.x2,Ce),t[ie].y2=interpolateNumber(Ie.y2,Ne.y2,Ce)):t[ie].r=interpolateNumber(Ie.r,Ne.r,Ce)}else if(ae)interpolate1DArray(xe,de[g],he[g],Ce),i||(t[ie]=rgba2String(xe));else{var $e=interpolateNumber(de[g],he[g],Ce);i?this._additiveValue=$e:t[ie]=$e}i&&this._addToTarget(t)}}},n.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,g=this._additiveValue;r===VALUE_TYPE_NUMBER?t[i]=t[i]+g:r===VALUE_TYPE_COLOR?(parse(t[i],tmpRgba),add1DArray(tmpRgba,tmpRgba,g,1),t[i]=rgba2String(tmpRgba)):r===VALUE_TYPE_1D_ARRAY?add1DArray(t[i],t[i],g,1):r===VALUE_TYPE_2D_ARRAY&&add2DArray(t[i],t[i],g,1)},n}(),Animator=function(){function n(t,r,i,g){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&g){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=g,this._allowDiscrete=i}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(t){this._target=t},n.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,keys(r),i)},n.prototype.whenWithKeys=function(t,r,i,g){for(var $=this._tracks,V=0;V0&&ie.addKeyframe(0,cloneValue(ae),g),this._trackKeys.push(re)}ie.addKeyframe(t,cloneValue(r[re]),g)}return this._maxTime=Math.max(this._maxTime,t),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i0)){this._started=1;for(var r=this,i=[],g=this._maxTime||0,$=0;$1){var re=V.pop();$.addKeyframe(re.time,t[g]),$.prepare(this._maxTime,$.getAdditiveTrack())}}}},n}();const Animator$1=Animator;function getTime(){return new Date().getTime()}var Animation=function(n){__extends(t,n);function t(r){var i=n.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,g=r.next;i?i.next=g:this._head=g,g?g.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=getTime()-this._pausedTime,g=i-this._time,$=this._head;$;){var V=$.next,re=$.step(i,g);re&&($.ondestroy(),this.removeClip($)),$=V}this._time=i,r||(this.trigger("frame",g),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(requestAnimationFrame$3(i),!r._paused&&r.update())}requestAnimationFrame$3(i)},t.prototype.start=function(){this._running||(this._time=getTime(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=getTime(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=getTime()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var g=new Animator$1(r,i.loop);return this.addAnimator(g),g},t}(Eventful$1);const Animation$1=Animation;var TOUCH_CLICK_DELAY=300,globalEventSupported=env$1.domSupported,localNativeListenerNames=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=map$1(n,function(g){var $=g.replace("mouse","pointer");return r.hasOwnProperty($)?$:g});return{mouse:n,touch:t,pointer:i}}(),globalNativeListenerNames={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wheelEventSupported=!1;function isPointerFromTouch(n){var t=n.pointerType;return t==="pen"||t==="touch"}function setTouchTimer(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function markTouch(n){n&&(n.zrByTouch=!0)}function normalizeGlobalEvent(n,t){return normalizeEvent(n.dom,new FakeGlobalEvent(n,t),!0)}function isLocalEl(n,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===n.painterRoot);)r=r.parentNode;return i}var FakeGlobalEvent=function(){function n(t,r){this.stopPropagation=noop,this.stopImmediatePropagation=noop,this.preventDefault=noop,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return n}(),localDOMHandlers={mousedown:function(n){n=normalizeEvent(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=normalizeEvent(this.dom,n);var t=this.__mayPointerCapture;t&&(n.zrX!==t[0]||n.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=normalizeEvent(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=normalizeEvent(this.dom,n);var t=n.toElement||n.relatedTarget;isLocalEl(this,t)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){wheelEventSupported=!0,n=normalizeEvent(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){wheelEventSupported||(n=normalizeEvent(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=normalizeEvent(this.dom,n),markTouch(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),localDOMHandlers.mousemove.call(this,n),localDOMHandlers.mousedown.call(this,n)},touchmove:function(n){n=normalizeEvent(this.dom,n),markTouch(n),this.handler.processGesture(n,"change"),localDOMHandlers.mousemove.call(this,n)},touchend:function(n){n=normalizeEvent(this.dom,n),markTouch(n),this.handler.processGesture(n,"end"),localDOMHandlers.mouseup.call(this,n),+new Date-+this.__lastTouchMomentEPSILON$1||n<-EPSILON$1}var scaleTmp=[],tmpTransform=[],originTransform=create(),abs=Math.abs,Transformable=function(){function n(){}return n.prototype.getLocalTransform=function(t){return n.getLocalTransform(this,t)},n.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},n.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},n.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},n.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},n.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)},n.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(mIdentity(i),this.invTransform=null);return}i=i||create(),r?this.getLocalTransform(i):mIdentity(i),t&&(r?mul(i,t,i):copy(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},n.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(scaleTmp);var i=scaleTmp[0]<0?-1:1,g=scaleTmp[1]<0?-1:1,$=((scaleTmp[0]-i)*r+i)/scaleTmp[0]||0,V=((scaleTmp[1]-g)*r+g)/scaleTmp[1]||0;t[0]*=$,t[1]*=$,t[2]*=V,t[3]*=V}this.invTransform=this.invTransform||create(),invert(this.invTransform,t)},n.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},n.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],g=Math.atan2(t[1],t[0]),$=Math.PI/2+g-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos($),r=Math.sqrt(r),this.skewX=$,this.skewY=0,this.rotation=-g,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||create(),mul(tmpTransform,t.invTransform,r),r=tmpTransform);var i=this.originX,g=this.originY;(i||g)&&(originTransform[4]=i,originTransform[5]=g,mul(tmpTransform,r,originTransform),tmpTransform[4]-=i,tmpTransform[5]-=g,r=tmpTransform),this.setLocalTransform(r)}},n.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},n.prototype.transformCoordToLocal=function(t,r){var i=[t,r],g=this.invTransform;return g&&applyTransform$1(i,i,g),i},n.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],g=this.transform;return g&&applyTransform$1(i,i,g),i},n.prototype.getLineScale=function(){var t=this.transform;return t&&abs(t[0]-1)>1e-10&&abs(t[3]-1)>1e-10?Math.sqrt(abs(t[0]*t[3]-t[2]*t[1])):1},n.prototype.copyTransform=function(t){copyTransform(this,t)},n.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,g=t.originY||0,$=t.scaleX,V=t.scaleY,re=t.anchorX,ie=t.anchorY,ae=t.rotation||0,oe=t.x,le=t.y,ue=t.skewX?Math.tan(t.skewX):0,de=t.skewY?Math.tan(-t.skewY):0;if(i||g||re||ie){var he=i+re,pe=g+ie;r[4]=-he*$-ue*pe*V,r[5]=-pe*V-de*he*$}else r[4]=r[5]=0;return r[0]=$,r[3]=V,r[1]=de*$,r[2]=ue*V,ae&&rotate(r,r,ae),r[4]+=i+oe,r[5]+=g+le,r},n.initDefaultProps=function(){var t=n.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),n}(),TRANSFORMABLE_PROPS=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function copyTransform(n,t){for(var r=0;r=0?parseFloat(n)/100*t:parseFloat(n):n}function calculateTextPosition(n,t,r){var i=t.position||"inside",g=t.distance!=null?t.distance:5,$=r.height,V=r.width,re=$/2,ie=r.x,ae=r.y,oe="left",le="top";if(i instanceof Array)ie+=parsePercent$1(i[0],r.width),ae+=parsePercent$1(i[1],r.height),oe=null,le=null;else switch(i){case"left":ie-=g,ae+=re,oe="right",le="middle";break;case"right":ie+=g+V,ae+=re,le="middle";break;case"top":ie+=V/2,ae-=g,oe="center",le="bottom";break;case"bottom":ie+=V/2,ae+=$+g,oe="center";break;case"inside":ie+=V/2,ae+=re,oe="center",le="middle";break;case"insideLeft":ie+=g,ae+=re,le="middle";break;case"insideRight":ie+=V-g,ae+=re,oe="right",le="middle";break;case"insideTop":ie+=V/2,ae+=g,oe="center";break;case"insideBottom":ie+=V/2,ae+=$-g,oe="center",le="bottom";break;case"insideTopLeft":ie+=g,ae+=g;break;case"insideTopRight":ie+=V-g,ae+=g,oe="right";break;case"insideBottomLeft":ie+=g,ae+=$-g,le="bottom";break;case"insideBottomRight":ie+=V-g,ae+=$-g,oe="right",le="bottom";break}return n=n||{},n.x=ie,n.y=ae,n.align=oe,n.verticalAlign=le,n}var PRESERVED_NORMAL_STATE="__zr_normal__",PRIMARY_STATES_KEYS$1=TRANSFORMABLE_PROPS.concat(["ignore"]),DEFAULT_ANIMATABLE_MAP=reduce(TRANSFORMABLE_PROPS,function(n,t){return n[t]=!0,n},{ignore:!1}),tmpTextPosCalcRes={},tmpBoundingRect=new BoundingRect$1(0,0,0,0),Element$1=function(){function n(t){this.id=guid(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return n.prototype._init=function(t){this.attr(t)},n.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var g=this.transform;g||(g=this.transform=[1,0,0,1,0,0]),g[4]+=t,g[5]+=r,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,g=i.local,$=r.innerTransformable,V=void 0,re=void 0,ie=!1;$.parent=g?this:null;var ae=!1;if($.copyTransform(r),i.position!=null){var oe=tmpBoundingRect;i.layoutRect?oe.copy(i.layoutRect):oe.copy(this.getBoundingRect()),g||oe.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,i,oe):calculateTextPosition(tmpTextPosCalcRes,i,oe),$.x=tmpTextPosCalcRes.x,$.y=tmpTextPosCalcRes.y,V=tmpTextPosCalcRes.align,re=tmpTextPosCalcRes.verticalAlign;var le=i.origin;if(le&&i.rotation!=null){var ue=void 0,de=void 0;le==="center"?(ue=oe.width*.5,de=oe.height*.5):(ue=parsePercent$1(le[0],oe.width),de=parsePercent$1(le[1],oe.height)),ae=!0,$.originX=-$.x+ue+(g?0:oe.x),$.originY=-$.y+de+(g?0:oe.y)}}i.rotation!=null&&($.rotation=i.rotation);var he=i.offset;he&&($.x+=he[0],$.y+=he[1],ae||($.originX=-he[0],$.originY=-he[1]));var pe=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,_e=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),Ce=void 0,xe=void 0,Ie=void 0;pe&&this.canBeInsideText()?(Ce=i.insideFill,xe=i.insideStroke,(Ce==null||Ce==="auto")&&(Ce=this.getInsideTextFill()),(xe==null||xe==="auto")&&(xe=this.getInsideTextStroke(Ce),Ie=!0)):(Ce=i.outsideFill,xe=i.outsideStroke,(Ce==null||Ce==="auto")&&(Ce=this.getOutsideFill()),(xe==null||xe==="auto")&&(xe=this.getOutsideStroke(Ce),Ie=!0)),Ce=Ce||"#000",(Ce!==_e.fill||xe!==_e.stroke||Ie!==_e.autoStroke||V!==_e.align||re!==_e.verticalAlign)&&(ie=!0,_e.fill=Ce,_e.stroke=xe,_e.autoStroke=Ie,_e.align=V,_e.verticalAlign=re,r.setDefaultTextStyle(_e)),r.__dirty|=REDRAW_BIT,ie&&r.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(t){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?LIGHT_LABEL_COLOR:DARK_LABEL_COLOR},n.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&parse(r);i||(i=[255,255,255,1]);for(var g=i[3],$=this.__zr.isDarkMode(),V=0;V<3;V++)i[V]=i[V]*g+($?0:255)*(1-g);return i[3]=1,stringify(i,"rgba")},n.prototype.traverse=function(t,r){},n.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},extend(this.extra,r)):this[t]=r},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(isObject$2(t))for(var i=t,g=keys(i),$=0;$0},n.prototype.getState=function(t){return this.states[t]},n.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},n.prototype.clearStates=function(t){this.useState(PRESERVED_NORMAL_STATE,!1,t)},n.prototype.useState=function(t,r,i,g){var $=t===PRESERVED_NORMAL_STATE,V=this.hasState();if(!(!V&&$)){var re=this.currentStates,ie=this.stateTransition;if(!(indexOf(re,t)>=0&&(r||re.length===1))){var ae;if(this.stateProxy&&!$&&(ae=this.stateProxy(t)),ae||(ae=this.states&&this.states[t]),!ae&&!$){logError("State "+t+" not exists.");return}$||this.saveCurrentToNormalState(ae);var oe=!!(ae&&ae.hoverLayer||g);oe&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,ae,this._normalState,r,!i&&!this.__inHover&&ie&&ie.duration>0,ie);var le=this._textContent,ue=this._textGuide;return le&&le.useState(t,r,i,oe),ue&&ue.useState(t,r,i,oe),$?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!oe&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),ae}}},n.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var g=[],$=this.currentStates,V=t.length,re=V===$.length;if(re){for(var ie=0;ie0,he);var pe=this._textContent,_e=this._textGuide;pe&&pe.useStates(t,r,ue),_e&&_e.useStates(t,r,ue),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!ue&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT)}},n.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},n.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},n.prototype.replaceState=function(t,r,i){var g=this.currentStates.slice(),$=indexOf(g,t),V=indexOf(g,r)>=0;$>=0?V?g.splice($,1):g[$]=r:i&&!V&&g.push(r),this.useStates(g)},n.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},n.prototype._mergeStates=function(t){for(var r={},i,g=0;g=0&&$.splice(V,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},n.prototype.updateDuringAnimation=function(t){this.markRedraw()},n.prototype.stopAnimation=function(t,r){for(var i=this.animators,g=i.length,$=[],V=0;V0&&r.during&&$[0].during(function(he,pe){r.during(pe)});for(var ue=0;ue<$.length;ue++){var de=$[ue];oe&&de.done(oe),le&&de.aborted(le),r.force&&de.duration(r.duration),de.start(r.easing)}return $}function copyArrShallow(n,t,r){for(var i=0;i0||g.force&&!V.length){var Ue=void 0,Fe=void 0,ze=void 0;if(re){Fe={},ue&&(Ue={});for(var Ne=0;Ne=0&&(g.splice($,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var g=indexOf(this._children,r);return g>=0&&this.replaceAt(i,g),this},t.prototype.replaceAt=function(r,i){var g=this._children,$=g[i];if(r&&r!==this&&r.parent!==this&&r!==$){g[i]=r,$.parent=null;var V=this.__zr;V&&$.removeSelfFromZr(V),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,g=this._children,$=indexOf(g,r);return $<0?this:(g.splice($,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,g=0;g0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},n.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},n.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},n.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},n.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},n.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},n.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},n.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},n.prototype.on=function(t,r,i){return this._disposed||this.handler.on(t,r,i),this},n.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},n.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},n.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r0){if(n<=g)return V;if(n>=$)return re}else{if(n>=g)return V;if(n<=$)return re}else{if(n===g)return V;if(n===$)return re}return(n-g)/ie*ae+V}function parsePercent(n,t){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return isString(n)?_trim(n).match(/%$/)?parseFloat(n)/100*t:parseFloat(n):n==null?NaN:+n}function round$2(n,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),ROUND_SUPPORTED_PRECISION_MAX),n=(+n).toFixed(t),r?n:+n}function getPrecision(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(n*t)/t===n)return r}return getPrecisionSafe(n)}function getPrecisionSafe(n){var t=n.toString().toLowerCase(),r=t.indexOf("e"),i=r>0?+t.slice(r+1):0,g=r>0?r:t.length,$=t.indexOf("."),V=$<0?0:g-1-$;return Math.max(0,V-i)}function getPercentSeats(n,t){var r=reduce(n,function(de,he){return de+(isNaN(he)?0:he)},0);if(r===0)return[];for(var i=Math.pow(10,t),g=map$1(n,function(de){return(isNaN(de)?0:de)/r*i*100}),$=i*100,V=map$1(g,function(de){return Math.floor(de)}),re=reduce(V,function(de,he){return de+he},0),ie=map$1(g,function(de,he){return de-V[he]});re<$;){for(var ae=Number.NEGATIVE_INFINITY,oe=null,le=0,ue=ie.length;leae&&(ae=ie[le],oe=le);++V[oe],ie[oe]=0,++re}return map$1(V,function(de){return de/i})}function addSafe(n,t){var r=Math.max(getPrecision(n),getPrecision(t)),i=n+t;return r>ROUND_SUPPORTED_PRECISION_MAX?i:round$2(i,r)}function remRadian(n){var t=Math.PI*2;return(n%t+t)%t}function isRadianAroundZero(n){return n>-RADIAN_EPSILON&&n=0||$&&indexOf($,ie)<0)){var ae=i.getShallow(ie,t);ae!=null&&(V[n[re][0]]=ae)}}return V}}var AREA_STYLE_KEY_MAP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],getAreaStyle=makeStyleMapper(AREA_STYLE_KEY_MAP),AreaStyleMixin=function(){function n(){}return n.prototype.getAreaStyle=function(t,r){return getAreaStyle(this,t,r)},n}(),globalImageCache=new LRU$1(50);function findExistImage(n){if(typeof n=="string"){var t=globalImageCache.get(n);return t&&t.image}else return n}function createOrUpdateImage(n,t,r,i,g){if(n)if(typeof n=="string"){if(t&&t.__zrImageSrc===n||!r)return t;var $=globalImageCache.get(n),V={hostEl:r,cb:i,cbPayload:g};return $?(t=$.image,!isImageReady(t)&&$.pending.push(V)):(t=platformApi.loadImage(n,imageOnLoad,imageOnLoad),t.__zrImageSrc=n,globalImageCache.put(n,t.__cachedImgObj={image:t,pending:[V]})),t}else return n;else return t}function imageOnLoad(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=V;ie++)re-=V;var ae=getWidth(r,t);return ae>re&&(r="",ae=0),re=n-ae,g.ellipsis=r,g.ellipsisWidth=ae,g.contentWidth=re,g.containerWidth=n,g}function truncateSingleLine(n,t,r){var i=r.containerWidth,g=r.font,$=r.contentWidth;if(!i){n.textLine="",n.isTruncated=!1;return}var V=getWidth(t,g);if(V<=i){n.textLine=t,n.isTruncated=!1;return}for(var re=0;;re++){if(V<=$||re>=r.maxIterations){t+=r.ellipsis;break}var ie=re===0?estimateLength(t,$,r.ascCharWidth,r.cnCharWidth):V>0?Math.floor(t.length*$/V):0;t=t.substr(0,ie),V=getWidth(t,g)}t===""&&(t=r.placeholder),n.textLine=t,n.isTruncated=!0}function estimateLength(n,t,r,i){for(var g=0,$=0,V=n.length;$he&&ae){var pe=Math.floor(he/re);oe=oe||ue.length>pe,ue=ue.slice(0,pe)}if(n&&$&&le!=null)for(var _e=prepareTruncateOptions(le,g,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),Ce={},xe=0;xere&&pushTokens(r,n.substring(re,ae),t,V),pushTokens(r,ie[2],t,V,ie[1]),re=STYLE_REG.lastIndex}reg){var Et=r.lines.length;$e>0?(Ie.tokens=Ie.tokens.slice(0,$e),Ce(Ie,Oe,Ne),r.lines=r.lines.slice(0,xe+1)):r.lines=r.lines.slice(0,xe),r.isTruncated=r.isTruncated||r.lines.length0&&he+i.accumWidth>i.width&&(oe=t.split(` `),ae=!0),i.accumWidth=he}else{var pe=wrapText(t,ie,i.width,i.breakAll,i.accumWidth);i.accumWidth=pe.accumWidth+de,le=pe.linesWidths,oe=pe.lines}}else oe=t.split(` `);for(var _e=0;_e=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var breakCharMap=reduce(",&?/;] ".split(""),function(n,t){return n[t]=!0,n},{});function isWordBreakChar(n){return isAlphabeticLetter(n)?!!breakCharMap[n]:!0}function wrapText(n,t,r,i,g){for(var $=[],V=[],re="",ie="",ae=0,oe=0,le=0;ler:g+oe+de>r){oe?(re||ie)&&(he?(re||(re=ie,ie="",ae=0,oe=ae),$.push(re),V.push(oe-ae),ie+=ue,ae+=de,re="",oe=ae):(ie&&(re+=ie,ie="",ae=0),$.push(re),V.push(oe),re=ue,oe=de)):he?($.push(ie),V.push(ae),ie=ue,ae=de):($.push(ue),V.push(de));continue}oe+=de,he?(ie+=ue,ae+=de):(ie&&(re+=ie,ie="",ae=0),re+=ue)}return!$.length&&!re&&(re=n,ie="",ae=0),ie&&(re+=ie),re&&($.push(re),V.push(oe)),$.length===1&&(oe+=g),{accumWidth:oe,lines:$,linesWidths:V}}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(n){__extends(t,n);function t(r){return n.call(this,r)||this}return t.prototype._init=function(r){for(var i=keys(r),g=0;g1e-4){re[0]=n-r,re[1]=t-i,ie[0]=n+r,ie[1]=t+i;return}if(start[0]=mathCos$4(g)*r+n,start[1]=mathSin$4(g)*i+t,end[0]=mathCos$4($)*r+n,end[1]=mathSin$4($)*i+t,ae(re,start,end),oe(ie,start,end),g=g%PI2$7,g<0&&(g=g+PI2$7),$=$%PI2$7,$<0&&($=$+PI2$7),g>$&&!V?$+=PI2$7:g<$&&V&&(g+=PI2$7),V){var ue=$;$=g,g=ue}for(var de=0;de<$;de+=Math.PI/2)de>g&&(extremity[0]=mathCos$4(de)*r+n,extremity[1]=mathSin$4(de)*i+t,ae(re,extremity,re),oe(ie,extremity,ie))}var CMD$2={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tmpOutX=[],tmpOutY=[],min=[],max=[],min2=[],max2=[],mathMin$2=Math.min,mathMax$2=Math.max,mathCos$3=Math.cos,mathSin$3=Math.sin,mathAbs$1=Math.abs,PI$5=Math.PI,PI2$6=PI$5*2,hasTypedArray=typeof Float32Array<"u",tmpAngles=[];function modPI2(n){var t=Math.round(n/PI$5*1e8)/1e8;return t%2*PI$5}function normalizeArcAngles(n,t){var r=modPI2(n[0]);r<0&&(r+=PI2$6);var i=r-n[0],g=n[1];g+=i,!t&&g-r>=PI2$6?g=r+PI2$6:t&&r-g>=PI2$6?g=r-PI2$6:!t&&r>g?g=r+(PI2$6-modPI2(r-g)):t&&r0&&(this._ux=mathAbs$1(i/devicePixelRatio/t)||0,this._uy=mathAbs$1(i/devicePixelRatio/r)||0)},n.prototype.setDPR=function(t){this.dpr=t},n.prototype.setContext=function(t){this._ctx=t},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(CMD$2.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},n.prototype.lineTo=function(t,r){var i=mathAbs$1(t-this._xi),g=mathAbs$1(r-this._yi),$=i>this._ux||g>this._uy;if(this.addData(CMD$2.L,t,r),this._ctx&&$&&this._ctx.lineTo(t,r),$)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var V=i*i+g*g;V>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=V)}return this},n.prototype.bezierCurveTo=function(t,r,i,g,$,V){return this._drawPendingPt(),this.addData(CMD$2.C,t,r,i,g,$,V),this._ctx&&this._ctx.bezierCurveTo(t,r,i,g,$,V),this._xi=$,this._yi=V,this},n.prototype.quadraticCurveTo=function(t,r,i,g){return this._drawPendingPt(),this.addData(CMD$2.Q,t,r,i,g),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,g),this._xi=i,this._yi=g,this},n.prototype.arc=function(t,r,i,g,$,V){this._drawPendingPt(),tmpAngles[0]=g,tmpAngles[1]=$,normalizeArcAngles(tmpAngles,V),g=tmpAngles[0],$=tmpAngles[1];var re=$-g;return this.addData(CMD$2.A,t,r,i,i,g,re,0,V?0:1),this._ctx&&this._ctx.arc(t,r,i,g,$,V),this._xi=mathCos$3($)*i+t,this._yi=mathSin$3($)*i+r,this},n.prototype.arcTo=function(t,r,i,g,$){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,g,$),this},n.prototype.rect=function(t,r,i,g){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,g),this.addData(CMD$2.R,t,r,i,g),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(CMD$2.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,this},n.prototype.fill=function(t){t&&t.fill(),this.toStatic()},n.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&hasTypedArray&&(this.data=new Float32Array(r));for(var i=0;ioe.length&&(this._expandData(),oe=this.data);for(var le=0;le0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},n.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 t=this.data,r=0,i=0,g=0,$=0,V;for(V=0;Vi||mathAbs$1(Ie)>g||ue===r-1)&&(pe=Math.sqrt(xe*xe+Ie*Ie),$=_e,V=Ce);break}case CMD$2.C:{var Ne=t[ue++],Oe=t[ue++],_e=t[ue++],Ce=t[ue++],$e=t[ue++],Ve=t[ue++];pe=cubicLength($,V,Ne,Oe,_e,Ce,$e,Ve,10),$=$e,V=Ve;break}case CMD$2.Q:{var Ne=t[ue++],Oe=t[ue++],_e=t[ue++],Ce=t[ue++];pe=quadraticLength($,V,Ne,Oe,_e,Ce,10),$=_e,V=Ce;break}case CMD$2.A:var Ue=t[ue++],Fe=t[ue++],ze=t[ue++],Pt=t[ue++],qe=t[ue++],Et=t[ue++],kt=Et+qe;ue+=1,he&&(re=mathCos$3(qe)*ze+Ue,ie=mathSin$3(qe)*Pt+Fe),pe=mathMax$2(ze,Pt)*mathMin$2(PI2$6,Math.abs(Et)),$=mathCos$3(kt)*ze+Ue,V=mathSin$3(kt)*Pt+Fe;break;case CMD$2.R:{re=$=t[ue++],ie=V=t[ue++];var At=t[ue++],Dt=t[ue++];pe=At*2+Dt*2;break}case CMD$2.Z:{var xe=re-$,Ie=ie-V;pe=Math.sqrt(xe*xe+Ie*Ie),$=re,V=ie;break}}pe>=0&&(ae[le++]=pe,oe+=pe)}return this._pathLen=oe,oe},n.prototype.rebuildPath=function(t,r){var i=this.data,g=this._ux,$=this._uy,V=this._len,re,ie,ae,oe,le,ue,de=r<1,he,pe,_e=0,Ce=0,xe,Ie=0,Ne,Oe;if(!(de&&(this._pathSegLen||this._calculateLength(),he=this._pathSegLen,pe=this._pathLen,xe=r*pe,!xe)))e:for(var $e=0;$e0&&(t.lineTo(Ne,Oe),Ie=0),Ve){case CMD$2.M:re=ae=i[$e++],ie=oe=i[$e++],t.moveTo(ae,oe);break;case CMD$2.L:{le=i[$e++],ue=i[$e++];var Fe=mathAbs$1(le-ae),ze=mathAbs$1(ue-oe);if(Fe>g||ze>$){if(de){var Pt=he[Ce++];if(_e+Pt>xe){var qe=(xe-_e)/Pt;t.lineTo(ae*(1-qe)+le*qe,oe*(1-qe)+ue*qe);break e}_e+=Pt}t.lineTo(le,ue),ae=le,oe=ue,Ie=0}else{var Et=Fe*Fe+ze*ze;Et>Ie&&(Ne=le,Oe=ue,Ie=Et)}break}case CMD$2.C:{var kt=i[$e++],At=i[$e++],Dt=i[$e++],Lt=i[$e++],jt=i[$e++],hn=i[$e++];if(de){var Pt=he[Ce++];if(_e+Pt>xe){var qe=(xe-_e)/Pt;cubicSubdivide(ae,kt,Dt,jt,qe,tmpOutX),cubicSubdivide(oe,At,Lt,hn,qe,tmpOutY),t.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}_e+=Pt}t.bezierCurveTo(kt,At,Dt,Lt,jt,hn),ae=jt,oe=hn;break}case CMD$2.Q:{var kt=i[$e++],At=i[$e++],Dt=i[$e++],Lt=i[$e++];if(de){var Pt=he[Ce++];if(_e+Pt>xe){var qe=(xe-_e)/Pt;quadraticSubdivide(ae,kt,Dt,qe,tmpOutX),quadraticSubdivide(oe,At,Lt,qe,tmpOutY),t.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}_e+=Pt}t.quadraticCurveTo(kt,At,Dt,Lt),ae=Dt,oe=Lt;break}case CMD$2.A:var vn=i[$e++],_n=i[$e++],wn=i[$e++],bn=i[$e++],Cn=i[$e++],Sn=i[$e++],Tn=i[$e++],En=!i[$e++],kn=wn>bn?wn:bn,$n=mathAbs$1(wn-bn)>.001,An=Cn+Sn,xn=!1;if(de){var Pt=he[Ce++];_e+Pt>xe&&(An=Cn+Sn*(xe-_e)/Pt,xn=!0),_e+=Pt}if($n&&t.ellipse?t.ellipse(vn,_n,wn,bn,Tn,Cn,An,En):t.arc(vn,_n,kn,Cn,An,En),xn)break e;Ue&&(re=mathCos$3(Cn)*wn+vn,ie=mathSin$3(Cn)*bn+_n),ae=mathCos$3(An)*wn+vn,oe=mathSin$3(An)*bn+_n;break;case CMD$2.R:re=ae=i[$e],ie=oe=i[$e+1],le=i[$e++],ue=i[$e++];var Ln=i[$e++],Nn=i[$e++];if(de){var Pt=he[Ce++];if(_e+Pt>xe){var Pn=xe-_e;t.moveTo(le,ue),t.lineTo(le+mathMin$2(Pn,Ln),ue),Pn-=Ln,Pn>0&&t.lineTo(le+Ln,ue+mathMin$2(Pn,Nn)),Pn-=Nn,Pn>0&&t.lineTo(le+mathMax$2(Ln-Pn,0),ue+Nn),Pn-=Ln,Pn>0&&t.lineTo(le,ue+mathMax$2(Nn-Pn,0));break e}_e+=Pt}t.rect(le,ue,Ln,Nn);break;case CMD$2.Z:if(de){var Pt=he[Ce++];if(_e+Pt>xe){var qe=(xe-_e)/Pt;t.lineTo(ae*(1-qe)+re*qe,oe*(1-qe)+ie*qe);break e}_e+=Pt}t.closePath(),ae=re,oe=ie}}},n.prototype.clone=function(){var t=new n,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},n.CMD=CMD$2,n.initDefaultProps=function(){var t=n.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),n}();const PathProxy$1=PathProxy;function containStroke$4(n,t,r,i,g,$,V){if(g===0)return!1;var re=g,ie=0,ae=n;if(V>t+re&&V>i+re||Vn+re&&$>r+re||$t+le&&oe>i+le&&oe>$+le&&oe>re+le||oen+le&&ae>r+le&&ae>g+le&&ae>V+le||aet+ae&&ie>i+ae&&ie>$+ae||ien+ae&&re>r+ae&&re>g+ae||rer||oe+aeg&&(g+=PI2$4);var ue=Math.atan2(ie,re);return ue<0&&(ue+=PI2$4),ue>=i&&ue<=g||ue+PI2$4>=i&&ue+PI2$4<=g}function windingLine(n,t,r,i,g,$){if($>t&&$>i||$g?re:0}var CMD$1=PathProxy$1.CMD,PI2$3=Math.PI*2,EPSILON=1e-4;function isAroundEqual(n,t){return Math.abs(n-t)t&&ae>i&&ae>$&&ae>re||ae1&&swapExtrema(),de=cubicAt(t,i,$,re,extrema[0]),ue>1&&(he=cubicAt(t,i,$,re,extrema[1]))),ue===2?_et&&re>i&&re>$||re=0&&ae<=1){for(var oe=0,le=quadraticAt(t,i,$,ae),ue=0;uer||re<-r)return 0;var ie=Math.sqrt(r*r-re*re);roots[0]=-ie,roots[1]=ie;var ae=Math.abs(i-g);if(ae<1e-4)return 0;if(ae>=PI2$3-1e-4){i=0,g=PI2$3;var oe=$?1:-1;return V>=roots[0]+n&&V<=roots[1]+n?oe:0}if(i>g){var le=i;i=g,g=le}i<0&&(i+=PI2$3,g+=PI2$3);for(var ue=0,de=0;de<2;de++){var he=roots[de];if(he+n>V){var pe=Math.atan2(re,he),oe=$?1:-1;pe<0&&(pe=PI2$3+pe),(pe>=i&&pe<=g||pe+PI2$3>=i&&pe+PI2$3<=g)&&(pe>Math.PI/2&&pe1&&(r||(re+=windingLine(ie,ae,oe,le,i,g))),_e&&(ie=$[he],ae=$[he+1],oe=ie,le=ae),pe){case CMD$1.M:oe=$[he++],le=$[he++],ie=oe,ae=le;break;case CMD$1.L:if(r){if(containStroke$4(ie,ae,$[he],$[he+1],t,i,g))return!0}else re+=windingLine(ie,ae,$[he],$[he+1],i,g)||0;ie=$[he++],ae=$[he++];break;case CMD$1.C:if(r){if(containStroke$3(ie,ae,$[he++],$[he++],$[he++],$[he++],$[he],$[he+1],t,i,g))return!0}else re+=windingCubic(ie,ae,$[he++],$[he++],$[he++],$[he++],$[he],$[he+1],i,g)||0;ie=$[he++],ae=$[he++];break;case CMD$1.Q:if(r){if(containStroke$2(ie,ae,$[he++],$[he++],$[he],$[he+1],t,i,g))return!0}else re+=windingQuadratic(ie,ae,$[he++],$[he++],$[he],$[he+1],i,g)||0;ie=$[he++],ae=$[he++];break;case CMD$1.A:var Ce=$[he++],xe=$[he++],Ie=$[he++],Ne=$[he++],Oe=$[he++],$e=$[he++];he+=1;var Ve=!!(1-$[he++]);ue=Math.cos(Oe)*Ie+Ce,de=Math.sin(Oe)*Ne+xe,_e?(oe=ue,le=de):re+=windingLine(ie,ae,ue,de,i,g);var Ue=(i-Ce)*Ne/Ie+Ce;if(r){if(containStroke$1(Ce,xe,Ne,Oe,Oe+$e,Ve,t,Ue,g))return!0}else re+=windingArc(Ce,xe,Ne,Oe,Oe+$e,Ve,Ue,g);ie=Math.cos(Oe+$e)*Ie+Ce,ae=Math.sin(Oe+$e)*Ne+xe;break;case CMD$1.R:oe=ie=$[he++],le=ae=$[he++];var Fe=$[he++],ze=$[he++];if(ue=oe+Fe,de=le+ze,r){if(containStroke$4(oe,le,ue,le,t,i,g)||containStroke$4(ue,le,ue,de,t,i,g)||containStroke$4(ue,de,oe,de,t,i,g)||containStroke$4(oe,de,oe,le,t,i,g))return!0}else re+=windingLine(ue,le,ue,de,i,g),re+=windingLine(oe,de,oe,le,i,g);break;case CMD$1.Z:if(r){if(containStroke$4(ie,ae,oe,le,t,i,g))return!0}else re+=windingLine(ie,ae,oe,le,i,g);ie=oe,ae=le;break}}return!r&&!isAroundEqual(ae,le)&&(re+=windingLine(ie,ae,oe,le,i,g)||0),re!==0}function contain(n,t,r){return containPath(n,0,!1,t,r)}function containStroke(n,t,r,i){return containPath(n,t,!0,r,i)}var DEFAULT_PATH_STYLE=defaults({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},DEFAULT_COMMON_STYLE),DEFAULT_PATH_ANIMATION_PROPS={style:defaults({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)},pathCopyParams=TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),Path=function(n){__extends(t,n);function t(r){return n.call(this,r)||this}return t.prototype.update=function(){var r=this;n.prototype.update.call(this);var i=this.style;if(i.decal){var g=this._decalEl=this._decalEl||new t;g.buildPath===t.prototype.buildPath&&(g.buildPath=function(ie){r.buildPath(ie,r.shape)}),g.silent=!0;var $=g.style;for(var V in i)$[V]!==i[V]&&($[V]=i[V]);$.fill=i.fill?i.decal:null,$.decal=null,$.shadowColor=null,i.strokeFirst&&($.stroke=null);for(var re=0;re.5?DARK_LABEL_COLOR:i>.2?LIGHTER_LABEL_COLOR:LIGHT_LABEL_COLOR}else if(r)return LIGHT_LABEL_COLOR}return DARK_LABEL_COLOR},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(isString(i)){var g=this.__zr,$=!!(g&&g.isDarkMode()),V=lum(r,0)0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,g=!r;if(g){var $=!1;this.path||($=!0,this.createPathProxy());var V=this.path;($||this.__dirty&SHAPE_CHANGED_BIT)&&(V.beginPath(),this.buildPath(V,this.shape,!1),this.pathUpdated()),r=V.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var re=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||g){re.copy(r);var ie=i.strokeNoScale?this.getLineScale():1,ae=i.lineWidth;if(!this.hasFill()){var oe=this.strokeContainThreshold;ae=Math.max(ae,oe??4)}ie>1e-10&&(re.width+=ae/ie,re.height+=ae/ie,re.x-=ae/ie/2,re.y-=ae/ie/2)}return re}return r},t.prototype.contain=function(r,i){var g=this.transformCoordToLocal(r,i),$=this.getBoundingRect(),V=this.style;if(r=g[0],i=g[1],$.contain(r,i)){var re=this.path;if(this.hasStroke()){var ie=V.lineWidth,ae=V.strokeNoScale?this.getLineScale():1;if(ae>1e-10&&(this.hasFill()||(ie=Math.max(ie,this.strokeContainThreshold)),containStroke(re,ie/ae,r,i)))return!0}if(this.hasFill())return contain(re,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):n.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var g=this.shape;return g||(g=this.shape={}),typeof r=="string"?g[r]=i:extend(g,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&SHAPE_CHANGED_BIT)},t.prototype.createStyle=function(r){return createObject(DEFAULT_PATH_STYLE,r)},t.prototype._innerSaveToNormal=function(r){n.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=extend({},this.shape))},t.prototype._applyStateObj=function(r,i,g,$,V,re){n.prototype._applyStateObj.call(this,r,i,g,$,V,re);var ie=!(i&&$),ae;if(i&&i.shape?V?$?ae=i.shape:(ae=extend({},g.shape),extend(ae,i.shape)):(ae=extend({},$?this.shape:g.shape),extend(ae,i.shape)):ie&&(ae=g.shape),ae)if(V){this.shape=extend({},this.shape);for(var oe={},le=keys(ae),ue=0;ue0},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(r){return createObject(DEFAULT_TSPAN_STYLE,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var i=r.text;i!=null?i+="":i="";var g=getBoundingRect(i,r.font,r.textAlign,r.textBaseline);if(g.x+=r.x||0,g.y+=r.y||0,this.hasStroke()){var $=r.lineWidth;g.x-=$/2,g.y-=$/2,g.width+=$,g.height+=$}this._rect=g}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(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$1(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var ZRImage=function(n){__extends(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return createObject(DEFAULT_IMAGE_STYLE,r)},t.prototype._getSize=function(r){var i=this.style,g=i[r];if(g!=null)return g;var $=isImageLike$1(i.image)?i.image:this.__image;if(!$)return 0;var V=r==="width"?"height":"width",re=i[V];return re==null?$[r]:$[r]/$[V]*re},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return DEFAULT_IMAGE_ANIMATION_PROPS},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new BoundingRect$1(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Displayable$1);ZRImage.prototype.type="image";const ZRImage$1=ZRImage;function buildPath$2(n,t){var r=t.x,i=t.y,g=t.width,$=t.height,V=t.r,re,ie,ae,oe;g<0&&(r=r+g,g=-g),$<0&&(i=i+$,$=-$),typeof V=="number"?re=ie=ae=oe=V:V instanceof Array?V.length===1?re=ie=ae=oe=V[0]:V.length===2?(re=ae=V[0],ie=oe=V[1]):V.length===3?(re=V[0],ie=oe=V[1],ae=V[2]):(re=V[0],ie=V[1],ae=V[2],oe=V[3]):re=ie=ae=oe=0;var le;re+ie>g&&(le=re+ie,re*=g/le,ie*=g/le),ae+oe>g&&(le=ae+oe,ae*=g/le,oe*=g/le),ie+ae>$&&(le=ie+ae,ie*=$/le,ae*=$/le),re+oe>$&&(le=re+oe,re*=$/le,oe*=$/le),n.moveTo(r+re,i),n.lineTo(r+g-ie,i),ie!==0&&n.arc(r+g-ie,i+ie,ie,-Math.PI/2,0),n.lineTo(r+g,i+$-ae),ae!==0&&n.arc(r+g-ae,i+$-ae,ae,0,Math.PI/2),n.lineTo(r+oe,i+$),oe!==0&&n.arc(r+oe,i+$-oe,oe,Math.PI/2,Math.PI),n.lineTo(r,i+re),re!==0&&n.arc(r+re,i+re,re,Math.PI,Math.PI*1.5)}var round$1=Math.round;function subPixelOptimizeLine$1(n,t,r){if(t){var i=t.x1,g=t.x2,$=t.y1,V=t.y2;n.x1=i,n.x2=g,n.y1=$,n.y2=V;var re=r&&r.lineWidth;return re&&(round$1(i*2)===round$1(g*2)&&(n.x1=n.x2=subPixelOptimize$1(i,re,!0)),round$1($*2)===round$1(V*2)&&(n.y1=n.y2=subPixelOptimize$1($,re,!0))),n}}function subPixelOptimizeRect$1(n,t,r){if(t){var i=t.x,g=t.y,$=t.width,V=t.height;n.x=i,n.y=g,n.width=$,n.height=V;var re=r&&r.lineWidth;return re&&(n.x=subPixelOptimize$1(i,re,!0),n.y=subPixelOptimize$1(g,re,!0),n.width=Math.max(subPixelOptimize$1(i+$,re,!1)-n.x,$===0?0:1),n.height=Math.max(subPixelOptimize$1(g+V,re,!1)-n.y,V===0?0:1)),n}}function subPixelOptimize$1(n,t,r){if(!t)return n;var i=round$1(n*2);return(i+round$1(t))%2===0?i/2:(i+(r?1:-1))/2}var RectShape=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),subPixelOptimizeOutputShape$1={},Rect=function(n){__extends(t,n);function t(r){return n.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new RectShape},t.prototype.buildPath=function(r,i){var g,$,V,re;if(this.subPixelOptimize){var ie=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,i,this.style);g=ie.x,$=ie.y,V=ie.width,re=ie.height,ie.r=i.r,i=ie}else g=i.x,$=i.y,V=i.width,re=i.height;i.r?buildPath$2(r,i):r.rect(g,$,V,re)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Path$1);Rect.prototype.type="rect";const Rect$1=Rect;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(n){__extends(t,n);function t(r){var i=n.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=DEFAULT_RICH_TEXT_COLOR,i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,qe=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),Et=V.calculatedLineHeight,kt=0;kt=0&&(kt=$e[Et],kt.align==="right");)this._placeToken(kt,r,Ue,Ce,qe,"right",Ie),Fe-=kt.width,qe-=kt.width,Et--;for(Pt+=($-(Pt-_e)-(xe-qe)-Fe)/2;ze<=Et;)kt=$e[ze],this._placeToken(kt,r,Ue,Ce,Pt+kt.width/2,"center",Ie),Pt+=kt.width,ze++;Ce+=Ue}},t.prototype._placeToken=function(r,i,g,$,V,re,ie){var ae=i.rich[r.styleName]||{};ae.text=r.text;var oe=r.verticalAlign,le=$+g/2;oe==="top"?le=$+r.height/2:oe==="bottom"&&(le=$+g-r.height/2);var ue=!r.isLineHolder&&needDrawBackground(ae);ue&&this._renderBackground(ae,i,re==="right"?V-r.width:re==="center"?V-r.width/2:V,le-r.height/2,r.width,r.height);var de=!!ae.backgroundColor,he=r.textPadding;he&&(V=getTextXForPadding(V,re,he),le-=r.height/2-he[0]-r.innerHeight/2);var pe=this._getOrCreateChild(TSpan$1),_e=pe.createStyle();pe.useStyle(_e);var Ce=this._defaultStyle,xe=!1,Ie=0,Ne=getFill("fill"in ae?ae.fill:"fill"in i?i.fill:(xe=!0,Ce.fill)),Oe=getStroke("stroke"in ae?ae.stroke:"stroke"in i?i.stroke:!de&&!ie&&(!Ce.autoStroke||xe)?(Ie=DEFAULT_STROKE_LINE_WIDTH,Ce.stroke):null),$e=ae.textShadowBlur>0||i.textShadowBlur>0;_e.text=r.text,_e.x=V,_e.y=le,$e&&(_e.shadowBlur=ae.textShadowBlur||i.textShadowBlur||0,_e.shadowColor=ae.textShadowColor||i.textShadowColor||"transparent",_e.shadowOffsetX=ae.textShadowOffsetX||i.textShadowOffsetX||0,_e.shadowOffsetY=ae.textShadowOffsetY||i.textShadowOffsetY||0),_e.textAlign=re,_e.textBaseline="middle",_e.font=r.font||DEFAULT_FONT,_e.opacity=retrieve3(ae.opacity,i.opacity,1),setSeparateFont(_e,ae),Oe&&(_e.lineWidth=retrieve3(ae.lineWidth,i.lineWidth,Ie),_e.lineDash=retrieve2(ae.lineDash,i.lineDash),_e.lineDashOffset=i.lineDashOffset||0,_e.stroke=Oe),Ne&&(_e.fill=Ne);var Ve=r.contentWidth,Ue=r.contentHeight;pe.setBoundingRect(new BoundingRect$1(adjustTextX(_e.x,Ve,_e.textAlign),adjustTextY(_e.y,Ue,_e.textBaseline),Ve,Ue))},t.prototype._renderBackground=function(r,i,g,$,V,re){var ie=r.backgroundColor,ae=r.borderWidth,oe=r.borderColor,le=ie&&ie.image,ue=ie&&!le,de=r.borderRadius,he=this,pe,_e;if(ue||r.lineHeight||ae&&oe){pe=this._getOrCreateChild(Rect$1),pe.useStyle(pe.createStyle()),pe.style.fill=null;var Ce=pe.shape;Ce.x=g,Ce.y=$,Ce.width=V,Ce.height=re,Ce.r=de,pe.dirtyShape()}if(ue){var xe=pe.style;xe.fill=ie||null,xe.fillOpacity=retrieve2(r.fillOpacity,1)}else if(le){_e=this._getOrCreateChild(ZRImage$1),_e.onload=function(){he.dirtyStyle()};var Ie=_e.style;Ie.image=ie.image,Ie.x=g,Ie.y=$,Ie.width=V,Ie.height=re}if(ae&&oe){var xe=pe.style;xe.lineWidth=ae,xe.stroke=oe,xe.strokeOpacity=retrieve2(r.strokeOpacity,1),xe.lineDash=r.borderDash,xe.lineDashOffset=r.borderDashOffset||0,pe.strokeContainThreshold=0,pe.hasFill()&&pe.hasStroke()&&(xe.strokeFirst=!0,xe.lineWidth*=2)}var Ne=(pe||_e).style;Ne.shadowBlur=r.shadowBlur||0,Ne.shadowColor=r.shadowColor||"transparent",Ne.shadowOffsetX=r.shadowOffsetX||0,Ne.shadowOffsetY=r.shadowOffsetY||0,Ne.opacity=retrieve3(r.opacity,i.opacity,1)},t.makeFont=function(r){var i="";return hasSeparateFont(r)&&(i=[r.fontStyle,r.fontWeight,parseFontSize(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&trim(i)||r.textFont||r.font},t}(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(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?DEFAULT_FONT_SIZE+"px":n+"px"}function setSeparateFont(n,t){for(var r=0;r=0,$=!1;if(n instanceof Path$1){var V=getSavedStates(n),re=g&&V.selectFill||V.normalFill,ie=g&&V.selectStroke||V.normalStroke;if(hasFillOrStroke(re)||hasFillOrStroke(ie)){i=i||{};var ae=i.style||{};ae.fill==="inherit"?($=!0,i=extend({},i),ae=extend({},ae),ae.fill=re):!hasFillOrStroke(ae.fill)&&hasFillOrStroke(re)?($=!0,i=extend({},i),ae=extend({},ae),ae.fill=liftColor(re)):!hasFillOrStroke(ae.stroke)&&hasFillOrStroke(ie)&&($||(i=extend({},i),ae=extend({},ae)),ae.stroke=liftColor(ie)),i.style=ae}}if(i&&i.z2==null){$||(i=extend({},i));var oe=n.z2EmphasisLift;i.z2=n.z2+(oe??Z2_EMPHASIS_LIFT)}return i}function createSelectDefaultState(n,t,r){if(r&&r.z2==null){r=extend({},r);var i=n.z2SelectLift;r.z2=n.z2+(i??Z2_SELECT_LIFT)}return r}function createBlurDefaultState(n,t,r){var i=indexOf(n.currentStates,t)>=0,g=n.style.opacity,$=i?null:getFromStateStyle(n,["opacity"],t,{opacity:1});r=r||{};var V=r.style||{};return V.opacity==null&&(r=extend({},r),V=extend({opacity:i?g:$.opacity*.1},V),r.style=V),r}function elementStateProxy(n,t){var r=this.states[n];if(this.style){if(n==="emphasis")return createEmphasisDefaultState(this,n,t,r);if(n==="blur")return createBlurDefaultState(this,n,r);if(n==="select")return createSelectDefaultState(this,n,r)}return r}function setDefaultStateProxy(n){n.stateProxy=elementStateProxy;var t=n.getTextContent(),r=n.getTextGuideLine();t&&(t.stateProxy=elementStateProxy),r&&(r.stateProxy=elementStateProxy)}function enterEmphasisWhenMouseOver(n,t){!shouldSilent(n,t)&&!n.__highByOuter&&traverseUpdateState(n,singleEnterEmphasis)}function leaveEmphasisWhenMouseOut(n,t){!shouldSilent(n,t)&&!n.__highByOuter&&traverseUpdateState(n,singleLeaveEmphasis)}function enterEmphasis(n,t){n.__highByOuter|=1<<(t||0),traverseUpdateState(n,singleEnterEmphasis)}function leaveEmphasis(n,t){!(n.__highByOuter&=~(1<<(t||0)))&&traverseUpdateState(n,singleLeaveEmphasis)}function enterBlur(n){traverseUpdateState(n,singleEnterBlur)}function leaveBlur(n){traverseUpdateState(n,singleLeaveBlur)}function enterSelect(n){traverseUpdateState(n,singleEnterSelect)}function leaveSelect(n){traverseUpdateState(n,singleLeaveSelect)}function shouldSilent(n,t){return n.__highDownSilentOnTouch&&t.zrByTouch}function allLeaveBlur(n){var t=n.getModel(),r=[],i=[];t.eachComponent(function(g,$){var V=getComponentStates($),re=g==="series",ie=re?n.getViewOfSeriesModel($):n.getViewOfComponentModel($);!re&&i.push(ie),V.isBlured&&(ie.group.traverse(function(ae){singleLeaveBlur(ae)}),re&&r.push($)),V.isBlured=!1}),each$4(i,function(g){g&&g.toggleBlurSeries&&g.toggleBlurSeries(r,!1,t)})}function blurSeries(n,t,r,i){var g=i.getModel();r=r||"coordinateSystem";function $(ae,oe){for(var le=0;le0){var re={dataIndex:V,seriesIndex:r.seriesIndex};$!=null&&(re.dataType=$),t.push(re)}})}),t}function enableHoverEmphasis(n,t,r){setAsHighDownDispatcher(n,!0),traverseUpdateState(n,setDefaultStateProxy),enableHoverFocus(n,t,r)}function disableHoverEmphasis(n){setAsHighDownDispatcher(n,!1)}function toggleHoverEmphasis(n,t,r,i){i?disableHoverEmphasis(n):enableHoverEmphasis(n,t,r)}function enableHoverFocus(n,t,r){var i=getECData(n);t!=null?(i.focus=t,i.blurScope=r):i.focus&&(i.focus=null)}var OTHER_STATES=["emphasis","blur","select"],defaultStyleGetterMap={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function setStatesStylesFromModel(n,t,r,i){r=r||"itemStyle";for(var g=0;g1&&(V*=mathSqrt$1(he),re*=mathSqrt$1(he));var pe=(g===$?-1:1)*mathSqrt$1((V*V*(re*re)-V*V*(de*de)-re*re*(ue*ue))/(V*V*(de*de)+re*re*(ue*ue)))||0,_e=pe*V*de/re,Ce=pe*-re*ue/V,xe=(n+r)/2+mathCos$2(le)*_e-mathSin$2(le)*Ce,Ie=(t+i)/2+mathSin$2(le)*_e+mathCos$2(le)*Ce,Ne=vAngle([1,0],[(ue-_e)/V,(de-Ce)/re]),Oe=[(ue-_e)/V,(de-Ce)/re],$e=[(-1*ue-_e)/V,(-1*de-Ce)/re],Ve=vAngle(Oe,$e);if(vRatio(Oe,$e)<=-1&&(Ve=PI$4),vRatio(Oe,$e)>=1&&(Ve=0),Ve<0){var Ue=Math.round(Ve/PI$4*1e6)/1e6;Ve=PI$4*2+Ue%2*PI$4}oe.addData(ae,xe,Ie,V,re,Ne,Ve,le,$)}var commandReg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,numberReg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function createPathProxyFromString(n){var t=new PathProxy$1;if(!n)return t;var r=0,i=0,g=r,$=i,V,re=PathProxy$1.CMD,ie=n.match(commandReg);if(!ie)return t;for(var ae=0;aekt*kt+At*At&&(Ue=ze,Fe=Pt),{cx:Ue,cy:Fe,x0:-oe,y0:-le,x1:Ue*(g/Oe-1),y1:Fe*(g/Oe-1)}}function normalizeCornerRadius(n){var t;if(isArray(n)){var r=n.length;if(!r)return n;r===1?t=[n[0],n[0],0,0]:r===2?t=[n[0],n[0],n[1],n[1]]:r===3?t=n.concat(n[2]):t=n}else t=[n,n,n,n];return t}function buildPath$1(n,t){var r,i=mathMax$1(t.r,0),g=mathMax$1(t.r0||0,0),$=i>0,V=g>0;if(!(!$&&!V)){if($||(i=g,g=0),g>i){var re=i;i=g,g=re}var ie=t.startAngle,ae=t.endAngle;if(!(isNaN(ie)||isNaN(ae))){var oe=t.cx,le=t.cy,ue=!!t.clockwise,de=mathAbs(ae-ie),he=de>PI2$2&&de%PI2$2;if(he>e&&(de=he),!(i>e))n.moveTo(oe,le);else if(de>PI2$2-e)n.moveTo(oe+i*mathCos$1(ie),le+i*mathSin$1(ie)),n.arc(oe,le,i,ie,ae,!ue),g>e&&(n.moveTo(oe+g*mathCos$1(ae),le+g*mathSin$1(ae)),n.arc(oe,le,g,ae,ie,ue));else{var pe=void 0,_e=void 0,Ce=void 0,xe=void 0,Ie=void 0,Ne=void 0,Oe=void 0,$e=void 0,Ve=void 0,Ue=void 0,Fe=void 0,ze=void 0,Pt=void 0,qe=void 0,Et=void 0,kt=void 0,At=i*mathCos$1(ie),Dt=i*mathSin$1(ie),Lt=g*mathCos$1(ae),jt=g*mathSin$1(ae),hn=de>e;if(hn){var vn=t.cornerRadius;vn&&(r=normalizeCornerRadius(vn),pe=r[0],_e=r[1],Ce=r[2],xe=r[3]);var _n=mathAbs(i-g)/2;if(Ie=mathMin$1(_n,Ce),Ne=mathMin$1(_n,xe),Oe=mathMin$1(_n,pe),$e=mathMin$1(_n,_e),Fe=Ve=mathMax$1(Ie,Ne),ze=Ue=mathMax$1(Oe,$e),(Ve>e||Ue>e)&&(Pt=i*mathCos$1(ae),qe=i*mathSin$1(ae),Et=g*mathCos$1(ie),kt=g*mathSin$1(ie),dee){var $n=mathMin$1(Ce,Fe),An=mathMin$1(xe,Fe),xn=computeCornerTangents(Et,kt,At,Dt,i,$n,ue),Ln=computeCornerTangents(Pt,qe,Lt,jt,i,An,ue);n.moveTo(oe+xn.cx+xn.x0,le+xn.cy+xn.y0),Fe0&&n.arc(oe+xn.cx,le+xn.cy,$n,mathATan2(xn.y0,xn.x0),mathATan2(xn.y1,xn.x1),!ue),n.arc(oe,le,i,mathATan2(xn.cy+xn.y1,xn.cx+xn.x1),mathATan2(Ln.cy+Ln.y1,Ln.cx+Ln.x1),!ue),An>0&&n.arc(oe+Ln.cx,le+Ln.cy,An,mathATan2(Ln.y1,Ln.x1),mathATan2(Ln.y0,Ln.x0),!ue))}else n.moveTo(oe+At,le+Dt),n.arc(oe,le,i,ie,ae,!ue);if(!(g>e)||!hn)n.lineTo(oe+Lt,le+jt);else if(ze>e){var $n=mathMin$1(pe,ze),An=mathMin$1(_e,ze),xn=computeCornerTangents(Lt,jt,Pt,qe,g,-An,ue),Ln=computeCornerTangents(At,Dt,Et,kt,g,-$n,ue);n.lineTo(oe+xn.cx+xn.x0,le+xn.cy+xn.y0),ze0&&n.arc(oe+xn.cx,le+xn.cy,An,mathATan2(xn.y0,xn.x0),mathATan2(xn.y1,xn.x1),!ue),n.arc(oe,le,g,mathATan2(xn.cy+xn.y1,xn.cx+xn.x1),mathATan2(Ln.cy+Ln.y1,Ln.cx+Ln.x1),ue),$n>0&&n.arc(oe+Ln.cx,le+Ln.cy,$n,mathATan2(Ln.y1,Ln.x1),mathATan2(Ln.y0,Ln.x0),!ue))}else n.lineTo(oe+Lt,le+jt),n.arc(oe,le,g,ae,ie,ue)}n.closePath()}}}var SectorShape=function(){function n(){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 n}(),Sector=function(n){__extends(t,n);function t(r){return n.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new SectorShape},t.prototype.buildPath=function(r,i){buildPath$1(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Path$1);Sector.prototype.type="sector";const Sector$1=Sector;var RingShape=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),Ring=function(n){__extends(t,n);function t(r){return n.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new RingShape},t.prototype.buildPath=function(r,i){var g=i.cx,$=i.cy,V=Math.PI*2;r.moveTo(g+i.r,$),r.arc(g,$,i.r,0,V,!1),r.moveTo(g+i.r0,$),r.arc(g,$,i.r0,0,V,!0)},t}(Path$1);Ring.prototype.type="ring";const Ring$1=Ring;function smoothBezier(n,t,r,i){var g=[],$=[],V=[],re=[],ie,ae,oe,le;if(i){oe=[1/0,1/0],le=[-1/0,-1/0];for(var ue=0,de=n.length;ue=2){if(i){var $=smoothBezier(g,i,r,t.smoothConstraint);n.moveTo(g[0][0],g[0][1]);for(var V=g.length,re=0;re<(r?V:V-1);re++){var ie=$[re*2],ae=$[re*2+1],oe=g[(re+1)%V];n.bezierCurveTo(ie[0],ie[1],ae[0],ae[1],oe[0],oe[1])}}else{n.moveTo(g[0][0],g[0][1]);for(var re=1,le=g.length;reextent2[1]){if(re=!1,$)return re;var oe=Math.abs(extent2[0]-extent[1]),le=Math.abs(extent[0]-extent2[1]);Math.min(oe,le)>g.len()&&(oe0){var le=oe.duration,ue=oe.delay,de=oe.easing,he={duration:le,delay:ue||0,easing:de,done:$,force:!!$||!!V,setToFinal:!ae,scope:n,during:V};re?t.animateFrom(r,he):t.animateTo(r,he)}else t.stopAnimation(),!re&&t.attr(r),V&&V(1),$&&$()}function updateProps$1(n,t,r,i,g,$){animateOrSetProps("update",n,t,r,i,g,$)}function initProps(n,t,r,i,g,$){animateOrSetProps("enter",n,t,r,i,g,$)}function isElementRemoved(n){if(!n.__zr)return!0;for(var t=0;tMath.abs($[1])?$[0]>0?"right":"left":$[1]>0?"bottom":"top"}function isNotGroup(n){return!n.isGroup}function isPath(n){return n.shape!=null}function groupTransition(n,t,r){if(!n||!t)return;function i(V){var re={};return V.traverse(function(ie){isNotGroup(ie)&&ie.anid&&(re[ie.anid]=ie)}),re}function g(V){var re={x:V.x,y:V.y,rotation:V.rotation};return isPath(V)&&(re.shape=extend({},V.shape)),re}var $=i(n);t.traverse(function(V){if(isNotGroup(V)&&V.anid){var re=$[V.anid];if(re){var ie=g(V);V.attr(g(re)),updateProps$1(V,ie,r,getECData(V).dataIndex)}}})}function clipPointsByRect(n,t){return map$1(n,function(r){var i=r[0];i=mathMax(i,t.x),i=mathMin(i,t.x+t.width);var g=r[1];return g=mathMax(g,t.y),g=mathMin(g,t.y+t.height),[i,g]})}function clipRectByRect(n,t){var r=mathMax(n.x,t.x),i=mathMin(n.x+n.width,t.x+t.width),g=mathMax(n.y,t.y),$=mathMin(n.y+n.height,t.y+t.height);if(i>=r&&$>=g)return{x:r,y:g,width:i-r,height:$-g}}function createIcon(n,t,r){var i=extend({rectHover:!0},t),g=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(g.image=n.slice(8),defaults(g,r),new ZRImage$1(i)):makePath(n.replace("path://",""),i,r,"center")}function linePolygonIntersect(n,t,r,i,g){for(var $=0,V=g[g.length-1];$1)return!1;var _e=crossProduct2d(de,he,oe,le)/ue;return!(_e<0||_e>1)}function crossProduct2d(n,t,r,i){return n*i-r*t}function nearZero(n){return n<=1e-6&&n>=-1e-6}function setTooltipConfig(n){var t=n.itemTooltipOption,r=n.componentModel,i=n.itemName,g=isString(t)?{formatter:t}:t,$=r.mainType,V=r.componentIndex,re={componentType:$,name:i,$vars:["name"]};re[$+"Index"]=V;var ie=n.formatterParamsExtra;ie&&each$4(keys(ie),function(oe){hasOwn(re,oe)||(re[oe]=ie[oe],re.$vars.push(oe))});var ae=getECData(n.el);ae.componentMainType=$,ae.componentIndex=V,ae.tooltipConfig={name:i,option:defaults({content:i,encodeHTMLContent:!0,formatterParams:re},g)}}function traverseElement(n,t){var r;n.isGroup&&(r=t(n)),r||n.traverse(t)}function traverseElements(n,t){if(n)if(isArray(n))for(var r=0;r=0&&re.push(ie)}),re}}function inheritDefaultOption(n,t){return merge(merge({},n,!0),t,!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",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},langZH={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],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:"旭日图",custom:"自定义图表",chart:"图表"}},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 n=(document.documentElement.lang||navigator.language||navigator.browserLanguage||DEFAULT_LOCALE).toUpperCase();return n.indexOf(LOCALE_ZH)>-1?LOCALE_ZH:DEFAULT_LOCALE}():DEFAULT_LOCALE;function registerLocale(n,t){n=n.toUpperCase(),localeModels[n]=new Model$1(t),localeStorage[n]=t}function createLocaleObject(n){if(isString(n)){var t=localeStorage[n.toUpperCase()]||{};return n===LOCALE_ZH||n===LOCALE_EN?clone$2(t):merge(clone$2(t),clone$2(localeStorage[DEFAULT_LOCALE]),!1)}else return merge(clone$2(n),clone$2(localeStorage[DEFAULT_LOCALE]),!1)}function getLocaleModel(n){return localeModels[n]}function getDefaultLocaleModel(){return localeModels[DEFAULT_LOCALE]}registerLocale(LOCALE_EN,langEN);registerLocale(LOCALE_ZH,langZH);function pad(n,t){return n+="","0000".substr(0,t-n.length)+n}function format(n,t,r,i){var g=parseDate(n),$=g[fullYearGetterName(r)](),V=g[monthGetterName(r)]()+1,re=Math.floor((V-1)/3)+1,ie=g[dateGetterName(r)](),ae=g["get"+(r?"UTC":"")+"Day"](),oe=g[hoursGetterName(r)](),le=(oe-1)%12+1,ue=g[minutesGetterName(r)](),de=g[secondsGetterName(r)](),he=g[millisecondsGetterName(r)](),pe=oe>=12?"pm":"am",_e=pe.toUpperCase(),Ce=i instanceof Model$1?i:getLocaleModel(i||SYSTEM_LANG)||getDefaultLocaleModel(),xe=Ce.getModel("time"),Ie=xe.get("month"),Ne=xe.get("monthAbbr"),Oe=xe.get("dayOfWeek"),$e=xe.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,pe+"").replace(/{A}/g,_e+"").replace(/{yyyy}/g,$+"").replace(/{yy}/g,pad($%100+"",2)).replace(/{Q}/g,re+"").replace(/{MMMM}/g,Ie[V-1]).replace(/{MMM}/g,Ne[V-1]).replace(/{MM}/g,pad(V,2)).replace(/{M}/g,V+"").replace(/{dd}/g,pad(ie,2)).replace(/{d}/g,ie+"").replace(/{eeee}/g,Oe[ae]).replace(/{ee}/g,$e[ae]).replace(/{e}/g,ae+"").replace(/{HH}/g,pad(oe,2)).replace(/{H}/g,oe+"").replace(/{hh}/g,pad(le+"",2)).replace(/{h}/g,le+"").replace(/{mm}/g,pad(ue,2)).replace(/{m}/g,ue+"").replace(/{ss}/g,pad(de,2)).replace(/{s}/g,de+"").replace(/{SSS}/g,pad(he,3)).replace(/{S}/g,he+"")}function fullYearGetterName(n){return n?"getUTCFullYear":"getFullYear"}function monthGetterName(n){return n?"getUTCMonth":"getMonth"}function dateGetterName(n){return n?"getUTCDate":"getDate"}function hoursGetterName(n){return n?"getUTCHours":"getHours"}function minutesGetterName(n){return n?"getUTCMinutes":"getMinutes"}function secondsGetterName(n){return n?"getUTCSeconds":"getSeconds"}function millisecondsGetterName(n){return n?"getUTCMilliseconds":"getMilliseconds"}function addCommas(n){if(!isNumeric(n))return isString(n)?n:"-";var t=(n+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function toCamelCase(n,t){return n=(n||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),t&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var normalizeCssArray=normalizeCssArray$1;function makeValueReadable(n,t,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function g(oe){return oe&&trim(oe)?oe:"-"}function $(oe){return!!(oe!=null&&!isNaN(oe)&&isFinite(oe))}var V=t==="time",re=n instanceof Date;if(V||re){var ie=V?parseDate(n):n;if(isNaN(+ie)){if(re)return"-"}else return format(ie,i,r)}if(t==="ordinal")return isStringSafe(n)?g(n):isNumber(n)&&$(n)?n+"":"-";var ae=numericToNumber(n);return $(ae)?addCommas(ae):isStringSafe(n)?g(n):typeof n=="boolean"?n+"":"-"}var TPL_VAR_ALIAS=["a","b","c","d","e","f","g"],wrapVar=function(n,t){return"{"+n+(t??"")+"}"};function formatTpl(n,t,r){isArray(t)||(t=[t]);var i=t.length;if(!i)return"";for(var g=t[0].$vars||[],$=0;$':'';var V=r.markerId||"markerX";return{renderMode:$,content:"{"+V+"|} ",style:g==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function convertToColorString(n,t){return t=t||"transparent",isString(n)?n:isObject$2(n)&&n.colorStops&&(n.colorStops[0]||{}).color||t}function windowOpen(n,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=n}else window.open(n,t)}var each$3=each$4,LOCATION_PARAMS=["left","right","top","bottom","width","height"],HV_NAMES=[["width","left","right"],["height","top","bottom"]];function boxLayout(n,t,r,i,g){var $=0,V=0;i==null&&(i=1/0),g==null&&(g=1/0);var re=0;t.eachChild(function(ie,ae){var oe=ie.getBoundingRect(),le=t.childAt(ae+1),ue=le&&le.getBoundingRect(),de,he;if(n==="horizontal"){var pe=oe.width+(ue?-ue.x+oe.x:0);de=$+pe,de>i||ie.newline?($=0,de=pe,V+=re+r,re=oe.height):re=Math.max(re,oe.height)}else{var _e=oe.height+(ue?-ue.y+oe.y:0);he=V+_e,he>g||ie.newline?($+=re+r,V=0,he=_e,re=oe.width):re=Math.max(re,oe.width)}ie.newline||(ie.x=$,ie.y=V,ie.markRedraw(),n==="horizontal"?$=de+r:V=he+r)})}var box=boxLayout;curry$1(boxLayout,"vertical");curry$1(boxLayout,"horizontal");function getLayoutRect(n,t,r){r=normalizeCssArray(r||0);var i=t.width,g=t.height,$=parsePercent(n.left,i),V=parsePercent(n.top,g),re=parsePercent(n.right,i),ie=parsePercent(n.bottom,g),ae=parsePercent(n.width,i),oe=parsePercent(n.height,g),le=r[2]+r[0],ue=r[1]+r[3],de=n.aspect;switch(isNaN(ae)&&(ae=i-re-ue-$),isNaN(oe)&&(oe=g-ie-le-V),de!=null&&(isNaN(ae)&&isNaN(oe)&&(de>i/g?ae=i*.8:oe=g*.8),isNaN(ae)&&(ae=de*oe),isNaN(oe)&&(oe=ae/de)),isNaN($)&&($=i-re-ae-ue),isNaN(V)&&(V=g-ie-oe-le),n.left||n.right){case"center":$=i/2-ae/2-r[3];break;case"right":$=i-ae-ue;break}switch(n.top||n.bottom){case"middle":case"center":V=g/2-oe/2-r[0];break;case"bottom":V=g-oe-le;break}$=$||0,V=V||0,isNaN(ae)&&(ae=i-ue-$-(re||0)),isNaN(oe)&&(oe=g-le-V-(ie||0));var he=new BoundingRect$1($+r[3],V+r[0],ae,oe);return he.margin=r,he}function fetchLayoutMode(n){var t=n.layoutMode||n.constructor.layoutMode;return isObject$2(t)?t:t?{type:t}:null}function mergeLayoutParam(n,t,r){var i=r&&r.ignoreSize;!isArray(i)&&(i=[i,i]);var g=V(HV_NAMES[0],0),$=V(HV_NAMES[1],1);ae(HV_NAMES[0],n,g),ae(HV_NAMES[1],n,$);function V(oe,le){var ue={},de=0,he={},pe=0,_e=2;if(each$3(oe,function(Ie){he[Ie]=n[Ie]}),each$3(oe,function(Ie){re(t,Ie)&&(ue[Ie]=he[Ie]=t[Ie]),ie(ue,Ie)&&de++,ie(he,Ie)&&pe++}),i[le])return ie(t,oe[1])?he[oe[2]]=null:ie(t,oe[2])&&(he[oe[1]]=null),he;if(pe===_e||!de)return he;if(de>=_e)return ue;for(var Ce=0;Ce=0;ie--)re=merge(re,g[ie],!0);i.defaultOption=re}return i.defaultOption},t.prototype.getReferringComponents=function(r,i){var g=r+"Index",$=r+"Id";return queryReferringComponents(this.ecModel,r,{index:this.get(g,!0),id:this.get($,!0)},i)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Model$1);mountExtend(ComponentModel,Model$1);enableClassManagement(ComponentModel);enableSubTypeDefaulter(ComponentModel);enableTopologicalTravel(ComponentModel,getDependencies);function getDependencies(n){var t=[];return each$4(ComponentModel.getClassesByMainType(n),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=map$1(t,function(r){return parseClassType(r).main}),n!=="dataset"&&indexOf(t,"dataset")<=0&&t.unshift("dataset"),t}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","itemChildGroupId","seriesName"]),SOURCE_FORMAT_ORIGINAL="original",SOURCE_FORMAT_ARRAY_ROWS="arrayRows",SOURCE_FORMAT_OBJECT_ROWS="objectRows",SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",SOURCE_FORMAT_TYPED_ARRAY="typedArray",SOURCE_FORMAT_UNKNOWN="unknown",SERIES_LAYOUT_BY_COLUMN="column",SERIES_LAYOUT_BY_ROW="row",BE_ORDINAL={Must:1,Might:2,Not:3},innerGlobalModel=makeInner();function resetSourceDefaulter(n){innerGlobalModel(n).datasetMap=createHashMap()}function makeSeriesEncodeForNameBased(n,t,r){var i={},g=querySeriesUpstreamDatasetModel(n);if(!g)return i;var $=t.sourceFormat,V=t.dimensionsDefine,re;($===SOURCE_FORMAT_OBJECT_ROWS||$===SOURCE_FORMAT_KEYED_COLUMNS)&&each$4(V,function(oe,le){(isObject$2(oe)?oe.name:oe)==="name"&&(re=le)});var ie=function(){for(var oe={},le={},ue=[],de=0,he=Math.min(5,r);det)return n[i];return n[r-1]}function getFromPalette(n,t,r,i,g,$,V){$=$||n;var re=t($),ie=re.paletteIdx||0,ae=re.paletteNameMap=re.paletteNameMap||{};if(ae.hasOwnProperty(g))return ae[g];var oe=V==null||!i?r:getNearestPalette(i,V);if(oe=oe||r,!(!oe||!oe.length)){var le=oe[ie];return g&&(ae[g]=le),re.paletteIdx=(ie+1)%oe.length,le}}function clearPalette(n,t){t(n).paletteIdx=0,t(n).paletteNameMap={}}var reCreateSeriesIndices,assertSeriesInitialized,initBase,OPTION_INNER_KEY="\0_ec_inner",OPTION_INNER_VALUE=1,GlobalModel=function(n){__extends(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(r,i,g,$,V,re){$=$||{},this.option=null,this._theme=new Model$1($),this._locale=new Model$1(V),this._optionManager=re},t.prototype.setOption=function(r,i,g){var $=normalizeSetOptionInput(i);this._optionManager.setOption(r,g,$),this._resetOption(null,$)},t.prototype.resetOption=function(r,i){return this._resetOption(r,normalizeSetOptionInput(i))},t.prototype._resetOption=function(r,i){var g=!1,$=this._optionManager;if(!r||r==="recreate"){var V=$.mountOption(r==="recreate");!this.option||r==="recreate"?initBase(this,V):(this.restoreData(),this._mergeOption(V,i)),g=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var re=$.getTimelineOption(this);re&&(g=!0,this._mergeOption(re,i))}if(!r||r==="recreate"||r==="media"){var ie=$.getMediaOption(this);ie.length&&each$4(ie,function(ae){g=!0,this._mergeOption(ae,i)},this)}return g},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,i){var g=this.option,$=this._componentsMap,V=this._componentsCount,re=[],ie=createHashMap(),ae=i&&i.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$4(r,function(le,ue){le!=null&&(ComponentModel$1.hasClass(ue)?ue&&(re.push(ue),ie.set(ue,!0)):g[ue]=g[ue]==null?clone$2(le):merge(g[ue],le,!0))}),ae&&ae.each(function(le,ue){ComponentModel$1.hasClass(ue)&&!ie.get(ue)&&(re.push(ue),ie.set(ue,!0))}),ComponentModel$1.topologicalTravel(re,ComponentModel$1.getAllClassMainTypes(),oe,this);function oe(le){var ue=concatInternalOptions(this,le,normalizeToArray(r[le])),de=$.get(le),he=de?ae&&ae.get(le)?"replaceMerge":"normalMerge":"replaceAll",pe=mappingToExists(de,ue,he);setComponentTypeToKeyInfo(pe,le,ComponentModel$1),g[le]=null,$.set(le,null),V.set(le,0);var _e=[],Ce=[],xe=0,Ie;each$4(pe,function(Ne,Oe){var $e=Ne.existing,Ve=Ne.newOption;if(!Ve)$e&&($e.mergeOption({},this),$e.optionUpdated({},!1));else{var Ue=le==="series",Fe=ComponentModel$1.getClass(le,Ne.keyInfo.subType,!Ue);if(!Fe)return;if(le==="tooltip"){if(Ie)return;Ie=!0}if($e&&$e.constructor===Fe)$e.name=Ne.keyInfo.name,$e.mergeOption(Ve,this),$e.optionUpdated(Ve,!1);else{var ze=extend({componentIndex:Oe},Ne.keyInfo);$e=new Fe(Ve,this,this,ze),extend($e,ze),Ne.brandNew&&($e.__requireNewView=!0),$e.init(Ve,this,this),$e.optionUpdated(null,!0)}}$e?(_e.push($e.option),Ce.push($e),xe++):(_e.push(void 0),Ce.push(void 0))},this),g[le]=_e,$.set(le,Ce),V.set(le,xe),le==="series"&&reCreateSeriesIndices(this)}this._seriesIndices||reCreateSeriesIndices(this)},t.prototype.getOption=function(){var r=clone$2(this.option);return each$4(r,function(i,g){if(ComponentModel$1.hasClass(g)){for(var $=normalizeToArray(i),V=$.length,re=!1,ie=V-1;ie>=0;ie--)$[ie]&&!isComponentIdInternal($[ie])?re=!0:($[ie]=null,!re&&V--);$.length=V,r[g]=$}}),delete r[OPTION_INNER_KEY],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,i){var g=this._componentsMap.get(r);if(g){var $=g[i||0];if($)return $;if(i==null){for(var V=0;V=t:r==="max"?n<=t:n===t}function indicesEquals(n,t){return n.join(",")===t.join(",")}const OptionManager$1=OptionManager;var each$2=each$4,isObject$1=isObject$2,POSSIBLE_STYLES=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function compatEC2ItemStyle(n){var t=n&&n.itemStyle;if(t)for(var r=0,i=POSSIBLE_STYLES.length;r=0;_e--){var Ce=n[_e];if(re||(he=Ce.data.rawIndexOf(Ce.stackedByDimension,de)),he>=0){var xe=Ce.data.getByRawIndex(Ce.stackResultDimension,he);if(ie==="all"||ie==="positive"&&xe>0||ie==="negative"&&xe<0||ie==="samesign"&&ue>=0&&xe>0||ie==="samesign"&&ue<=0&&xe<0){ue=addSafe(ue,xe),pe=xe;break}}}return i[0]=ue,i[1]=pe,i})})}var SourceImpl=function(){function n(t){this.data=t.data||(t.sourceFormat===SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=t.sourceFormat||SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=t.seriesLayoutBy||SERIES_LAYOUT_BY_COLUMN,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var i=0;ipe&&(pe=Ie)}de[0]=he,de[1]=pe}},g=function(){return this._data?this._data.length/this._dimSize:0};providerMethods=(t={},t[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:$},t[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:$},t[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(V){var re=this._data;each$4(V,function(ie,ae){for(var oe=re[ae]||(re[ae]=[]),le=0;le<(ie||[]).length;le++)oe.push(ie[le])})}},t[SOURCE_FORMAT_ORIGINAL]={appendData:$},t[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(V){this._data=V},clean:function(){this._offset+=this.count(),this._data=null}},t);function $(V){for(var re=0;re=0&&(pe=V.interpolatedValue[_e])}return pe!=null?pe+"":""})}},n.prototype.getRawValue=function(t,r){return retrieveRawValue(this.getData(r),t)},n.prototype.formatTooltip=function(t,r,i){},n}();function normalizeTooltipFormatResult(n){var t,r;return isObject$2(n)?n.type&&(r=n):t=n,{text:t,frag:r}}function createTask(n){return new Task(n)}var Task=function(){function n(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return n.prototype.perform=function(t){var r=this._upstream,i=t&&t.skip;if(this._dirty&&r){var g=this.context;g.data=g.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var $;this._plan&&!i&&($=this._plan(this.context));var V=oe(this._modBy),re=this._modDataCount||0,ie=oe(t&&t.modBy),ae=t&&t.modDataCount||0;(V!==ie||re!==ae)&&($="reset");function oe(xe){return!(xe>=1)&&(xe=1),xe}var le;(this._dirty||$==="reset")&&(this._dirty=!1,le=this._doReset(i)),this._modBy=ie,this._modDataCount=ae;var ue=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var de=this._dueIndex,he=Math.min(ue!=null?this._dueIndex+ue:1/0,this._dueEnd);if(!i&&(le||de1&&i>0?re:V}};return $;function V(){return t=n?null:ieg?-this._resultLT:0},n}(),ExternalSource=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(t){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(t){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(t,r){},n.prototype.retrieveValueFromItem=function(t,r){},n.prototype.convertValue=function(t,r){return parseDataValue(t,r)},n}();function createExternalSource(n,t){var r=new ExternalSource,i=n.data,g=r.sourceFormat=n.sourceFormat,$=n.startIndex,V="";n.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(V);var re=[],ie={},ae=n.dimensionsDefine;if(ae)each$4(ae,function(pe,_e){var Ce=pe.name,xe={index:_e,name:Ce,displayName:pe.displayName};if(re.push(xe),Ce!=null){var Ie="";hasOwn(ie,Ce)&&throwError(Ie),ie[Ce]=xe}});else for(var oe=0;oe65535?CtorUint32Array:CtorUint16Array}function getInitialExtent(){return[1/0,-1/0]}function cloneChunk(n){var t=n.constructor;return t===Array?n.slice():new t(n)}function prepareStore(n,t,r,i,g){var $=dataCtors[r||"float"];if(g){var V=n[t],re=V&&V.length;if(re!==i){for(var ie=new $(i),ae=0;ae_e[1]&&(_e[1]=pe)}return this._rawCount=this._count=ie,{start:re,end:ie}},n.prototype._initDataFromProvider=function(t,r,i){for(var g=this._provider,$=this._chunks,V=this._dimensions,re=V.length,ie=this._rawExtent,ae=map$1(V,function(xe){return xe.property}),oe=0;oeCe[1]&&(Ce[1]=_e)}}!g.persistent&&g.clean&&g.clean(),this._rawCount=this._count=r,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,i=r[t];if(i!=null&&it)$=V-1;else return V}return-1},n.prototype.indicesOfNearest=function(t,r,i){var g=this._chunks,$=g[t],V=[];if(!$)return V;i==null&&(i=1/0);for(var re=1/0,ie=-1,ae=0,oe=0,le=this.count();oe=0&&ie<0)&&(re=he,ie=de,ae=0),de===ie&&(V[ae++]=oe))}return V.length=ae,V},n.prototype.getIndices=function(){var t,r=this._indices;if(r){var i=r.constructor,g=this._count;if(i===Array){t=new i(g);for(var $=0;$=le&&xe<=ue||isNaN(xe))&&(ie[ae++]=pe),pe++}he=!0}else if($===2){for(var _e=de[g[0]],Ie=de[g[1]],Ne=t[g[1]][0],Oe=t[g[1]][1],Ce=0;Ce=le&&xe<=ue||isNaN(xe))&&($e>=Ne&&$e<=Oe||isNaN($e))&&(ie[ae++]=pe),pe++}he=!0}}if(!he)if($===1)for(var Ce=0;Ce=le&&xe<=ue||isNaN(xe))&&(ie[ae++]=Ve)}else for(var Ce=0;Cet[ze][1])&&(Ue=!1)}Ue&&(ie[ae++]=r.getRawIndex(Ce))}return aeCe[1]&&(Ce[1]=_e)}}}},n.prototype.lttbDownSample=function(t,r){var i=this.clone([t],!0),g=i._chunks,$=g[t],V=this.count(),re=0,ie=Math.floor(1/r),ae=this.getRawIndex(0),oe,le,ue,de=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(V/ie)+2)*2,V));de[re++]=ae;for(var he=1;heoe&&(oe=le,ue=Ne)}Pt>0&&Ptre&&(pe=re-oe);for(var _e=0;_ehe&&(he=xe,de=oe+_e)}var Ie=this.getRawIndex(le),Ne=this.getRawIndex(de);leoe-he&&(ie=oe-he,re.length=ie);for(var pe=0;pele[1]&&(le[1]=Ce),ue[de++]=xe}return $._count=de,$._indices=ue,$._updateGetRawIdx(),$},n.prototype.each=function(t,r){if(this._count)for(var i=t.length,g=this._chunks,$=0,V=this.count();$ie&&(ie=le)}return V=[re,ie],this._extent[t]=V,V},n.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],g=this._chunks,$=0;$=0?this._indices[t]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function t(r,i,g,$){return parseDataValue(r[$],this._dimensions[$])}defaultDimValueGetters={arrayRows:t,objectRows:function(r,i,g,$){return parseDataValue(r[i],this._dimensions[$])},keyedColumns:t,original:function(r,i,g,$){var V=r&&(r.value==null?r:r.value);return parseDataValue(V instanceof Array?V[$]:V,this._dimensions[$])},typedArray:function(r,i,g,$){return r[$]}}}(),n}(),SourceManager=function(){function n(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,g,$;if(isSeries(t)){var V=t,re=void 0,ie=void 0,ae=void 0;if(i){var oe=r[0];oe.prepareSource(),ae=oe.getSource(),re=ae.data,ie=ae.sourceFormat,$=[oe._getVersionSign()]}else re=V.get("data",!0),ie=isTypedArray(re)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,$=[];var le=this._getSourceMetaRawOption()||{},ue=ae&&ae.metaRawOption||{},de=retrieve2(le.seriesLayoutBy,ue.seriesLayoutBy)||null,he=retrieve2(le.sourceHeader,ue.sourceHeader),pe=retrieve2(le.dimensions,ue.dimensions),_e=de!==ue.seriesLayoutBy||!!he!=!!ue.sourceHeader||pe;g=_e?[createSource(re,{seriesLayoutBy:de,sourceHeader:he,dimensions:pe},ie)]:[]}else{var Ce=t;if(i){var xe=this._applyTransform(r);g=xe.sourceList,$=xe.upstreamSignList}else{var Ie=Ce.get("source",!0);g=[createSource(Ie,this._getSourceMetaRawOption(),null)],$=[]}}this._setLocalSource(g,$)},n.prototype._applyTransform=function(t){var r=this._sourceHost,i=r.get("transform",!0),g=r.get("fromTransformResult",!0);if(g!=null){var $="";t.length!==1&&doThrow($)}var V,re=[],ie=[];return each$4(t,function(ae){ae.prepareSource();var oe=ae.getSource(g||0),le="";g!=null&&!oe&&doThrow(le),re.push(oe),ie.push(ae._getVersionSign())}),i?V=applyDataTransform(i,re,{datasetIndex:r.componentIndex}):g!=null&&(V=[cloneSourceShallow(re[0])]),{sourceList:V,upstreamSignList:ie}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!n.noHeader;return each$4(n.blocks,function(g){var $=getBlockGapLevel(g);$>=t&&(t=$+ +(i&&(!$||isSectionFragment(g)&&!g.noHeader)))}),t}return 0}function buildSection(n,t,r,i){var g=t.noHeader,$=getGap(getBlockGapLevel(t)),V=[],re=t.blocks||[];assert(!re||isArray(re)),re=re||[];var ie=n.orderMode;if(t.sortBlocks&&ie){re=re.slice();var ae={valueAsc:"asc",valueDesc:"desc"};if(hasOwn(ae,ie)){var oe=new SortOrderComparator(ae[ie],null);re.sort(function(pe,_e){return oe.evaluate(pe.sortParam,_e.sortParam)})}else ie==="seriesDesc"&&re.reverse()}each$4(re,function(pe,_e){var Ce=t.valueFormatter,xe=getBuilder(pe)(Ce?extend(extend({},n),{valueFormatter:Ce}):n,pe,_e>0?$.html:0,i);xe!=null&&V.push(xe)});var le=n.renderMode==="richText"?V.join($.richText):wrapBlockHTML(i,V.join(""),g?r:$.html);if(g)return le;var ue=makeValueReadable(t.header,"ordinal",n.useUTC),de=getTooltipTextStyle(i,n.renderMode).nameStyle,he=getTooltipLineHeight(i);return n.renderMode==="richText"?wrapInlineNameRichText(n,ue,de)+$.richText+le:wrapBlockHTML(i,'
'+encodeHTML(ue)+"
"+le,r)}function buildNameValue(n,t,r,i){var g=n.renderMode,$=t.noName,V=t.noValue,re=!t.markerType,ie=t.name,ae=n.useUTC,oe=t.valueFormatter||n.valueFormatter||function(Ne){return Ne=isArray(Ne)?Ne:[Ne],map$1(Ne,function(Oe,$e){return makeValueReadable(Oe,isArray(de)?de[$e]:de,ae)})};if(!($&&V)){var le=re?"":n.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",g),ue=$?"":makeValueReadable(ie,"ordinal",ae),de=t.valueType,he=V?[]:oe(t.value,t.dataIndex),pe=!re||!$,_e=!re&&$,Ce=getTooltipTextStyle(i,g),xe=Ce.nameStyle,Ie=Ce.valueStyle;return g==="richText"?(re?"":le)+($?"":wrapInlineNameRichText(n,ue,xe))+(V?"":wrapInlineValueRichText(n,he,pe,_e,Ie)):wrapBlockHTML(i,(re?"":le)+($?"":wrapInlineNameHTML(ue,!re,xe))+(V?"":wrapInlineValueHTML(he,pe,_e,Ie)),r)}}function buildTooltipMarkup(n,t,r,i,g,$){if(n){var V=getBuilder(n),re={useUTC:g,renderMode:r,orderMode:i,markupStyleCreator:t,valueFormatter:n.valueFormatter};return V(re,n,0,$)}}function getGap(n){return{html:HTML_GAPS[n],richText:RICH_TEXT_GAPS[n]}}function wrapBlockHTML(n,t,r){var i='
',g="margin: "+r+"px 0 0",$=getTooltipLineHeight(n);return'
'+t+i+"
"}function wrapInlineNameHTML(n,t,r){var i=t?"margin-left:2px":"";return''+encodeHTML(n)+""}function wrapInlineValueHTML(n,t,r,i){var g=r?"10px":"20px",$=t?"float:right;margin-left:"+g:"";return n=isArray(n)?n:[n],''+map$1(n,function(V){return encodeHTML(V)}).join("  ")+""}function wrapInlineNameRichText(n,t,r){return n.markupStyleCreator.wrapRichTextStyle(t,r)}function wrapInlineValueRichText(n,t,r,i,g){var $=[g],V=i?10:20;return r&&$.push({padding:[0,0,0,V],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(isArray(t)?t.join(" "):t,$)}function retrieveVisualColorForTooltipMarker(n,t){var r=n.getData().getItemVisual(t,"style"),i=r[n.visualDrawType];return convertToColorString(i)}function getPaddingFromTooltipModel(n,t){var r=n.get("padding");return r??(t==="richText"?[8,10]:10)}var TooltipMarkupStyleCreator=function(){function n(){this.richTextStyles={},this._nextStyleNameId=getRandomIdBase()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(t,r,i){var g=i==="richText"?this._generateStyleName():null,$=getTooltipMarker({color:r,type:t,renderMode:i,markerId:g});return isString($)?$:(this.richTextStyles[g]=$.style,$.content)},n.prototype.wrapRichTextStyle=function(t,r){var i={};isArray(r)?each$4(r,function($){return extend(i,$)}):extend(i,r);var g=this._generateStyleName();return this.richTextStyles[g]=i,"{"+g+"|"+t+"}"},n}();function defaultSeriesFormatTooltip(n){var t=n.series,r=n.dataIndex,i=n.multipleSeries,g=t.getData(),$=g.mapDimensionsAll("defaultedTooltip"),V=$.length,re=t.getRawValue(r),ie=isArray(re),ae=retrieveVisualColorForTooltipMarker(t,r),oe,le,ue,de;if(V>1||ie&&!V){var he=formatTooltipArrayValue(re,t,r,$,ae);oe=he.inlineValues,le=he.inlineValueTypes,ue=he.blocks,de=he.inlineValues[0]}else if(V){var pe=g.getDimensionInfo($[0]);de=oe=retrieveRawValue(g,r,$[0]),le=pe.type}else de=oe=ie?re[0]:re;var _e=isNameSpecified(t),Ce=_e&&t.name||"",xe=g.getName(r),Ie=i?Ce:xe;return createTooltipMarkup("section",{header:Ce,noHeader:i||!_e,sortParam:de,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:ae,name:Ie,noName:!trim(Ie),value:oe,valueType:le,dataIndex:r})].concat(ue||[])})}function formatTooltipArrayValue(n,t,r,i,g){var $=t.getData(),V=reduce(n,function(le,ue,de){var he=$.getDimensionInfo(de);return le=le||he&&he.tooltip!==!1&&he.displayName!=null},!1),re=[],ie=[],ae=[];i.length?each$4(i,function(le){oe(retrieveRawValue($,r,le),le)}):each$4(n,oe);function oe(le,ue){var de=$.getDimensionInfo(ue);!de||de.otherDims.tooltip===!1||(V?ae.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:g,name:de.displayName,value:le,valueType:de.type})):(re.push(le),ie.push(de.type)))}return{inlineValues:re,inlineValueTypes:ie,blocks:ae}}var inner$6=makeInner();function getSelectionKey(n,t){return n.getName(t)||n.getId(t)}var SERIES_UNIVERSAL_TRANSITION_PROP="__universalTransitionEnabled",SeriesModel=function(n){__extends(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,i,g){this.seriesIndex=this.componentIndex,this.dataTask=createTask({count:dataTaskCount,reset:dataTaskReset}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,g);var $=inner$6(this).sourceManager=new SourceManager(this);$.prepareSource();var V=this.getInitialData(r,g);wrapData(V,this),this.dataTask.context.data=V,inner$6(this).dataBeforeProcessed=V,autoSeriesName(this),this._initSelectedMapFromData(V)},t.prototype.mergeDefaultAndTheme=function(r,i){var g=fetchLayoutMode(this),$=g?getLayoutParams(r):{},V=this.subType;ComponentModel$1.hasClass(V)&&(V+="Series"),merge(r,i.getTheme().get(this.subType)),merge(r,this.getDefaultOption()),defaultEmphasis(r,"label",["show"]),this.fillDataTextStyle(r.data),g&&mergeLayoutParam(r,$,g)},t.prototype.mergeOption=function(r,i){r=merge(this.option,r,!0),this.fillDataTextStyle(r.data);var g=fetchLayoutMode(this);g&&mergeLayoutParam(this.option,r,g);var $=inner$6(this).sourceManager;$.dirty(),$.prepareSource();var V=this.getInitialData(r,i);wrapData(V,this),this.dataTask.dirty(),this.dataTask.context.data=V,inner$6(this).dataBeforeProcessed=V,autoSeriesName(this),this._initSelectedMapFromData(V)},t.prototype.fillDataTextStyle=function(r){if(r&&!isTypedArray(r))for(var i=["show"],g=0;gthis.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,i,g){var $=this.ecModel,V=PaletteMixin.prototype.getColorFromPalette.call(this,r,i,g);return V||(V=$.getColorFromPalette(r,i,g)),V},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},t.prototype.unselect=function(r,i){var g=this.option.selectedMap;if(g){var $=this.option.selectedMode,V=this.getData(i);if($==="series"||g==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var re=0;re=0&&g.push(V)}return g},t.prototype.isSelected=function(r,i){var g=this.option.selectedMap;if(!g)return!1;var $=this.getData(i);return(g==="all"||g[getSelectionKey($,r)])&&!$.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[SERIES_UNIVERSAL_TRANSITION_PROP])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,i){var g,$,V=this.option,re=V.selectedMode,ie=i.length;if(!(!re||!ie)){if(re==="series")V.selectedMap="all";else if(re==="multiple"){isObject$2(V.selectedMap)||(V.selectedMap={});for(var ae=V.selectedMap,oe=0;oe0&&this._innerSelect(r,i)}},t.registerClass=function(r){return ComponentModel$1.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(ComponentModel$1);mixin(SeriesModel,DataFormatMixin);mixin(SeriesModel,PaletteMixin);mountExtend(SeriesModel,ComponentModel$1);function autoSeriesName(n){var t=n.name;isNameSpecified(n)||(n.name=getSeriesAutoName(n)||t)}function getSeriesAutoName(n){var t=n.getRawData(),r=t.mapDimensionsAll("seriesName"),i=[];return each$4(r,function(g){var $=t.getDimensionInfo(g);$.displayName&&i.push($.displayName)}),i.join(" ")}function dataTaskCount(n){return n.model.getRawData().count()}function dataTaskReset(n){var t=n.model;return t.setData(t.getRawData().cloneShallow()),dataTaskProgress}function dataTaskProgress(n,t){t.outputData&&n.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function wrapData(n,t){each$4(concatArray(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(r){n.wrapMethod(r,curry$1(onDataChange,t))})}function onDataChange(n,t){var r=getCurrentTask(n);return r&&r.setOutputEnd((t||this).count()),t}function getCurrentTask(n){var t=(n.ecModel||{}).scheduler,r=t&&t.getPipeline(n.uid);if(r){var i=r.currentTask;if(i){var g=i.agentStubMap;g&&(i=g.get(n.uid))}return i}}const SeriesModel$1=SeriesModel;var ComponentView=function(){function n(){this.group=new Group$3,this.uid=getUID("viewComponent")}return n.prototype.init=function(t,r){},n.prototype.render=function(t,r,i,g){},n.prototype.dispose=function(t,r){},n.prototype.updateView=function(t,r,i,g){},n.prototype.updateLayout=function(t,r,i,g){},n.prototype.updateVisual=function(t,r,i,g){},n.prototype.toggleBlurSeries=function(t,r,i){},n.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},n}();enableClassExtend(ComponentView);enableClassManagement(ComponentView);const ComponentView$1=ComponentView;function createRenderPlanner(){var n=makeInner();return function(t){var r=n(t),i=t.pipelineContext,g=!!r.large,$=!!r.progressiveRender,V=r.large=!!(i&&i.large),re=r.progressiveRender=!!(i&&i.progressiveRender);return(g!==V||$!==re)&&"reset"}}var inner$5=makeInner(),renderPlanner=createRenderPlanner(),ChartView=function(){function n(){this.group=new Group$3,this.uid=getUID("viewChart"),this.renderTask=createTask({plan:renderTaskPlan,reset:renderTaskReset}),this.renderTask.context={view:this}}return n.prototype.init=function(t,r){},n.prototype.render=function(t,r,i,g){},n.prototype.highlight=function(t,r,i,g){var $=t.getData(g&&g.dataType);$&&toggleHighlight($,g,"emphasis")},n.prototype.downplay=function(t,r,i,g){var $=t.getData(g&&g.dataType);$&&toggleHighlight($,g,"normal")},n.prototype.remove=function(t,r){this.group.removeAll()},n.prototype.dispose=function(t,r){},n.prototype.updateView=function(t,r,i,g){this.render(t,r,i,g)},n.prototype.updateLayout=function(t,r,i,g){this.render(t,r,i,g)},n.prototype.updateVisual=function(t,r,i,g){this.render(t,r,i,g)},n.prototype.eachRendered=function(t){traverseElements(this.group,t)},n.markUpdateMethod=function(t,r){inner$5(t).updateMethod=r},n.protoInitialize=function(){var t=n.prototype;t.type="chart"}(),n}();function elSetState(n,t,r){n&&isHighDownDispatcher(n)&&(t==="emphasis"?enterEmphasis:leaveEmphasis)(n,r)}function toggleHighlight(n,t,r){var i=queryDataIndex(n,t),g=t&&t.highlightKey!=null?getHighlightDigit(t.highlightKey):null;i!=null?each$4(normalizeToArray(i),function($){elSetState(n.getItemGraphicEl($),r,g)}):n.eachItemGraphicEl(function($){elSetState($,r,g)})}enableClassExtend(ChartView);enableClassManagement(ChartView);function renderTaskPlan(n){return renderPlanner(n.model)}function renderTaskReset(n){var t=n.model,r=n.ecModel,i=n.api,g=n.payload,$=t.pipelineContext.progressiveRender,V=n.view,re=g&&inner$5(g).updateMethod,ie=$?"incrementalPrepareRender":re&&V[re]?re:"render";return ie!=="render"&&V[ie](t,r,i,g),progressMethodMap[ie]}var progressMethodMap={incrementalPrepareRender:{progress:function(n,t){t.view.incrementalRender(n,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(n,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const ChartView$1=ChartView;var ORIGIN_METHOD="\0__throttleOriginMethod",RATE="\0__throttleRate",THROTTLE_TYPE="\0__throttleType";function throttle(n,t,r){var i,g=0,$=0,V=null,re,ie,ae,oe;t=t||0;function le(){$=new Date().getTime(),V=null,n.apply(ie,ae||[])}var ue=function(){for(var de=[],he=0;he=0?le():V=setTimeout(le,-re),g=i};return ue.clear=function(){V&&(clearTimeout(V),V=null)},ue.debounceNextCall=function(de){oe=de},ue}function createOrUpdate(n,t,r,i){var g=n[t];if(g){var $=g[ORIGIN_METHOD]||g,V=g[THROTTLE_TYPE],re=g[RATE];if(re!==r||V!==i){if(r==null||!i)return n[t]=$;g=n[t]=throttle($,r,i==="debounce"),g[ORIGIN_METHOD]=$,g[THROTTLE_TYPE]=i,g[RATE]=r}return g}}function clear(n,t){var r=n[t];r&&r[ORIGIN_METHOD]&&(r.clear&&r.clear(),n[t]=r[ORIGIN_METHOD])}var inner$4=makeInner(),defaultStyleMappers={itemStyle:makeStyleMapper(ITEM_STYLE_KEY_MAP,!0),lineStyle:makeStyleMapper(LINE_STYLE_KEY_MAP,!0)},defaultColorKey={lineStyle:"stroke",itemStyle:"fill"};function getStyleMapper(n,t){var r=n.visualStyleMapper||defaultStyleMappers[t];return r||(console.warn("Unknown style type '"+t+"'."),defaultStyleMappers.itemStyle)}function getDefaultColorKey(n,t){var r=n.visualDrawType||defaultColorKey[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var seriesStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var r=n.getData(),i=n.visualStyleAccessPath||"itemStyle",g=n.getModel(i),$=getStyleMapper(n,i),V=$(g),re=g.getShallow("decal");re&&(r.setVisual("decal",re),re.dirty=!0);var ie=getDefaultColorKey(n,i),ae=V[ie],oe=isFunction(ae)?ae:null,le=V.fill==="auto"||V.stroke==="auto";if(!V[ie]||oe||le){var ue=n.getColorFromPalette(n.name,null,t.getSeriesCount());V[ie]||(V[ie]=ue,r.setVisual("colorFromPalette",!0)),V.fill=V.fill==="auto"||isFunction(V.fill)?ue:V.fill,V.stroke=V.stroke==="auto"||isFunction(V.stroke)?ue:V.stroke}if(r.setVisual("style",V),r.setVisual("drawType",ie),!t.isSeriesFiltered(n)&&oe)return r.setVisual("colorFromPalette",!1),{dataEach:function(de,he){var pe=n.getDataParams(he),_e=extend({},V);_e[ie]=oe(pe),de.setItemVisual(he,"style",_e)}}}},sharedModel=new Model$1,dataStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(!(n.ignoreStyleOnData||t.isSeriesFiltered(n))){var r=n.getData(),i=n.visualStyleAccessPath||"itemStyle",g=getStyleMapper(n,i),$=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(V,re){var ie=V.getRawDataItem(re);if(ie&&ie[i]){sharedModel.option=ie[i];var ae=g(sharedModel),oe=V.ensureUniqueItemVisual(re,"style");extend(oe,ae),sharedModel.option.decal&&(V.setItemVisual(re,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),$ in ae&&V.setItemVisual(re,"colorFromPalette",!1)}}:null}}}},dataColorPaletteTask={performRawSeries:!0,overallReset:function(n){var t=createHashMap();n.eachSeries(function(r){var i=r.getColorBy();if(!r.isColorBySeries()){var g=r.type+"-"+i,$=t.get(g);$||($={},t.set(g,$)),inner$4(r).scope=$}}),n.eachSeries(function(r){if(!(r.isColorBySeries()||n.isSeriesFiltered(r))){var i=r.getRawData(),g={},$=r.getData(),V=inner$4(r).scope,re=r.visualStyleAccessPath||"itemStyle",ie=getDefaultColorKey(r,re);$.each(function(ae){var oe=$.getRawIndex(ae);g[oe]=ae}),i.each(function(ae){var oe=g[ae],le=$.getItemVisual(oe,"colorFromPalette");if(le){var ue=$.ensureUniqueItemVisual(oe,"style"),de=i.getName(ae)||ae+"",he=i.count();ue[ie]=r.getColorFromPalette(de,V,he)}})}})}},PI$2=Math.PI;function defaultLoading(n,t){t=t||{},defaults(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Group$3,i=new Rect$1({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(i);var g=new ZRText$1({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),$=new Rect$1({style:{fill:"none"},textContent:g,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add($);var V;return t.showSpinner&&(V=new Arc$1({shape:{startAngle:-PI$2/2,endAngle:-PI$2/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),V.animateShape(!0).when(1e3,{endAngle:PI$2*3/2}).start("circularInOut"),V.animateShape(!0).when(1e3,{startAngle:PI$2*3/2}).delay(300).start("circularInOut"),r.add(V)),r.resize=function(){var re=g.getBoundingRect().width,ie=t.showSpinner?t.spinnerRadius:0,ae=(n.getWidth()-ie*2-(t.showSpinner&&re?10:0)-re)/2-(t.showSpinner&&re?0:5+re/2)+(t.showSpinner?0:re/2)+(re?0:ie),oe=n.getHeight()/2;t.showSpinner&&V.setShape({cx:ae,cy:oe}),$.setShape({x:ae-ie,y:oe-ie,width:ie*2,height:ie*2}),i.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},r.resize(),r}var Scheduler=function(){function n(t,r,i,g){this._stageTaskMap=createHashMap(),this.ecInstance=t,this.api=r,i=this._dataProcessorHandlers=i.slice(),g=this._visualHandlers=g.slice(),this._allHandlers=i.concat(g)}return n.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(i){var g=i.overallTask;g&&g.dirty()})},n.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),g=i.context,$=!r&&i.progressiveEnabled&&(!g||g.progressiveRender)&&t.__idxInPipeline>i.blockIndex,V=$?i.step:null,re=g&&g.modDataCount,ie=re!=null?Math.ceil(re/V):null;return{step:V,modBy:ie,modDataCount:re}}},n.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},n.prototype.updateStreamModes=function(t,r){var i=this._pipelineMap.get(t.uid),g=t.getData(),$=g.count(),V=i.progressiveEnabled&&r.incrementalPrepareRender&&$>=i.threshold,re=t.get("large")&&$>=t.get("largeThreshold"),ie=t.get("progressiveChunkMode")==="mod"?$:null;t.pipelineContext=i.context={progressiveRender:V,modDataCount:ie,large:re}},n.prototype.restorePipelines=function(t){var r=this,i=r._pipelineMap=createHashMap();t.eachSeries(function(g){var $=g.getProgressive(),V=g.uid;i.set(V,{id:V,head:null,tail:null,threshold:g.getProgressiveThreshold(),progressiveEnabled:$&&!(g.preventIncremental&&g.preventIncremental()),blockIndex:-1,step:Math.round($||700),count:0}),r._pipe(g,g.dataTask)})},n.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),i=this.api;each$4(this._allHandlers,function(g){var $=t.get(g.uid)||t.set(g.uid,{}),V="";assert(!(g.reset&&g.overallReset),V),g.reset&&this._createSeriesStageTask(g,$,r,i),g.overallReset&&this._createOverallStageTask(g,$,r,i)},this)},n.prototype.prepareView=function(t,r,i,g){var $=t.renderTask,V=$.context;V.model=r,V.ecModel=i,V.api=g,$.__block=!t.incrementalPrepareRender,this._pipe(r,$)},n.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},n.prototype.performVisualTasks=function(t,r,i){this._performStageTasks(this._visualHandlers,t,r,i)},n.prototype._performStageTasks=function(t,r,i,g){g=g||{};var $=!1,V=this;each$4(t,function(ie,ae){if(!(g.visualType&&g.visualType!==ie.visualType)){var oe=V._stageTaskMap.get(ie.uid),le=oe.seriesTaskMap,ue=oe.overallTask;if(ue){var de,he=ue.agentStubMap;he.each(function(_e){re(g,_e)&&(_e.dirty(),de=!0)}),de&&ue.dirty(),V.updatePayload(ue,i);var pe=V.getPerformArgs(ue,g.block);he.each(function(_e){_e.perform(pe)}),ue.perform(pe)&&($=!0)}else le&&le.each(function(_e,Ce){re(g,_e)&&_e.dirty();var xe=V.getPerformArgs(_e,g.block);xe.skip=!ie.performRawSeries&&r.isSeriesFiltered(_e.context.model),V.updatePayload(_e,i),_e.perform(xe)&&($=!0)})}});function re(ie,ae){return ie.setDirty&&(!ie.dirtyMap||ie.dirtyMap.get(ae.__pipeline.id))}this.unfinished=$||this.unfinished},n.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},n.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},n.prototype._createSeriesStageTask=function(t,r,i,g){var $=this,V=r.seriesTaskMap,re=r.seriesTaskMap=createHashMap(),ie=t.seriesType,ae=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(oe):ie?i.eachRawSeriesByType(ie,oe):ae&&ae(i,g).each(oe);function oe(le){var ue=le.uid,de=re.set(ue,V&&V.get(ue)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));de.context={model:le,ecModel:i,api:g,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:$},$._pipe(le,de)}},n.prototype._createOverallStageTask=function(t,r,i,g){var $=this,V=r.overallTask=r.overallTask||createTask({reset:overallTaskReset});V.context={ecModel:i,api:g,overallReset:t.overallReset,scheduler:$};var re=V.agentStubMap,ie=V.agentStubMap=createHashMap(),ae=t.seriesType,oe=t.getTargetSeries,le=!0,ue=!1,de="";assert(!t.createOnAllSeries,de),ae?i.eachRawSeriesByType(ae,he):oe?oe(i,g).each(he):(le=!1,each$4(i.getSeries(),he));function he(pe){var _e=pe.uid,Ce=ie.set(_e,re&&re.get(_e)||(ue=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));Ce.context={model:pe,overallProgress:le},Ce.agent=V,Ce.__block=le,$._pipe(pe,Ce)}ue&&V.dirty()},n.prototype._pipe=function(t,r){var i=t.uid,g=this._pipelineMap.get(i);!g.head&&(g.head=r),g.tail&&g.tail.pipe(r),g.tail=r,r.__idxInPipeline=g.count++,r.__pipeline=g},n.wrapStageHandler=function(t,r){return isFunction(t)&&(t={overallReset:t,seriesType:detectSeriseType(t)}),t.uid=getUID("stageHandler"),r&&(t.visualType=r),t},n}();function overallTaskReset(n){n.overallReset(n.ecModel,n.api,n.payload)}function stubReset(n){return n.overallProgress&&stubProgress}function stubProgress(){this.agent.dirty(),this.getDownstream().dirty()}function stubOnDirty(){this.agent&&this.agent.dirty()}function seriesTaskPlan(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function seriesTaskReset(n){n.useClearVisual&&n.data.clearAllVisual();var t=n.resetDefines=normalizeToArray(n.reset(n.model,n.ecModel,n.api,n.payload));return t.length>1?map$1(t,function(r,i){return makeSeriesTaskProgress(i)}):singleSeriesTaskProgress}var singleSeriesTaskProgress=makeSeriesTaskProgress(0);function makeSeriesTaskProgress(n){return function(t,r){var i=r.data,g=r.resetDefines[n];if(g&&g.dataEach)for(var $=t.start;$0&&de===ae.length-ue.length){var he=ae.slice(0,de);he!=="data"&&(r.mainType=he,r[ue.toLowerCase()]=ie,oe=!0)}}re.hasOwnProperty(ae)&&(i[ae]=ie,oe=!0),oe||(g[ae]=ie)})}return{cptQuery:r,dataQuery:i,otherQuery:g}},n.prototype.filter=function(t,r){var i=this.eventInfo;if(!i)return!0;var g=i.targetEl,$=i.packedEvent,V=i.model,re=i.view;if(!V||!re)return!0;var ie=r.cptQuery,ae=r.dataQuery;return oe(ie,V,"mainType")&&oe(ie,V,"subType")&&oe(ie,V,"index","componentIndex")&&oe(ie,V,"name")&&oe(ie,V,"id")&&oe(ae,$,"name")&&oe(ae,$,"dataIndex")&&oe(ae,$,"dataType")&&(!re.filterForExposedEvent||re.filterForExposedEvent(t,r.otherQuery,g,$));function oe(le,ue,de,he){return le[de]==null||ue[he||de]===le[de]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),SYMBOL_PROPS_WITH_CB=["symbol","symbolSize","symbolRotate","symbolOffset"],SYMBOL_PROPS=SYMBOL_PROPS_WITH_CB.concat(["symbolKeepAspect"]),seriesSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var r=n.getData();if(n.legendIcon&&r.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var i={},g={},$=!1,V=0;V=0&&isSafeNum(ie)?ie:.5;var ae=n.createRadialGradient(V,re,0,V,re,ie);return ae}function getCanvasGradient(n,t,r){for(var i=t.type==="radial"?createRadialGradient(n,t,r):createLinearGradient(n,t,r),g=t.colorStops,$=0;$0)?null:n==="dashed"?[4*t,2*t]:n==="dotted"?[t]:isNumber(n)?[n]:isArray(n)?n:null}function getLineDash(n){var t=n.style,r=t.lineDash&&t.lineWidth>0&&normalizeLineDash(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var g=t.strokeNoScale&&n.getLineScale?n.getLineScale():1;g&&g!==1&&(r=map$1(r,function($){return $/g}),i/=g)}return[r,i]}var pathProxyForDraw=new PathProxy$1(!0);function styleHasStroke(n){var t=n.stroke;return!(t==null||t==="none"||!(n.lineWidth>0))}function isValidStrokeFillStyle(n){return typeof n=="string"&&n!=="none"}function styleHasFill(n){var t=n.fill;return t!=null&&t!=="none"}function doFillPath(n,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=n.globalAlpha;n.globalAlpha=t.fillOpacity*t.opacity,n.fill(),n.globalAlpha=r}else n.fill()}function doStrokePath(n,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=n.globalAlpha;n.globalAlpha=t.strokeOpacity*t.opacity,n.stroke(),n.globalAlpha=r}else n.stroke()}function createCanvasPattern(n,t,r){var i=createOrUpdateImage(t.image,t.__image,r);if(isImageReady(i)){var g=n.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&g&&g.setTransform){var $=new DOMMatrix;$.translateSelf(t.x||0,t.y||0),$.rotateSelf(0,0,(t.rotation||0)*RADIAN_TO_DEGREE),$.scaleSelf(t.scaleX||1,t.scaleY||1),g.setTransform($)}return g}}function brushPath(n,t,r,i){var g,$=styleHasStroke(r),V=styleHasFill(r),re=r.strokePercent,ie=re<1,ae=!t.path;(!t.silent||ie)&&ae&&t.createPathProxy();var oe=t.path||pathProxyForDraw,le=t.__dirty;if(!i){var ue=r.fill,de=r.stroke,he=V&&!!ue.colorStops,pe=$&&!!de.colorStops,_e=V&&!!ue.image,Ce=$&&!!de.image,xe=void 0,Ie=void 0,Ne=void 0,Oe=void 0,$e=void 0;(he||pe)&&($e=t.getBoundingRect()),he&&(xe=le?getCanvasGradient(n,ue,$e):t.__canvasFillGradient,t.__canvasFillGradient=xe),pe&&(Ie=le?getCanvasGradient(n,de,$e):t.__canvasStrokeGradient,t.__canvasStrokeGradient=Ie),_e&&(Ne=le||!t.__canvasFillPattern?createCanvasPattern(n,ue,t):t.__canvasFillPattern,t.__canvasFillPattern=Ne),Ce&&(Oe=le||!t.__canvasStrokePattern?createCanvasPattern(n,de,t):t.__canvasStrokePattern,t.__canvasStrokePattern=Ne),he?n.fillStyle=xe:_e&&(Ne?n.fillStyle=Ne:V=!1),pe?n.strokeStyle=Ie:Ce&&(Oe?n.strokeStyle=Oe:$=!1)}var Ve=t.getGlobalScale();oe.setScale(Ve[0],Ve[1],t.segmentIgnoreThreshold);var Ue,Fe;n.setLineDash&&r.lineDash&&(g=getLineDash(t),Ue=g[0],Fe=g[1]);var ze=!0;(ae||le&SHAPE_CHANGED_BIT)&&(oe.setDPR(n.dpr),ie?oe.setContext(null):(oe.setContext(n),ze=!1),oe.reset(),t.buildPath(oe,t.shape,i),oe.toStatic(),t.pathUpdated()),ze&&oe.rebuildPath(n,ie?re:1),Ue&&(n.setLineDash(Ue),n.lineDashOffset=Fe),i||(r.strokeFirst?($&&doStrokePath(n,r),V&&doFillPath(n,r)):(V&&doFillPath(n,r),$&&doStrokePath(n,r))),Ue&&n.setLineDash([])}function brushImage(n,t,r){var i=t.__image=createOrUpdateImage(r.image,t.__image,t,t.onload);if(!(!i||!isImageReady(i))){var g=r.x||0,$=r.y||0,V=t.getWidth(),re=t.getHeight(),ie=i.width/i.height;if(V==null&&re!=null?V=re*ie:re==null&&V!=null?re=V/ie:V==null&&re==null&&(V=i.width,re=i.height),r.sWidth&&r.sHeight){var ae=r.sx||0,oe=r.sy||0;n.drawImage(i,ae,oe,r.sWidth,r.sHeight,g,$,V,re)}else if(r.sx&&r.sy){var ae=r.sx,oe=r.sy,le=V-ae,ue=re-oe;n.drawImage(i,ae,oe,le,ue,g,$,V,re)}else n.drawImage(i,g,$,V,re)}}function brushText(n,t,r){var i,g=r.text;if(g!=null&&(g+=""),g){n.font=r.font||DEFAULT_FONT,n.textAlign=r.textAlign,n.textBaseline=r.textBaseline;var $=void 0,V=void 0;n.setLineDash&&r.lineDash&&(i=getLineDash(t),$=i[0],V=i[1]),$&&(n.setLineDash($),n.lineDashOffset=V),r.strokeFirst?(styleHasStroke(r)&&n.strokeText(g,r.x,r.y),styleHasFill(r)&&n.fillText(g,r.x,r.y)):(styleHasFill(r)&&n.fillText(g,r.x,r.y),styleHasStroke(r)&&n.strokeText(g,r.x,r.y)),$&&n.setLineDash([])}}var SHADOW_NUMBER_PROPS=["shadowBlur","shadowOffsetX","shadowOffsetY"],STROKE_PROPS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bindCommonProps(n,t,r,i,g){var $=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){flushPathDrawn(n,g),$=!0;var V=Math.max(Math.min(t.opacity,1),0);n.globalAlpha=isNaN(V)?DEFAULT_COMMON_STYLE.opacity:V}(i||t.blend!==r.blend)&&($||(flushPathDrawn(n,g),$=!0),n.globalCompositeOperation=t.blend||DEFAULT_COMMON_STYLE.blend);for(var re=0;re0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,i,g){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}var $,V,re;if(isObject$2(i)&&(g=i.lazyUpdate,$=i.silent,V=i.replaceMerge,re=i.transition,i=i.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||i){var ie=new OptionManager$1(this._api),ae=this._theme,oe=this._model=new GlobalModel$1;oe.scheduler=this._scheduler,oe.ssr=this._ssr,oe.init(null,null,null,ae,this._locale,ie)}this._model.setOption(r,{replaceMerge:V},optionPreprocessorFuncs);var le={seriesTransition:re,optionChanged:!0};if(g)this[PENDING_UPDATE]={silent:$,updateParams:le},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare(this),updateMethods.update.call(this,null,le)}catch(ue){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,ue}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,$),triggerUpdatedEvent.call(this,$)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||env$1.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(env$1.svgSupported){var r=this._zr,i=r.storage.getDisplayList();return each$4(i,function(g){g.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,g=this._model,$=[],V=this;each$4(i,function(ie){g.eachComponent({mainType:ie},function(ae){var oe=V._componentsMap[ae.__viewId];oe.group.ignore||($.push(oe),oe.group.ignore=!0)})});var re=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return each$4($,function(ie){ie.group.ignore=!1}),re},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",g=this.group,$=Math.min,V=Math.max,re=1/0;if(connectedGroups[g]){var ie=re,ae=re,oe=-re,le=-re,ue=[],de=r&&r.pixelRatio||this.getDevicePixelRatio();each$4(instances,function(Ie,Ne){if(Ie.group===g){var Oe=i?Ie.getZr().painter.getSvgDom().innerHTML:Ie.renderToCanvas(clone$2(r)),$e=Ie.getDom().getBoundingClientRect();ie=$($e.left,ie),ae=$($e.top,ae),oe=V($e.right,oe),le=V($e.bottom,le),ue.push({dom:Oe,left:$e.left,top:$e.top})}}),ie*=de,ae*=de,oe*=de,le*=de;var he=oe-ie,pe=le-ae,_e=platformApi.createCanvas(),Ce=init$1(_e,{renderer:i?"svg":"canvas"});if(Ce.resize({width:he,height:pe}),i){var xe="";return each$4(ue,function(Ie){var Ne=Ie.left-ie,Oe=Ie.top-ae;xe+=''+Ie.dom+""}),Ce.painter.getSvgRoot().innerHTML=xe,r.connectedBackgroundColor&&Ce.painter.setBackgroundColor(r.connectedBackgroundColor),Ce.refreshImmediately(),Ce.painter.toDataURL()}else return r.connectedBackgroundColor&&Ce.add(new Rect$1({shape:{x:0,y:0,width:he,height:pe},style:{fill:r.connectedBackgroundColor}})),each$4(ue,function(Ie){var Ne=new ZRImage$1({style:{x:Ie.left*de-ie,y:Ie.top*de-ae,image:Ie.dom}});Ce.add(Ne)}),Ce.refreshImmediately(),_e.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,i){return doConvertPixel(this,"convertToPixel",r,i)},t.prototype.convertFromPixel=function(r,i){return doConvertPixel(this,"convertFromPixel",r,i)},t.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var g=this._model,$,V=parseFinder(g,r);return each$4(V,function(re,ie){ie.indexOf("Models")>=0&&each$4(re,function(ae){var oe=ae.coordinateSystem;if(oe&&oe.containPoint)$=$||!!oe.containPoint(i);else if(ie==="seriesModels"){var le=this._chartsMap[ae.__viewId];le&&le.containPoint&&($=$||le.containPoint(i,ae))}},this)},this),!!$},t.prototype.getVisual=function(r,i){var g=this._model,$=parseFinder(g,r,{defaultMainType:"series"}),V=$.seriesModel,re=V.getData(),ie=$.hasOwnProperty("dataIndexInside")?$.dataIndexInside:$.hasOwnProperty("dataIndex")?re.indexOfRawIndex($.dataIndex):null;return ie!=null?getItemVisualFromData(re,ie,i):getVisualFromData(re,i)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;each$4(MOUSE_EVENT_NAMES,function(i){var g=function($){var V=r.getModel(),re=$.target,ie,ae=i==="globalout";if(ae?ie={}:re&&findEventDispatcher(re,function(he){var pe=getECData(he);if(pe&&pe.dataIndex!=null){var _e=pe.dataModel||V.getSeriesByIndex(pe.seriesIndex);return ie=_e&&_e.getDataParams(pe.dataIndex,pe.dataType,re)||{},!0}else if(pe.eventData)return ie=extend({},pe.eventData),!0},!0),ie){var oe=ie.componentType,le=ie.componentIndex;(oe==="markLine"||oe==="markPoint"||oe==="markArea")&&(oe="series",le=ie.seriesIndex);var ue=oe&&le!=null&&V.getComponent(oe,le),de=ue&&r[ue.mainType==="series"?"_chartsMap":"_componentsMap"][ue.__viewId];ie.event=$,ie.type=i,r._$eventProcessor.eventInfo={targetEl:re,packedEvent:ie,model:ue,view:de},r.trigger(i,ie)}};g.zrEventfulCallAtLast=!0,r._zr.on(i,g,r)}),each$4(eventActionMap,function(i,g){r._messageCenter.on(g,function($){this.trigger(g,$)},r)}),each$4(["selectchanged"],function(i){r._messageCenter.on(i,function(g){this.trigger(i,g)},r)}),handleLegacySelectEvents(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&setAttribute(this.getDom(),DOM_ATTRIBUTE_KEY,"");var i=this,g=i._api,$=i._model;each$4(i._componentsViews,function(V){V.dispose($,g)}),each$4(i._chartsViews,function(V){V.dispose($,g)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete instances[i.id]},t.prototype.resize=function(r){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var g=i.resetOption("media"),$=r&&r.silent;this[PENDING_UPDATE]&&($==null&&($=this[PENDING_UPDATE].silent),g=!0,this[PENDING_UPDATE]=null),this[IN_MAIN_PROCESS_KEY]=!0;try{g&&prepare(this),updateMethods.update.call(this,{type:"resize",animation:extend({duration:0},r&&r.animation)})}catch(V){throw this[IN_MAIN_PROCESS_KEY]=!1,V}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,$),triggerUpdatedEvent.call(this,$)}}},t.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(isObject$2(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!loadingEffects[r]){var g=loadingEffects[r](this._api,i),$=this._zr;this._loadingFX=g,$.add(g)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var i=extend({},r);return i.type=eventActionMap[r.type],i},t.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(isObject$2(i)||(i={silent:!!i}),!!actions[r.type]&&this._model){if(this[IN_MAIN_PROCESS_KEY]){this._pendingActions.push(r);return}var g=i.silent;doDispatchAction.call(this,r,g);var $=i.flush;$?this._zr.flush():$!==!1&&env$1.browser.weChat&&this._throttledZrFlush(),flushPendingActions.call(this,g),triggerUpdatedEvent.call(this,g)}},t.prototype.updateLabelLayout=function(){lifecycle$1.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,g=this.getModel(),$=g.getSeriesByIndex(i);$.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){prepare=function(le){var ue=le._scheduler;ue.restorePipelines(le._model),ue.prepareStageTasks(),prepareView(le,!0),prepareView(le,!1),ue.plan()},prepareView=function(le,ue){for(var de=le._model,he=le._scheduler,pe=ue?le._componentsViews:le._chartsViews,_e=ue?le._componentsMap:le._chartsMap,Ce=le._zr,xe=le._api,Ie=0;Ieue.get("hoverLayerThreshold")&&!env$1.node&&!env$1.worker&&ue.eachSeries(function(_e){if(!_e.preventUsingHoverLayer){var Ce=le._chartsMap[_e.__viewId];Ce.__alive&&Ce.eachRendered(function(xe){xe.states.emphasis&&(xe.states.emphasis.hoverLayer=!0)})}})}function V(le,ue){var de=le.get("blendMode")||null;ue.eachRendered(function(he){he.isGroup||(he.style.blend=de)})}function re(le,ue){if(!le.preventAutoZ){var de=le.get("z")||0,he=le.get("zlevel")||0;ue.eachRendered(function(pe){return ie(pe,de,he,-1/0),!0})}}function ie(le,ue,de,he){var pe=le.getTextContent(),_e=le.getTextGuideLine(),Ce=le.isGroup;if(Ce)for(var xe=le.childrenRef(),Ie=0;Ie0?{duration:pe,delay:de.get("delay"),easing:de.get("easing")}:null;ue.eachRendered(function(Ce){if(Ce.states&&Ce.states.emphasis){if(isElementRemoved(Ce))return;if(Ce instanceof Path$1&&savePathStates(Ce),Ce.__dirty){var xe=Ce.prevStates;xe&&Ce.useStates(xe)}if(he){Ce.stateTransition=_e;var Ie=Ce.getTextContent(),Ne=Ce.getTextGuideLine();Ie&&(Ie.stateTransition=_e),Ne&&(Ne.stateTransition=_e)}Ce.__dirty&&g(Ce)}})}createExtensionAPI=function(le){return new(function(ue){__extends(de,ue);function de(){return ue!==null&&ue.apply(this,arguments)||this}return de.prototype.getCoordinateSystems=function(){return le._coordSysMgr.getCoordinateSystems()},de.prototype.getComponentByElement=function(he){for(;he;){var pe=he.__ecComponentInfo;if(pe!=null)return le._model.getComponent(pe.mainType,pe.index);he=he.parent}},de.prototype.enterEmphasis=function(he,pe){enterEmphasis(he,pe),markStatusToUpdate(le)},de.prototype.leaveEmphasis=function(he,pe){leaveEmphasis(he,pe),markStatusToUpdate(le)},de.prototype.enterBlur=function(he){enterBlur(he),markStatusToUpdate(le)},de.prototype.leaveBlur=function(he){leaveBlur(he),markStatusToUpdate(le)},de.prototype.enterSelect=function(he){enterSelect(he),markStatusToUpdate(le)},de.prototype.leaveSelect=function(he){leaveSelect(he),markStatusToUpdate(le)},de.prototype.getModel=function(){return le.getModel()},de.prototype.getViewOfComponentModel=function(he){return le.getViewOfComponentModel(he)},de.prototype.getViewOfSeriesModel=function(he){return le.getViewOfSeriesModel(he)},de}(ExtensionAPI$1))(le)},enableConnect=function(le){function ue(de,he){for(var pe=0;pe=0)){registeredTasks.push(r);var $=Scheduler$1.wrapStageHandler(r,g);$.__prio=t,$.__raw=r,n.push($)}}function registerLoading(n,t){loadingEffects[n]=t}function registerMap(n,t,r){var i=getImpl("registerMap");i&&i(n,t,r)}var registerTransform=registerExternalTransform;registerVisual(PRIORITY_VISUAL_GLOBAL,seriesStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataColorPaletteTask);registerVisual(PRIORITY_VISUAL_GLOBAL,seriesSymbolTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataSymbolTask);registerVisual(PRIORITY_VISUAL_DECAL,decalVisual);registerPreprocessor(globalBackwardCompat);registerProcessor(PRIORITY_PROCESSOR_DATASTACK,dataStack);registerLoading("default",defaultLoading);registerAction({type:HIGHLIGHT_ACTION_TYPE,event:HIGHLIGHT_ACTION_TYPE,update:HIGHLIGHT_ACTION_TYPE},noop);registerAction({type:DOWNPLAY_ACTION_TYPE,event:DOWNPLAY_ACTION_TYPE,update:DOWNPLAY_ACTION_TYPE},noop);registerAction({type:SELECT_ACTION_TYPE,event:SELECT_ACTION_TYPE,update:SELECT_ACTION_TYPE},noop);registerAction({type:UNSELECT_ACTION_TYPE,event:UNSELECT_ACTION_TYPE,update:UNSELECT_ACTION_TYPE},noop);registerAction({type:TOGGLE_SELECT_ACTION_TYPE,event:TOGGLE_SELECT_ACTION_TYPE,update:TOGGLE_SELECT_ACTION_TYPE},noop);registerTheme("light",lightTheme);registerTheme("dark",darkTheme);function dataIndexMapValueLength(n){return n==null?0:n.length||1}function defaultKeyGetter(n){return n}var DataDiffer=function(){function n(t,r,i,g,$,V){this._old=t,this._new=r,this._oldKeyGetter=i||defaultKeyGetter,this._newKeyGetter=g||defaultKeyGetter,this.context=$,this._diffModeMultiple=V==="multiple"}return n.prototype.add=function(t){return this._add=t,this},n.prototype.update=function(t){return this._update=t,this},n.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},n.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},n.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},n.prototype.remove=function(t){return this._remove=t,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var t=this._old,r=this._new,i={},g=new Array(t.length),$=new Array(r.length);this._initIndexMap(t,null,g,"_oldKeyGetter"),this._initIndexMap(r,i,$,"_newKeyGetter");for(var V=0;V1){var oe=ie.shift();ie.length===1&&(i[re]=ie[0]),this._update&&this._update(oe,V)}else ae===1?(i[re]=null,this._update&&this._update(ie,V)):this._remove&&this._remove(V)}this._performRestAdd($,i)},n.prototype._executeMultiple=function(){var t=this._old,r=this._new,i={},g={},$=[],V=[];this._initIndexMap(t,i,$,"_oldKeyGetter"),this._initIndexMap(r,g,V,"_newKeyGetter");for(var re=0;re<$.length;re++){var ie=$[re],ae=i[ie],oe=g[ie],le=dataIndexMapValueLength(ae),ue=dataIndexMapValueLength(oe);if(le>1&&ue===1)this._updateManyToOne&&this._updateManyToOne(oe,ae),g[ie]=null;else if(le===1&&ue>1)this._updateOneToMany&&this._updateOneToMany(oe,ae),g[ie]=null;else if(le===1&&ue===1)this._update&&this._update(oe,ae),g[ie]=null;else if(le>1&&ue>1)this._updateManyToMany&&this._updateManyToMany(oe,ae),g[ie]=null;else if(le>1)for(var de=0;de1)for(var re=0;re30}var isObject=isObject$2,map=map$1,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 n(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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,g=!1;isSeriesDataSchema(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(g=!0,i=t),i=i||["x","y"];for(var $={},V=[],re={},ie=!1,ae={},oe=0;oe=r)){var i=this._store,g=i.getProvider();this._updateOrdinalMeta();var $=this._nameList,V=this._idList,re=g.getSource().sourceFormat,ie=re===SOURCE_FORMAT_ORIGINAL;if(ie&&!g.pure)for(var ae=[],oe=t;oe0},n.prototype.ensureUniqueItemVisual=function(t,r){var i=this._itemVisuals,g=i[t];g||(g=i[t]={});var $=g[r];return $==null&&($=this.getVisual(r),isArray($)?$=$.slice():isObject($)&&($=extend({},$)),g[r]=$),$},n.prototype.setItemVisual=function(t,r,i){var g=this._itemVisuals[t]||{};this._itemVisuals[t]=g,isObject(r)?extend(g,r):g[r]=i},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(t,r){isObject(t)?extend(this._layout,t):this._layout[t]=r},n.prototype.getLayout=function(t){return this._layout[t]},n.prototype.getItemLayout=function(t){return this._itemLayouts[t]},n.prototype.setItemLayout=function(t,r,i){this._itemLayouts[t]=i?extend(this._itemLayouts[t]||{},r):r},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(t,r){var i=this.hostModel&&this.hostModel.seriesIndex;setCommonECData(i,this.dataType,t,r),this._graphicEls[t]=r},n.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},n.prototype.eachItemGraphicEl=function(t,r){each$4(this._graphicEls,function(i,g){i&&t&&t.call(r,i,g)})},n.prototype.cloneShallow=function(t){return t||(t=new n(this._schema?this._schema:map(this.dimensions,this._getDimInfo,this),this.hostModel)),transferProperties(t,this),t._store=this._store,t},n.prototype.wrapMethod=function(t,r){var i=this[t];isFunction(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var g=i.apply(this,arguments);return r.apply(this,[g].concat(slice(arguments)))})},n.internalField=function(){prepareInvertedIndex=function(t){var r=t._invertedIndicesMap;each$4(r,function(i,g){var $=t._dimInfos[g],V=$.ordinalMeta,re=t._store;if(V){i=r[g]=new CtorInt32Array(V.categories.length);for(var ie=0;ie1&&(ie+="__ec__"+oe),g[r]=ie}}}(),n}();const SeriesData$1=SeriesData;function prepareSeriesDataSchema(n,t){isSourceInstance(n)||(n=createSourceFromSeriesDataOption(n)),t=t||{};var r=t.coordDimensions||[],i=t.dimensionsDefine||n.dimensionsDefine||[],g=createHashMap(),$=[],V=getDimCount(n,r,i,t.dimensionsCount),re=t.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(V),ie=i===n.dimensionsDefine,ae=ie?ensureSourceDimNameMap(n):createDimNameMap(i),oe=t.encodeDefine;!oe&&t.encodeDefaulter&&(oe=t.encodeDefaulter(n,V));for(var le=createHashMap(oe),ue=new CtorInt32Array$1(V),de=0;de0&&(i.name=g+($-1)),$++,t.set(g,$)}}function getDimCount(n,t,r,i){var g=Math.max(n.dimensionsDetectedCount||1,t.length,r.length,i||0);return each$4(t,function($){var V;isObject$2($)&&(V=$.dimsDef)&&(g=Math.max(g,V.length))}),g}function genCoordDimName(n,t,r){if(r||t.hasKey(n)){for(var i=0;t.hasKey(n+i);)i++;n+=i}return t.set(n,!0),n}function getAxisRawValue(n,t){return n.type==="category"?n.scale.getLabel(t):t.value}function getOptionCategoryInterval(n){var t=n.get("interval");return t??"auto"}function shouldShowAllLabels(n){return n.type==="category"&&getOptionCategoryInterval(n.getLabelModel())===0}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(n){ComponentModel$1.registerClass(n)},registerComponentView:function(n){ComponentView$1.registerClass(n)},registerSeriesModel:function(n){SeriesModel$1.registerClass(n)},registerChartView:function(n){ChartView$1.registerClass(n)},registerSubTypeDefaulter:function(n,t){ComponentModel$1.registerSubTypeDefaulter(n,t)},registerPainter:function(n,t){registerPainter(n,t)}};function use(n){if(isArray(n)){each$4(n,function(t){use(t)});return}indexOf(extensions,n)>=0||(extensions.push(n),isFunction(n)&&(n={install:n}),n.install(extensionRegisters))}PathProxy$1.CMD;function projectPointToLine(n,t,r,i,g,$,V,re){var ie=g-n,ae=$-t,oe=r-n,le=i-t,ue=Math.sqrt(oe*oe+le*le);oe/=ue,le/=ue;var de=ie*oe+ae*le,he=de/ue;re&&(he=Math.min(Math.max(he,0),1)),he*=ue;var pe=V[0]=n+he*oe,_e=V[1]=t+he*le;return Math.sqrt((pe-g)*(pe-g)+(_e-$)*(_e-$))}var pt0=new Point$1,pt1=new Point$1,pt2=new Point$1,dir=new Point$1,dir2=new Point$1,tmpArr=[],tmpProjPoint=new Point$1;function limitTurnAngle(n,t){if(t<=180&&t>0){t=t/180*Math.PI,pt0.fromArray(n[0]),pt1.fromArray(n[1]),pt2.fromArray(n[2]),Point$1.sub(dir,pt0,pt1),Point$1.sub(dir2,pt2,pt1);var r=dir.len(),i=dir2.len();if(!(r<.001||i<.001)){dir.scale(1/r),dir2.scale(1/i);var g=dir.dot(dir2),$=Math.cos(t);if($1&&Point$1.copy(tmpProjPoint,pt2),tmpProjPoint.toArray(n[1])}}}}function limitSurfaceAngle(n,t,r){if(r<=180&&r>0){r=r/180*Math.PI,pt0.fromArray(n[0]),pt1.fromArray(n[1]),pt2.fromArray(n[2]),Point$1.sub(dir,pt1,pt0),Point$1.sub(dir2,pt2,pt1);var i=dir.len(),g=dir2.len();if(!(i<.001||g<.001)){dir.scale(1/i),dir2.scale(1/g);var $=dir.dot(t),V=Math.cos(r);if($=ie)Point$1.copy(tmpProjPoint,pt2);else{tmpProjPoint.scaleAndAdd(dir2,re/Math.tan(Math.PI/2-oe));var le=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(le))return;le<0?Point$1.copy(tmpProjPoint,pt1):le>1&&Point$1.copy(tmpProjPoint,pt2)}tmpProjPoint.toArray(n[1])}}}}function setLabelLineState(n,t,r,i){var g=r==="normal",$=g?n:n.ensureState(r);$.ignore=t;var V=i.get("smooth");V&&V===!0&&(V=.3),$.shape=$.shape||{},V>0&&($.shape.smooth=V);var re=i.getModel("lineStyle").getLineStyle();g?n.useStyle(re):$.style=re}function buildLabelLinePath(n,t){var r=t.smooth,i=t.points;if(i)if(n.moveTo(i[0][0],i[0][1]),r>0&&i.length>=3){var g=dist$1(i[0],i[1]),$=dist$1(i[1],i[2]);if(!g||!$){n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]);return}var V=Math.min(g,$)*r,re=lerp([],i[1],i[0],V/g),ie=lerp([],i[1],i[2],V/$),ae=lerp([],re,ie,.5);n.bezierCurveTo(re[0],re[1],re[0],re[1],ae[0],ae[1]),n.bezierCurveTo(ie[0],ie[1],ie[0],ie[1],i[2][0],i[2][1])}else for(var oe=1;oe0&&$&&Oe(-oe/V,0,V);var pe=n[0],_e=n[V-1],Ce,xe;Ie(),Ce<0&&$e(-Ce,.8),xe<0&&$e(xe,.8),Ie(),Ne(Ce,xe,1),Ne(xe,Ce,-1),Ie(),Ce<0&&Ve(-Ce),xe<0&&Ve(xe);function Ie(){Ce=pe.rect[t]-i,xe=g-_e.rect[t]-_e.rect[r]}function Ne(Ue,Fe,ze){if(Ue<0){var Pt=Math.min(Fe,-Ue);if(Pt>0){Oe(Pt*ze,0,V);var qe=Pt+Ue;qe<0&&$e(-qe*ze,1)}else $e(-Ue*ze,1)}}function Oe(Ue,Fe,ze){Ue!==0&&(ae=!0);for(var Pt=Fe;Pt0)for(var qe=0;qe0;qe--){var Dt=ze[qe-1]*At;Oe(-Dt,qe,V)}}}function Ve(Ue){var Fe=Ue<0?-1:1;Ue=Math.abs(Ue);for(var ze=Math.ceil(Ue/(V-1)),Pt=0;Pt0?Oe(ze,0,Pt+1):Oe(-ze,V-Pt-1,V),Ue-=ze,Ue<=0)return}return ae}function shiftLayoutOnY(n,t,r,i){return shiftLayout(n,"y","height",t,r,i)}function hideOverlap(n){var t=[];n.sort(function(pe,_e){return _e.priority-pe.priority});var r=new BoundingRect$1(0,0,0,0);function i(pe){if(!pe.ignore){var _e=pe.ensureState("emphasis");_e.ignore==null&&(_e.ignore=!1)}pe.ignore=!0}for(var g=0;g=PI2$1:-ae>=PI2$1),de=ae>0?ae%PI2$1:ae%PI2$1+PI2$1,he=!1;ue?he=!0:isAroundZero(le)?he=!1:he=de>=PI$1==!!oe;var pe=t+i*mathCos(V),_e=r+g*mathSin(V);this._start&&this._add("M",pe,_e);var Ce=Math.round($*degree);if(ue){var xe=1/this._p,Ie=(oe?1:-1)*(PI2$1-xe);this._add("A",i,g,Ce,1,+oe,t+i*mathCos(V+Ie),r+g*mathSin(V+Ie)),xe>.01&&this._add("A",i,g,Ce,0,+oe,pe,_e)}else{var Ne=t+i*mathCos(re),Oe=r+g*mathSin(re);this._add("A",i,g,Ce,+he,+oe,Ne,Oe)}},n.prototype.rect=function(t,r,i,g){this._add("M",t,r),this._add("l",i,0),this._add("l",0,g),this._add("l",-i,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(t,r,i,g,$,V,re,ie,ae){for(var oe=[],le=this._p,ue=1;ue"}function createElementClose(n){return""}function vNodeToString(n,t){t=t||{};var r=t.newline?` `:"";function i(g){var $=g.children,V=g.tag,re=g.attrs,ie=g.text;return createElementOpen(V,re)+(V!=="style"?encodeHTML(ie):ie||"")+($?""+r+map$1($,function(ae){return i(ae)}).join(r)+r:"")+createElementClose(V)}return i(n)}function getCssString(n,t,r){r=r||{};var i=r.newline?` `:"",g=" {"+i,$=i+"}",V=map$1(keys(n),function(ie){return ie+g+map$1(keys(n[ie]),function(ae){return ae+":"+n[ie][ae]+";"}).join(i)+$}).join(i),re=map$1(keys(t),function(ie){return"@keyframes "+ie+g+map$1(keys(t[ie]),function(ae){return ae+g+map$1(keys(t[ie][ae]),function(oe){var le=t[ie][ae][oe];return oe==="d"&&(le='path("'+le+'")'),oe+":"+le+";"}).join(i)+$}).join(i)+$}).join(i);return!V&&!re?"":[""].join(i)}function createBrushScope(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function createSVGVNode(n,t,r,i){return createVNode("svg","root",{width:n,height:t,xmlns:SVGNS,"xmlns:xlink":XLINKNS,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+n+" "+t:!1},r)}var cssClassIdx=0;function getClassId(){return cssClassIdx++}var EASING_MAP={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},transformOriginKey="transform-origin";function buildPathString(n,t,r){var i=extend({},n.shape);extend(i,t),n.buildPath(r,i);var g=new SVGPathRebuilder$1;return g.reset(getPathPrecision(n)),r.rebuildPath(g,1),g.generateStr(),g.getStr()}function setTransformOrigin(n,t){var r=t.originX,i=t.originY;(r||i)&&(n[transformOriginKey]=r+"px "+i+"px")}var ANIMATE_STYLE_MAP={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function addAnimation(n,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=n,r}function createCompoundPathCSSAnimation(n,t,r){var i=n.shape.paths,g={},$,V;if(each$4(i,function(ie){var ae=createBrushScope(r.zrId);ae.animation=!0,createCSSAnimation(ie,{},ae,!0);var oe=ae.cssAnims,le=ae.cssNodes,ue=keys(oe),de=ue.length;if(de){V=ue[de-1];var he=oe[V];for(var pe in he){var _e=he[pe];g[pe]=g[pe]||{d:""},g[pe].d+=_e.d||""}for(var Ce in le){var xe=le[Ce].animation;xe.indexOf(V)>=0&&($=xe)}}}),!!$){t.d=!1;var re=addAnimation(g,r);return $.replace(V,re)}}function getEasingFunc(n){return isString(n)?EASING_MAP[n]?"cubic-bezier("+EASING_MAP[n]+")":createCubicEasingFunc(n)?n:"":""}function createCSSAnimation(n,t,r,i){var g=n.animators,$=g.length,V=[];if(n instanceof CompoundPath$1){var re=createCompoundPathCSSAnimation(n,t,r);if(re)V.push(re);else if(!$)return}else if(!$)return;for(var ie={},ae=0;ae<$;ae++){var oe=g[ae],le=[oe.getMaxTime()/1e3+"s"],ue=getEasingFunc(oe.getClip().easing),de=oe.getDelay();ue?le.push(ue):le.push("linear"),de&&le.push(de/1e3+"s"),oe.getLoop()&&le.push("infinite");var he=le.join(" ");ie[he]=ie[he]||[he,[]],ie[he][1].push(oe)}function pe(xe){var Ie=xe[1],Ne=Ie.length,Oe={},$e={},Ve={},Ue="animation-timing-function";function Fe(kn,$n,An){for(var xn=kn.getTracks(),Ln=kn.getMaxTime(),Nn=0;Nn0}).length){var En=addAnimation(Ve,r);return En+" "+xe[0]+" both"}}for(var _e in ie){var re=pe(ie[_e]);re&&V.push(re)}if(V.length){var Ce=r.zrId+"-cls-"+getClassId();r.cssNodes["."+Ce]={animation:V.join(",")},t.class=Ce}}function createCSSEmphasis(n,t,r){if(!n.ignore)if(n.isSilent()){var i={"pointer-events":"none"};setClassAttribute(i,t,r,!0)}else{var g=n.states.emphasis&&n.states.emphasis.style?n.states.emphasis.style:{},$=g.fill;if(!$){var V=n.style&&n.style.fill,re=n.states.select&&n.states.select.style&&n.states.select.style.fill,ie=n.currentStates.indexOf("select")>=0&&re||V;ie&&($=liftColor(ie))}var ae=g.lineWidth;if(ae){var oe=!g.strokeNoScale&&n.transform?n.transform[0]:1;ae=ae/oe}var i={cursor:"pointer"};$&&(i.fill=$),g.stroke&&(i.stroke=g.stroke),ae&&(i["stroke-width"]=ae),setClassAttribute(i,t,r,!0)}}function setClassAttribute(n,t,r,i){var g=JSON.stringify(n),$=r.cssStyleCache[g];$||($=r.zrId+"-cls-"+getClassId(),r.cssStyleCache[g]=$,r.cssNodes["."+$+(i?":hover":"")]=n),t.class=t.class?t.class+" "+$:$}var round=Math.round;function isImageLike(n){return n&&isString(n.src)}function isCanvasLike(n){return n&&isFunction(n.toDataURL)}function setStyleAttrs(n,t,r,i){mapStyleToAttrs(function(g,$){var V=g==="fill"||g==="stroke";V&&isGradient($)?setGradient(t,n,g,i):V&&isPattern($)?setPattern(r,n,g,i):n[g]=$,V&&i.ssr&&$==="none"&&(n["pointer-events"]="visible")},t,r,!1),setShadow(r,n,i)}function setMetaData(n,t){var r=getElementSSRData(t);r&&(r.each(function(i,g){i!=null&&(n[(META_DATA_PREFIX+g).toLowerCase()]=i+"")}),t.isSilent()&&(n[META_DATA_PREFIX+"silent"]="true"))}function noRotateScale(n){return isAroundZero(n[0]-1)&&isAroundZero(n[1])&&isAroundZero(n[2])&&isAroundZero(n[3]-1)}function noTranslate(n){return isAroundZero(n[4])&&isAroundZero(n[5])}function setTransform(n,t,r){if(t&&!(noTranslate(t)&&noRotateScale(t))){var i=r?10:1e4;n.transform=noRotateScale(t)?"translate("+round(t[4]*i)/i+" "+round(t[5]*i)/i+")":getMatrixStr(t)}}function convertPolyShape(n,t,r){for(var i=n.points,g=[],$=0;$"u"){var _e="Image width/height must been given explictly in svg-ssr renderer.";assert(ue,_e),assert(de,_e)}else if(ue==null||de==null){var Ce=function(ze,Pt){if(ze){var qe=ze.elm,Et=ue||Pt.width,kt=de||Pt.height;ze.tag==="pattern"&&(ae?(kt=1,Et/=$.width):oe&&(Et=1,kt/=$.height)),ze.attrs.width=Et,ze.attrs.height=kt,qe&&(qe.setAttribute("width",Et),qe.setAttribute("height",kt))}},xe=createOrUpdateImage(he,null,n,function(ze){ie||Ce($e,ze),Ce(le,ze)});xe&&xe.width&&xe.height&&(ue=ue||xe.width,de=de||xe.height)}le=createVNode("image","img",{href:he,width:ue,height:de}),V.width=ue,V.height=de}else g.svgElement&&(le=clone$2(g.svgElement),V.width=g.svgWidth,V.height=g.svgHeight);if(le){var Ie,Ne;ie?Ie=Ne=1:ae?(Ne=1,Ie=V.width/$.width):oe?(Ie=1,Ne=V.height/$.height):V.patternUnits="userSpaceOnUse",Ie!=null&&!isNaN(Ie)&&(V.width=Ie),Ne!=null&&!isNaN(Ne)&&(V.height=Ne);var Oe=getSRTTransformString(g);Oe&&(V.patternTransform=Oe);var $e=createVNode("pattern","",V,[le]),Ve=vNodeToString($e),Ue=i.patternCache,Fe=Ue[Ve];Fe||(Fe=i.zrId+"-p"+i.patternIdx++,Ue[Ve]=Fe,V.id=Fe,$e=i.defs[Fe]=createVNode("pattern",Fe,V,[le])),t[r]=getIdURL(Fe)}}function setClipPath(n,t,r){var i=r.clipPathCache,g=r.defs,$=i[n.id];if(!$){$=r.zrId+"-c"+r.clipPathIdx++;var V={id:$};i[n.id]=$,g[$]=createVNode("clipPath",$,V,[brushSVGPath(n,r)])}t["clip-path"]=getIdURL($)}function createTextNode(n){return document.createTextNode(n)}function insertBefore(n,t,r){n.insertBefore(t,r)}function removeChild(n,t){n.removeChild(t)}function appendChild(n,t){n.appendChild(t)}function parentNode(n){return n.parentNode}function nextSibling(n){return n.nextSibling}function setTextContent(n,t){n.textContent=t}var colonChar=58,xChar=120,emptyNode=createVNode("","");function isUndef(n){return n===void 0}function isDef(n){return n!==void 0}function createKeyToOldIdx(n,t,r){for(var i={},g=t;g<=r;++g){var $=n[g].key;$!==void 0&&(i[$]=g)}return i}function sameVnode(n,t){var r=n.key===t.key,i=n.tag===t.tag;return i&&r}function createElm(n){var t,r=n.children,i=n.tag;if(isDef(i)){var g=n.elm=createElement$1(i);if(updateAttrs(emptyNode,n),isArray(r))for(t=0;t$?(he=r[ie+1]==null?null:r[ie+1].elm,addVnodes(n,he,r,g,ie)):removeVnodes(n,t,i,$))}function patchVnode(n,t){var r=t.elm=n.elm,i=n.children,g=t.children;n!==t&&(updateAttrs(n,t),isUndef(t.text)?isDef(i)&&isDef(g)?i!==g&&updateChildren(r,i,g):isDef(g)?(isDef(n.text)&&setTextContent(r,""),addVnodes(r,null,g,0,g.length-1)):isDef(i)?removeVnodes(r,i,0,i.length-1):isDef(n.text)&&setTextContent(r,""):n.text!==t.text&&(isDef(i)&&removeVnodes(r,i,0,i.length-1),setTextContent(r,t.text)))}function patch(n,t){if(sameVnode(n,t))patchVnode(n,t);else{var r=n.elm,i=parentNode(r);createElm(t),i!==null&&(insertBefore(i,t.elm,nextSibling(r)),removeVnodes(i,[n],0,0))}return t}var svgId=0,SVGPainter=function(){function n(t,r,i){if(this.type="svg",this.refreshHover=createMethodNotSupport(),this.configLayer=createMethodNotSupport(),this.storage=r,this._opts=i=extend({},i),this.root=t,this._id="zr"+svgId++,this._oldVNode=createSVGVNode(i.width,i.height),t&&!i.ssr){var g=this._viewport=document.createElement("div");g.style.cssText="position:relative;overflow:hidden";var $=this._svgDom=this._oldVNode.elm=createElement$1("svg");updateAttrs(null,this._oldVNode),g.appendChild($),t.appendChild(g)}this.resize(i.width,i.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",patch(this._oldVNode,t),this._oldVNode=t}},n.prototype.renderOneToVNode=function(t){return brush(t,createBrushScope(this._id))},n.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),i=this._width,g=this._height,$=createBrushScope(this._id);$.animation=t.animation,$.willUpdate=t.willUpdate,$.compress=t.compress,$.emphasis=t.emphasis,$.ssr=this._opts.ssr;var V=[],re=this._bgVNode=createBackgroundVNode(i,g,this._backgroundColor,$);re&&V.push(re);var ie=t.compress?null:this._mainVNode=createVNode("g","main",{},[]);this._paintList(r,$,ie?ie.children:V),ie&&V.push(ie);var ae=map$1(keys($.defs),function(ue){return $.defs[ue]});if(ae.length&&V.push(createVNode("defs","defs",{},ae)),t.animation){var oe=getCssString($.cssNodes,$.cssAnims,{newline:!0});if(oe){var le=createVNode("style","stl",{},[],oe);V.push(le)}}return createSVGVNode(i,g,V,t.useViewBox)},n.prototype.renderToString=function(t){return t=t||{},vNodeToString(this.renderToVNode({animation:retrieve2(t.cssAnimation,!0),emphasis:retrieve2(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:retrieve2(t.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(t){this._backgroundColor=t},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(t,r,i){for(var g=t.length,$=[],V=0,re,ie,ae=0,oe=0;oe=0&&!(ue&&ie&&ue[pe]===ie[pe]);pe--);for(var _e=he-1;_e>pe;_e--)V--,re=$[V-1];for(var Ce=pe+1;Cehn?(_n=At+Ue*hn/2,wn=_n):(_n=At+ze,wn=vn-ze),g.setItemLayout(jt,{angle:hn,startAngle:_n,endAngle:wn,clockwise:Ne,cx:ie,cy:ae,r0:le,r:Oe?linearMap(Lt,Ve,[le,oe]):oe}),At=vn}),Etr?Ce:_e,Oe=Math.abs(Ie.label.y-r);if(Oe>=Ne.maxY){var $e=Ie.label.x-t-Ie.len2*g,Ve=i+Ie.len,Ue=Math.abs($e)n.unconstrainedWidth?null:de:null;i.setStyle("width",he)}var pe=i.getBoundingRect();$.width=pe.width;var _e=(i.style.margin||0)+2.1;$.height=pe.height+_e,$.y-=($.height-le)/2}}}function isPositionCenter(n){return n.position==="center"}function pieLabelLayout(n){var t=n.getData(),r=[],i,g,$=!1,V=(n.get("minShowLabelAngle")||0)*RADIAN,re=t.getLayout("viewRect"),ie=t.getLayout("r"),ae=re.width,oe=re.x,le=re.y,ue=re.height;function de($e){$e.ignore=!0}function he($e){if(!$e.ignore)return!0;for(var Ve in $e.states)if($e.states[Ve].ignore===!1)return!0;return!1}t.each(function($e){var Ve=t.getItemGraphicEl($e),Ue=Ve.shape,Fe=Ve.getTextContent(),ze=Ve.getTextGuideLine(),Pt=t.getItemModel($e),qe=Pt.getModel("label"),Et=qe.get("position")||Pt.get(["emphasis","label","position"]),kt=qe.get("distanceToLabelLine"),At=qe.get("alignTo"),Dt=parsePercent(qe.get("edgeDistance"),ae),Lt=qe.get("bleedMargin"),jt=Pt.getModel("labelLine"),hn=jt.get("length");hn=parsePercent(hn,ae);var vn=jt.get("length2");if(vn=parsePercent(vn,ae),Math.abs(Ue.endAngle-Ue.startAngle)0?"right":"left":wn>0?"left":"right"}var On=Math.PI,Hn=0,Xn=qe.get("rotate");if(isNumber(Xn))Hn=Xn*(On/180);else if(Et==="center")Hn=0;else if(Xn==="radial"||Xn===!0){var In=wn<0?-_n+On:-_n;Hn=In}else if(Xn==="tangential"&&Et!=="outside"&&Et!=="outer"){var or=Math.atan2(wn,bn);or<0&&(or=On*2+or);var Qn=bn>0;Qn&&(or=On+or),Hn=or-On}if($=!!Hn,Fe.x=Cn,Fe.y=Sn,Fe.rotation=Hn,Fe.setStyle({verticalAlign:"middle"}),kn){Fe.setStyle({align:En});var Rn=Fe.states.select;Rn&&(Rn.x+=Fe.x,Rn.y+=Fe.y)}else{var Zn=Fe.getBoundingRect().clone();Zn.applyTransform(Fe.getComputedTransform());var Gn=(Fe.style.margin||0)+2.1;Zn.y-=Gn/2,Zn.height+=Gn,r.push({label:Fe,labelLine:ze,position:Et,len:hn,len2:vn,minTurnAngle:jt.get("minTurnAngle"),maxSurfaceAngle:jt.get("maxSurfaceAngle"),surfaceNormal:new Point$1(wn,bn),linePoints:Tn,textAlign:En,labelDistance:kt,labelAlignTo:At,edgeDistance:Dt,bleedMargin:Lt,rect:Zn,unconstrainedWidth:Zn.width,labelStyleWidth:Fe.style.width})}Ve.setTextConfig({inside:kn})}}),!$&&n.get("avoidLabelOverlap")&&avoidOverlap(r,i,g,ie,ae,ue,oe,le);for(var pe=0;pe0){for(var oe=V.getItemLayout(0),le=1;isNaN(oe&&oe.startAngle)&&le=$.r0}},t.type="pie",t}(ChartView$1);const PieView$1=PieView;function createSeriesDataSimply(n,t,r){t=isArray(t)&&{coordDimensions:t}||extend({encodeDefine:n.getEncode()},t);var i=n.getSource(),g=prepareSeriesDataSchema(i,t).dimensions,$=new SeriesData$1(g,n);return $.initData(i,r),$}var LegendVisualProvider=function(){function n(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return n.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},n.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},n.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},n.prototype.getItemVisual=function(t,r){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,r)},n}();const LegendVisualProvider$1=LegendVisualProvider;var innerData=makeInner(),PieSeriesModel=function(n){__extends(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(r){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new LegendVisualProvider$1(bind$1(this.getData,this),bind$1(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return createSeriesDataSimply(this,{coordDimensions:["value"],encodeDefaulter:curry$1(makeSeriesEncodeForNameBased,this)})},t.prototype.getDataParams=function(r){var i=this.getData(),g=innerData(i),$=g.seats;if(!$){var V=[];i.each(i.mapDimension("value"),function(ie){V.push(ie)}),$=g.seats=getPercentSeats(V,i.hostModel.get("percentPrecision"))}var re=n.prototype.getDataParams.call(this,r);return re.percent=$[r]||0,re.$vars.push("percent"),re},t.prototype._defaultLabelLine=function(r){defaultEmphasis(r,"labelLine",["show"]);var i=r.labelLine,g=r.emphasis.labelLine;i.show=i.show&&r.label.show,g.show=g.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(SeriesModel$1);const PieSeriesModel$1=PieSeriesModel;function negativeDataFilter(n){return{seriesType:n,reset:function(t,r){var i=t.getData();i.filterSelf(function(g){var $=i.mapDimension("value"),V=i.get($,g);return!(isNumber(V)&&!isNaN(V)&&V<0)})}}}function install$6(n){n.registerChartView(PieView$1),n.registerSeriesModel(PieSeriesModel$1),createLegacyDataSelectAction("pie",n.registerAction),n.registerLayout(curry$1(pieLayout,"pie")),n.registerProcessor(dataFilter("pie")),n.registerProcessor(negativeDataFilter("pie"))}function layout(n,t,r){r=r||{};var i=n.coordinateSystem,g=t.axis,$={},V=g.getAxesOnZeroOf()[0],re=g.position,ie=V?"onZero":re,ae=g.dim,oe=i.getRect(),le=[oe.x,oe.x+oe.width,oe.y,oe.y+oe.height],ue={left:0,right:1,top:0,bottom:1,onZero:2},de=t.get("offset")||0,he=ae==="x"?[le[2]-de,le[3]+de]:[le[0]-de,le[1]+de];if(V){var pe=V.toGlobalCoord(V.dataToCoord(0));he[ue.onZero]=Math.max(Math.min(pe,he[1]),he[0])}$.position=[ae==="y"?he[ue[ie]]:le[0],ae==="x"?he[ue[ie]]:le[3]],$.rotation=Math.PI/2*(ae==="x"?0:1);var _e={top:-1,bottom:1,left:-1,right:1};$.labelDirection=$.tickDirection=$.nameDirection=_e[re],$.labelOffset=V?he[ue[re]]-he[ue.onZero]:0,t.get(["axisTick","inside"])&&($.tickDirection=-$.tickDirection),retrieve(r.labelInside,t.get(["axisLabel","inside"]))&&($.labelDirection=-$.labelDirection);var Ce=t.get(["axisLabel","rotate"]);return $.labelRotate=ie==="top"?-Ce:Ce,$.z2=1,$}var PI=Math.PI,AxisBuilder=function(){function n(t,r){this.group=new Group$3,this.opt=r,this.axisModel=t,defaults(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new Group$3({x:r.position[0],y:r.position[1],rotation:r.rotation});i.updateTransform(),this._transformGroup=i}return n.prototype.hasBuilder=function(t){return!!builders[t]},n.prototype.add=function(t){builders[t](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(t,r,i){var g=remRadian(r-t),$,V;return isRadianAroundZero(g)?(V=i>0?"top":"bottom",$="center"):isRadianAroundZero(g-PI)?(V=i>0?"bottom":"top",$="center"):(V="middle",g>0&&g0?"right":"left":$=i>0?"left":"right"),{rotation:g,textAlign:$,textVerticalAlign:V}},n.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},n.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},n}(),builders={axisLine:function(n,t,r,i){var g=t.get(["axisLine","show"]);if(g==="auto"&&n.handleAutoShown&&(g=n.handleAutoShown("axisLine")),!!g){var $=t.axis.getExtent(),V=i.transform,re=[$[0],0],ie=[$[1],0],ae=re[0]>ie[0];V&&(applyTransform$1(re,re,V),applyTransform$1(ie,ie,V));var oe=extend({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),le=new Line$1({shape:{x1:re[0],y1:re[1],x2:ie[0],y2:ie[1]},style:oe,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});subPixelOptimizeLine(le.shape,le.style.lineWidth),le.anid="line",r.add(le);var ue=t.get(["axisLine","symbol"]);if(ue!=null){var de=t.get(["axisLine","symbolSize"]);isString(ue)&&(ue=[ue,ue]),(isString(de)||isNumber(de))&&(de=[de,de]);var he=normalizeSymbolOffset(t.get(["axisLine","symbolOffset"])||0,de),pe=de[0],_e=de[1];each$4([{rotate:n.rotation+Math.PI/2,offset:he[0],r:0},{rotate:n.rotation-Math.PI/2,offset:he[1],r:Math.sqrt((re[0]-ie[0])*(re[0]-ie[0])+(re[1]-ie[1])*(re[1]-ie[1]))}],function(Ce,xe){if(ue[xe]!=="none"&&ue[xe]!=null){var Ie=createSymbol(ue[xe],-pe/2,-_e/2,pe,_e,oe.stroke,!0),Ne=Ce.r+Ce.offset,Oe=ae?ie:re;Ie.attr({rotation:Ce.rotate,x:Oe[0]+Ne*Math.cos(n.rotation),y:Oe[1]-Ne*Math.sin(n.rotation),silent:!0,z2:11}),r.add(Ie)}})}}},axisTickLabel:function(n,t,r,i){var g=buildAxisMajorTicks(r,i,t,n),$=buildAxisLabel(r,i,t,n);if(fixMinMaxLabelShow(t,$,g),buildAxisMinorTicks(r,i,t,n.tickDirection),t.get(["axisLabel","hideOverlap"])){var V=prepareLayoutList(map$1($,function(re){return{label:re,priority:re.z2,defaultAttr:{ignore:re.ignore}}}));hideOverlap(V)}},axisName:function(n,t,r,i){var g=retrieve(n.axisName,t.get("name"));if(g){var $=t.get("nameLocation"),V=n.nameDirection,re=t.getModel("nameTextStyle"),ie=t.get("nameGap")||0,ae=t.axis.getExtent(),oe=ae[0]>ae[1]?-1:1,le=[$==="start"?ae[0]-oe*ie:$==="end"?ae[1]+oe*ie:(ae[0]+ae[1])/2,isNameLocationCenter($)?n.labelOffset+V*ie:0],ue,de=t.get("nameRotate");de!=null&&(de=de*PI/180);var he;isNameLocationCenter($)?ue=AxisBuilder.innerTextLayout(n.rotation,de??n.rotation,V):(ue=endTextLayout(n.rotation,$,de||0,ae),he=n.axisNameAvailableWidth,he!=null&&(he=Math.abs(he/Math.sin(ue.rotation)),!isFinite(he)&&(he=null)));var pe=re.getFont(),_e=t.get("nameTruncate",!0)||{},Ce=_e.ellipsis,xe=retrieve(n.nameTruncateMaxWidth,_e.maxWidth,he),Ie=new ZRText$1({x:le[0],y:le[1],rotation:ue.rotation,silent:AxisBuilder.isLabelSilent(t),style:createTextStyle(re,{text:g,font:pe,overflow:"truncate",width:xe,ellipsis:Ce,fill:re.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:re.get("align")||ue.textAlign,verticalAlign:re.get("verticalAlign")||ue.textVerticalAlign}),z2:1});if(setTooltipConfig({el:Ie,componentModel:t,itemName:g}),Ie.__fullText=g,Ie.anid="name",t.get("triggerEvent")){var Ne=AxisBuilder.makeAxisEventDataBase(t);Ne.targetType="axisName",Ne.name=g,getECData(Ie).eventData=Ne}i.add(Ie),Ie.updateTransform(),r.add(Ie),Ie.decomposeTransform()}}};function endTextLayout(n,t,r,i){var g=remRadian(r-n),$,V,re=i[0]>i[1],ie=t==="start"&&!re||t!=="start"&&re;return isRadianAroundZero(g-PI/2)?(V=ie?"bottom":"top",$="center"):isRadianAroundZero(g-PI*1.5)?(V=ie?"top":"bottom",$="center"):(V="middle",gPI/2?$=ie?"left":"right":$=ie?"right":"left"),{rotation:g,textAlign:$,textVerticalAlign:V}}function fixMinMaxLabelShow(n,t,r){if(!shouldShowAllLabels(n.axis)){var i=n.get(["axisLabel","showMinLabel"]),g=n.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var $=t[0],V=t[1],re=t[t.length-1],ie=t[t.length-2],ae=r[0],oe=r[1],le=r[r.length-1],ue=r[r.length-2];i===!1?(ignoreEl($),ignoreEl(ae)):isTwoLabelOverlapped($,V)&&(i?(ignoreEl(V),ignoreEl(oe)):(ignoreEl($),ignoreEl(ae))),g===!1?(ignoreEl(re),ignoreEl(le)):isTwoLabelOverlapped(ie,re)&&(g?(ignoreEl(ie),ignoreEl(ue)):(ignoreEl(re),ignoreEl(le)))}}function ignoreEl(n){n&&(n.ignore=!0)}function isTwoLabelOverlapped(n,t){var r=n&&n.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!r||!i)){var g=identity([]);return rotate(g,g,-n.rotation),r.applyTransform(mul([],g,n.getLocalTransform())),i.applyTransform(mul([],g,t.getLocalTransform())),r.intersect(i)}}function isNameLocationCenter(n){return n==="middle"||n==="center"}function createTicks(n,t,r,i,g){for(var $=[],V=[],re=[],ie=0;ie=0||n===t}function fixValue(n){var t=getAxisInfo(n);if(t){var r=t.axisPointerModel,i=t.axis.scale,g=r.option,$=r.get("status"),V=r.get("value");V!=null&&(V=i.parse(V));var re=isHandleTrigger(r);$==null&&(g.status=re?"show":"hide");var ie=i.getExtent().slice();ie[0]>ie[1]&&ie.reverse(),(V==null||V>ie[1])&&(V=ie[1]),Vre)return!0;if(V){var ie=getAxisInfo(t).seriesDataCount,ae=g.getExtent();return Math.abs(ae[0]-ae[1])/ie>re}return!1}return i===!0},n.prototype.makeElOption=function(t,r,i,g,$){},n.prototype.createPointerEl=function(t,r,i,g){var $=r.pointer;if($){var V=inner$2(t).pointerEl=new graphic[$.type](clone(r.pointer));t.add(V)}},n.prototype.createLabelEl=function(t,r,i,g){if(r.label){var $=inner$2(t).labelEl=new ZRText$1(clone(r.label));t.add($),updateLabelShowHide($,g)}},n.prototype.updatePointerEl=function(t,r,i){var g=inner$2(t).pointerEl;g&&r.pointer&&(g.setStyle(r.pointer.style),i(g,{shape:r.pointer.shape}))},n.prototype.updateLabelEl=function(t,r,i,g){var $=inner$2(t).labelEl;$&&($.setStyle(r.label.style),i($,{x:r.label.x,y:r.label.y}),updateLabelShowHide($,g))},n.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),g=this._handle,$=r.getModel("handle"),V=r.get("status");if(!$.get("show")||!V||V==="hide"){g&&i.remove(g),this._handle=null;return}var re;this._handle||(re=!0,g=this._handle=createIcon($.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(ae){stop(ae.event)},onmousedown:bind(this._onHandleDragMove,this,0,0),drift:bind(this._onHandleDragMove,this),ondragend:bind(this._onHandleDragEnd,this)}),i.add(g)),updateMandatoryProps(g,r,!1),g.setStyle($.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var ie=$.get("size");isArray(ie)||(ie=[ie,ie]),g.scaleX=ie[0]/2,g.scaleY=ie[1]/2,createOrUpdate(this,"_doDispatchAxisPointer",$.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,re)}},n.prototype._moveHandleToValue=function(t,r){updateProps(this._axisPointerModel,!r&&this._moveAnimation,this._handle,getHandleTransProps(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(t,r){var i=this._handle;if(i){this._dragging=!0;var g=this.updateHandleTransform(getHandleTransProps(i),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=g,i.stopAnimation(),i.attr(getHandleTransProps(g)),inner$2(i).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),i=this._group,g=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),g&&r.remove(g),this._group=null,this._handle=null,this._payloadInfo=null),clear(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(t,r,i){return i=i||0,{x:t[i],y:t[1-i],width:r[i],height:r[1-i]}},n}();function updateProps(n,t,r,i){propsEqual(inner$2(r).lastProp,i)||(inner$2(r).lastProp=i,t?updateProps$1(r,i,n):(r.stopAnimation(),r.attr(i)))}function propsEqual(n,t){if(isObject$2(n)&&isObject$2(t)){var r=!0;return each$4(t,function(i,g){r=r&&propsEqual(n[g],i)}),!!r}else return n===t}function updateLabelShowHide(n,t){n[t.get(["label","show"])?"show":"hide"]()}function getHandleTransProps(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function updateMandatoryProps(n,t,r){var i=t.get("z"),g=t.get("zlevel");n&&n.traverse(function($){$.type!=="group"&&(i!=null&&($.z=i),g!=null&&($.zlevel=g),$.silent=r)})}const BaseAxisPointer$1=BaseAxisPointer;function buildElStyle(n){var t=n.get("type"),r=n.getModel(t+"Style"),i;return t==="line"?(i=r.getLineStyle(),i.fill=null):t==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function buildLabelElOption(n,t,r,i,g){var $=r.get("value"),V=getValueLabel($,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),re=r.getModel("label"),ie=normalizeCssArray(re.get("padding")||0),ae=re.getFont(),oe=getBoundingRect(V,ae),le=g.position,ue=oe.width+ie[1]+ie[3],de=oe.height+ie[0]+ie[2],he=g.align;he==="right"&&(le[0]-=ue),he==="center"&&(le[0]-=ue/2);var pe=g.verticalAlign;pe==="bottom"&&(le[1]-=de),pe==="middle"&&(le[1]-=de/2),confineInContainer(le,ue,de,i);var _e=re.get("backgroundColor");(!_e||_e==="auto")&&(_e=t.get(["axisLine","lineStyle","color"])),n.label={x:le[0],y:le[1],style:createTextStyle(re,{text:V,font:ae,fill:re.getTextColor(),padding:ie,backgroundColor:_e}),z2:10}}function confineInContainer(n,t,r,i){var g=i.getWidth(),$=i.getHeight();n[0]=Math.min(n[0]+t,g)-t,n[1]=Math.min(n[1]+r,$)-r,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function getValueLabel(n,t,r,i,g){n=t.scale.parse(n);var $=t.scale.getLabel({value:n},{precision:g.precision}),V=g.formatter;if(V){var re={value:getAxisRawValue(t,{value:n}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};each$4(i,function(ie){var ae=r.getSeriesByIndex(ie.seriesIndex),oe=ie.dataIndexInside,le=ae&&ae.getDataParams(oe);le&&re.seriesData.push(le)}),isString(V)?$=V.replace("{value}",$):isFunction(V)&&($=V(re))}return $}function getTransformedPosition(n,t,r){var i=create();return rotate(i,i,r.rotation),translate(i,i,r.position),applyTransform([n.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function buildCartesianSingleLabelElOption(n,t,r,i,g,$){var V=AxisBuilder$1.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=g.get(["label","margin"]),buildLabelElOption(t,i,g,$,{position:getTransformedPosition(i.axis,n,r),align:V.textAlign,verticalAlign:V.textVerticalAlign})}function makeLineShape(n,t,r){return r=r||0,{x1:n[r],y1:n[1-r],x2:t[r],y2:t[1-r]}}function makeRectShape(n,t,r){return r=r||0,{x:n[r],y:n[1-r],width:t[r],height:t[1-r]}}var CartesianAxisPointer=function(n){__extends(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,i,g,$,V){var re=g.axis,ie=re.grid,ae=$.get("type"),oe=getCartesian(ie,re).getOtherAxis(re).getGlobalExtent(),le=re.toGlobalCoord(re.dataToCoord(i,!0));if(ae&&ae!=="none"){var ue=buildElStyle($),de=pointerShapeBuilder[ae](re,le,oe);de.style=ue,r.graphicKey=de.type,r.pointer=de}var he=layout(ie.model,g);buildCartesianSingleLabelElOption(i,r,he,g,$,V)},t.prototype.getHandleTransform=function(r,i,g){var $=layout(i.axis.grid.model,i,{labelInside:!1});$.labelMargin=g.get(["handle","margin"]);var V=getTransformedPosition(i.axis,r,$);return{x:V[0],y:V[1],rotation:$.rotation+($.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,i,g,$){var V=g.axis,re=V.grid,ie=V.getGlobalExtent(!0),ae=getCartesian(re,V).getOtherAxis(V).getGlobalExtent(),oe=V.dim==="x"?0:1,le=[r.x,r.y];le[oe]+=i[oe],le[oe]=Math.min(ie[1],le[oe]),le[oe]=Math.max(ie[0],le[oe]);var ue=(ae[1]+ae[0])/2,de=[ue,ue];de[oe]=le[oe];var he=[{verticalAlign:"middle"},{align:"center"}];return{x:le[0],y:le[1],rotation:r.rotation,cursorPoint:de,tooltipOption:he[oe]}},t}(BaseAxisPointer$1);function getCartesian(n,t){var r={};return r[t.dim+"AxisIndex"]=t.index,n.getCartesian(r)}var pointerShapeBuilder={line:function(n,t,r){var i=makeLineShape([t,r[0]],[t,r[1]],getAxisDimIndex(n));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(n,t,r){var i=Math.max(1,n.getBandWidth()),g=r[1]-r[0];return{type:"Rect",shape:makeRectShape([t-i/2,r[0]],[i,g],getAxisDimIndex(n))}}};function getAxisDimIndex(n){return n.dim==="x"?0:1}const CartesianAxisPointer$1=CartesianAxisPointer;var AxisPointerModel=function(n){__extends(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,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}},t}(ComponentModel$1);const AxisPointerModel$1=AxisPointerModel;var inner$1=makeInner(),each$1=each$4;function register(n,t,r){if(!env$1.node){var i=t.getZr();inner$1(i).records||(inner$1(i).records={}),initGlobalListeners(i,t);var g=inner$1(i).records[n]||(inner$1(i).records[n]={});g.handler=r}}function initGlobalListeners(n,t){if(inner$1(n).initialized)return;inner$1(n).initialized=!0,r("click",curry$1(doEnter,"click")),r("mousemove",curry$1(doEnter,"mousemove")),r("globalout",onLeave);function r(i,g){n.on(i,function($){var V=makeDispatchAction$1(t);each$1(inner$1(n).records,function(re){re&&g(re,$,V.dispatchAction)}),dispatchTooltipFinally(V.pendings,t)})}}function dispatchTooltipFinally(n,t){var r=n.showTip.length,i=n.hideTip.length,g;r?g=n.showTip[r-1]:i&&(g=n.hideTip[i-1]),g&&(g.dispatchAction=null,t.dispatchAction(g))}function onLeave(n,t,r){n.handler("leave",null,r)}function doEnter(n,t,r,i){t.handler(n,r,i)}function makeDispatchAction$1(n){var t={showTip:[],hideTip:[]},r=function(i){var g=t[i.type];g?g.push(i):(i.dispatchAction=r,n.dispatchAction(i))};return{dispatchAction:r,pendings:t}}function unregister(n,t){if(!env$1.node){var r=t.getZr(),i=(inner$1(r).records||{})[n];i&&(inner$1(r).records[n]=null)}}var AxisPointerView=function(n){__extends(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,g){var $=i.getComponent("tooltip"),V=r.get("triggerOn")||$&&$.get("triggerOn")||"mousemove|click";register("axisPointer",g,function(re,ie,ae){V!=="none"&&(re==="leave"||V.indexOf(re)>=0)&&ae({type:"updateAxisPointer",currTrigger:re,x:ie&&ie.offsetX,y:ie&&ie.offsetY})})},t.prototype.remove=function(r,i){unregister("axisPointer",i)},t.prototype.dispose=function(r,i){unregister("axisPointer",i)},t.type="axisPointer",t}(ComponentView$1);const AxisPointerView$1=AxisPointerView;function findPointFromSeries(n,t){var r=[],i=n.seriesIndex,g;if(i==null||!(g=t.getSeriesByIndex(i)))return{point:[]};var $=g.getData(),V=queryDataIndex($,n);if(V==null||V<0||isArray(V))return{point:[]};var re=$.getItemGraphicEl(V),ie=g.coordinateSystem;if(g.getTooltipPosition)r=g.getTooltipPosition(V)||[];else if(ie&&ie.dataToPoint)if(n.isStacked){var ae=ie.getBaseAxis(),oe=ie.getOtherAxis(ae),le=oe.dim,ue=ae.dim,de=le==="x"||le==="radius"?1:0,he=$.mapDimension(ue),pe=[];pe[de]=$.get(he,V),pe[1-de]=$.get($.getCalculationInfo("stackResultDimension"),V),r=ie.dataToPoint(pe)||[]}else r=ie.dataToPoint($.getValues(map$1(ie.dimensions,function(Ce){return $.mapDimension(Ce)}),V))||[];else if(re){var _e=re.getBoundingRect().clone();_e.applyTransform(re.transform),r=[_e.x+_e.width/2,_e.y+_e.height/2]}return{point:r,el:re}}var inner=makeInner();function axisTrigger(n,t,r){var i=n.currTrigger,g=[n.x,n.y],$=n,V=n.dispatchAction||bind$1(r.dispatchAction,r),re=t.getComponent("axisPointer").coordSysAxesInfo;if(re){illegalPoint(g)&&(g=findPointFromSeries({seriesIndex:$.seriesIndex,dataIndex:$.dataIndex},t).point);var ie=illegalPoint(g),ae=$.axesInfo,oe=re.axesInfo,le=i==="leave"||illegalPoint(g),ue={},de={},he={list:[],map:{}},pe={showPointer:curry$1(showPointer,de),showTooltip:curry$1(showTooltip,he)};each$4(re.coordSysMap,function(Ce,xe){var Ie=ie||Ce.containPoint(g);each$4(re.coordSysAxesInfo[xe],function(Ne,Oe){var $e=Ne.axis,Ve=findInputAxisInfo(ae,Ne);if(!le&&Ie&&(!ae||Ve)){var Ue=Ve&&Ve.value;Ue==null&&!ie&&(Ue=$e.pointToData(g)),Ue!=null&&processOnAxis(Ne,Ue,pe,!1,ue)}})});var _e={};return each$4(oe,function(Ce,xe){var Ie=Ce.linkGroup;Ie&&!de[xe]&&each$4(Ie.axesInfo,function(Ne,Oe){var $e=de[Oe];if(Ne!==Ce&&$e){var Ve=$e.value;Ie.mapper&&(Ve=Ce.axis.scale.parse(Ie.mapper(Ve,makeMapperParam(Ne),makeMapperParam(Ce)))),_e[Ce.key]=Ve}})}),each$4(_e,function(Ce,xe){processOnAxis(oe[xe],Ce,pe,!0,ue)}),updateModelActually(de,oe,ue),dispatchTooltipActually(he,g,n,V),dispatchHighDownActually(oe,V,r),ue}}function processOnAxis(n,t,r,i,g){var $=n.axis;if(!($.scale.isBlank()||!$.containData(t))){if(!n.involveSeries){r.showPointer(n,t);return}var V=buildPayloadsBySeries(t,n),re=V.payloadBatch,ie=V.snapToValue;re[0]&&g.seriesIndex==null&&extend(g,re[0]),!i&&n.snap&&$.containData(ie)&&ie!=null&&(t=ie),r.showPointer(n,t,re),r.showTooltip(n,V,ie)}}function buildPayloadsBySeries(n,t){var r=t.axis,i=r.dim,g=n,$=[],V=Number.MAX_VALUE,re=-1;return each$4(t.seriesModels,function(ie,ae){var oe=ie.getData().mapDimensionsAll(i),le,ue;if(ie.getAxisTooltipData){var de=ie.getAxisTooltipData(oe,n,r);ue=de.dataIndices,le=de.nestestValue}else{if(ue=ie.getData().indicesOfNearest(oe[0],n,r.type==="category"?.5:null),!ue.length)return;le=ie.getData().get(oe[0],ue[0])}if(!(le==null||!isFinite(le))){var he=n-le,pe=Math.abs(he);pe<=V&&((pe=0&&re<0)&&(V=pe,re=he,g=le,$.length=0),each$4(ue,function(_e){$.push({seriesIndex:ie.seriesIndex,dataIndexInside:_e,dataIndex:ie.getData().getRawIndex(_e)})}))}}),{payloadBatch:$,snapToValue:g}}function showPointer(n,t,r,i){n[t.key]={value:r,payloadBatch:i}}function showTooltip(n,t,r,i){var g=r.payloadBatch,$=t.axis,V=$.model,re=t.axisPointerModel;if(!(!t.triggerTooltip||!g.length)){var ie=t.coordSys.model,ae=makeKey(ie),oe=n.map[ae];oe||(oe=n.map[ae]={coordSysId:ie.id,coordSysIndex:ie.componentIndex,coordSysType:ie.type,coordSysMainType:ie.mainType,dataByAxis:[]},n.list.push(oe)),oe.dataByAxis.push({axisDim:$.dim,axisIndex:V.componentIndex,axisType:V.type,axisId:V.id,value:i,valueLabelOpt:{precision:re.get(["label","precision"]),formatter:re.get(["label","formatter"])},seriesDataIndices:g.slice()})}}function updateModelActually(n,t,r){var i=r.axesInfo=[];each$4(t,function(g,$){var V=g.axisPointerModel.option,re=n[$];re?(!g.useHandle&&(V.status="show"),V.value=re.value,V.seriesDataIndices=(re.payloadBatch||[]).slice()):!g.useHandle&&(V.status="hide"),V.status==="show"&&i.push({axisDim:g.axis.dim,axisIndex:g.axis.model.componentIndex,value:V.value})})}function dispatchTooltipActually(n,t,r,i){if(illegalPoint(t)||!n.list.length){i({type:"hideTip"});return}var g=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:g.dataIndexInside,dataIndex:g.dataIndex,seriesIndex:g.seriesIndex,dataByCoordSys:n.list})}function dispatchHighDownActually(n,t,r){var i=r.getZr(),g="axisPointerLastHighlights",$=inner(i)[g]||{},V=inner(i)[g]={};each$4(n,function(ae,oe){var le=ae.axisPointerModel.option;le.status==="show"&&ae.triggerEmphasis&&each$4(le.seriesDataIndices,function(ue){var de=ue.seriesIndex+" | "+ue.dataIndex;V[de]=ue})});var re=[],ie=[];each$4($,function(ae,oe){!V[oe]&&ie.push(ae)}),each$4(V,function(ae,oe){!$[oe]&&re.push(ae)}),ie.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:ie}),re.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:re})}function findInputAxisInfo(n,t){for(var r=0;r<(n||[]).length;r++){var i=n[r];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function makeMapperParam(n){var t=n.axis.model,r={},i=r.axisDim=n.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=t.componentIndex,r.axisName=r[i+"AxisName"]=t.name,r.axisId=r[i+"AxisId"]=t.id,r}function illegalPoint(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function install$5(n){AxisView$1.registerAxisPointerClass("CartesianAxisPointer",CartesianAxisPointer$1),n.registerComponentModel(AxisPointerModel$1),n.registerComponentView(AxisPointerView$1),n.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!isArray(r)&&(t.axisPointer.link=[r])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=collect(t,r)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},axisTrigger)}function makeBackground(n,t){var r=normalizeCssArray(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),n=new Rect$1({shape:{x:n.x-r[3],y:n.y-r[0],width:n.width+r[1]+r[3],height:n.height+r[0]+r[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),n}var TooltipModel=function(n){__extends(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ComponentModel$1);const TooltipModel$1=TooltipModel;function shouldTooltipConfine(n){var t=n.get("confine");return t!=null?!!t:n.get("renderMode")==="richText"}function testStyle(n){if(env$1.domSupported){for(var t=document.documentElement.style,r=0,i=n.length;r-1?(re+="top:50%",ie+="translateY(-50%) rotate("+(ae=$==="left"?-225:-45)+"deg)"):(re+="left:50%",ie+="translateX(-50%) rotate("+(ae=$==="top"?225:45)+"deg)");var oe=ae*Math.PI/180,le=V+g,ue=le*Math.abs(Math.cos(oe))+le*Math.abs(Math.sin(oe)),de=Math.round(((ue-Math.SQRT2*g)/2+Math.SQRT2*g-(ue-le)/2)*100)/100;re+=";"+$+":-"+de+"px";var he=t+" solid "+g+"px;",pe=["position:absolute;width:"+V+"px;height:"+V+"px;z-index:-1;",re+";"+ie+";","border-bottom:"+he,"border-right:"+he,"background-color:"+i+";"];return'
'}function assembleTransition(n,t){var r="cubic-bezier(0.23,1,0.32,1)",i=" "+n/2+"s "+r,g="opacity"+i+",visibility"+i;return t||(i=" "+n+"s "+r,g+=env$1.transformSupported?","+CSS_TRANSFORM_VENDOR+i:",left"+i+",top"+i),CSS_TRANSITION_VENDOR+":"+g}function assembleTransform(n,t,r){var i=n.toFixed(0)+"px",g=t.toFixed(0)+"px";if(!env$1.transformSupported)return r?"top:"+g+";left:"+i+";":[["top",g],["left",i]];var $=env$1.transform3dSupported,V="translate"+($?"3d":"")+"("+i+","+g+($?",0":"")+")";return r?"top:0;left:0;"+CSS_TRANSFORM_VENDOR+":"+V+";":[["top",0],["left",0],[TRANSFORM_VENDOR,V]]}function assembleFont(n){var t=[],r=n.get("fontSize"),i=n.getTextColor();i&&t.push("color:"+i),t.push("font:"+n.getFont());var g=retrieve2(n.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+g+"px");var $=n.get("textShadowColor"),V=n.get("textShadowBlur")||0,re=n.get("textShadowOffsetX")||0,ie=n.get("textShadowOffsetY")||0;return $&&V&&t.push("text-shadow:"+re+"px "+ie+"px "+V+"px "+$),each$4(["decoration","align"],function(ae){var oe=n.get(ae);oe&&t.push("text-"+ae+":"+oe)}),t.join(";")}function assembleCssText(n,t,r){var i=[],g=n.get("transitionDuration"),$=n.get("backgroundColor"),V=n.get("shadowBlur"),re=n.get("shadowColor"),ie=n.get("shadowOffsetX"),ae=n.get("shadowOffsetY"),oe=n.getModel("textStyle"),le=getPaddingFromTooltipModel(n,"html"),ue=ie+"px "+ae+"px "+V+"px "+re;return i.push("box-shadow:"+ue),t&&g&&i.push(assembleTransition(g,r)),$&&i.push("background-color:"+$),each$4(["width","color","radius"],function(de){var he="border-"+de,pe=toCamelCase(he),_e=n.get(pe);_e!=null&&i.push(he+":"+_e+(de==="color"?"":"px"))}),i.push(assembleFont(oe)),le!=null&&i.push("padding:"+normalizeCssArray(le).join("px ")+"px"),i.join(";")+";"}function makeStyleCoord$1(n,t,r,i,g){var $=t&&t.painter;if(r){var V=$&&$.getViewportRoot();V&&transformLocalCoord(n,V,r,i,g)}else{n[0]=i,n[1]=g;var re=$&&$.getViewportRootOffset();re&&(n[0]+=re.offsetLeft,n[1]+=re.offsetTop)}n[2]=n[0]/t.getWidth(),n[3]=n[1]/t.getHeight()}var TooltipHTMLContent=function(){function n(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,env$1.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var g=this._zr=t.getZr(),$=r.appendTo,V=$&&(isString($)?document.querySelector($):isDom($)?$:isFunction($)&&$(t.getDom()));makeStyleCoord$1(this._styleCoord,g,V,t.getWidth()/2,t.getHeight()/2),(V||t.getDom()).appendChild(i),this._api=t,this._container=V;var re=this;i.onmouseenter=function(){re._enterable&&(clearTimeout(re._hideTimeout),re._show=!0),re._inContent=!0},i.onmousemove=function(ie){if(ie=ie||window.event,!re._enterable){var ae=g.handler,oe=g.painter.getViewportRoot();normalizeEvent(oe,ie,!0),ae.dispatch("mousemove",ie)}},i.onmouseleave=function(){re._inContent=!1,re._enterable&&re._show&&re.hideLater(re._hideDelay)}}return n.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),i=getComputedStyle$2(r,"position"),g=r.style;g.position!=="absolute"&&i!=="absolute"&&(g.position="relative")}var $=t.get("alwaysShowContent");$&&this._moveIfResized(),this._alwaysShowContent=$,this.el.className=t.get("className")||""},n.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,g=i.style,$=this._styleCoord;i.innerHTML?g.cssText=gCssText+assembleCssText(t,!this._firstShow,this._longHide)+assembleTransform($[0],$[1],!0)+("border-color:"+convertToColorString(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):g.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(t,r,i,g,$){var V=this.el;if(t==null){V.innerHTML="";return}var re="";if(isString($)&&i.get("trigger")==="item"&&!shouldTooltipConfine(i)&&(re=assembleArrow(i,g,$)),isString(t))V.innerHTML=t+re;else if(t){V.innerHTML="",isArray(t)||(t=[t]);for(var ie=0;ie=0?this._tryShow($,V):g==="leave"&&this._hide(V))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,g=this._api,$=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&$!=="none"&&$!=="click"){var V=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!g.isDisposed()&&V.manuallyShowTip(r,i,g,{x:V._lastX,y:V._lastY,dataByCoordSys:V._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,i,g,$){if(!($.from===this.uid||env$1.node||!g.getDom())){var V=makeDispatchAction($,g);this._ticket="";var re=$.dataByCoordSys,ie=findComponentReference($,i,g);if(ie){var ae=ie.el.getBoundingRect().clone();ae.applyTransform(ie.el.transform),this._tryShow({offsetX:ae.x+ae.width/2,offsetY:ae.y+ae.height/2,target:ie.el,position:$.position,positionDefault:"bottom"},V)}else if($.tooltip&&$.x!=null&&$.y!=null){var oe=proxyRect;oe.x=$.x,oe.y=$.y,oe.update(),getECData(oe).tooltipConfig={name:null,option:$.tooltip},this._tryShow({offsetX:$.x,offsetY:$.y,target:oe},V)}else if(re)this._tryShow({offsetX:$.x,offsetY:$.y,position:$.position,dataByCoordSys:re,tooltipOption:$.tooltipOption},V);else if($.seriesIndex!=null){if(this._manuallyAxisShowTip(r,i,g,$))return;var le=findPointFromSeries($,i),ue=le.point[0],de=le.point[1];ue!=null&&de!=null&&this._tryShow({offsetX:ue,offsetY:de,target:le.el,position:$.position,positionDefault:"bottom"},V)}else $.x!=null&&$.y!=null&&(g.dispatchAction({type:"updateAxisPointer",x:$.x,y:$.y}),this._tryShow({offsetX:$.x,offsetY:$.y,position:$.position,target:g.getZr().findHover($.x,$.y).target},V))}},t.prototype.manuallyHideTip=function(r,i,g,$){var V=this._tooltipContent;this._tooltipModel&&V.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,$.from!==this.uid&&this._hide(makeDispatchAction($,g))},t.prototype._manuallyAxisShowTip=function(r,i,g,$){var V=$.seriesIndex,re=$.dataIndex,ie=i.getComponent("axisPointer").coordSysAxesInfo;if(!(V==null||re==null||ie==null)){var ae=i.getSeriesByIndex(V);if(ae){var oe=ae.getData(),le=buildTooltipModel([oe.getItemModel(re),ae,(ae.coordinateSystem||{}).model],this._tooltipModel);if(le.get("trigger")==="axis")return g.dispatchAction({type:"updateAxisPointer",seriesIndex:V,dataIndex:re,position:$.position}),!0}}},t.prototype._tryShow=function(r,i){var g=r.target,$=this._tooltipModel;if($){this._lastX=r.offsetX,this._lastY=r.offsetY;var V=r.dataByCoordSys;if(V&&V.length)this._showAxisTooltip(V,r);else if(g){var re=getECData(g);if(re.ssrType==="legend")return;this._lastDataByCoordSys=null;var ie,ae;findEventDispatcher(g,function(oe){if(getECData(oe).dataIndex!=null)return ie=oe,!0;if(getECData(oe).tooltipConfig!=null)return ae=oe,!0},!0),ie?this._showSeriesItemTooltip(r,ie,i):ae?this._showComponentItemTooltip(r,ae,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(r,i){var g=r.get("showDelay");i=bind$1(i,this),clearTimeout(this._showTimout),g>0?this._showTimout=setTimeout(i,g):i()},t.prototype._showAxisTooltip=function(r,i){var g=this._ecModel,$=this._tooltipModel,V=[i.offsetX,i.offsetY],re=buildTooltipModel([i.tooltipOption],$),ie=this._renderMode,ae=[],oe=createTooltipMarkup("section",{blocks:[],noHeader:!0}),le=[],ue=new TooltipMarkupStyleCreator;each$4(r,function(xe){each$4(xe.dataByAxis,function(Ie){var Ne=g.getComponent(Ie.axisDim+"Axis",Ie.axisIndex),Oe=Ie.value;if(!(!Ne||Oe==null)){var $e=getValueLabel(Oe,Ne.axis,g,Ie.seriesDataIndices,Ie.valueLabelOpt),Ve=createTooltipMarkup("section",{header:$e,noHeader:!trim($e),sortBlocks:!0,blocks:[]});oe.blocks.push(Ve),each$4(Ie.seriesDataIndices,function(Ue){var Fe=g.getSeriesByIndex(Ue.seriesIndex),ze=Ue.dataIndexInside,Pt=Fe.getDataParams(ze);if(!(Pt.dataIndex<0)){Pt.axisDim=Ie.axisDim,Pt.axisIndex=Ie.axisIndex,Pt.axisType=Ie.axisType,Pt.axisId=Ie.axisId,Pt.axisValue=getAxisRawValue(Ne.axis,{value:Oe}),Pt.axisValueLabel=$e,Pt.marker=ue.makeTooltipMarker("item",convertToColorString(Pt.color),ie);var qe=normalizeTooltipFormatResult(Fe.formatTooltip(ze,!0,null)),Et=qe.frag;if(Et){var kt=buildTooltipModel([Fe],$).get("valueFormatter");Ve.blocks.push(kt?extend({valueFormatter:kt},Et):Et)}qe.text&&le.push(qe.text),ae.push(Pt)}})}})}),oe.blocks.reverse(),le.reverse();var de=i.position,he=re.get("order"),pe=buildTooltipMarkup(oe,ue,ie,he,g.get("useUTC"),re.get("textStyle"));pe&&le.unshift(pe);var _e=ie==="richText"?` `:"
",Ce=le.join(_e);this._showOrMove(re,function(){this._updateContentNotChangedOnAxis(r,ae)?this._updatePosition(re,de,V[0],V[1],this._tooltipContent,ae):this._showTooltipContent(re,Ce,ae,Math.random()+"",V[0],V[1],de,null,ue)})},t.prototype._showSeriesItemTooltip=function(r,i,g){var $=this._ecModel,V=getECData(i),re=V.seriesIndex,ie=$.getSeriesByIndex(re),ae=V.dataModel||ie,oe=V.dataIndex,le=V.dataType,ue=ae.getData(le),de=this._renderMode,he=r.positionDefault,pe=buildTooltipModel([ue.getItemModel(oe),ae,ie&&(ie.coordinateSystem||{}).model],this._tooltipModel,he?{position:he}:null),_e=pe.get("trigger");if(!(_e!=null&&_e!=="item")){var Ce=ae.getDataParams(oe,le),xe=new TooltipMarkupStyleCreator;Ce.marker=xe.makeTooltipMarker("item",convertToColorString(Ce.color),de);var Ie=normalizeTooltipFormatResult(ae.formatTooltip(oe,!1,le)),Ne=pe.get("order"),Oe=pe.get("valueFormatter"),$e=Ie.frag,Ve=$e?buildTooltipMarkup(Oe?extend({valueFormatter:Oe},$e):$e,xe,de,Ne,$.get("useUTC"),pe.get("textStyle")):Ie.text,Ue="item_"+ae.name+"_"+oe;this._showOrMove(pe,function(){this._showTooltipContent(pe,Ve,Ce,Ue,r.offsetX,r.offsetY,r.position,r.target,xe)}),g({type:"showTip",dataIndexInside:oe,dataIndex:ue.getRawIndex(oe),seriesIndex:re,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,i,g){var $=this._renderMode==="html",V=getECData(i),re=V.tooltipConfig,ie=re.option||{},ae=ie.encodeHTMLContent;if(isString(ie)){var oe=ie;ie={content:oe,formatter:oe},ae=!0}ae&&$&&ie.content&&(ie=clone$2(ie),ie.content=encodeHTML(ie.content));var le=[ie],ue=this._ecModel.getComponent(V.componentMainType,V.componentIndex);ue&&le.push(ue),le.push({formatter:ie.content});var de=r.positionDefault,he=buildTooltipModel(le,this._tooltipModel,de?{position:de}:null),pe=he.get("content"),_e=Math.random()+"",Ce=new TooltipMarkupStyleCreator;this._showOrMove(he,function(){var xe=clone$2(he.get("formatterParams")||{});this._showTooltipContent(he,pe,xe,_e,r.offsetX,r.offsetY,r.position,i,Ce)}),g({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,i,g,$,V,re,ie,ae,oe){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var le=this._tooltipContent;le.setEnterable(r.get("enterable"));var ue=r.get("formatter");ie=ie||r.get("position");var de=i,he=this._getNearestPoint([V,re],g,r.get("trigger"),r.get("borderColor")),pe=he.color;if(ue)if(isString(ue)){var _e=r.ecModel.get("useUTC"),Ce=isArray(g)?g[0]:g,xe=Ce&&Ce.axisType&&Ce.axisType.indexOf("time")>=0;de=ue,xe&&(de=format(Ce.axisValue,de,_e)),de=formatTpl(de,g,!0)}else if(isFunction(ue)){var Ie=bind$1(function(Ne,Oe){Ne===this._ticket&&(le.setContent(Oe,oe,r,pe,ie),this._updatePosition(r,ie,V,re,le,g,ae))},this);this._ticket=$,de=ue(g,$,Ie)}else de=ue;le.setContent(de,oe,r,pe,ie),le.show(r,pe),this._updatePosition(r,ie,V,re,le,g,ae)}},t.prototype._getNearestPoint=function(r,i,g,$){if(g==="axis"||isArray(i))return{color:$||(this._renderMode==="html"?"#fff":"none")};if(!isArray(i))return{color:$||i.color||i.borderColor}},t.prototype._updatePosition=function(r,i,g,$,V,re,ie){var ae=this._api.getWidth(),oe=this._api.getHeight();i=i||r.get("position");var le=V.getSize(),ue=r.get("align"),de=r.get("verticalAlign"),he=ie&&ie.getBoundingRect().clone();if(ie&&he.applyTransform(ie.transform),isFunction(i)&&(i=i([g,$],re,V.el,he,{viewSize:[ae,oe],contentSize:le.slice()})),isArray(i))g=parsePercent(i[0],ae),$=parsePercent(i[1],oe);else if(isObject$2(i)){var pe=i;pe.width=le[0],pe.height=le[1];var _e=getLayoutRect(pe,{width:ae,height:oe});g=_e.x,$=_e.y,ue=null,de=null}else if(isString(i)&&ie){var Ce=calcTooltipPosition(i,he,le,r.get("borderWidth"));g=Ce[0],$=Ce[1]}else{var Ce=refixTooltipPosition(g,$,V,ae,oe,ue?null:20,de?null:20);g=Ce[0],$=Ce[1]}if(ue&&(g-=isCenterAlign(ue)?le[0]/2:ue==="right"?le[0]:0),de&&($-=isCenterAlign(de)?le[1]/2:de==="bottom"?le[1]:0),shouldTooltipConfine(r)){var Ce=confineTooltipPosition(g,$,V,ae,oe);g=Ce[0],$=Ce[1]}V.moveTo(g,$)},t.prototype._updateContentNotChangedOnAxis=function(r,i){var g=this._lastDataByCoordSys,$=this._cbParamsList,V=!!g&&g.length===r.length;return V&&each$4(g,function(re,ie){var ae=re.dataByAxis||[],oe=r[ie]||{},le=oe.dataByAxis||[];V=V&&ae.length===le.length,V&&each$4(ae,function(ue,de){var he=le[de]||{},pe=ue.seriesDataIndices||[],_e=he.seriesDataIndices||[];V=V&&ue.value===he.value&&ue.axisType===he.axisType&&ue.axisId===he.axisId&&pe.length===_e.length,V&&each$4(pe,function(Ce,xe){var Ie=_e[xe];V=V&&Ce.seriesIndex===Ie.seriesIndex&&Ce.dataIndex===Ie.dataIndex}),$&&each$4(ue.seriesDataIndices,function(Ce){var xe=Ce.seriesIndex,Ie=i[xe],Ne=$[xe];Ie&&Ne&&Ne.data!==Ie.data&&(V=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!V},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,i){env$1.node||!i.getDom()||(clear(this,"_updatePosition"),this._tooltipContent.dispose(),unregister("itemTooltip",i))},t.type="tooltip",t}(ComponentView$1);function buildTooltipModel(n,t,r){var i=t.ecModel,g;r?(g=new Model$1(r,i,i),g=new Model$1(t.option,g,i)):g=t;for(var $=n.length-1;$>=0;$--){var V=n[$];V&&(V instanceof Model$1&&(V=V.get("tooltip",!0)),isString(V)&&(V={formatter:V}),V&&(g=new Model$1(V,g,i)))}return g}function makeDispatchAction(n,t){return n.dispatchAction||bind$1(t.dispatchAction,t)}function refixTooltipPosition(n,t,r,i,g,$,V){var re=r.getSize(),ie=re[0],ae=re[1];return $!=null&&(n+ie+$+2>i?n-=ie+$:n+=$),V!=null&&(t+ae+V>g?t-=ae+V:t+=V),[n,t]}function confineTooltipPosition(n,t,r,i,g){var $=r.getSize(),V=$[0],re=$[1];return n=Math.min(n+V,i)-V,t=Math.min(t+re,g)-re,n=Math.max(n,0),t=Math.max(t,0),[n,t]}function calcTooltipPosition(n,t,r,i){var g=r[0],$=r[1],V=Math.ceil(Math.SQRT2*i)+8,re=0,ie=0,ae=t.width,oe=t.height;switch(n){case"inside":re=t.x+ae/2-g/2,ie=t.y+oe/2-$/2;break;case"top":re=t.x+ae/2-g/2,ie=t.y-$-V;break;case"bottom":re=t.x+ae/2-g/2,ie=t.y+oe+V;break;case"left":re=t.x-g-V,ie=t.y+oe/2-$/2;break;case"right":re=t.x+ae+V,ie=t.y+oe/2-$/2}return[re,ie]}function isCenterAlign(n){return n==="center"||n==="middle"}function findComponentReference(n,t,r){var i=preParseFinder(n).queryOptionMap,g=i.keys()[0];if(!(!g||g==="series")){var $=queryReferringComponents(t,g,i.get(g),{useDefault:!1,enableAll:!1,enableNone:!1}),V=$.models[0];if(V){var re=r.getViewOfComponentModel(V),ie;if(re.group.traverse(function(ae){var oe=getECData(ae).tooltipConfig;if(oe&&oe.name===n.name)return ie=ae,!0}),ie)return{componentMainType:g,componentIndex:V.componentIndex,el:ie}}}}const TooltipView$1=TooltipView;function install$4(n){use(install$5),n.registerComponentModel(TooltipModel$1),n.registerComponentView(TooltipView$1),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},noop),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},noop)}var TitleModel=function(n){__extends(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(ComponentModel$1),TitleView=function(n){__extends(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,g){if(this.group.removeAll(),!!r.get("show")){var $=this.group,V=r.getModel("textStyle"),re=r.getModel("subtextStyle"),ie=r.get("textAlign"),ae=retrieve2(r.get("textBaseline"),r.get("textVerticalAlign")),oe=new ZRText$1({style:createTextStyle(V,{text:r.get("text"),fill:V.getTextColor()},{disableBox:!0}),z2:10}),le=oe.getBoundingRect(),ue=r.get("subtext"),de=new ZRText$1({style:createTextStyle(re,{text:ue,fill:re.getTextColor(),y:le.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),he=r.get("link"),pe=r.get("sublink"),_e=r.get("triggerEvent",!0);oe.silent=!he&&!_e,de.silent=!pe&&!_e,he&&oe.on("click",function(){windowOpen(he,"_"+r.get("target"))}),pe&&de.on("click",function(){windowOpen(pe,"_"+r.get("subtarget"))}),getECData(oe).eventData=getECData(de).eventData=_e?{componentType:"title",componentIndex:r.componentIndex}:null,$.add(oe),ue&&$.add(de);var Ce=$.getBoundingRect(),xe=r.getBoxLayoutParams();xe.width=Ce.width,xe.height=Ce.height;var Ie=getLayoutRect(xe,{width:g.getWidth(),height:g.getHeight()},r.get("padding"));ie||(ie=r.get("left")||r.get("right"),ie==="middle"&&(ie="center"),ie==="right"?Ie.x+=Ie.width:ie==="center"&&(Ie.x+=Ie.width/2)),ae||(ae=r.get("top")||r.get("bottom"),ae==="center"&&(ae="middle"),ae==="bottom"?Ie.y+=Ie.height:ae==="middle"&&(Ie.y+=Ie.height/2),ae=ae||"top"),$.x=Ie.x,$.y=Ie.y,$.markRedraw();var Ne={align:ie,verticalAlign:ae};oe.setStyle(Ne),de.setStyle(Ne),Ce=$.getBoundingRect();var Oe=Ie.margin,$e=r.getItemStyle(["color","opacity"]);$e.fill=r.get("backgroundColor");var Ve=new Rect$1({shape:{x:Ce.x-Oe[3],y:Ce.y-Oe[0],width:Ce.width+Oe[1]+Oe[3],height:Ce.height+Oe[0]+Oe[2],r:r.get("borderRadius")},style:$e,subPixelOptimize:!0,silent:!0});$.add(Ve)}},t.type="title",t}(ComponentView$1);function install$3(n){n.registerComponentModel(TitleModel),n.registerComponentView(TitleView)}var getDefaultSelectorOptions=function(n,t){if(t==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},LegendModel=function(n){__extends(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,i,g){this.mergeDefaultAndTheme(r,g),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,i){n.prototype.mergeOption.call(this,r,i),this._updateSelector(r)},t.prototype._updateSelector=function(r){var i=r.selector,g=this.ecModel;i===!0&&(i=r.selector=["all","inverse"]),isArray(i)&&each$4(i,function($,V){isString($)&&($={type:$}),i[V]=merge($,getDefaultSelectorOptions(g,$.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var i=!1,g=0;g=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(ComponentModel$1);const LegendModel$1=LegendModel;var curry=curry$1,each=each$4,Group$1=Group$3,LegendView=function(n){__extends(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Group$1),this.group.add(this._selectorGroup=new Group$1),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,i,g){var $=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var V=r.get("align"),re=r.get("orient");(!V||V==="auto")&&(V=r.get("left")==="right"&&re==="vertical"?"right":"left");var ie=r.get("selector",!0),ae=r.get("selectorPosition",!0);ie&&(!ae||ae==="auto")&&(ae=re==="horizontal"?"end":"start"),this.renderInner(V,r,i,g,ie,re,ae);var oe=r.getBoxLayoutParams(),le={width:g.getWidth(),height:g.getHeight()},ue=r.get("padding"),de=getLayoutRect(oe,le,ue),he=this.layoutInner(r,V,de,$,ie,ae),pe=getLayoutRect(defaults({width:he.width,height:he.height},oe),le,ue);this.group.x=pe.x-he.x,this.group.y=pe.y-he.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(he,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,i,g,$,V,re,ie){var ae=this.getContentGroup(),oe=createHashMap(),le=i.get("selectedMode"),ue=[];g.eachRawSeries(function(de){!de.get("legendHoverLink")&&ue.push(de.id)}),each(i.getData(),function(de,he){var pe=de.get("name");if(!this.newlineDisabled&&(pe===""||pe===` `)){var _e=new Group$1;_e.newline=!0,ae.add(_e);return}var Ce=g.getSeriesByName(pe)[0];if(!oe.get(pe))if(Ce){var xe=Ce.getData(),Ie=xe.getVisual("legendLineStyle")||{},Ne=xe.getVisual("legendIcon"),Oe=xe.getVisual("style"),$e=this._createItem(Ce,pe,he,de,i,r,Ie,Oe,Ne,le,$);$e.on("click",curry(dispatchSelectAction,pe,null,$,ue)).on("mouseover",curry(dispatchHighlightAction,Ce.name,null,$,ue)).on("mouseout",curry(dispatchDownplayAction,Ce.name,null,$,ue)),g.ssr&&$e.eachChild(function(Ve){var Ue=getECData(Ve);Ue.seriesIndex=Ce.seriesIndex,Ue.dataIndex=he,Ue.ssrType="legend"}),oe.set(pe,!0)}else g.eachRawSeries(function(Ve){if(!oe.get(pe)&&Ve.legendVisualProvider){var Ue=Ve.legendVisualProvider;if(!Ue.containName(pe))return;var Fe=Ue.indexOfName(pe),ze=Ue.getItemVisual(Fe,"style"),Pt=Ue.getItemVisual(Fe,"legendIcon"),qe=parse(ze.fill);qe&&qe[3]===0&&(qe[3]=.2,ze=extend(extend({},ze),{fill:stringify(qe,"rgba")}));var Et=this._createItem(Ve,pe,he,de,i,r,{},ze,Pt,le,$);Et.on("click",curry(dispatchSelectAction,null,pe,$,ue)).on("mouseover",curry(dispatchHighlightAction,null,pe,$,ue)).on("mouseout",curry(dispatchDownplayAction,null,pe,$,ue)),g.ssr&&Et.eachChild(function(kt){var At=getECData(kt);At.seriesIndex=Ve.seriesIndex,At.dataIndex=he,At.ssrType="legend"}),oe.set(pe,!0)}},this)},this),V&&this._createSelector(V,i,$,re,ie)},t.prototype._createSelector=function(r,i,g,$,V){var re=this.getSelectorGroup();each(r,function(ae){var oe=ae.type,le=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){g.dispatchAction({type:oe==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});re.add(le);var ue=i.getModel("selectorLabel"),de=i.getModel(["emphasis","selectorLabel"]);setLabelStyle(le,{normal:ue,emphasis:de},{defaultText:ae.title}),enableHoverEmphasis(le)})},t.prototype._createItem=function(r,i,g,$,V,re,ie,ae,oe,le,ue){var de=r.visualDrawType,he=V.get("itemWidth"),pe=V.get("itemHeight"),_e=V.isSelected(i),Ce=$.get("symbolRotate"),xe=$.get("symbolKeepAspect"),Ie=$.get("icon");oe=Ie||oe||"roundRect";var Ne=getLegendStyle(oe,$,ie,ae,de,_e,ue),Oe=new Group$1,$e=$.getModel("textStyle");if(isFunction(r.getLegendIcon)&&(!Ie||Ie==="inherit"))Oe.add(r.getLegendIcon({itemWidth:he,itemHeight:pe,icon:oe,iconRotate:Ce,itemStyle:Ne.itemStyle,lineStyle:Ne.lineStyle,symbolKeepAspect:xe}));else{var Ve=Ie==="inherit"&&r.getData().getVisual("symbol")?Ce==="inherit"?r.getData().getVisual("symbolRotate"):Ce:0;Oe.add(getDefaultLegendIcon({itemWidth:he,itemHeight:pe,icon:oe,iconRotate:Ve,itemStyle:Ne.itemStyle,lineStyle:Ne.lineStyle,symbolKeepAspect:xe}))}var Ue=re==="left"?he+5:-5,Fe=re,ze=V.get("formatter"),Pt=i;isString(ze)&&ze?Pt=ze.replace("{name}",i??""):isFunction(ze)&&(Pt=ze(i));var qe=_e?$e.getTextColor():$.get("inactiveColor");Oe.add(new ZRText$1({style:createTextStyle($e,{text:Pt,x:Ue,y:pe/2,fill:qe,align:Fe,verticalAlign:"middle"},{inheritColor:qe})}));var Et=new Rect$1({shape:Oe.getBoundingRect(),style:{fill:"transparent"}}),kt=$.getModel("tooltip");return kt.get("show")&&setTooltipConfig({el:Et,componentModel:V,itemName:i,itemTooltipOption:kt.option}),Oe.add(Et),Oe.eachChild(function(At){At.silent=!0}),Et.silent=!le,this.getContentGroup().add(Oe),enableHoverEmphasis(Oe),Oe.__legendDataIndex=g,Oe},t.prototype.layoutInner=function(r,i,g,$,V,re){var ie=this.getContentGroup(),ae=this.getSelectorGroup();box(r.get("orient"),ie,r.get("itemGap"),g.width,g.height);var oe=ie.getBoundingRect(),le=[-oe.x,-oe.y];if(ae.markRedraw(),ie.markRedraw(),V){box("horizontal",ae,r.get("selectorItemGap",!0));var ue=ae.getBoundingRect(),de=[-ue.x,-ue.y],he=r.get("selectorButtonGap",!0),pe=r.getOrient().index,_e=pe===0?"width":"height",Ce=pe===0?"height":"width",xe=pe===0?"y":"x";re==="end"?de[pe]+=oe[_e]+he:le[pe]+=ue[_e]+he,de[1-pe]+=oe[Ce]/2-ue[Ce]/2,ae.x=de[0],ae.y=de[1],ie.x=le[0],ie.y=le[1];var Ie={x:0,y:0};return Ie[_e]=oe[_e]+he+ue[_e],Ie[Ce]=Math.max(oe[Ce],ue[Ce]),Ie[xe]=Math.min(0,ue[xe]+de[1-pe]),Ie}else return ie.x=le[0],ie.y=le[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ComponentView$1);function getLegendStyle(n,t,r,i,g,$,V){function re(_e,Ce){_e.lineWidth==="auto"&&(_e.lineWidth=Ce.lineWidth>0?2:0),each(_e,function(xe,Ie){_e[Ie]==="inherit"&&(_e[Ie]=Ce[Ie])})}var ie=t.getModel("itemStyle"),ae=ie.getItemStyle(),oe=n.lastIndexOf("empty",0)===0?"fill":"stroke",le=ie.getShallow("decal");ae.decal=!le||le==="inherit"?i.decal:createOrUpdatePatternFromDecal(le,V),ae.fill==="inherit"&&(ae.fill=i[g]),ae.stroke==="inherit"&&(ae.stroke=i[oe]),ae.opacity==="inherit"&&(ae.opacity=(g==="fill"?i:r).opacity),re(ae,i);var ue=t.getModel("lineStyle"),de=ue.getLineStyle();if(re(de,r),ae.fill==="auto"&&(ae.fill=i.fill),ae.stroke==="auto"&&(ae.stroke=i.fill),de.stroke==="auto"&&(de.stroke=i.fill),!$){var he=t.get("inactiveBorderWidth"),pe=ae[oe];ae.lineWidth=he==="auto"?i.lineWidth>0&&pe?2:0:ae.lineWidth,ae.fill=t.get("inactiveColor"),ae.stroke=t.get("inactiveBorderColor"),de.stroke=ue.get("inactiveColor"),de.lineWidth=ue.get("inactiveWidth")}return{itemStyle:ae,lineStyle:de}}function getDefaultLegendIcon(n){var t=n.icon||"roundRect",r=createSymbol(t,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return r.setStyle(n.itemStyle),r.rotation=(n.iconRotate||0)*Math.PI/180,r.setOrigin([n.itemWidth/2,n.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function dispatchSelectAction(n,t,r,i){dispatchDownplayAction(n,t,r,i),r.dispatchAction({type:"legendToggleSelect",name:n??t}),dispatchHighlightAction(n,t,r,i)}function isUseHoverLayer(n){for(var t=n.getZr().storage.getDisplayList(),r,i=0,g=t.length;ig[V],_e=[-de.x,-de.y];i||(_e[$]=oe[ae]);var Ce=[0,0],xe=[-he.x,-he.y],Ie=retrieve2(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(pe){var Ne=r.get("pageButtonPosition",!0);Ne==="end"?xe[$]+=g[V]-he[V]:Ce[$]+=he[V]+Ie}xe[1-$]+=de[re]/2-he[re]/2,oe.setPosition(_e),le.setPosition(Ce),ue.setPosition(xe);var Oe={x:0,y:0};if(Oe[V]=pe?g[V]:de[V],Oe[re]=Math.max(de[re],he[re]),Oe[ie]=Math.min(0,he[ie]+xe[1-$]),le.__rectSize=g[V],pe){var $e={x:0,y:0};$e[V]=Math.max(g[V]-he[V]-Ie,0),$e[re]=Oe[re],le.setClipPath(new Rect$1({shape:$e})),le.__rectSize=$e[V]}else ue.eachChild(function(Ue){Ue.attr({invisible:!0,silent:!0})});var Ve=this._getPageInfo(r);return Ve.pageIndex!=null&&updateProps$1(oe,{x:Ve.contentPosition[0],y:Ve.contentPosition[1]},pe?r:null),this._updatePageInfoView(r,Ve),Oe},t.prototype._pageGo=function(r,i,g){var $=this._getPageInfo(i)[r];$!=null&&g.dispatchAction({type:"legendScroll",scrollDataIndex:$,legendId:i.id})},t.prototype._updatePageInfoView=function(r,i){var g=this._controllerGroup;each$4(["pagePrev","pageNext"],function(oe){var le=oe+"DataIndex",ue=i[le]!=null,de=g.childOfName(oe);de&&(de.setStyle("fill",ue?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),de.cursor=ue?"pointer":"default")});var $=g.childOfName("pageText"),V=r.get("pageFormatter"),re=i.pageIndex,ie=re!=null?re+1:0,ae=i.pageCount;$&&V&&$.setStyle("text",isString(V)?V.replace("{current}",ie==null?"":ie+"").replace("{total}",ae==null?"":ae+""):V({current:ie,total:ae}))},t.prototype._getPageInfo=function(r){var i=r.get("scrollDataIndex",!0),g=this.getContentGroup(),$=this._containerGroup.__rectSize,V=r.getOrient().index,re=WH[V],ie=XY[V],ae=this._findTargetItemIndex(i),oe=g.children(),le=oe[ae],ue=oe.length,de=ue?1:0,he={contentPosition:[g.x,g.y],pageCount:de,pageIndex:de-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!le)return he;var pe=Ne(le);he.contentPosition[V]=-pe.s;for(var _e=ae+1,Ce=pe,xe=pe,Ie=null;_e<=ue;++_e)Ie=Ne(oe[_e]),(!Ie&&xe.e>Ce.s+$||Ie&&!Oe(Ie,Ce.s))&&(xe.i>Ce.i?Ce=xe:Ce=Ie,Ce&&(he.pageNextDataIndex==null&&(he.pageNextDataIndex=Ce.i),++he.pageCount)),xe=Ie;for(var _e=ae-1,Ce=pe,xe=pe,Ie=null;_e>=-1;--_e)Ie=Ne(oe[_e]),(!Ie||!Oe(xe,Ie.s))&&Ce.i=Ve&&$e.s<=Ve+$}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var i,g=this.getContentGroup(),$;return g.eachChild(function(V,re){var ie=V.__legendDataIndex;$==null&&ie!=null&&($=re),ie===r&&(i=re)}),i??$},t.type="legend.scroll",t}(LegendView$1);const ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction(n){n.registerAction("legendScroll","legendscroll",function(t,r){var i=t.scrollDataIndex;i!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(g){g.setScrollDataIndex(i)})})}function install$1(n){use(install$2),n.registerComponentModel(ScrollableLegendModel$1),n.registerComponentView(ScrollableLegendView$1),installScrollableLegendAction(n)}function install(n){use(install$2),use(install$1)}var raf=null;function requestAnimationFrame$1(n){return raf||(raf=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),raf(n)}var caf=null;function cancelAnimationFrame$1(n){caf||(caf=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),caf(n)}function createStyles(n){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),(document.querySelector("head")||document.body).appendChild(t),t}function createElement(n,t){t===void 0&&(t={});var r=document.createElement(n);return Object.keys(t).forEach(function(i){r[i]=t[i]}),r}function getComputedStyle$1(n,t,r){var i=window.getComputedStyle(n,r||null)||{display:"none"};return i[t]}function getRenderInfo(n){if(!document.documentElement.contains(n))return{detached:!0,rendered:!1};for(var t=n;t!==document;){if(getComputedStyle$1(t,"display")==="none")return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var css_248z='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',total=0,style=null;function addListener(n,t){n.__resize_mutation_handler__||(n.__resize_mutation_handler__=handleMutation.bind(n));var r=n.__resize_listeners__;if(!r){if(n.__resize_listeners__=[],window.ResizeObserver){var i=n.offsetWidth,g=n.offsetHeight,$=new ResizeObserver(function(){!n.__resize_observer_triggered__&&(n.__resize_observer_triggered__=!0,n.offsetWidth===i&&n.offsetHeight===g)||runCallbacks(n)}),V=getRenderInfo(n),re=V.detached,ie=V.rendered;n.__resize_observer_triggered__=re===!1&&ie===!1,n.__resize_observer__=$,$.observe(n)}else if(n.attachEvent&&n.addEventListener)n.__resize_legacy_resize_handler__=function(){runCallbacks(n)},n.attachEvent("onresize",n.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",n.__resize_mutation_handler__);else if(total||(style=createStyles(css_248z)),initTriggers(n),n.__resize_rendered__=getRenderInfo(n).rendered,window.MutationObserver){var ae=new MutationObserver(n.__resize_mutation_handler__);ae.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),n.__resize_mutation_observer__=ae}}n.__resize_listeners__.push(t),total++}function removeListener(n,t){var r=n.__resize_listeners__;if(r){if(t&&r.splice(r.indexOf(t),1),!r.length||!t){if(n.detachEvent&&n.removeEventListener){n.detachEvent("onresize",n.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",n.__resize_mutation_handler__);return}n.__resize_observer__?(n.__resize_observer__.unobserve(n),n.__resize_observer__.disconnect(),n.__resize_observer__=null):(n.__resize_mutation_observer__&&(n.__resize_mutation_observer__.disconnect(),n.__resize_mutation_observer__=null),n.removeEventListener("scroll",handleScroll),n.removeChild(n.__resize_triggers__.triggers),n.__resize_triggers__=null),n.__resize_listeners__=null}!--total&&style&&style.parentNode.removeChild(style)}}function getUpdatedSize(n){var t=n.__resize_last__,r=t.width,i=t.height,g=n.offsetWidth,$=n.offsetHeight;return g!==r||$!==i?{width:g,height:$}:null}function handleMutation(){var n=getRenderInfo(this),t=n.rendered,r=n.detached;t!==this.__resize_rendered__&&(!r&&this.__resize_triggers__&&(resetTriggers(this),this.addEventListener("scroll",handleScroll,!0)),this.__resize_rendered__=t,runCallbacks(this))}function handleScroll(){var n=this;resetTriggers(this),this.__resize_raf__&&cancelAnimationFrame$1(this.__resize_raf__),this.__resize_raf__=requestAnimationFrame$1(function(){var t=getUpdatedSize(n);t&&(n.__resize_last__=t,runCallbacks(n))})}function runCallbacks(n){!n||!n.__resize_listeners__||n.__resize_listeners__.forEach(function(t){t.call(n,n)})}function initTriggers(n){var t=getComputedStyle$1(n,"position");(!t||t==="static")&&(n.style.position="relative"),n.__resize_old_position__=t,n.__resize_last__={};var r=createElement("div",{className:"resize-triggers"}),i=createElement("div",{className:"resize-expand-trigger"}),g=createElement("div"),$=createElement("div",{className:"resize-contract-trigger"});i.appendChild(g),r.appendChild(i),r.appendChild($),n.appendChild(r),n.__resize_triggers__={triggers:r,expand:i,expandChild:g,contract:$},resetTriggers(n),n.addEventListener("scroll",handleScroll,!0),n.__resize_last__={width:n.offsetWidth,height:n.offsetHeight}}function resetTriggers(n){var t=n.__resize_triggers__,r=t.expand,i=t.expandChild,g=t.contract,$=g.scrollWidth,V=g.scrollHeight,re=r.offsetWidth,ie=r.offsetHeight,ae=r.scrollWidth,oe=r.scrollHeight;g.scrollLeft=$,g.scrollTop=V,i.style.width=re+1+"px",i.style.height=ie+1+"px",r.scrollLeft=ae,r.scrollTop=oe}var b=function(){return b=Object.assign||function(n){for(var t,r=1,i=arguments.length;r"u"||typeof customElements>"u")return z=!1;try{new Function("tag",`class EChartsElement extends HTMLElement { __dispose = null; disconnectedCallback() { if (this.__dispose) { this.__dispose(); this.__dispose = null; } } } if (customElements.get(tag) == null) { customElements.define(tag, EChartsElement); } `)(C)}catch{return z=!1}return z=!0}(),D="ecTheme",k="ecInitOptions",B="ecUpdateOptions",P=/(^&?~?!?)native:/,H=defineComponent({name:"echarts",props:b(b({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},_),L),emits:{},inheritAttrs:!1,setup:function(n,t){var r=t.attrs,i=shallowRef(),g=shallowRef(),$=shallowRef(),V=shallowRef(),re=inject(D,null),ie=inject(k,null),ae=inject(B,null),oe=toRefs(n),le=oe.autoresize,ue=oe.manualUpdate,de=oe.loading,he=oe.loadingOptions,pe=computed(function(){return V.value||n.option||null}),_e=computed(function(){return n.theme||w(re,{})}),Ce=computed(function(){return n.initOptions||w(ie,{})}),xe=computed(function(){return n.updateOptions||w(ae,{})}),Ie=computed(function(){return function(Pt){var qe={};for(var Et in Pt)j(Et)||(qe[Et]=Pt[Et]);return qe}(r)}),Ne={},Oe=getCurrentInstance().proxy.$listeners,$e={};function Ve(Pt){if(g.value){var qe=$.value=init(g.value,_e.value,Ce.value);n.group&&(qe.group=n.group),Object.keys($e).forEach(function(kt){var At=$e[kt];if(At){var Dt=kt.toLowerCase();Dt.charAt(0)==="~"&&(Dt=Dt.substring(1),At.__once__=!0);var Lt=qe;if(Dt.indexOf("zr:")===0&&(Lt=qe.getZr(),Dt=Dt.substring(3)),At.__once__){delete At.__once__;var jt=At;At=function(){for(var hn=[],vn=0;vn[]}},setup(n){use([install$7,install$6,install$3,install$4,install]);const t=n,r=reactive({title:{text:t.title,left:"center"},tooltip:{trigger:"item",formatter:"{a}
{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left"},series:[{name:t.seriesName,type:"pie",radius:"55%",center:["50%","60%"],data:t.seriesData,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]});return watch(t,i=>{r.title.text=i.title,r.series[0].name=i.seriesName,r.series[0].data=i.seriesData}),(i,g)=>(openBlock(),createBlock(unref(H),{class:"chart",option:r,autoresize:""},null,8,["option"]))}}),index_vue_vue_type_style_index_0_scoped_31064b5b_lang="",PieCharts=_export_sfc$1(_sfc_main,[["__scopeId","data-v-31064b5b"]]);function vueGlobalFunction(n){console.log("全局函数被调用:",n);debugger;const t=window.globalData;t instanceof Map?t.set(n.id.toString(),n):t[n.id.toString()]=n;try{const r=useNodeByModelsStore();if(r.nodeMap.has(n.id.toString())){const i=r.nodeMap.get(n.id.toString());i==null||i.forEach(g=>{console.log("节点ID:",g),emitter.emit(g,n.id)})}}catch{console.warn("无法访问 Pinia store")}}function anotherGlobalFunction(n){return n.toUpperCase()}const globalData=new Map,globalNodeIdForModeId=new Map;typeof window<"u"&&(window.vueGlobalFunction=vueGlobalFunction,window.anotherGlobalFunction=anotherGlobalFunction,window.globalData=globalData,window.globalNodeIdForModeId=globalNodeIdForModeId);async function getData(){try{const n=await modelApi.node_nrt_get();if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const t=await n.json();if(t&&typeof t=="object"){const r=window.globalData;r instanceof Map?(r.clear(),Object.entries(t).forEach(([i,g])=>{r.set(i,g)})):window.globalData=t}console.log("全局数据已更新:",t)}catch(n){console.error("获取数据失败:",n)}}typeof window<"u"&&getData();const index="",cssVars="",app=createApp(_sfc_main$4),pinia=createPinia();for(const[n,t]of Object.entries(ElementPlusIconsVue))app.component(n,t);app.use(installer,{});app.use(router);app.use(pinia);app.use(installer);app.component("my-input",_sfc_main$2);app.component("my-button",MyButton);app.component("custom-demo",_sfc_main$1);app.component("pie-charts",PieCharts);app.mount("#app");export{onUnmounted as $,renderList as A,ElScrollbar as B,ElCheckbox as C,ElTree as D,ElIcon as E,Fragment as F,ElUpload as G,ElDialog as H,ElMessage as I,blobToBase64 as J,ElCollapseItem as K,ElTooltip as L,ElText as M,ElImage as N,globalStore as O,normalizeStyle$1 as P,useCssVars as Q,getRealityXY as R,withDirectives as S,vShow as T,configStore as U,positionArrarToPath as V,alignToGrid as W,randomString as X,objectDeepClone as Y,onMounted as Z,_export_sfc$1 as _,createElementBlock as a,getItemAttr as a$,withModifiers as a0,cacheStore as a1,contextMenuStore as a2,leftAsideStore as a3,createGroupInfo as a4,cancelGroup as a5,calculateGuideY as a6,calculateGuideX as a7,useUpdateSysLine as a8,handleAlign as a9,useImgStore as aA,useSlots as aB,emitter as aC,createSlots as aD,renderSlot as aE,ElHeader as aF,ElContainer as aG,ElAside as aH,ElMain as aI,ElDrawer as aJ,ElTreeV2 as aK,constantRoutes as aL,commonjsGlobal as aM,getDefaultExportFromCjs as aN,useRouter as aO,useRoute as aP,resolveDynamicComponent as aQ,location_default as aR,stairRouteNames as aS,router as aT,watch as aU,fold_default as aV,expand_default as aW,RouterView as aX,ElMessageBox as aY,previewCompareVal as aZ,setItemAttr as a_,getRectCoordinate as aa,getRectCenterCoordinate as ab,rotatePoint as ac,ElForm as ad,ElFormItem as ae,ElSelect as af,ElOptionGroup as ag,ElInputNumber as ah,ElColorPicker as ai,ElSwitch as aj,ElTabPane as ak,ElTabs as al,ElOption as am,h$1 as an,markRaw as ao,ace$1 as ap,capitalize$1 as aq,index$1 as ar,resolveComponent as as,resolveDirective as at,BASE_URL as au,isRef as av,modelApi as aw,formatTimestamp as ax,formatFilePath as ay,search_default as az,createBaseVNode as b,_sfc_main$31 as b0,svgToImgSrc as b1,symbolGenSvg as b2,genDomPropstr as b3,getCenterXY as b4,renderToString as b5,prosToVBind as b6,ElCard as b7,getCurrentInstance as b8,ElPopover as b9,toHandlers as ba,eventToVOn as bb,nextTick as bc,computed as c,defineComponent as d,useFullscreen as e,useToggle as f,createVNode$1 as g,unref as h,createBlock as i,ElButton as j,ElButtonGroup$1 as k,ElDivider as l,mergeProps as m,normalizeClass as n,openBlock as o,createCommentVNode as p,createTextVNode as q,ref as r,ElTag as s,toDisplayString as t,useDark as u,useLocalStorage as v,withCtx as w,reactive as x,ElInput as y,ElCollapse as z};