HJGL_DS/HJGL_DS/FineUIPro.Web/HJGL/DataIn/assets/index-lcdZf-3q.js

76 lines
1.5 MiB
Raw Blame History

This file contains invisible Unicode characters

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

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

var EI=Object.defineProperty;var A_=e=>{throw TypeError(e)};var kI=(e,t,n)=>t in e?EI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Vt=(e,t,n)=>kI(e,typeof t!="symbol"?t+"":t,n),i4=(e,t,n)=>t.has(e)||A_("Cannot "+n);var y=(e,t,n)=>(i4(e,t,"read from private field"),n?n.call(e):t.get(e)),ne=(e,t,n)=>t.has(e)?A_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),U=(e,t,n,s)=>(i4(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),oe=(e,t,n)=>(i4(e,t,"access private method"),n);var wa=(e,t,n,s)=>({set _(a){U(e,t,a,n)},get _(){return y(e,t,s)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();/**
* @vue/shared v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function U6(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const $n={},Tf=[],Yt=()=>{},Wx=()=>!1,nb=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),q6=e=>e.startsWith("onUpdate:"),ms=Object.assign,G6=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},AI=Object.prototype.hasOwnProperty,Wt=(e,t)=>AI.call(e,t),ke=Array.isArray,Mf=e=>Om(e)==="[object Map]",sb=e=>Om(e)==="[object Set]",Vc=e=>Om(e)==="[object Date]",nt=e=>typeof e=="function",Xe=e=>typeof e=="string",yr=e=>typeof e=="symbol",ft=e=>e!==null&&typeof e=="object",Ld=e=>(ft(e)||nt(e))&&nt(e.then)&&nt(e.catch),jx=Object.prototype.toString,Om=e=>jx.call(e),TI=e=>Om(e).slice(8,-1),Tp=e=>Om(e)==="[object Object]",ab=e=>Xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,up=U6(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ob=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},MI=/-\w/g,Oa=ob(e=>e.replace(MI,t=>t.slice(1).toUpperCase())),PI=/\B([A-Z])/g,Ll=ob(e=>e.replace(PI,"-$1").toLowerCase()),Nm=ob(e=>e.charAt(0).toUpperCase()+e.slice(1)),dp=ob(e=>e?`on${Nm(e)}`:""),Dc=(e,t)=>!Object.is(e,t),j2=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Kx=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Y6=e=>{const t=parseFloat(e);return isNaN(t)?e:t},RI=e=>{const t=Xe(e)?Number(e):NaN;return isNaN(t)?e:t};let T_;const rb=()=>T_||(T_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function tt(e){if(ke(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],a=Xe(s)?NI(s):tt(s);if(a)for(const o in a)t[o]=a[o]}return t}else if(Xe(e)||ft(e))return e}const II=/;(?![^(]*\))/g,LI=/:([^]+)/,OI=/\/\*[^]*?\*\//g;function NI(e){const t={};return e.replace(OI,"").split(II).forEach(n=>{if(n){const s=n.split(LI);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function D(e){let t="";if(Xe(e))t=e;else if(ke(e))for(let n=0;n<e.length;n++){const s=D(e[n]);s&&(t+=s+" ")}else if(ft(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function vl(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Xe(t)&&(e.class=D(t)),n&&(e.style=tt(n)),e}const $I="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",DI=U6($I);function Ux(e){return!!e||e===""}function FI(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Od(e[s],t[s]);return n}function Od(e,t){if(e===t)return!0;let n=Vc(e),s=Vc(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=yr(e),s=yr(t),n||s)return e===t;if(n=ke(e),s=ke(t),n||s)return n&&s?FI(e,t):!1;if(n=ft(e),s=ft(t),n||s){if(!n||!s)return!1;const a=Object.keys(e).length,o=Object.keys(t).length;if(a!==o)return!1;for(const r in e){const i=e.hasOwnProperty(r),l=t.hasOwnProperty(r);if(i&&!l||!i&&l||!Od(e[r],t[r]))return!1}}return String(e)===String(t)}function qx(e,t){return e.findIndex(n=>Od(n,t))}const Gx=e=>!!(e&&e.__v_isRef===!0),ge=e=>Xe(e)?e:e==null?"":ke(e)||ft(e)&&(e.toString===jx||!nt(e.toString))?Gx(e)?ge(e.value):JSON.stringify(e,Yx,2):String(e),Yx=(e,t)=>Gx(t)?Yx(e,t.value):Mf(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,a],o)=>(n[l4(s,o)+" =>"]=a,n),{})}:sb(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>l4(n))}:yr(t)?l4(t):ft(t)&&!ke(t)&&!Tp(t)?String(t):t,l4=(e,t="")=>{var n;return yr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let ua;class Xx{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ua,!t&&ua&&(this.index=(ua.scopes||(ua.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ua;try{return ua=this,t()}finally{ua=n}}}on(){++this._on===1&&(this.prevScope=ua,ua=this)}off(){this._on>0&&--this._on===0&&(ua=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function BI(e){return new Xx(e)}function Jx(){return ua}function Zx(e,t=!1){ua&&ua.cleanups.push(e)}let zn;const c4=new WeakSet;class Qx{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ua&&ua.active&&ua.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,c4.has(this)&&(c4.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||t9(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,M_(this),n9(this);const t=zn,n=vr;zn=this,vr=!0;try{return this.fn()}finally{s9(this),zn=t,vr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Z6(t);this.deps=this.depsTail=void 0,M_(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?c4.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ly(this)&&this.run()}get dirty(){return ly(this)}}let e9=0,fp,hp;function t9(e,t=!1){if(e.flags|=8,t){e.next=hp,hp=e;return}e.next=fp,fp=e}function X6(){e9++}function J6(){if(--e9>0)return;if(hp){let t=hp;for(hp=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;fp;){let t=fp;for(fp=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function n9(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function s9(e){let t,n=e.depsTail,s=n;for(;s;){const a=s.prevDep;s.version===-1?(s===n&&(n=a),Z6(s),VI(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=a}e.deps=t,e.depsTail=n}function ly(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(a9(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function a9(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Mp)||(e.globalVersion=Mp,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ly(e))))return;e.flags|=2;const t=e.dep,n=zn,s=vr;zn=e,vr=!0;try{n9(e);const a=e.fn(e._value);(t.version===0||Dc(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{zn=n,vr=s,s9(e),e.flags&=-3}}function Z6(e,t=!1){const{dep:n,prevSub:s,nextSub:a}=e;if(s&&(s.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Z6(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function VI(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let vr=!0;const o9=[];function Cl(){o9.push(vr),vr=!1}function Sl(){const e=o9.pop();vr=e===void 0?!0:e}function M_(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=zn;zn=void 0;try{t()}finally{zn=n}}}let Mp=0;class zI{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Q6{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(!zn||!vr||zn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==zn)n=this.activeLink=new zI(zn,this),zn.deps?(n.prevDep=zn.depsTail,zn.depsTail.nextDep=n,zn.depsTail=n):zn.deps=zn.depsTail=n,r9(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=zn.depsTail,n.nextDep=void 0,zn.depsTail.nextDep=n,zn.depsTail=n,zn.deps===n&&(zn.deps=s)}return n}trigger(t){this.version++,Mp++,this.notify(t)}notify(t){X6();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{J6()}}}function r9(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)r9(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const zg=new WeakMap,Td=Symbol(""),cy=Symbol(""),Pp=Symbol("");function ha(e,t,n){if(vr&&zn){let s=zg.get(e);s||zg.set(e,s=new Map);let a=s.get(n);a||(s.set(n,a=new Q6),a.map=s,a.key=n),a.track()}}function ul(e,t,n,s,a,o){const r=zg.get(e);if(!r){Mp++;return}const i=l=>{l&&l.trigger()};if(X6(),t==="clear")r.forEach(i);else{const l=ke(e),c=l&&ab(n);if(l&&n==="length"){const u=Number(s);r.forEach((d,h)=>{(h==="length"||h===Pp||!yr(h)&&h>=u)&&i(d)})}else switch((n!==void 0||r.has(void 0))&&i(r.get(n)),c&&i(r.get(Pp)),t){case"add":l?c&&i(r.get("length")):(i(r.get(Td)),Mf(e)&&i(r.get(cy)));break;case"delete":l||(i(r.get(Td)),Mf(e)&&i(r.get(cy)));break;case"set":Mf(e)&&i(r.get(Td));break}}J6()}function HI(e,t){const n=zg.get(e);return n&&n.get(t)}function sf(e){const t=dn(e);return t===e?t:(ha(t,"iterate",Pp),xo(e)?t:t.map(wr))}function ib(e){return ha(e=dn(e),"iterate",Pp),e}function Xl(e,t){return xl(e)?Gh(Md(e)?wr(t):t):wr(t)}const WI={__proto__:null,[Symbol.iterator](){return u4(this,Symbol.iterator,e=>Xl(this,e))},concat(...e){return sf(this).concat(...e.map(t=>ke(t)?sf(t):t))},entries(){return u4(this,"entries",e=>(e[1]=Xl(this,e[1]),e))},every(e,t){return Ti(this,"every",e,t,void 0,arguments)},filter(e,t){return Ti(this,"filter",e,t,n=>n.map(s=>Xl(this,s)),arguments)},find(e,t){return Ti(this,"find",e,t,n=>Xl(this,n),arguments)},findIndex(e,t){return Ti(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ti(this,"findLast",e,t,n=>Xl(this,n),arguments)},findLastIndex(e,t){return Ti(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ti(this,"forEach",e,t,void 0,arguments)},includes(...e){return d4(this,"includes",e)},indexOf(...e){return d4(this,"indexOf",e)},join(e){return sf(this).join(e)},lastIndexOf(...e){return d4(this,"lastIndexOf",e)},map(e,t){return Ti(this,"map",e,t,void 0,arguments)},pop(){return A0(this,"pop")},push(...e){return A0(this,"push",e)},reduce(e,...t){return P_(this,"reduce",e,t)},reduceRight(e,...t){return P_(this,"reduceRight",e,t)},shift(){return A0(this,"shift")},some(e,t){return Ti(this,"some",e,t,void 0,arguments)},splice(...e){return A0(this,"splice",e)},toReversed(){return sf(this).toReversed()},toSorted(e){return sf(this).toSorted(e)},toSpliced(...e){return sf(this).toSpliced(...e)},unshift(...e){return A0(this,"unshift",e)},values(){return u4(this,"values",e=>Xl(this,e))}};function u4(e,t,n){const s=ib(e),a=s[t]();return s!==e&&!xo(e)&&(a._next=a.next,a.next=()=>{const o=a._next();return o.done||(o.value=n(o.value)),o}),a}const jI=Array.prototype;function Ti(e,t,n,s,a,o){const r=ib(e),i=r!==e&&!xo(e),l=r[t];if(l!==jI[t]){const d=l.apply(e,o);return i?wr(d):d}let c=n;r!==e&&(i?c=function(d,h){return n.call(this,Xl(e,d),h,e)}:n.length>2&&(c=function(d,h){return n.call(this,d,h,e)}));const u=l.call(r,c,s);return i&&a?a(u):u}function P_(e,t,n,s){const a=ib(e);let o=n;return a!==e&&(xo(e)?n.length>3&&(o=function(r,i,l){return n.call(this,r,i,l,e)}):o=function(r,i,l){return n.call(this,r,Xl(e,i),l,e)}),a[t](o,...s)}function d4(e,t,n){const s=dn(e);ha(s,"iterate",Pp);const a=s[t](...n);return(a===-1||a===!1)&&cb(n[0])?(n[0]=dn(n[0]),s[t](...n)):a}function A0(e,t,n=[]){Cl(),X6();const s=dn(e)[t].apply(e,n);return J6(),Sl(),s}const KI=U6("__proto__,__v_isRef,__isVue"),i9=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(yr));function UI(e){yr(e)||(e=String(e));const t=dn(this);return ha(t,"has",e),t.hasOwnProperty(e)}class l9{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const a=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!a;if(n==="__v_isReadonly")return a;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(a?o?nL:f9:o?d9:u9).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=ke(t);if(!a){let l;if(r&&(l=WI[n]))return l;if(n==="hasOwnProperty")return UI}const i=Reflect.get(t,n,vn(t)?t:s);if((yr(n)?i9.has(n):KI(n))||(a||ha(t,"get",n),o))return i;if(vn(i)){const l=r&&ab(n)?i:i.value;return a&&ft(l)?Nd(l):l}return ft(i)?a?Nd(i):Kt(i):i}}class c9 extends l9{constructor(t=!1){super(!1,t)}set(t,n,s,a){let o=t[n];const r=ke(t)&&ab(n);if(!this._isShallow){const c=xl(o);if(!xo(s)&&!xl(s)&&(o=dn(o),s=dn(s)),!r&&vn(o)&&!vn(s))return c||(o.value=s),!0}const i=r?Number(n)<t.length:Wt(t,n),l=Reflect.set(t,n,s,vn(t)?t:a);return t===dn(a)&&(i?Dc(s,o)&&ul(t,"set",n,s):ul(t,"add",n,s)),l}deleteProperty(t,n){const s=Wt(t,n);t[n];const a=Reflect.deleteProperty(t,n);return a&&s&&ul(t,"delete",n,void 0),a}has(t,n){const s=Reflect.has(t,n);return(!yr(n)||!i9.has(n))&&ha(t,"has",n),s}ownKeys(t){return ha(t,"iterate",ke(t)?"length":Td),Reflect.ownKeys(t)}}class qI extends l9{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const GI=new c9,YI=new qI,XI=new c9(!0);const uy=e=>e,b2=e=>Reflect.getPrototypeOf(e);function JI(e,t,n){return function(...s){const a=this.__v_raw,o=dn(a),r=Mf(o),i=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=a[e](...s),u=n?uy:t?Gh:wr;return!t&&ha(o,"iterate",l?cy:Td),ms(Object.create(c),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:i?[u(d[0]),u(d[1])]:u(d),done:h}}})}}function y2(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ZI(e,t){const n={get(a){const o=this.__v_raw,r=dn(o),i=dn(a);e||(Dc(a,i)&&ha(r,"get",a),ha(r,"get",i));const{has:l}=b2(r),c=t?uy:e?Gh:wr;if(l.call(r,a))return c(o.get(a));if(l.call(r,i))return c(o.get(i));o!==r&&o.get(a)},get size(){const a=this.__v_raw;return!e&&ha(dn(a),"iterate",Td),a.size},has(a){const o=this.__v_raw,r=dn(o),i=dn(a);return e||(Dc(a,i)&&ha(r,"has",a),ha(r,"has",i)),a===i?o.has(a):o.has(a)||o.has(i)},forEach(a,o){const r=this,i=r.__v_raw,l=dn(i),c=t?uy:e?Gh:wr;return!e&&ha(l,"iterate",Td),i.forEach((u,d)=>a.call(o,c(u),c(d),r))}};return ms(n,e?{add:y2("add"),set:y2("set"),delete:y2("delete"),clear:y2("clear")}:{add(a){!t&&!xo(a)&&!xl(a)&&(a=dn(a));const o=dn(this);return b2(o).has.call(o,a)||(o.add(a),ul(o,"add",a,a)),this},set(a,o){!t&&!xo(o)&&!xl(o)&&(o=dn(o));const r=dn(this),{has:i,get:l}=b2(r);let c=i.call(r,a);c||(a=dn(a),c=i.call(r,a));const u=l.call(r,a);return r.set(a,o),c?Dc(o,u)&&ul(r,"set",a,o):ul(r,"add",a,o),this},delete(a){const o=dn(this),{has:r,get:i}=b2(o);let l=r.call(o,a);l||(a=dn(a),l=r.call(o,a)),i&&i.call(o,a);const c=o.delete(a);return l&&ul(o,"delete",a,void 0),c},clear(){const a=dn(this),o=a.size!==0,r=a.clear();return o&&ul(a,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(a=>{n[a]=JI(a,e,t)}),n}function e8(e,t){const n=ZI(e,t);return(s,a,o)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?s:Reflect.get(Wt(n,a)&&a in s?n:s,a,o)}const QI={get:e8(!1,!1)},eL={get:e8(!1,!0)},tL={get:e8(!0,!1)};const u9=new WeakMap,d9=new WeakMap,f9=new WeakMap,nL=new WeakMap;function sL(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function aL(e){return e.__v_skip||!Object.isExtensible(e)?0:sL(TI(e))}function Kt(e){return xl(e)?e:t8(e,!1,GI,QI,u9)}function lb(e){return t8(e,!1,XI,eL,d9)}function Nd(e){return t8(e,!0,YI,tL,f9)}function t8(e,t,n,s,a){if(!ft(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=aL(e);if(o===0)return e;const r=a.get(e);if(r)return r;const i=new Proxy(e,o===2?s:n);return a.set(e,i),i}function Md(e){return xl(e)?Md(e.__v_raw):!!(e&&e.__v_isReactive)}function xl(e){return!!(e&&e.__v_isReadonly)}function xo(e){return!!(e&&e.__v_isShallow)}function cb(e){return e?!!e.__v_raw:!1}function dn(e){const t=e&&e.__v_raw;return t?dn(t):e}function di(e){return!Wt(e,"__v_skip")&&Object.isExtensible(e)&&Kx(e,"__v_skip",!0),e}const wr=e=>ft(e)?Kt(e):e,Gh=e=>ft(e)?Nd(e):e;function vn(e){return e?e.__v_isRef===!0:!1}function F(e){return h9(e,!1)}function fn(e){return h9(e,!0)}function h9(e,t){return vn(e)?e:new oL(e,t)}class oL{constructor(t,n){this.dep=new Q6,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:dn(t),this._value=n?t:wr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||xo(t)||xl(t);t=s?t:dn(t),Dc(t,n)&&(this._rawValue=t,this._value=s?t:wr(t),this.dep.trigger())}}function K2(e){e.dep&&e.dep.trigger()}function f(e){return vn(e)?e.value:e}const rL={get:(e,t,n)=>t==="__v_raw"?e:f(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const a=e[t];return vn(a)&&!vn(n)?(a.value=n,!0):Reflect.set(e,t,n,s)}};function p9(e){return Md(e)?e:new Proxy(e,rL)}function gs(e){const t=ke(e)?new Array(e.length):{};for(const n in e)t[n]=v9(e,n);return t}class iL{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=dn(t);let a=!0,o=t;if(!ke(t)||!ab(String(n)))do a=!cb(o)||xo(o);while(a&&(o=o.__v_raw));this._shallow=a}get value(){let t=this._object[this._key];return this._shallow&&(t=f(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&vn(this._raw[this._key])){const n=this._object[this._key];if(vn(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return HI(this._raw,this._key)}}class lL{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 Jt(e,t,n){return vn(e)?e:nt(e)?new lL(e):ft(e)&&arguments.length>1?v9(e,t,n):F(e)}function v9(e,t,n){return new iL(e,t,n)}class cL{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Q6(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Mp-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&zn!==this)return t9(this,!0),!0}get value(){const t=this.dep.track();return a9(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function uL(e,t,n=!1){let s,a;return nt(e)?s=e:(s=e.get,a=e.set),new cL(s,a,n)}const w2={},Hg=new WeakMap;let ou;function dL(e,t=!1,n=ou){if(n){let s=Hg.get(n);s||Hg.set(n,s=[]),s.push(e)}}function fL(e,t,n=$n){const{immediate:s,deep:a,once:o,scheduler:r,augmentJob:i,call:l}=n,c=_=>a?_:xo(_)||a===!1||a===0?dl(_,1):dl(_);let u,d,h,p,v=!1,m=!1;if(vn(e)?(d=()=>e.value,v=xo(e)):Md(e)?(d=()=>c(e),v=!0):ke(e)?(m=!0,v=e.some(_=>Md(_)||xo(_)),d=()=>e.map(_=>{if(vn(_))return _.value;if(Md(_))return c(_);if(nt(_))return l?l(_,2):_()})):nt(e)?t?d=l?()=>l(e,2):e:d=()=>{if(h){Cl();try{h()}finally{Sl()}}const _=ou;ou=u;try{return l?l(e,3,[p]):e(p)}finally{ou=_}}:d=Yt,t&&a){const _=d,x=a===!0?1/0:a;d=()=>dl(_(),x)}const g=Jx(),b=()=>{u.stop(),g&&g.active&&G6(g.effects,u)};if(o&&t){const _=t;t=(...x)=>{_(...x),b()}}let C=m?new Array(e.length).fill(w2):w2;const w=_=>{if(!(!(u.flags&1)||!u.dirty&&!_))if(t){const x=u.run();if(a||v||(m?x.some((E,T)=>Dc(E,C[T])):Dc(x,C))){h&&h();const E=ou;ou=u;try{const T=[x,C===w2?void 0:m&&C[0]===w2?[]:C,p];C=x,l?l(t,3,T):t(...T)}finally{ou=E}}}else u.run()};return i&&i(w),u=new Qx(d),u.scheduler=r?()=>r(w,!1):w,p=_=>dL(_,!1,u),h=u.onStop=()=>{const _=Hg.get(u);if(_){if(l)l(_,4);else for(const x of _)x();Hg.delete(u)}},t?s?w(!0):C=u.run():r?r(w.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function dl(e,t=1/0,n){if(t<=0||!ft(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,vn(e))dl(e.value,t,n);else if(ke(e))for(let s=0;s<e.length;s++)dl(e[s],t,n);else if(sb(e)||Mf(e))e.forEach(s=>{dl(s,t,n)});else if(Tp(e)){for(const s in e)dl(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&dl(e[s],t,n)}return e}/**
* @vue/runtime-core v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function $m(e,t,n,s){try{return s?e(...s):e()}catch(a){ub(a,t,n)}}function _r(e,t,n,s){if(nt(e)){const a=$m(e,t,n,s);return a&&Ld(a)&&a.catch(o=>{ub(o,t,n)}),a}if(ke(e)){const a=[];for(let o=0;o<e.length;o++)a.push(_r(e[o],t,n,s));return a}}function ub(e,t,n,s=!0){const a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||$n;if(t){let i=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const u=i.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}i=i.parent}if(o){Cl(),$m(o,null,10,[e,l,c]),Sl();return}}hL(e,n,a,s,r)}function hL(e,t,n,s=!0,a=!1){if(a)throw e;console.error(e)}const Ma=[];let jr=-1;const Pf=[];let Jl=null,df=0;const m9=Promise.resolve();let Wg=null;function ze(e){const t=Wg||m9;return e?t.then(this?e.bind(this):e):t}function pL(e){let t=jr+1,n=Ma.length;for(;t<n;){const s=t+n>>>1,a=Ma[s],o=Rp(a);o<e||o===e&&a.flags&2?t=s+1:n=s}return t}function n8(e){if(!(e.flags&1)){const t=Rp(e),n=Ma[Ma.length-1];!n||!(e.flags&2)&&t>=Rp(n)?Ma.push(e):Ma.splice(pL(t),0,e),e.flags|=1,g9()}}function g9(){Wg||(Wg=m9.then(y9))}function vL(e){ke(e)?Pf.push(...e):Jl&&e.id===-1?Jl.splice(df+1,0,e):e.flags&1||(Pf.push(e),e.flags|=1),g9()}function R_(e,t,n=jr+1){for(;n<Ma.length;n++){const s=Ma[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ma.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function b9(e){if(Pf.length){const t=[...new Set(Pf)].sort((n,s)=>Rp(n)-Rp(s));if(Pf.length=0,Jl){Jl.push(...t);return}for(Jl=t,df=0;df<Jl.length;df++){const n=Jl[df];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Jl=null,df=0}}const Rp=e=>e.id==null?e.flags&2?-1:1/0:e.id;function y9(e){try{for(jr=0;jr<Ma.length;jr++){const t=Ma[jr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),$m(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;jr<Ma.length;jr++){const t=Ma[jr];t&&(t.flags&=-2)}jr=-1,Ma.length=0,b9(),Wg=null,(Ma.length||Pf.length)&&y9()}}let Ys=null,w9=null;function jg(e){const t=Ys;return Ys=e,w9=e&&e.type.__scopeId||null,t}function X(e,t=Ys,n){if(!t||e._n)return e;const s=(...a)=>{s._d&&qg(-1);const o=jg(t);let r;try{r=e(...a)}finally{jg(o),s._d&&qg(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function gt(e,t){if(Ys===null)return e;const n=vb(Ys),s=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[o,r,i,l=$n]=t[a];o&&(nt(o)&&(o={mounted:o,updated:o}),o.deep&&dl(r),s.push({dir:o,instance:n,value:r,oldValue:void 0,arg:i,modifiers:l}))}return e}function tu(e,t,n,s){const a=e.dirs,o=t&&t.dirs;for(let r=0;r<a.length;r++){const i=a[r];o&&(i.oldValue=o[r].value);let l=i.dir[s];l&&(Cl(),_r(l,n,8,[e.el,i,e,t]),Sl())}}function Mt(e,t){if(pa){let n=pa.provides;const s=pa.parent&&pa.parent.provides;s===n&&(n=pa.provides=Object.create(s)),n[e]=t}}function je(e,t,n=!1){const s=Ct();if(s||If){let a=If?If._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return n&&nt(t)?t.call(s&&s.proxy):t}}const mL=Symbol.for("v-scx"),gL=()=>je(mL);function Qa(e,t){return s8(e,null,t)}function be(e,t,n){return s8(e,t,n)}function s8(e,t,n=$n){const{immediate:s,deep:a,flush:o,once:r}=n,i=ms({},n),l=t&&s||!t&&o!=="post";let c;if(Op){if(o==="sync"){const p=gL();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Yt,p.resume=Yt,p.pause=Yt,p}}const u=pa;i.call=(p,v,m)=>_r(p,u,v,m);let d=!1;o==="post"?i.scheduler=p=>{la(p,u&&u.suspense)}:o!=="sync"&&(d=!0,i.scheduler=(p,v)=>{v?p():n8(p)}),i.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=fL(e,t,i);return Op&&(c?c.push(h):l&&h()),h}function bL(e,t,n){const s=this.proxy,a=Xe(e)?e.includes(".")?_9(s,e):()=>s[e]:e.bind(s,s);let o;nt(t)?o=t:(o=t.handler,n=t);const r=Fm(this),i=s8(a,o.bind(s),n);return r(),i}function _9(e,t){const n=t.split(".");return()=>{let s=e;for(let a=0;a<n.length&&s;a++)s=s[n[a]];return s}}const C9=Symbol("_vte"),S9=e=>e.__isTeleport,pp=e=>e&&(e.disabled||e.disabled===""),I_=e=>e&&(e.defer||e.defer===""),L_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,O_=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,dy=(e,t)=>{const n=e&&e.to;return Xe(n)?t?t(n):null:n},x9={name:"Teleport",__isTeleport:!0,process(e,t,n,s,a,o,r,i,l,c){const{mc:u,pc:d,pbc:h,o:{insert:p,querySelector:v,createText:m,createComment:g}}=c,b=pp(t.props);let{shapeFlag:C,children:w,dynamicChildren:_}=t;if(e==null){const x=t.el=m(""),E=t.anchor=m("");p(x,n,s),p(E,n,s);const T=(I,M)=>{C&16&&u(w,I,M,a,o,r,i,l)},R=()=>{const I=t.target=dy(t.props,v),M=fy(I,t,m,p);I&&(r!=="svg"&&L_(I)?r="svg":r!=="mathml"&&O_(I)&&(r="mathml"),a&&a.isCE&&(a.ce._teleportTargets||(a.ce._teleportTargets=new Set)).add(I),b||(T(I,M),U2(t,!1)))};b&&(T(n,E),U2(t,!0)),I_(t.props)?(t.el.__isMounted=!1,la(()=>{R(),delete t.el.__isMounted},o)):R()}else{if(I_(t.props)&&e.el.__isMounted===!1){la(()=>{x9.process(e,t,n,s,a,o,r,i,l,c)},o);return}t.el=e.el,t.targetStart=e.targetStart;const x=t.anchor=e.anchor,E=t.target=e.target,T=t.targetAnchor=e.targetAnchor,R=pp(e.props),I=R?n:E,M=R?x:T;if(r==="svg"||L_(E)?r="svg":(r==="mathml"||O_(E))&&(r="mathml"),_?(h(e.dynamicChildren,_,I,a,o,r,i),f8(e,t,!0)):l||d(e,t,I,M,a,o,r,i,!1),b)R?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):_2(t,n,x,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const $=t.target=dy(t.props,v);$&&_2(t,$,null,c,0)}else R&&_2(t,E,T,c,1);U2(t,b)}},remove(e,t,n,{um:s,o:{remove:a}},o){const{shapeFlag:r,children:i,anchor:l,targetStart:c,targetAnchor:u,target:d,props:h}=e;if(d&&(a(c),a(u)),o&&a(l),r&16){const p=o||!pp(h);for(let v=0;v<i.length;v++){const m=i[v];s(m,t,n,p,!!m.dynamicChildren)}}},move:_2,hydrate:yL};function _2(e,t,n,{o:{insert:s},m:a},o=2){o===0&&s(e.targetAnchor,t,n);const{el:r,anchor:i,shapeFlag:l,children:c,props:u}=e,d=o===2;if(d&&s(r,t,n),(!d||pp(u))&&l&16)for(let h=0;h<c.length;h++)a(c[h],t,n,2);d&&s(i,t,n)}function yL(e,t,n,s,a,o,{o:{nextSibling:r,parentNode:i,querySelector:l,insert:c,createText:u}},d){function h(g,b){let C=b;for(;C;){if(C&&C.nodeType===8){if(C.data==="teleport start anchor")t.targetStart=C;else if(C.data==="teleport anchor"){t.targetAnchor=C,g._lpa=t.targetAnchor&&r(t.targetAnchor);break}}C=r(C)}}function p(g,b){b.anchor=d(r(g),b,i(g),n,s,a,o)}const v=t.target=dy(t.props,l),m=pp(t.props);if(v){const g=v._lpa||v.firstChild;t.shapeFlag&16&&(m?(p(e,t),h(v,g),t.targetAnchor||fy(v,t,u,c,i(e)===v?e:null)):(t.anchor=r(e),h(v,g),t.targetAnchor||fy(v,t,u,c),d(g&&r(g),t,v,n,s,a,o))),U2(t,m)}else m&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=r(e));return t.anchor&&r(t.anchor)}const wL=x9;function U2(e,t){const n=e.ctx;if(n&&n.ut){let s,a;for(t?(s=e.el,a=e.anchor):(s=e.targetStart,a=e.targetAnchor);s&&s!==a;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function fy(e,t,n,s,a=null){const o=t.targetStart=n(""),r=t.targetAnchor=n("");return o[C9]=r,e&&(s(o,e,a),s(r,e,a)),r}const Kr=Symbol("_leaveCb"),T0=Symbol("_enterCb");function E9(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return St(()=>{e.isMounted=!0}),qt(()=>{e.isUnmounting=!0}),e}const Ro=[Function,Array],k9={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ro,onEnter:Ro,onAfterEnter:Ro,onEnterCancelled:Ro,onBeforeLeave:Ro,onLeave:Ro,onAfterLeave:Ro,onLeaveCancelled:Ro,onBeforeAppear:Ro,onAppear:Ro,onAfterAppear:Ro,onAppearCancelled:Ro},A9=e=>{const t=e.subTree;return t.component?A9(t.component):t},_L={name:"BaseTransition",props:k9,setup(e,{slots:t}){const n=Ct(),s=E9();return()=>{const a=t.default&&a8(t.default(),!0);if(!a||!a.length)return;const o=T9(a),r=dn(e),{mode:i}=r;if(s.isLeaving)return f4(o);const l=N_(o);if(!l)return f4(o);let c=Ip(l,r,s,n,d=>c=d);l.type!==Kn&&$d(l,c);let u=n.subTree&&N_(n.subTree);if(u&&u.type!==Kn&&!uu(u,l)&&A9(n).type!==Kn){let d=Ip(u,r,s,n);if($d(u,d),i==="out-in"&&l.type!==Kn)return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},f4(o);i==="in-out"&&l.type!==Kn?d.delayLeave=(h,p,v)=>{const m=M9(s,u);m[String(u.key)]=u,h[Kr]=()=>{p(),h[Kr]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{v(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function T9(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Kn){t=n;break}}return t}const CL=_L;function M9(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Ip(e,t,n,s,a){const{appear:o,mode:r,persisted:i=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:p,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:g,onAppear:b,onAfterAppear:C,onAppearCancelled:w}=t,_=String(e.key),x=M9(n,e),E=(I,M)=>{I&&_r(I,s,9,M)},T=(I,M)=>{const $=M[1];E(I,M),ke(I)?I.every(L=>L.length<=1)&&$():I.length<=1&&$()},R={mode:r,persisted:i,beforeEnter(I){let M=l;if(!n.isMounted)if(o)M=g||l;else return;I[Kr]&&I[Kr](!0);const $=x[_];$&&uu(e,$)&&$.el[Kr]&&$.el[Kr](),E(M,[I])},enter(I){let M=c,$=u,L=d;if(!n.isMounted)if(o)M=b||c,$=C||u,L=w||d;else return;let B=!1;I[T0]=J=>{B||(B=!0,J?E(L,[I]):E($,[I]),R.delayedLeave&&R.delayedLeave(),I[T0]=void 0)};const q=I[T0].bind(null,!1);M?T(M,[I,q]):q()},leave(I,M){const $=String(e.key);if(I[T0]&&I[T0](!0),n.isUnmounting)return M();E(h,[I]);let L=!1;I[Kr]=q=>{L||(L=!0,M(),q?E(m,[I]):E(v,[I]),I[Kr]=void 0,x[$]===e&&delete x[$])};const B=I[Kr].bind(null,!1);x[$]=e,p?T(p,[I,B]):B()},clone(I){const M=Ip(I,t,n,s,a);return a&&a(M),M}};return R}function f4(e){if(db(e))return e=gi(e),e.children=null,e}function N_(e){if(!db(e))return S9(e.type)&&e.children?T9(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&nt(n.default))return n.default()}}function $d(e,t){e.shapeFlag&6&&e.component?(e.transition=t,$d(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function a8(e,t=!1,n){let s=[],a=0;for(let o=0;o<e.length;o++){let r=e[o];const i=n==null?r.key:String(n)+String(r.key!=null?r.key:o);r.type===Ve?(r.patchFlag&128&&a++,s=s.concat(a8(r.children,t,i))):(t||r.type!==Kn)&&s.push(i!=null?gi(r,{key:i}):r)}if(a>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}function j(e,t){return nt(e)?ms({name:e.name},t,{setup:e}):e}function P9(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $_(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Kg=new WeakMap;function vp(e,t,n,s,a=!1){if(ke(e)){e.forEach((m,g)=>vp(m,t&&(ke(t)?t[g]:t),n,s,a));return}if(Rf(s)&&!a){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&vp(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?vb(s.component):s.el,r=a?null:o,{i,r:l}=e,c=t&&t.r,u=i.refs===$n?i.refs={}:i.refs,d=i.setupState,h=dn(d),p=d===$n?Wx:m=>$_(u,m)?!1:Wt(h,m),v=(m,g)=>!(g&&$_(u,g));if(c!=null&&c!==l){if(D_(t),Xe(c))u[c]=null,p(c)&&(d[c]=null);else if(vn(c)){const m=t;v(c,m.k)&&(c.value=null),m.k&&(u[m.k]=null)}}if(nt(l))$m(l,i,12,[r,u]);else{const m=Xe(l),g=vn(l);if(m||g){const b=()=>{if(e.f){const C=m?p(l)?d[l]:u[l]:v()||!e.k?l.value:u[e.k];if(a)ke(C)&&G6(C,o);else if(ke(C))C.includes(o)||C.push(o);else if(m)u[l]=[o],p(l)&&(d[l]=u[l]);else{const w=[o];v(l,e.k)&&(l.value=w),e.k&&(u[e.k]=w)}}else m?(u[l]=r,p(l)&&(d[l]=r)):g&&(v(l,e.k)&&(l.value=r),e.k&&(u[e.k]=r))};if(r){const C=()=>{b(),Kg.delete(e)};C.id=-1,Kg.set(e,C),la(C,n)}else D_(e),b()}}}function D_(e){const t=Kg.get(e);t&&(t.flags|=8,Kg.delete(e))}rb().requestIdleCallback;rb().cancelIdleCallback;const Rf=e=>!!e.type.__asyncLoader,db=e=>e.type.__isKeepAlive;function Dm(e,t){R9(e,"a",t)}function o8(e,t){R9(e,"da",t)}function R9(e,t,n=pa){const s=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(fb(t,s,n),n){let a=n.parent;for(;a&&a.parent;)db(a.parent.vnode)&&SL(s,t,n,a),a=a.parent}}function SL(e,t,n,s){const a=fb(t,e,s,!0);Gd(()=>{G6(s[t],a)},n)}function fb(e,t,n=pa,s=!1){if(n){const a=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{Cl();const i=Fm(n),l=_r(t,n,e,r);return i(),Sl(),l});return s?a.unshift(o):a.push(o),o}}const Ol=e=>(t,n=pa)=>{(!Op||e==="sp")&&fb(e,(...s)=>t(...s),n)},hb=Ol("bm"),St=Ol("m"),r8=Ol("bu"),Pr=Ol("u"),qt=Ol("bum"),Gd=Ol("um"),xL=Ol("sp"),EL=Ol("rtg"),kL=Ol("rtc");function AL(e,t=pa){fb("ec",e,t)}const i8="components",TL="directives";function qe(e,t){return c8(i8,e,!0,t)||e}const I9=Symbol.for("v-ndc");function bt(e){return Xe(e)?c8(i8,e,!1)||e:e||I9}function l8(e){return c8(TL,e)}function c8(e,t,n=!0,s=!1){const a=Ys||pa;if(a){const o=a.type;if(e===i8){const i=uO(o,!1);if(i&&(i===t||i===Oa(t)||i===Nm(Oa(t))))return o}const r=F_(a[e]||o[e],t)||F_(a.appContext[e],t);return!r&&s?o:r}}function F_(e,t){return e&&(e[t]||e[Oa(t)]||e[Nm(Oa(t))])}function yt(e,t,n,s){let a;const o=n,r=ke(e);if(r||Xe(e)){const i=r&&Md(e);let l=!1,c=!1;i&&(l=!xo(e),c=xl(e),e=ib(e)),a=new Array(e.length);for(let u=0,d=e.length;u<d;u++)a[u]=t(l?c?Gh(wr(e[u])):wr(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){a=new Array(e);for(let i=0;i<e;i++)a[i]=t(i+1,i,void 0,o)}else if(ft(e))if(e[Symbol.iterator])a=Array.from(e,(i,l)=>t(i,l,void 0,o));else{const i=Object.keys(e);a=new Array(i.length);for(let l=0,c=i.length;l<c;l++){const u=i[l];a[l]=t(e[u],u,l,o)}}else a=[];return a}function Na(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(ke(s))for(let a=0;a<s.length;a++)e[s[a].name]=s[a].fn;else s&&(e[s.name]=s.key?(...a)=>{const o=s.fn(...a);return o&&(o.key=s.key),o}:s.fn)}return e}function ue(e,t,n={},s,a){if(Ys.ce||Ys.parent&&Rf(Ys.parent)&&Ys.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),S(),ce(Ve,null,[W("slot",n,s&&s())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),S();const r=o&&L9(o(n)),i=n.key||r&&r.key,l=ce(Ve,{key:(i&&!yr(i)?i:`_${t}`)+(!r&&s?"_fb":"")},r||(s?s():[]),r&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function L9(e){return e.some(t=>un(t)?!(t.type===Kn||t.type===Ve&&!L9(t.children)):!0)?e:null}function ML(e,t){const n={};for(const s in e)n[dp(s)]=e[s];return n}const hy=e=>e?Q9(e)?vb(e):hy(e.parent):null,mp=ms(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>hy(e.parent),$root:e=>hy(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>$9(e),$forceUpdate:e=>e.f||(e.f=()=>{n8(e.update)}),$nextTick:e=>e.n||(e.n=ze.bind(e.proxy)),$watch:e=>bL.bind(e)}),h4=(e,t)=>e!==$n&&!e.__isScriptSetup&&Wt(e,t),PL={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:a,props:o,accessCache:r,type:i,appContext:l}=e;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return s[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else{if(h4(s,t))return r[t]=1,s[t];if(a!==$n&&Wt(a,t))return r[t]=2,a[t];if(Wt(o,t))return r[t]=3,o[t];if(n!==$n&&Wt(n,t))return r[t]=4,n[t];py&&(r[t]=0)}}const c=mp[t];let u,d;if(c)return t==="$attrs"&&ha(e.attrs,"get",""),c(e);if((u=i.__cssModules)&&(u=u[t]))return u;if(n!==$n&&Wt(n,t))return r[t]=4,n[t];if(d=l.config.globalProperties,Wt(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:a,ctx:o}=e;return h4(a,t)?(a[t]=n,!0):s!==$n&&Wt(s,t)?(s[t]=n,!0):Wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:a,props:o,type:r}},i){let l;return!!(n[i]||e!==$n&&i[0]!=="$"&&Wt(e,i)||h4(t,i)||Wt(o,i)||Wt(s,i)||Wt(mp,i)||Wt(a.config.globalProperties,i)||(l=r.__cssModules)&&l[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Wt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Hn(){return O9().slots}function Nl(){return O9().attrs}function O9(e){const t=Ct();return t.setupContext||(t.setupContext=tE(t))}function B_(e){return ke(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let py=!0;function RL(e){const t=$9(e),n=e.proxy,s=e.ctx;py=!1,t.beforeCreate&&V_(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:r,watch:i,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:p,updated:v,activated:m,deactivated:g,beforeDestroy:b,beforeUnmount:C,destroyed:w,unmounted:_,render:x,renderTracked:E,renderTriggered:T,errorCaptured:R,serverPrefetch:I,expose:M,inheritAttrs:$,components:L,directives:B,filters:q}=t;if(c&&IL(c,s,null),r)for(const O in r){const N=r[O];nt(N)&&(s[O]=N.bind(n))}if(a){const O=a.call(n,n);ft(O)&&(e.data=Kt(O))}if(py=!0,o)for(const O in o){const N=o[O],V=nt(N)?N.bind(n,n):nt(N.get)?N.get.bind(n,n):Yt,z=!nt(N)&&nt(N.set)?N.set.bind(n):Yt,G=k({get:V,set:z});Object.defineProperty(s,O,{enumerable:!0,configurable:!0,get:()=>G.value,set:Q=>G.value=Q})}if(i)for(const O in i)N9(i[O],s,n,O);if(l){const O=nt(l)?l.call(n):l;Reflect.ownKeys(O).forEach(N=>{Mt(N,O[N])})}u&&V_(u,e,"c");function Y(O,N){ke(N)?N.forEach(V=>O(V.bind(n))):N&&O(N.bind(n))}if(Y(hb,d),Y(St,h),Y(r8,p),Y(Pr,v),Y(Dm,m),Y(o8,g),Y(AL,R),Y(kL,E),Y(EL,T),Y(qt,C),Y(Gd,_),Y(xL,I),ke(M))if(M.length){const O=e.exposed||(e.exposed={});M.forEach(N=>{Object.defineProperty(O,N,{get:()=>n[N],set:V=>n[N]=V,enumerable:!0})})}else e.exposed||(e.exposed={});x&&e.render===Yt&&(e.render=x),$!=null&&(e.inheritAttrs=$),L&&(e.components=L),B&&(e.directives=B),I&&P9(e)}function IL(e,t,n=Yt){ke(e)&&(e=vy(e));for(const s in e){const a=e[s];let o;ft(a)?"default"in a?o=je(a.from||s,a.default,!0):o=je(a.from||s):o=je(a),vn(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function V_(e,t,n){_r(ke(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function N9(e,t,n,s){let a=s.includes(".")?_9(n,s):()=>n[s];if(Xe(e)){const o=t[e];nt(o)&&be(a,o)}else if(nt(e))be(a,e.bind(n));else if(ft(e))if(ke(e))e.forEach(o=>N9(o,t,n,s));else{const o=nt(e.handler)?e.handler.bind(n):t[e.handler];nt(o)&&be(a,o,e)}}function $9(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,i=o.get(t);let l;return i?l=i:!a.length&&!n&&!s?l=t:(l={},a.length&&a.forEach(c=>Ug(l,c,r,!0)),Ug(l,t,r)),ft(t)&&o.set(t,l),l}function Ug(e,t,n,s=!1){const{mixins:a,extends:o}=t;o&&Ug(e,o,n,!0),a&&a.forEach(r=>Ug(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const i=LL[r]||n&&n[r];e[r]=i?i(e[r],t[r]):t[r]}return e}const LL={data:z_,props:H_,emits:H_,methods:H0,computed:H0,beforeCreate:Ca,created:Ca,beforeMount:Ca,mounted:Ca,beforeUpdate:Ca,updated:Ca,beforeDestroy:Ca,beforeUnmount:Ca,destroyed:Ca,unmounted:Ca,activated:Ca,deactivated:Ca,errorCaptured:Ca,serverPrefetch:Ca,components:H0,directives:H0,watch:NL,provide:z_,inject:OL};function z_(e,t){return t?e?function(){return ms(nt(e)?e.call(this,this):e,nt(t)?t.call(this,this):t)}:t:e}function OL(e,t){return H0(vy(e),vy(t))}function vy(e){if(ke(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ca(e,t){return e?[...new Set([].concat(e,t))]:t}function H0(e,t){return e?ms(Object.create(null),e,t):t}function H_(e,t){return e?ke(e)&&ke(t)?[...new Set([...e,...t])]:ms(Object.create(null),B_(e),B_(t??{})):t}function NL(e,t){if(!e)return t;if(!t)return e;const n=ms(Object.create(null),e);for(const s in t)n[s]=Ca(e[s],t[s]);return n}function D9(){return{app:null,config:{isNativeTag:Wx,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let $L=0;function DL(e,t){return function(s,a=null){nt(s)||(s=ms({},s)),a!=null&&!ft(a)&&(a=null);const o=D9(),r=new WeakSet,i=[];let l=!1;const c=o.app={_uid:$L++,_component:s,_props:a,_container:null,_context:o,_instance:null,version:fO,get config(){return o.config},set config(u){},use(u,...d){return r.has(u)||(u&&nt(u.install)?(r.add(u),u.install(c,...d)):nt(u)&&(r.add(u),u(c,...d))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,d){return d?(o.components[u]=d,c):o.components[u]},directive(u,d){return d?(o.directives[u]=d,c):o.directives[u]},mount(u,d,h){if(!l){const p=c._ceVNode||W(s,a);return p.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),e(p,u,h),l=!0,c._container=u,u.__vue_app__=c,vb(p.component)}},onUnmount(u){i.push(u)},unmount(){l&&(_r(i,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return o.provides[u]=d,c},runWithContext(u){const d=If;If=c;try{return u()}finally{If=d}}};return c}}let If=null;const FL=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Oa(t)}Modifiers`]||e[`${Ll(t)}Modifiers`];function BL(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||$n;let a=n;const o=t.startsWith("update:"),r=o&&FL(s,t.slice(7));r&&(r.trim&&(a=n.map(u=>Xe(u)?u.trim():u)),r.number&&(a=n.map(Y6)));let i,l=s[i=dp(t)]||s[i=dp(Oa(t))];!l&&o&&(l=s[i=dp(Ll(t))]),l&&_r(l,e,6,a);const c=s[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,_r(c,e,6,a)}}const VL=new WeakMap;function F9(e,t,n=!1){const s=n?VL:t.emitsCache,a=s.get(e);if(a!==void 0)return a;const o=e.emits;let r={},i=!1;if(!nt(e)){const l=c=>{const u=F9(c,t,!0);u&&(i=!0,ms(r,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!i?(ft(e)&&s.set(e,null),null):(ke(o)?o.forEach(l=>r[l]=null):ms(r,o),ft(e)&&s.set(e,r),r)}function pb(e,t){return!e||!nb(t)?!1:(t=t.slice(2).replace(/Once$/,""),Wt(e,t[0].toLowerCase()+t.slice(1))||Wt(e,Ll(t))||Wt(e,t))}function W_(e){const{type:t,vnode:n,proxy:s,withProxy:a,propsOptions:[o],slots:r,attrs:i,emit:l,render:c,renderCache:u,props:d,data:h,setupState:p,ctx:v,inheritAttrs:m}=e,g=jg(e);let b,C;try{if(n.shapeFlag&4){const _=a||s,x=_;b=ci(c.call(x,_,u,d,p,h,v)),C=i}else{const _=t;b=ci(_.length>1?_(d,{attrs:i,slots:r,emit:l}):_(d,null)),C=t.props?i:zL(i)}}catch(_){gp.length=0,ub(_,e,1),b=W(Kn)}let w=b;if(C&&m!==!1){const _=Object.keys(C),{shapeFlag:x}=w;_.length&&x&7&&(o&&_.some(q6)&&(C=HL(C,o)),w=gi(w,C,!1,!0))}return n.dirs&&(w=gi(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&$d(w,n.transition),b=w,jg(g),b}const zL=e=>{let t;for(const n in e)(n==="class"||n==="style"||nb(n))&&((t||(t={}))[n]=e[n]);return t},HL=(e,t)=>{const n={};for(const s in e)(!q6(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function WL(e,t,n){const{props:s,children:a,component:o}=e,{props:r,children:i,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?j_(s,r,c):!!r;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(B9(r,s,h)&&!pb(c,h))return!0}}}else return(a||i)&&(!i||!i.$stable)?!0:s===r?!1:s?r?j_(s,r,c):!0:!!r;return!1}function j_(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let a=0;a<s.length;a++){const o=s[a];if(B9(t,e,o)&&!pb(n,o))return!0}return!1}function B9(e,t,n){const s=e[n],a=t[n];return n==="style"&&ft(s)&&ft(a)?!Od(s,a):s!==a}function jL({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const V9={},z9=()=>Object.create(V9),H9=e=>Object.getPrototypeOf(e)===V9;function KL(e,t,n,s=!1){const a={},o=z9();e.propsDefaults=Object.create(null),W9(e,t,a,o);for(const r in e.propsOptions[0])r in a||(a[r]=void 0);n?e.props=s?a:lb(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function UL(e,t,n,s){const{props:a,attrs:o,vnode:{patchFlag:r}}=e,i=dn(a),[l]=e.propsOptions;let c=!1;if((s||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if(pb(e.emitsOptions,h))continue;const p=t[h];if(l)if(Wt(o,h))p!==o[h]&&(o[h]=p,c=!0);else{const v=Oa(h);a[v]=my(l,i,v,p,e,!1)}else p!==o[h]&&(o[h]=p,c=!0)}}}else{W9(e,t,a,o)&&(c=!0);let u;for(const d in i)(!t||!Wt(t,d)&&((u=Ll(d))===d||!Wt(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(a[d]=my(l,i,d,void 0,e,!0)):delete a[d]);if(o!==i)for(const d in o)(!t||!Wt(t,d))&&(delete o[d],c=!0)}c&&ul(e.attrs,"set","")}function W9(e,t,n,s){const[a,o]=e.propsOptions;let r=!1,i;if(t)for(let l in t){if(up(l))continue;const c=t[l];let u;a&&Wt(a,u=Oa(l))?!o||!o.includes(u)?n[u]=c:(i||(i={}))[u]=c:pb(e.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,r=!0)}if(o){const l=dn(n),c=i||$n;for(let u=0;u<o.length;u++){const d=o[u];n[d]=my(a,l,d,c[d],e,!Wt(c,d))}}return r}function my(e,t,n,s,a,o){const r=e[n];if(r!=null){const i=Wt(r,"default");if(i&&s===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&nt(l)){const{propsDefaults:c}=a;if(n in c)s=c[n];else{const u=Fm(a);s=c[n]=l.call(null,t),u()}}else s=l;a.ce&&a.ce._setProp(n,s)}r[0]&&(o&&!i?s=!1:r[1]&&(s===""||s===Ll(n))&&(s=!0))}return s}const qL=new WeakMap;function j9(e,t,n=!1){const s=n?qL:t.propsCache,a=s.get(e);if(a)return a;const o=e.props,r={},i=[];let l=!1;if(!nt(e)){const u=d=>{l=!0;const[h,p]=j9(d,t,!0);ms(r,h),p&&i.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return ft(e)&&s.set(e,Tf),Tf;if(ke(o))for(let u=0;u<o.length;u++){const d=Oa(o[u]);K_(d)&&(r[d]=$n)}else if(o)for(const u in o){const d=Oa(u);if(K_(d)){const h=o[u],p=r[d]=ke(h)||nt(h)?{type:h}:ms({},h),v=p.type;let m=!1,g=!0;if(ke(v))for(let b=0;b<v.length;++b){const C=v[b],w=nt(C)&&C.name;if(w==="Boolean"){m=!0;break}else w==="String"&&(g=!1)}else m=nt(v)&&v.name==="Boolean";p[0]=m,p[1]=g,(m||Wt(p,"default"))&&i.push(d)}}const c=[r,i];return ft(e)&&s.set(e,c),c}function K_(e){return e[0]!=="$"&&!up(e)}const u8=e=>e==="_"||e==="_ctx"||e==="$stable",d8=e=>ke(e)?e.map(ci):[ci(e)],GL=(e,t,n)=>{if(t._n)return t;const s=X((...a)=>d8(t(...a)),n);return s._c=!1,s},K9=(e,t,n)=>{const s=e._ctx;for(const a in e){if(u8(a))continue;const o=e[a];if(nt(o))t[a]=GL(a,o,s);else if(o!=null){const r=d8(o);t[a]=()=>r}}},U9=(e,t)=>{const n=d8(t);e.slots.default=()=>n},q9=(e,t,n)=>{for(const s in t)(n||!u8(s))&&(e[s]=t[s])},YL=(e,t,n)=>{const s=e.slots=z9();if(e.vnode.shapeFlag&32){const a=t._;a?(q9(s,t,n),n&&Kx(s,"_",a,!0)):K9(t,s)}else t&&U9(e,t)},XL=(e,t,n)=>{const{vnode:s,slots:a}=e;let o=!0,r=$n;if(s.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:q9(a,t,n):(o=!t.$stable,K9(t,a)),r=t}else t&&(U9(e,t),r={default:1});if(o)for(const i in a)!u8(i)&&r[i]==null&&delete a[i]},la=tO;function JL(e){return ZL(e)}function ZL(e,t){const n=rb();n.__VUE__=!0;const{insert:s,remove:a,patchProp:o,createElement:r,createText:i,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:p=Yt,insertStaticContent:v}=e,m=(H,ae,de,ye=null,_e=null,Se=null,Ne=void 0,Fe=null,Oe=!!ae.dynamicChildren)=>{if(H===ae)return;H&&!uu(H,ae)&&(ye=te(H),Q(H,_e,Se,!0),H=null),ae.patchFlag===-2&&(Oe=!1,ae.dynamicChildren=null);const{type:Ce,ref:Ie,shapeFlag:Pe}=ae;switch(Ce){case p0:g(H,ae,de,ye);break;case Kn:b(H,ae,de,ye);break;case v4:H==null&&C(ae,de,ye,Ne);break;case Ve:L(H,ae,de,ye,_e,Se,Ne,Fe,Oe);break;default:Pe&1?x(H,ae,de,ye,_e,Se,Ne,Fe,Oe):Pe&6?B(H,ae,de,ye,_e,Se,Ne,Fe,Oe):(Pe&64||Pe&128)&&Ce.process(H,ae,de,ye,_e,Se,Ne,Fe,Oe,le)}Ie!=null&&_e?vp(Ie,H&&H.ref,Se,ae||H,!ae):Ie==null&&H&&H.ref!=null&&vp(H.ref,null,Se,H,!0)},g=(H,ae,de,ye)=>{if(H==null)s(ae.el=i(ae.children),de,ye);else{const _e=ae.el=H.el;ae.children!==H.children&&c(_e,ae.children)}},b=(H,ae,de,ye)=>{H==null?s(ae.el=l(ae.children||""),de,ye):ae.el=H.el},C=(H,ae,de,ye)=>{[H.el,H.anchor]=v(H.children,ae,de,ye,H.el,H.anchor)},w=({el:H,anchor:ae},de,ye)=>{let _e;for(;H&&H!==ae;)_e=h(H),s(H,de,ye),H=_e;s(ae,de,ye)},_=({el:H,anchor:ae})=>{let de;for(;H&&H!==ae;)de=h(H),a(H),H=de;a(ae)},x=(H,ae,de,ye,_e,Se,Ne,Fe,Oe)=>{if(ae.type==="svg"?Ne="svg":ae.type==="math"&&(Ne="mathml"),H==null)E(ae,de,ye,_e,Se,Ne,Fe,Oe);else{const Ce=H.el&&H.el._isVueCE?H.el:null;try{Ce&&Ce._beginPatch(),I(H,ae,_e,Se,Ne,Fe,Oe)}finally{Ce&&Ce._endPatch()}}},E=(H,ae,de,ye,_e,Se,Ne,Fe)=>{let Oe,Ce;const{props:Ie,shapeFlag:Pe,transition:He,dirs:Qe}=H;if(Oe=H.el=r(H.type,Se,Ie&&Ie.is,Ie),Pe&8?u(Oe,H.children):Pe&16&&R(H.children,Oe,null,ye,_e,p4(H,Se),Ne,Fe),Qe&&tu(H,null,ye,"created"),T(Oe,H,H.scopeId,Ne,ye),Ie){for(const De in Ie)De!=="value"&&!up(De)&&o(Oe,De,null,Ie[De],Se,ye);"value"in Ie&&o(Oe,"value",null,Ie.value,Se),(Ce=Ie.onVnodeBeforeMount)&&Fr(Ce,ye,H)}Qe&&tu(H,null,ye,"beforeMount");const rt=QL(_e,He);rt&&He.beforeEnter(Oe),s(Oe,ae,de),((Ce=Ie&&Ie.onVnodeMounted)||rt||Qe)&&la(()=>{Ce&&Fr(Ce,ye,H),rt&&He.enter(Oe),Qe&&tu(H,null,ye,"mounted")},_e)},T=(H,ae,de,ye,_e)=>{if(de&&p(H,de),ye)for(let Se=0;Se<ye.length;Se++)p(H,ye[Se]);if(_e){let Se=_e.subTree;if(ae===Se||X9(Se.type)&&(Se.ssContent===ae||Se.ssFallback===ae)){const Ne=_e.vnode;T(H,Ne,Ne.scopeId,Ne.slotScopeIds,_e.parent)}}},R=(H,ae,de,ye,_e,Se,Ne,Fe,Oe=0)=>{for(let Ce=Oe;Ce<H.length;Ce++){const Ie=H[Ce]=Fe?Di(H[Ce]):ci(H[Ce]);m(null,Ie,ae,de,ye,_e,Se,Ne,Fe)}},I=(H,ae,de,ye,_e,Se,Ne)=>{const Fe=ae.el=H.el;let{patchFlag:Oe,dynamicChildren:Ce,dirs:Ie}=ae;Oe|=H.patchFlag&16;const Pe=H.props||$n,He=ae.props||$n;let Qe;if(de&&nu(de,!1),(Qe=He.onVnodeBeforeUpdate)&&Fr(Qe,de,ae,H),Ie&&tu(ae,H,de,"beforeUpdate"),de&&nu(de,!0),(Pe.innerHTML&&He.innerHTML==null||Pe.textContent&&He.textContent==null)&&u(Fe,""),Ce?M(H.dynamicChildren,Ce,Fe,de,ye,p4(ae,_e),Se):Ne||N(H,ae,Fe,null,de,ye,p4(ae,_e),Se,!1),Oe>0){if(Oe&16)$(Fe,Pe,He,de,_e);else if(Oe&2&&Pe.class!==He.class&&o(Fe,"class",null,He.class,_e),Oe&4&&o(Fe,"style",Pe.style,He.style,_e),Oe&8){const rt=ae.dynamicProps;for(let De=0;De<rt.length;De++){const Ke=rt[De],et=Pe[Ke],Ft=He[Ke];(Ft!==et||Ke==="value")&&o(Fe,Ke,et,Ft,_e,de)}}Oe&1&&H.children!==ae.children&&u(Fe,ae.children)}else!Ne&&Ce==null&&$(Fe,Pe,He,de,_e);((Qe=He.onVnodeUpdated)||Ie)&&la(()=>{Qe&&Fr(Qe,de,ae,H),Ie&&tu(ae,H,de,"updated")},ye)},M=(H,ae,de,ye,_e,Se,Ne)=>{for(let Fe=0;Fe<ae.length;Fe++){const Oe=H[Fe],Ce=ae[Fe],Ie=Oe.el&&(Oe.type===Ve||!uu(Oe,Ce)||Oe.shapeFlag&198)?d(Oe.el):de;m(Oe,Ce,Ie,null,ye,_e,Se,Ne,!0)}},$=(H,ae,de,ye,_e)=>{if(ae!==de){if(ae!==$n)for(const Se in ae)!up(Se)&&!(Se in de)&&o(H,Se,ae[Se],null,_e,ye);for(const Se in de){if(up(Se))continue;const Ne=de[Se],Fe=ae[Se];Ne!==Fe&&Se!=="value"&&o(H,Se,Fe,Ne,_e,ye)}"value"in de&&o(H,"value",ae.value,de.value,_e)}},L=(H,ae,de,ye,_e,Se,Ne,Fe,Oe)=>{const Ce=ae.el=H?H.el:i(""),Ie=ae.anchor=H?H.anchor:i("");let{patchFlag:Pe,dynamicChildren:He,slotScopeIds:Qe}=ae;Qe&&(Fe=Fe?Fe.concat(Qe):Qe),H==null?(s(Ce,de,ye),s(Ie,de,ye),R(ae.children||[],de,Ie,_e,Se,Ne,Fe,Oe)):Pe>0&&Pe&64&&He&&H.dynamicChildren&&H.dynamicChildren.length===He.length?(M(H.dynamicChildren,He,de,_e,Se,Ne,Fe),(ae.key!=null||_e&&ae===_e.subTree)&&f8(H,ae,!0)):N(H,ae,de,Ie,_e,Se,Ne,Fe,Oe)},B=(H,ae,de,ye,_e,Se,Ne,Fe,Oe)=>{ae.slotScopeIds=Fe,H==null?ae.shapeFlag&512?_e.ctx.activate(ae,de,ye,Ne,Oe):q(ae,de,ye,_e,Se,Ne,Oe):J(H,ae,Oe)},q=(H,ae,de,ye,_e,Se,Ne)=>{const Fe=H.component=rO(H,ye,_e);if(db(H)&&(Fe.ctx.renderer=le),iO(Fe,!1,Ne),Fe.asyncDep){if(_e&&_e.registerDep(Fe,Y,Ne),!H.el){const Oe=Fe.subTree=W(Kn);b(null,Oe,ae,de),H.placeholder=Oe.el}}else Y(Fe,H,ae,de,_e,Se,Ne)},J=(H,ae,de)=>{const ye=ae.component=H.component;if(WL(H,ae,de))if(ye.asyncDep&&!ye.asyncResolved){O(ye,ae,de);return}else ye.next=ae,ye.update();else ae.el=H.el,ye.vnode=ae},Y=(H,ae,de,ye,_e,Se,Ne)=>{const Fe=()=>{if(H.isMounted){let{next:Pe,bu:He,u:Qe,parent:rt,vnode:De}=H;{const at=G9(H);if(at){Pe&&(Pe.el=De.el,O(H,Pe,Ne)),at.asyncDep.then(()=>{la(()=>{H.isUnmounted||Ce()},_e)});return}}let Ke=Pe,et;nu(H,!1),Pe?(Pe.el=De.el,O(H,Pe,Ne)):Pe=De,He&&j2(He),(et=Pe.props&&Pe.props.onVnodeBeforeUpdate)&&Fr(et,rt,Pe,De),nu(H,!0);const Ft=W_(H),Ht=H.subTree;H.subTree=Ft,m(Ht,Ft,d(Ht.el),te(Ht),H,_e,Se),Pe.el=Ft.el,Ke===null&&jL(H,Ft.el),Qe&&la(Qe,_e),(et=Pe.props&&Pe.props.onVnodeUpdated)&&la(()=>Fr(et,rt,Pe,De),_e)}else{let Pe;const{el:He,props:Qe}=ae,{bm:rt,m:De,parent:Ke,root:et,type:Ft}=H,Ht=Rf(ae);nu(H,!1),rt&&j2(rt),!Ht&&(Pe=Qe&&Qe.onVnodeBeforeMount)&&Fr(Pe,Ke,ae),nu(H,!0);{et.ce&&et.ce._hasShadowRoot()&&et.ce._injectChildStyle(Ft);const at=H.subTree=W_(H);m(null,at,de,ye,H,_e,Se),ae.el=at.el}if(De&&la(De,_e),!Ht&&(Pe=Qe&&Qe.onVnodeMounted)){const at=ae;la(()=>Fr(Pe,Ke,at),_e)}(ae.shapeFlag&256||Ke&&Rf(Ke.vnode)&&Ke.vnode.shapeFlag&256)&&H.a&&la(H.a,_e),H.isMounted=!0,ae=de=ye=null}};H.scope.on();const Oe=H.effect=new Qx(Fe);H.scope.off();const Ce=H.update=Oe.run.bind(Oe),Ie=H.job=Oe.runIfDirty.bind(Oe);Ie.i=H,Ie.id=H.uid,Oe.scheduler=()=>n8(Ie),nu(H,!0),Ce()},O=(H,ae,de)=>{ae.component=H;const ye=H.vnode.props;H.vnode=ae,H.next=null,UL(H,ae.props,ye,de),XL(H,ae.children,de),Cl(),R_(H),Sl()},N=(H,ae,de,ye,_e,Se,Ne,Fe,Oe=!1)=>{const Ce=H&&H.children,Ie=H?H.shapeFlag:0,Pe=ae.children,{patchFlag:He,shapeFlag:Qe}=ae;if(He>0){if(He&128){z(Ce,Pe,de,ye,_e,Se,Ne,Fe,Oe);return}else if(He&256){V(Ce,Pe,de,ye,_e,Se,Ne,Fe,Oe);return}}Qe&8?(Ie&16&&he(Ce,_e,Se),Pe!==Ce&&u(de,Pe)):Ie&16?Qe&16?z(Ce,Pe,de,ye,_e,Se,Ne,Fe,Oe):he(Ce,_e,Se,!0):(Ie&8&&u(de,""),Qe&16&&R(Pe,de,ye,_e,Se,Ne,Fe,Oe))},V=(H,ae,de,ye,_e,Se,Ne,Fe,Oe)=>{H=H||Tf,ae=ae||Tf;const Ce=H.length,Ie=ae.length,Pe=Math.min(Ce,Ie);let He;for(He=0;He<Pe;He++){const Qe=ae[He]=Oe?Di(ae[He]):ci(ae[He]);m(H[He],Qe,de,null,_e,Se,Ne,Fe,Oe)}Ce>Ie?he(H,_e,Se,!0,!1,Pe):R(ae,de,ye,_e,Se,Ne,Fe,Oe,Pe)},z=(H,ae,de,ye,_e,Se,Ne,Fe,Oe)=>{let Ce=0;const Ie=ae.length;let Pe=H.length-1,He=Ie-1;for(;Ce<=Pe&&Ce<=He;){const Qe=H[Ce],rt=ae[Ce]=Oe?Di(ae[Ce]):ci(ae[Ce]);if(uu(Qe,rt))m(Qe,rt,de,null,_e,Se,Ne,Fe,Oe);else break;Ce++}for(;Ce<=Pe&&Ce<=He;){const Qe=H[Pe],rt=ae[He]=Oe?Di(ae[He]):ci(ae[He]);if(uu(Qe,rt))m(Qe,rt,de,null,_e,Se,Ne,Fe,Oe);else break;Pe--,He--}if(Ce>Pe){if(Ce<=He){const Qe=He+1,rt=Qe<Ie?ae[Qe].el:ye;for(;Ce<=He;)m(null,ae[Ce]=Oe?Di(ae[Ce]):ci(ae[Ce]),de,rt,_e,Se,Ne,Fe,Oe),Ce++}}else if(Ce>He)for(;Ce<=Pe;)Q(H[Ce],_e,Se,!0),Ce++;else{const Qe=Ce,rt=Ce,De=new Map;for(Ce=rt;Ce<=He;Ce++){const xe=ae[Ce]=Oe?Di(ae[Ce]):ci(ae[Ce]);xe.key!=null&&De.set(xe.key,Ce)}let Ke,et=0;const Ft=He-rt+1;let Ht=!1,at=0;const vt=new Array(Ft);for(Ce=0;Ce<Ft;Ce++)vt[Ce]=0;for(Ce=Qe;Ce<=Pe;Ce++){const xe=H[Ce];if(et>=Ft){Q(xe,_e,Se,!0);continue}let Ue;if(xe.key!=null)Ue=De.get(xe.key);else for(Ke=rt;Ke<=He;Ke++)if(vt[Ke-rt]===0&&uu(xe,ae[Ke])){Ue=Ke;break}Ue===void 0?Q(xe,_e,Se,!0):(vt[Ue-rt]=Ce+1,Ue>=at?at=Ue:Ht=!0,m(xe,ae[Ue],de,null,_e,Se,Ne,Fe,Oe),et++)}const Et=Ht?eO(vt):Tf;for(Ke=Et.length-1,Ce=Ft-1;Ce>=0;Ce--){const xe=rt+Ce,Ue=ae[xe],we=ae[xe+1],Ge=xe+1<Ie?we.el||Y9(we):ye;vt[Ce]===0?m(null,Ue,de,Ge,_e,Se,Ne,Fe,Oe):Ht&&(Ke<0||Ce!==Et[Ke]?G(Ue,de,Ge,2):Ke--)}}},G=(H,ae,de,ye,_e=null)=>{const{el:Se,type:Ne,transition:Fe,children:Oe,shapeFlag:Ce}=H;if(Ce&6){G(H.component.subTree,ae,de,ye);return}if(Ce&128){H.suspense.move(ae,de,ye);return}if(Ce&64){Ne.move(H,ae,de,le);return}if(Ne===Ve){s(Se,ae,de);for(let Pe=0;Pe<Oe.length;Pe++)G(Oe[Pe],ae,de,ye);s(H.anchor,ae,de);return}if(Ne===v4){w(H,ae,de);return}if(ye!==2&&Ce&1&&Fe)if(ye===0)Fe.beforeEnter(Se),s(Se,ae,de),la(()=>Fe.enter(Se),_e);else{const{leave:Pe,delayLeave:He,afterLeave:Qe}=Fe,rt=()=>{H.ctx.isUnmounted?a(Se):s(Se,ae,de)},De=()=>{Se._isLeaving&&Se[Kr](!0),Pe(Se,()=>{rt(),Qe&&Qe()})};He?He(Se,rt,De):De()}else s(Se,ae,de)},Q=(H,ae,de,ye=!1,_e=!1)=>{const{type:Se,props:Ne,ref:Fe,children:Oe,dynamicChildren:Ce,shapeFlag:Ie,patchFlag:Pe,dirs:He,cacheIndex:Qe}=H;if(Pe===-2&&(_e=!1),Fe!=null&&(Cl(),vp(Fe,null,de,H,!0),Sl()),Qe!=null&&(ae.renderCache[Qe]=void 0),Ie&256){ae.ctx.deactivate(H);return}const rt=Ie&1&&He,De=!Rf(H);let Ke;if(De&&(Ke=Ne&&Ne.onVnodeBeforeUnmount)&&Fr(Ke,ae,H),Ie&6)se(H.component,de,ye);else{if(Ie&128){H.suspense.unmount(de,ye);return}rt&&tu(H,null,ae,"beforeUnmount"),Ie&64?H.type.remove(H,ae,de,le,ye):Ce&&!Ce.hasOnce&&(Se!==Ve||Pe>0&&Pe&64)?he(Ce,ae,de,!1,!0):(Se===Ve&&Pe&384||!_e&&Ie&16)&&he(Oe,ae,de),ye&&K(H)}(De&&(Ke=Ne&&Ne.onVnodeUnmounted)||rt)&&la(()=>{Ke&&Fr(Ke,ae,H),rt&&tu(H,null,ae,"unmounted")},de)},K=H=>{const{type:ae,el:de,anchor:ye,transition:_e}=H;if(ae===Ve){ee(de,ye);return}if(ae===v4){_(H);return}const Se=()=>{a(de),_e&&!_e.persisted&&_e.afterLeave&&_e.afterLeave()};if(H.shapeFlag&1&&_e&&!_e.persisted){const{leave:Ne,delayLeave:Fe}=_e,Oe=()=>Ne(de,Se);Fe?Fe(H.el,Se,Oe):Oe()}else Se()},ee=(H,ae)=>{let de;for(;H!==ae;)de=h(H),a(H),H=de;a(ae)},se=(H,ae,de)=>{const{bum:ye,scope:_e,job:Se,subTree:Ne,um:Fe,m:Oe,a:Ce}=H;U_(Oe),U_(Ce),ye&&j2(ye),_e.stop(),Se&&(Se.flags|=8,Q(Ne,H,ae,de)),Fe&&la(Fe,ae),la(()=>{H.isUnmounted=!0},ae)},he=(H,ae,de,ye=!1,_e=!1,Se=0)=>{for(let Ne=Se;Ne<H.length;Ne++)Q(H[Ne],ae,de,ye,_e)},te=H=>{if(H.shapeFlag&6)return te(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const ae=h(H.anchor||H.el),de=ae&&ae[C9];return de?h(de):ae};let pe=!1;const fe=(H,ae,de)=>{let ye;H==null?ae._vnode&&(Q(ae._vnode,null,null,!0),ye=ae._vnode.component):m(ae._vnode||null,H,ae,null,null,null,de),ae._vnode=H,pe||(pe=!0,R_(ye),b9(),pe=!1)},le={p:m,um:Q,m:G,r:K,mt:q,mc:R,pc:N,pbc:M,n:te,o:e};return{render:fe,hydrate:void 0,createApp:DL(fe)}}function p4({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function nu({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function QL(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function f8(e,t,n=!1){const s=e.children,a=t.children;if(ke(s)&&ke(a))for(let o=0;o<s.length;o++){const r=s[o];let i=a[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=a[o]=Di(a[o]),i.el=r.el),!n&&i.patchFlag!==-2&&f8(r,i)),i.type===p0&&(i.patchFlag===-1&&(i=a[o]=Di(i)),i.el=r.el),i.type===Kn&&!i.el&&(i.el=r.el)}}function eO(e){const t=e.slice(),n=[0];let s,a,o,r,i;const l=e.length;for(s=0;s<l;s++){const c=e[s];if(c!==0){if(a=n[n.length-1],e[a]<c){t[s]=a,n.push(s);continue}for(o=0,r=n.length-1;o<r;)i=o+r>>1,e[n[i]]<c?o=i+1:r=i;c<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function G9(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:G9(t)}function U_(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Y9(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Y9(t.subTree):null}const X9=e=>e.__isSuspense;function tO(e,t){t&&t.pendingBranch?ke(e)?t.effects.push(...e):t.effects.push(e):vL(e)}const Ve=Symbol.for("v-fgt"),p0=Symbol.for("v-txt"),Kn=Symbol.for("v-cmt"),v4=Symbol.for("v-stc"),gp=[];let wo=null;function S(e=!1){gp.push(wo=e?null:[])}function nO(){gp.pop(),wo=gp[gp.length-1]||null}let Lp=1;function qg(e,t=!1){Lp+=e,e<0&&wo&&t&&(wo.hasOnce=!0)}function J9(e){return e.dynamicChildren=Lp>0?wo||Tf:null,nO(),Lp>0&&wo&&wo.push(e),e}function P(e,t,n,s,a,o){return J9(A(e,t,n,s,a,o,!0))}function ce(e,t,n,s,a){return J9(W(e,t,n,s,a,!0))}function un(e){return e?e.__v_isVNode===!0:!1}function uu(e,t){return e.type===t.type&&e.key===t.key}const Z9=({key:e})=>e??null,q2=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Xe(e)||vn(e)||nt(e)?{i:Ys,r:e,k:t,f:!!n}:e:null);function A(e,t=null,n=null,s=0,a=null,o=e===Ve?0:1,r=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Z9(t),ref:t&&q2(t),scopeId:w9,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Ys};return i?(h8(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Xe(n)?8:16),Lp>0&&!r&&wo&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&wo.push(l),l}const W=sO;function sO(e,t=null,n=null,s=0,a=null,o=!1){if((!e||e===I9)&&(e=Kn),un(e)){const i=gi(e,t,!0);return n&&h8(i,n),Lp>0&&!o&&wo&&(i.shapeFlag&6?wo[wo.indexOf(e)]=i:wo.push(i)),i.patchFlag=-2,i}if(dO(e)&&(e=e.__vccOpts),t){t=ml(t);let{class:i,style:l}=t;i&&!Xe(i)&&(t.class=D(i)),ft(l)&&(cb(l)&&!ke(l)&&(l=ms({},l)),t.style=tt(l))}const r=Xe(e)?1:X9(e)?128:S9(e)?64:ft(e)?4:nt(e)?2:0;return A(e,t,n,s,a,r,o,!0)}function ml(e){return e?cb(e)||H9(e)?ms({},e):e:null}function gi(e,t,n=!1,s=!1){const{props:a,ref:o,patchFlag:r,children:i,transition:l}=e,c=t?_t(a||{},t):a,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Z9(c),ref:t&&t.ref?n&&o?ke(o)?o.concat(q2(t)):[o,q2(t)]:q2(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ve?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&gi(e.ssContent),ssFallback:e.ssFallback&&gi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&$d(u,l.clone(u)),u}function We(e=" ",t=0){return W(p0,null,e,t)}function ie(e="",t=!1){return t?(S(),ce(Kn,null,e)):W(Kn,null,e)}function ci(e){return e==null||typeof e=="boolean"?W(Kn):ke(e)?W(Ve,null,e.slice()):un(e)?Di(e):W(p0,null,String(e))}function Di(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gi(e)}function h8(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ke(t))n=16;else if(typeof t=="object")if(s&65){const a=t.default;a&&(a._c&&(a._d=!1),h8(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!H9(t)?t._ctx=Ys:a===3&&Ys&&(Ys.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else nt(t)?(t={default:t,_ctx:Ys},n=32):(t=String(t),s&64?(n=16,t=[We(t)]):n=8);e.children=t,e.shapeFlag|=n}function _t(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const a in s)if(a==="class")t.class!==s.class&&(t.class=D([t.class,s.class]));else if(a==="style")t.style=tt([t.style,s.style]);else if(nb(a)){const o=t[a],r=s[a];r&&o!==r&&!(ke(o)&&o.includes(r))&&(t[a]=o?[].concat(o,r):r)}else a!==""&&(t[a]=s[a])}return t}function Fr(e,t,n,s=null){_r(e,t,7,[n,s])}const aO=D9();let oO=0;function rO(e,t,n){const s=e.type,a=(t?t.appContext:e.appContext)||aO,o={uid:oO++,vnode:e,type:s,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Xx(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:j9(s,a),emitsOptions:F9(s,a),emit:null,emitted:null,propsDefaults:$n,inheritAttrs:s.inheritAttrs,ctx:$n,data:$n,props:$n,attrs:$n,slots:$n,refs:$n,setupState:$n,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=BL.bind(null,o),e.ce&&e.ce(o),o}let pa=null;const Ct=()=>pa||Ys;let Gg,gy;{const e=rb(),t=(n,s)=>{let a;return(a=e[n])||(a=e[n]=[]),a.push(s),o=>{a.length>1?a.forEach(r=>r(o)):a[0](o)}};Gg=t("__VUE_INSTANCE_SETTERS__",n=>pa=n),gy=t("__VUE_SSR_SETTERS__",n=>Op=n)}const Fm=e=>{const t=pa;return Gg(e),e.scope.on(),()=>{e.scope.off(),Gg(t)}},q_=()=>{pa&&pa.scope.off(),Gg(null)};function Q9(e){return e.vnode.shapeFlag&4}let Op=!1;function iO(e,t=!1,n=!1){t&&gy(t);const{props:s,children:a}=e.vnode,o=Q9(e);KL(e,s,o,t),YL(e,a,n||t);const r=o?lO(e,t):void 0;return t&&gy(!1),r}function lO(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,PL);const{setup:s}=n;if(s){Cl();const a=e.setupContext=s.length>1?tE(e):null,o=Fm(e),r=$m(s,e,0,[e.props,a]),i=Ld(r);if(Sl(),o(),(i||e.sp)&&!Rf(e)&&P9(e),i){if(r.then(q_,q_),t)return r.then(l=>{G_(e,l)}).catch(l=>{ub(l,e,0)});e.asyncDep=r}else G_(e,r)}else eE(e)}function G_(e,t,n){nt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(e.setupState=p9(t)),eE(e)}function eE(e,t,n){const s=e.type;e.render||(e.render=s.render||Yt);{const a=Fm(e);Cl();try{RL(e)}finally{Sl(),a()}}}const cO={get(e,t){return ha(e,"get",""),e[t]}};function tE(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,cO),slots:e.slots,emit:e.emit,expose:t}}function vb(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(p9(di(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mp)return mp[n](e)},has(t,n){return n in t||n in mp}})):e.proxy}function uO(e,t=!0){return nt(e)?e.displayName||e.name:e.name||t&&e.__name}function dO(e){return nt(e)&&"__vccOpts"in e}const k=(e,t)=>uL(e,t,Op);function ot(e,t,n){try{qg(-1);const s=arguments.length;return s===2?ft(t)&&!ke(t)?un(t)?W(e,null,[t]):W(e,t):W(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&un(n)&&(n=[n]),W(e,t,n))}finally{qg(1)}}const fO="3.5.28",hO=Yt;/**
* @vue/runtime-dom v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let by;const Y_=typeof window<"u"&&window.trustedTypes;if(Y_)try{by=Y_.createPolicy("vue",{createHTML:e=>e})}catch{}const nE=by?e=>by.createHTML(e):e=>e,pO="http://www.w3.org/2000/svg",vO="http://www.w3.org/1998/Math/MathML",Oi=typeof document<"u"?document:null,X_=Oi&&Oi.createElement("template"),mO={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const a=t==="svg"?Oi.createElementNS(pO,e):t==="mathml"?Oi.createElementNS(vO,e):n?Oi.createElement(e,{is:n}):Oi.createElement(e);return e==="select"&&s&&s.multiple!=null&&a.setAttribute("multiple",s.multiple),a},createText:e=>Oi.createTextNode(e),createComment:e=>Oi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Oi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,a,o){const r=n?n.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===o||!(a=a.nextSibling)););else{X_.innerHTML=nE(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=X_.content;if(s==="svg"||s==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Hl="transition",M0="animation",Yh=Symbol("_vtc"),sE={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},aE=ms({},k9,sE),gO=e=>(e.displayName="Transition",e.props=aE,e),bs=gO((e,{slots:t})=>ot(CL,oE(e),t)),su=(e,t=[])=>{ke(e)?e.forEach(n=>n(...t)):e&&e(...t)},J_=e=>e?ke(e)?e.some(t=>t.length>1):e.length>1:!1;function oE(e){const t={};for(const L in e)L in sE||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:s,duration:a,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:u=i,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,v=bO(a),m=v&&v[0],g=v&&v[1],{onBeforeEnter:b,onEnter:C,onEnterCancelled:w,onLeave:_,onLeaveCancelled:x,onBeforeAppear:E=b,onAppear:T=C,onAppearCancelled:R=w}=t,I=(L,B,q,J)=>{L._enterCancelled=J,Kl(L,B?u:i),Kl(L,B?c:r),q&&q()},M=(L,B)=>{L._isLeaving=!1,Kl(L,d),Kl(L,p),Kl(L,h),B&&B()},$=L=>(B,q)=>{const J=L?T:C,Y=()=>I(B,L,q);su(J,[B,Y]),Z_(()=>{Kl(B,L?l:o),Hr(B,L?u:i),J_(J)||Q_(B,s,m,Y)})};return ms(t,{onBeforeEnter(L){su(b,[L]),Hr(L,o),Hr(L,r)},onBeforeAppear(L){su(E,[L]),Hr(L,l),Hr(L,c)},onEnter:$(!1),onAppear:$(!0),onLeave(L,B){L._isLeaving=!0;const q=()=>M(L,B);Hr(L,d),L._enterCancelled?(Hr(L,h),yy(L)):(yy(L),Hr(L,h)),Z_(()=>{L._isLeaving&&(Kl(L,d),Hr(L,p),J_(_)||Q_(L,s,g,q))}),su(_,[L,q])},onEnterCancelled(L){I(L,!1,void 0,!0),su(w,[L])},onAppearCancelled(L){I(L,!0,void 0,!0),su(R,[L])},onLeaveCancelled(L){M(L),su(x,[L])}})}function bO(e){if(e==null)return null;if(ft(e))return[m4(e.enter),m4(e.leave)];{const t=m4(e);return[t,t]}}function m4(e){return RI(e)}function Hr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Yh]||(e[Yh]=new Set)).add(t)}function Kl(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Yh];n&&(n.delete(t),n.size||(e[Yh]=void 0))}function Z_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let yO=0;function Q_(e,t,n,s){const a=e._endId=++yO,o=()=>{a===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:i,propCount:l}=rE(e,t);if(!r)return s();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,h),o()},h=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},i+1),e.addEventListener(c,h)}function rE(e,t){const n=window.getComputedStyle(e),s=v=>(n[v]||"").split(", "),a=s(`${Hl}Delay`),o=s(`${Hl}Duration`),r=eC(a,o),i=s(`${M0}Delay`),l=s(`${M0}Duration`),c=eC(i,l);let u=null,d=0,h=0;t===Hl?r>0&&(u=Hl,d=r,h=o.length):t===M0?c>0&&(u=M0,d=c,h=l.length):(d=Math.max(r,c),u=d>0?r>c?Hl:M0:null,h=u?u===Hl?o.length:l.length:0);const p=u===Hl&&/\b(?:transform|all)(?:,|$)/.test(s(`${Hl}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:p}}function eC(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>tC(n)+tC(e[s])))}function tC(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function yy(e){return(e?e.ownerDocument:document).body.offsetHeight}function wO(e,t,n){const s=e[Yh];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Yg=Symbol("_vod"),iE=Symbol("_vsh"),Bt={name:"show",beforeMount(e,{value:t},{transition:n}){e[Yg]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):P0(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),P0(e,!0),s.enter(e)):s.leave(e,()=>{P0(e,!1)}):P0(e,t))},beforeUnmount(e,{value:t}){P0(e,t)}};function P0(e,t){e.style.display=t?e[Yg]:"none",e[iE]=!t}const _O=Symbol(""),CO=/(?:^|;)\s*display\s*:/;function SO(e,t,n){const s=e.style,a=Xe(n);let o=!1;if(n&&!a){if(t)if(Xe(t))for(const r of t.split(";")){const i=r.slice(0,r.indexOf(":")).trim();n[i]==null&&G2(s,i,"")}else for(const r in t)n[r]==null&&G2(s,r,"");for(const r in n)r==="display"&&(o=!0),G2(s,r,n[r])}else if(a){if(t!==n){const r=s[_O];r&&(n+=";"+r),s.cssText=n,o=CO.test(n)}}else t&&e.removeAttribute("style");Yg in e&&(e[Yg]=o?s.display:"",e[iE]&&(s.display="none"))}const nC=/\s*!important$/;function G2(e,t,n){if(ke(n))n.forEach(s=>G2(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=xO(e,t);nC.test(n)?e.setProperty(Ll(s),n.replace(nC,""),"important"):e[s]=n}}const sC=["Webkit","Moz","ms"],g4={};function xO(e,t){const n=g4[t];if(n)return n;let s=Oa(t);if(s!=="filter"&&s in e)return g4[t]=s;s=Nm(s);for(let a=0;a<sC.length;a++){const o=sC[a]+s;if(o in e)return g4[t]=o}return t}const aC="http://www.w3.org/1999/xlink";function oC(e,t,n,s,a,o=DI(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(aC,t.slice(6,t.length)):e.setAttributeNS(aC,t,n):n==null||o&&!Ux(n)?e.removeAttribute(t):e.setAttribute(t,o?"":yr(n)?String(n):n)}function rC(e,t,n,s,a){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?nE(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(i!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=Ux(n):n==null&&i==="string"?(n="",r=!0):i==="number"&&(n=0,r=!0)}try{e[t]=n}catch{}r&&e.removeAttribute(a||t)}function Ql(e,t,n,s){e.addEventListener(t,n,s)}function EO(e,t,n,s){e.removeEventListener(t,n,s)}const iC=Symbol("_vei");function kO(e,t,n,s,a=null){const o=e[iC]||(e[iC]={}),r=o[t];if(s&&r)r.value=s;else{const[i,l]=AO(t);if(s){const c=o[t]=PO(s,a);Ql(e,i,c,l)}else r&&(EO(e,i,r,l),o[t]=void 0)}}const lC=/(?:Once|Passive|Capture)$/;function AO(e){let t;if(lC.test(e)){t={};let s;for(;s=e.match(lC);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ll(e.slice(2)),t]}let b4=0;const TO=Promise.resolve(),MO=()=>b4||(TO.then(()=>b4=0),b4=Date.now());function PO(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;_r(RO(s,n.value),t,5,[s])};return n.value=e,n.attached=MO(),n}function RO(e,t){if(ke(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>a=>!a._stopped&&s&&s(a))}else return t}const cC=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,IO=(e,t,n,s,a,o)=>{const r=a==="svg";t==="class"?wO(e,s,r):t==="style"?SO(e,n,s):nb(t)?q6(t)||kO(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):LO(e,t,s,r))?(rC(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&oC(e,t,s,r,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Xe(s))?rC(e,Oa(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),oC(e,t,s,r))};function LO(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&cC(t)&&nt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return cC(t)&&Xe(n)?!1:t in e}const lE=new WeakMap,cE=new WeakMap,Xg=Symbol("_moveCb"),uC=Symbol("_enterCb"),OO=e=>(delete e.props.mode,e),NO=OO({name:"TransitionGroup",props:ms({},aE,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ct(),s=E9();let a,o;return Pr(()=>{if(!a.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!BO(a[0].el,n.vnode.el,r)){a=[];return}a.forEach($O),a.forEach(DO);const i=a.filter(FO);yy(n.vnode.el),i.forEach(l=>{const c=l.el,u=c.style;Hr(c,r),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Xg]=h=>{h&&h.target!==c||(!h||h.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[Xg]=null,Kl(c,r))};c.addEventListener("transitionend",d)}),a=[]}),()=>{const r=dn(e),i=oE(r);let l=r.tag||Ve;if(a=[],o)for(let c=0;c<o.length;c++){const u=o[c];u.el&&u.el instanceof Element&&(a.push(u),$d(u,Ip(u,i,s,n)),lE.set(u,dE(u.el)))}o=t.default?a8(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&$d(u,Ip(u,i,s,n))}return W(l,null,o)}}}),uE=NO;function $O(e){const t=e.el;t[Xg]&&t[Xg](),t[uC]&&t[uC]()}function DO(e){cE.set(e,dE(e.el))}function FO(e){const t=lE.get(e),n=cE.get(e),s=t.left-n.left,a=t.top-n.top;if(s||a){const o=e.el,r=o.style,i=o.getBoundingClientRect();let l=1,c=1;return o.offsetWidth&&(l=i.width/o.offsetWidth),o.offsetHeight&&(c=i.height/o.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(l-1)<.01&&(l=1),Math.abs(c-1)<.01&&(c=1),r.transform=r.webkitTransform=`translate(${s/l}px,${a/c}px)`,r.transitionDuration="0s",e}}function dE(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function BO(e,t,n){const s=e.cloneNode(),a=e[Yh];a&&a.forEach(i=>{i.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(i=>i&&s.classList.add(i)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:r}=rE(s);return o.removeChild(s),r}const Xh=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ke(t)?n=>j2(t,n):t};function VO(e){e.target.composing=!0}function dC(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const gl=Symbol("_assign");function fC(e,t,n){return t&&(e=e.trim()),n&&(e=Y6(e)),e}const fE={created(e,{modifiers:{lazy:t,trim:n,number:s}},a){e[gl]=Xh(a);const o=s||a.props&&a.props.type==="number";Ql(e,t?"change":"input",r=>{r.target.composing||e[gl](fC(e.value,n,o))}),(n||o)&&Ql(e,"change",()=>{e.value=fC(e.value,n,o)}),t||(Ql(e,"compositionstart",VO),Ql(e,"compositionend",dC),Ql(e,"change",dC))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:a,number:o}},r){if(e[gl]=Xh(r),e.composing)return;const i=(o||e.type==="number")&&!/^0\d/.test(e.value)?Y6(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||a&&e.value.trim()===l)||(e.value=l))}},hE={deep:!0,created(e,t,n){e[gl]=Xh(n),Ql(e,"change",()=>{const s=e._modelValue,a=vE(e),o=e.checked,r=e[gl];if(ke(s)){const i=qx(s,a),l=i!==-1;if(o&&!l)r(s.concat(a));else if(!o&&l){const c=[...s];c.splice(i,1),r(c)}}else if(sb(s)){const i=new Set(s);o?i.add(a):i.delete(a),r(i)}else r(mE(e,o))})},mounted:hC,beforeUpdate(e,t,n){e[gl]=Xh(n),hC(e,t,n)}};function hC(e,{value:t,oldValue:n},s){e._modelValue=t;let a;if(ke(t))a=qx(t,s.props.value)>-1;else if(sb(t))a=t.has(s.props.value);else{if(t===n)return;a=Od(t,mE(e,!0))}e.checked!==a&&(e.checked=a)}const pE={created(e,{value:t},n){e.checked=Od(t,n.props.value),e[gl]=Xh(n),Ql(e,"change",()=>{e[gl](vE(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[gl]=Xh(s),t!==n&&(e.checked=Od(t,s.props.value))}};function vE(e){return"_value"in e?e._value:e.value}function mE(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const zO=["ctrl","shift","alt","meta"],HO={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>zO.some(n=>e[`${n}Key`]&&!t.includes(n))},it=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(a,...o)=>{for(let r=0;r<t.length;r++){const i=HO[t[r]];if(i&&i(a,t))return}return e(a,...o)})},WO={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ln=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=a=>{if(!("key"in a))return;const o=Ll(a.key);if(t.some(r=>r===o||WO[r]===o))return e(a)})},jO=ms({patchProp:IO},mO);let pC;function gE(){return pC||(pC=JL(jO))}const zc=(...e)=>{gE().render(...e)},bE=(...e)=>{const t=gE().createApp(...e),{mount:n}=t;return t.mount=s=>{const a=UO(s);if(!a)return;const o=t._component;!nt(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const r=n(a,!1,KO(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),r},t};function KO(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function UO(e){return Xe(e)?document.querySelector(e):e}const qO="2.13.2",vC=Symbol("INSTALLED_KEY"),yE=Symbol();var wE=typeof global=="object"&&global&&global.Object===Object&&global,GO=typeof self=="object"&&self&&self.Object===Object&&self,Rr=wE||GO||Function("return this")(),qo=Rr.Symbol,_E=Object.prototype,YO=_E.hasOwnProperty,XO=_E.toString,R0=qo?qo.toStringTag:void 0;function JO(e){var t=YO.call(e,R0),n=e[R0];try{e[R0]=void 0;var s=!0}catch{}var a=XO.call(e);return s&&(t?e[R0]=n:delete e[R0]),a}var ZO=Object.prototype,QO=ZO.toString;function eN(e){return QO.call(e)}var tN="[object Null]",nN="[object Undefined]",mC=qo?qo.toStringTag:void 0;function Yd(e){return e==null?e===void 0?nN:tN:mC&&mC in Object(e)?JO(e):eN(e)}function bi(e){return e!=null&&typeof e=="object"}var sN="[object Symbol]";function mb(e){return typeof e=="symbol"||bi(e)&&Yd(e)==sN}function p8(e,t){for(var n=-1,s=e==null?0:e.length,a=Array(s);++n<s;)a[n]=t(e[n],n,e);return a}var $a=Array.isArray,gC=qo?qo.prototype:void 0,bC=gC?gC.toString:void 0;function CE(e){if(typeof e=="string")return e;if($a(e))return p8(e,CE)+"";if(mb(e))return bC?bC.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var aN=/\s/;function oN(e){for(var t=e.length;t--&&aN.test(e.charAt(t)););return t}var rN=/^\s+/;function iN(e){return e&&e.slice(0,oN(e)+1).replace(rN,"")}function Da(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yC=NaN,lN=/^[-+]0x[0-9a-f]+$/i,cN=/^0b[01]+$/i,uN=/^0o[0-7]+$/i,dN=parseInt;function bp(e){if(typeof e=="number")return e;if(mb(e))return yC;if(Da(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Da(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=iN(e);var n=cN.test(e);return n||uN.test(e)?dN(e.slice(2),n?2:8):lN.test(e)?yC:+e}function v8(e){return e}var fN="[object AsyncFunction]",hN="[object Function]",pN="[object GeneratorFunction]",vN="[object Proxy]";function m8(e){if(!Da(e))return!1;var t=Yd(e);return t==hN||t==pN||t==fN||t==vN}var y4=Rr["__core-js_shared__"],wC=function(){var e=/[^.]+$/.exec(y4&&y4.keys&&y4.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function mN(e){return!!wC&&wC in e}var gN=Function.prototype,bN=gN.toString;function Xd(e){if(e!=null){try{return bN.call(e)}catch{}try{return e+""}catch{}}return""}var yN=/[\\^$.*+?()[\]{}|]/g,wN=/^\[object .+?Constructor\]$/,_N=Function.prototype,CN=Object.prototype,SN=_N.toString,xN=CN.hasOwnProperty,EN=RegExp("^"+SN.call(xN).replace(yN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kN(e){if(!Da(e)||mN(e))return!1;var t=m8(e)?EN:wN;return t.test(Xd(e))}function AN(e,t){return e==null?void 0:e[t]}function Jd(e,t){var n=AN(e,t);return kN(n)?n:void 0}var wy=Jd(Rr,"WeakMap"),_C=Object.create,TN=function(){function e(){}return function(t){if(!Da(t))return{};if(_C)return _C(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function MN(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function PN(){}function SE(e,t){var n=-1,s=e.length;for(t||(t=Array(s));++n<s;)t[n]=e[n];return t}var RN=800,IN=16,LN=Date.now;function ON(e){var t=0,n=0;return function(){var s=LN(),a=IN-(s-n);if(n=s,a>0){if(++t>=RN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function NN(e){return function(){return e}}var Jg=function(){try{var e=Jd(Object,"defineProperty");return e({},"",{}),e}catch{}}(),$N=Jg?function(e,t){return Jg(e,"toString",{configurable:!0,enumerable:!1,value:NN(t),writable:!0})}:v8,xE=ON($N);function DN(e,t){for(var n=-1,s=e==null?0:e.length;++n<s&&t(e[n],n,e)!==!1;);return e}function EE(e,t,n,s){for(var a=e.length,o=n+(s?1:-1);s?o--:++o<a;)if(t(e[o],o,e))return o;return-1}function FN(e){return e!==e}function BN(e,t,n){for(var s=n-1,a=e.length;++s<a;)if(e[s]===t)return s;return-1}function VN(e,t,n){return t===t?BN(e,t,n):EE(e,FN,n)}function zN(e,t){var n=e==null?0:e.length;return!!n&&VN(e,t,0)>-1}var HN=9007199254740991,WN=/^(?:0|[1-9]\d*)$/;function gb(e,t){var n=typeof e;return t=t??HN,!!t&&(n=="number"||n!="symbol"&&WN.test(e))&&e>-1&&e%1==0&&e<t}function g8(e,t,n){t=="__proto__"&&Jg?Jg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Bm(e,t){return e===t||e!==e&&t!==t}var jN=Object.prototype,KN=jN.hasOwnProperty;function b8(e,t,n){var s=e[t];(!(KN.call(e,t)&&Bm(s,n))||n===void 0&&!(t in e))&&g8(e,t,n)}function v0(e,t,n,s){var a=!n;n||(n={});for(var o=-1,r=t.length;++o<r;){var i=t[o],l=void 0;l===void 0&&(l=e[i]),a?g8(n,i,l):b8(n,i,l)}return n}var CC=Math.max;function kE(e,t,n){return t=CC(t===void 0?e.length-1:t,0),function(){for(var s=arguments,a=-1,o=CC(s.length-t,0),r=Array(o);++a<o;)r[a]=s[t+a];a=-1;for(var i=Array(t+1);++a<t;)i[a]=s[a];return i[t]=n(r),MN(e,this,i)}}function AE(e,t){return xE(kE(e,t,v8),e+"")}var UN=9007199254740991;function y8(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=UN}function m0(e){return e!=null&&y8(e.length)&&!m8(e)}function qN(e,t,n){if(!Da(n))return!1;var s=typeof t;return(s=="number"?m0(n)&&gb(t,n.length):s=="string"&&t in n)?Bm(n[t],e):!1}function GN(e){return AE(function(t,n){var s=-1,a=n.length,o=a>1?n[a-1]:void 0,r=a>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,r&&qN(n[0],n[1],r)&&(o=a<3?void 0:o,a=1),t=Object(t);++s<a;){var i=n[s];i&&e(t,i,s,o)}return t})}var YN=Object.prototype;function w8(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||YN;return e===n}function XN(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}var JN="[object Arguments]";function SC(e){return bi(e)&&Yd(e)==JN}var TE=Object.prototype,ZN=TE.hasOwnProperty,QN=TE.propertyIsEnumerable,Np=SC(function(){return arguments}())?SC:function(e){return bi(e)&&ZN.call(e,"callee")&&!QN.call(e,"callee")};function e$(){return!1}var ME=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xC=ME&&typeof module=="object"&&module&&!module.nodeType&&module,t$=xC&&xC.exports===ME,EC=t$?Rr.Buffer:void 0,n$=EC?EC.isBuffer:void 0,$p=n$||e$,s$="[object Arguments]",a$="[object Array]",o$="[object Boolean]",r$="[object Date]",i$="[object Error]",l$="[object Function]",c$="[object Map]",u$="[object Number]",d$="[object Object]",f$="[object RegExp]",h$="[object Set]",p$="[object String]",v$="[object WeakMap]",m$="[object ArrayBuffer]",g$="[object DataView]",b$="[object Float32Array]",y$="[object Float64Array]",w$="[object Int8Array]",_$="[object Int16Array]",C$="[object Int32Array]",S$="[object Uint8Array]",x$="[object Uint8ClampedArray]",E$="[object Uint16Array]",k$="[object Uint32Array]",jn={};jn[b$]=jn[y$]=jn[w$]=jn[_$]=jn[C$]=jn[S$]=jn[x$]=jn[E$]=jn[k$]=!0;jn[s$]=jn[a$]=jn[m$]=jn[o$]=jn[g$]=jn[r$]=jn[i$]=jn[l$]=jn[c$]=jn[u$]=jn[d$]=jn[f$]=jn[h$]=jn[p$]=jn[v$]=!1;function A$(e){return bi(e)&&y8(e.length)&&!!jn[Yd(e)]}function _8(e){return function(t){return e(t)}}var PE=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yp=PE&&typeof module=="object"&&module&&!module.nodeType&&module,T$=yp&&yp.exports===PE,w4=T$&&wE.process,Jh=function(){try{var e=yp&&yp.require&&yp.require("util").types;return e||w4&&w4.binding&&w4.binding("util")}catch{}}(),kC=Jh&&Jh.isTypedArray,C8=kC?_8(kC):A$,M$=Object.prototype,P$=M$.hasOwnProperty;function RE(e,t){var n=$a(e),s=!n&&Np(e),a=!n&&!s&&$p(e),o=!n&&!s&&!a&&C8(e),r=n||s||a||o,i=r?XN(e.length,String):[],l=i.length;for(var c in e)(t||P$.call(e,c))&&!(r&&(c=="length"||a&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||gb(c,l)))&&i.push(c);return i}function IE(e,t){return function(n){return e(t(n))}}var R$=IE(Object.keys,Object),I$=Object.prototype,L$=I$.hasOwnProperty;function O$(e){if(!w8(e))return R$(e);var t=[];for(var n in Object(e))L$.call(e,n)&&n!="constructor"&&t.push(n);return t}function Vm(e){return m0(e)?RE(e):O$(e)}function N$(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var $$=Object.prototype,D$=$$.hasOwnProperty;function F$(e){if(!Da(e))return N$(e);var t=w8(e),n=[];for(var s in e)s=="constructor"&&(t||!D$.call(e,s))||n.push(s);return n}function zm(e){return m0(e)?RE(e,!0):F$(e)}var B$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V$=/^\w*$/;function S8(e,t){if($a(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||mb(e)?!0:V$.test(e)||!B$.test(e)||t!=null&&e in Object(t)}var Dp=Jd(Object,"create");function z$(){this.__data__=Dp?Dp(null):{},this.size=0}function H$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var W$="__lodash_hash_undefined__",j$=Object.prototype,K$=j$.hasOwnProperty;function U$(e){var t=this.__data__;if(Dp){var n=t[e];return n===W$?void 0:n}return K$.call(t,e)?t[e]:void 0}var q$=Object.prototype,G$=q$.hasOwnProperty;function Y$(e){var t=this.__data__;return Dp?t[e]!==void 0:G$.call(t,e)}var X$="__lodash_hash_undefined__";function J$(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Dp&&t===void 0?X$:t,this}function Dd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}Dd.prototype.clear=z$;Dd.prototype.delete=H$;Dd.prototype.get=U$;Dd.prototype.has=Y$;Dd.prototype.set=J$;function Z$(){this.__data__=[],this.size=0}function bb(e,t){for(var n=e.length;n--;)if(Bm(e[n][0],t))return n;return-1}var Q$=Array.prototype,eD=Q$.splice;function tD(e){var t=this.__data__,n=bb(t,e);if(n<0)return!1;var s=t.length-1;return n==s?t.pop():eD.call(t,n,1),--this.size,!0}function nD(e){var t=this.__data__,n=bb(t,e);return n<0?void 0:t[n][1]}function sD(e){return bb(this.__data__,e)>-1}function aD(e,t){var n=this.__data__,s=bb(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}function $l(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}$l.prototype.clear=Z$;$l.prototype.delete=tD;$l.prototype.get=nD;$l.prototype.has=sD;$l.prototype.set=aD;var Fp=Jd(Rr,"Map");function oD(){this.size=0,this.__data__={hash:new Dd,map:new(Fp||$l),string:new Dd}}function rD(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function yb(e,t){var n=e.__data__;return rD(t)?n[typeof t=="string"?"string":"hash"]:n.map}function iD(e){var t=yb(this,e).delete(e);return this.size-=t?1:0,t}function lD(e){return yb(this,e).get(e)}function cD(e){return yb(this,e).has(e)}function uD(e,t){var n=yb(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}function Dl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}Dl.prototype.clear=oD;Dl.prototype.delete=iD;Dl.prototype.get=lD;Dl.prototype.has=cD;Dl.prototype.set=uD;var dD="Expected a function";function wb(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(dD);var n=function(){var s=arguments,a=t?t.apply(this,s):s[0],o=n.cache;if(o.has(a))return o.get(a);var r=e.apply(this,s);return n.cache=o.set(a,r)||o,r};return n.cache=new(wb.Cache||Dl),n}wb.Cache=Dl;var fD=500;function hD(e){var t=wb(e,function(s){return n.size===fD&&n.clear(),s}),n=t.cache;return t}var pD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vD=/\\(\\)?/g,mD=hD(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(pD,function(n,s,a,o){t.push(a?o.replace(vD,"$1"):s||n)}),t});function gD(e){return e==null?"":CE(e)}function g0(e,t){return $a(e)?e:S8(e,t)?[e]:mD(gD(e))}function b0(e){if(typeof e=="string"||mb(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function _b(e,t){t=g0(t,e);for(var n=0,s=t.length;e!=null&&n<s;)e=e[b0(t[n++])];return n&&n==s?e:void 0}function Xn(e,t,n){var s=e==null?void 0:_b(e,t);return s===void 0?n:s}function x8(e,t){for(var n=-1,s=t.length,a=e.length;++n<s;)e[a+n]=t[n];return e}var AC=qo?qo.isConcatSpreadable:void 0;function bD(e){return $a(e)||Np(e)||!!(AC&&e&&e[AC])}function Hm(e,t,n,s,a){var o=-1,r=e.length;for(n||(n=bD),a||(a=[]);++o<r;){var i=e[o];t>0&&n(i)?t>1?Hm(i,t-1,n,s,a):x8(a,i):s||(a[a.length]=i)}return a}function Zg(e){var t=e==null?0:e.length;return t?Hm(e,1):[]}function LE(e){return xE(kE(e,void 0,Zg),e+"")}var E8=IE(Object.getPrototypeOf,Object),yD="[object Object]",wD=Function.prototype,_D=Object.prototype,OE=wD.toString,CD=_D.hasOwnProperty,SD=OE.call(Object);function NE(e){if(!bi(e)||Yd(e)!=yD)return!1;var t=E8(e);if(t===null)return!0;var n=CD.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&OE.call(n)==SD}function xD(e,t,n){var s=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(a);++s<a;)o[s]=e[s+t];return o}function Es(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]}function ED(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function mu(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=bp(n),n=n===n?n:0),t!==void 0&&(t=bp(t),t=t===t?t:0),ED(bp(e),t,n)}function kD(){this.__data__=new $l,this.size=0}function AD(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function TD(e){return this.__data__.get(e)}function MD(e){return this.__data__.has(e)}var PD=200;function RD(e,t){var n=this.__data__;if(n instanceof $l){var s=n.__data__;if(!Fp||s.length<PD-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dl(s)}return n.set(e,t),this.size=n.size,this}function mr(e){var t=this.__data__=new $l(e);this.size=t.size}mr.prototype.clear=kD;mr.prototype.delete=AD;mr.prototype.get=TD;mr.prototype.has=MD;mr.prototype.set=RD;function ID(e,t){return e&&v0(t,Vm(t),e)}function LD(e,t){return e&&v0(t,zm(t),e)}var $E=typeof exports=="object"&&exports&&!exports.nodeType&&exports,TC=$E&&typeof module=="object"&&module&&!module.nodeType&&module,OD=TC&&TC.exports===$E,MC=OD?Rr.Buffer:void 0,PC=MC?MC.allocUnsafe:void 0;function DE(e,t){if(t)return e.slice();var n=e.length,s=PC?PC(n):new e.constructor(n);return e.copy(s),s}function ND(e,t){for(var n=-1,s=e==null?0:e.length,a=0,o=[];++n<s;){var r=e[n];t(r,n,e)&&(o[a++]=r)}return o}function FE(){return[]}var $D=Object.prototype,DD=$D.propertyIsEnumerable,RC=Object.getOwnPropertySymbols,k8=RC?function(e){return e==null?[]:(e=Object(e),ND(RC(e),function(t){return DD.call(e,t)}))}:FE;function FD(e,t){return v0(e,k8(e),t)}var BD=Object.getOwnPropertySymbols,BE=BD?function(e){for(var t=[];e;)x8(t,k8(e)),e=E8(e);return t}:FE;function VD(e,t){return v0(e,BE(e),t)}function VE(e,t,n){var s=t(e);return $a(e)?s:x8(s,n(e))}function _y(e){return VE(e,Vm,k8)}function zE(e){return VE(e,zm,BE)}var Cy=Jd(Rr,"DataView"),Sy=Jd(Rr,"Promise"),Lf=Jd(Rr,"Set"),IC="[object Map]",zD="[object Object]",LC="[object Promise]",OC="[object Set]",NC="[object WeakMap]",$C="[object DataView]",HD=Xd(Cy),WD=Xd(Fp),jD=Xd(Sy),KD=Xd(Lf),UD=Xd(wy),hr=Yd;(Cy&&hr(new Cy(new ArrayBuffer(1)))!=$C||Fp&&hr(new Fp)!=IC||Sy&&hr(Sy.resolve())!=LC||Lf&&hr(new Lf)!=OC||wy&&hr(new wy)!=NC)&&(hr=function(e){var t=Yd(e),n=t==zD?e.constructor:void 0,s=n?Xd(n):"";if(s)switch(s){case HD:return $C;case WD:return IC;case jD:return LC;case KD:return OC;case UD:return NC}return t});var qD=Object.prototype,GD=qD.hasOwnProperty;function YD(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&GD.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Qg=Rr.Uint8Array;function A8(e){var t=new e.constructor(e.byteLength);return new Qg(t).set(new Qg(e)),t}function XD(e,t){var n=t?A8(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var JD=/\w*$/;function ZD(e){var t=new e.constructor(e.source,JD.exec(e));return t.lastIndex=e.lastIndex,t}var DC=qo?qo.prototype:void 0,FC=DC?DC.valueOf:void 0;function QD(e){return FC?Object(FC.call(e)):{}}function HE(e,t){var n=t?A8(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var eF="[object Boolean]",tF="[object Date]",nF="[object Map]",sF="[object Number]",aF="[object RegExp]",oF="[object Set]",rF="[object String]",iF="[object Symbol]",lF="[object ArrayBuffer]",cF="[object DataView]",uF="[object Float32Array]",dF="[object Float64Array]",fF="[object Int8Array]",hF="[object Int16Array]",pF="[object Int32Array]",vF="[object Uint8Array]",mF="[object Uint8ClampedArray]",gF="[object Uint16Array]",bF="[object Uint32Array]";function yF(e,t,n){var s=e.constructor;switch(t){case lF:return A8(e);case eF:case tF:return new s(+e);case cF:return XD(e,n);case uF:case dF:case fF:case hF:case pF:case vF:case mF:case gF:case bF:return HE(e,n);case nF:return new s;case sF:case rF:return new s(e);case aF:return ZD(e);case oF:return new s;case iF:return QD(e)}}function WE(e){return typeof e.constructor=="function"&&!w8(e)?TN(E8(e)):{}}var wF="[object Map]";function _F(e){return bi(e)&&hr(e)==wF}var BC=Jh&&Jh.isMap,CF=BC?_8(BC):_F,SF="[object Set]";function xF(e){return bi(e)&&hr(e)==SF}var VC=Jh&&Jh.isSet,EF=VC?_8(VC):xF,kF=1,AF=2,TF=4,jE="[object Arguments]",MF="[object Array]",PF="[object Boolean]",RF="[object Date]",IF="[object Error]",KE="[object Function]",LF="[object GeneratorFunction]",OF="[object Map]",NF="[object Number]",UE="[object Object]",$F="[object RegExp]",DF="[object Set]",FF="[object String]",BF="[object Symbol]",VF="[object WeakMap]",zF="[object ArrayBuffer]",HF="[object DataView]",WF="[object Float32Array]",jF="[object Float64Array]",KF="[object Int8Array]",UF="[object Int16Array]",qF="[object Int32Array]",GF="[object Uint8Array]",YF="[object Uint8ClampedArray]",XF="[object Uint16Array]",JF="[object Uint32Array]",Vn={};Vn[jE]=Vn[MF]=Vn[zF]=Vn[HF]=Vn[PF]=Vn[RF]=Vn[WF]=Vn[jF]=Vn[KF]=Vn[UF]=Vn[qF]=Vn[OF]=Vn[NF]=Vn[UE]=Vn[$F]=Vn[DF]=Vn[FF]=Vn[BF]=Vn[GF]=Vn[YF]=Vn[XF]=Vn[JF]=!0;Vn[IF]=Vn[KE]=Vn[VF]=!1;function Of(e,t,n,s,a,o){var r,i=t&kF,l=t&AF,c=t&TF;if(n&&(r=a?n(e,s,a,o):n(e)),r!==void 0)return r;if(!Da(e))return e;var u=$a(e);if(u){if(r=YD(e),!i)return SE(e,r)}else{var d=hr(e),h=d==KE||d==LF;if($p(e))return DE(e,i);if(d==UE||d==jE||h&&!a){if(r=l||h?{}:WE(e),!i)return l?VD(e,LD(r,e)):FD(e,ID(r,e))}else{if(!Vn[d])return a?e:{};r=yF(e,d,i)}}o||(o=new mr);var p=o.get(e);if(p)return p;o.set(e,r),EF(e)?e.forEach(function(g){r.add(Of(g,t,n,g,e,o))}):CF(e)&&e.forEach(function(g,b){r.set(b,Of(g,t,n,b,e,o))});var v=c?l?zE:_y:l?zm:Vm,m=u?void 0:v(e);return DN(m||e,function(g,b){m&&(b=g,g=e[b]),b8(r,b,Of(g,t,n,b,e,o))}),r}var ZF=4;function _4(e){return Of(e,ZF)}var QF=1,eB=4;function e1(e){return Of(e,QF|eB)}var tB="__lodash_hash_undefined__";function nB(e){return this.__data__.set(e,tB),this}function sB(e){return this.__data__.has(e)}function Bp(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Dl;++t<n;)this.add(e[t])}Bp.prototype.add=Bp.prototype.push=nB;Bp.prototype.has=sB;function aB(e,t){for(var n=-1,s=e==null?0:e.length;++n<s;)if(t(e[n],n,e))return!0;return!1}function qE(e,t){return e.has(t)}var oB=1,rB=2;function GE(e,t,n,s,a,o){var r=n&oB,i=e.length,l=t.length;if(i!=l&&!(r&&l>i))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=n&rB?new Bp:void 0;for(o.set(e,t),o.set(t,e);++d<i;){var v=e[d],m=t[d];if(s)var g=r?s(m,v,d,t,e,o):s(v,m,d,e,t,o);if(g!==void 0){if(g)continue;h=!1;break}if(p){if(!aB(t,function(b,C){if(!qE(p,C)&&(v===b||a(v,b,n,s,o)))return p.push(C)})){h=!1;break}}else if(!(v===m||a(v,m,n,s,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function iB(e){var t=-1,n=Array(e.size);return e.forEach(function(s,a){n[++t]=[a,s]}),n}function T8(e){var t=-1,n=Array(e.size);return e.forEach(function(s){n[++t]=s}),n}var lB=1,cB=2,uB="[object Boolean]",dB="[object Date]",fB="[object Error]",hB="[object Map]",pB="[object Number]",vB="[object RegExp]",mB="[object Set]",gB="[object String]",bB="[object Symbol]",yB="[object ArrayBuffer]",wB="[object DataView]",zC=qo?qo.prototype:void 0,C4=zC?zC.valueOf:void 0;function _B(e,t,n,s,a,o,r){switch(n){case wB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case yB:return!(e.byteLength!=t.byteLength||!o(new Qg(e),new Qg(t)));case uB:case dB:case pB:return Bm(+e,+t);case fB:return e.name==t.name&&e.message==t.message;case vB:case gB:return e==t+"";case hB:var i=iB;case mB:var l=s&lB;if(i||(i=T8),e.size!=t.size&&!l)return!1;var c=r.get(e);if(c)return c==t;s|=cB,r.set(e,t);var u=GE(i(e),i(t),s,a,o,r);return r.delete(e),u;case bB:if(C4)return C4.call(e)==C4.call(t)}return!1}var CB=1,SB=Object.prototype,xB=SB.hasOwnProperty;function EB(e,t,n,s,a,o){var r=n&CB,i=_y(e),l=i.length,c=_y(t),u=c.length;if(l!=u&&!r)return!1;for(var d=l;d--;){var h=i[d];if(!(r?h in t:xB.call(t,h)))return!1}var p=o.get(e),v=o.get(t);if(p&&v)return p==t&&v==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=r;++d<l;){h=i[d];var b=e[h],C=t[h];if(s)var w=r?s(C,b,h,t,e,o):s(b,C,h,e,t,o);if(!(w===void 0?b===C||a(b,C,n,s,o):w)){m=!1;break}g||(g=h=="constructor")}if(m&&!g){var _=e.constructor,x=t.constructor;_!=x&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof x=="function"&&x instanceof x)&&(m=!1)}return o.delete(e),o.delete(t),m}var kB=1,HC="[object Arguments]",WC="[object Array]",C2="[object Object]",AB=Object.prototype,jC=AB.hasOwnProperty;function TB(e,t,n,s,a,o){var r=$a(e),i=$a(t),l=r?WC:hr(e),c=i?WC:hr(t);l=l==HC?C2:l,c=c==HC?C2:c;var u=l==C2,d=c==C2,h=l==c;if(h&&$p(e)){if(!$p(t))return!1;r=!0,u=!1}if(h&&!u)return o||(o=new mr),r||C8(e)?GE(e,t,n,s,a,o):_B(e,t,l,n,s,a,o);if(!(n&kB)){var p=u&&jC.call(e,"__wrapped__"),v=d&&jC.call(t,"__wrapped__");if(p||v){var m=p?e.value():e,g=v?t.value():t;return o||(o=new mr),a(m,g,n,s,o)}}return h?(o||(o=new mr),EB(e,t,n,s,a,o)):!1}function Cb(e,t,n,s,a){return e===t?!0:e==null||t==null||!bi(e)&&!bi(t)?e!==e&&t!==t:TB(e,t,n,s,Cb,a)}var MB=1,PB=2;function RB(e,t,n,s){var a=n.length,o=a;if(e==null)return!o;for(e=Object(e);a--;){var r=n[a];if(r[2]?r[1]!==e[r[0]]:!(r[0]in e))return!1}for(;++a<o;){r=n[a];var i=r[0],l=e[i],c=r[1];if(r[2]){if(l===void 0&&!(i in e))return!1}else{var u=new mr,d;if(!(d===void 0?Cb(c,l,MB|PB,s,u):d))return!1}}return!0}function YE(e){return e===e&&!Da(e)}function IB(e){for(var t=Vm(e),n=t.length;n--;){var s=t[n],a=e[s];t[n]=[s,a,YE(a)]}return t}function XE(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function LB(e){var t=IB(e);return t.length==1&&t[0][2]?XE(t[0][0],t[0][1]):function(n){return n===e||RB(n,e,t)}}function OB(e,t){return e!=null&&t in Object(e)}function JE(e,t,n){t=g0(t,e);for(var s=-1,a=t.length,o=!1;++s<a;){var r=b0(t[s]);if(!(o=e!=null&&n(e,r)))break;e=e[r]}return o||++s!=a?o:(a=e==null?0:e.length,!!a&&y8(a)&&gb(r,a)&&($a(e)||Np(e)))}function ZE(e,t){return e!=null&&JE(e,t,OB)}var NB=1,$B=2;function DB(e,t){return S8(e)&&YE(t)?XE(b0(e),t):function(n){var s=Xn(n,e);return s===void 0&&s===t?ZE(n,e):Cb(t,s,NB|$B)}}function FB(e){return function(t){return t==null?void 0:t[e]}}function BB(e){return function(t){return _b(t,e)}}function VB(e){return S8(e)?FB(b0(e)):BB(e)}function QE(e){return typeof e=="function"?e:e==null?v8:typeof e=="object"?$a(e)?DB(e[0],e[1]):LB(e):VB(e)}function zB(e){return function(t,n,s){for(var a=-1,o=Object(t),r=s(t),i=r.length;i--;){var l=r[++a];if(n(o[l],l,o)===!1)break}return t}}var ek=zB();function HB(e,t){return e&&ek(e,t,Vm)}function WB(e,t){return function(n,s){if(n==null)return n;if(!m0(n))return e(n,s);for(var a=n.length,o=-1,r=Object(n);++o<a&&s(r[o],o,r)!==!1;);return n}}var jB=WB(HB),S4=function(){return Rr.Date.now()},KB="Expected a function",UB=Math.max,qB=Math.min;function yi(e,t,n){var s,a,o,r,i,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(KB);t=bp(t)||0,Da(n)&&(u=!!n.leading,d="maxWait"in n,o=d?UB(bp(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function p(E){var T=s,R=a;return s=a=void 0,c=E,r=e.apply(R,T),r}function v(E){return c=E,i=setTimeout(b,t),u?p(E):r}function m(E){var T=E-l,R=E-c,I=t-T;return d?qB(I,o-R):I}function g(E){var T=E-l,R=E-c;return l===void 0||T>=t||T<0||d&&R>=o}function b(){var E=S4();if(g(E))return C(E);i=setTimeout(b,m(E))}function C(E){return i=void 0,h&&s?p(E):(s=a=void 0,r)}function w(){i!==void 0&&clearTimeout(i),c=0,s=l=a=i=void 0}function _(){return i===void 0?r:C(S4())}function x(){var E=S4(),T=g(E);if(s=arguments,a=this,l=E,T){if(i===void 0)return v(l);if(d)return clearTimeout(i),i=setTimeout(b,t),p(l)}return i===void 0&&(i=setTimeout(b,t)),r}return x.cancel=w,x.flush=_,x}function xy(e,t,n){(n!==void 0&&!Bm(e[t],n)||n===void 0&&!(t in e))&&g8(e,t,n)}function tk(e){return bi(e)&&m0(e)}function Ey(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function GB(e){return v0(e,zm(e))}function YB(e,t,n,s,a,o,r){var i=Ey(e,n),l=Ey(t,n),c=r.get(l);if(c){xy(e,n,c);return}var u=o?o(i,l,n+"",e,t,r):void 0,d=u===void 0;if(d){var h=$a(l),p=!h&&$p(l),v=!h&&!p&&C8(l);u=l,h||p||v?$a(i)?u=i:tk(i)?u=SE(i):p?(d=!1,u=DE(l,!0)):v?(d=!1,u=HE(l,!0)):u=[]:NE(l)||Np(l)?(u=i,Np(i)?u=GB(i):(!Da(i)||m8(i))&&(u=WE(l))):d=!1}d&&(r.set(l,u),a(u,l,s,o,r),r.delete(l)),xy(e,n,u)}function nk(e,t,n,s,a){e!==t&&ek(t,function(o,r){if(a||(a=new mr),Da(o))YB(e,t,r,n,nk,s,a);else{var i=s?s(Ey(e,r),o,r+"",e,t,a):void 0;i===void 0&&(i=o),xy(e,r,i)}},zm)}function XB(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function sk(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var a=s-1;return EE(e,QE(t),a,!0)}function JB(e,t){var n=-1,s=m0(e)?Array(e.length):[];return jB(e,function(a,o,r){s[++n]=t(a,o,r)}),s}function ZB(e,t){var n=$a(e)?p8:JB;return n(e,QE(t))}function ak(e,t){return Hm(ZB(e,t),1)}var QB=1/0;function eV(e){var t=e==null?0:e.length;return t?Hm(e,QB):[]}function Vp(e){for(var t=-1,n=e==null?0:e.length,s={};++t<n;){var a=e[t];s[a[0]]=a[1]}return s}var tV=Object.prototype,nV=tV.hasOwnProperty;function sV(e,t){return e!=null&&nV.call(e,t)}function aV(e,t){return e!=null&&JE(e,t,sV)}function oV(e,t){return t.length<2?e:_b(e,xD(t,0,-1))}function On(e,t){return Cb(e,t)}function Un(e){return e==null}function Sb(e){return e===null}function rV(e){return e===void 0}var ok=GN(function(e,t,n){nk(e,t,n)}),iV=Object.prototype,lV=iV.hasOwnProperty;function cV(e,t){t=g0(t,e);var n=-1,s=t.length;if(!s)return!0;for(var a=e==null||typeof e!="object"&&typeof e!="function";++n<s;){var o=t[n];if(typeof o=="string"){if(o==="__proto__"&&!lV.call(e,"__proto__"))return!1;if(o==="constructor"&&n+1<s&&typeof t[n+1]=="string"&&t[n+1]==="prototype"){if(a&&n===0)continue;return!1}}}var r=oV(e,t);return r==null||delete r[b0(XB(t))]}function uV(e){return NE(e)?void 0:e}var dV=1,fV=2,hV=4,Wm=LE(function(e,t){var n={};if(e==null)return n;var s=!1;t=p8(t,function(o){return o=g0(o,e),s||(s=o.length>1),o}),v0(e,zE(e),n),s&&(n=Of(n,dV|fV|hV,uV));for(var a=t.length;a--;)cV(n,t[a]);return n});function rk(e,t,n,s){if(!Da(e))return e;t=g0(t,e);for(var a=-1,o=t.length,r=o-1,i=e;i!=null&&++a<o;){var l=b0(t[a]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=r){var u=i[l];c=void 0,c===void 0&&(c=Da(u)?u:gb(t[a+1])?[]:{})}b8(i,l,c),i=i[l]}return e}function pV(e,t,n){for(var s=-1,a=t.length,o={};++s<a;){var r=t[s],i=_b(e,r);n(i,r)&&rk(o,g0(r,e),i)}return o}function vV(e,t){return pV(e,t,function(n,s){return ZE(e,s)})}var El=LE(function(e,t){return e==null?{}:vV(e,t)});function mV(e,t,n){return e==null?e:rk(e,t,n)}var gV="Expected a function";function Lc(e,t,n){var s=!0,a=!0;if(typeof e!="function")throw new TypeError(gV);return Da(n)&&(s="leading"in n?!!n.leading:s,a="trailing"in n?!!n.trailing:a),yi(e,t,{leading:s,maxWait:t,trailing:a})}var bV=1/0,yV=Lf&&1/T8(new Lf([,-0]))[1]==bV?function(e){return new Lf(e)}:PN,wV=200;function _V(e,t,n){var s=-1,a=zN,o=e.length,r=!0,i=[],l=i;if(o>=wV){var c=yV(e);if(c)return T8(c);r=!1,a=qE,l=new Bp}else l=i;e:for(;++s<o;){var u=e[s],d=u;if(u=u!==0?u:0,r&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;i.push(u)}else a(l,d,n)||(l!==i&&l.push(d),i.push(u))}return i}var x4=AE(function(e){return _V(Hm(e,1,tk,!0))}),CV={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 SV=e=>(t,n)=>xV(t,n,f(e)),xV=(e,t,n)=>Xn(n,e,e).replace(/\{(\w+)\}/g,(s,a)=>{var o;return`${(o=t==null?void 0:t[a])!=null?o:`{${a}}`}`}),EV=e=>({lang:k(()=>f(e).name),locale:vn(e)?e:F(e),t:SV(e)}),ik=Symbol("localeContextKey"),Rt=e=>{const t=e||je(ik,F());return EV(k(()=>t.value||CV))},wp="el",kV="is-",au=(e,t,n,s,a)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),s&&(o+=`__${s}`),a&&(o+=`--${a}`),o},lk=Symbol("namespaceContextKey"),M8=e=>{const t=e||(Ct()?je(lk,F(wp)):F(wp));return k(()=>f(t)||wp)},Ee=(e,t)=>{const n=M8(t);return{namespace:n,b:(m="")=>au(n.value,e,m,"",""),e:m=>m?au(n.value,e,"",m,""):"",m:m=>m?au(n.value,e,"","",m):"",be:(m,g)=>m&&g?au(n.value,e,m,g,""):"",em:(m,g)=>m&&g?au(n.value,e,"",m,g):"",bm:(m,g)=>m&&g?au(n.value,e,m,"",g):"",bem:(m,g,b)=>m&&g&&b?au(n.value,e,m,g,b):"",is:(m,...g)=>{const b=g.length>=1?g[0]:!0;return m&&b?`${kV}${m}`:""},cssVar:m=>{const g={};for(const b in m)m[b]&&(g[`--${n.value}-${b}`]=m[b]);return g},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const g={};for(const b in m)m[b]&&(g[`--${n.value}-${e}-${b}`]=m[b]);return g},cssVarBlockName:m=>`--${n.value}-${e}-${m}`}},Dt=e=>e===void 0,Qt=e=>typeof e=="boolean",st=e=>typeof e=="number",Pa=e=>!e&&e!==0||ke(e)&&e.length===0||ft(e)&&!Object.keys(e).length,Ya=e=>typeof Element>"u"?!1:e instanceof Element,Xa=e=>Un(e),AV=e=>Xe(e)?!Number.isNaN(Number(e)):!1,jm=e=>e===window;function ck(e,t){var n;const s=fn();return Qa(()=>{s.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Nd(s)}function Zd(e){return Jx()?(Zx(e),!0):!1}function _o(e){return typeof e=="function"?e():f(e)}function TV(e){if(!vn(e))return Kt(e);const t=new Proxy({},{get(n,s,a){return f(Reflect.get(e.value,s,a))},set(n,s,a){return vn(e.value[s])&&!vn(a)?e.value[s].value=a:e.value[s]=a,!0},deleteProperty(n,s){return Reflect.deleteProperty(e.value,s)},has(n,s){return Reflect.has(e.value,s)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Kt(t)}function MV(e){return TV(k(e))}const jt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const PV=e=>typeof e<"u",uk=e=>e!=null,RV=Object.prototype.toString,IV=e=>RV.call(e)==="[object Object]",dk=(e,t,n)=>Math.min(n,Math.max(t,e)),gr=()=>{},t1=LV();function LV(){var e,t;return jt&&((e=window==null?void 0:window.navigator)==null?void 0:e.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 fk(e,t){function n(...s){return new Promise((a,o)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(a).catch(o)})}return n}function OV(e,t={}){let n,s,a=gr;const o=i=>{clearTimeout(i),a(),a=gr};return i=>{const l=_o(e),c=_o(t.maxWait);return n&&o(n),l<=0||c!==void 0&&c<=0?(s&&(o(s),s=null),Promise.resolve(i())):new Promise((u,d)=>{a=t.rejectOnCancel?d:u,c&&!s&&(s=setTimeout(()=>{n&&o(n),s=null,u(i())},c)),n=setTimeout(()=>{s&&o(s),s=null,u(i())},l)})}}function NV(...e){let t=0,n,s=!0,a=gr,o,r,i,l,c;!vn(e[0])&&typeof e[0]=="object"?{delay:r,trailing:i=!0,leading:l=!0,rejectOnCancel:c=!1}=e[0]:[r,i=!0,l=!0,c=!1]=e;const u=()=>{n&&(clearTimeout(n),n=void 0,a(),a=gr)};return h=>{const p=_o(r),v=Date.now()-t,m=()=>o=h();return u(),p<=0?(t=Date.now(),m()):(v>p&&(l||!s)?(t=Date.now(),m()):i&&(o=new Promise((g,b)=>{a=c?b:g,n=setTimeout(()=>{t=Date.now(),s=!0,g(m()),u()},Math.max(0,p-v))})),!l&&!n&&(n=setTimeout(()=>s=!0,p)),s=!1,o)}}function $V(e){return Ct()}function Km(e,t=200,n={}){return fk(OV(t,n),e)}function DV(e,t=200,n={}){const s=F(e.value),a=Km(()=>{s.value=e.value},t,n);return be(e,()=>a()),s}function hk(e,t=200,n=!1,s=!0,a=!1){return fk(NV(t,n,s,a),e)}function P8(e,t=!0,n){$V()?St(e,n):t?e():ze(e)}function Zh(e,t,n={}){const{immediate:s=!0}=n,a=F(!1);let o=null;function r(){o&&(clearTimeout(o),o=null)}function i(){a.value=!1,r()}function l(...c){r(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=null,e(...c)},_o(t))}return s&&(a.value=!0,jt&&l()),Zd(i),{isPending:Nd(a),start:l,stop:i}}function os(e){var t;const n=_o(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ir=jt?window:void 0,FV=jt?window.document:void 0;function Xt(...e){let t,n,s,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,a]=e,t=Ir):[t,n,s,a]=e,!t)return gr;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],r=()=>{o.forEach(u=>u()),o.length=0},i=(u,d,h,p)=>(u.addEventListener(d,h,p),()=>u.removeEventListener(d,h,p)),l=be(()=>[os(t),_o(a)],([u,d])=>{if(r(),!u)return;const h=IV(d)?{...d}:d;o.push(...n.flatMap(p=>s.map(v=>i(u,p,v,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),r()};return Zd(c),c}let KC=!1;function R8(e,t,n={}){const{window:s=Ir,ignore:a=[],capture:o=!0,detectIframe:r=!1}=n;if(!s)return gr;t1&&!KC&&(KC=!0,Array.from(s.document.body.children).forEach(h=>h.addEventListener("click",gr)),s.document.documentElement.addEventListener("click",gr));let i=!0;const l=h=>a.some(p=>{if(typeof p=="string")return Array.from(s.document.querySelectorAll(p)).some(v=>v===h.target||h.composedPath().includes(v));{const v=os(p);return v&&(h.target===v||h.composedPath().includes(v))}}),u=[Xt(s,"click",h=>{const p=os(e);if(!(!p||p===h.target||h.composedPath().includes(p))){if(h.detail===0&&(i=!l(h)),!i){i=!0;return}t(h)}},{passive:!0,capture:o}),Xt(s,"pointerdown",h=>{const p=os(e);i=!l(h)&&!!(p&&!h.composedPath().includes(p))},{passive:!0}),r&&Xt(s,"blur",h=>{setTimeout(()=>{var p;const v=os(e);((p=s.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(v!=null&&v.contains(s.document.activeElement))&&t(h)},0)})].filter(Boolean);return()=>u.forEach(h=>h())}function BV(){const e=F(!1),t=Ct();return t&&St(()=>{e.value=!0},t),e}function xb(e){const t=BV();return k(()=>(t.value,!!e()))}function Um(e,t,n={}){const{window:s=Ir,...a}=n;let o;const r=xb(()=>s&&"MutationObserver"in s),i=()=>{o&&(o.disconnect(),o=void 0)},l=k(()=>{const h=_o(e),p=(Array.isArray(h)?h:[h]).map(os).filter(uk);return new Set(p)}),c=be(()=>l.value,h=>{i(),r.value&&h.size&&(o=new MutationObserver(t),h.forEach(p=>o.observe(p,a)))},{immediate:!0,flush:"post"}),u=()=>o==null?void 0:o.takeRecords(),d=()=>{i(),c()};return Zd(d),{isSupported:r,stop:d,takeRecords:u}}function VV(e={}){var t;const{window:n=Ir,deep:s=!0,triggerOnRemoval:a=!1}=e,o=(t=e.document)!=null?t:n==null?void 0:n.document,r=()=>{var c;let u=o==null?void 0:o.activeElement;if(s)for(;u!=null&&u.shadowRoot;)u=(c=u==null?void 0:u.shadowRoot)==null?void 0:c.activeElement;return u},i=F(),l=()=>{i.value=r()};return n&&(Xt(n,"blur",c=>{c.relatedTarget===null&&l()},!0),Xt(n,"focus",l,!0)),a&&Um(o,c=>{c.filter(u=>u.removedNodes.length).map(u=>Array.from(u.removedNodes)).flat().forEach(u=>{u===i.value&&l()})},{childList:!0,subtree:!0}),l(),i}function zV(e,t={}){const{window:n=Ir}=t,s=xb(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const o=F(!1),r=c=>{o.value=c.matches},i=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",r):a.removeListener(r))},l=Qa(()=>{s.value&&(i(),a=n.matchMedia(_o(e)),"addEventListener"in a?a.addEventListener("change",r):a.addListener(r),o.value=a.matches)});return Zd(()=>{l(),i(),a=void 0}),o}function HV(e){return JSON.parse(JSON.stringify(e))}function WV(e,t,n={}){const{window:s=Ir,initialValue:a="",observe:o=!1}=n,r=F(a),i=k(()=>{var c;return os(t)||((c=s==null?void 0:s.document)==null?void 0:c.documentElement)});function l(){var c;const u=_o(e),d=_o(i);if(d&&s){const h=(c=s.getComputedStyle(d).getPropertyValue(u))==null?void 0:c.trim();r.value=h||a}}return o&&Um(i,l,{attributeFilter:["style","class"],window:s}),be([i,()=>_o(e)],l,{immediate:!0}),be(r,c=>{var u;(u=i.value)!=null&&u.style&&i.value.style.setProperty(_o(e),c)}),r}function jV(e={}){const{document:t=FV}=e;if(!t)return F("visible");const n=F(t.visibilityState);return Xt(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function wn(e,t,n={}){const{window:s=Ir,...a}=n;let o;const r=xb(()=>s&&"ResizeObserver"in s),i=()=>{o&&(o.disconnect(),o=void 0)},l=k(()=>Array.isArray(e)?e.map(d=>os(d)):[os(e)]),c=be(l,d=>{if(i(),r.value&&s){o=new ResizeObserver(t);for(const h of d)h&&o.observe(h,a)}},{immediate:!0,flush:"post"}),u=()=>{i(),c()};return Zd(u),{isSupported:r,stop:u}}function UC(e,t={}){const{reset:n=!0,windowResize:s=!0,windowScroll:a=!0,immediate:o=!0}=t,r=F(0),i=F(0),l=F(0),c=F(0),u=F(0),d=F(0),h=F(0),p=F(0);function v(){const m=os(e);if(!m){n&&(r.value=0,i.value=0,l.value=0,c.value=0,u.value=0,d.value=0,h.value=0,p.value=0);return}const g=m.getBoundingClientRect();r.value=g.height,i.value=g.bottom,l.value=g.left,c.value=g.right,u.value=g.top,d.value=g.width,h.value=g.x,p.value=g.y}return wn(e,v),be(()=>os(e),m=>!m&&v()),Um(e,v,{attributeFilter:["style","class"]}),a&&Xt("scroll",v,{capture:!0,passive:!0}),s&&Xt("resize",v,{passive:!0}),P8(()=>{o&&v()}),{height:r,bottom:i,left:l,right:c,top:u,width:d,x:h,y:p,update:v}}function ky(e,t={width:0,height:0},n={}){const{window:s=Ir,box:a="content-box"}=n,o=k(()=>{var d,h;return(h=(d=os(e))==null?void 0:d.namespaceURI)==null?void 0:h.includes("svg")}),r=F(t.width),i=F(t.height),{stop:l}=wn(e,([d])=>{const h=a==="border-box"?d.borderBoxSize:a==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(s&&o.value){const p=os(e);if(p){const v=p.getBoundingClientRect();r.value=v.width,i.value=v.height}}else if(h){const p=Array.isArray(h)?h:[h];r.value=p.reduce((v,{inlineSize:m})=>v+m,0),i.value=p.reduce((v,{blockSize:m})=>v+m,0)}else r.value=d.contentRect.width,i.value=d.contentRect.height},n);P8(()=>{const d=os(e);d&&(r.value="offsetWidth"in d?d.offsetWidth:t.width,i.value="offsetHeight"in d?d.offsetHeight:t.height)});const c=be(()=>os(e),d=>{r.value=d?t.width:0,i.value=d?t.height:0});function u(){l(),c()}return{width:r,height:i,stop:u}}function KV(e,t,n={}){const{root:s,rootMargin:a="0px",threshold:o=.1,window:r=Ir,immediate:i=!0}=n,l=xb(()=>r&&"IntersectionObserver"in r),c=k(()=>{const v=_o(e);return(Array.isArray(v)?v:[v]).map(os).filter(uk)});let u=gr;const d=F(i),h=l.value?be(()=>[c.value,os(s),d.value],([v,m])=>{if(u(),!d.value||!v.length)return;const g=new IntersectionObserver(t,{root:os(m),rootMargin:a,threshold:o});v.forEach(b=>b&&g.observe(b)),u=()=>{g.disconnect(),u=gr}},{immediate:i,flush:"post"}):gr,p=()=>{u(),h(),d.value=!1};return Zd(p),{isSupported:l,isActive:d,pause(){u(),d.value=!1},resume(){d.value=!0},stop:p}}function pk(e,t,n,s={}){var a,o,r;const{clone:i=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:d,shouldEmit:h}=s,p=Ct(),v=n||(p==null?void 0:p.emit)||((a=p==null?void 0:p.$emit)==null?void 0:a.bind(p))||((r=(o=p==null?void 0:p.proxy)==null?void 0:o.$emit)==null?void 0:r.bind(p==null?void 0:p.proxy));let m=c;t||(t="modelValue"),m=m||`update:${t.toString()}`;const g=w=>i?typeof i=="function"?i(w):HV(w):w,b=()=>PV(e[t])?g(e[t]):d,C=w=>{h?h(w)&&v(m,w):v(m,w)};if(l){const w=b(),_=F(w);let x=!1;return be(()=>e[t],E=>{x||(x=!0,_.value=g(E),ze(()=>x=!1))}),be(_,E=>{!x&&(E!==e[t]||u)&&C(E)},{deep:u}),_}else return k({get(){return b()},set(w){C(w)}})}function UV(e={}){const{window:t=Ir}=e;if(!t)return F(!1);const n=F(t.document.hasFocus());return Xt(t,"blur",()=>{n.value=!1}),Xt(t,"focus",()=>{n.value=!0}),n}function I8(e={}){const{window:t=Ir,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:o=!0}=e,r=F(n),i=F(s),l=()=>{t&&(o?(r.value=t.innerWidth,i.value=t.innerHeight):(r.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};if(l(),P8(l),Xt("resize",l,{passive:!0}),a){const c=zV("(orientation: portrait)");be(c,()=>l())}return{width:r,height:i}}class qV extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Jn(e,t){throw new qV(`[${e}] ${t}`)}const qC={current:0},GC=F(0),vk=2e3,YC=Symbol("elZIndexContextKey"),mk=Symbol("zIndexContextKey"),qm=e=>{const t=Ct()?je(YC,qC):qC,n=e||(Ct()?je(mk,void 0):void 0),s=k(()=>{const r=f(n);return st(r)?r:vk}),a=k(()=>s.value+GC.value),o=()=>(t.current++,GC.value=t.current,a.value);return!jt&&je(YC),{initialZIndex:s,currentZIndex:a,nextZIndex:o}},gk="__epPropKey",re=e=>e,GV=e=>ft(e)&&!!e[gk],Lr=(e,t)=>{if(!ft(e)||GV(e))return e;const{values:n,required:s,default:a,type:o,validator:r}=e,l={type:o,required:!!s,validator:n||r?c=>{let u=!1,d=[];if(n&&(d=Array.from(n),Wt(e,"default")&&d.push(a),u||(u=d.includes(c))),r&&(u||(u=r(c))),!u&&d.length>0){const h=[...new Set(d)].map(p=>JSON.stringify(p)).join(", ");hO(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[gk]:!0};return Wt(e,"default")&&(l.default=a),l},Me=e=>Vp(Object.entries(e).map(([t,n])=>[t,Lr(n,t)])),Or=["","default","small","large"],rs=Lr({type:String,values:Or,required:!1}),bk=Symbol("size"),yk=()=>{const e=je(bk,{});return k(()=>f(e.size)||"")},wk=Symbol("emptyValuesContextKey"),YV=["",void 0,null],XV=void 0,Qd=Me({emptyValues:Array,valueOnClear:{type:re([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=nt(e)?e():e,ke(e)?e.every(t=>!t):!e)}}),Gm=(e,t)=>{const n=Ct()?je(wk,F({})):F({}),s=k(()=>e.emptyValues||n.value.emptyValues||YV),a=k(()=>nt(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:nt(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:XV),o=r=>{let i=!0;return ke(r)?i=s.value.some(l=>On(r,l)):i=s.value.includes(r),i};return o(a.value),{emptyValues:s,valueOnClear:a,isEmptyValue:o}},zp=e=>Object.keys(e),_k=e=>Object.entries(e),Nf=(e,t,n)=>({get value(){return Xn(e,t,n)},set value(s){mV(e,t,s)}}),n1=F();function y0(e,t=void 0){const n=Ct()?je(yE,n1):n1;return e?k(()=>{var s,a;return(a=(s=n.value)==null?void 0:s[e])!=null?a:t}):n}function Eb(e,t){const n=y0(),s=Ee(e,k(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||wp})),a=Rt(k(()=>{var i;return(i=n.value)==null?void 0:i.locale})),o=qm(k(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||vk})),r=k(()=>{var i;return f(t)||((i=n.value)==null?void 0:i.size)||""});return L8(k(()=>f(n)||{})),{ns:s,locale:a,zIndex:o,size:r}}const L8=(e,t,n=!1)=>{var s;const a=!!Ct(),o=a?y0():void 0,r=(s=t==null?void 0:t.provide)!=null?s:a?Mt:void 0;if(!r)return;const i=k(()=>{const l=f(e);return o!=null&&o.value?JV(o.value,l):l});return r(yE,i),r(ik,k(()=>i.value.locale)),r(lk,k(()=>i.value.namespace)),r(mk,k(()=>i.value.zIndex)),r(bk,{size:k(()=>i.value.size||"")}),r(wk,k(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!n1.value)&&(n1.value=i.value),i},JV=(e,t)=>{const n=[...new Set([...zp(e),...zp(t)])],s={};for(const a of n)s[a]=t[a]!==void 0?t[a]:e[a];return s},ZV=(e=[])=>({version:qO,install:(n,s)=>{n[vC]||(n[vC]=!0,e.forEach(a=>n.use(a)),s&&L8(s,n,!0))}}),Ym=Me({to:{type:re([String,Object]),required:!0},disabled:Boolean}),ct="update:modelValue",Pt="change",ts="input",QV=Me({zIndex:{type:re([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:Ym.to.type,default:"body"}}),ez={scroll:({scrollTop:e,fixed:t})=>st(e)&&Qt(t),[Pt]:e=>Qt(e)};var tz=j({__name:"teleport",props:Ym,setup(e){return(t,n)=>t.disabled?ue(t.$slots,"default",{key:0}):(S(),ce(wL,{key:1,to:t.to},[ue(t.$slots,"default")],8,["to"]))}});const pt=(e,t)=>{if(e.install=n=>{for(const s of[e,...Object.values(t??{})])n.component(s.name,s)},t)for(const[n,s]of Object.entries(t))e[n]=s;return e},Ck=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),nz=(e,t)=>(e.install=n=>{n.directive(t,e)},e),En=e=>(e.install=Yt,e),w0=pt(tz);function sz(e,t,n,s){const a=n-t;return e/=s/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}const wi=e=>jt?window.requestAnimationFrame(e):setTimeout(e,16),kl=e=>jt?window.cancelAnimationFrame(e):clearTimeout(e),Sk=(e="")=>e.split(" ").filter(t=>!!t.trim()),fi=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Wo=(e,t)=>{!e||!t.trim()||e.classList.add(...Sk(t))},ba=(e,t)=>{!e||!t.trim()||e.classList.remove(...Sk(t))},fl=(e,t)=>{var n;if(!jt||!e||!t)return"";let s=Oa(t);s==="float"&&(s="cssFloat");try{const a=e.style[s];if(a)return a;const o=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return o?o[s]:""}catch{return e.style[s]}},xk=(e,t,n)=>{if(!(!e||!t))if(ft(t))_k(t).forEach(([s,a])=>xk(e,s,a));else{const s=Oa(t);e.style[s]=n}};function Mn(e,t="px"){if(!e&&e!==0)return"";if(st(e)||AV(e))return`${e}${t}`;if(Xe(e))return e}const az=(e,t)=>{if(!jt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],s=fl(e,n);return["scroll","auto","overlay"].some(a=>s.includes(a))},O8=(e,t)=>{if(!jt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(az(n,t))return n;n=n.parentNode}return n};let S2;const Ek=e=>{var t;if(!jt)return 0;if(S2!==void 0)return S2;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const s=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const o=a.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),S2=s-o,S2};function N8(e,t){if(!jt)return;if(!t){e.scrollTop=0;return}const n=[];let s=t.offsetParent;for(;s!==null&&e!==s&&e.contains(s);)n.push(s),s=s.offsetParent;const a=t.offsetTop+n.reduce((l,c)=>l+c.offsetTop,0),o=a+t.offsetHeight,r=e.scrollTop,i=r+e.clientHeight;a<r?e.scrollTop=a:o>i&&(e.scrollTop=o-e.clientHeight)}function oz(e,t,n,s,a){const o=Date.now();let r;const i=()=>{const c=Date.now()-o,u=sz(c>s?s:c,t,n,s);jm(e)?e.scrollTo(window.pageXOffset,u):e.scrollTop=u,c<s?r=wi(i):nt(a)&&a()};return i(),()=>{r&&kl(r)}}const XC=(e,t)=>jm(t)?e.ownerDocument.documentElement:t,JC=e=>jm(e)?window.scrollY:e.scrollTop,ZC="ElAffix";var rz=j({name:ZC,__name:"affix",props:QV,emits:ez,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("affix"),r=fn(),i=fn(),l=fn(),{height:c}=I8(),{height:u,width:d,top:h,bottom:p,left:v,update:m}=UC(i,{windowScroll:!1}),g=UC(r),b=F(!1),C=F(0),w=F(0),_=k(()=>!s.teleported||!b.value),x=k(()=>({height:b.value?`${u.value}px`:"",width:b.value?`${d.value}px`:""})),E=k(()=>{if(!b.value)return{};const M=Mn(s.offset);return{height:`${u.value}px`,width:`${d.value}px`,top:s.position==="top"?M:"",bottom:s.position==="bottom"?M:"",left:s.teleported?`${v.value}px`:"",transform:w.value?`translateY(${w.value}px)`:"",zIndex:s.zIndex}}),T=()=>{if(!l.value)return;C.value=l.value instanceof Window?document.documentElement.scrollTop:l.value.scrollTop||0;const{position:M,target:$,offset:L}=s,B=L+u.value;if(M==="top")if($){const q=g.bottom.value-B;b.value=L>h.value&&g.bottom.value>0,w.value=q<0?q:0}else b.value=L>h.value;else if($){const q=c.value-g.top.value-B;b.value=c.value-L<p.value&&c.value>g.top.value,w.value=q<0?-q:0}else b.value=c.value-L<p.value},R=async()=>{if(!b.value){m();return}b.value=!1,await ze(),m(),b.value=!0},I=async()=>{m(),await ze(),a("scroll",{scrollTop:C.value,fixed:b.value})};return be(b,M=>a(Pt,M)),St(()=>{var M;s.target?(r.value=(M=document.querySelector(s.target))!=null?M:void 0,r.value||Jn(ZC,`Target does not exist: ${s.target}`)):r.value=document.documentElement,l.value=O8(i.value,!0),m()}),Dm(()=>{ze(R)}),o8(()=>{b.value=!1}),Xt(l,"scroll",I),Qa(T),t({update:T,updateRoot:R}),(M,$)=>(S(),P("div",{ref_key:"root",ref:i,class:D(f(o).b()),style:tt(x.value)},[W(f(w0),{disabled:_.value,to:e.appendTo},{default:X(()=>[A("div",{class:D({[f(o).m("fixed")]:b.value}),style:tt(E.value)},[ue(M.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}});const iz=pt(rz);/*! Element Plus Icons Vue v2.3.2 */var lz=j({name:"AddLocation",__name:"add-location",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),A("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"}),A("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"})]))}}),cz=lz,uz=j({name:"Aim",__name:"aim",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),dz=uz,fz=j({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),hz=fz,pz=j({name:"Apple",__name:"apple",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),vz=pz,mz=j({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),gz=mz,bz=j({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Nr=bz,yz=j({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),wz=yz,_z=j({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Go=_z,Cz=j({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Sz=Cz,xz=j({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Ds=xz,Ez=j({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),kz=Ez,Az=j({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Xm=Az,Tz=j({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Mz=Tz,Pz=j({name:"Back",__name:"back",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),A("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"})]))}}),kk=Pz,Rz=j({name:"Baseball",__name:"baseball",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),Iz=Rz,Lz=j({name:"Basketball",__name:"basketball",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Oz=Lz,Nz=j({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),$z=Nz,Dz=j({name:"Bell",__name:"bell",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),A("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"}),A("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),Fz=Dz,Bz=j({name:"Bicycle",__name:"bicycle",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),A("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"}),A("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"}),A("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),Vz=Bz,zz=j({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),A("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"})]))}}),Hz=zz,Wz=j({name:"BottomRight",__name:"bottom-right",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),A("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"})]))}}),jz=Wz,Kz=j({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Uz=Kz,qz=j({name:"Bowl",__name:"bowl",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Gz=qz,Yz=j({name:"Box",__name:"box",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),A("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"})]))}}),Xz=Yz,Jz=j({name:"Briefcase",__name:"briefcase",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),Zz=Jz,Qz=j({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),eH=Qz,tH=j({name:"Brush",__name:"brush",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),nH=tH,sH=j({name:"Burger",__name:"burger",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),aH=sH,oH=j({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Ak=oH,rH=j({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),iH=rH,lH=j({name:"Camera",__name:"camera",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),cH=lH,uH=j({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),dH=uH,fH=j({name:"CaretLeft",__name:"caret-left",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),hH=fH,pH=j({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),$8=pH,vH=j({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),Tk=vH,mH=j({name:"Cellphone",__name:"cellphone",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),gH=mH,bH=j({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),yH=bH,wH=j({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),_H=wH,CH=j({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),SH=CH,xH=j({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),EH=xH,kH=j({name:"ChatRound",__name:"chat-round",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),AH=kH,TH=j({name:"ChatSquare",__name:"chat-square",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),MH=TH,PH=j({name:"Check",__name:"check",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),_0=PH,RH=j({name:"Checked",__name:"checked",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),IH=RH,LH=j({name:"Cherry",__name:"cherry",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),OH=LH,NH=j({name:"Chicken",__name:"chicken",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),$H=NH,DH=j({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("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"}),A("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"}),A("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"})]))}}),FH=DH,BH=j({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Mk=BH,VH=j({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),Jm=VH,zH=j({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),kb=zH,HH=j({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),Jo=HH,WH=j({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),jH=WH,KH=j({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),A("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),A("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"})]))}}),UH=KH,qH=j({name:"Clock",__name:"clock",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),D8=qH,GH=j({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),YH=GH,XH=j({name:"Close",__name:"close",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),eo=XH,JH=j({name:"Cloudy",__name:"cloudy",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),ZH=JH,QH=j({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),eW=QH,tW=j({name:"Coffee",__name:"coffee",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),nW=tW,sW=j({name:"Coin",__name:"coin",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"}),A("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"})]))}}),aW=sW,oW=j({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),rW=oW,iW=j({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),lW=iW,cW=j({name:"Collection",__name:"collection",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),uW=cW,dW=j({name:"Comment",__name:"comment",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),fW=dW,hW=j({name:"Compass",__name:"compass",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),pW=hW,vW=j({name:"Connection",__name:"connection",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),mW=vW,gW=j({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),A("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"})]))}}),bW=gW,yW=j({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),wW=yW,_W=j({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),CW=_W,SW=j({name:"CreditCard",__name:"credit-card",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),xW=SW,EW=j({name:"Crop",__name:"crop",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),A("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),s1=EW,kW=j({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Al=kW,AW=j({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Tl=AW,TW=j({name:"DCaret",__name:"d-caret",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),MW=TW,PW=j({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),RW=PW,IW=j({name:"DataBoard",__name:"data-board",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),A("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),A("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),LW=IW,OW=j({name:"DataLine",__name:"data-line",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),NW=OW,$W=j({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),DW=$W,FW=j({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),A("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"}),A("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),BW=FW,VW=j({name:"Delete",__name:"delete",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Pk=VW,zW=j({name:"Dessert",__name:"dessert",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),HW=zW,WW=j({name:"Discount",__name:"discount",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),jW=WW,KW=j({name:"DishDot",__name:"dish-dot",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),UW=KW,qW=j({name:"Dish",__name:"dish",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),GW=qW,YW=j({name:"DocumentAdd",__name:"document-add",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Rk=YW,XW=j({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),JW=XW,ZW=j({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),QW=ZW,ej=j({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),tj=ej,nj=j({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),sj=nj,aj=j({name:"Document",__name:"document",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),a1=aj,oj=j({name:"Download",__name:"download",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),bl=oj,rj=j({name:"Drizzling",__name:"drizzling",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),ij=rj,lj=j({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),cj=lj,uj=j({name:"Edit",__name:"edit",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),dj=uj,fj=j({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),hj=fj,pj=j({name:"Eleme",__name:"eleme",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),vj=pj,mj=j({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),gj=mj,bj=j({name:"Expand",__name:"expand",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),yj=bj,wj=j({name:"Failed",__name:"failed",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),_j=wj,Cj=j({name:"Female",__name:"female",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),A("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),Sj=Cj,xj=j({name:"Files",__name:"files",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),F8=xj,Ej=j({name:"Film",__name:"film",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),kj=Ej,Aj=j({name:"Filter",__name:"filter",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Tj=Aj,Mj=j({name:"Finished",__name:"finished",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Ik=Mj,Pj=j({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),Rj=Pj,Ij=j({name:"Flag",__name:"flag",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),Lj=Ij,Oj=j({name:"Fold",__name:"fold",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),Nj=Oj,$j=j({name:"FolderAdd",__name:"folder-add",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Dj=$j,Fj=j({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Bj=Fj,Vj=j({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),zj=Vj,Hj=j({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),o1=Hj,Wj=j({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),jj=Wj,Kj=j({name:"Folder",__name:"folder",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Uj=Kj,qj=j({name:"Food",__name:"food",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Gj=qj,Yj=j({name:"Football",__name:"football",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),Xj=Yj,Jj=j({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Zj=Jj,Qj=j({name:"Fries",__name:"fries",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),eK=Qj,tK=j({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),B8=tK,nK=j({name:"GobletFull",__name:"goblet-full",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),sK=nK,aK=j({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),oK=aK,rK=j({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),iK=rK,lK=j({name:"Goblet",__name:"goblet",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),cK=lK,uK=j({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),dK=uK,fK=j({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),hK=fK,pK=j({name:"Goods",__name:"goods",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),vK=pK,mK=j({name:"Grape",__name:"grape",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),gK=mK,bK=j({name:"Grid",__name:"grid",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),Lk=bK,yK=j({name:"Guide",__name:"guide",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),wK=yK,_K=j({name:"Handbag",__name:"handbag",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("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"})]))}}),CK=_K,SK=j({name:"Headset",__name:"headset",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),xK=SK,EK=j({name:"HelpFilled",__name:"help-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),kK=EK,AK=j({name:"Help",__name:"help",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),TK=AK,MK=j({name:"Hide",__name:"hide",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),Ok=MK,PK=j({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),RK=PK,IK=j({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),LK=IK,OK=j({name:"HotWater",__name:"hot-water",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),NK=OK,$K=j({name:"House",__name:"house",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),DK=$K,FK=j({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),BK=FK,VK=j({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),zK=VK,HK=j({name:"IceCream",__name:"ice-cream",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),WK=HK,jK=j({name:"IceDrink",__name:"ice-drink",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),KK=jK,UK=j({name:"IceTea",__name:"ice-tea",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),qK=UK,GK=j({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Qh=GK,YK=j({name:"Iphone",__name:"iphone",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),XK=YK,JK=j({name:"Key",__name:"key",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),ZK=JK,QK=j({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),eU=QK,tU=j({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),nU=tU,sU=j({name:"Link",__name:"link",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),aU=sU,oU=j({name:"List",__name:"list",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),Nk=oU,rU=j({name:"Loading",__name:"loading",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Ao=rU,iU=j({name:"LocationFilled",__name:"location-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),lU=iU,cU=j({name:"LocationInformation",__name:"location-information",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),A("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"}),A("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"})]))}}),uU=cU,dU=j({name:"Location",__name:"location",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),fU=dU,hU=j({name:"Lock",__name:"lock",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),pU=hU,vU=j({name:"Lollipop",__name:"lollipop",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),mU=vU,gU=j({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),bU=gU,yU=j({name:"Magnet",__name:"magnet",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),wU=yU,_U=j({name:"Male",__name:"male",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"}),A("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),CU=_U,SU=j({name:"Management",__name:"management",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),xU=SU,EU=j({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),kU=EU,AU=j({name:"Medal",__name:"medal",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),TU=AU,MU=j({name:"Memo",__name:"memo",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("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"}),A("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"}),A("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"})]))}}),PU=MU,RU=j({name:"Menu",__name:"menu",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),IU=RU,LU=j({name:"MessageBox",__name:"message-box",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),OU=LU,NU=j({name:"Message",__name:"message",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),$U=NU,DU=j({name:"Mic",__name:"mic",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),FU=DU,BU=j({name:"Microphone",__name:"microphone",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),VU=BU,zU=j({name:"MilkTea",__name:"milk-tea",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),HU=zU,WU=j({name:"Minus",__name:"minus",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),$k=WU,jU=j({name:"Money",__name:"money",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"}),A("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"})]))}}),KU=jU,UU=j({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),qU=UU,GU=j({name:"MoonNight",__name:"moon-night",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),YU=GU,XU=j({name:"Moon",__name:"moon",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),JU=XU,ZU=j({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Ay=ZU,QU=j({name:"More",__name:"more",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Dk=QU,eq=j({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),tq=eq,nq=j({name:"Mouse",__name:"mouse",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),sq=nq,aq=j({name:"Mug",__name:"mug",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),oq=aq,rq=j({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),iq=rq,lq=j({name:"Mute",__name:"mute",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),cq=lq,uq=j({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),dq=uq,fq=j({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),hq=fq,pq=j({name:"Notification",__name:"notification",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),vq=pq,mq=j({name:"Odometer",__name:"odometer",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"}),A("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"})]))}}),gq=mq,bq=j({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),A("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"})]))}}),yq=bq,wq=j({name:"Open",__name:"open",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),_q=wq,Cq=j({name:"Operation",__name:"operation",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Sq=Cq,xq=j({name:"Opportunity",__name:"opportunity",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Eq=xq,kq=j({name:"Orange",__name:"orange",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Aq=kq,Tq=j({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Mq=Tq,Pq=j({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),Rq=Pq,Iq=j({name:"Pear",__name:"pear",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Lq=Iq,Oq=j({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Nq=Oq,$q=j({name:"Phone",__name:"phone",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Dq=$q,Fq=j({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Fk=Fq,Bq=j({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),Vq=Bq,zq=j({name:"Picture",__name:"picture",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),Hq=zq,Wq=j({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),jq=Wq,Kq=j({name:"Place",__name:"place",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),A("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"})]))}}),Uq=Kq,qq=j({name:"Platform",__name:"platform",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),Gq=qq,Yq=j({name:"Plus",__name:"plus",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),V8=Yq,Xq=j({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Jq=Xq,Zq=j({name:"Position",__name:"position",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Qq=Zq,eG=j({name:"Postcard",__name:"postcard",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),tG=eG,nG=j({name:"Pouring",__name:"pouring",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),sG=nG,aG=j({name:"Present",__name:"present",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),A("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),A("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"}),A("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"})]))}}),oG=aG,rG=j({name:"PriceTag",__name:"price-tag",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),iG=rG,lG=j({name:"Printer",__name:"printer",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),cG=lG,uG=j({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),Bk=uG,dG=j({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("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"}),A("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"}),A("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"})]))}}),fG=dG,hG=j({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Vk=hG,pG=j({name:"Rank",__name:"rank",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),zk=pG,vG=j({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),mG=vG,gG=j({name:"Reading",__name:"reading",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),bG=gG,yG=j({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Ab=yG,wG=j({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Hk=wG,_G=j({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),CG=_G,SG=j({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),xG=SG,EG=j({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),kG=EG,AG=j({name:"Remove",__name:"remove",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),A("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"})]))}}),TG=AG,MG=j({name:"Right",__name:"right",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),PG=MG,RG=j({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Wk=RG,IG=j({name:"School",__name:"school",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),A("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"})]))}}),LG=IG,OG=j({name:"Scissor",__name:"scissor",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),NG=OG,$G=j({name:"Search",__name:"search",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),jk=$G,DG=j({name:"Select",__name:"select",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),FG=DG,BG=j({name:"Sell",__name:"sell",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),VG=BG,zG=j({name:"SemiSelect",__name:"semi-select",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),HG=zG,WG=j({name:"Service",__name:"service",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),jG=WG,KG=j({name:"SetUp",__name:"set-up",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"}),A("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"}),A("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),UG=KG,qG=j({name:"Setting",__name:"setting",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),GG=qG,YG=j({name:"Share",__name:"share",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),XG=YG,JG=j({name:"Ship",__name:"ship",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),ZG=JG,QG=j({name:"Shop",__name:"shop",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),eY=QG,tY=j({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),nY=tY,sY=j({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),aY=sY,oY=j({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),rY=oY,iY=j({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("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"})]))}}),lY=iY,cY=j({name:"Smoking",__name:"smoking",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),uY=cY,dY=j({name:"Soccer",__name:"soccer",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),fY=dY,hY=j({name:"SoldOut",__name:"sold-out",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),pY=hY,vY=j({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Kk=vY,mY=j({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Uk=mY,gY=j({name:"Sort",__name:"sort",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),bY=gY,yY=j({name:"Stamp",__name:"stamp",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),wY=yY,_Y=j({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),W0=_Y,CY=j({name:"Star",__name:"star",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),qk=CY,SY=j({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),xY=SY,EY=j({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),z8=EY,kY=j({name:"Sugar",__name:"sugar",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),AY=kY,TY=j({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("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"})]))}}),MY=TY,PY=j({name:"Suitcase",__name:"suitcase",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),RY=PY,IY=j({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),LY=IY,OY=j({name:"Sunrise",__name:"sunrise",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),NY=OY,$Y=j({name:"Sunset",__name:"sunset",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),DY=$Y,FY=j({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),BY=FY,VY=j({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),zY=VY,HY=j({name:"Switch",__name:"switch",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),WY=HY,jY=j({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),KY=jY,UY=j({name:"Ticket",__name:"ticket",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),qY=UY,GY=j({name:"Tickets",__name:"tickets",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),YY=GY,XY=j({name:"Timer",__name:"timer",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"}),A("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"})]))}}),JY=XY,ZY=j({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),QY=ZY,eX=j({name:"Tools",__name:"tools",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),tX=eX,nX=j({name:"TopLeft",__name:"top-left",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),A("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"})]))}}),sX=nX,aX=j({name:"TopRight",__name:"top-right",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),oX=aX,rX=j({name:"Top",__name:"top",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),iX=rX,lX=j({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),cX=lX,uX=j({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("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"})]))}}),dX=uX,fX=j({name:"Trophy",__name:"trophy",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),hX=fX,pX=j({name:"TurnOff",__name:"turn-off",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),vX=pX,mX=j({name:"Umbrella",__name:"umbrella",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),gX=mX,bX=j({name:"Unlock",__name:"unlock",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),yX=bX,wX=j({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),_X=wX,CX=j({name:"Upload",__name:"upload",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Gk=CX,SX=j({name:"UserFilled",__name:"user-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),xX=SX,EX=j({name:"User",__name:"user",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),kX=EX,AX=j({name:"Van",__name:"van",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),TX=AX,MX=j({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),PX=MX,RX=j({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),IX=RX,LX=j({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),OX=LX,NX=j({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),$X=NX,DX=j({name:"View",__name:"view",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),H8=DX,FX=j({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),BX=FX,VX=j({name:"Wallet",__name:"wallet",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"}),A("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),zX=VX,HX=j({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("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"})]))}}),WX=HX,jX=j({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Zm=jX,KX=j({name:"Warning",__name:"warning",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),UX=KX,qX=j({name:"Watch",__name:"watch",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),GX=qX,YX=j({name:"Watermelon",__name:"watermelon",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),XX=YX,JX=j({name:"WindPower",__name:"wind-power",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),ZX=JX,QX=j({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Tb=QX,eJ=j({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),W8=eJ;const tJ=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:cz,Aim:dz,AlarmClock:hz,Apple:vz,ArrowDown:Nr,ArrowDownBold:gz,ArrowLeft:Go,ArrowLeftBold:wz,ArrowRight:Ds,ArrowRightBold:Sz,ArrowUp:Xm,ArrowUpBold:kz,Avatar:Mz,Back:kk,Baseball:Iz,Basketball:Oz,Bell:Fz,BellFilled:$z,Bicycle:Vz,Bottom:Uz,BottomLeft:Hz,BottomRight:jz,Bowl:Gz,Box:Xz,Briefcase:Zz,Brush:nH,BrushFilled:eH,Burger:aH,Calendar:Ak,Camera:cH,CameraFilled:iH,CaretBottom:dH,CaretLeft:hH,CaretRight:$8,CaretTop:Tk,Cellphone:gH,ChatDotRound:yH,ChatDotSquare:_H,ChatLineRound:SH,ChatLineSquare:EH,ChatRound:AH,ChatSquare:MH,Check:_0,Checked:IH,Cherry:OH,Chicken:$H,ChromeFilled:FH,CircleCheck:Jm,CircleCheckFilled:Mk,CircleClose:Jo,CircleCloseFilled:kb,CirclePlus:UH,CirclePlusFilled:jH,Clock:D8,Close:eo,CloseBold:YH,Cloudy:ZH,Coffee:nW,CoffeeCup:eW,Coin:aW,ColdDrink:rW,Collection:uW,CollectionTag:lW,Comment:fW,Compass:pW,Connection:mW,Coordinate:bW,CopyDocument:wW,Cpu:CW,CreditCard:xW,Crop:s1,DArrowLeft:Al,DArrowRight:Tl,DCaret:MW,DataAnalysis:RW,DataBoard:LW,DataLine:NW,Delete:Pk,DeleteFilled:DW,DeleteLocation:BW,Dessert:HW,Discount:jW,Dish:GW,DishDot:UW,Document:a1,DocumentAdd:Rk,DocumentChecked:JW,DocumentCopy:QW,DocumentDelete:tj,DocumentRemove:sj,Download:bl,Drizzling:ij,Edit:dj,EditPen:cj,Eleme:vj,ElemeFilled:hj,ElementPlus:gj,Expand:yj,Failed:_j,Female:Sj,Files:F8,Film:kj,Filter:Tj,Finished:Ik,FirstAidKit:Rj,Flag:Lj,Fold:Nj,Folder:Uj,FolderAdd:Dj,FolderChecked:Bj,FolderDelete:zj,FolderOpened:o1,FolderRemove:jj,Food:Gj,Football:Xj,ForkSpoon:Zj,Fries:eK,FullScreen:B8,Goblet:cK,GobletFull:sK,GobletSquare:iK,GobletSquareFull:oK,GoldMedal:dK,Goods:vK,GoodsFilled:hK,Grape:gK,Grid:Lk,Guide:wK,Handbag:CK,Headset:xK,Help:TK,HelpFilled:kK,Hide:Ok,Histogram:RK,HomeFilled:LK,HotWater:NK,House:DK,IceCream:WK,IceCreamRound:BK,IceCreamSquare:zK,IceDrink:KK,IceTea:qK,InfoFilled:Qh,Iphone:XK,Key:ZK,KnifeFork:eU,Lightning:nU,Link:aU,List:Nk,Loading:Ao,Location:fU,LocationFilled:lU,LocationInformation:uU,Lock:pU,Lollipop:mU,MagicStick:bU,Magnet:wU,Male:CU,Management:xU,MapLocation:kU,Medal:TU,Memo:PU,Menu:IU,Message:$U,MessageBox:OU,Mic:FU,Microphone:VU,MilkTea:HU,Minus:$k,Money:KU,Monitor:qU,Moon:JU,MoonNight:YU,More:Dk,MoreFilled:Ay,MostlyCloudy:tq,Mouse:sq,Mug:oq,Mute:cq,MuteNotification:iq,NoSmoking:dq,Notebook:hq,Notification:vq,Odometer:gq,OfficeBuilding:yq,Open:_q,Operation:Sq,Opportunity:Eq,Orange:Aq,Paperclip:Mq,PartlyCloudy:Rq,Pear:Lq,Phone:Dq,PhoneFilled:Nq,Picture:Hq,PictureFilled:Fk,PictureRounded:Vq,PieChart:jq,Place:Uq,Platform:Gq,Plus:V8,Pointer:Jq,Position:Qq,Postcard:tG,Pouring:sG,Present:oG,PriceTag:iG,Printer:cG,Promotion:Bk,QuartzWatch:fG,QuestionFilled:Vk,Rank:zk,Reading:bG,ReadingLamp:mG,Refresh:CG,RefreshLeft:Ab,RefreshRight:Hk,Refrigerator:xG,Remove:TG,RemoveFilled:kG,Right:PG,ScaleToOriginal:Wk,School:LG,Scissor:NG,Search:jk,Select:FG,Sell:VG,SemiSelect:HG,Service:jG,SetUp:UG,Setting:GG,Share:XG,Ship:ZG,Shop:eY,ShoppingBag:nY,ShoppingCart:rY,ShoppingCartFull:aY,ShoppingTrolley:lY,Smoking:uY,Soccer:fY,SoldOut:pY,Sort:bY,SortDown:Kk,SortUp:Uk,Stamp:wY,Star:qk,StarFilled:W0,Stopwatch:xY,SuccessFilled:z8,Sugar:AY,Suitcase:RY,SuitcaseLine:MY,Sunny:LY,Sunrise:NY,Sunset:DY,Switch:WY,SwitchButton:BY,SwitchFilled:zY,TakeawayBox:KY,Ticket:qY,Tickets:YY,Timer:JY,ToiletPaper:QY,Tools:tX,Top:iX,TopLeft:sX,TopRight:oX,TrendCharts:cX,Trophy:hX,TrophyBase:dX,TurnOff:vX,Umbrella:gX,Unlock:yX,Upload:Gk,UploadFilled:_X,User:kX,UserFilled:xX,Van:TX,VideoCamera:IX,VideoCameraFilled:PX,VideoPause:OX,VideoPlay:$X,View:H8,Wallet:zX,WalletFilled:BX,WarnTriangleFilled:WX,Warning:UX,WarningFilled:Zm,Watch:GX,Watermelon:XX,WindPower:ZX,ZoomIn:Tb,ZoomOut:W8},Symbol.toStringTag,{value:"Module"})),en=re([String,Object,Function]),Yk={Close:eo},j8={Close:eo,SuccessFilled:z8,InfoFilled:Qh,WarningFilled:Zm,CircleCloseFilled:kb},Hc={primary:Qh,success:z8,warning:Zm,error:kb,info:Qh},Mb={validating:Ao,success:Jm,error:Jo},nJ=["light","dark"],sJ=Me({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:zp(Hc),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:nJ,default:"light"}}),aJ={close:e=>e instanceof MouseEvent},oJ=Me({size:{type:re([Number,String])},color:{type:String}});var rJ=j({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:oJ,setup(e){const t=e,n=Ee("icon"),s=k(()=>{const{size:a,color:o}=t,r=Mn(a);return!r&&!o?{}:{fontSize:r,"--color":o}});return(a,o)=>(S(),P("i",_t({class:f(n).b(),style:s.value},a.$attrs),[ue(a.$slots,"default")],16))}});const Ye=pt(rJ);var Vo=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Vo||{});function Ty(e){return un(e)&&e.type===Ve}function Xk(e){return un(e)&&e.type===Kn}function iJ(e){return un(e)&&!Ty(e)&&!Xk(e)}const lJ=e=>{if(!un(e))return{};const t=e.props||{},n=(un(e.type)?e.type.props:void 0)||{},s={};return Object.keys(n).forEach(a=>{Wt(n[a],"default")&&(s[a]=n[a].default)}),Object.keys(t).forEach(a=>{s[Oa(a)]=t[a]}),s},Co=e=>{const t=ke(e)?e:[e],n=[];return t.forEach(s=>{var a;ke(s)?n.push(...Co(s)):un(s)&&((a=s.component)!=null&&a.subTree)?n.push(s,...Co(s.component.subTree)):un(s)&&ke(s.children)?n.push(...Co(s.children)):un(s)&&s.shapeFlag===2?n.push(...Co(s.type())):n.push(s)}),n};var cJ=j({name:"ElAlert",__name:"alert",props:sJ,emits:aJ,setup(e,{emit:t}){const{Close:n}=j8,s=e,a=t,o=Hn(),r=Ee("alert"),i=F(!0),l=k(()=>Hc[s.type]),c=k(()=>{var d;if(s.description)return!0;const h=(d=o.default)==null?void 0:d.call(o);return h?Co(h).some(v=>!Xk(v)):!1}),u=d=>{i.value=!1,a("close",d)};return(d,h)=>(S(),ce(bs,{name:f(r).b("fade"),persisted:""},{default:X(()=>[gt(A("div",{class:D([f(r).b(),f(r).m(e.type),f(r).is("center",e.center),f(r).is(e.effect)]),role:"alert"},[e.showIcon&&(d.$slots.icon||l.value)?(S(),ce(f(Ye),{key:0,class:D([f(r).e("icon"),f(r).is("big",c.value)])},{default:X(()=>[ue(d.$slots,"icon",{},()=>[(S(),ce(bt(l.value)))])]),_:3},8,["class"])):ie("v-if",!0),A("div",{class:D(f(r).e("content"))},[e.title||d.$slots.title?(S(),P("span",{key:0,class:D([f(r).e("title"),{"with-description":c.value}])},[ue(d.$slots,"title",{},()=>[We(ge(e.title),1)])],2)):ie("v-if",!0),c.value?(S(),P("p",{key:1,class:D(f(r).e("description"))},[ue(d.$slots,"default",{},()=>[We(ge(e.description),1)])],2)):ie("v-if",!0),e.closable?(S(),P(Ve,{key:2},[e.closeText?(S(),P("div",{key:0,class:D([f(r).e("close-btn"),f(r).is("customed")]),onClick:u},ge(e.closeText),3)):(S(),ce(f(Ye),{key:1,class:D(f(r).e("close-btn")),onClick:u},{default:X(()=>[W(f(n))]),_:1},8,["class"]))],64)):ie("v-if",!0)],2)],2),[[Bt,i.value]])]),_:3},8,["name"]))}});const uJ=pt(cJ);var Ja="top",Yo="bottom",Xo="right",Za="left",K8="auto",Qm=[Ja,Yo,Xo,Za],e0="start",Hp="end",dJ="clippingParents",Jk="viewport",I0="popper",fJ="reference",QC=Qm.reduce(function(e,t){return e.concat([t+"-"+e0,t+"-"+Hp])},[]),Ei=[].concat(Qm,[K8]).reduce(function(e,t){return e.concat([t,t+"-"+e0,t+"-"+Hp])},[]),hJ="beforeRead",pJ="read",vJ="afterRead",mJ="beforeMain",gJ="main",bJ="afterMain",yJ="beforeWrite",wJ="write",_J="afterWrite",CJ=[hJ,pJ,vJ,mJ,gJ,bJ,yJ,wJ,_J];function _i(e){return e?(e.nodeName||"").toLowerCase():null}function To(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fd(e){var t=To(e).Element;return e instanceof t||e instanceof Element}function Ko(e){var t=To(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function U8(e){if(typeof ShadowRoot>"u")return!1;var t=To(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function SJ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var s=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!Ko(o)||!_i(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(r){var i=a[r];i===!1?o.removeAttribute(r):o.setAttribute(r,i===!0?"":i)}))})}function xJ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(s){var a=t.elements[s],o=t.attributes[s]||{},r=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),i=r.reduce(function(l,c){return l[c]="",l},{});!Ko(a)||!_i(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}var Zk={name:"applyStyles",enabled:!0,phase:"write",fn:SJ,effect:xJ,requires:["computeStyles"]};function hi(e){return e.split("-")[0]}var Pd=Math.max,r1=Math.min,t0=Math.round;function My(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Qk(){return!/^((?!chrome|android).)*safari/i.test(My())}function n0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),a=1,o=1;t&&Ko(e)&&(a=e.offsetWidth>0&&t0(s.width)/e.offsetWidth||1,o=e.offsetHeight>0&&t0(s.height)/e.offsetHeight||1);var r=Fd(e)?To(e):window,i=r.visualViewport,l=!Qk()&&n,c=(s.left+(l&&i?i.offsetLeft:0))/a,u=(s.top+(l&&i?i.offsetTop:0))/o,d=s.width/a,h=s.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function q8(e){var t=n0(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function eA(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&U8(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Ml(e){return To(e).getComputedStyle(e)}function EJ(e){return["table","td","th"].indexOf(_i(e))>=0}function Yc(e){return((Fd(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pb(e){return _i(e)==="html"?e:e.assignedSlot||e.parentNode||(U8(e)?e.host:null)||Yc(e)}function eS(e){return!Ko(e)||Ml(e).position==="fixed"?null:e.offsetParent}function kJ(e){var t=/firefox/i.test(My()),n=/Trident/i.test(My());if(n&&Ko(e)){var s=Ml(e);if(s.position==="fixed")return null}var a=Pb(e);for(U8(a)&&(a=a.host);Ko(a)&&["html","body"].indexOf(_i(a))<0;){var o=Ml(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function e2(e){for(var t=To(e),n=eS(e);n&&EJ(n)&&Ml(n).position==="static";)n=eS(n);return n&&(_i(n)==="html"||_i(n)==="body"&&Ml(n).position==="static")?t:n||kJ(e)||t}function G8(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _p(e,t,n){return Pd(e,r1(t,n))}function AJ(e,t,n){var s=_p(e,t,n);return s>n?n:s}function tA(){return{top:0,right:0,bottom:0,left:0}}function nA(e){return Object.assign({},tA(),e)}function sA(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var TJ=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,nA(typeof e!="number"?e:sA(e,Qm))};function MJ(e){var t,n=e.state,s=e.name,a=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,i=hi(n.placement),l=G8(i),c=[Za,Xo].indexOf(i)>=0,u=c?"height":"width";if(!(!o||!r)){var d=TJ(a.padding,n),h=q8(o),p=l==="y"?Ja:Za,v=l==="y"?Yo:Xo,m=n.rects.reference[u]+n.rects.reference[l]-r[l]-n.rects.popper[u],g=r[l]-n.rects.reference[l],b=e2(o),C=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,w=m/2-g/2,_=d[p],x=C-h[u]-d[v],E=C/2-h[u]/2+w,T=_p(_,E,x),R=l;n.modifiersData[s]=(t={},t[R]=T,t.centerOffset=T-E,t)}}function PJ(e){var t=e.state,n=e.options,s=n.element,a=s===void 0?"[data-popper-arrow]":s;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||eA(t.elements.popper,a)&&(t.elements.arrow=a))}var RJ={name:"arrow",enabled:!0,phase:"main",fn:MJ,effect:PJ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function s0(e){return e.split("-")[1]}var IJ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function LJ(e,t){var n=e.x,s=e.y,a=t.devicePixelRatio||1;return{x:t0(n*a)/a||0,y:t0(s*a)/a||0}}function tS(e){var t,n=e.popper,s=e.popperRect,a=e.placement,o=e.variation,r=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=r.x,p=h===void 0?0:h,v=r.y,m=v===void 0?0:v,g=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var b=r.hasOwnProperty("x"),C=r.hasOwnProperty("y"),w=Za,_=Ja,x=window;if(c){var E=e2(n),T="clientHeight",R="clientWidth";if(E===To(n)&&(E=Yc(n),Ml(E).position!=="static"&&i==="absolute"&&(T="scrollHeight",R="scrollWidth")),E=E,a===Ja||(a===Za||a===Xo)&&o===Hp){_=Yo;var I=d&&E===x&&x.visualViewport?x.visualViewport.height:E[T];m-=I-s.height,m*=l?1:-1}if(a===Za||(a===Ja||a===Yo)&&o===Hp){w=Xo;var M=d&&E===x&&x.visualViewport?x.visualViewport.width:E[R];p-=M-s.width,p*=l?1:-1}}var $=Object.assign({position:i},c&&IJ),L=u===!0?LJ({x:p,y:m},To(n)):{x:p,y:m};if(p=L.x,m=L.y,l){var B;return Object.assign({},$,(B={},B[_]=C?"0":"",B[w]=b?"0":"",B.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",B))}return Object.assign({},$,(t={},t[_]=C?m+"px":"",t[w]=b?p+"px":"",t.transform="",t))}function OJ(e){var t=e.state,n=e.options,s=n.gpuAcceleration,a=s===void 0?!0:s,o=n.adaptive,r=o===void 0?!0:o,i=n.roundOffsets,l=i===void 0?!0:i,c={placement:hi(t.placement),variation:s0(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,tS(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,tS(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var aA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:OJ,data:{}},x2={passive:!0};function NJ(e){var t=e.state,n=e.instance,s=e.options,a=s.scroll,o=a===void 0?!0:a,r=s.resize,i=r===void 0?!0:r,l=To(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,x2)}),i&&l.addEventListener("resize",n.update,x2),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,x2)}),i&&l.removeEventListener("resize",n.update,x2)}}var oA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:NJ,data:{}},$J={left:"right",right:"left",bottom:"top",top:"bottom"};function Y2(e){return e.replace(/left|right|bottom|top/g,function(t){return $J[t]})}var DJ={start:"end",end:"start"};function nS(e){return e.replace(/start|end/g,function(t){return DJ[t]})}function Y8(e){var t=To(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function X8(e){return n0(Yc(e)).left+Y8(e).scrollLeft}function FJ(e,t){var n=To(e),s=Yc(e),a=n.visualViewport,o=s.clientWidth,r=s.clientHeight,i=0,l=0;if(a){o=a.width,r=a.height;var c=Qk();(c||!c&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:o,height:r,x:i+X8(e),y:l}}function BJ(e){var t,n=Yc(e),s=Y8(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Pd(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),r=Pd(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-s.scrollLeft+X8(e),l=-s.scrollTop;return Ml(a||n).direction==="rtl"&&(i+=Pd(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:r,x:i,y:l}}function J8(e){var t=Ml(e),n=t.overflow,s=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+s)}function rA(e){return["html","body","#document"].indexOf(_i(e))>=0?e.ownerDocument.body:Ko(e)&&J8(e)?e:rA(Pb(e))}function Cp(e,t){var n;t===void 0&&(t=[]);var s=rA(e),a=s===((n=e.ownerDocument)==null?void 0:n.body),o=To(s),r=a?[o].concat(o.visualViewport||[],J8(s)?s:[]):s,i=t.concat(r);return a?i:i.concat(Cp(Pb(r)))}function Py(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function VJ(e,t){var n=n0(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function sS(e,t,n){return t===Jk?Py(FJ(e,n)):Fd(t)?VJ(t,n):Py(BJ(Yc(e)))}function zJ(e){var t=Cp(Pb(e)),n=["absolute","fixed"].indexOf(Ml(e).position)>=0,s=n&&Ko(e)?e2(e):e;return Fd(s)?t.filter(function(a){return Fd(a)&&eA(a,s)&&_i(a)!=="body"}):[]}function HJ(e,t,n,s){var a=t==="clippingParents"?zJ(e):[].concat(t),o=[].concat(a,[n]),r=o[0],i=o.reduce(function(l,c){var u=sS(e,c,s);return l.top=Pd(u.top,l.top),l.right=r1(u.right,l.right),l.bottom=r1(u.bottom,l.bottom),l.left=Pd(u.left,l.left),l},sS(e,r,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function iA(e){var t=e.reference,n=e.element,s=e.placement,a=s?hi(s):null,o=s?s0(s):null,r=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(a){case Ja:l={x:r,y:t.y-n.height};break;case Yo:l={x:r,y:t.y+t.height};break;case Xo:l={x:t.x+t.width,y:i};break;case Za:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var c=a?G8(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case e0:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Hp:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Wp(e,t){t===void 0&&(t={});var n=t,s=n.placement,a=s===void 0?e.placement:s,o=n.strategy,r=o===void 0?e.strategy:o,i=n.boundary,l=i===void 0?dJ:i,c=n.rootBoundary,u=c===void 0?Jk:c,d=n.elementContext,h=d===void 0?I0:d,p=n.altBoundary,v=p===void 0?!1:p,m=n.padding,g=m===void 0?0:m,b=nA(typeof g!="number"?g:sA(g,Qm)),C=h===I0?fJ:I0,w=e.rects.popper,_=e.elements[v?C:h],x=HJ(Fd(_)?_:_.contextElement||Yc(e.elements.popper),l,u,r),E=n0(e.elements.reference),T=iA({reference:E,element:w,placement:a}),R=Py(Object.assign({},w,T)),I=h===I0?R:E,M={top:x.top-I.top+b.top,bottom:I.bottom-x.bottom+b.bottom,left:x.left-I.left+b.left,right:I.right-x.right+b.right},$=e.modifiersData.offset;if(h===I0&&$){var L=$[a];Object.keys(M).forEach(function(B){var q=[Xo,Yo].indexOf(B)>=0?1:-1,J=[Ja,Yo].indexOf(B)>=0?"y":"x";M[B]+=L[J]*q})}return M}function WJ(e,t){t===void 0&&(t={});var n=t,s=n.placement,a=n.boundary,o=n.rootBoundary,r=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Ei:l,u=s0(s),d=u?i?QC:QC.filter(function(v){return s0(v)===u}):Qm,h=d.filter(function(v){return c.indexOf(v)>=0});h.length===0&&(h=d);var p=h.reduce(function(v,m){return v[m]=Wp(e,{placement:m,boundary:a,rootBoundary:o,padding:r})[hi(m)],v},{});return Object.keys(p).sort(function(v,m){return p[v]-p[m]})}function jJ(e){if(hi(e)===K8)return[];var t=Y2(e);return[nS(e),t,nS(t)]}function KJ(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,r=n.altAxis,i=r===void 0?!0:r,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,v=p===void 0?!0:p,m=n.allowedAutoPlacements,g=t.options.placement,b=hi(g),C=b===g,w=l||(C||!v?[Y2(g)]:jJ(g)),_=[g].concat(w).reduce(function(ee,se){return ee.concat(hi(se)===K8?WJ(t,{placement:se,boundary:u,rootBoundary:d,padding:c,flipVariations:v,allowedAutoPlacements:m}):se)},[]),x=t.rects.reference,E=t.rects.popper,T=new Map,R=!0,I=_[0],M=0;M<_.length;M++){var $=_[M],L=hi($),B=s0($)===e0,q=[Ja,Yo].indexOf(L)>=0,J=q?"width":"height",Y=Wp(t,{placement:$,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),O=q?B?Xo:Za:B?Yo:Ja;x[J]>E[J]&&(O=Y2(O));var N=Y2(O),V=[];if(o&&V.push(Y[L]<=0),i&&V.push(Y[O]<=0,Y[N]<=0),V.every(function(ee){return ee})){I=$,R=!1;break}T.set($,V)}if(R)for(var z=v?3:1,G=function(ee){var se=_.find(function(he){var te=T.get(he);if(te)return te.slice(0,ee).every(function(pe){return pe})});if(se)return I=se,"break"},Q=z;Q>0;Q--){var K=G(Q);if(K==="break")break}t.placement!==I&&(t.modifiersData[s]._skip=!0,t.placement=I,t.reset=!0)}}var UJ={name:"flip",enabled:!0,phase:"main",fn:KJ,requiresIfExists:["offset"],data:{_skip:!1}};function aS(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function oS(e){return[Ja,Xo,Yo,Za].some(function(t){return e[t]>=0})}function qJ(e){var t=e.state,n=e.name,s=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,r=Wp(t,{elementContext:"reference"}),i=Wp(t,{altBoundary:!0}),l=aS(r,s),c=aS(i,a,o),u=oS(l),d=oS(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var GJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qJ};function YJ(e,t,n){var s=hi(e),a=[Za,Ja].indexOf(s)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=o[0],i=o[1];return r=r||0,i=(i||0)*a,[Za,Xo].indexOf(s)>=0?{x:i,y:r}:{x:r,y:i}}function XJ(e){var t=e.state,n=e.options,s=e.name,a=n.offset,o=a===void 0?[0,0]:a,r=Ei.reduce(function(u,d){return u[d]=YJ(d,t.rects,o),u},{}),i=r[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[s]=r}var JJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:XJ};function ZJ(e){var t=e.state,n=e.name;t.modifiersData[n]=iA({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var lA={name:"popperOffsets",enabled:!0,phase:"read",fn:ZJ,data:{}};function QJ(e){return e==="x"?"y":"x"}function eZ(e){var t=e.state,n=e.options,s=e.name,a=n.mainAxis,o=a===void 0?!0:a,r=n.altAxis,i=r===void 0?!1:r,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,p=h===void 0?!0:h,v=n.tetherOffset,m=v===void 0?0:v,g=Wp(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=hi(t.placement),C=s0(t.placement),w=!C,_=G8(b),x=QJ(_),E=t.modifiersData.popperOffsets,T=t.rects.reference,R=t.rects.popper,I=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,M=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(E){if(o){var B,q=_==="y"?Ja:Za,J=_==="y"?Yo:Xo,Y=_==="y"?"height":"width",O=E[_],N=O+g[q],V=O-g[J],z=p?-R[Y]/2:0,G=C===e0?T[Y]:R[Y],Q=C===e0?-R[Y]:-T[Y],K=t.elements.arrow,ee=p&&K?q8(K):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:tA(),he=se[q],te=se[J],pe=_p(0,T[Y],ee[Y]),fe=w?T[Y]/2-z-pe-he-M.mainAxis:G-pe-he-M.mainAxis,le=w?-T[Y]/2+z+pe+te+M.mainAxis:Q+pe+te+M.mainAxis,Z=t.elements.arrow&&e2(t.elements.arrow),H=Z?_==="y"?Z.clientTop||0:Z.clientLeft||0:0,ae=(B=$==null?void 0:$[_])!=null?B:0,de=O+fe-ae-H,ye=O+le-ae,_e=_p(p?r1(N,de):N,O,p?Pd(V,ye):V);E[_]=_e,L[_]=_e-O}if(i){var Se,Ne=_==="x"?Ja:Za,Fe=_==="x"?Yo:Xo,Oe=E[x],Ce=x==="y"?"height":"width",Ie=Oe+g[Ne],Pe=Oe-g[Fe],He=[Ja,Za].indexOf(b)!==-1,Qe=(Se=$==null?void 0:$[x])!=null?Se:0,rt=He?Ie:Oe-T[Ce]-R[Ce]-Qe+M.altAxis,De=He?Oe+T[Ce]+R[Ce]-Qe-M.altAxis:Pe,Ke=p&&He?AJ(rt,Oe,De):_p(p?rt:Ie,Oe,p?De:Pe);E[x]=Ke,L[x]=Ke-Oe}t.modifiersData[s]=L}}var tZ={name:"preventOverflow",enabled:!0,phase:"main",fn:eZ,requiresIfExists:["offset"]};function nZ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sZ(e){return e===To(e)||!Ko(e)?Y8(e):nZ(e)}function aZ(e){var t=e.getBoundingClientRect(),n=t0(t.width)/e.offsetWidth||1,s=t0(t.height)/e.offsetHeight||1;return n!==1||s!==1}function oZ(e,t,n){n===void 0&&(n=!1);var s=Ko(t),a=Ko(t)&&aZ(t),o=Yc(t),r=n0(e,a,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((_i(t)!=="body"||J8(o))&&(i=sZ(t)),Ko(t)?(l=n0(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=X8(o))),{x:r.left+i.scrollLeft-l.x,y:r.top+i.scrollTop-l.y,width:r.width,height:r.height}}function rZ(e){var t=new Map,n=new Set,s=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&a(l)}}),s.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),s}function iZ(e){var t=rZ(e);return CJ.reduce(function(n,s){return n.concat(t.filter(function(a){return a.phase===s}))},[])}function lZ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function cZ(e){var t=e.reduce(function(n,s){var a=n[s.name];return n[s.name]=a?Object.assign({},a,s,{options:Object.assign({},a.options,s.options),data:Object.assign({},a.data,s.data)}):s,n},{});return Object.keys(t).map(function(n){return t[n]})}var rS={placement:"bottom",modifiers:[],strategy:"absolute"};function iS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function Z8(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,s=n===void 0?[]:n,a=t.defaultOptions,o=a===void 0?rS:a;return function(r,i,l){l===void 0&&(l=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},rS,o),modifiersData:{},elements:{reference:r,popper:i},attributes:{},styles:{}},u=[],d=!1,h={state:c,setOptions:function(m){var g=typeof m=="function"?m(c.options):m;v(),c.options=Object.assign({},o,c.options,g),c.scrollParents={reference:Fd(r)?Cp(r):r.contextElement?Cp(r.contextElement):[],popper:Cp(i)};var b=iZ(cZ([].concat(s,c.options.modifiers)));return c.orderedModifiers=b.filter(function(C){return C.enabled}),p(),h.update()},forceUpdate:function(){if(!d){var m=c.elements,g=m.reference,b=m.popper;if(iS(g,b)){c.rects={reference:oZ(g,e2(b),c.options.strategy==="fixed"),popper:q8(b)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(R){return c.modifiersData[R.name]=Object.assign({},R.data)});for(var C=0;C<c.orderedModifiers.length;C++){if(c.reset===!0){c.reset=!1,C=-1;continue}var w=c.orderedModifiers[C],_=w.fn,x=w.options,E=x===void 0?{}:x,T=w.name;typeof _=="function"&&(c=_({state:c,options:E,name:T,instance:h})||c)}}}},update:lZ(function(){return new Promise(function(m){h.forceUpdate(),m(c)})}),destroy:function(){v(),d=!0}};if(!iS(r,i))return h;h.setOptions(l).then(function(m){!d&&l.onFirstUpdate&&l.onFirstUpdate(m)});function p(){c.orderedModifiers.forEach(function(m){var g=m.name,b=m.options,C=b===void 0?{}:b,w=m.effect;if(typeof w=="function"){var _=w({state:c,name:g,instance:h,options:C}),x=function(){};u.push(_||x)}})}function v(){u.forEach(function(m){return m()}),u=[]}return h}}Z8();var uZ=[oA,lA,aA,Zk];Z8({defaultModifiers:uZ});var dZ=[oA,lA,aA,Zk,JJ,UJ,tZ,RJ,GJ],fZ=Z8({defaultModifiers:dZ});const cA=Me({arrowOffset:{type:Number,default:5}}),hZ=Me({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ya=e=>El(hZ,e),pZ=["fixed","absolute"],vZ=Me({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:re(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ei,default:"bottom"},popperOptions:{type:re(Object),default:()=>({})},strategy:{type:String,values:pZ,default:"absolute"}}),uA=Me({...vZ,...cA,id:String,style:{type:re([String,Array,Object])},className:{type:re([String,Array,Object])},effect:{type:re(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:re([String,Array,Object])},popperStyle:{type:re([String,Array,Object])},referenceEl:{type:re(Object)},triggerTargetEl:{type:re(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ya(["ariaLabel"]),loop:Boolean}),mZ={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0};function lS(){let e;const t=(s,a)=>{n(),e=window.setTimeout(s,a)},n=()=>window.clearTimeout(e);return Zd(()=>n()),{registerTimeout:t,cancelTimeout:n}}const gZ=Me({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),bZ=({showAfter:e,hideAfter:t,autoClose:n,open:s,close:a})=>{const{registerTimeout:o}=lS(),{registerTimeout:r,cancelTimeout:i}=lS();return{onOpen:(u,d=f(e))=>{o(()=>{s(u);const h=f(n);st(h)&&h>0&&r(()=>{a(u)},h)},d)},onClose:(u,d=f(t))=>{i(),o(()=>{a(u)},d)}}},Zt=Me({...gZ,...uA,appendTo:{type:Ym.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:re(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ya(["ariaLabel"])}),Tn=e=>e,t2=Me({id:{type:String,default:void 0},size:rs,disabled:{type:Boolean,default:void 0},modelValue:{type:re([String,Number,Object]),default:""},modelModifiers:{type:re(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:re(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:re([Boolean,Object]),default:!1},autocomplete:{type:re(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:en,default:Jo},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:en},prefixIcon:{type:en},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:re([Object,Array,String]),default:()=>Tn({})},autofocus:Boolean,rows:{type:Number,default:2},...ya(["ariaLabel"]),inputmode:{type:re(String),default:void 0},name:String}),yZ={[ct]:e=>Xe(e),input:e=>Xe(e),change:(e,t)=>Xe(e)&&(t instanceof Event||t===void 0),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};di(Jo);const wZ=Me({...t2,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:re(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:re([Function,Array]),default:Yt},popperClass:Zt.popperClass,popperStyle:Zt.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:Zt.teleported,appendTo:Zt.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),_Z={[ct]:e=>Xe(e)||st(e),[ts]:e=>Xe(e)||st(e),[Pt]:e=>Xe(e)||st(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>ft(e)},Q8=()=>jt&&/firefox/i.test(window.navigator.userAgent),dA=()=>jt&&/android/i.test(window.navigator.userAgent);let Ba;const CZ={height:"0",visibility:"hidden",overflow:Q8()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},SZ=["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"],cS=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function xZ(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),s=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:SZ.map(r=>[r,t.getPropertyValue(r)]),paddingSize:s,borderSize:a,boxSizing:n}}function uS(e,t=1,n){var s,a;Ba||(Ba=document.createElement("textarea"),((s=e.parentNode)!=null?s:document.body).appendChild(Ba));const{paddingSize:o,borderSize:r,boxSizing:i,contextStyle:l}=xZ(e);l.forEach(([h,p])=>Ba==null?void 0:Ba.style.setProperty(h,p)),Object.entries(CZ).forEach(([h,p])=>Ba==null?void 0:Ba.style.setProperty(h,p,"important")),Ba.value=e.value||e.placeholder||"";let c=Ba.scrollHeight;const u={};i==="border-box"?c=c+r:i==="content-box"&&(c=c-o),Ba.value="";const d=Ba.scrollHeight-o;if(st(t)){let h=d*t;i==="border-box"&&(h=h+o+r),c=Math.max(h,c),u.minHeight=`${h}px`}if(st(n)){let h=d*n;i==="border-box"&&(h=h+o+r),c=Math.min(h,c)}return u.height=`${c}px`,(a=Ba.parentNode)==null||a.removeChild(Ba),Ba=void 0,u}const EZ=["class","style"],kZ=/^on[A-Z]/,Rb=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,s=k(()=>((n==null?void 0:n.value)||[]).concat(EZ)),a=Ct();return k(a?()=>{var o;return Vp(Object.entries((o=a.proxy)==null?void 0:o.$attrs).filter(([r])=>!s.value.includes(r)&&!(t&&kZ.test(r))))}:()=>({}))},fA=e=>{const t=Ct();return k(()=>{var n,s;return(s=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:s[e]})},ef=Symbol("formContextKey"),Ci=Symbol("formItemContextKey"),ns=(e,t={})=>{const n=F(void 0),s=t.prop?n:fA("size"),a=t.global?n:yk(),o=t.form?{size:void 0}:je(ef,void 0),r=t.formItem?{size:void 0}:je(Ci,void 0);return k(()=>s.value||f(e)||(r==null?void 0:r.size)||(o==null?void 0:o.size)||a.value||"")},Pn=e=>{const t=fA("disabled"),n=je(ef,void 0);return k(()=>{var s,a,o;return(o=(a=(s=t.value)!=null?s:f(e))!=null?a:n==null?void 0:n.disabled)!=null?o:!1})},AZ='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',dS=e=>typeof Element>"u"?!1:e instanceof Element,TZ=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,fS=e=>Array.from(e.querySelectorAll(AZ)).filter(t=>jp(t)&&TZ(t)),jp=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},X2=function(e,t,...n){let s;t.includes("mouse")||t.includes("click")?s="MouseEvents":t.includes("key")?s="KeyboardEvent":s="HTMLEvents";const a=document.createEvent(s);return a.initEvent(t,...n),e.dispatchEvent(a),e},hA=e=>!e.getAttribute("aria-owns"),pA=(e,t,n)=>{const{parentNode:s}=e;if(!s)return null;const a=s.querySelectorAll(n),o=Array.prototype.indexOf.call(a,e);return a[o+t]||null},n2=(e,t)=>{if(!e||!e.focus)return;let n=!1;dS(e)&&!jp(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),dS(e)&&n&&e.removeAttribute("tabindex")},J2=e=>{e&&(n2(e),!hA(e)&&e.click())};function Fl(e,{disabled:t,beforeFocus:n,afterFocus:s,beforeBlur:a,afterBlur:o}={}){const r=Ct(),{emit:i}=r,l=fn(),c=F(!1),u=p=>{const v=nt(n)?n(p):!1;f(t)||c.value||v||(c.value=!0,i("focus",p),s==null||s())},d=p=>{var v;const m=nt(a)?a(p):!1;f(t)||p.relatedTarget&&((v=l.value)!=null&&v.contains(p.relatedTarget))||m||(c.value=!1,i("blur",p),o==null||o())},h=p=>{var v,m;f(t)||jp(p.target)||(v=l.value)!=null&&v.contains(document.activeElement)&&l.value!==document.activeElement||(m=e.value)==null||m.focus()};return be([l,()=>f(t)],([p,v])=>{p&&(v?p.removeAttribute("tabindex"):p.setAttribute("tabindex","-1"))}),Xt(l,"focus",u,!0),Xt(l,"blur",d,!0),Xt(l,"click",h,!0),{isFocused:c,wrapperRef:l,handleFocus:u,handleBlur:d}}const hS={prefix:Math.floor(Math.random()*1e4),current:0},MZ=Symbol("elIdInjection"),ew=()=>Ct()?je(MZ,hS):hS,Fs=e=>{const t=ew(),n=M8();return ck(()=>f(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Ms=()=>{const e=je(ef,void 0),t=je(Ci,void 0);return{form:e,formItem:t}},Mo=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:s})=>{n||(n=F(!1)),s||(s=F(!1));const a=Ct(),o=()=>{let c=a==null?void 0:a.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},r=F();let i;const l=k(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return St(()=>{i=be([Jt(e,"id"),n],([c,u])=>{const d=c??(u?void 0:Fs().value);d!==r.value&&(t!=null&&t.removeInputId&&!o()&&(r.value&&t.removeInputId(r.value),!(s!=null&&s.value)&&!u&&d&&t.addInputId(d)),r.value=d)},{immediate:!0})}),Gd(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:l,inputId:r}},PZ=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function s2({afterComposition:e,emit:t}){const n=F(!1),s=i=>{t==null||t("compositionstart",i),n.value=!0},a=i=>{var l;t==null||t("compositionupdate",i);const c=(l=i.target)==null?void 0:l.value,u=c[c.length-1]||"";n.value=!PZ(u)},o=i=>{t==null||t("compositionend",i),n.value&&(n.value=!1,ze(()=>e(i)))};return{isComposing:n,handleComposition:i=>{i.type==="compositionend"?o(i):a(i)},handleCompositionStart:s,handleCompositionUpdate:a,handleCompositionEnd:o}}function RZ(e){let t;function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:o,value:r}=e.value;if(a==null||o==null)return;const i=r.slice(0,Math.max(0,a)),l=r.slice(Math.max(0,o));t={selectionStart:a,selectionEnd:o,value:r,beforeTxt:i,afterTxt:l}}function s(){if(e.value==null||t==null)return;const{value:a}=e.value,{beforeTxt:o,afterTxt:r,selectionStart:i}=t;if(o==null||r==null||i==null)return;let l=a.length;if(a.endsWith(r))l=a.length-r.length;else if(a.startsWith(o))l=o.length;else{const c=o[i-1],u=a.indexOf(c,i-1);u!==-1&&(l=u+1)}e.value.setSelectionRange(l,l)}return[n,s]}const IZ=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],LZ=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role"],OZ="ElInput";var NZ=j({name:OZ,inheritAttrs:!1,__name:"input",props:t2,emits:yZ,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Nl(),r=Rb(),i=Hn(),l=k(()=>[s.type==="textarea"?g.b():m.b(),m.m(p.value),m.is("disabled",v.value),m.is("exceed",K.value),{[m.b("group")]:i.prepend||i.append,[m.m("prefix")]:i.prefix||s.prefixIcon,[m.m("suffix")]:i.suffix||s.suffixIcon||s.clearable||s.showPassword,[m.bm("suffix","password-clear")]:V.value&&z.value,[m.b("hidden")]:s.type==="hidden"},o.class]),c=k(()=>[m.e("wrapper"),m.is("focus",I.value)]),{form:u,formItem:d}=Ms(),{inputId:h}=Mo(s,{formItemContext:d}),p=ns(),v=Pn(),m=Ee("input"),g=Ee("textarea"),b=fn(),C=fn(),w=F(!1),_=F(!1),x=F(),E=fn(s.inputStyle),T=k(()=>b.value||C.value),{wrapperRef:R,isFocused:I,handleFocus:M,handleBlur:$}=Fl(T,{disabled:v,afterBlur(){var De;s.validateEvent&&((De=d==null?void 0:d.validate)==null||De.call(d,"blur").catch(Ke=>void 0))}}),L=k(()=>{var De;return(De=u==null?void 0:u.statusIcon)!=null?De:!1}),B=k(()=>(d==null?void 0:d.validateState)||""),q=k(()=>B.value&&Mb[B.value]),J=k(()=>_.value?H8:Ok),Y=k(()=>[o.style]),O=k(()=>[s.inputStyle,E.value,{resize:s.resize}]),N=k(()=>Un(s.modelValue)?"":String(s.modelValue)),V=k(()=>s.clearable&&!v.value&&!s.readonly&&!!N.value&&(I.value||w.value)),z=k(()=>s.showPassword&&!v.value&&!!N.value),G=k(()=>s.showWordLimit&&!!s.maxlength&&(s.type==="text"||s.type==="textarea")&&!v.value&&!s.readonly&&!s.showPassword),Q=k(()=>N.value.length),K=k(()=>!!G.value&&Q.value>Number(s.maxlength)),ee=k(()=>!!i.suffix||!!s.suffixIcon||V.value||s.showPassword||G.value||!!B.value&&L.value),se=k(()=>!!Object.keys(s.modelModifiers).length),[he,te]=RZ(b);wn(C,De=>{if(le(),!G.value||s.resize!=="both"&&s.resize!=="horizontal")return;const Ke=De[0],{width:et}=Ke.contentRect;x.value={right:`calc(100% - ${et+22-10}px)`}});const pe=()=>{const{type:De,autosize:Ke}=s;if(!(!jt||De!=="textarea"||!C.value))if(Ke){const et=ft(Ke)?Ke.minRows:void 0,Ft=ft(Ke)?Ke.maxRows:void 0,Ht=uS(C.value,et,Ft);E.value={overflowY:"hidden",...Ht},ze(()=>{C.value.offsetHeight,E.value=Ht})}else E.value={minHeight:uS(C.value).minHeight}},le=(De=>{let Ke=!1;return()=>{var et;if(Ke||!s.autosize)return;((et=C.value)==null?void 0:et.offsetParent)===null||(setTimeout(De),Ke=!0)}})(pe),Z=()=>{const De=T.value,Ke=s.formatter?s.formatter(N.value):N.value;!De||De.value===Ke||s.type==="file"||(De.value=Ke)},H=De=>{const{trim:Ke,number:et}=s.modelModifiers;return Ke&&(De=De.trim()),et&&(De=`${cS(De)}`),s.formatter&&s.parser&&(De=s.parser(De)),De},ae=async De=>{if(ye.value)return;const{lazy:Ke}=s.modelModifiers;let{value:et}=De.target;if(Ke){a(ts,et);return}if(et=H(et),String(et)===N.value){s.formatter&&Z();return}he(),a(ct,et),a(ts,et),await ze(),(s.formatter&&s.parser||!se.value)&&Z(),te()},de=async De=>{let{value:Ke}=De.target;Ke=H(Ke),s.modelModifiers.lazy&&a(ct,Ke),a(Pt,Ke,De),await ze(),Z()},{isComposing:ye,handleCompositionStart:_e,handleCompositionUpdate:Se,handleCompositionEnd:Ne}=s2({emit:a,afterComposition:ae}),Fe=()=>{_.value=!_.value},Oe=()=>{var De;return(De=T.value)==null?void 0:De.focus()},Ce=()=>{var De;return(De=T.value)==null?void 0:De.blur()},Ie=De=>{w.value=!1,a("mouseleave",De)},Pe=De=>{w.value=!0,a("mouseenter",De)},He=De=>{a("keydown",De)},Qe=()=>{var De;(De=T.value)==null||De.select()},rt=()=>{a(ct,""),a(Pt,""),a("clear"),a(ts,"")};return be(()=>s.modelValue,()=>{var De;ze(()=>pe()),s.validateEvent&&((De=d==null?void 0:d.validate)==null||De.call(d,"change").catch(Ke=>void 0))}),be(N,De=>{if(!T.value)return;const{trim:Ke,number:et}=s.modelModifiers,Ft=T.value.value,Ht=(et||s.type==="number")&&!/^0\d/.test(Ft)?`${cS(Ft)}`:Ft;Ht!==De&&(document.activeElement===T.value&&T.value.type!=="range"&&Ke&&Ht.trim()===De||Z())}),be(()=>s.type,async()=>{await ze(),Z(),pe()}),St(()=>{!s.formatter&&s.parser,Z(),ze(pe)}),t({input:b,textarea:C,ref:T,textareaStyle:O,autosize:Jt(s,"autosize"),isComposing:ye,focus:Oe,blur:Ce,select:Qe,clear:rt,resizeTextarea:pe}),(De,Ke)=>(S(),P("div",{class:D([l.value,{[f(m).bm("group","append")]:De.$slots.append,[f(m).bm("group","prepend")]:De.$slots.prepend}]),style:tt(Y.value),onMouseenter:Pe,onMouseleave:Ie},[ie(" input "),e.type!=="textarea"?(S(),P(Ve,{key:0},[ie(" prepend slot "),De.$slots.prepend?(S(),P("div",{key:0,class:D(f(m).be("group","prepend"))},[ue(De.$slots,"prepend")],2)):ie("v-if",!0),A("div",{ref_key:"wrapperRef",ref:R,class:D(c.value)},[ie(" prefix slot "),De.$slots.prefix||e.prefixIcon?(S(),P("span",{key:0,class:D(f(m).e("prefix"))},[A("span",{class:D(f(m).e("prefix-inner"))},[ue(De.$slots,"prefix"),e.prefixIcon?(S(),ce(f(Ye),{key:0,class:D(f(m).e("icon"))},{default:X(()=>[(S(),ce(bt(e.prefixIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)):ie("v-if",!0),A("input",_t({id:f(h),ref_key:"input",ref:b,class:f(m).e("inner")},f(r),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?_.value?"text":"password":e.type,disabled:f(v),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:Ke[0]||(Ke[0]=(...et)=>f(_e)&&f(_e)(...et)),onCompositionupdate:Ke[1]||(Ke[1]=(...et)=>f(Se)&&f(Se)(...et)),onCompositionend:Ke[2]||(Ke[2]=(...et)=>f(Ne)&&f(Ne)(...et)),onInput:ae,onChange:de,onKeydown:He}),null,16,IZ),ie(" suffix slot "),ee.value?(S(),P("span",{key:1,class:D(f(m).e("suffix"))},[A("span",{class:D(f(m).e("suffix-inner"))},[!V.value||!z.value||!G.value?(S(),P(Ve,{key:0},[ue(De.$slots,"suffix"),e.suffixIcon?(S(),ce(f(Ye),{key:0,class:D(f(m).e("icon"))},{default:X(()=>[(S(),ce(bt(e.suffixIcon)))]),_:1},8,["class"])):ie("v-if",!0)],64)):ie("v-if",!0),V.value?(S(),ce(f(Ye),{key:1,class:D([f(m).e("icon"),f(m).e("clear")]),onMousedown:it(f(Yt),["prevent"]),onClick:rt},{default:X(()=>[(S(),ce(bt(e.clearIcon)))]),_:1},8,["class","onMousedown"])):ie("v-if",!0),z.value?(S(),ce(f(Ye),{key:2,class:D([f(m).e("icon"),f(m).e("password")]),onClick:Fe,onMousedown:it(f(Yt),["prevent"]),onMouseup:it(f(Yt),["prevent"])},{default:X(()=>[(S(),ce(bt(J.value)))]),_:1},8,["class","onMousedown","onMouseup"])):ie("v-if",!0),G.value?(S(),P("span",{key:3,class:D([f(m).e("count"),f(m).is("outside",e.wordLimitPosition==="outside")])},[A("span",{class:D(f(m).e("count-inner"))},ge(Q.value)+" / "+ge(e.maxlength),3)],2)):ie("v-if",!0),B.value&&q.value&&L.value?(S(),ce(f(Ye),{key:4,class:D([f(m).e("icon"),f(m).e("validateIcon"),f(m).is("loading",B.value==="validating")])},{default:X(()=>[(S(),ce(bt(q.value)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)):ie("v-if",!0)],2),ie(" append slot "),De.$slots.append?(S(),P("div",{key:1,class:D(f(m).be("group","append"))},[ue(De.$slots,"append")],2)):ie("v-if",!0)],64)):(S(),P(Ve,{key:1},[ie(" textarea "),A("textarea",_t({id:f(h),ref_key:"textarea",ref:C,class:[f(g).e("inner"),f(m).is("focus",f(I))]},f(r),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:f(v),readonly:e.readonly,autocomplete:e.autocomplete,style:O.value,"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,onCompositionstart:Ke[3]||(Ke[3]=(...et)=>f(_e)&&f(_e)(...et)),onCompositionupdate:Ke[4]||(Ke[4]=(...et)=>f(Se)&&f(Se)(...et)),onCompositionend:Ke[5]||(Ke[5]=(...et)=>f(Ne)&&f(Ne)(...et)),onInput:ae,onFocus:Ke[6]||(Ke[6]=(...et)=>f(M)&&f(M)(...et)),onBlur:Ke[7]||(Ke[7]=(...et)=>f($)&&f($)(...et)),onChange:de,onKeydown:He}),null,16,LZ),G.value?(S(),P("span",{key:0,style:tt(x.value),class:D([f(m).e("count"),f(m).is("outside",e.wordLimitPosition==="outside")])},ge(Q.value)+" / "+ge(e.maxlength),7)):ie("v-if",!0)],64))],38))}});const ga=pt(NZ),$Z=Me({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:re([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,...ya(["ariaLabel","ariaOrientation"])}),vA={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(st)},DZ=Me({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),af=4,mA={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"}},FZ=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),BZ=Me({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),tw=Symbol("scrollbarContextKey"),VZ="Thumb";var pS=j({__name:"thumb",props:BZ,setup(e){const t=e,n=je(tw),s=Ee("scrollbar");n||Jn(VZ,"can not inject scrollbar context");const a=F(),o=F(),r=F({}),i=F(!1);let l=!1,c=!1,u=0,d=0,h=jt?document.onselectstart:null;const p=k(()=>mA[t.vertical?"vertical":"horizontal"]),v=k(()=>FZ({size:t.size,move:t.move,bar:p.value})),m=k(()=>a.value[p.value.offset]**2/n.wrapElement[p.value.scrollSize]/t.ratio/o.value[p.value.offset]),g=R=>{var I;if(R.stopPropagation(),R.ctrlKey||[1,2].includes(R.button))return;(I=window.getSelection())==null||I.removeAllRanges(),C(R);const M=R.currentTarget;M&&(r.value[p.value.axis]=M[p.value.offset]-(R[p.value.client]-M.getBoundingClientRect()[p.value.direction]))},b=R=>{if(!o.value||!a.value||!n.wrapElement)return;const I=Math.abs(R.target.getBoundingClientRect()[p.value.direction]-R[p.value.client]),M=o.value[p.value.offset]/2,$=(I-M)*100*m.value/a.value[p.value.offset];n.wrapElement[p.value.scroll]=$*n.wrapElement[p.value.scrollSize]/100},C=R=>{R.stopImmediatePropagation(),l=!0,u=n.wrapElement.scrollHeight,d=n.wrapElement.scrollWidth,document.addEventListener("mousemove",w),document.addEventListener("mouseup",_),h=document.onselectstart,document.onselectstart=()=>!1},w=R=>{if(!a.value||!o.value||l===!1)return;const I=r.value[p.value.axis];if(!I)return;const M=(a.value.getBoundingClientRect()[p.value.direction]-R[p.value.client])*-1,$=o.value[p.value.offset]-I,L=(M-$)*100*m.value/a.value[p.value.offset];p.value.scroll==="scrollLeft"?n.wrapElement[p.value.scroll]=L*d/100:n.wrapElement[p.value.scroll]=L*u/100},_=()=>{l=!1,r.value[p.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",_),T(),c&&(i.value=!1)},x=()=>{c=!1,i.value=!!t.size},E=()=>{c=!0,i.value=l};qt(()=>{T(),document.removeEventListener("mouseup",_)});const T=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return Xt(Jt(n,"scrollbarElement"),"mousemove",x),Xt(Jt(n,"scrollbarElement"),"mouseleave",E),(R,I)=>(S(),ce(bs,{name:f(s).b("fade"),persisted:""},{default:X(()=>[gt(A("div",{ref_key:"instance",ref:a,class:D([f(s).e("bar"),f(s).is(p.value.key)]),onMousedown:b,onClick:I[0]||(I[0]=it(()=>{},["stop"]))},[A("div",{ref_key:"thumb",ref:o,class:D(f(s).e("thumb")),style:tt(v.value),onMousedown:g},null,38)],34),[[Bt,e.always||i.value]])]),_:1},8,["name"]))}}),zZ=j({__name:"bar",props:DZ,setup(e,{expose:t}){const n=e,s=je(tw),a=F(0),o=F(0),r=F(""),i=F(""),l=F(1),c=F(1);return t({handleScroll:h=>{if(h){const p=h.offsetHeight-af,v=h.offsetWidth-af;o.value=h.scrollTop*100/p*l.value,a.value=h.scrollLeft*100/v*c.value}},update:()=>{const h=s==null?void 0:s.wrapElement;if(!h)return;const p=h.offsetHeight-af,v=h.offsetWidth-af,m=p**2/h.scrollHeight,g=v**2/h.scrollWidth,b=Math.max(m,n.minSize),C=Math.max(g,n.minSize);l.value=m/(p-m)/(b/(p-b)),c.value=g/(v-g)/(C/(v-C)),i.value=b+af<p?`${b}px`:"",r.value=C+af<v?`${C}px`:""}}),(h,p)=>(S(),P(Ve,null,[W(pS,{move:a.value,ratio:c.value,size:r.value,always:e.always},null,8,["move","ratio","size","always"]),W(pS,{move:o.value,ratio:l.value,size:i.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}});const HZ=["tabindex"],WZ="ElScrollbar";var jZ=j({name:WZ,__name:"scrollbar",props:$Z,emits:vA,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("scrollbar");let r,i,l,c=0,u=0,d="";const h={bottom:!1,top:!1,right:!1,left:!1},p=F(),v=F(),m=F(),g=F(),b=k(()=>{const L={},B=Mn(s.height),q=Mn(s.maxHeight);return B&&(L.height=B),q&&(L.maxHeight=q),[s.wrapStyle,L]}),C=k(()=>[s.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!s.native}]),w=k(()=>[o.e("view"),s.viewClass]),_=L=>{var B;return(B=h[L])!=null?B:!1},x={top:"bottom",bottom:"top",left:"right",right:"left"},E=L=>{const B=x[d];if(!B)return;const q=L[d],J=L[B];q&&!h[d]&&(h[d]=!0),!J&&h[B]&&(h[B]=!1)},T=()=>{var L;if(v.value){(L=g.value)==null||L.handleScroll(v.value);const B=c,q=u;c=v.value.scrollTop,u=v.value.scrollLeft;const J={bottom:c+v.value.clientHeight>=v.value.scrollHeight-s.distance,top:c<=s.distance&&B!==0,right:u+v.value.clientWidth>=v.value.scrollWidth-s.distance&&q!==u,left:u<=s.distance&&q!==0};if(a("scroll",{scrollTop:c,scrollLeft:u}),B!==c&&(d=c>B?"bottom":"top"),q!==u&&(d=u>q?"right":"left"),s.distance>0){if(_(d))return;E(J)}J[d]&&a("end-reached",d)}};function R(L,B){ft(L)?v.value.scrollTo(L):st(L)&&st(B)&&v.value.scrollTo(L,B)}const I=L=>{st(L)&&(v.value.scrollTop=L)},M=L=>{st(L)&&(v.value.scrollLeft=L)},$=()=>{var L;(L=g.value)==null||L.update(),h[d]=!1};return be(()=>s.noresize,L=>{L?(r==null||r(),i==null||i(),l==null||l()):({stop:r}=wn(m,$),{stop:i}=wn(v,$),l=Xt("resize",$))},{immediate:!0}),be(()=>[s.maxHeight,s.height],()=>{s.native||ze(()=>{var L;$(),v.value&&((L=g.value)==null||L.handleScroll(v.value))})}),Mt(tw,Kt({scrollbarElement:p,wrapElement:v})),Dm(()=>{v.value&&(v.value.scrollTop=c,v.value.scrollLeft=u)}),St(()=>{s.native||ze(()=>{$()})}),Pr(()=>$()),t({wrapRef:v,update:$,scrollTo:R,setScrollTop:I,setScrollLeft:M,handleScroll:T}),(L,B)=>(S(),P("div",{ref_key:"scrollbarRef",ref:p,class:D(f(o).b())},[A("div",{ref_key:"wrapRef",ref:v,class:D(C.value),style:tt(b.value),tabindex:e.tabindex,onScroll:T},[(S(),ce(bt(e.tag),{id:e.id,ref_key:"resizeRef",ref:m,class:D(w.value),style:tt(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:X(()=>[ue(L.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,HZ),e.native?ie("v-if",!0):(S(),ce(zZ,{key:0,ref_key:"barRef",ref:g,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}});const Cr=pt(jZ),gA=Me({virtualRef:{type:re(Object)},virtualTriggering:Boolean,onMouseenter:{type:re(Function)},onMouseleave:{type:re(Function)},onClick:{type:re(Function)},onKeydown:{type:re(Function)},onFocus:{type:re(Function)},onBlur:{type:re(Function)},onContextmenu:{type:re(Function)},id:String,open:Boolean}),Te={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"},pi=Me({...gA,disabled:Boolean,trigger:{type:re([String,Array]),default:"hover"},triggerKeys:{type:re(Array),default:()=>[Te.enter,Te.numpadEnter,Te.space]},focusOnTarget:Boolean}),KZ=Lr({type:re(Boolean),default:null}),UZ=Lr({type:re(Function)}),qZ=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,s=[t],a={[e]:KZ,[n]:UZ};return{useModelToggle:({indicator:r,toggleReason:i,shouldHideWhenRouteChanges:l,shouldProceed:c,onShow:u,onHide:d})=>{const h=Ct(),{emit:p}=h,v=h.props,m=k(()=>nt(v[n])),g=k(()=>v[e]===null),b=T=>{r.value!==!0&&(r.value=!0,i&&(i.value=T),nt(u)&&u(T))},C=T=>{r.value!==!1&&(r.value=!1,i&&(i.value=T),nt(d)&&d(T))},w=T=>{if(v.disabled===!0||nt(c)&&!c())return;const R=m.value&&jt;R&&p(t,!0),(g.value||!R)&&b(T)},_=T=>{if(v.disabled===!0||!jt)return;const R=m.value&&jt;R&&p(t,!1),(g.value||!R)&&C(T)},x=T=>{Qt(T)&&(v.disabled&&T?m.value&&p(t,!1):r.value!==T&&(T?b():C()))},E=()=>{r.value?_():w()};return be(()=>v[e],x),l&&h.appContext.config.globalProperties.$route!==void 0&&be(()=>({...h.proxy.$route}),()=>{l.value&&r.value&&_()}),St(()=>{x(v[e])}),{hide:_,show:w,toggle:E,hasUpdateHandler:m}},useModelToggleProps:a,useModelToggleEmits:s}},bA=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],yA=Me({role:{type:String,values:bA,default:"tooltip"}}),{useModelToggleProps:GZ,useModelToggleEmits:YZ,useModelToggle:XZ}=qZ("visible"),JZ=Me({...yA,...GZ,...Zt,...pi,...cA,showArrow:{type:Boolean,default:!0}}),ZZ=[...YZ,"before-show","before-hide","show","hide","open","close"],nw=Symbol("popper"),wA=Symbol("popperContent");var QZ=j({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:yA,setup(e,{expose:t}){const n=e,s=F(),a=F(),o=F(),r=F(),i=k(()=>n.role),l={triggerRef:s,popperInstanceRef:a,contentRef:o,referenceRef:r,role:i};return t(l),Mt(nw,l),(c,u)=>ue(c.$slots,"default")}}),eQ=j({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=Ee("popper"),{arrowRef:s,arrowStyle:a}=je(wA,void 0);return qt(()=>{s.value=void 0}),t({arrowRef:s}),(o,r)=>(S(),P("span",{ref_key:"arrowRef",ref:s,class:D(f(n).e("arrow")),style:tt(f(a)),"data-popper-arrow":""},null,6))}});const _A=Symbol("elForwardRef"),tQ=e=>{Mt(_A,{setForwardRef:n=>{e.value=n}})},nQ=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),sQ="ElOnlyChild",CA=j({name:sQ,setup(e,{slots:t,attrs:n}){var s;const a=je(_A),o=nQ((s=a==null?void 0:a.setForwardRef)!=null?s:Yt);return()=>{var r;const i=(r=t.default)==null?void 0:r.call(t,n);if(!i)return null;const[l,c]=SA(i);return l?gt(gi(l,n),[[o]]):null}}});function SA(e){if(!e)return[null,0];const t=e,n=t.filter(s=>s.type!==Kn).length;for(const s of t){if(ft(s))switch(s.type){case Kn:continue;case p0:case"svg":return[vS(s),n];case Ve:return SA(s.children);default:return[s,n]}return[vS(s),n]}return[null,0]}function vS(e){const t=Ee("only-child");return W("span",{class:t.e("content")},[e])}var aQ=j({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:gA,setup(e,{expose:t}){const n=e,{role:s,triggerRef:a}=je(nw,void 0);tQ(a);const o=k(()=>i.value?n.id:void 0),r=k(()=>{if(s&&s.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=k(()=>{if(s&&s.value!=="tooltip")return s.value}),l=k(()=>i.value?`${n.open}`:void 0);let c;const u=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return St(()=>{be(()=>n.virtualRef,d=>{d&&(a.value=os(d))},{immediate:!0}),be(a,(d,h)=>{c==null||c(),c=void 0,Ya(h)&&u.forEach(p=>{const v=n[p];v&&h.removeEventListener(p.slice(2).toLowerCase(),v,["onFocus","onBlur"].includes(p))}),Ya(d)&&(u.forEach(p=>{const v=n[p];v&&d.addEventListener(p.slice(2).toLowerCase(),v,["onFocus","onBlur"].includes(p))}),jp(d)&&(c=be([o,r,i,l],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((v,m)=>{Un(p[m])?d.removeAttribute(v):d.setAttribute(v,p[m])})},{immediate:!0}))),Ya(h)&&jp(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>h.removeAttribute(p))},{immediate:!0})}),qt(()=>{if(c==null||c(),c=void 0,a.value&&Ya(a.value)){const d=a.value;u.forEach(h=>{const p=n[h];p&&d.removeEventListener(h.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(h))}),a.value=void 0}}),t({triggerRef:a}),(d,h)=>e.virtualTriggering?ie("v-if",!0):(S(),ce(f(CA),_t({key:0},d.$attrs,{"aria-controls":o.value,"aria-describedby":r.value,"aria-expanded":l.value,"aria-haspopup":i.value}),{default:X(()=>[ue(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});const E4="focus-trap.focus-after-trapped",k4="focus-trap.focus-after-released",oQ="focus-trap.focusout-prevented",mS={cancelable:!0,bubbles:!1},rQ={cancelable:!0,bubbles:!1},gS="focusAfterTrapped",bS="focusAfterReleased",xA=Symbol("elFocusTrap"),sw=F(),Ib=F(0),aw=F(0);let E2=0;const EA=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0||s===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},yS=(e,t)=>{for(const n of e)if(!iQ(n,t))return n},iQ=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},lQ=e=>{const t=EA(e),n=yS(t,e),s=yS(t.reverse(),e);return[n,s]},cQ=e=>e instanceof HTMLInputElement&&"select"in e,Ul=(e,t)=>{if(e){const n=document.activeElement;n2(e,{preventScroll:!0}),aw.value=window.performance.now(),e!==n&&cQ(e)&&t&&e.select()}};function wS(e,t){const n=[...e],s=e.indexOf(t);return s!==-1&&n.splice(s,1),n}const uQ=()=>{let e=[];return{push:s=>{const a=e[0];a&&s!==a&&a.pause(),e=wS(e,s),e.unshift(s)},remove:s=>{var a,o;e=wS(e,s),(o=(a=e[0])==null?void 0:a.resume)==null||o.call(a)}}},dQ=(e,t=!1)=>{const n=document.activeElement;for(const s of e)if(Ul(s,t),document.activeElement!==n)return},_S=uQ(),fQ=()=>Ib.value>aw.value,k2=()=>{sw.value="pointer",Ib.value=window.performance.now()},CS=()=>{sw.value="keyboard",Ib.value=window.performance.now()},hQ=()=>(St(()=>{E2===0&&(document.addEventListener("mousedown",k2),document.addEventListener("touchstart",k2),document.addEventListener("keydown",CS)),E2++}),qt(()=>{E2--,E2<=0&&(document.removeEventListener("mousedown",k2),document.removeEventListener("touchstart",k2),document.removeEventListener("keydown",CS))}),{focusReason:sw,lastUserFocusTimestamp:Ib,lastAutomatedFocusTimestamp:aw}),A2=e=>new CustomEvent(oQ,{...rQ,detail:e}),fs=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const o=e==null?void 0:e(a);if(n===!1||!o)return t==null?void 0:t(a)},SS=e=>t=>t.pointerType==="mouse"?e(t):void 0,an=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=kA(e);if(t){if(Object.values(Te).includes(t))return t;switch(t){case" ":return Te.space;default:return""}}return""},kA=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&dA()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t};let ff=[];const xS=e=>{an(e)===Te.esc&&ff.forEach(n=>n(e))},pQ=e=>{St(()=>{ff.length===0&&document.addEventListener("keydown",xS),jt&&ff.push(e)}),qt(()=>{ff=ff.filter(t=>t!==e),ff.length===0&&jt&&document.removeEventListener("keydown",xS)})};var vQ=j({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[gS,bS,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=F();let s,a;const{focusReason:o}=hQ();pQ(v=>{e.trapped&&!r.paused&&t("release-requested",v)});const r={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=v=>{if(!e.loop&&!e.trapped||r.paused)return;const{altKey:m,ctrlKey:g,metaKey:b,currentTarget:C,shiftKey:w}=v,{loop:_}=e,E=an(v)===Te.tab&&!m&&!g&&!b,T=document.activeElement;if(E&&T){const R=C,[I,M]=lQ(R);if(I&&M){if(!w&&T===M){const L=A2({focusReason:o.value});t("focusout-prevented",L),L.defaultPrevented||(v.preventDefault(),_&&Ul(I,!0))}else if(w&&[I,R].includes(T)){const L=A2({focusReason:o.value});t("focusout-prevented",L),L.defaultPrevented||(v.preventDefault(),_&&Ul(M,!0))}}else if(T===R){const L=A2({focusReason:o.value});t("focusout-prevented",L),L.defaultPrevented||v.preventDefault()}}};Mt(xA,{focusTrapRef:n,onKeydown:i}),be(()=>e.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),be([n],([v],[m])=>{v&&(v.addEventListener("keydown",i),v.addEventListener("focusin",u),v.addEventListener("focusout",d)),m&&(m.removeEventListener("keydown",i),m.removeEventListener("focusin",u),m.removeEventListener("focusout",d))});const l=v=>{t(gS,v)},c=v=>t(bS,v),u=v=>{const m=f(n);if(!m)return;const g=v.target,b=v.relatedTarget,C=g&&m.contains(g);e.trapped||b&&m.contains(b)||(s=b),C&&t("focusin",v),!r.paused&&e.trapped&&(C?a=g:Ul(a,!0))},d=v=>{const m=f(n);if(!(r.paused||!m))if(e.trapped){const g=v.relatedTarget;!Un(g)&&!m.contains(g)&&setTimeout(()=>{if(!r.paused&&e.trapped){const b=A2({focusReason:o.value});t("focusout-prevented",b),b.defaultPrevented||Ul(a,!0)}},0)}else{const g=v.target;g&&m.contains(g)||t("focusout",v)}};async function h(){await ze();const v=f(n);if(v){_S.push(r);const m=v.contains(document.activeElement)?s:document.activeElement;if(s=m,!v.contains(m)){const b=new Event(E4,mS);v.addEventListener(E4,l),v.dispatchEvent(b),b.defaultPrevented||ze(()=>{let C=e.focusStartEl;Xe(C)||(Ul(C),document.activeElement!==C&&(C="first")),C==="first"&&dQ(EA(v),!0),(document.activeElement===m||C==="container")&&Ul(v)})}}}function p(){const v=f(n);if(v){v.removeEventListener(E4,l);const m=new CustomEvent(k4,{...mS,detail:{focusReason:o.value}});v.addEventListener(k4,c),v.dispatchEvent(m),!m.defaultPrevented&&(o.value=="keyboard"||!fQ()||v.contains(document.activeElement))&&Ul(s??document.body),v.removeEventListener(k4,c),_S.remove(r),s=null,a=null}}return St(()=>{e.trapped&&h(),be(()=>e.trapped,v=>{v?h():p()})}),qt(()=>{e.trapped&&p(),n.value&&(n.value.removeEventListener("keydown",i),n.value.removeEventListener("focusin",u),n.value.removeEventListener("focusout",d),n.value=void 0),s=null,a=null}),{onKeydown:i}}}),is=(e,t)=>{const n=e.__vccOpts||e;for(const[s,a]of t)n[s]=a;return n};function mQ(e,t,n,s,a,o){return ue(e.$slots,"default",{handleKeydown:e.onKeydown})}var C0=is(vQ,[["render",mQ]]);const gQ=(e,t)=>{const n=F(!1),s=F(),a=()=>{t("focus")},o=c=>{var u;((u=c.detail)==null?void 0:u.focusReason)!=="pointer"&&(s.value="first",t("blur"))},r=c=>{e.visible&&!n.value&&(c.target&&(s.value=c.target),n.value=!0)},i=c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},l=()=>{n.value=!1,t("close")};return qt(()=>{s.value=void 0}),{focusStartRef:s,trapped:n,onFocusAfterReleased:o,onFocusAfterTrapped:a,onFocusInTrap:r,onFocusoutPrevented:i,onReleaseRequested:l}},bQ=(e,t=[])=>{const{placement:n,strategy:s,popperOptions:a}=e,o={placement:n,strategy:s,...a,modifiers:[...wQ(e),...t]};return _Q(o,a==null?void 0:a.modifiers),o},yQ=e=>{if(jt)return os(e)};function wQ(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:s}=e;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:s}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function _Q(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const CQ=(e,t,n={})=>{const s={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const c=SQ(l);Object.assign(r.value,c)},requires:["computeStyles"]},a=k(()=>{const{onFirstUpdate:l,placement:c,strategy:u,modifiers:d}=f(n);return{onFirstUpdate:l,placement:c||"bottom",strategy:u||"absolute",modifiers:[...d||[],s,{name:"applyStyles",enabled:!1}]}}),o=fn(),r=F({styles:{popper:{position:f(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return be(a,l=>{const c=f(o);c&&c.setOptions(l)},{deep:!0}),be([e,t],([l,c])=>{i(),!(!l||!c)&&(o.value=fZ(l,c,f(a)))}),qt(()=>{i()}),{state:k(()=>{var l;return{...((l=f(o))==null?void 0:l.state)||{}}}),styles:k(()=>f(r).styles),attributes:k(()=>f(r).attributes),update:()=>{var l;return(l=f(o))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=f(o))==null?void 0:l.forceUpdate()},instanceRef:k(()=>f(o))}};function SQ(e){const t=Object.keys(e.elements),n=Vp(t.map(a=>[a,e.styles[a]||{}])),s=Vp(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:s}}const xQ=0,EQ=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:s,role:a}=je(nw,void 0),o=F(),r=k(()=>e.arrowOffset),i=k(()=>({name:"eventListeners",enabled:!!e.visible})),l=k(()=>{var b;const C=f(o),w=(b=f(r))!=null?b:xQ;return{name:"arrow",enabled:!rV(C),options:{element:C,padding:w}}}),c=k(()=>({onFirstUpdate:()=>{v()},...bQ(e,[f(l),f(i)])})),u=k(()=>yQ(e.referenceEl)||f(s)),{attributes:d,state:h,styles:p,update:v,forceUpdate:m,instanceRef:g}=CQ(u,n,c);return be(g,b=>t.value=b,{flush:"sync"}),St(()=>{be(()=>{var b,C;return(C=(b=f(u))==null?void 0:b.getBoundingClientRect)==null?void 0:C.call(b)},()=>{v()})}),qt(()=>{t.value=void 0}),{attributes:d,arrowRef:o,contentRef:n,instanceRef:g,state:h,styles:p,role:a,forceUpdate:m,update:v}},kQ=(e,{attributes:t,styles:n,role:s})=>{const{nextZIndex:a}=qm(),o=Ee("popper"),r=k(()=>f(t).popper),i=F(st(e.zIndex)?e.zIndex:a()),l=k(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),c=k(()=>[{zIndex:f(i)},f(n).popper,e.popperStyle||{}]),u=k(()=>s.value==="dialog"?"false":void 0),d=k(()=>f(n).arrow||{});return{ariaModal:u,arrowStyle:d,contentAttrs:r,contentClass:l,contentStyle:c,contentZIndex:i,updateZIndex:()=>{i.value=st(e.zIndex)?e.zIndex:a()}}};var AQ=j({name:"ElPopperContent",__name:"content",props:uA,emits:mZ,setup(e,{expose:t,emit:n}){const s=n,a=e,{focusStartRef:o,trapped:r,onFocusAfterReleased:i,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:d}=gQ(a,s),{attributes:h,arrowRef:p,contentRef:v,styles:m,instanceRef:g,role:b,update:C}=EQ(a),{ariaModal:w,arrowStyle:_,contentAttrs:x,contentClass:E,contentStyle:T,updateZIndex:R}=kQ(a,{styles:m,attributes:h,role:b}),I=je(Ci,void 0);Mt(wA,{arrowStyle:_,arrowRef:p}),I&&Mt(Ci,{...I,addInputId:Yt,removeInputId:Yt});let M;const $=(B=!0)=>{C(),B&&R()},L=()=>{$(!1),a.visible&&a.focusOnShow?r.value=!0:a.visible===!1&&(r.value=!1)};return St(()=>{be(()=>a.triggerTargetEl,(B,q)=>{M==null||M(),M=void 0;const J=f(B||v.value),Y=f(q||v.value);Ya(J)&&(M=be([b,()=>a.ariaLabel,w,()=>a.id],O=>{["role","aria-label","aria-modal","id"].forEach((N,V)=>{Un(O[V])?J.removeAttribute(N):J.setAttribute(N,O[V])})},{immediate:!0})),Y!==J&&Ya(Y)&&["role","aria-label","aria-modal","id"].forEach(O=>{Y.removeAttribute(O)})},{immediate:!0}),be(()=>a.visible,L,{immediate:!0})}),qt(()=>{M==null||M(),M=void 0,v.value=void 0}),t({popperContentRef:v,popperInstanceRef:g,updatePopper:$,contentStyle:T}),(B,q)=>(S(),P("div",_t({ref_key:"contentRef",ref:v},f(x),{style:f(T),class:f(E),tabindex:"-1",onMouseenter:q[0]||(q[0]=J=>B.$emit("mouseenter",J)),onMouseleave:q[1]||(q[1]=J=>B.$emit("mouseleave",J))}),[W(f(C0),{loop:e.loop,trapped:f(r),"trap-on-focus-in":!0,"focus-trap-el":f(v),"focus-start-el":f(o),onFocusAfterTrapped:f(l),onFocusAfterReleased:f(i),onFocusin:f(c),onFocusoutPrevented:f(u),onReleaseRequested:f(d)},{default:X(()=>[ue(B.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});const AA=pt(QZ),ow=Symbol("elTooltip"),Ry=(e,t)=>ke(e)?e.includes(t):e===t,of=(e,t,n)=>s=>{Ry(f(e),t)&&n(s)};var TQ=j({name:"ElTooltipTrigger",__name:"trigger",props:pi,setup(e,{expose:t}){const n=e,s=Ee("tooltip"),{controlled:a,id:o,open:r,onOpen:i,onClose:l,onToggle:c}=je(ow,void 0),u=F(null),d=()=>{if(f(a)||n.disabled)return!0},h=Jt(n,"trigger"),p=fs(d,of(h,"hover",_=>{i(_),n.focusOnTarget&&_.target&&ze(()=>{n2(_.target,{preventScroll:!0})})})),v=fs(d,of(h,"hover",l)),m=fs(d,of(h,"click",_=>{_.button===0&&c(_)})),g=fs(d,of(h,"focus",i)),b=fs(d,of(h,"focus",l)),C=fs(d,of(h,"contextmenu",_=>{_.preventDefault(),c(_)})),w=fs(d,_=>{const x=an(_);n.triggerKeys.includes(x)&&(_.preventDefault(),c(_))});return t({triggerRef:u}),(_,x)=>(S(),ce(f(aQ),{id:f(o),"virtual-ref":e.virtualRef,open:f(r),"virtual-triggering":e.virtualTriggering,class:D(f(s).e("trigger")),onBlur:f(b),onClick:f(m),onContextmenu:f(C),onFocus:f(g),onMouseenter:f(p),onMouseleave:f(v),onKeydown:f(w)},{default:X(()=>[ue(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});const TA=()=>{const e=M8(),t=ew(),n=k(()=>`${e.value}-popper-container-${t.prefix}`),s=k(()=>`#${n.value}`);return{id:n,selector:s}},MQ=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},PQ=()=>{const{id:e,selector:t}=TA();return hb(()=>{jt&&(document.body.querySelector(t.value)||MQ(e.value))}),{id:e,selector:t}},ES=e=>[...new Set(e)],L0=e=>ke(e)?e[0]:e,va=e=>!e&&e!==0?[]:ke(e)?e:[e];var RQ=j({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:Zt,setup(e,{expose:t}){const n=e,{selector:s}=TA(),a=Ee("tooltip"),o=F(),r=ck(()=>{var N;return(N=o.value)==null?void 0:N.popperContentRef});let i;const{controlled:l,id:c,open:u,trigger:d,onClose:h,onOpen:p,onShow:v,onHide:m,onBeforeShow:g,onBeforeHide:b}=je(ow,void 0),C=k(()=>n.transition||`${a.namespace.value}-fade-in-linear`),w=k(()=>n.persistent);qt(()=>{i==null||i()});const _=k(()=>f(w)?!0:f(u)),x=k(()=>n.disabled?!1:f(u)),E=k(()=>n.appendTo||s.value),T=k(()=>{var N;return(N=n.style)!=null?N:{}}),R=F(!0),I=()=>{m(),O()&&n2(document.body,{preventScroll:!0}),R.value=!0},M=()=>{if(f(l))return!0},$=fs(M,()=>{n.enterable&&Ry(f(d),"hover")&&p()}),L=fs(M,()=>{Ry(f(d),"hover")&&h()}),B=()=>{var N,V;(V=(N=o.value)==null?void 0:N.updatePopper)==null||V.call(N),g==null||g()},q=()=>{b==null||b()},J=()=>{v()},Y=()=>{n.virtualTriggering||h()},O=N=>{var V;const z=(V=o.value)==null?void 0:V.popperContentRef,G=(N==null?void 0:N.relatedTarget)||document.activeElement;return z==null?void 0:z.contains(G)};return be(()=>f(u),N=>{N?(R.value=!1,i=R8(r,()=>{if(f(l))return;va(f(d)).every(z=>z!=="hover"&&z!=="focus")&&h()},{detectIframe:!0})):i==null||i()},{flush:"post"}),be(()=>n.content,()=>{var N,V;(V=(N=o.value)==null?void 0:N.updatePopper)==null||V.call(N)}),t({contentRef:o,isFocusInsideContent:O}),(N,V)=>(S(),ce(f(w0),{disabled:!e.teleported,to:E.value},{default:X(()=>[_.value||!R.value?(S(),ce(bs,{key:0,name:C.value,appear:!w.value,onAfterLeave:I,onBeforeEnter:B,onAfterEnter:J,onBeforeLeave:q,persisted:""},{default:X(()=>[gt(W(f(AQ),_t({id:f(c),ref_key:"contentRef",ref:o},N.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":R.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,T.value],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:x.value,"z-index":e.zIndex,loop:e.loop,onMouseenter:f($),onMouseleave:f(L),onBlur:Y,onClose:f(h)}),{default:X(()=>[ue(N.$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"]),[[Bt,x.value]])]),_:3},8,["name","appear"])):ie("v-if",!0)]),_:3},8,["disabled","to"]))}});const IQ=["innerHTML"],LQ={key:1};var OQ=j({name:"ElTooltip",__name:"tooltip",props:JZ,emits:ZZ,setup(e,{expose:t,emit:n}){const s=e,a=n;PQ();const o=Ee("tooltip"),r=Fs(),i=F(),l=F(),c=()=>{var _;const x=f(i);x&&((_=x.popperInstanceRef)==null||_.update())},u=F(!1),d=F(),{show:h,hide:p,hasUpdateHandler:v}=XZ({indicator:u,toggleReason:d}),{onOpen:m,onClose:g}=bZ({showAfter:Jt(s,"showAfter"),hideAfter:Jt(s,"hideAfter"),autoClose:Jt(s,"autoClose"),open:h,close:p}),b=k(()=>Qt(s.visible)&&!v.value),C=k(()=>[o.b(),s.popperClass]);Mt(ow,{controlled:b,id:r,open:Nd(u),trigger:Jt(s,"trigger"),onOpen:m,onClose:g,onToggle:_=>{f(u)?g(_):m(_)},onShow:()=>{a("show",d.value)},onHide:()=>{a("hide",d.value)},onBeforeShow:()=>{a("before-show",d.value)},onBeforeHide:()=>{a("before-hide",d.value)},updatePopper:c}),be(()=>s.disabled,_=>{_&&u.value&&(u.value=!1)});const w=_=>{var x;return(x=l.value)==null?void 0:x.isFocusInsideContent(_)};return o8(()=>u.value&&p()),qt(()=>{d.value=void 0}),t({popperRef:i,contentRef:l,isFocusInsideContent:w,updatePopper:c,onOpen:m,onClose:g,hide:p}),(_,x)=>(S(),ce(f(AA),{ref_key:"popperRef",ref:i,role:e.role},{default:X(()=>[W(TQ,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:X(()=>[_.$slots.default?ue(_.$slots,"default",{key:0}):ie("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),W(RQ,{ref_key:"contentRef",ref:l,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":C.value,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo,loop:e.loop},{default:X(()=>[ue(_.$slots,"content",{},()=>[e.rawContent?(S(),P("span",{key:0,innerHTML:e.content},null,8,IQ)):(S(),P("span",LQ,ge(e.content),1))]),e.showArrow?(S(),ce(f(eQ),{key:0})):ie("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"]))}});const As=pt(OQ),NQ=["aria-expanded","aria-owns"],$Q={key:0},DQ=["id","aria-selected","onClick"],kS="ElAutocomplete";var FQ=j({name:kS,inheritAttrs:!1,__name:"autocomplete",props:wZ,emits:_Z,setup(e,{expose:t,emit:n}){const s=e,a=n,o=k(()=>El(s,Object.keys(t2))),r=Nl(),i=Pn(),l=Ee("autocomplete"),c=F(),u=F(),d=F(),h=F();let p=!1,v=!1;const m=F([]),g=F(-1),b=F(""),C=F(!1),w=F(!1),_=F(!1),x=Fs(),E=k(()=>r.style),T=k(()=>(m.value.length>0||_.value)&&C.value),R=k(()=>!s.hideLoading&&_.value),I=k(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),M=()=>{T.value&&(b.value=`${c.value.$el.offsetWidth}px`)},$=()=>{g.value=-1},L=async Z=>{if(w.value)return;const H=ae=>{_.value=!1,!w.value&&(ke(ae)?(m.value=ae,g.value=s.highlightFirstItem?0:-1):Jn(kS,"autocomplete suggestions must be an array"))};if(_.value=!0,ke(s.fetchSuggestions))H(s.fetchSuggestions);else{const ae=await s.fetchSuggestions(Z,H);ke(ae)&&H(ae)}},B=k(()=>s.debounce),q=Km(L,B),J=Z=>{const H=!!Z;if(a(ts,Z),a(ct,Z),w.value=!1,C.value||(C.value=H),!s.triggerOnFocus&&!Z){w.value=!0,m.value=[];return}q(Z)},Y=Z=>{var H;i.value||(((H=Z.target)==null?void 0:H.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(C.value=!0)},O=Z=>{a(Pt,Z)},N=Z=>{var H;if(v)v=!1;else{C.value=!0,a("focus",Z);const ae=(H=s.modelValue)!=null?H:"";s.triggerOnFocus&&!p&&q(String(ae))}},V=Z=>{setTimeout(()=>{var H;if((H=d.value)!=null&&H.isFocusInsideContent()){v=!0;return}C.value&&K(),a("blur",Z)})},z=()=>{C.value=!1,a(ct,""),a("clear")},G=async()=>{var Z;(Z=c.value)!=null&&Z.isComposing||(T.value&&g.value>=0&&g.value<m.value.length?he(m.value[g.value]):(s.selectWhenUnmatched&&(a("select",{value:s.modelValue}),m.value=[],g.value=-1),C.value=!0,q(String(s.modelValue))))},Q=Z=>{T.value&&(Z.preventDefault(),Z.stopPropagation(),K())},K=()=>{C.value=!1},ee=()=>{var Z;(Z=c.value)==null||Z.focus()},se=()=>{var Z;(Z=c.value)==null||Z.blur()},he=async Z=>{a(ts,Z[s.valueKey]),a(ct,Z[s.valueKey]),a("select",Z),m.value=[],g.value=-1},te=Z=>{var H,ae;if(!T.value||_.value)return;if(Z<0){if(!s.loopNavigation){g.value=-1;return}Z=m.value.length-1}Z>=m.value.length&&(Z=s.loopNavigation?0:m.value.length-1);const[de,ye]=pe(),_e=ye[Z],Se=de.scrollTop,{offsetTop:Ne,scrollHeight:Fe}=_e;Ne+Fe>Se+de.clientHeight&&(de.scrollTop=Ne+Fe-de.clientHeight),Ne<Se&&(de.scrollTop=Ne),g.value=Z,(ae=(H=c.value)==null?void 0:H.ref)==null||ae.setAttribute("aria-activedescendant",`${x.value}-item-${g.value}`)},pe=()=>{const Z=u.value.querySelector(`.${l.be("suggestion","wrap")}`),H=Z.querySelectorAll(`.${l.be("suggestion","list")} li`);return[Z,H]},fe=R8(h,()=>{var Z;(Z=d.value)!=null&&Z.isFocusInsideContent()||T.value&&K()}),le=Z=>{switch(an(Z)){case Te.up:Z.preventDefault(),te(g.value-1);break;case Te.down:Z.preventDefault(),te(g.value+1);break;case Te.enter:case Te.numpadEnter:Z.preventDefault(),G();break;case Te.tab:K();break;case Te.esc:Q(Z);break;case Te.home:Z.preventDefault(),te(0);break;case Te.end:Z.preventDefault(),te(m.value.length-1);break;case Te.pageUp:Z.preventDefault(),te(Math.max(0,g.value-10));break;case Te.pageDown:Z.preventDefault(),te(Math.min(m.value.length-1,g.value+10));break}};return qt(()=>{fe==null||fe()}),St(()=>{var Z;const H=(Z=c.value)==null?void 0:Z.ref;H&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:x.value},{key:"aria-activedescendant",value:`${x.value}-item-${g.value}`}].forEach(({key:ae,value:de})=>H.setAttribute(ae,de)),p=H.hasAttribute("readonly"))}),t({highlightedIndex:g,activated:C,loading:_,inputRef:c,popperRef:d,suggestions:m,handleSelect:he,handleKeyEnter:G,focus:ee,blur:se,close:K,highlight:te,getData:L}),(Z,H)=>(S(),ce(f(As),{ref_key:"popperRef",ref:d,visible:T.value,placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[f(l).e("popper"),e.popperClass],"popper-style":e.popperStyle,teleported:e.teleported,"append-to":e.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${f(l).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:M,onHide:$},{content:X(()=>[A("div",{ref_key:"regionRef",ref:u,class:D([f(l).b("suggestion"),f(l).is("loading",R.value)]),style:tt({[e.fitInputWidth?"width":"minWidth"]:b.value,outline:"none"}),role:"region"},[Z.$slots.header?(S(),P("div",{key:0,class:D(f(l).be("suggestion","header")),onClick:H[0]||(H[0]=it(()=>{},["stop"]))},[ue(Z.$slots,"header")],2)):ie("v-if",!0),W(f(Cr),{id:f(x),tag:"ul","wrap-class":f(l).be("suggestion","wrap"),"view-class":f(l).be("suggestion","list"),role:"listbox"},{default:X(()=>[R.value?(S(),P("li",$Q,[ue(Z.$slots,"loading",{},()=>[W(f(Ye),{class:D(f(l).is("loading"))},{default:X(()=>[W(f(Ao))]),_:1},8,["class"])])])):(S(!0),P(Ve,{key:1},yt(m.value,(ae,de)=>(S(),P("li",{id:`${f(x)}-item-${de}`,key:de,class:D({highlighted:g.value===de}),role:"option","aria-selected":g.value===de,onClick:ye=>he(ae)},[ue(Z.$slots,"default",{item:ae},()=>[We(ge(ae[e.valueKey]),1)])],10,DQ))),128))]),_:3},8,["id","wrap-class","view-class"]),Z.$slots.footer?(S(),P("div",{key:1,class:D(f(l).be("suggestion","footer")),onClick:H[1]||(H[1]=it(()=>{},["stop"]))},[ue(Z.$slots,"footer")],2)):ie("v-if",!0)],6)]),default:X(()=>[A("div",{ref_key:"listboxRef",ref:h,class:D([f(l).b(),Z.$attrs.class]),style:tt(E.value),role:"combobox","aria-haspopup":"listbox","aria-expanded":T.value,"aria-owns":f(x)},[W(f(ga),_t({ref_key:"inputRef",ref:c},_t(o.value,Z.$attrs),{"model-value":e.modelValue,disabled:f(i),onInput:J,onChange:O,onFocus:N,onBlur:V,onClear:z,onKeydown:le,onMousedown:Y}),Na({_:2},[Z.$slots.prepend?{name:"prepend",fn:X(()=>[ue(Z.$slots,"prepend")]),key:"0"}:void 0,Z.$slots.append?{name:"append",fn:X(()=>[ue(Z.$slots,"append")]),key:"1"}:void 0,Z.$slots.prefix?{name:"prefix",fn:X(()=>[ue(Z.$slots,"prefix")]),key:"2"}:void 0,Z.$slots.suffix?{name:"suffix",fn:X(()=>[ue(Z.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","disabled"])],14,NQ)]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}});const BQ=pt(FQ),VQ=Me({size:{type:[Number,String],values:Or,validator:e=>st(e)},shape:{type:String,values:["circle","square"]},icon:{type:en},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:re(String),default:"cover"}}),zQ={error:e=>e instanceof Event},MA=Symbol("avatarGroupContextKey"),HQ=["src","alt","srcset"];var PA=j({name:"ElAvatar",__name:"avatar",props:VQ,emits:zQ,setup(e,{emit:t}){const n=e,s=t,a=je(MA,void 0),o=Ee("avatar"),r=F(!1),i=k(()=>{var p;return(p=n.size)!=null?p:a==null?void 0:a.size}),l=k(()=>{var p,v;return(v=(p=n.shape)!=null?p:a==null?void 0:a.shape)!=null?v:"circle"}),c=k(()=>{const{icon:p}=n,v=[o.b()];return Xe(i.value)&&v.push(o.m(i.value)),p&&v.push(o.m("icon")),l.value&&v.push(o.m(l.value)),v}),u=k(()=>st(i.value)?o.cssVarBlock({size:Mn(i.value)}):void 0),d=k(()=>({objectFit:n.fit}));be(()=>[n.src,n.srcSet],()=>r.value=!1);function h(p){r.value=!0,s("error",p)}return(p,v)=>(S(),P("span",{class:D(c.value),style:tt(u.value)},[(e.src||e.srcSet)&&!r.value?(S(),P("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:tt(d.value),onError:h},null,44,HQ)):e.icon?(S(),ce(f(Ye),{key:1},{default:X(()=>[(S(),ce(bt(e.icon)))]),_:1})):ue(p.$slots,"default",{key:2})],6))}});const WQ={size:{type:re([Number,String]),values:Or,validator:e=>st(e)},shape:{type:re(String),values:["circle","square"]},collapseAvatars:Boolean,collapseAvatarsTooltip:Boolean,maxCollapseAvatars:{type:Number,default:1},effect:{type:re(String),default:"light"},placement:{type:re(String),values:Ei,default:"top"},popperClass:Zt.popperClass,popperStyle:Zt.popperStyle,collapseClass:String,collapseStyle:{type:re([String,Array,Object])}};var RA=j({name:"ElAvatarGroup",props:WQ,setup(e,{slots:t}){const n=Ee("avatar-group");return Mt(MA,Kt({size:Jt(e,"size"),shape:Jt(e,"shape")})),()=>{var s,a;const o=Co((a=(s=t.default)==null?void 0:s.call(t))!=null?a:[]);let r=o;if(e.collapseAvatars&&o.length>e.maxCollapseAvatars){r=o.slice(0,e.maxCollapseAvatars);const l=o.slice(e.maxCollapseAvatars);r.push(W(As,{popperClass:e.popperClass,popperStyle:e.popperStyle,placement:e.placement,effect:e.effect,disabled:!e.collapseAvatarsTooltip},{default:()=>W(PA,{size:e.size,shape:e.shape,class:e.collapseClass,style:e.collapseStyle},{default:()=>[We("+ "),l.length]}),content:()=>W("div",{class:n.e("collapse-avatars")},[l.map((c,u)=>{var d;return un(c)?gi(c,{key:(d=c.key)!=null?d:u}):c})])}))}return W("div",{class:n.b()},[r])}}});const jQ=pt(PA,{AvatarGroup:RA}),KQ=En(RA),UQ={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},qQ={click:e=>e instanceof MouseEvent},GQ=(e,t,n)=>{const s=fn(),a=fn(),o=F(!1),r=()=>{s.value&&(o.value=s.value.scrollTop>=e.visibilityHeight)},i=c=>{var u;(u=s.value)==null||u.scrollTo({top:0,behavior:"smooth"}),t("click",c)},l=hk(r,300,!0);return Xt(a,"scroll",l),St(()=>{var c;a.value=document,s.value=document.documentElement,e.target&&(s.value=(c=document.querySelector(e.target))!=null?c:void 0,s.value||Jn(n,`target does not exist: ${e.target}`),a.value=s.value),r()}),{visible:o,handleClick:i}},AS="ElBacktop";var YQ=j({name:AS,__name:"backtop",props:UQ,emits:qQ,setup(e,{emit:t}){const n=e,s=t,a=Ee("backtop"),{handleClick:o,visible:r}=GQ(n,s,AS),i=k(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(l,c)=>(S(),ce(bs,{name:`${f(a).namespace.value}-fade-in`},{default:X(()=>[f(r)?(S(),P("div",{key:0,style:tt(i.value),class:D(f(a).b()),onClick:c[0]||(c[0]=it((...u)=>f(o)&&f(o)(...u),["stop"]))},[ue(l.$slots,"default",{},()=>[W(f(Ye),{class:D(f(a).e("icon"))},{default:X(()=>[W(f(Tk))]),_:1},8,["class"])])],6)):ie("v-if",!0)]),_:3},8,["name"]))}});const XQ=pt(YQ),JQ=Me({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:re([String,Object,Array])},offset:{type:re(Array),default:()=>[0,0]},badgeClass:{type:String}});var ZQ=j({name:"ElBadge",__name:"badge",props:JQ,setup(e,{expose:t}){const n=e,s=Ee("badge"),a=k(()=>n.isDot?"":st(n.value)&&st(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),o=k(()=>{var r;return[{backgroundColor:n.color,marginRight:Mn(-n.offset[0]),marginTop:Mn(n.offset[1])},(r=n.badgeStyle)!=null?r:{}]});return t({content:a}),(r,i)=>(S(),P("div",{class:D(f(s).b())},[ue(r.$slots,"default"),W(bs,{name:`${f(s).namespace.value}-zoom-in-center`,persisted:""},{default:X(()=>[gt(A("sup",{class:D([f(s).e("content"),f(s).em("content",e.type),f(s).is("fixed",!!r.$slots.default),f(s).is("dot",e.isDot),f(s).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:tt(o.value)},[ue(r.$slots,"content",{value:a.value},()=>[We(ge(a.value),1)])],6),[[Bt,!e.hidden&&(a.value||e.isDot||r.$slots.content)]])]),_:3},8,["name"])],2))}});const IA=pt(ZQ),QQ=Me({separator:{type:String,default:"/"},separatorIcon:{type:en}}),LA=Symbol("breadcrumbKey"),eee=["aria-label"];var tee=j({name:"ElBreadcrumb",__name:"breadcrumb",props:QQ,setup(e){const{t}=Rt(),n=e,s=Ee("breadcrumb"),a=F();return Mt(LA,n),St(()=>{const o=a.value.querySelectorAll(`.${s.e("item")}`);o.length&&o[o.length-1].setAttribute("aria-current","page")}),(o,r)=>(S(),P("div",{ref_key:"breadcrumb",ref:a,class:D(f(s).b()),"aria-label":f(t)("el.breadcrumb.label"),role:"navigation"},[ue(o.$slots,"default")],10,eee))}});const nee=Me({to:{type:re([String,Object]),default:""},replace:Boolean});var OA=j({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:nee,setup(e){const t=e,n=Ct(),s=je(LA,void 0),a=Ee("breadcrumb"),o=n.appContext.config.globalProperties.$router,r=()=>{!t.to||!o||(t.replace?o.replace(t.to):o.push(t.to))};return(i,l)=>{var c,u;return S(),P("span",{class:D(f(a).e("item"))},[A("span",{class:D([f(a).e("inner"),f(a).is("link",!!e.to)]),role:"link",onClick:r},[ue(i.$slots,"default")],2),(c=f(s))!=null&&c.separatorIcon?(S(),ce(f(Ye),{key:0,class:D(f(a).e("separator"))},{default:X(()=>[(S(),ce(bt(f(s).separatorIcon)))]),_:1},8,["class"])):(S(),P("span",{key:1,class:D(f(a).e("separator")),role:"presentation"},ge((u=f(s))==null?void 0:u.separator),3))],2)}}});const see=pt(tee,{BreadcrumbItem:OA}),aee=En(OA),Iy=["default","primary","success","warning","info","danger","text",""],oee=["button","submit","reset"],Ly=Me({size:rs,disabled:{type:Boolean,default:void 0},type:{type:String,values:Iy,default:""},icon:{type:en},nativeType:{type:String,values:oee,default:"button"},loading:Boolean,loadingIcon:{type:en,default:()=>Ao},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:re([String,Object]),default:"button"}}),ree={click:e=>e instanceof MouseEvent},NA=Symbol("buttonGroupContextKey"),vi=({from:e,replacement:t,scope:n,version:s,ref:a,type:o="API"},r)=>{be(()=>f(r),i=>{},{immediate:!0})},iee=(e,t)=>{vi({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},k(()=>e.type==="text"));const n=je(NA,void 0),s=y0("button"),{form:a}=Ms(),o=ns(k(()=>n==null?void 0:n.size)),r=Pn(),i=F(),l=Hn(),c=k(()=>{var b;return e.type||(n==null?void 0:n.type)||((b=s.value)==null?void 0:b.type)||""}),u=k(()=>{var b,C,w;return(w=(C=e.autoInsertSpace)!=null?C:(b=s.value)==null?void 0:b.autoInsertSpace)!=null?w:!1}),d=k(()=>{var b,C,w;return(w=(C=e.plain)!=null?C:(b=s.value)==null?void 0:b.plain)!=null?w:!1}),h=k(()=>{var b,C,w;return(w=(C=e.round)!=null?C:(b=s.value)==null?void 0:b.round)!=null?w:!1}),p=k(()=>{var b,C,w;return(w=(C=e.text)!=null?C:(b=s.value)==null?void 0:b.text)!=null?w:!1}),v=k(()=>e.tag==="button"?{ariaDisabled:r.value||e.loading,disabled:r.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=k(()=>{var b;const C=(b=l.default)==null?void 0:b.call(l);if(u.value&&(C==null?void 0:C.length)===1){const w=C[0];if((w==null?void 0:w.type)===p0){const _=w.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(_.trim())}}return!1});return{_disabled:r,_size:o,_type:c,_ref:i,_props:v,_plain:d,_round:h,_text:p,shouldAddSpace:m,handleClick:b=>{if(r.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",b)}}};function Xs(e,t){lee(e)&&(e="100%");var n=cee(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function T2(e){return Math.min(1,Math.max(0,e))}function lee(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function cee(e){return typeof e=="string"&&e.indexOf("%")!==-1}function $A(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function M2(e){return e<=1?"".concat(Number(e)*100,"%"):e}function gu(e){return e.length===1?"0"+e:String(e)}function uee(e,t,n){return{r:Xs(e,255)*255,g:Xs(t,255)*255,b:Xs(n,255)*255}}function TS(e,t,n){e=Xs(e,255),t=Xs(t,255),n=Xs(n,255);var s=Math.max(e,t,n),a=Math.min(e,t,n),o=0,r=0,i=(s+a)/2;if(s===a)r=0,o=0;else{var l=s-a;switch(r=i>.5?l/(2-s-a):l/(s+a),s){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:r,l:i}}function A4(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function dee(e,t,n){var s,a,o;if(e=Xs(e,360),t=Xs(t,100),n=Xs(n,100),t===0)a=n,o=n,s=n;else{var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;s=A4(i,r,e+1/3),a=A4(i,r,e),o=A4(i,r,e-1/3)}return{r:s*255,g:a*255,b:o*255}}function MS(e,t,n){e=Xs(e,255),t=Xs(t,255),n=Xs(n,255);var s=Math.max(e,t,n),a=Math.min(e,t,n),o=0,r=s,i=s-a,l=s===0?0:i/s;if(s===a)o=0;else{switch(s){case e:o=(t-n)/i+(t<n?6:0);break;case t:o=(n-e)/i+2;break;case n:o=(e-t)/i+4;break}o/=6}return{h:o,s:l,v:r}}function fee(e,t,n){e=Xs(e,360)*6,t=Xs(t,100),n=Xs(n,100);var s=Math.floor(e),a=e-s,o=n*(1-t),r=n*(1-a*t),i=n*(1-(1-a)*t),l=s%6,c=[n,r,o,o,i,n][l],u=[i,n,n,r,o,o][l],d=[o,o,i,n,n,r][l];return{r:c*255,g:u*255,b:d*255}}function PS(e,t,n,s){var a=[gu(Math.round(e).toString(16)),gu(Math.round(t).toString(16)),gu(Math.round(n).toString(16))];return s&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function hee(e,t,n,s,a){var o=[gu(Math.round(e).toString(16)),gu(Math.round(t).toString(16)),gu(Math.round(n).toString(16)),gu(pee(s))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function pee(e){return Math.round(parseFloat(e)*255).toString(16)}function RS(e){return no(e)/255}function no(e){return parseInt(e,16)}function vee(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Oy={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 mee(e){var t={r:0,g:0,b:0},n=1,s=null,a=null,o=null,r=!1,i=!1;return typeof e=="string"&&(e=yee(e)),typeof e=="object"&&(Mi(e.r)&&Mi(e.g)&&Mi(e.b)?(t=uee(e.r,e.g,e.b),r=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Mi(e.h)&&Mi(e.s)&&Mi(e.v)?(s=M2(e.s),a=M2(e.v),t=fee(e.h,s,a),r=!0,i="hsv"):Mi(e.h)&&Mi(e.s)&&Mi(e.l)&&(s=M2(e.s),o=M2(e.l),t=dee(e.h,s,o),r=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=$A(n),{ok:r,format:e.format||i,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:n}}var gee="[-\\+]?\\d+%?",bee="[-\\+]?\\d*\\.\\d+%?",Oc="(?:".concat(bee,")|(?:").concat(gee,")"),T4="[\\s|\\(]+(".concat(Oc,")[,|\\s]+(").concat(Oc,")[,|\\s]+(").concat(Oc,")\\s*\\)?"),M4="[\\s|\\(]+(".concat(Oc,")[,|\\s]+(").concat(Oc,")[,|\\s]+(").concat(Oc,")[,|\\s]+(").concat(Oc,")\\s*\\)?"),Zo={CSS_UNIT:new RegExp(Oc),rgb:new RegExp("rgb"+T4),rgba:new RegExp("rgba"+M4),hsl:new RegExp("hsl"+T4),hsla:new RegExp("hsla"+M4),hsv:new RegExp("hsv"+T4),hsva:new RegExp("hsva"+M4),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 yee(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Oy[e])e=Oy[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Zo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Zo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Zo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Zo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Zo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Zo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Zo.hex8.exec(e),n?{r:no(n[1]),g:no(n[2]),b:no(n[3]),a:RS(n[4]),format:t?"name":"hex8"}:(n=Zo.hex6.exec(e),n?{r:no(n[1]),g:no(n[2]),b:no(n[3]),format:t?"name":"hex"}:(n=Zo.hex4.exec(e),n?{r:no(n[1]+n[1]),g:no(n[2]+n[2]),b:no(n[3]+n[3]),a:RS(n[4]+n[4]),format:t?"name":"hex8"}:(n=Zo.hex3.exec(e),n?{r:no(n[1]+n[1]),g:no(n[2]+n[2]),b:no(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Mi(e){return!!Zo.CSS_UNIT.exec(String(e))}var Sf=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var s;if(t instanceof e)return t;typeof t=="number"&&(t=vee(t)),this.originalInput=t;var a=mee(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(s=n.format)!==null&&s!==void 0?s:a.format,this.gradientType=n.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=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,s,a,o=t.r/255,r=t.g/255,i=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*s+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=$A(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=MS(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=MS(this.r,this.g,this.b),n=Math.round(t.h*360),s=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(s,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(s,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=TS(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=TS(this.r,this.g,this.b),n=Math.round(t.h*360),s=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(s,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(s,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),PS(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),hee(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),s=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(s,")"):"rgba(".concat(t,", ").concat(n,", ").concat(s,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Xs(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Xs(n,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,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+PS(this.r,this.g,this.b,!1),n=0,s=Object.entries(Oy);n<s.length;n++){var a=s[n],o=a[0],r=a[1];if(t===r)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var s=!1,a=this.a<1&&this.a>=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(s=this.toRgbString()),t==="prgb"&&(s=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(s=this.toHexString()),t==="hex3"&&(s=this.toHexString(!0)),t==="hex4"&&(s=this.toHex8String(!0)),t==="hex8"&&(s=this.toHex8String()),t==="name"&&(s=this.toName()),t==="hsl"&&(s=this.toHslString()),t==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=T2(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=T2(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=T2(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=T2(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),s=(n.h+t)%360;return n.h=s<0?360+s:s,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var s=this.toRgb(),a=new e(t).toRgb(),o=n/100,r={r:(a.r-s.r)*o+s.r,g:(a.g-s.g)*o+s.g,b:(a.b-s.b)*o+s.b,a:(a.a-s.a)*o+s.a};return new e(r)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var s=this.toHsl(),a=360/n,o=[this];for(s.h=(s.h-(a*t>>1)+720)%360;--t;)s.h=(s.h+a)%360,o.push(new e(s));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),s=n.h,a=n.s,o=n.v,r=[],i=1/t;t--;)r.push(new e({h:s,s:a,v:o})),o=(o+i)%1;return r},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),s=new e(t).toRgb(),a=n.a+s.a*(1-n.a);return new e({r:(n.r*n.a+s.r*s.a*(1-n.a))/a,g:(n.g*n.a+s.g*s.a*(1-n.a))/a,b:(n.b*n.a+s.b*s.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),s=n.h,a=[this],o=360/t,r=1;r<t;r++)a.push(new e({h:(s+r*o)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Wl(e,t=20){return e.mix("#141414",t).toString()}function wee(e){const t=Pn(),n=Ee("button");return k(()=>{let s={},a=e.color;if(a){const o=a.match(/var\((.*?)\)/);o&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const r=new Sf(a),i=e.dark?r.tint(20).toString():Wl(r,20);if(e.plain)s=n.cssVarBlock({"bg-color":e.dark?Wl(r,90):r.tint(90).toString(),"text-color":a,"border-color":e.dark?Wl(r,50):r.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(s[n.cssVarBlockName("disabled-bg-color")]=e.dark?Wl(r,90):r.tint(90).toString(),s[n.cssVarBlockName("disabled-text-color")]=e.dark?Wl(r,50):r.tint(50).toString(),s[n.cssVarBlockName("disabled-border-color")]=e.dark?Wl(r,80):r.tint(80).toString());else{const l=e.dark?Wl(r,30):r.tint(30).toString(),c=r.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(s=n.cssVarBlock({"bg-color":a,"text-color":c,"border-color":a,"hover-bg-color":l,"hover-text-color":c,"hover-border-color":l,"active-bg-color":i,"active-border-color":i}),t.value){const u=e.dark?Wl(r,50):r.tint(50).toString();s[n.cssVarBlockName("disabled-bg-color")]=u,s[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,s[n.cssVarBlockName("disabled-border-color")]=u}}}return s})}var _ee=j({name:"ElButton",__name:"button",props:Ly,emits:ree,setup(e,{expose:t,emit:n}){const s=e,a=n,o=wee(s),r=Ee("button"),{_ref:i,_size:l,_type:c,_disabled:u,_props:d,_plain:h,_round:p,_text:v,shouldAddSpace:m,handleClick:g}=iee(s,a),b=k(()=>[r.b(),r.m(c.value),r.m(l.value),r.is("disabled",u.value),r.is("loading",s.loading),r.is("plain",h.value),r.is("round",p.value),r.is("circle",s.circle),r.is("text",v.value),r.is("link",s.link),r.is("has-bg",s.bg)]);return t({ref:i,size:l,type:c,disabled:u,shouldAddSpace:m}),(C,w)=>(S(),ce(bt(e.tag),_t({ref_key:"_ref",ref:i},f(d),{class:b.value,style:f(o),onClick:f(g)}),{default:X(()=>[e.loading?(S(),P(Ve,{key:0},[C.$slots.loading?ue(C.$slots,"loading",{key:0}):(S(),ce(f(Ye),{key:1,class:D(f(r).is("loading"))},{default:X(()=>[(S(),ce(bt(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||C.$slots.icon?(S(),ce(f(Ye),{key:1},{default:X(()=>[e.icon?(S(),ce(bt(e.icon),{key:0})):ue(C.$slots,"icon",{key:1})]),_:3})):ie("v-if",!0),C.$slots.default?(S(),P("span",{key:2,class:D({[f(r).em("text","expand")]:f(m)})},[ue(C.$slots,"default")],2)):ie("v-if",!0)]),_:3},16,["class","style","onClick"]))}});const Cee={size:Ly.size,type:Ly.type,direction:{type:re(String),values:["horizontal","vertical"],default:"horizontal"}};var DA=j({name:"ElButtonGroup",__name:"button-group",props:Cee,setup(e){const t=e;Mt(NA,Kt({size:Jt(t,"size"),type:Jt(t,"type")}));const n=Ee("button");return(s,a)=>(S(),P("div",{class:D([f(n).b("group"),f(n).bm("group",t.direction)])},[ue(s.$slots,"default")],2))}});const ps=pt(_ee,{ButtonGroup:DA}),FA=En(DA),See=e=>ke(e)&&e.length===2&&e.every(t=>Vc(t)),xee=Me({modelValue:{type:Date},range:{type:re(Array),validator:See},controllerType:{type:String,values:["button","select"],default:"button"},formatter:{type:re(Function)}}),Eee={[ct]:e=>Vc(e),[ts]:e=>Vc(e)};var Bl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var BA={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Bl,function(){var n=1e3,s=6e4,a=36e5,o="millisecond",r="second",i="minute",l="hour",c="day",u="week",d="month",h="quarter",p="year",v="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,C={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(q){var J=["th","st","nd","rd"],Y=q%100;return"["+q+(J[(Y-20)%10]||J[Y]||J[0])+"]"}},w=function(q,J,Y){var O=String(q);return!O||O.length>=J?q:""+Array(J+1-O.length).join(Y)+q},_={s:w,z:function(q){var J=-q.utcOffset(),Y=Math.abs(J),O=Math.floor(Y/60),N=Y%60;return(J<=0?"+":"-")+w(O,2,"0")+":"+w(N,2,"0")},m:function q(J,Y){if(J.date()<Y.date())return-q(Y,J);var O=12*(Y.year()-J.year())+(Y.month()-J.month()),N=J.clone().add(O,d),V=Y-N<0,z=J.clone().add(O+(V?-1:1),d);return+(-(O+(Y-N)/(V?N-z:z-N))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return{M:d,y:p,w:u,d:c,D:v,h:l,m:i,s:r,ms:o,Q:h}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},x="en",E={};E[x]=C;var T="$isDayjsObject",R=function(q){return q instanceof L||!(!q||!q[T])},I=function q(J,Y,O){var N;if(!J)return x;if(typeof J=="string"){var V=J.toLowerCase();E[V]&&(N=V),Y&&(E[V]=Y,N=V);var z=J.split("-");if(!N&&z.length>1)return q(z[0])}else{var G=J.name;E[G]=J,N=G}return!O&&N&&(x=N),N||!O&&x},M=function(q,J){if(R(q))return q.clone();var Y=typeof J=="object"?J:{};return Y.date=q,Y.args=arguments,new L(Y)},$=_;$.l=I,$.i=R,$.w=function(q,J){return M(q,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var L=function(){function q(Y){this.$L=I(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[T]=!0}var J=q.prototype;return J.parse=function(Y){this.$d=function(O){var N=O.date,V=O.utc;if(N===null)return new Date(NaN);if($.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var z=N.match(g);if(z){var G=z[2]-1||0,Q=(z[7]||"0").substring(0,3);return V?new Date(Date.UTC(z[1],G,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Q)):new Date(z[1],G,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Q)}}return new Date(N)}(Y),this.init()},J.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},J.$utils=function(){return $},J.isValid=function(){return this.$d.toString()!==m},J.isSame=function(Y,O){var N=M(Y);return this.startOf(O)<=N&&N<=this.endOf(O)},J.isAfter=function(Y,O){return M(Y)<this.startOf(O)},J.isBefore=function(Y,O){return this.endOf(O)<M(Y)},J.$g=function(Y,O,N){return $.u(Y)?this[O]:this.set(N,Y)},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this.$d.getTime()},J.startOf=function(Y,O){var N=this,V=!!$.u(O)||O,z=$.p(Y),G=function(fe,le){var Z=$.w(N.$u?Date.UTC(N.$y,le,fe):new Date(N.$y,le,fe),N);return V?Z:Z.endOf(c)},Q=function(fe,le){return $.w(N.toDate()[fe].apply(N.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(le)),N)},K=this.$W,ee=this.$M,se=this.$D,he="set"+(this.$u?"UTC":"");switch(z){case p:return V?G(1,0):G(31,11);case d:return V?G(1,ee):G(0,ee+1);case u:var te=this.$locale().weekStart||0,pe=(K<te?K+7:K)-te;return G(V?se-pe:se+(6-pe),ee);case c:case v:return Q(he+"Hours",0);case l:return Q(he+"Minutes",1);case i:return Q(he+"Seconds",2);case r:return Q(he+"Milliseconds",3);default:return this.clone()}},J.endOf=function(Y){return this.startOf(Y,!1)},J.$set=function(Y,O){var N,V=$.p(Y),z="set"+(this.$u?"UTC":""),G=(N={},N[c]=z+"Date",N[v]=z+"Date",N[d]=z+"Month",N[p]=z+"FullYear",N[l]=z+"Hours",N[i]=z+"Minutes",N[r]=z+"Seconds",N[o]=z+"Milliseconds",N)[V],Q=V===c?this.$D+(O-this.$W):O;if(V===d||V===p){var K=this.clone().set(v,1);K.$d[G](Q),K.init(),this.$d=K.set(v,Math.min(this.$D,K.daysInMonth())).$d}else G&&this.$d[G](Q);return this.init(),this},J.set=function(Y,O){return this.clone().$set(Y,O)},J.get=function(Y){return this[$.p(Y)]()},J.add=function(Y,O){var N,V=this;Y=Number(Y);var z=$.p(O),G=function(ee){var se=M(V);return $.w(se.date(se.date()+Math.round(ee*Y)),V)};if(z===d)return this.set(d,this.$M+Y);if(z===p)return this.set(p,this.$y+Y);if(z===c)return G(1);if(z===u)return G(7);var Q=(N={},N[i]=s,N[l]=a,N[r]=n,N)[z]||1,K=this.$d.getTime()+Y*Q;return $.w(K,this)},J.subtract=function(Y,O){return this.add(-1*Y,O)},J.format=function(Y){var O=this,N=this.$locale();if(!this.isValid())return N.invalidDate||m;var V=Y||"YYYY-MM-DDTHH:mm:ssZ",z=$.z(this),G=this.$H,Q=this.$m,K=this.$M,ee=N.weekdays,se=N.months,he=N.meridiem,te=function(le,Z,H,ae){return le&&(le[Z]||le(O,V))||H[Z].slice(0,ae)},pe=function(le){return $.s(G%12||12,le,"0")},fe=he||function(le,Z,H){var ae=le<12?"AM":"PM";return H?ae.toLowerCase():ae};return V.replace(b,function(le,Z){return Z||function(H){switch(H){case"YY":return String(O.$y).slice(-2);case"YYYY":return $.s(O.$y,4,"0");case"M":return K+1;case"MM":return $.s(K+1,2,"0");case"MMM":return te(N.monthsShort,K,se,3);case"MMMM":return te(se,K);case"D":return O.$D;case"DD":return $.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return te(N.weekdaysMin,O.$W,ee,2);case"ddd":return te(N.weekdaysShort,O.$W,ee,3);case"dddd":return ee[O.$W];case"H":return String(G);case"HH":return $.s(G,2,"0");case"h":return pe(1);case"hh":return pe(2);case"a":return fe(G,Q,!0);case"A":return fe(G,Q,!1);case"m":return String(Q);case"mm":return $.s(Q,2,"0");case"s":return String(O.$s);case"ss":return $.s(O.$s,2,"0");case"SSS":return $.s(O.$ms,3,"0");case"Z":return z}return null}(le)||z.replace(":","")})},J.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},J.diff=function(Y,O,N){var V,z=this,G=$.p(O),Q=M(Y),K=(Q.utcOffset()-this.utcOffset())*s,ee=this-Q,se=function(){return $.m(z,Q)};switch(G){case p:V=se()/12;break;case d:V=se();break;case h:V=se()/3;break;case u:V=(ee-K)/6048e5;break;case c:V=(ee-K)/864e5;break;case l:V=ee/a;break;case i:V=ee/s;break;case r:V=ee/n;break;default:V=ee}return N?V:$.a(V)},J.daysInMonth=function(){return this.endOf(d).$D},J.$locale=function(){return E[this.$L]},J.locale=function(Y,O){if(!Y)return this.$L;var N=this.clone(),V=I(Y,O,!0);return V&&(N.$L=V),N},J.clone=function(){return $.w(this.$d,this)},J.toDate=function(){return new Date(this.valueOf())},J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toISOString=function(){return this.$d.toISOString()},J.toString=function(){return this.$d.toUTCString()},q}(),B=L.prototype;return M.prototype=B,[["$ms",o],["$s",r],["$m",i],["$H",l],["$W",c],["$M",d],["$y",p],["$D",v]].forEach(function(q){B[q[1]]=function(J){return this.$g(J,q[0],q[1])}}),M.extend=function(q,J){return q.$i||(q(J,L,M),q.$i=!0),M},M.locale=I,M.isDayjs=R,M.unix=function(q){return M(1e3*q)},M.en=E[x],M.Ls=E,M.p={},M})})(BA);var kee=BA.exports;const ht=Vl(kee),P4=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],Fc=e=>Array.from(Array.from({length:e}).keys()),VA=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),zA=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),IS=function(e,t){const n=Vc(e),s=Vc(t);return n&&s?e.getTime()===t.getTime():!n&&!s?e===t:!1},HA=function(e,t){const n=ke(e),s=ke(t);return n&&s?e.length!==t.length?!1:e.every((a,o)=>IS(a,t[o])):!n&&!s?IS(e,t):!1},LS=function(e,t,n){const s=Pa(t)||t==="x"?ht(e).locale(n):ht(e,t).locale(n);return s.isValid()?s:void 0},OS=function(e,t,n){return Pa(t)?e:t==="x"?+e:ht(e).locale(n).format(t)},R4=(e,t)=>{var n;const s=[],a=t==null?void 0:t();for(let o=0;o<e;o++)s.push((n=a==null?void 0:a.includes(o))!=null?n:!1);return s},Z2=e=>ke(e)?e.map(t=>t.toDate()):e.toDate(),Aee=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Fc(t).map((s,a)=>n-(t-a-1))},Tee=e=>{const t=e.daysInMonth();return Fc(t).map((n,s)=>s+1)},Mee=e=>Fc(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),Pee=Me({selectedDay:{type:re(Object)},range:{type:re(Array)},date:{type:re(Object),required:!0},hideHeader:{type:Boolean}}),Ree={pick:e=>ft(e)};var WA={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Bl,function(){return function(n,s,a){var o=s.prototype,r=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,h,p,v,m){var g=d.name?d:d.$locale(),b=r(g[h]),C=r(g[p]),w=b||C.map(function(x){return x.slice(0,v)});if(!m)return w;var _=g.weekStart;return w.map(function(x,E){return w[(E+(_||0))%7]})},l=function(){return a.Ls[a.locale()]},c=function(d,h){return d.formats[h]||function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,m,g){return m||g.slice(1)})}(d.formats[h.toUpperCase()])},u=function(){var d=this;return{months:function(h){return h?h.format("MMMM"):i(d,"months")},monthsShort:function(h){return h?h.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(d,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(d.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return u.bind(this)()},a.localeData=function(){var d=l();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(h){return c(d,h)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return i(l(),"months")},a.monthsShort=function(){return i(l(),"monthsShort","months",3)},a.weekdays=function(d){return i(l(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return i(l(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return i(l(),"weekdaysMin","weekdays",2,d)}}})})(WA);var Iee=WA.exports;const jA=Vl(Iee),Lee=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],I4=["sun","mon","tue","wed","thu","fri","sat"],Oee=(e,t)=>{ht.extend(jA);const n=ht.localeData().firstDayOfWeek(),{t:s,lang:a}=Rt(),o=ht().locale(a.value),r=k(()=>!!e.range&&!!e.range.length),i=k(()=>{let h=[];if(r.value){const[p,v]=e.range,m=Fc(v.date()-p.date()+1).map(C=>({text:p.date()+C,type:"current"}));let g=m.length%7;g=g===0?0:7-g;const b=Fc(g).map((C,w)=>({text:w+1,type:"next"}));h=m.concat(b)}else{const p=e.date.startOf("month").day(),v=Aee(e.date,(p-n+7)%7).map(C=>({text:C,type:"prev"})),m=Tee(e.date).map(C=>({text:C,type:"current"}));h=[...v,...m];const g=7-(h.length%7||7),b=Fc(g).map((C,w)=>({text:w+1,type:"next"}));h=h.concat(b)}return Mee(h)}),l=k(()=>{const h=n;return h===0?I4.map(p=>s(`el.datepicker.weeks.${p}`)):I4.slice(h).concat(I4.slice(0,h)).map(p=>s(`el.datepicker.weeks.${p}`))}),c=(h,p)=>{switch(p){case"prev":return e.date.startOf("month").subtract(1,"month").date(h);case"next":return e.date.startOf("month").add(1,"month").date(h);case"current":return e.date.date(h)}};return{now:o,isInRange:r,rows:i,weekDays:l,getFormattedDate:c,handlePickDay:({text:h,type:p})=>{const v=c(h,p);t("pick",v)},getSlotData:({text:h,type:p})=>{const v=c(h,p);return{isSelected:v.isSame(e.selectedDay),type:`${p}-month`,day:v.format("YYYY-MM-DD"),date:v.toDate()}}}},Nee={key:0},$ee=["onClick"];var NS=j({name:"DateTable",__name:"date-table",props:Pee,emits:Ree,setup(e,{expose:t,emit:n}){const s=e,a=n,{isInRange:o,now:r,rows:i,weekDays:l,getFormattedDate:c,handlePickDay:u,getSlotData:d}=Oee(s,a),h=Ee("calendar-table"),p=Ee("calendar-day"),v=({text:m,type:g})=>{const b=[g];if(g==="current"){const C=c(m,g);C.isSame(s.selectedDay,"day")&&b.push(p.is("selected")),C.isSame(r,"day")&&b.push(p.is("today"))}return b};return t({getFormattedDate:c}),(m,g)=>(S(),P("table",{class:D([f(h).b(),f(h).is("range",f(o))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?ie("v-if",!0):(S(),P("thead",Nee,[A("tr",null,[(S(!0),P(Ve,null,yt(f(l),b=>(S(),P("th",{key:b,scope:"col"},ge(b),1))),128))])])),A("tbody",null,[(S(!0),P(Ve,null,yt(f(i),(b,C)=>(S(),P("tr",{key:C,class:D({[f(h).e("row")]:!0,[f(h).em("row","hide-border")]:C===0&&e.hideHeader})},[(S(!0),P(Ve,null,yt(b,(w,_)=>(S(),P("td",{key:_,class:D(v(w)),onClick:x=>f(u)(w)},[A("div",{class:D(f(p).b())},[ue(m.$slots,"date-cell",{data:f(d)(w)},()=>[A("span",null,ge(w.text),1)])],2)],10,$ee))),128))],2))),128))])],2))}});const Dee=(e,t)=>{const n=e.endOf("month"),s=t.startOf("month"),o=n.isSame(s,"week")?s.add(1,"week"):s;return[[e,n],[o.startOf("week"),t]]},Fee=(e,t)=>{const n=e.endOf("month"),s=e.add(1,"month").startOf("month"),a=n.isSame(s,"week")?s.add(1,"week"):s,o=a.endOf("month"),r=t.startOf("month"),i=o.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[a.startOf("week"),o],[i.startOf("week"),t]]},Bee=(e,t,n)=>{const{lang:s}=Rt(),a=F(),o=ht().locale(s.value),r=k({get(){return e.modelValue?l.value:a.value},set(b){if(!b)return;a.value=b;const C=b.toDate();t(ts,C),t(ct,C)}}),i=k(()=>{if(!e.range||!ke(e.range)||e.range.length!==2||e.range.some(_=>!Vc(_)))return[];const b=e.range.map(_=>ht(_).locale(s.value)),[C,w]=b;return C.isAfter(w)?[]:C.isSame(w,"month")?p(C,w):C.add(1,"month").month()!==w.month()?[]:p(C,w)}),l=k(()=>e.modelValue?ht(e.modelValue).locale(s.value):r.value||(i.value.length?i.value[0][0]:o)),c=k(()=>l.value.subtract(1,"month").date(1)),u=k(()=>l.value.add(1,"month").date(1)),d=k(()=>l.value.subtract(1,"year").date(1)),h=k(()=>l.value.add(1,"year").date(1)),p=(b,C)=>{const w=b.startOf("week"),_=C.endOf("week"),x=w.get("month"),E=_.get("month");return x===E?[[w,_]]:(x+1)%12===E?Dee(w,_):x+2===E||(x+1)%11===E?Fee(w,_):[]},v=b=>{r.value=b},m=b=>{const w={"prev-month":c.value,"next-month":u.value,"prev-year":d.value,"next-year":h.value,today:o}[b];w.isSame(l.value,"day")||v(w)};return{calculateValidatedDateRange:p,date:l,realSelectedDay:r,pickDay:v,selectDate:m,validatedRange:i,handleDateChange:b=>{b==="today"?m("today"):v(b)}}},Vee=Me({date:{type:re(Object),required:!0},formatter:{type:re(Function)}}),zee={"date-change":e=>ft(e)||Xe(e)},Pl=Me({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Or},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Hee={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Wee=["aria-label"],jee=["aria-label"];var Kee=j({name:"ElTag",__name:"tag",props:Pl,emits:Hee,setup(e,{emit:t}){const n=e,s=t,a=ns(),{t:o}=Rt(),r=Ee("tag"),i=k(()=>{const{type:d,hit:h,effect:p,closable:v,round:m}=n;return[r.b(),r.is("closable",v),r.m(d||"primary"),r.m(a.value),r.m(p),r.is("hit",h),r.is("round",m)]}),l=d=>{s("close",d)},c=d=>{s("click",d)},u=d=>{var h,p,v;(v=(p=(h=d==null?void 0:d.component)==null?void 0:h.subTree)==null?void 0:p.component)!=null&&v.bum&&(d.component.subTree.component.bum=null)};return(d,h)=>e.disableTransitions?(S(),P("span",{key:0,class:D(i.value),style:tt({backgroundColor:e.color}),onClick:c},[A("span",{class:D(f(r).e("content"))},[ue(d.$slots,"default")],2),e.closable?(S(),P("button",{key:0,"aria-label":f(o)("el.tag.close"),class:D(f(r).e("close")),type:"button",onClick:it(l,["stop"])},[W(f(Ye),null,{default:X(()=>[W(f(eo))]),_:1})],10,Wee)):ie("v-if",!0)],6)):(S(),ce(bs,{key:1,name:`${f(r).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:u},{default:X(()=>[A("span",{class:D(i.value),style:tt({backgroundColor:e.color}),onClick:c},[A("span",{class:D(f(r).e("content"))},[ue(d.$slots,"default")],2),e.closable?(S(),P("button",{key:0,"aria-label":f(o)("el.tag.close"),class:D(f(r).e("close")),type:"button",onClick:it(l,["stop"])},[W(f(Ye),null,{default:X(()=>[W(f(eo))]),_:1})],10,jee)):ie("v-if",!0)],6)]),_:3},8,["name"]))}});const yl=pt(Kee),i1={label:"label",value:"value",disabled:"disabled",options:"options"};function a2(e){const t=F({...i1,...e.props});let n={...e.props};return be(()=>e.props,i=>{On(i,n)||(t.value={...i1,...i},n={...i})},{deep:!0}),{aliasProps:t,getLabel:i=>Xn(i,t.value.label),getValue:i=>Xn(i,t.value.value),getDisabled:i=>Xn(i,t.value.disabled),getOptions:i=>Xn(i,t.value.options)}}const KA=Symbol("ElSelectGroup"),o2=Symbol("ElSelect"),Ny="ElOption",Uee=Me({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),rw=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),ec=e=>Nm(e);function qee(e,t){const n=je(o2);n||Jn(Ny,"usage: <el-select><el-option /></el-select/>");const s=je(KA,{disabled:!1}),a=k(()=>u(Es(n.props.modelValue),e.value)),o=k(()=>{var p;if(n.props.multiple){const v=Es((p=n.props.modelValue)!=null?p:[]);return!a.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),r=k(()=>{var p;return(p=e.label)!=null?p:ft(e.value)?"":e.value}),i=k(()=>e.value||e.label||""),l=k(()=>e.disabled||t.groupDisabled||o.value),c=Ct(),u=(p=[],v)=>{if(ft(e.value)){const m=n.props.valueKey;return p&&p.some(g=>dn(Xn(g,m))===Xn(v,m))}else return p&&p.includes(v)},d=()=>{l.value||(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},h=p=>{const v=new RegExp(rw(p),"i");t.visible=v.test(String(r.value))||e.created};return be(()=>r.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),be(()=>e.value,(p,v)=>{const{remote:m,valueKey:g}=n.props;if((m?p!==v:!On(p,v))&&(n.onOptionDestroy(v,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!m){if(g&&ft(p)&&ft(v)&&p[g]===v[g])return;n.setSelected()}}),be(()=>s.disabled,()=>{t.groupDisabled=s.disabled},{immediate:!0}),{select:n,currentLabel:r,currentValue:i,itemSelected:a,isDisabled:l,hoverItem:d,updateOption:h}}var Gee=j({name:Ny,componentName:Ny,props:Uee,setup(e){const t=Ee("select"),n=Fs(),s=k(()=>[t.be("dropdown","item"),t.is("disabled",f(i)),t.is("selected",f(r)),t.is("hovering",f(h))]),a=Kt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:r,isDisabled:i,select:l,hoverItem:c,updateOption:u}=qee(e,a),{visible:d,hover:h}=gs(a),p=Ct().proxy;l.onOptionCreate(p),qt(()=>{const m=p.value;ze(()=>{const{selected:g}=l.states,b=g.some(C=>C.value===p.value);l.states.cachedOptions.get(m)===p&&!b&&l.states.cachedOptions.delete(m)}),l.onOptionDestroy(m,p)});function v(){i.value||l.handleOptionSelect(p)}return{ns:t,id:n,containerKls:s,currentLabel:o,itemSelected:r,isDisabled:i,select:l,visible:d,hover:h,states:a,hoverItem:c,updateOption:u,selectOptionClick:v}}});const Yee=["id","aria-disabled","aria-selected"];function Xee(e,t,n,s,a,o){return gt((S(),P("li",{id:e.id,class:D(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onClick:t[1]||(t[1]=it((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[ue(e.$slots,"default",{},()=>[A("span",null,ge(e.currentLabel),1)])],42,Yee)),[[Bt,e.visible]])}var iw=is(Gee,[["render",Xee]]);const Lb=11,UA=2;var Jee=j({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=je(o2),t=Ee("select"),n=k(()=>e.props.popperClass),s=k(()=>e.props.multiple),a=k(()=>e.props.fitInputWidth),o=F("");function r(){var i;const l=(i=e.selectRef)==null?void 0:i.offsetWidth;l?o.value=`${l-UA}px`:o.value=""}return St(()=>{r(),wn(e.selectRef,r)}),{ns:t,minWidth:o,popperClass:n,isMultiple:s,isFitInputWidth:a}}});function Zee(e,t,n,s,a,o){return S(),P("div",{class:D([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:tt({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(S(),P("div",{key:0,class:D(e.ns.be("dropdown","header"))},[ue(e.$slots,"header")],2)):ie("v-if",!0),ue(e.$slots,"default"),e.$slots.footer?(S(),P("div",{key:1,class:D(e.ns.be("dropdown","footer"))},[ue(e.$slots,"footer")],2)):ie("v-if",!0)],6)}var Qee=is(Jee,[["render",Zee]]);const ete=(e,t)=>{const{t:n}=Rt(),s=Hn(),a=Fs(),o=Ee("select"),r=Ee("input"),i=Kt({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=F(),c=F(),u=F(),d=F(),h=F(),p=F(),v=F(),m=F(),g=F(),b=F(),C=F(),w=F(!1),_=F(),x=F(!1),{form:E,formItem:T}=Ms(),{inputId:R}=Mo(e,{formItemContext:T}),{valueOnClear:I,isEmptyValue:M}=Gm(e),{isComposing:$,handleCompositionStart:L,handleCompositionUpdate:B,handleCompositionEnd:q}=s2({afterComposition:Re=>Ft(Re)}),J=Pn(),{wrapperRef:Y,isFocused:O,handleBlur:N}=Fl(h,{disabled:J,afterFocus(){e.automaticDropdown&&!w.value&&(w.value=!0,i.menuVisibleOnFocus=!0)},beforeBlur(Re){var ut,$t;return((ut=u.value)==null?void 0:ut.isFocusInsideContent(Re))||(($t=d.value)==null?void 0:$t.isFocusInsideContent(Re))},afterBlur(){var Re;w.value=!1,i.menuVisibleOnFocus=!1,e.validateEvent&&((Re=T==null?void 0:T.validate)==null||Re.call(T,"blur").catch(ut=>void 0))}}),V=k(()=>ke(e.modelValue)?e.modelValue.length>0:!M(e.modelValue)),z=k(()=>{var Re;return(Re=E==null?void 0:E.statusIcon)!=null?Re:!1}),G=k(()=>e.clearable&&!J.value&&V.value&&(O.value||i.inputHovering)),Q=k(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),K=k(()=>o.is("reverse",!!(Q.value&&w.value))),ee=k(()=>(T==null?void 0:T.validateState)||""),se=k(()=>ee.value&&Mb[ee.value]),he=k(()=>e.remote?e.debounce:0),te=k(()=>e.remote&&!i.inputValue&&i.options.size===0),pe=k(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&i.inputValue&&i.options.size>0&&fe.value===0?e.noMatchText||n("el.select.noMatch"):i.options.size===0?e.noDataText||n("el.select.noData"):null),fe=k(()=>le.value.filter(Re=>Re.visible).length),le=k(()=>{const Re=Array.from(i.options.values()),ut=[];return i.optionValues.forEach($t=>{const Cn=Re.findIndex(Fn=>Fn.value===$t);Cn>-1&&ut.push(Re[Cn])}),ut.length>=Re.length?ut:Re}),Z=k(()=>Array.from(i.cachedOptions.values())),H=k(()=>{const Re=le.value.filter(ut=>!ut.created).some(ut=>ut.currentLabel===i.inputValue);return e.filterable&&e.allowCreate&&i.inputValue!==""&&!Re}),ae=()=>{e.filterable&&nt(e.filterMethod)||e.filterable&&e.remote&&nt(e.remoteMethod)||le.value.forEach(Re=>{var ut;(ut=Re.updateOption)==null||ut.call(Re,i.inputValue)})},de=ns(),ye=k(()=>["small"].includes(de.value)?"small":"default"),_e=k({get(){return w.value&&(e.loading||!te.value||e.remote&&!!s.empty)&&(!x.value||!Pa(i.previousQuery))},set(Re){w.value=Re}}),Se=k(()=>{if(e.multiple&&!Dt(e.modelValue))return Es(e.modelValue).length===0&&!i.inputValue;const Re=ke(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Dt(Re)?!i.inputValue:!0}),Ne=k(()=>{var Re;const ut=(Re=e.placeholder)!=null?Re:n("el.select.placeholder");return e.multiple||!V.value?ut:i.selectedLabel}),Fe=k(()=>t1?null:"mouseenter");be(()=>e.modelValue,(Re,ut)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(i.inputValue="",Oe("")),Ie(),!On(Re,ut)&&e.validateEvent&&(T==null||T.validate("change").catch($t=>void 0))},{flush:"post",deep:!0}),be(()=>w.value,Re=>{Re?Oe(i.inputValue):(i.inputValue="",i.previousQuery=null,i.isBeforeHide=!0,i.menuVisibleOnFocus=!1)}),be(()=>i.options.entries(),()=>{jt&&(Ie(),e.defaultFirstOption&&(e.filterable||e.remote)&&fe.value&&Ce())},{flush:"post"}),be([()=>i.hoveringIndex,le],([Re])=>{st(Re)&&Re>-1?_.value=le.value[Re]||{}:_.value={},le.value.forEach(ut=>{ut.hover=_.value===ut})}),Qa(()=>{i.isBeforeHide||ae()});const Oe=Re=>{i.previousQuery===Re||$.value||(i.previousQuery=Re,e.filterable&&nt(e.filterMethod)?e.filterMethod(Re):e.filterable&&e.remote&&nt(e.remoteMethod)&&e.remoteMethod(Re),e.defaultFirstOption&&(e.filterable||e.remote)&&fe.value?ze(Ce):ze(He))},Ce=()=>{const Re=le.value.filter(Fn=>Fn.visible&&!Fn.disabled&&!Fn.states.groupDisabled),ut=Re.find(Fn=>Fn.created),$t=Re[0],Cn=le.value.map(Fn=>Fn.value);i.hoveringIndex=Ge(Cn,ut||$t)},Ie=()=>{if(e.multiple)i.selectedLabel="";else{const ut=ke(e.modelValue)?e.modelValue[0]:e.modelValue,$t=Pe(ut);i.selectedLabel=$t.currentLabel,i.selected=[$t];return}const Re=[];Dt(e.modelValue)||Es(e.modelValue).forEach(ut=>{Re.push(Pe(ut))}),i.selected=Re},Pe=Re=>{let ut;const $t=Tp(Re);for(let Zs=i.cachedOptions.size-1;Zs>=0;Zs--){const Bs=Z.value[Zs];if($t?Xn(Bs.value,e.valueKey)===Xn(Re,e.valueKey):Bs.value===Re){ut={index:le.value.filter(Ai=>!Ai.created).indexOf(Bs),value:Re,currentLabel:Bs.currentLabel,get isDisabled(){return Bs.isDisabled}};break}}if(ut)return ut;const Cn=$t?Re.label:Re??"";return{index:-1,value:Re,currentLabel:Cn}},He=()=>{const Re=i.selected.length;if(Re>0){const ut=i.selected[Re-1];i.hoveringIndex=le.value.findIndex($t=>yn(ut)===yn($t))}else i.hoveringIndex=-1},Qe=()=>{i.selectionWidth=Number.parseFloat(window.getComputedStyle(c.value).width)},rt=()=>{i.collapseItemWidth=b.value.getBoundingClientRect().width},De=()=>{var Re,ut;(ut=(Re=u.value)==null?void 0:Re.updatePopper)==null||ut.call(Re)},Ke=()=>{var Re,ut;(ut=(Re=d.value)==null?void 0:Re.updatePopper)==null||ut.call(Re)},et=()=>{i.inputValue.length>0&&!w.value&&(w.value=!0),Oe(i.inputValue)},Ft=Re=>{if(i.inputValue=Re.target.value,e.remote)x.value=!0,Ht();else return et()},Ht=Km(()=>{et(),x.value=!1},he),at=Re=>{On(e.modelValue,Re)||t(Pt,Re)},vt=Re=>sk(Re,ut=>{const $t=i.cachedOptions.get(ut);return!($t!=null&&$t.disabled)&&!($t!=null&&$t.states.groupDisabled)}),Et=Re=>{const ut=an(Re);if(e.multiple&&ut!==Te.delete&&Re.target.value.length<=0){const $t=Es(e.modelValue).slice(),Cn=vt($t);if(Cn<0)return;const Fn=$t[Cn];$t.splice(Cn,1),t(ct,$t),at($t),t("remove-tag",Fn)}},xe=(Re,ut)=>{const $t=i.selected.indexOf(ut);if($t>-1&&!J.value){const Cn=Es(e.modelValue).slice();Cn.splice($t,1),t(ct,Cn),at(Cn),t("remove-tag",ut.value)}Re.stopPropagation(),ve()},Ue=Re=>{Re.stopPropagation();const ut=e.multiple?[]:I.value;if(e.multiple)for(const $t of i.selected)$t.isDisabled&&ut.push($t.value);t(ct,ut),at(ut),i.hoveringIndex=-1,w.value=!1,t("clear"),ve()},we=Re=>{var ut;if(e.multiple){const $t=Es((ut=e.modelValue)!=null?ut:[]).slice(),Cn=Ge($t,Re);Cn>-1?$t.splice(Cn,1):(e.multipleLimit<=0||$t.length<e.multipleLimit)&&$t.push(Re.value),t(ct,$t),at($t),Re.created&&Oe(""),e.filterable&&!e.reserveKeyword&&(i.inputValue="")}else!On(e.modelValue,Re.value)&&t(ct,Re.value),at(Re.value),w.value=!1;ve(),!w.value&&ze(()=>{wt(Re)})},Ge=(Re,ut)=>Dt(ut)?-1:ft(ut.value)?Re.findIndex($t=>On(Xn($t,e.valueKey),yn(ut))):Re.indexOf(ut.value),wt=Re=>{var ut,$t,Cn,Fn,Zs;const Bs=ke(Re)?Re[Re.length-1]:Re;let Dr=null;if(!Un(Bs==null?void 0:Bs.value)){const Ai=le.value.filter(nf=>nf.value===Bs.value);Ai.length>0&&(Dr=Ai[0].$el)}if(u.value&&Dr){const Ai=(Fn=(Cn=($t=(ut=u.value)==null?void 0:ut.popperRef)==null?void 0:$t.contentRef)==null?void 0:Cn.querySelector)==null?void 0:Fn.call(Cn,`.${o.be("dropdown","wrap")}`);Ai&&N8(Ai,Dr)}(Zs=C.value)==null||Zs.handleScroll()},Ut=Re=>{i.options.set(Re.value,Re),i.cachedOptions.set(Re.value,Re)},gn=(Re,ut)=>{i.options.get(Re)===ut&&i.options.delete(Re)},bn=k(()=>{var Re,ut;return(ut=(Re=u.value)==null?void 0:Re.popperRef)==null?void 0:ut.contentRef}),Be=()=>{i.isBeforeHide=!1,ze(()=>{var Re;(Re=C.value)==null||Re.update(),wt(i.selected)})},ve=()=>{var Re;(Re=h.value)==null||Re.focus()},me=()=>{var Re;if(w.value){w.value=!1,ze(()=>{var ut;return(ut=h.value)==null?void 0:ut.blur()});return}(Re=h.value)==null||Re.blur()},Ze=Re=>{Ue(Re)},Je=Re=>{if(w.value=!1,O.value){const ut=new FocusEvent("blur",Re);ze(()=>N(ut))}},Ae=()=>{i.inputValue.length>0?i.inputValue="":w.value=!1},$e=Re=>{var ut;J.value||e.filterable&&w.value&&Re&&!((ut=v.value)!=null&&ut.contains(Re.target))||(t1&&(i.inputHovering=!0),i.menuVisibleOnFocus?i.menuVisibleOnFocus=!1:w.value=!w.value)},lt=()=>{if(!w.value)$e();else{const Re=le.value[i.hoveringIndex];Re&&!Re.isDisabled&&we(Re)}},yn=Re=>ft(Re.value)?Xn(Re.value,e.valueKey):Re.value,rn=k(()=>le.value.filter(Re=>Re.visible).every(Re=>Re.isDisabled)),Rn=k(()=>e.multiple?e.collapseTags?i.selected.slice(0,e.maxCollapseTags):i.selected:[]),Js=k(()=>e.multiple?e.collapseTags?i.selected.slice(e.maxCollapseTags):[]:[]),It=Re=>{if(!w.value){w.value=!0;return}if(!(i.options.size===0||fe.value===0||$.value)&&!rn.value){Re==="next"?(i.hoveringIndex++,i.hoveringIndex===i.options.size&&(i.hoveringIndex=0)):Re==="prev"&&(i.hoveringIndex--,i.hoveringIndex<0&&(i.hoveringIndex=i.options.size-1));const ut=le.value[i.hoveringIndex];(ut.isDisabled||!ut.visible)&&It(Re),ze(()=>wt(_.value))}},to=(Re,ut,$t,Cn)=>{for(let Fn=ut;Fn>=0&&Fn<Cn;Fn+=$t){const Zs=Re[Fn];if(!(Zs!=null&&Zs.isDisabled)&&(Zs!=null&&Zs.visible))return Fn}return null},Fa=(Re,ut)=>{var $t;const Cn=i.options.size;if(Cn===0)return;const Fn=mu(Re,0,Cn-1),Zs=le.value,Bs=ut==="up"?-1:1,Dr=($t=to(Zs,Fn,Bs,Cn))!=null?$t:to(Zs,Fn-Bs,-Bs,Cn);Dr!=null&&(i.hoveringIndex=Dr,ze(()=>wt(_.value)))},Jc=Re=>{const ut=an(Re);let $t=!0;switch(ut){case Te.up:It("prev");break;case Te.down:It("next");break;case Te.enter:case Te.numpadEnter:$.value||lt();break;case Te.esc:Ae();break;case Te.backspace:$t=!1,Et(Re);return;case Te.home:if(!w.value)return;Fa(0,"down");break;case Te.end:if(!w.value)return;Fa(i.options.size-1,"up");break;case Te.pageUp:if(!w.value)return;Fa(i.hoveringIndex-10,"up");break;case Te.pageDown:if(!w.value)return;Fa(i.hoveringIndex+10,"down");break;default:$t=!1;break}$t&&(Re.preventDefault(),Re.stopPropagation())},Zc=()=>{if(!c.value)return 0;const Re=window.getComputedStyle(c.value);return Number.parseFloat(Re.gap||"6px")},Qc=k(()=>{const Re=Zc(),ut=e.filterable?Re+Lb:0;return{maxWidth:`${b.value&&e.maxCollapseTags===1?i.selectionWidth-i.collapseItemWidth-Re-ut:i.selectionWidth-ut}px`}}),o4=k(()=>({maxWidth:`${i.selectionWidth}px`})),r4=Re=>{t("popup-scroll",Re)};wn(c,Qe),wn(Y,De),wn(g,Ke),wn(b,rt);let eu;return be(()=>_e.value,Re=>{Re?eu=wn(m,De).stop:(eu==null||eu(),eu=void 0),t("visible-change",Re)}),St(()=>{Ie()}),{inputId:R,contentId:a,nsSelect:o,nsInput:r,states:i,isFocused:O,expanded:w,optionsArray:le,hoverOption:_,selectSize:de,filteredOptionsCount:fe,updateTooltip:De,updateTagTooltip:Ke,debouncedOnInputChange:Ht,onInput:Ft,deletePrevTag:Et,deleteTag:xe,deleteSelected:Ue,handleOptionSelect:we,scrollToOption:wt,hasModelValue:V,shouldShowPlaceholder:Se,currentPlaceholder:Ne,mouseEnterEventName:Fe,needStatusIcon:z,showClearBtn:G,iconComponent:Q,iconReverse:K,validateState:ee,validateIcon:se,showNewOption:H,updateOptions:ae,collapseTagSize:ye,setSelected:Ie,selectDisabled:J,emptyText:pe,handleCompositionStart:L,handleCompositionUpdate:B,handleCompositionEnd:q,handleKeydown:Jc,onOptionCreate:Ut,onOptionDestroy:gn,handleMenuEnter:Be,focus:ve,blur:me,handleClearClick:Ze,handleClickOutside:Je,handleEsc:Ae,toggleMenu:$e,selectOption:lt,getValueKey:yn,navigateOptions:It,dropdownMenuVisible:_e,showTagList:Rn,collapseTagList:Js,popupScroll:r4,getOption:Pe,tagStyle:Qc,collapseTagStyle:o4,popperRef:bn,inputRef:h,tooltipRef:u,tagTooltipRef:d,prefixRef:p,suffixRef:v,selectRef:l,wrapperRef:Y,selectionRef:c,scrollbarRef:C,menuRef:m,tagMenuRef:g,collapseItemRef:b}};var tte=j({name:"ElOptions",setup(e,{slots:t}){const n=je(o2);let s=[];return()=>{var a,o;const r=(a=t.default)==null?void 0:a.call(t),i=[];function l(c){ke(c)&&c.forEach(u=>{var d,h,p,v;const m=(d=(u==null?void 0:u.type)||{})==null?void 0:d.name;m==="ElOptionGroup"?l(!Xe(u.children)&&!ke(u.children)&&nt((h=u.children)==null?void 0:h.default)?(p=u.children)==null?void 0:p.default():u.children):m==="ElOption"?i.push((v=u.props)==null?void 0:v.value):ke(u.children)&&l(u.children)})}return r.length&&l((o=r[0])==null?void 0:o.children),On(i,s)||(s=i,n&&(n.states.optionValues=i)),r}}});const qA=Me({name:String,id:String,modelValue:{type:re([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:rs,effect:{type:re(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:re([String,Object])},popperOptions:{type:re(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:re(Function)},filterMethod:{type:re(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:Zt.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:en,default:Jo},fitInputWidth:Boolean,suffixIcon:{type:en,default:Nr},tagType:{...Pl.type,default:"info"},tagEffect:{...Pl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:re(String),values:Ei,default:"bottom-start"},fallbackPlacements:{type:re(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:Zt.appendTo,options:{type:re(Array)},props:{type:re(Object),default:()=>i1},...Qd,...ya(["ariaLabel"])});vA.scroll;var nte=j({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Ee("select"),n=F(),s=Ct(),a=F([]);Mt(KA,Kt({...gs(e)}));const o=k(()=>a.value.some(c=>c.visible===!0)),r=c=>{var u;return c.type.name==="ElOption"&&!!((u=c.component)!=null&&u.proxy)},i=c=>{const u=Es(c),d=[];return u.forEach(h=>{var p;un(h)&&(r(h)?d.push(h.component.proxy):ke(h.children)&&h.children.length?d.push(...i(h.children)):(p=h.component)!=null&&p.subTree&&d.push(...i(h.component.subTree)))}),d},l=()=>{a.value=i(s.subTree)};return St(()=>{l()}),Um(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:o,ns:t}}});function ste(e,t,n,s,a,o){return gt((S(),P("ul",{ref:"groupRef",class:D(e.ns.be("group","wrap"))},[A("li",{class:D(e.ns.be("group","title"))},ge(e.label),3),A("li",null,[A("ul",{class:D(e.ns.b("group"))},[ue(e.$slots,"default")],2)])],2)),[[Bt,e.visible]])}var lw=is(nte,[["render",ste]]);const ql=new Map;if(jt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of ql.values())for(const{documentHandler:s}of n)s(t,e);e=void 0}})}function $S(e,t){let n=[];return ke(t.arg)?n=t.arg:Ya(t.arg)&&n.push(t.arg),function(s,a){const o=t.instance.popperRef,r=s.target,i=a==null?void 0:a.target,l=!t||!t.instance,c=!r||!i,u=e.contains(r)||e.contains(i),d=e===r,h=n.length&&n.some(v=>v==null?void 0:v.contains(r))||n.length&&n.includes(i),p=o&&(o.contains(r)||o.contains(i));l||c||u||d||h||p||t.value(s,a)}}const Wc={beforeMount(e,t){ql.has(e)||ql.set(e,[]),ql.get(e).push({documentHandler:$S(e,t),bindingFn:t.value})},updated(e,t){ql.has(e)||ql.set(e,[]);const n=ql.get(e),s=n.findIndex(o=>o.bindingFn===t.oldValue),a={documentHandler:$S(e,t),bindingFn:t.value};s>=0?n.splice(s,1,a):n.push(a)},unmounted(e){ql.delete(e)}};function cw(){const e=fn(),t=F(0),n=k(()=>({minWidth:`${Math.max(t.value,Lb)}px`}));return wn(e,()=>{var a,o;t.value=(o=(a=e.value)==null?void 0:a.getBoundingClientRect().width)!=null?o:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}const DS="ElSelect",Kp=new WeakMap,ate=e=>(...t)=>{var n,s;const a=t[0];if(!a||a.includes('Slot "default" invoked outside of the render function')&&((n=t[2])!=null&&n.includes("ElTreeSelect")))return;const o=(s=Kp.get(e))==null?void 0:s.originalWarnHandler;if(o){o(...t);return}console.warn(...t)},ote=e=>{let t=Kp.get(e);return t||(t={originalWarnHandler:e.config.warnHandler,handler:ate(e),count:0},Kp.set(e,t)),t};var rte=j({name:DS,componentName:DS,components:{ElSelectMenu:Qee,ElOption:iw,ElOptions:tte,ElOptionGroup:lw,ElTag:yl,ElScrollbar:Cr,ElTooltip:As,ElIcon:Ye},directives:{ClickOutside:Wc},props:qA,emits:[ct,Pt,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const s=Ct(),a=ote(s.appContext);a.count+=1,s.appContext.config.warnHandler=a.handler;const o=k(()=>{const{modelValue:C,multiple:w}=e,_=w?[]:void 0;return ke(C)?w?C:_:w?_:C}),r=Kt({...gs(e),modelValue:o}),i=ete(r,t),{calculatorRef:l,inputStyle:c}=cw(),{getLabel:u,getValue:d,getOptions:h,getDisabled:p}=a2(e),v=C=>({label:u(C),value:d(C),disabled:p(C)}),m=C=>C.reduce((w,_)=>(w.push(_),_.children&&_.children.length>0&&w.push(...m(_.children)),w),[]),g=C=>{Co(C||[]).forEach(_=>{var x;if(ft(_)&&(_.type.name==="ElOption"||_.type.name==="ElTree")){const E=_.type.name;if(E==="ElTree"){const T=((x=_.props)==null?void 0:x.data)||[];m(T).forEach(I=>{I.currentLabel=I.label||(ft(I.value)?"":I.value),i.onOptionCreate(I)})}else if(E==="ElOption"){const T={..._.props};T.currentLabel=T.label||(ft(T.value)?"":T.value),i.onOptionCreate(T)}}})};be(()=>{var C;return[(C=n.default)==null?void 0:C.call(n),o.value]},()=>{var C;e.persistent||i.expanded.value||(i.states.options.clear(),g((C=n.default)==null?void 0:C.call(n)))},{immediate:!0}),Mt(o2,Kt({props:r,states:i.states,selectRef:i.selectRef,optionsArray:i.optionsArray,setSelected:i.setSelected,handleOptionSelect:i.handleOptionSelect,onOptionCreate:i.onOptionCreate,onOptionDestroy:i.onOptionDestroy}));const b=k(()=>e.multiple?i.states.selected.map(C=>C.currentLabel):i.states.selectedLabel);return qt(()=>{const C=Kp.get(s.appContext);C&&(C.count-=1,C.count<=0&&(s.appContext.config.warnHandler=C.originalWarnHandler,Kp.delete(s.appContext)))}),{...i,modelValue:o,selectedLabel:b,calculatorRef:l,inputStyle:c,getLabel:u,getValue:d,getOptions:h,getDisabled:p,getOptionProps:v}}});const ite=["id","value","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],lte=["textContent"],cte={key:1};function ute(e,t,n,s,a,o){const r=qe("el-tag"),i=qe("el-tooltip"),l=qe("el-icon"),c=qe("el-option"),u=qe("el-option-group"),d=qe("el-options"),h=qe("el-scrollbar"),p=qe("el-select-menu"),v=l8("click-outside");return gt((S(),P("div",_t({ref:"selectRef",class:[e.nsSelect.b(),e.nsSelect.m(e.selectSize)]},{[dp(e.mouseEnterEventName)]:t[10]||(t[10]=m=>e.states.inputHovering=!0)},{onMouseleave:t[11]||(t[11]=m=>e.states.inputHovering=!1)}),[W(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[9]||(t[9]=m=>e.states.isBeforeHide=!1)},{default:X(()=>{var m;return[A("div",{ref:"wrapperRef",class:D([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[6]||(t[6]=it((...g)=>e.toggleMenu&&e.toggleMenu(...g),["prevent"]))},[e.$slots.prefix?(S(),P("div",{key:0,ref:"prefixRef",class:D(e.nsSelect.e("prefix"))},[ue(e.$slots,"prefix")],2)):ie("v-if",!0),A("div",{ref:"selectionRef",class:D([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?ue(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(S(!0),P(Ve,null,yt(e.showTagList,g=>(S(),P("div",{key:e.getValueKey(g),class:D(e.nsSelect.e("selected-item"))},[W(r,{closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:tt(e.tagStyle),onClose:b=>e.deleteTag(b,g)},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:g.index,label:g.currentLabel,value:g.value},()=>[We(ge(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(S(),ce(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported,"popper-options":e.popperOptions},{default:X(()=>[A("div",{ref:"collapseItemRef",class:D(e.nsSelect.e("selected-item"))},[W(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:tt(e.collapseTagStyle)},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))}," + "+ge(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:X(()=>[A("div",{ref:"tagMenuRef",class:D(e.nsSelect.e("selection"))},[(S(!0),P(Ve,null,yt(e.collapseTagList,g=>(S(),P("div",{key:e.getValueKey(g),class:D(e.nsSelect.e("selected-item"))},[W(r,{class:"in-tooltip",closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:b=>e.deleteTag(b,g)},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:g.index,label:g.currentLabel,value:g.value},()=>[We(ge(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported","popper-options"])):ie("v-if",!0)]):ie("v-if",!0),A("div",{class:D([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled)])},[A("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,type:"text",name:e.name,class:D([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:tt(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((m=e.hoverOption)==null?void 0:m.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[0]||(t[0]=(...g)=>e.handleKeydown&&e.handleKeydown(...g)),onCompositionstart:t[1]||(t[1]=(...g)=>e.handleCompositionStart&&e.handleCompositionStart(...g)),onCompositionupdate:t[2]||(t[2]=(...g)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...g)),onCompositionend:t[3]||(t[3]=(...g)=>e.handleCompositionEnd&&e.handleCompositionEnd(...g)),onInput:t[4]||(t[4]=(...g)=>e.onInput&&e.onInput(...g)),onClick:t[5]||(t[5]=it((...g)=>e.toggleMenu&&e.toggleMenu(...g),["stop"]))},null,46,ite),e.filterable?(S(),P("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:D(e.nsSelect.e("input-calculator")),textContent:ge(e.states.inputValue)},null,10,lte)):ie("v-if",!0)],2),e.shouldShowPlaceholder?(S(),P("div",{key:1,class:D([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ue(e.$slots,"label",{key:0,index:e.getOption(e.modelValue).index,label:e.currentPlaceholder,value:e.modelValue},()=>[A("span",null,ge(e.currentPlaceholder),1)]):(S(),P("span",cte,ge(e.currentPlaceholder),1))],2)):ie("v-if",!0)],2),A("div",{ref:"suffixRef",class:D(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(S(),ce(l,{key:0,class:D([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:X(()=>[(S(),ce(bt(e.iconComponent)))]),_:1},8,["class"])):ie("v-if",!0),e.showClearBtn&&e.clearIcon?(S(),ce(l,{key:1,class:D([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:X(()=>[(S(),ce(bt(e.clearIcon)))]),_:1},8,["class","onClick"])):ie("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(S(),ce(l,{key:2,class:D([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:X(()=>[(S(),ce(bt(e.validateIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)]}),content:X(()=>[W(p,{ref:"menuRef"},{default:X(()=>[e.$slots.header?(S(),P("div",{key:0,class:D(e.nsSelect.be("dropdown","header")),onClick:t[7]||(t[7]=it(()=>{},["stop"]))},[ue(e.$slots,"header")],2)):ie("v-if",!0),gt(W(h,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:D([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:X(()=>[e.showNewOption?(S(),ce(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):ie("v-if",!0),W(d,null,{default:X(()=>[ue(e.$slots,"default",{},()=>[(S(!0),P(Ve,null,yt(e.options,(m,g)=>{var b;return S(),P(Ve,{key:g},[(b=e.getOptions(m))!=null&&b.length?(S(),ce(u,{key:0,label:e.getLabel(m),disabled:e.getDisabled(m)},{default:X(()=>[(S(!0),P(Ve,null,yt(e.getOptions(m),C=>(S(),ce(c,_t({key:e.getValue(C)},{ref_for:!0},e.getOptionProps(C)),null,16))),128))]),_:2},1032,["label","disabled"])):(S(),ce(c,_t({key:1,ref_for:!0},e.getOptionProps(m)),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[Bt,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(S(),P("div",{key:1,class:D(e.nsSelect.be("dropdown","loading"))},[ue(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(S(),P("div",{key:2,class:D(e.nsSelect.be("dropdown","empty"))},[ue(e.$slots,"empty",{},()=>[A("span",null,ge(e.emptyText),1)])],2)):ie("v-if",!0),e.$slots.footer?(S(),P("div",{key:3,class:D(e.nsSelect.be("dropdown","footer")),onClick:t[8]||(t[8]=it(()=>{},["stop"]))},[ue(e.$slots,"footer")],2)):ie("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)),[[v,e.handleClickOutside,e.popperRef]])}var dte=is(rte,[["render",ute]]);const jc=pt(dte,{Option:iw,OptionGroup:lw}),l1=En(iw),fte=En(lw);var hte=j({name:"SelectController",__name:"select-controller",props:Vee,emits:zee,setup(e,{emit:t}){const n=e,s=t,a=Ee("calendar-select"),{t:o,lang:r}=Rt(),i=Array.from({length:12},(v,m)=>{const g=m+1,b=nt(n.formatter)?n.formatter(g,"month"):g;return{value:g,label:b}}),l=k(()=>n.date.year()),c=k(()=>n.date.month()+1),u=k(()=>{const v=[];for(let m=-10;m<10;m++){const g=l.value+m;if(g>0){const b=nt(n.formatter)?n.formatter(g,"year"):g;v.push({value:g,label:b})}}return v}),d=v=>{s("date-change",ht(new Date(v,c.value-1,1)).locale(r.value))},h=v=>{s("date-change",ht(new Date(l.value,v-1,1)).locale(r.value))},p=()=>{s("date-change","today")};return(v,m)=>(S(),P(Ve,null,[W(f(jc),{"model-value":l.value,size:"small",class:D(f(a).e("year")),"validate-event":!1,options:u.value,onChange:d},null,8,["model-value","class","options"]),W(f(jc),{"model-value":c.value,size:"small",class:D(f(a).e("month")),"validate-event":!1,options:f(i),onChange:h},null,8,["model-value","class","options"]),W(f(ps),{size:"small",onClick:p},{default:X(()=>[We(ge(f(o)("el.datepicker.today")),1)]),_:1})],64))}});const pte="ElCalendar";var vte=j({name:pte,__name:"calendar",props:xee,emits:Eee,setup(e,{expose:t,emit:n}){const s=Ee("calendar"),a=e,o=n,{calculateValidatedDateRange:r,date:i,pickDay:l,realSelectedDay:c,selectDate:u,validatedRange:d,handleDateChange:h}=Bee(a,o),{t:p}=Rt(),v=k(()=>{const m=`el.datepicker.month${i.value.format("M")}`;return`${i.value.year()} ${p("el.datepicker.year")} ${p(m)}`});return t({selectedDay:c,pickDay:l,selectDate:u,calculateValidatedDateRange:r}),(m,g)=>(S(),P("div",{class:D(f(s).b())},[A("div",{class:D(f(s).e("header"))},[ue(m.$slots,"header",{date:v.value},()=>[A("div",{class:D(f(s).e("title"))},ge(v.value),3),f(d).length===0&&e.controllerType==="button"?(S(),P("div",{key:0,class:D(f(s).e("button-group"))},[W(f(FA),null,{default:X(()=>[W(f(ps),{size:"small",onClick:g[0]||(g[0]=b=>f(u)("prev-month"))},{default:X(()=>[We(ge(f(p)("el.datepicker.prevMonth")),1)]),_:1}),W(f(ps),{size:"small",onClick:g[1]||(g[1]=b=>f(u)("today"))},{default:X(()=>[We(ge(f(p)("el.datepicker.today")),1)]),_:1}),W(f(ps),{size:"small",onClick:g[2]||(g[2]=b=>f(u)("next-month"))},{default:X(()=>[We(ge(f(p)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):f(d).length===0&&e.controllerType==="select"?(S(),P("div",{key:1,class:D(f(s).e("select-controller"))},[W(hte,{date:f(i),formatter:e.formatter,onDateChange:f(h)},null,8,["date","formatter","onDateChange"])],2)):ie("v-if",!0)])],2),f(d).length===0?(S(),P("div",{key:0,class:D(f(s).e("body"))},[W(NS,{date:f(i),"selected-day":f(c),onPick:f(l)},Na({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:X(b=>[ue(m.$slots,"date-cell",vl(ml(b)))]),key:"0"}:void 0]),1032,["date","selected-day","onPick"])],2)):(S(),P("div",{key:1,class:D(f(s).e("body"))},[(S(!0),P(Ve,null,yt(f(d),(b,C)=>(S(),ce(NS,{key:C,date:b[0],"selected-day":f(c),range:b,"hide-header":C!==0,onPick:f(l)},Na({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:X(w=>[ue(m.$slots,"date-cell",_t({ref_for:!0},w))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});const mte=pt(vte),gte=Me({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:re([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}});var bte=j({name:"ElCard",__name:"card",props:gte,setup(e){const t=y0("card"),n=Ee("card");return(s,a)=>{var o;return S(),P("div",{class:D([f(n).b(),f(n).is(`${e.shadow||((o=f(t))==null?void 0:o.shadow)||"always"}-shadow`)])},[s.$slots.header||e.header?(S(),P("div",{key:0,class:D([f(n).e("header"),e.headerClass])},[ue(s.$slots,"header",{},()=>[We(ge(e.header),1)])],2)):ie("v-if",!0),A("div",{class:D([f(n).e("body"),e.bodyClass]),style:tt(e.bodyStyle)},[ue(s.$slots,"default")],6),s.$slots.footer||e.footer?(S(),P("div",{key:1,class:D([f(n).e("footer"),e.footerClass])},[ue(s.$slots,"footer",{},()=>[We(ge(e.footer),1)])],2)):ie("v-if",!0)],2)}}});const yte=pt(bte),wte=Me({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}),_te={change:(e,t)=>[e,t].every(st)},GA=Symbol("carouselContextKey"),$y="ElCarouselItem",Cte=(e,t,n)=>Co(e.subTree).filter(o=>{var r;return un(o)&&((r=o.type)==null?void 0:r.name)===t&&!!o.component}).map(o=>o.component.uid).map(o=>n[o]).filter(o=>!!o),Ob=(e,t)=>{const n=fn({}),s=fn([]),a=new WeakMap,o=u=>{n.value[u.uid]=u,K2(n),St(()=>{const d=u.getVnode().el,h=d.parentNode;if(!a.has(h)){a.set(h,[]);const p=h.insertBefore.bind(h);h.insertBefore=(v,m)=>(a.get(h).some(b=>v===b||m===b)&&K2(n),p(v,m))}a.get(h).push(d)})},r=u=>{delete n.value[u.uid],K2(n);const d=u.getVnode().el,h=d.parentNode,p=a.get(h),v=p.indexOf(d);p.splice(v,1)},i=()=>{s.value=Cte(e,t,n.value)},l=u=>u.render();return{children:s,addChild:o,removeChild:r,ChildrenSorter:j({setup(u,{slots:d}){return()=>(i(),d.default?ot(l,{render:d.default}):null)}})}},FS=300,Ste=(e,t,n)=>{const{children:s,addChild:a,removeChild:o,ChildrenSorter:r}=Ob(Ct(),$y),i=Hn(),l=F(-1),c=F(null),u=F(!1),d=F(),h=F(0),p=F(!0),v=k(()=>e.arrow!=="never"&&!f(b)),m=k(()=>s.value.some(se=>se.props.label.toString().length>0)),g=k(()=>e.type==="card"),b=k(()=>e.direction==="vertical"),C=k(()=>e.height!=="auto"?{height:e.height}:{height:`${h.value}px`,overflow:"hidden"}),w=Lc(se=>{I(se)},FS,{trailing:!0}),_=Lc(se=>{O(se)},FS),x=se=>p.value?l.value<=1?se<=1:se>1:!0;function E(){c.value&&(clearInterval(c.value),c.value=null)}function T(){e.interval<=0||!e.autoplay||c.value||(c.value=setInterval(()=>R(),e.interval))}const R=()=>{l.value<s.value.length-1?l.value=l.value+1:e.loop&&(l.value=0)};function I(se){if(Xe(se)){const pe=s.value.filter(fe=>fe.props.name===se);pe.length>0&&(se=s.value.indexOf(pe[0]))}if(se=Number(se),Number.isNaN(se)||se!==Math.floor(se))return;const he=s.value.length,te=l.value;se<0?l.value=e.loop?he-1:0:se>=he?l.value=e.loop?0:he-1:l.value=se,te===l.value&&M(te),z()}function M(se){s.value.forEach((he,te)=>{he.translateItem(te,l.value,se)})}function $(se,he){var te,pe,fe,le;const Z=f(s),H=Z.length;if(H===0||!se.states.inStage)return!1;const ae=he+1,de=he-1,ye=H-1,_e=Z[ye].states.active,Se=Z[0].states.active,Ne=(pe=(te=Z[ae])==null?void 0:te.states)==null?void 0:pe.active,Fe=(le=(fe=Z[de])==null?void 0:fe.states)==null?void 0:le.active;return he===ye&&Se||Ne?"left":he===0&&_e||Fe?"right":!1}function L(){u.value=!0,e.pauseOnHover&&E()}function B(){u.value=!1,T()}function q(se){f(b)||s.value.forEach((he,te)=>{se===$(he,te)&&(he.states.hover=!0)})}function J(){f(b)||s.value.forEach(se=>{se.states.hover=!1})}function Y(se){l.value=se}function O(se){e.trigger==="hover"&&se!==l.value&&(l.value=se)}function N(){I(l.value-1)}function V(){I(l.value+1)}function z(){E(),e.pauseOnHover||T()}function G(se){e.height==="auto"&&(h.value=se)}function Q(){var se;const he=(se=i.default)==null?void 0:se.call(i);if(!he)return null;const pe=Co(he).filter(fe=>un(fe)&&fe.type.name===$y);return(pe==null?void 0:pe.length)===2&&e.loop&&!g.value?(p.value=!0,pe):(p.value=!1,null)}be(()=>l.value,(se,he)=>{M(he),p.value&&(se=se%2,he=he%2),he>-1&&t(Pt,se,he)});const K=k({get:()=>p.value?l.value%2:l.value,set:se=>l.value=se});be(()=>e.autoplay,se=>{se?T():E()}),be(()=>e.loop,()=>{I(l.value)}),be(()=>e.interval,()=>{z()});const ee=fn();return St(()=>{be(()=>s.value,()=>{s.value.length>0&&I(e.initialIndex)},{immediate:!0}),ee.value=wn(d.value,()=>{M()}),T()}),qt(()=>{E(),d.value&&ee.value&&ee.value.stop()}),Mt(GA,{root:d,isCardType:g,isVertical:b,items:s,loop:e.loop,cardScale:e.cardScale,addItem:a,removeItem:o,setActiveItem:I,setContainerHeight:G}),{root:d,activeIndex:l,exposeActiveIndex:K,arrowDisplay:v,hasLabel:m,hover:u,isCardType:g,items:s,isVertical:b,containerStyle:C,isItemsTwoLength:p,handleButtonEnter:q,handleButtonLeave:J,handleIndicatorClick:Y,handleMouseEnter:L,handleMouseLeave:B,setActiveItem:I,prev:N,next:V,PlaceholderItem:Q,isTwoLengthShow:x,ItemsSorter:r,throttledArrowClick:w,throttledIndicatorHover:_}},xte=["aria-label"],Ete=["aria-label"],kte=["onMouseenter","onClick"],Ate=["aria-label"],Tte={key:0},Mte={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},Pte="ElCarousel";var Rte=j({name:Pte,__name:"carousel",props:wte,emits:_te,setup(e,{expose:t,emit:n}){const s=e,a=n,{root:o,activeIndex:r,exposeActiveIndex:i,arrowDisplay:l,hasLabel:c,hover:u,isCardType:d,items:h,isVertical:p,containerStyle:v,handleButtonEnter:m,handleButtonLeave:g,handleIndicatorClick:b,handleMouseEnter:C,handleMouseLeave:w,setActiveItem:_,prev:x,next:E,PlaceholderItem:T,isTwoLengthShow:R,ItemsSorter:I,throttledArrowClick:M,throttledIndicatorHover:$}=Ste(s,a),L=Ee("carousel"),{t:B}=Rt(),q=k(()=>{const N=[L.b(),L.m(s.direction)];return f(d)&&N.push(L.m("card")),N}),J=k(()=>{const N=[L.e("indicators"),L.em("indicators",s.direction)];return f(c)&&N.push(L.em("indicators","labels")),s.indicatorPosition==="outside"&&N.push(L.em("indicators","outside")),f(p)&&N.push(L.em("indicators","right")),N});function Y(N){if(!s.motionBlur)return;const V=f(p)?`${L.namespace.value}-transitioning-vertical`:`${L.namespace.value}-transitioning`;N.currentTarget.classList.add(V)}function O(N){if(!s.motionBlur)return;const V=f(p)?`${L.namespace.value}-transitioning-vertical`:`${L.namespace.value}-transitioning`;N.currentTarget.classList.remove(V)}return t({activeIndex:i,setActiveItem:_,prev:x,next:E}),(N,V)=>(S(),P("div",{ref_key:"root",ref:o,class:D(q.value),onMouseenter:V[6]||(V[6]=it((...z)=>f(C)&&f(C)(...z),["stop"])),onMouseleave:V[7]||(V[7]=it((...z)=>f(w)&&f(w)(...z),["stop"]))},[f(l)?(S(),ce(bs,{key:0,name:"carousel-arrow-left",persisted:""},{default:X(()=>[gt(A("button",{type:"button",class:D([f(L).e("arrow"),f(L).em("arrow","left")]),"aria-label":f(B)("el.carousel.leftArrow"),onMouseenter:V[0]||(V[0]=z=>f(m)("left")),onMouseleave:V[1]||(V[1]=(...z)=>f(g)&&f(g)(...z)),onClick:V[2]||(V[2]=it(z=>f(M)(f(r)-1),["stop"]))},[W(f(Ye),null,{default:X(()=>[W(f(Go))]),_:1})],42,xte),[[Bt,(e.arrow==="always"||f(u))&&(e.loop||f(r)>0)]])]),_:1})):ie("v-if",!0),f(l)?(S(),ce(bs,{key:1,name:"carousel-arrow-right",persisted:""},{default:X(()=>[gt(A("button",{type:"button",class:D([f(L).e("arrow"),f(L).em("arrow","right")]),"aria-label":f(B)("el.carousel.rightArrow"),onMouseenter:V[3]||(V[3]=z=>f(m)("right")),onMouseleave:V[4]||(V[4]=(...z)=>f(g)&&f(g)(...z)),onClick:V[5]||(V[5]=it(z=>f(M)(f(r)+1),["stop"]))},[W(f(Ye),null,{default:X(()=>[W(f(Ds))]),_:1})],42,Ete),[[Bt,(e.arrow==="always"||f(u))&&(e.loop||f(r)<f(h).length-1)]])]),_:1})):ie("v-if",!0),A("div",{class:D(f(L).e("container")),style:tt(f(v)),onTransitionstart:Y,onTransitionend:O},[W(f(T)),ue(N.$slots,"default")],38),W(f(I),null,{default:X(()=>[e.indicatorPosition!=="none"?(S(),P("ul",{key:0,class:D(J.value)},[(S(!0),P(Ve,null,yt(f(h),(z,G)=>gt((S(),P("li",{key:G,class:D([f(L).e("indicator"),f(L).em("indicator",e.direction),f(L).is("active",G===f(r))]),onMouseenter:Q=>f($)(G),onClick:it(Q=>f(b)(G),["stop"])},[A("button",{class:D(f(L).e("button")),"aria-label":f(B)("el.carousel.indicator",{index:G+1})},[f(c)?(S(),P("span",Tte,ge(z.props.label),1)):ie("v-if",!0)],10,Ate)],42,kte)),[[Bt,f(R)(G)]])),128))],2)):ie("v-if",!0)]),_:1}),e.motionBlur?(S(),P("svg",Mte,[...V[8]||(V[8]=[A("defs",null,[A("filter",{id:"elCarouselHorizontal"},[A("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),A("filter",{id:"elCarouselVertical"},[A("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)])])):ie("v-if",!0)],34))}});const Ite=Me({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Lte=e=>{const t=je(GA),n=Ct(),s=F(),a=F(!1),o=F(0),r=F(1),i=F(!1),l=F(!1),c=F(!1),u=F(!1),{isCardType:d,isVertical:h,cardScale:p}=t;function v(_,x,E){const T=E-1,R=x-1,I=x+1,M=E/2;return x===0&&_===T?-1:x===T&&_===0?E:_<R&&x-_>=M?E+1:_>I&&_-x>=M?-2:_}function m(_,x){var E,T;const R=f(h)?((E=t.root.value)==null?void 0:E.offsetHeight)||0:((T=t.root.value)==null?void 0:T.offsetWidth)||0;return c.value?R*((2-p)*(_-x)+1)/4:_<x?-(1+p)*R/4:(3+p)*R/4}function g(_,x,E){const T=t.root.value;return T?((E?T.offsetHeight:T.offsetWidth)||0)*(_-x):0}const b=(_,x,E)=>{var T;const R=f(d),I=(T=t.items.value.length)!=null?T:Number.NaN,M=_===x;!R&&!Dt(E)&&(u.value=M||_===E),!M&&I>2&&t.loop&&(_=v(_,x,I));const $=f(h);i.value=M,R?(c.value=Math.round(Math.abs(_-x))<=1,o.value=m(_,x),r.value=f(i)?1:p):o.value=g(_,x,$),l.value=!0,M&&s.value&&t.setContainerHeight(s.value.offsetHeight)};function C(){if(t&&f(d)){const _=t.items.value.findIndex(({uid:x})=>x===n.uid);t.setActiveItem(_)}}const w={props:e,states:Kt({hover:a,translate:o,scale:r,active:i,ready:l,inStage:c,animating:u}),uid:n.uid,getVnode:()=>n.vnode,translateItem:b};return t.addItem(w),qt(()=>{t.removeItem(w)}),{carouselItemRef:s,active:i,animating:u,hover:a,inStage:c,isVertical:h,translate:o,isCardType:d,scale:r,ready:l,handleItemClick:C}};var YA=j({name:$y,__name:"carousel-item",props:Ite,setup(e){const t=e,n=Ee("carousel"),{carouselItemRef:s,active:a,animating:o,hover:r,inStage:i,isVertical:l,translate:c,isCardType:u,scale:d,ready:h,handleItemClick:p}=Lte(t),v=k(()=>[n.e("item"),n.is("active",a.value),n.is("in-stage",i.value),n.is("hover",r.value),n.is("animating",o.value),{[n.em("item","card")]:u.value,[n.em("item","card-vertical")]:u.value&&l.value}]),m=k(()=>{const b=`${`translate${f(l)?"Y":"X"}`}(${f(c)}px)`,C=`scale(${f(d)})`;return{transform:[b,C].join(" ")}});return(g,b)=>gt((S(),P("div",{ref_key:"carouselItemRef",ref:s,class:D(v.value),style:tt(m.value),onClick:b[0]||(b[0]=(...C)=>f(p)&&f(p)(...C))},[f(u)?gt((S(),P("div",{key:0,class:D(f(n).e("mask"))},null,2)),[[Bt,!f(a)]]):ie("v-if",!0),ue(g.$slots,"default")],6)),[[Bt,f(h)]])}});const Ote=pt(Rte,{CarouselItem:YA}),Nte=En(YA),XA=Me({modelValue:{type:re([Number,String,Array,Object])},options:{type:re(Array),default:()=>[]},props:{type:re(Object),default:()=>({})}}),$te={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Yt,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},Dte=Me({...XA,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),BS=e=>!0,Fte={[ct]:BS,[Pt]:BS,close:()=>!0,"expand-change":e=>e},Bte=e=>k(()=>({...$te,...e.props})),Vte=Me({...XA,size:rs,placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:en,default:Jo},filterable:Boolean,filterMethod:{type:re(Function),default:(e,t)=>e.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:re(Function),default:()=>!0},placement:{type:re(String),values:Ei,default:"bottom-start"},fallbackPlacements:{type:re(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:Zt.popperClass,popperStyle:Zt.popperStyle,teleported:Zt.teleported,effect:{type:re(String),default:"light"},tagType:{...Pl.type,default:"info"},tagEffect:{...Pl.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},...Qd}),VS=e=>!0,zte={[ct]:VS,[Pt]:VS,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Qt(e),expandChange:e=>!!e,removeTag:e=>!!e},JA={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:rs,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...ya(["ariaControls"])},ZA={[ct]:e=>Xe(e)||st(e)||Qt(e),change:e=>Xe(e)||st(e)||Qt(e)},S0=Symbol("checkboxGroupContextKey"),Hte=({model:e,isChecked:t})=>{const n=je(S0,void 0),s=je(ef,void 0),a=k(()=>{var r,i;const l=(r=n==null?void 0:n.max)==null?void 0:r.value,c=(i=n==null?void 0:n.min)==null?void 0:i.value;return!Dt(l)&&e.value.length>=l&&!t.value||!Dt(c)&&e.value.length<=c&&t.value});return{isDisabled:Pn(k(()=>{var r,i;return n===void 0?(r=s==null?void 0:s.disabled)!=null?r:a.value:((i=n.disabled)==null?void 0:i.value)||a.value})),isLimitDisabled:a}},Wte=(e,{model:t,isLimitExceeded:n,hasOwnLabel:s,isDisabled:a,isLabeledByFormItem:o})=>{const r=je(S0,void 0),{formItem:i}=Ms(),{emit:l}=Ct();function c(v){var m,g,b,C;return[!0,e.trueValue,e.trueLabel].includes(v)?(g=(m=e.trueValue)!=null?m:e.trueLabel)!=null?g:!0:(C=(b=e.falseValue)!=null?b:e.falseLabel)!=null?C:!1}function u(v,m){l(Pt,c(v),m)}function d(v){if(n.value)return;const m=v.target;l(Pt,c(m.checked),v)}async function h(v){n.value||!s.value&&!a.value&&o.value&&(v.composedPath().some(b=>b.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await ze(),u(t.value,v)))}const p=k(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return be(()=>e.modelValue,()=>{p.value&&(i==null||i.validate("change").catch(v=>void 0))}),{handleChange:d,onClickRoot:h}},jte=e=>{const t=F(!1),{emit:n}=Ct(),s=je(S0,void 0),a=k(()=>Dt(s)===!1),o=F(!1),r=k({get(){var i,l;return a.value?(i=s==null?void 0:s.modelValue)==null?void 0:i.value:(l=e.modelValue)!=null?l:t.value},set(i){var l,c;a.value&&ke(i)?(o.value=((l=s==null?void 0:s.max)==null?void 0:l.value)!==void 0&&i.length>(s==null?void 0:s.max.value)&&i.length>r.value.length,o.value===!1&&((c=s==null?void 0:s.changeEvent)==null||c.call(s,i))):(n(ct,i),t.value=i)}});return{model:r,isGroup:a,isLimitExceeded:o}},Kte=(e,t,{model:n})=>{const s=je(S0,void 0),a=F(!1),o=k(()=>Xa(e.value)?e.label:e.value),r=k(()=>{const u=n.value;return Qt(u)?u:ke(u)?ft(o.value)?u.map(dn).some(d=>On(d,o.value)):u.map(dn).includes(o.value):u!=null?u===e.trueValue||u===e.trueLabel:!!u}),i=ns(k(()=>{var u;return(u=s==null?void 0:s.size)==null?void 0:u.value}),{prop:!0}),l=ns(k(()=>{var u;return(u=s==null?void 0:s.size)==null?void 0:u.value})),c=k(()=>!!t.default||!Xa(o.value));return{checkboxButtonSize:i,isChecked:r,isFocused:a,checkboxSize:l,hasOwnLabel:c,actualValue:o}},QA=(e,t)=>{const{formItem:n}=Ms(),{model:s,isGroup:a,isLimitExceeded:o}=jte(e),{isFocused:r,isChecked:i,checkboxButtonSize:l,checkboxSize:c,hasOwnLabel:u,actualValue:d}=Kte(e,t,{model:s}),{isDisabled:h}=Hte({model:s,isChecked:i}),{inputId:p,isLabeledByFormItem:v}=Mo(e,{formItemContext:n,disableIdGeneration:u,disableIdManagement:a}),{handleChange:m,onClickRoot:g}=Wte(e,{model:s,isLimitExceeded:o,hasOwnLabel:u,isDisabled:h,isLabeledByFormItem:v});return(()=>{function C(){var w,_;ke(s.value)&&!s.value.includes(d.value)?s.value.push(d.value):s.value=(_=(w=e.trueValue)!=null?w:e.trueLabel)!=null?_:!0}e.checked&&C()})(),vi({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},k(()=>a.value&&Xa(e.value))),vi({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},k(()=>!!e.trueLabel)),vi({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},k(()=>!!e.falseLabel)),{inputId:p,isLabeledByFormItem:v,isChecked:i,isDisabled:h,isFocused:r,checkboxButtonSize:l,checkboxSize:c,hasOwnLabel:u,model:s,actualValue:d,handleChange:m,onClickRoot:g}},Ute=["id","indeterminate","name","tabindex","disabled"];var eT=j({name:"ElCheckbox",__name:"checkbox",props:JA,emits:ZA,setup(e){const t=e,n=Hn(),{inputId:s,isLabeledByFormItem:a,isChecked:o,isDisabled:r,isFocused:i,checkboxSize:l,hasOwnLabel:c,model:u,actualValue:d,handleChange:h,onClickRoot:p}=QA(t,n),v=k(()=>{var C,w,_,x;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(w=(C=t.trueValue)!=null?C:t.trueLabel)!=null?w:!0,"false-value":(x=(_=t.falseValue)!=null?_:t.falseLabel)!=null?x:!1}:{value:d.value}}),m=Ee("checkbox"),g=k(()=>[m.b(),m.m(l.value),m.is("disabled",r.value),m.is("bordered",t.border),m.is("checked",o.value)]),b=k(()=>[m.e("input"),m.is("disabled",r.value),m.is("checked",o.value),m.is("indeterminate",t.indeterminate),m.is("focus",i.value)]);return(C,w)=>(S(),ce(bt(!f(c)&&f(a)?"span":"label"),{for:!f(c)&&f(a)?null:f(s),class:D(g.value),"aria-controls":e.indeterminate?e.ariaControls:null,"aria-checked":e.indeterminate?"mixed":void 0,"aria-label":e.ariaLabel,onClick:f(p)},{default:X(()=>[A("span",{class:D(b.value)},[gt(A("input",_t({id:f(s),"onUpdate:modelValue":w[0]||(w[0]=_=>vn(u)?u.value=_:null),class:f(m).e("original"),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:f(r)},v.value,{onChange:w[1]||(w[1]=(..._)=>f(h)&&f(h)(..._)),onFocus:w[2]||(w[2]=_=>i.value=!0),onBlur:w[3]||(w[3]=_=>i.value=!1),onClick:w[4]||(w[4]=it(()=>{},["stop"]))}),null,16,Ute),[[hE,f(u)]]),A("span",{class:D(f(m).e("inner"))},null,2)],2),f(c)?(S(),P("span",{key:0,class:D(f(m).e("label"))},[ue(C.$slots,"default"),C.$slots.default?ie("v-if",!0):(S(),P(Ve,{key:0},[We(ge(e.label),1)],64))],2)):ie("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}});const qte=["name","tabindex","disabled"];var uw=j({name:"ElCheckboxButton",__name:"checkbox-button",props:JA,emits:ZA,setup(e){const t=e,n=Hn(),{isFocused:s,isChecked:a,isDisabled:o,checkboxButtonSize:r,model:i,actualValue:l,handleChange:c}=QA(t,n),u=k(()=>{var m,g,b,C;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(g=(m=t.trueValue)!=null?m:t.trueLabel)!=null?g:!0,"false-value":(C=(b=t.falseValue)!=null?b:t.falseLabel)!=null?C:!1}:{value:l.value}}),d=je(S0,void 0),h=Ee("checkbox"),p=k(()=>{var m,g,b,C;const w=(g=(m=d==null?void 0:d.fill)==null?void 0:m.value)!=null?g:"";return{backgroundColor:w,borderColor:w,color:(C=(b=d==null?void 0:d.textColor)==null?void 0:b.value)!=null?C:"",boxShadow:w?`-1px 0 0 0 ${w}`:void 0}}),v=k(()=>[h.b("button"),h.bm("button",r.value),h.is("disabled",o.value),h.is("checked",a.value),h.is("focus",s.value)]);return(m,g)=>(S(),P("label",{class:D(v.value)},[gt(A("input",_t({"onUpdate:modelValue":g[0]||(g[0]=b=>vn(i)?i.value=b:null),class:f(h).be("button","original"),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:f(o)},u.value,{onChange:g[1]||(g[1]=(...b)=>f(c)&&f(c)(...b)),onFocus:g[2]||(g[2]=b=>s.value=!0),onBlur:g[3]||(g[3]=b=>s.value=!1),onClick:g[4]||(g[4]=it(()=>{},["stop"]))}),null,16,qte),[[hE,f(i)]]),m.$slots.default||e.label?(S(),P("span",{key:0,class:D(f(h).be("button","inner")),style:tt(f(a)?p.value:void 0)},[ue(m.$slots,"default",{},()=>[We(ge(e.label),1)])],6)):ie("v-if",!0)],2))}});const Gte=Me({modelValue:{type:re(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:rs,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:re(Array)},props:{type:re(Object),default:()=>tT},type:{type:String,values:["checkbox","button"],default:"checkbox"},...ya(["ariaLabel"])}),Yte={[ct]:e=>ke(e),change:e=>ke(e)},tT={label:"label",value:"value",disabled:"disabled"};var nT=j({name:"ElCheckboxGroup",__name:"checkbox-group",props:Gte,emits:Yte,setup(e,{emit:t}){const n=e,s=t,a=Ee("checkbox"),o=Pn(),{formItem:r}=Ms(),{inputId:i,isLabeledByFormItem:l}=Mo(n,{formItemContext:r}),c=async v=>{s(ct,v),await ze(),s(Pt,v)},u=k({get(){return n.modelValue},set(v){c(v)}}),d=k(()=>({...tT,...n.props})),h=v=>{const{label:m,value:g,disabled:b}=d.value,C={label:v[m],value:v[g],disabled:v[b]};return{...Wm(v,[m,g,b]),...C}},p=k(()=>n.type==="button"?uw:eT);return Mt(S0,{...El(gs(n),["size","min","max","validateEvent","fill","textColor"]),disabled:o,modelValue:u,changeEvent:c}),be(()=>n.modelValue,(v,m)=>{n.validateEvent&&!On(v,m)&&(r==null||r.validate("change").catch(g=>void 0))}),(v,m)=>{var g;return S(),ce(bt(e.tag),{id:f(i),class:D(f(a).b("group")),role:"group","aria-label":f(l)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":f(l)?(g=f(r))==null?void 0:g.labelId:void 0},{default:X(()=>[ue(v.$slots,"default",{},()=>[(S(!0),P(Ve,null,yt(e.options,(b,C)=>(S(),ce(bt(p.value),_t({key:C},{ref_for:!0},h(b)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});const Sr=pt(eT,{CheckboxButton:uw,CheckboxGroup:nT}),Xte=En(uw),dw=En(nT),sT=Me({modelValue:{type:[String,Number,Boolean],default:void 0},size:rs,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}}),Jte=Me({...sT,border:Boolean}),aT={[ct]:e=>Xe(e)||st(e)||Qt(e),[Pt]:e=>Xe(e)||st(e)||Qt(e)},oT=Symbol("radioGroupKey"),rT=(e,t)=>{const n=F(),s=je(oT,void 0),a=k(()=>!!s),o=k(()=>Xa(e.value)?e.label:e.value),r=k({get(){return a.value?s.modelValue:e.modelValue},set(d){a.value?s.changeEvent(d):t&&t(ct,d),n.value.checked=e.modelValue===o.value}}),i=ns(k(()=>s==null?void 0:s.size)),l=Pn(k(()=>s==null?void 0:s.disabled)),c=F(!1),u=k(()=>l.value||a.value&&r.value!==o.value?-1:0);return vi({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},k(()=>a.value&&Xa(e.value))),{radioRef:n,isGroup:a,radioGroup:s,focus:c,size:i,disabled:l,tabIndex:u,modelValue:r,actualValue:o}},Zte=["value","name","disabled","checked"];var iT=j({name:"ElRadio",__name:"radio",props:Jte,emits:aT,setup(e,{emit:t}){const n=e,s=t,a=Ee("radio"),{radioRef:o,radioGroup:r,focus:i,size:l,disabled:c,modelValue:u,actualValue:d}=rT(n,s);function h(){ze(()=>s(Pt,u.value))}return(p,v)=>{var m;return S(),P("label",{class:D([f(a).b(),f(a).is("disabled",f(c)),f(a).is("focus",f(i)),f(a).is("bordered",e.border),f(a).is("checked",f(u)===f(d)),f(a).m(f(l))])},[A("span",{class:D([f(a).e("input"),f(a).is("disabled",f(c)),f(a).is("checked",f(u)===f(d))])},[gt(A("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":v[0]||(v[0]=g=>vn(u)?u.value=g:null),class:D(f(a).e("original")),value:f(d),name:e.name||((m=f(r))==null?void 0:m.name),disabled:f(c),checked:f(u)===f(d),type:"radio",onFocus:v[1]||(v[1]=g=>i.value=!0),onBlur:v[2]||(v[2]=g=>i.value=!1),onChange:h,onClick:v[3]||(v[3]=it(()=>{},["stop"]))},null,42,Zte),[[pE,f(u)]]),A("span",{class:D(f(a).e("inner"))},null,2)],2),A("span",{class:D(f(a).e("label")),onKeydown:v[4]||(v[4]=it(()=>{},["stop"]))},[ue(p.$slots,"default",{},()=>[We(ge(e.label),1)])],34)],2)}}});const Qte=Me({...sT}),ene=["value","name","disabled"];var fw=j({name:"ElRadioButton",__name:"radio-button",props:Qte,setup(e){const t=e,n=Ee("radio"),{radioRef:s,focus:a,size:o,disabled:r,modelValue:i,radioGroup:l,actualValue:c}=rT(t),u=k(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(d,h)=>{var p;return S(),P("label",{class:D([f(n).b("button"),f(n).is("active",f(i)===f(c)),f(n).is("disabled",f(r)),f(n).is("focus",f(a)),f(n).bm("button",f(o))])},[gt(A("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":h[0]||(h[0]=v=>vn(i)?i.value=v:null),class:D(f(n).be("button","original-radio")),value:f(c),type:"radio",name:e.name||((p=f(l))==null?void 0:p.name),disabled:f(r),onFocus:h[1]||(h[1]=v=>a.value=!0),onBlur:h[2]||(h[2]=v=>a.value=!1),onClick:h[3]||(h[3]=it(()=>{},["stop"]))},null,42,ene),[[pE,f(i)]]),A("span",{class:D(f(n).be("button","inner")),style:tt(f(i)===f(c)?u.value:{}),onKeydown:h[4]||(h[4]=it(()=>{},["stop"]))},[ue(d.$slots,"default",{},()=>[We(ge(e.label),1)])],38)],2)}}});const lT={label:"label",value:"value",disabled:"disabled"},tne=Me({id:{type:String,default:void 0},size:rs,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:re(Array)},props:{type:re(Object),default:()=>lT},type:{type:String,values:["radio","button"],default:"radio"},...ya(["ariaLabel"])}),nne=aT,sne=["id","aria-label","aria-labelledby"];var cT=j({name:"ElRadioGroup",__name:"radio-group",props:tne,emits:nne,setup(e,{emit:t}){const n=e,s=t,a=Ee("radio"),o=Fs(),r=F(),{formItem:i}=Ms(),{inputId:l,isLabeledByFormItem:c}=Mo(n,{formItemContext:i}),u=m=>{s(ct,m),ze(()=>s(Pt,m))};St(()=>{const m=r.value.querySelectorAll("[type=radio]"),g=m[0];!Array.from(m).some(b=>b.checked)&&g&&(g.tabIndex=0)});const d=k(()=>n.name||o.value),h=k(()=>({...lT,...n.props})),p=m=>{const{label:g,value:b,disabled:C}=h.value,w={label:m[g],value:m[b],disabled:m[C]};return{...Wm(m,[g,b,C]),...w}},v=k(()=>n.type==="button"?fw:iT);return Mt(oT,Kt({...gs(n),changeEvent:u,name:d})),be(()=>n.modelValue,(m,g)=>{n.validateEvent&&!On(m,g)&&(i==null||i.validate("change").catch(b=>void 0))}),(m,g)=>(S(),P("div",{id:f(l),ref_key:"radioGroupRef",ref:r,class:D(f(a).b("group")),role:"radiogroup","aria-label":f(c)?void 0:e.ariaLabel||"radio-group","aria-labelledby":f(c)?f(i).labelId:void 0},[ue(m.$slots,"default",{},()=>[(S(!0),P(Ve,null,yt(e.options,(b,C)=>(S(),ce(bt(v.value),_t({key:C},{ref_for:!0},p(b)),null,16))),128))])],10,sne))}});const uT=pt(iT,{RadioButton:fw,RadioGroup:cT}),ane=En(cT),one=En(fw),Nb=Symbol();function rne(e){return!!(ke(e)?e.every(({type:t})=>t===Kn):(e==null?void 0:e.type)===Kn)}var ine=j({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=Ee("cascader-node"),{renderLabelFn:n}=je(Nb),{node:s}=e,{data:a,label:o}=s,r=()=>{const i=n==null?void 0:n({node:s,data:a});return rne(i)?o:i??o};return()=>W("span",{class:t.e("label")},[r()])}});const lne=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"];var cne=j({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,s=t,a=je(Nb),o=Ee("cascader-node"),r=k(()=>a.isHoverMenu),i=k(()=>a.config.multiple),l=k(()=>a.config.checkStrictly),c=k(()=>a.config.showPrefix),u=k(()=>{var I;return(I=a.checkedNodes[0])==null?void 0:I.uid}),d=k(()=>n.node.isDisabled),h=k(()=>n.node.isLeaf),p=k(()=>l.value&&!h.value||!d.value),v=k(()=>g(a.expandingNode)),m=k(()=>l.value&&a.checkedNodes.some(g)),g=I=>{var M;const{level:$,uid:L}=n.node;return((M=I==null?void 0:I.pathNodes[$-1])==null?void 0:M.uid)===L},b=()=>{v.value||a.expandNode(n.node)},C=I=>{const{node:M}=n;I!==M.checked&&a.handleCheckChange(M,I)},w=()=>{a.lazyLoad(n.node,()=>{h.value||b()})},_=I=>{r.value&&(x(),!h.value&&s("expand",I))},x=()=>{const{node:I}=n;!p.value||I.loading||(I.loaded?b():w())},E=()=>{h.value&&!d.value&&!l.value&&!i.value?R(!0):(a.config.checkOnClickNode&&(i.value||l.value)||h.value&&a.config.checkOnClickLeaf)&&!d.value?T(!n.node.checked):r.value||x()},T=I=>{l.value?(C(I),n.node.loaded&&b()):R(I)},R=I=>{n.node.loaded?(C(I),!l.value&&b()):w()};return(I,M)=>(S(),P("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!h.value,"aria-owns":h.value?void 0:e.menuId,"aria-expanded":v.value,tabindex:p.value?-1:void 0,class:D([f(o).b(),f(o).is("selectable",l.value),f(o).is("active",e.node.checked),f(o).is("disabled",!p.value),v.value&&"in-active-path",m.value&&"in-checked-path"]),onMouseenter:_,onFocus:_,onClick:E},[ie(" prefix "),i.value&&c.value?(S(),ce(f(Sr),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:d.value,onClick:M[0]||(M[0]=it(()=>{},["stop"])),"onUpdate:modelValue":T},null,8,["model-value","indeterminate","disabled"])):l.value&&c.value?(S(),ce(f(uT),{key:1,"model-value":u.value,label:e.node.uid,disabled:d.value,"onUpdate:modelValue":T,onClick:M[1]||(M[1]=it(()=>{},["stop"]))},{default:X(()=>[ie(`
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),M[2]||(M[2]=A("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):h.value&&e.node.checked?(S(),ce(f(Ye),{key:2,class:D(f(o).e("prefix"))},{default:X(()=>[W(f(_0))]),_:1},8,["class"])):ie("v-if",!0),ie(" content "),W(f(ine),{node:e.node},null,8,["node"]),ie(" postfix "),h.value?ie("v-if",!0):(S(),P(Ve,{key:3},[e.node.loading?(S(),ce(f(Ye),{key:0,class:D([f(o).is("loading"),f(o).e("postfix")])},{default:X(()=>[W(f(Ao))]),_:1},8,["class"])):(S(),ce(f(Ye),{key:1,class:D(["arrow-right",f(o).e("postfix")])},{default:X(()=>[W(f(Ds))]),_:1},8,["class"]))],64))],42,lne))}}),une=j({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=Ct(),s=Ee("cascader-menu"),{t:a}=Rt(),o=Fs();let r,i;const l=je(Nb),c=F(),u=k(()=>!t.nodes.length),d=k(()=>!l.initialLoaded),h=k(()=>`${o.value}-${t.index}`),p=b=>{r=b.target},v=b=>{var C;if(!(!l.isHoverMenu||!r||!c.value))if(r.contains(b.target)){m();const w=n.vnode.el,{left:_}=w.getBoundingClientRect(),{offsetWidth:x,offsetHeight:E}=w,T=b.clientX-_,R=r.offsetTop,I=R+r.offsetHeight,M=((C=w.querySelector(`.${s.e("wrap")}`))==null?void 0:C.scrollTop)||0;c.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${R} L${x} ${M} V${R} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${I} L${x} ${E+M} V${I} Z" />
`}else i||(i=window.setTimeout(g,l.config.hoverThreshold))},m=()=>{i&&(clearTimeout(i),i=void 0)},g=()=>{c.value&&(c.value.innerHTML="",m())};return(b,C)=>(S(),ce(f(Cr),{key:h.value,tag:"ul",role:"menu",class:D(f(s).b()),"wrap-class":f(s).e("wrap"),"view-class":[f(s).e("list"),f(s).is("empty",u.value)],onMousemove:v,onMouseleave:g},{default:X(()=>{var w;return[(S(!0),P(Ve,null,yt(e.nodes,_=>(S(),ce(cne,{key:_.uid,node:_,"menu-id":h.value,onExpand:p},null,8,["node","menu-id"]))),128)),d.value?(S(),P("div",{key:0,class:D(f(s).e("empty-text"))},[W(f(Ye),{size:"14",class:D(f(s).is("loading"))},{default:X(()=>[W(f(Ao))]),_:1},8,["class"]),We(" "+ge(f(a)("el.cascader.loading")),1)],2)):u.value?(S(),P("div",{key:1,class:D(f(s).e("empty-text"))},[ue(b.$slots,"empty",{},()=>[We(ge(f(a)("el.cascader.noData")),1)])],2)):(w=f(l))!=null&&w.isHoverMenu?(S(),P(Ve,{key:2},[ie(" eslint-disable vue/html-self-closing "),(S(),P("svg",{ref_key:"hoverZone",ref:c,class:D(f(s).e("hover-zone"))},null,2))],2112)):ie("v-if",!0),ie(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}),dne=Object.defineProperty,fne=(e,t,n)=>t in e?dne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Va=(e,t,n)=>fne(e,typeof t!="symbol"?t+"":t,n);let hne=0;const pne=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let Dy=class Fy{constructor(t,n,s,a=!1){this.data=t,this.config=n,this.parent=s,this.root=a,Va(this,"uid",hne++),Va(this,"level"),Va(this,"value"),Va(this,"label"),Va(this,"pathNodes"),Va(this,"pathValues"),Va(this,"pathLabels"),Va(this,"childrenData"),Va(this,"children"),Va(this,"text"),Va(this,"loaded"),Va(this,"checked",!1),Va(this,"indeterminate",!1),Va(this,"loading",!1);const{value:o,label:r,children:i}=n,l=t[i],c=pne(this);this.level=a?0:s?s.level+1:1,this.value=t[o],this.label=t[r],this.pathNodes=c,this.pathValues=c.map(u=>u.value),this.pathLabels=c.map(u=>u.label),this.childrenData=l,this.children=(l||[]).map(u=>new Fy(u,n,this)),this.loaded=!n.lazy||this.isLeaf||!Pa(l),this.text=""}get isDisabled(){const{data:t,parent:n,config:s}=this,{disabled:a,checkStrictly:o}=s;return(nt(a)?a(t,this):!!t[a])||!o&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:s,loaded:a}=this,{lazy:o,leaf:r}=n,i=nt(r)?r(t,this):t[r];return Dt(i)?o&&!a?!1:!(ke(s)&&s.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:s}=this,a=new Fy(t,this.config,this);return ke(n)?n.push(t):this.childrenData=[t],s.push(a),a}calcText(t,n){const s=t?this.pathLabels.join(n):this.label;return this.text=s,s}broadcast(t){this.children.forEach(n=>{var s;n&&(n.broadcast(t),(s=n.onParentCheck)==null||s.call(n,t))})}emit(){var t;const{parent:n}=this;n&&((t=n.onChildCheck)==null||t.call(n),n.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(a=>!a.isDisabled),s=n.length?n.every(a=>a.checked):!1;this.setCheckState(s)}setCheckState(t){const n=this.children.length,s=this.children.reduce((a,o)=>{const r=o.checked?1:o.indeterminate?.5:0;return a+r},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&s!==n&&s>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:s}=this.config;n||!s?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};var vne=Object.defineProperty,mne=(e,t,n)=>t in e?vne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L4=(e,t,n)=>mne(e,typeof t!="symbol"?t+"":t,n);const By=(e,t)=>e.reduce((n,s)=>(s.isLeaf?n.push(s):(!t&&n.push(s),n=n.concat(By(s.children,t))),n),[]);class zS{constructor(t,n){this.config=n,L4(this,"nodes"),L4(this,"allNodes"),L4(this,"leafNodes");const s=(t||[]).map(a=>new Dy(a,this.config));this.nodes=s,this.allNodes=By(s,!1),this.leafNodes=By(s,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const s=n?n.appendChild(t):new Dy(t,this.config);n||this.nodes.push(s),this.appendAllNodesAndLeafNodes(s)}appendNodes(t,n){t.length>0?t.forEach(s=>this.appendNode(s,n)):n&&n.isLeaf&&this.leafNodes.push(n)}appendAllNodesAndLeafNodes(t){this.allNodes.push(t),t.isLeaf&&this.leafNodes.push(t),t.children&&t.children.forEach(n=>{this.appendAllNodesAndLeafNodes(n)})}getNodeByValue(t,n=!1){return Xa(t)?null:this.getFlattedNodes(n).find(a=>On(a.value,t)||On(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:s,level:a})=>On(t.value,s)&&t.level===a)||null}}const HS=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},gne=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():hA(e)&&e.click()},bne=(e,t)=>{const n=t.slice(0),s=n.map(o=>o.uid),a=e.reduce((o,r)=>{const i=s.indexOf(r.uid);return i>-1&&(o.push(r),n.splice(i,1),s.splice(i,1)),o},[]);return a.push(...n),a};var yne=j({name:"ElCascaderPanel",__name:"index",props:Dte,emits:Fte,setup(e,{expose:t,emit:n}){const s=e,a=n;let o=!1;const r=Ee("cascader"),i=Bte(s),l=Hn();let c;const u=F(!0),d=F(!1),h=F([]),p=F(),v=F([]),m=F(),g=F([]),b=k(()=>i.value.expandTrigger==="hover"),C=k(()=>s.renderLabel||l.default),w=()=>{const{options:O}=s,N=i.value;o=!1,c=new zS(O,N),v.value=[c.getNodes()],N.lazy&&Pa(s.options)?(u.value=!1,_(void 0,V=>{V&&(c=new zS(V,N),v.value=[c.getNodes()]),u.value=!0,L(!1,!0)})):L(!1,!0)},_=(O,N)=>{const V=i.value;O=O||new Dy({},V,void 0,!0),O.loading=!0;const z=Q=>{const K=O,ee=K.root?null:K;K.loading=!1,K.loaded=!0,K.childrenData=K.childrenData||[],Q&&(c==null||c.appendNodes(Q,ee)),Q&&(N==null||N(Q)),O.level===0&&(d.value=!0)},G=()=>{O.loading=!1,O.loaded=!1,O.level===0&&(u.value=!0)};V.lazyLoad(O,z,G)},x=(O,N)=>{var V;const{level:z}=O,G=v.value.slice(0,z);let Q;O.isLeaf?Q=O.pathNodes[z-2]:(Q=O,G.push(O.children)),((V=m.value)==null?void 0:V.uid)!==(Q==null?void 0:Q.uid)&&(m.value=O,v.value=G,!N&&a("expand-change",(O==null?void 0:O.pathValues)||[]))},E=(O,N,V=!0)=>{const{checkStrictly:z,multiple:G}=i.value,Q=g.value[0];o=!0,!G&&(Q==null||Q.doCheck(!1)),O.doCheck(N),$(),V&&!G&&!z&&a("close"),!V&&!G&&T(O)},T=O=>{O&&(O=O.parent,T(O),O&&x(O))},R=O=>c==null?void 0:c.getFlattedNodes(O),I=O=>{var N;return(N=R(O))==null?void 0:N.filter(({checked:V})=>V!==!1)},M=()=>{g.value.forEach(O=>O.doCheck(!1)),$(),v.value=v.value.slice(0,1),m.value=void 0,a("expand-change",[])},$=()=>{var O;const{checkStrictly:N,multiple:V}=i.value,z=g.value,G=I(!N),Q=bne(z,G),K=Q.map(ee=>ee.valueByOption);g.value=Q,p.value=V?K:(O=K[0])!=null?O:null},L=(O=!1,N=!1)=>{const{modelValue:V}=s,{lazy:z,multiple:G,checkStrictly:Q}=i.value,K=!Q;if(!(!u.value||o||!N&&On(V,p.value)))if(z&&!O){const se=ES(eV(va(V))).map(he=>c==null?void 0:c.getNodeByValue(he)).filter(he=>!!he&&!he.loaded&&!he.loading);se.length?se.forEach(he=>{_(he,()=>L(!1,N))}):L(!0,N)}else{const ee=G?va(V):[V],se=ES(ee.map(he=>c==null?void 0:c.getNodeByValue(he,K)));B(se,N),p.value=e1(V??void 0)}},B=(O,N=!0)=>{const{checkStrictly:V}=i.value,z=g.value,G=O.filter(ee=>!!ee&&(V||ee.isLeaf)),Q=c==null?void 0:c.getSameNode(m.value),K=N&&Q||G[0];K?K.pathNodes.forEach(ee=>x(ee,!0)):m.value=void 0,z.forEach(ee=>ee.doCheck(!1)),Kt(G).forEach(ee=>ee.doCheck(!0)),g.value=G,ze(q)},q=()=>{jt&&h.value.forEach(O=>{const N=O==null?void 0:O.$el;if(N){const V=N.querySelector(`.${r.namespace.value}-scrollbar__wrap`);let z=N.querySelector(`.${r.b("node")}.in-active-path`);if(!z){const G=N.querySelectorAll(`.${r.b("node")}.${r.is("active")}`);z=G[G.length-1]}N8(V,z)}})},J=O=>{const N=O.target,V=an(O);switch(V){case Te.up:case Te.down:{O.preventDefault();const z=V===Te.up?-1:1;J2(pA(N,z,`.${r.b("node")}[tabindex="-1"]`));break}case Te.left:{O.preventDefault();const z=h.value[HS(N)-1],G=z==null?void 0:z.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);J2(G);break}case Te.right:{O.preventDefault();const z=h.value[HS(N)+1],G=z==null?void 0:z.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);J2(G);break}case Te.enter:case Te.numpadEnter:gne(N);break}};Mt(Nb,Kt({config:i,expandingNode:m,checkedNodes:g,isHoverMenu:b,initialLoaded:u,renderLabelFn:C,lazyLoad:_,expandNode:x,handleCheckChange:E})),be(i,(O,N)=>{On(O,N)||w()},{immediate:!0}),be(()=>s.options,w,{deep:!0}),be(()=>s.modelValue,()=>{o=!1,L()},{deep:!0}),be(()=>p.value,O=>{On(O,s.modelValue)||(a(ct,O),a(Pt,O))});const Y=()=>{d.value||w()};return r8(()=>h.value=[]),St(()=>!Pa(s.modelValue)&&L()),t({menuList:h,menus:v,checkedNodes:g,handleKeyDown:J,handleCheckChange:E,getFlattedNodes:R,getCheckedNodes:I,clearCheckedNodes:M,calculateCheckedValue:$,scrollToExpandingNode:q,loadLazyRootNodes:Y}),(O,N)=>(S(),P("div",{class:D([f(r).b("panel"),f(r).is("bordered",e.border)]),onKeydown:J},[(S(!0),P(Ve,null,yt(v.value,(V,z)=>(S(),ce(une,{key:z,ref_for:!0,ref:G=>h.value[z]=G,index:z,nodes:[...V]},{empty:X(()=>[ue(O.$slots,"empty")]),_:3},8,["index","nodes"]))),128))],34))}});const dT=pt(yne),wne=["placeholder"],_ne=["onClick"];var Cne=j({name:"ElCascader",__name:"cascader",props:Vte,emits:zte,setup(e,{expose:t,emit:n}){const s={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Be})=>{const{modifiersData:ve,placement:me}=Be;["right","left","bottom","top"].includes(me)||ve.arrow&&(ve.arrow.x=35)},requires:["arrow"]}]},a=e,o=n,r=Nl(),i=Hn();let l=0,c=0;const u=Ee("cascader"),d=Ee("input"),h={small:7,default:11,large:15},{t:p}=Rt(),{formItem:v}=Ms(),m=Pn(),{valueOnClear:g}=Gm(a),{isComposing:b,handleComposition:C}=s2({afterComposition(Be){var ve;const me=(ve=Be.target)==null?void 0:ve.value;wt(me)}}),w=F(),_=F(),x=F(),E=F(),T=F(),R=F(),I=F(!1),M=F(!1),$=F(!1),L=F(""),B=F(""),q=F([]),J=F([]),Y=k(()=>a.props.multiple?a.collapseTags?q.value.slice(0,a.maxCollapseTags):q.value:[]),O=k(()=>a.props.multiple?a.collapseTags?q.value.slice(a.maxCollapseTags):[]:[]),N=k(()=>r.style),V=k(()=>{var Be;return(Be=a.placeholder)!=null?Be:p("el.cascader.placeholder")}),z=k(()=>B.value||q.value.length>0||b.value?"":V.value),G=ns(),Q=k(()=>G.value==="small"?"small":"default"),K=k(()=>!!a.props.multiple),ee=k(()=>!a.filterable||K.value),se=k(()=>K.value?B.value:L.value),he=k(()=>{var Be;return((Be=T.value)==null?void 0:Be.checkedNodes)||[]}),{wrapperRef:te,isFocused:pe,handleBlur:fe}=Fl(x,{disabled:m,beforeBlur(Be){var ve,me;return((ve=w.value)==null?void 0:ve.isFocusInsideContent(Be))||((me=_.value)==null?void 0:me.isFocusInsideContent(Be))},afterBlur(){var Be;a.validateEvent&&((Be=v==null?void 0:v.validate)==null||Be.call(v,"blur").catch(ve=>void 0))}}),le=k(()=>!a.clearable||m.value||$.value||!M.value&&!pe.value?!1:!!he.value.length),Z=k(()=>{const{showAllLevels:Be,separator:ve}=a,me=he.value;return me.length?K.value?"":me[0].calcText(Be,ve):""}),H=k(()=>(v==null?void 0:v.validateState)||""),ae=k({get(){return e1(a.modelValue)},set(Be){const ve=Be??g.value;o(ct,ve),o(Pt,ve),a.validateEvent&&(v==null||v.validate("change").catch(me=>void 0))}}),de=k(()=>[u.b(),u.m(G.value),u.is("disabled",m.value),r.class]),ye=k(()=>[d.e("icon"),"icon-arrow-down",u.is("reverse",I.value)]),_e=k(()=>u.is("focus",pe.value)),Se=k(()=>{var Be,ve;return(ve=(Be=w.value)==null?void 0:Be.popperRef)==null?void 0:ve.contentRef}),Ne=Be=>{if(pe.value){const ve=new FocusEvent("blur",Be);fe(ve)}Fe(!1)},Fe=Be=>{var ve,me;m.value||(Be=Be??!I.value,Be!==I.value&&(I.value=Be,(me=(ve=x.value)==null?void 0:ve.input)==null||me.setAttribute("aria-expanded",`${Be}`),Be?(Oe(),T.value&&ze(T.value.scrollToExpandingNode)):a.filterable&&vt(),o("visibleChange",Be)))},Oe=()=>{ze(()=>{var Be;(Be=w.value)==null||Be.updatePopper()})},Ce=()=>{$.value=!1},Ie=Be=>{const{showAllLevels:ve,separator:me}=a;return{node:Be,key:Be.uid,text:Be.calcText(ve,me),hitState:!1,closable:!m.value&&!Be.isDisabled}},Pe=Be=>{var ve;const me=Be.node;me.doCheck(!1),(ve=T.value)==null||ve.calculateCheckedValue(),o("removeTag",me.valueByOption)},He=()=>{switch(a.showCheckedStrategy){case"child":return he.value;case"parent":{const Be=et(!1),ve=Be.map(Ze=>Ze.value);return Be.filter(Ze=>!Ze.parent||!ve.includes(Ze.parent.value))}default:return[]}},Qe=()=>{if(!K.value)return;const Be=He(),ve=[];Be.forEach(me=>ve.push(Ie(me))),q.value=ve},rt=()=>{var Be,ve;const{filterMethod:me,showAllLevels:Ze,separator:Je}=a,Ae=(ve=(Be=T.value)==null?void 0:Be.getFlattedNodes(!a.props.checkStrictly))==null?void 0:ve.filter($e=>$e.isDisabled?!1:($e.calcText(Ze,Je),me($e,se.value)));K.value&&q.value.forEach($e=>{$e.hitState=!1}),$.value=!0,J.value=Ae,Oe()},De=()=>{var Be;let ve;$.value&&R.value?ve=R.value.$el.querySelector(`.${u.e("suggestion-item")}`):ve=(Be=T.value)==null?void 0:Be.$el.querySelector(`.${u.b("node")}[tabindex="-1"]`),ve&&(ve.focus(),!$.value&&ve.click())},Ke=()=>{var Be,ve,me;const Ze=(Be=x.value)==null?void 0:Be.input,Je=E.value,Ae=(ve=R.value)==null?void 0:ve.$el;if(!(!jt||!Ze)){if(Ae){const $e=Ae.querySelector(`.${u.e("suggestion-list")}`);$e.style.minWidth=`${Ze.offsetWidth}px`}if(Je){const{offsetHeight:$e}=Je,lt=q.value.length>0?`${Math.max($e,l)-2}px`:`${l}px`;if(Ze.style.height=lt,i.prefix){const yn=(me=x.value)==null?void 0:me.$el.querySelector(`.${d.e("prefix")}`);let rn=0;yn&&(rn=yn.offsetWidth,rn>0&&(rn+=h[G.value||"default"])),Je.style.left=`${rn}px`}else Je.style.left="0";Oe()}}},et=Be=>{var ve;return(ve=T.value)==null?void 0:ve.getCheckedNodes(Be)},Ft=Be=>{Oe(),o("expandChange",Be)},Ht=Be=>{if(b.value)return;switch(an(Be)){case Te.enter:case Te.numpadEnter:Fe();break;case Te.down:Fe(!0),ze(De),Be.preventDefault();break;case Te.esc:I.value===!0&&(Be.preventDefault(),Be.stopPropagation(),Fe(!1));break;case Te.tab:Fe(!1);break}},at=()=>{var Be;(Be=T.value)==null||Be.clearCheckedNodes(),!I.value&&a.filterable&&vt(),Fe(!1),o("clear")},vt=()=>{const{value:Be}=Z;L.value=Be,B.value=Be},Et=Be=>{var ve,me;const{checked:Ze}=Be;K.value?(ve=T.value)==null||ve.handleCheckChange(Be,!Ze,!1):(!Ze&&((me=T.value)==null||me.handleCheckChange(Be,!0,!1)),Fe(!1))},xe=Be=>{const ve=Be.target,me=an(Be);switch(me){case Te.up:case Te.down:{Be.preventDefault();const Ze=me===Te.up?-1:1;J2(pA(ve,Ze,`.${u.e("suggestion-item")}[tabindex="-1"]`));break}case Te.enter:case Te.numpadEnter:ve.click();break}},Ue=()=>{const Be=q.value[q.value.length-1];c=B.value?0:c+1,!(!Be||!c||a.collapseTags&&q.value.length>1)&&(Be.hitState?Pe(Be):Be.hitState=!0)},we=k(()=>a.debounce),Ge=Km(()=>{const{value:Be}=se;if(!Be)return;const ve=a.beforeFilter(Be);Ld(ve)?ve.then(rt).catch(()=>{}):ve!==!1?rt():Ce()},we),wt=(Be,ve)=>{!I.value&&Fe(!0),!(ve!=null&&ve.isComposing)&&(Be?Ge():Ce())},Ut=Be=>Number.parseFloat(WV(d.cssVarName("input-height"),Be).value)-2,gn=()=>{var Be;(Be=x.value)==null||Be.focus()},bn=()=>{var Be;(Be=x.value)==null||Be.blur()};return be($,Oe),be([he,m,()=>a.collapseTags,()=>a.maxCollapseTags],Qe),be(q,()=>{ze(()=>Ke())}),be(G,async()=>{await ze();const Be=x.value.input;l=Ut(Be)||l,Ke()}),be(Z,vt,{immediate:!0}),be(()=>I.value,Be=>{var ve;Be&&a.props.lazy&&a.props.lazyLoad&&((ve=T.value)==null||ve.loadLazyRootNodes())}),St(()=>{const Be=x.value.input,ve=Ut(Be);l=Be.offsetHeight||ve,wn(Be,Ke)}),t({getCheckedNodes:et,cascaderPanelRef:T,togglePopperVisible:Fe,contentRef:Se,presentText:Z,focus:gn,blur:bn}),(Be,ve)=>(S(),ce(f(As),{ref_key:"tooltipRef",ref:w,visible:I.value,teleported:e.teleported,"popper-class":[f(u).e("dropdown"),e.popperClass],"popper-style":e.popperStyle,"popper-options":s,"fallback-placements":e.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:e.placement,transition:`${f(u).namespace.value}-zoom-in-top`,effect:e.effect,pure:"",persistent:e.persistent,onHide:Ce},{default:X(()=>[gt((S(),P("div",{ref_key:"wrapperRef",ref:te,class:D(de.value),style:tt(N.value),onClick:ve[8]||(ve[8]=()=>Fe(ee.value?void 0:!0)),onKeydown:Ht,onMouseenter:ve[9]||(ve[9]=me=>M.value=!0),onMouseleave:ve[10]||(ve[10]=me=>M.value=!1)},[W(f(ga),{ref_key:"inputRef",ref:x,modelValue:L.value,"onUpdate:modelValue":ve[1]||(ve[1]=me=>L.value=me),placeholder:z.value,readonly:ee.value,disabled:f(m),"validate-event":!1,size:f(G),class:D(_e.value),tabindex:K.value&&e.filterable&&!f(m)?-1:void 0,onCompositionstart:f(C),onCompositionupdate:f(C),onCompositionend:f(C),onInput:wt},Na({suffix:X(()=>[le.value?(S(),ce(f(Ye),{key:"clear",class:D([f(d).e("icon"),"icon-circle-close"]),onClick:it(at,["stop"])},{default:X(()=>[(S(),ce(bt(e.clearIcon)))]),_:1},8,["class"])):(S(),ce(f(Ye),{key:"arrow-down",class:D(ye.value),onClick:ve[0]||(ve[0]=it(me=>Fe(),["stop"]))},{default:X(()=>[W(f(Nr))]),_:1},8,["class"]))]),_:2},[Be.$slots.prefix?{name:"prefix",fn:X(()=>[ue(Be.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),K.value?(S(),P("div",{key:0,ref_key:"tagWrapper",ref:E,class:D([f(u).e("tags"),f(u).is("validate",!!H.value)])},[ue(Be.$slots,"tag",{data:q.value,deleteTag:Pe},()=>[(S(!0),P(Ve,null,yt(Y.value,me=>(S(),ce(f(yl),{key:me.key,type:e.tagType,size:Q.value,effect:e.tagEffect,hit:me.hitState,closable:me.closable,"disable-transitions":"",onClose:Ze=>Pe(me)},{default:X(()=>[A("span",null,ge(me.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),e.collapseTags&&q.value.length>e.maxCollapseTags?(S(),ce(f(As),{key:0,ref_key:"tagTooltipRef",ref:_,disabled:I.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,effect:e.effect,persistent:e.persistent},{default:X(()=>[W(f(yl),{closable:!1,size:Q.value,type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:X(()=>[A("span",{class:D(f(u).e("tags-text"))}," + "+ge(q.value.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:X(()=>[W(f(Cr),{"max-height":e.maxCollapseTagsTooltipHeight},{default:X(()=>[A("div",{class:D(f(u).e("collapse-tags"))},[(S(!0),P(Ve,null,yt(O.value,(me,Ze)=>(S(),P("div",{key:Ze,class:D(f(u).e("collapse-tag"))},[(S(),ce(f(yl),{key:me.key,class:"in-tooltip",type:e.tagType,size:Q.value,effect:e.tagEffect,hit:me.hitState,closable:me.closable,"disable-transitions":"",onClose:Je=>Pe(me)},{default:X(()=>[A("span",null,ge(me.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"])):ie("v-if",!0),e.filterable&&!f(m)?gt((S(),P("input",{key:1,"onUpdate:modelValue":ve[2]||(ve[2]=me=>B.value=me),type:"text",class:D(f(u).e("search-input")),placeholder:Z.value?"":V.value,onInput:ve[3]||(ve[3]=me=>wt(B.value,me)),onClick:ve[4]||(ve[4]=it(me=>Fe(!0),["stop"])),onKeydown:Ln(Ue,["delete"]),onCompositionstart:ve[5]||(ve[5]=(...me)=>f(C)&&f(C)(...me)),onCompositionupdate:ve[6]||(ve[6]=(...me)=>f(C)&&f(C)(...me)),onCompositionend:ve[7]||(ve[7]=(...me)=>f(C)&&f(C)(...me))},null,42,wne)),[[fE,B.value]]):ie("v-if",!0)],2)):ie("v-if",!0)],38)),[[f(Wc),Ne,Se.value]])]),content:X(()=>[Be.$slots.header?(S(),P("div",{key:0,class:D(f(u).e("header")),onClick:ve[11]||(ve[11]=it(()=>{},["stop"]))},[ue(Be.$slots,"header")],2)):ie("v-if",!0),gt(W(f(dT),{ref_key:"cascaderPanelRef",ref:T,modelValue:ae.value,"onUpdate:modelValue":ve[12]||(ve[12]=me=>ae.value=me),options:e.options,props:a.props,border:!1,"render-label":Be.$slots.default,onExpandChange:Ft,onClose:ve[13]||(ve[13]=me=>Be.$nextTick(()=>Fe(!1)))},{empty:X(()=>[ue(Be.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label"]),[[Bt,!$.value]]),e.filterable?gt((S(),ce(f(Cr),{key:1,ref_key:"suggestionPanel",ref:R,tag:"ul",class:D(f(u).e("suggestion-panel")),"view-class":f(u).e("suggestion-list"),onKeydown:xe},{default:X(()=>[J.value.length?(S(!0),P(Ve,{key:0},yt(J.value,me=>(S(),P("li",{key:me.uid,class:D([f(u).e("suggestion-item"),f(u).is("checked",me.checked)]),tabindex:-1,onClick:Ze=>Et(me)},[ue(Be.$slots,"suggestion-item",{item:me},()=>[A("span",null,ge(me.text),1),me.checked?(S(),ce(f(Ye),{key:0},{default:X(()=>[W(f(_0))]),_:1})):ie("v-if",!0)])],10,_ne))),128)):ue(Be.$slots,"empty",{key:1},()=>[A("li",{class:D(f(u).e("empty-text"))},ge(f(p)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Bt,$.value]]):ie("v-if",!0),Be.$slots.footer?(S(),P("div",{key:2,class:D(f(u).e("footer")),onClick:ve[14]||(ve[14]=it(()=>{},["stop"]))},[ue(Be.$slots,"footer")],2)):ie("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}});const Sne=pt(Cne),xne=Me({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),Ene={"update:checked":e=>Qt(e),[Pt]:e=>Qt(e)};var kne=j({name:"ElCheckTag",__name:"check-tag",props:xne,emits:Ene,setup(e,{emit:t}){const n=e,s=t,a=Ee("check-tag"),o=k(()=>[a.b(),a.is("checked",n.checked),a.is("disabled",n.disabled),a.m(n.type||"primary")]),r=()=>{if(n.disabled)return;const i=!n.checked;s(Pt,i),s("update:checked",i)};return(i,l)=>(S(),P("span",{class:D(o.value),onClick:r},[ue(i.$slots,"default")],2))}});const Ane=pt(kne),Tne=Me({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:re([Number,Object]),default:()=>Tn({})},sm:{type:re([Number,Object]),default:()=>Tn({})},md:{type:re([Number,Object]),default:()=>Tn({})},lg:{type:re([Number,Object]),default:()=>Tn({})},xl:{type:re([Number,Object]),default:()=>Tn({})}}),fT=Symbol("rowContextKey");var Mne=j({name:"ElCol",__name:"col",props:Tne,setup(e){const t=e,{gutter:n}=je(fT,{gutter:k(()=>0)}),s=Ee("col"),a=k(()=>{const r={};return n.value&&(r.paddingLeft=r.paddingRight=`${n.value/2}px`),r}),o=k(()=>{const r=[];return["span","offset","pull","push"].forEach(c=>{const u=t[c];st(u)&&(c==="span"?r.push(s.b(`${t[c]}`)):u>0&&r.push(s.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{st(t[c])?r.push(s.b(`${c}-${t[c]}`)):ft(t[c])&&Object.entries(t[c]).forEach(([u,d])=>{r.push(u!=="span"?s.b(`${c}-${u}-${d}`):s.b(`${c}-${d}`))})}),n.value&&r.push(s.is("guttered")),[s.b(),r]});return(r,i)=>(S(),ce(bt(e.tag),{class:D(o.value),style:tt(a.value)},{default:X(()=>[ue(r.$slots,"default")]),_:3},8,["class","style"]))}});const Pne=pt(Mne),WS=e=>st(e)||Xe(e)||ke(e),Rne=Me({accordion:Boolean,modelValue:{type:re([Array,String,Number]),default:()=>Tn([])},expandIconPosition:{type:re([String]),default:"right"},beforeCollapse:{type:re(Function)}}),Ine={[ct]:WS,[Pt]:WS},hT=Symbol("collapseContextKey"),Lne="ElCollapse",One=(e,t)=>{const n=F(Es(e.modelValue)),s=r=>{n.value=r;const i=e.accordion?n.value[0]:n.value;t(ct,i),t(Pt,i)},a=r=>{if(e.accordion)s([n.value[0]===r?"":r]);else{const i=[...n.value],l=i.indexOf(r);l>-1?i.splice(l,1):i.push(r),s(i)}},o=async r=>{const{beforeCollapse:i}=e;if(!i){a(r);return}const l=i(r);[Ld(l),Qt(l)].includes(!0)||Jn(Lne,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),Ld(l)?l.then(u=>{u!==!1&&a(r)}).catch(u=>{}):l&&a(r)};return be(()=>e.modelValue,()=>n.value=Es(e.modelValue),{deep:!0}),Mt(hT,{activeNames:n,handleItemClick:o}),{activeNames:n,setActiveNames:s}},Nne=e=>{const t=Ee("collapse");return{rootKls:k(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}};var $ne=j({name:"ElCollapse",__name:"collapse",props:Rne,emits:Ine,setup(e,{expose:t,emit:n}){const s=e,a=n,{activeNames:o,setActiveNames:r}=One(s,a),{rootKls:i}=Nne(s);return t({activeNames:o,setActiveNames:r}),(l,c)=>(S(),P("div",{class:D(f(i))},[ue(l.$slots,"default")],2))}});const Dne=Me({title:{type:String,default:""},name:{type:re([String,Number]),default:void 0},icon:{type:en,default:Ds},disabled:Boolean});var Fne=j({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=Ee("collapse-transition"),n=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},s={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.height&&(a.dataset.elExistsHeight=a.style.height),a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){requestAnimationFrame(()=>{a.dataset.oldOverflow=a.style.overflow,a.dataset.elExistsHeight?a.style.maxHeight=a.dataset.elExistsHeight:a.scrollHeight!==0?a.style.maxHeight=`${a.scrollHeight}px`:a.style.maxHeight=0,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom,a.style.overflow="hidden"})},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},enterCancelled(a){n(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){n(a)},leaveCancelled(a){n(a)}};return(a,o)=>(S(),ce(bs,_t({name:f(t).b()},ML(s)),{default:X(()=>[ue(a.$slots,"default")]),_:3},16,["name"]))}});const $b=pt(Fne),Bne=e=>{const t=je(hT),{namespace:n}=Ee("collapse"),s=F(!1),a=F(!1),o=ew(),r=k(()=>o.current++),i=k(()=>{var h;return(h=e.name)!=null?h:`${n.value}-id-${o.prefix}-${f(r)}`}),l=k(()=>t==null?void 0:t.activeNames.value.includes(f(i)));return{focusing:s,id:r,isActive:l,handleFocus:()=>{setTimeout(()=>{a.value?a.value=!1:s.value=!0},50)},handleHeaderClick:h=>{if(e.disabled)return;const p=h.target;p!=null&&p.closest("input, textarea, select")||(t==null||t.handleItemClick(f(i)),s.value=!1,a.value=!0)},handleEnterClick:h=>{const p=h.target;p!=null&&p.closest("input, textarea, select")||(h.preventDefault(),t==null||t.handleItemClick(f(i)))}}},Vne=(e,{focusing:t,isActive:n,id:s})=>{const a=Ee("collapse"),o=k(()=>[a.b("item"),a.is("active",f(n)),a.is("disabled",e.disabled)]),r=k(()=>[a.be("item","header"),a.is("active",f(n)),{focusing:f(t)&&!e.disabled}]),i=k(()=>[a.be("item","arrow"),a.is("active",f(n))]),l=k(()=>[a.be("item","title")]),c=k(()=>a.be("item","wrap")),u=k(()=>a.be("item","content")),d=k(()=>a.b(`content-${f(s)}`)),h=k(()=>a.b(`head-${f(s)}`));return{itemTitleKls:l,arrowKls:i,headKls:r,rootKls:o,itemWrapperKls:c,itemContentKls:u,scopedContentId:d,scopedHeadId:h}},zne=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],Hne=["id","aria-hidden","aria-labelledby"];var pT=j({name:"ElCollapseItem",__name:"collapse-item",props:Dne,setup(e,{expose:t}){const n=e,{focusing:s,id:a,isActive:o,handleFocus:r,handleHeaderClick:i,handleEnterClick:l}=Bne(n),{arrowKls:c,headKls:u,rootKls:d,itemTitleKls:h,itemWrapperKls:p,itemContentKls:v,scopedContentId:m,scopedHeadId:g}=Vne(n,{focusing:s,isActive:o,id:a});return t({isActive:o}),(b,C)=>(S(),P("div",{class:D(f(d))},[A("div",{id:f(g),class:D(f(u)),"aria-expanded":f(o),"aria-controls":f(m),"aria-describedby":f(m),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"button",onClick:C[0]||(C[0]=(...w)=>f(i)&&f(i)(...w)),onKeydown:C[1]||(C[1]=Ln(it((...w)=>f(l)&&f(l)(...w),["stop"]),["space","enter"])),onFocus:C[2]||(C[2]=(...w)=>f(r)&&f(r)(...w)),onBlur:C[3]||(C[3]=w=>s.value=!1)},[A("span",{class:D(f(h))},[ue(b.$slots,"title",{isActive:f(o)},()=>[We(ge(e.title),1)])],2),ue(b.$slots,"icon",{isActive:f(o)},()=>[W(f(Ye),{class:D(f(c))},{default:X(()=>[(S(),ce(bt(e.icon)))]),_:1},8,["class"])])],42,zne),W(f($b),null,{default:X(()=>[gt(A("div",{id:f(m),role:"region",class:D(f(p)),"aria-hidden":!f(o),"aria-labelledby":f(g)},[A("div",{class:D(f(v))},[ue(b.$slots,"default")],2)],10,Hne),[[Bt,f(o)]])]),_:3})],2))}});const Wne=pt($ne,{CollapseItem:pT}),jne=En(pT),vT=Me({modelValue:{type:re(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:String,disabled:Boolean,predefine:{type:re(Array)},validateEvent:{type:Boolean,default:!0}}),Kne={[ct]:e=>Xe(e)||Un(e)},mT=Symbol("colorCommonPickerKey"),gT=Symbol("colorPickerPanelContextKey"),bT=Me({color:{type:re(Object),required:!0},vertical:Boolean,disabled:Boolean}),Une=bT;let O4=!1;function Vy(e,t){if(!jt)return;const n=function(o){var r;(r=t.drag)==null||r.call(t,o)},s=function(o){var r;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",s),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",s),document.onselectstart=null,document.ondragstart=null,O4=!1,(r=t.end)==null||r.call(t,o)},a=function(o){var r;O4||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",s),document.addEventListener("touchmove",n),document.addEventListener("touchend",s),O4=!0,(r=t.start)==null||r.call(t,o))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a,{passive:!1})}const jS=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},zy=(e,t)=>Math.abs(jS(e)-jS(t)),yT=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},wT=(e,{key:t,minValue:n,maxValue:s})=>{const a=Ct(),o=fn(),r=fn(),i=k(()=>e.color.get(t));function l(h){var p;if(e.disabled)return;h.target!==o.value&&c(h),(p=o.value)==null||p.focus()}function c(h){if(!r.value||!o.value||e.disabled)return;const v=a.vnode.el.getBoundingClientRect(),{clientX:m,clientY:g}=yT(h);let b;if(e.vertical){let C=g-v.top;C=Math.max(o.value.offsetHeight/2,C),C=Math.min(C,v.height-o.value.offsetHeight/2),b=Math.round((C-o.value.offsetHeight/2)/(v.height-o.value.offsetHeight)*s)}else{let C=m-v.left;C=Math.max(o.value.offsetWidth/2,C),C=Math.min(C,v.width-o.value.offsetWidth/2),b=Math.round((C-o.value.offsetWidth/2)/(v.width-o.value.offsetWidth)*s)}e.color.set(t,b)}function u(h){if(e.disabled)return;const{shiftKey:p}=h,v=an(h),m=p?10:1,g=t==="hue"?-1:1;let b=!0;switch(v){case Te.left:case Te.down:d(-m*g);break;case Te.right:case Te.up:d(m*g);break;case Te.home:e.color.set(t,t==="hue"?s:n);break;case Te.end:e.color.set(t,t==="hue"?n:s);break;case Te.pageDown:d(-4*g);break;case Te.pageUp:d(4*g);break;default:b=!1;break}b&&h.preventDefault()}function d(h){let p=i.value+h;p=p<n?n:p>s?s:p,e.color.set(t,p)}return{thumb:o,bar:r,currentValue:i,handleDrag:c,handleClick:l,handleKeydown:u}},_T=(e,{namespace:t,maxValue:n,bar:s,thumb:a,currentValue:o,handleDrag:r,getBackground:i})=>{const l=Ct(),c=Ee(t),u=F(0),d=F(0),h=F();function p(){if(!a.value||e.vertical)return 0;const x=l.vnode.el,E=o.value;return x?Math.round(E*(x.offsetWidth-a.value.offsetWidth/2)/n):0}function v(){if(!a.value)return 0;const x=l.vnode.el;if(!e.vertical)return 0;const E=o.value;return x?Math.round(E*(x.offsetHeight-a.value.offsetHeight/2)/n):0}function m(){u.value=p(),d.value=v(),h.value=i==null?void 0:i()}St(()=>{if(!s.value||!a.value)return;const x={drag:E=>{r(E)},end:E=>{r(E)}};Vy(s.value,x),Vy(a.value,x),m()}),be(o,()=>m()),be(()=>e.color.value,()=>m());const g=k(()=>[c.b(),c.is("vertical",e.vertical),c.is("disabled",e.disabled)]),b=k(()=>c.e("bar")),C=k(()=>c.e("thumb")),w=k(()=>({background:h.value})),_=k(()=>({left:Mn(u.value),top:Mn(d.value)}));return{rootKls:g,barKls:b,barStyle:w,thumbKls:C,thumbStyle:_,thumbLeft:u,thumbTop:d,update:m}},qne=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],KS=0,N4=100;var Gne=j({name:"ElColorAlphaSlider",__name:"alpha-slider",props:bT,setup(e,{expose:t}){const n=e,{currentValue:s,bar:a,thumb:o,handleDrag:r,handleClick:i,handleKeydown:l}=wT(n,{key:"alpha",minValue:KS,maxValue:N4}),{rootKls:c,barKls:u,barStyle:d,thumbKls:h,thumbStyle:p,update:v}=_T(n,{namespace:"color-alpha-slider",maxValue:N4,currentValue:s,bar:a,thumb:o,handleDrag:r,getBackground:C}),{t:m}=Rt(),g=k(()=>m("el.colorpicker.alphaLabel")),b=k(()=>m("el.colorpicker.alphaDescription",{alpha:s.value,color:n.color.value}));function C(){if(n.color&&n.color.value){const{r:w,g:_,b:x}=n.color.toRgb();return`linear-gradient(to right, rgba(${w}, ${_}, ${x}, 0) 0%, rgba(${w}, ${_}, ${x}, 1) 100%)`}return""}return t({update:v,bar:a,thumb:o}),(w,_)=>(S(),P("div",{class:D(f(c))},[A("div",{ref_key:"bar",ref:a,class:D(f(u)),style:tt(f(d)),onClick:_[0]||(_[0]=(...x)=>f(i)&&f(i)(...x))},null,6),A("div",{ref_key:"thumb",ref:o,class:D(f(h)),style:tt(f(p)),"aria-label":g.value,"aria-valuenow":f(s),"aria-valuetext":b.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":KS,"aria-valuemax":N4,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:_[1]||(_[1]=(...x)=>f(l)&&f(l)(...x))},null,46,qne)],2))}});const Yne=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],US=0,$4=360;var Xne=j({name:"ElColorHueSlider",__name:"hue-slider",props:Une,setup(e,{expose:t}){const n=e,{currentValue:s,bar:a,thumb:o,handleDrag:r,handleClick:i,handleKeydown:l}=wT(n,{key:"hue",minValue:US,maxValue:$4}),{rootKls:c,barKls:u,thumbKls:d,thumbStyle:h,thumbTop:p,update:v}=_T(n,{namespace:"color-hue-slider",maxValue:$4,currentValue:s,bar:a,thumb:o,handleDrag:r}),{t:m}=Rt(),g=k(()=>m("el.colorpicker.hueLabel")),b=k(()=>m("el.colorpicker.hueDescription",{hue:s.value,color:n.color.value}));return t({bar:a,thumb:o,thumbTop:p,update:v}),(C,w)=>(S(),P("div",{class:D(f(c))},[A("div",{ref_key:"bar",ref:a,class:D(f(u)),onClick:w[0]||(w[0]=(..._)=>f(i)&&f(i)(..._))},null,2),A("div",{ref_key:"thumb",ref:o,class:D(f(d)),style:tt(f(h)),"aria-label":g.value,"aria-valuenow":f(s),"aria-valuetext":b.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":US,"aria-valuemax":$4,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:w[1]||(w[1]=(..._)=>f(l)&&f(l)(..._))},null,46,Yne)],2))}});const Jne=Me({colors:{type:re(Array),required:!0},color:{type:re(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean});var Zne=Object.defineProperty,Qne=(e,t,n)=>t in e?Zne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Br=(e,t,n)=>Qne(e,typeof t!="symbol"?t+"":t,n);class c1{constructor(t={}){Br(this,"_hue",0),Br(this,"_saturation",100),Br(this,"_value",100),Br(this,"_alpha",100),Br(this,"_tiny",new Sf),Br(this,"_isValid",!1),Br(this,"enableAlpha",!1),Br(this,"format",""),Br(this,"value",""),Br(this,"selected");for(const n in t)Wt(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const s in t)Wt(t,s)&&this.set(s,t[s]);return}this[`_${t}`]=n,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 n=new Sf(t);if(this._isValid=n.isValid,n.isValid){const{h:s,s:a,v:o,a:r}=n.toHsv();this._hue=s,this._saturation=a*100,this._value=o*100,this._alpha=r*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 n=new Sf({h:t._hue,s:t._saturation/100,v:t._value/100,a:t._alpha/100});return this._tiny.equals(n)}doOnChange(){const{_hue:t,_saturation:n,_value:s,_alpha:a,format:o,enableAlpha:r}=this;let i=o||(r?"rgb":"hex");o==="hex"&&r&&(i="hex8"),this._tiny=new Sf({h:t,s:n/100,v:s/100,a:a/100}),this.value=this._isValid?this._tiny.toString(i):""}}const ese=e=>{const{currentColor:t}=je(gT),n=F(a(e.colors,e.color));be(()=>t.value,o=>{const r=new c1({value:o,enableAlpha:e.enableAlpha});n.value.forEach(i=>{i.selected=r.compare(i)})}),Qa(()=>{n.value=a(e.colors,e.color)});function s(o){e.color.fromString(e.colors[o])}function a(o,r){return o.map(i=>{const l=new c1({value:i,enableAlpha:e.enableAlpha});return l.selected=l.compare(r),l})}return{rgbaColors:n,handleSelect:s}},tse=e=>{const t=Ee("color-predefine"),n=k(()=>[t.b(),t.is("disabled",e.disabled)]),s=k(()=>t.e("colors"));function a(o){return[t.e("color-selector"),t.is("alpha",o.get("alpha")<100),{selected:o.selected}]}return{rootKls:n,colorsKls:s,colorSelectorKls:a}},nse=["disabled","aria-label","onClick"];var sse=j({name:"ElColorPredefine",__name:"predefine",props:Jne,setup(e){const t=e,{rgbaColors:n,handleSelect:s}=ese(t),{rootKls:a,colorsKls:o,colorSelectorKls:r}=tse(t),{t:i}=Rt(),l=c=>i("el.colorpicker.predefineDescription",{value:c});return(c,u)=>(S(),P("div",{class:D(f(a))},[A("div",{class:D(f(o))},[(S(!0),P(Ve,null,yt(f(n),(d,h)=>(S(),P("button",{key:e.colors[h],type:"button",disabled:e.disabled,"aria-label":l(d.value),class:D(f(r)(d)),onClick:p=>f(s)(h)},[A("div",{style:tt({backgroundColor:d.value})},null,4)],10,nse))),128))],2)],2))}});const ase=Me({color:{type:re(Object),required:!0},disabled:Boolean}),ose=e=>{const t=Ct(),n=F(),s=F(0),a=F(0),o=F("hsl(0, 100%, 50%)"),r=k(()=>e.color.get("saturation")),i=k(()=>e.color.get("value")),l=k(()=>e.color.get("hue"));function c(v){var m;if(e.disabled)return;v.target!==n.value&&u(v),(m=n.value)==null||m.focus({preventScroll:!0})}function u(v){if(e.disabled)return;const g=t.vnode.el.getBoundingClientRect(),{clientX:b,clientY:C}=yT(v);let w=b-g.left,_=C-g.top;w=Math.max(0,w),w=Math.min(w,g.width),_=Math.max(0,_),_=Math.min(_,g.height),a.value=w,s.value=_,e.color.set({saturation:w/g.width*100,value:100-_/g.height*100})}function d(v){if(e.disabled)return;const{shiftKey:m}=v,g=an(v),b=m?10:1;let C=!0;switch(g){case Te.left:h(-b);break;case Te.right:h(b);break;case Te.up:p(b);break;case Te.down:p(-b);break;default:C=!1;break}C&&v.preventDefault()}function h(v){let m=r.value+v;m=m<0?0:m>100?100:m,e.color.set("saturation",m)}function p(v){let m=i.value+v;m=m<0?0:m>100?100:m,e.color.set("value",m)}return{cursorRef:n,cursorTop:s,cursorLeft:a,background:o,saturation:r,brightness:i,hue:l,handleClick:c,handleDrag:u,handleKeydown:d}},rse=(e,{cursorTop:t,cursorLeft:n,background:s,handleDrag:a})=>{const o=Ct(),r=Ee("color-svpanel");function i(){const h=e.color.get("saturation"),p=e.color.get("value"),v=o.vnode.el,{clientWidth:m,clientHeight:g}=v;n.value=h*m/100,t.value=(100-p)*g/100,s.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}St(()=>{Vy(o.vnode.el,{drag:h=>{a(h)},end:h=>{a(h)}}),i()}),be([()=>e.color.get("hue"),()=>e.color.get("value"),()=>e.color.value],()=>i());const l=k(()=>r.b()),c=k(()=>r.e("cursor")),u=k(()=>({backgroundColor:s.value})),d=k(()=>({top:Mn(t.value),left:Mn(n.value)}));return{rootKls:l,cursorKls:c,rootStyle:u,cursorStyle:d,update:i}},ise=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"];var lse=j({name:"ElSvPanel",__name:"sv-panel",props:ase,setup(e,{expose:t}){const n=e,{cursorRef:s,cursorTop:a,cursorLeft:o,background:r,saturation:i,brightness:l,handleClick:c,handleDrag:u,handleKeydown:d}=ose(n),{rootKls:h,cursorKls:p,rootStyle:v,cursorStyle:m,update:g}=rse(n,{cursorTop:a,cursorLeft:o,background:r,handleDrag:u}),{t:b}=Rt(),C=k(()=>b("el.colorpicker.svLabel")),w=k(()=>b("el.colorpicker.svDescription",{saturation:i.value,brightness:l.value,color:n.color.value}));return t({update:g}),(_,x)=>(S(),P("div",{class:D(f(h)),style:tt(f(v)),onClick:x[1]||(x[1]=(...E)=>f(c)&&f(c)(...E))},[A("div",{ref_key:"cursorRef",ref:s,class:D(f(p)),style:tt(f(m)),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":C.value,"aria-valuenow":`${f(i)},${f(l)}`,"aria-valuetext":w.value,onKeydown:x[0]||(x[0]=(...E)=>f(d)&&f(d)(...E))},null,46,ise)],6))}});const CT=(e,t)=>{const n=Kt(new c1({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return be(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(ct,n.value)}),{color:n}};var cse=j({name:"ElColorPickerPanel",__name:"color-picker-panel",props:vT,emits:Kne,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("color-picker-panel"),{formItem:r}=Ms(),i=Pn(),l=F(),c=F(),u=F(),d=F(),h=F(""),{color:p}=je(mT,()=>CT(s,a),!0);function v(){p.fromString(h.value),p.value!==h.value&&(h.value=p.value)}function m(){var b;s.validateEvent&&((b=r==null?void 0:r.validate)==null||b.call(r,"blur").catch(C=>void 0))}function g(){var b,C,w;(b=l.value)==null||b.update(),(C=c.value)==null||C.update(),(w=u.value)==null||w.update()}return St(()=>{s.modelValue&&(h.value=p.value),ze(g)}),be(()=>s.modelValue,b=>{b!==p.value&&(b?p.fromString(b):p.clear())}),be(()=>p.value,b=>{a(ct,b),h.value=b,s.validateEvent&&(r==null||r.validate("change").catch(C=>void 0))}),Mt(gT,{currentColor:k(()=>p.value)}),t({color:p,inputRef:d,update:g}),(b,C)=>(S(),P("div",{class:D([f(o).b(),f(o).is("disabled",f(i)),f(o).is("border",e.border)]),onFocusout:m},[A("div",{class:D(f(o).e("wrapper"))},[W(Xne,{ref_key:"hueRef",ref:l,class:"hue-slider",color:f(p),vertical:"",disabled:f(i)},null,8,["color","disabled"]),W(lse,{ref_key:"svRef",ref:c,color:f(p),disabled:f(i)},null,8,["color","disabled"])],2),e.showAlpha?(S(),ce(Gne,{key:0,ref_key:"alphaRef",ref:u,color:f(p),disabled:f(i)},null,8,["color","disabled"])):ie("v-if",!0),e.predefine?(S(),ce(sse,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:f(p),colors:e.predefine,disabled:f(i)},null,8,["enable-alpha","color","colors","disabled"])):ie("v-if",!0),A("div",{class:D(f(o).e("footer"))},[W(f(ga),{ref_key:"inputRef",ref:d,modelValue:h.value,"onUpdate:modelValue":C[0]||(C[0]=w=>h.value=w),"validate-event":!1,size:"small",disabled:f(i),onChange:v},null,8,["modelValue","disabled"]),ue(b.$slots,"footer")],2)],34))}});const ST=pt(cse),use=Me({persistent:{type:Boolean,default:!0},modelValue:{type:re(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:String,disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},size:rs,popperClass:Zt.popperClass,popperStyle:Zt.popperStyle,tabindex:{type:[String,Number],default:0},teleported:Zt.teleported,appendTo:Zt.appendTo,predefine:{type:re(Array)},validateEvent:{type:Boolean,default:!0},...Qd,...ya(["ariaLabel"])}),dse={[ct]:e=>Xe(e)||Un(e),[Pt]:e=>Xe(e)||Un(e),activeChange:e=>Xe(e)||Un(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},fse=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"];var hse=j({name:"ElColorPicker",__name:"color-picker",props:use,emits:dse,setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Rt(),r=Ee("color"),{formItem:i}=Ms(),l=ns(),c=Pn(),{valueOnClear:u,isEmptyValue:d}=Gm(s,null),h=CT(s,a),{inputId:p,isLabeledByFormItem:v}=Mo(s,{formItemContext:i}),m=F(),g=F(),b=F(),C=F(!1),w=F(!1);let _=!0;const{isFocused:x,handleFocus:E,handleBlur:T}=Fl(g,{disabled:c,beforeBlur(le){var Z;return(Z=m.value)==null?void 0:Z.isFocusInsideContent(le)},afterBlur(){var le;Y(!1),z(),s.validateEvent&&((le=i==null?void 0:i.validate)==null||le.call(i,"blur").catch(Z=>void 0))}}),R=MV(()=>{var le,Z;return(Z=(le=b.value)==null?void 0:le.color)!=null?Z:h.color}),I=k(()=>El(s,Object.keys(vT))),M=k(()=>!s.modelValue&&!w.value?"transparent":J(R,s.showAlpha)),$=k(()=>!s.modelValue&&!w.value?"":R.value),L=k(()=>v.value?void 0:s.ariaLabel||o("el.colorpicker.defaultLabel")),B=k(()=>v.value?i==null?void 0:i.labelId:void 0),q=k(()=>[r.b("picker"),r.is("disabled",c.value),r.bm("picker",l.value),r.is("focused",x.value)]);function J(le,Z){const{r:H,g:ae,b:de,a:ye}=le.toRgb();return Z?`rgba(${H}, ${ae}, ${de}, ${ye})`:`rgb(${H}, ${ae}, ${de})`}function Y(le){C.value=le}const O=yi(Y,100,{leading:!0});function N(){c.value||Y(!0)}function V(){O(!1),z()}function z(){ze(()=>{s.modelValue?R.fromString(s.modelValue):(R.value="",ze(()=>{w.value=!1}))})}function G(){c.value||(C.value&&z(),O(!C.value))}function Q(){const le=d(R.value)?u.value:R.value;a(ct,le),a(Pt,le),s.validateEvent&&(i==null||i.validate("change").catch(Z=>void 0)),O(!1),ze(()=>{const Z=new c1({enableAlpha:s.showAlpha,format:s.colorFormat||"",value:s.modelValue});R.compare(Z)||z()})}function K(){O(!1),a(ct,u.value),a(Pt,u.value),s.modelValue!==u.value&&s.validateEvent&&(i==null||i.validate("change").catch(le=>void 0)),z(),a("clear")}function ee(){var le,Z;(Z=(le=b==null?void 0:b.value)==null?void 0:le.inputRef)==null||Z.focus()}function se(){C.value&&(V(),x.value&&pe())}function he(le){le.preventDefault(),le.stopPropagation(),Y(!1),z()}function te(le){switch(an(le)){case Te.enter:case Te.numpadEnter:case Te.space:le.preventDefault(),le.stopPropagation(),N();break;case Te.esc:he(le);break}}function pe(){g.value.focus()}function fe(){g.value.blur()}return be(()=>$.value,le=>{_&&a("activeChange",le),_=!0}),be(()=>R.value,()=>{!s.modelValue&&!w.value&&(w.value=!0)}),be(()=>s.modelValue,le=>{le?le&&le!==R.value&&(_=!1,R.fromString(le)):w.value=!1}),be(()=>C.value,()=>{b.value&&ze(b.value.update)}),Mt(mT,h),t({color:R,show:N,hide:V,focus:pe,blur:fe}),(le,Z)=>(S(),ce(f(As),{ref_key:"popper",ref:m,visible:C.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[f(r).be("picker","panel"),e.popperClass],"popper-style":e.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:e.teleported,transition:`${f(r).namespace.value}-zoom-in-top`,persistent:e.persistent,"append-to":e.appendTo,onShow:ee,onHide:Z[2]||(Z[2]=H=>Y(!1))},{content:X(()=>[gt((S(),ce(f(ST),_t({ref_key:"pickerPanelRef",ref:b},I.value,{border:!1,"validate-event":!1,onKeydown:Ln(he,["esc"])}),{footer:X(()=>[A("div",null,[e.clearable?(S(),ce(f(ps),{key:0,class:D(f(r).be("footer","link-btn")),text:"",size:"small",onClick:K},{default:X(()=>[We(ge(f(o)("el.colorpicker.clear")),1)]),_:1},8,["class"])):ie("v-if",!0),W(f(ps),{plain:"",size:"small",class:D(f(r).be("footer","btn")),onClick:Q},{default:X(()=>[We(ge(f(o)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[f(Wc),se,g.value]])]),default:X(()=>[A("div",_t({id:f(p),ref_key:"triggerRef",ref:g},le.$attrs,{class:q.value,role:"button","aria-label":L.value,"aria-labelledby":B.value,"aria-description":f(o)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":f(c),tabindex:f(c)?void 0:e.tabindex,onKeydown:te,onFocus:Z[0]||(Z[0]=(...H)=>f(E)&&f(E)(...H)),onBlur:Z[1]||(Z[1]=(...H)=>f(T)&&f(T)(...H))}),[A("div",{class:D(f(r).be("picker","trigger")),onClick:G},[A("span",{class:D([f(r).be("picker","color"),f(r).is("alpha",e.showAlpha)])},[A("span",{class:D(f(r).be("picker","color-inner")),style:tt({backgroundColor:M.value})},[gt(W(f(Ye),{class:D([f(r).be("picker","icon"),f(r).is("icon-arrow-down")])},{default:X(()=>[W(f(Nr))]),_:1},8,["class"]),[[Bt,e.modelValue||w.value]]),gt(W(f(Ye),{class:D([f(r).be("picker","empty"),f(r).is("icon-close")])},{default:X(()=>[W(f(eo))]),_:1},8,["class"]),[[Bt,!e.modelValue&&!w.value]])],6)],2)],2)],16,fse)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}});const pse=pt(hse),vse=Me({a11y:{type:Boolean,default:!0},locale:{type:re(Object)},size:rs,button:{type:re(Object)},card:{type:re(Object)},dialog:{type:re(Object)},link:{type:re(Object)},experimentalFeatures:{type:re(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:re(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Qd}),da={placement:"top"},mse=j({name:"ElConfigProvider",props:vse,setup(e,{slots:t}){const n=L8(e);return be(()=>e.message,s=>{var a,o;Object.assign(da,(o=(a=n==null?void 0:n.value)==null?void 0:a.message)!=null?o:{},s??{})},{immediate:!0,deep:!0}),()=>ue(t,"default",{config:n==null?void 0:n.value})}}),gse=pt(mse);var bse=j({name:"ElContainer",__name:"container",props:{direction:{type:String,required:!1}},setup(e){const t=e,n=Hn(),s=Ee("container"),a=k(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(r=>{const i=r.type.name;return i==="ElHeader"||i==="ElFooter"}):!1);return(o,r)=>(S(),P("section",{class:D([f(s).b(),f(s).is("vertical",a.value)])},[ue(o.$slots,"default")],2))}}),xT=j({name:"ElAside",__name:"aside",props:{width:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=Ee("aside"),s=k(()=>t.width?n.cssVarBlock({width:t.width}):{});return(a,o)=>(S(),P("aside",{class:D(f(n).b()),style:tt(s.value)},[ue(a.$slots,"default")],6))}}),ET=j({name:"ElFooter",__name:"footer",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=Ee("footer"),s=k(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,o)=>(S(),P("footer",{class:D(f(n).b()),style:tt(s.value)},[ue(a.$slots,"default")],6))}}),kT=j({name:"ElHeader",__name:"header",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=Ee("header"),s=k(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,o)=>(S(),P("header",{class:D(f(n).b()),style:tt(s.value)},[ue(a.$slots,"default")],6))}}),AT=j({name:"ElMain",__name:"main",setup(e){const t=Ee("main");return(n,s)=>(S(),P("main",{class:D(f(t).b())},[ue(n.$slots,"default")],2))}});const yse=pt(bse,{Aside:xT,Footer:ET,Header:kT,Main:AT}),wse=En(xT),_se=En(ET),Cse=En(kT),Sse=En(AT);var TT={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Bl,function(){var n={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"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,l={},c=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(b){this[g]=+b}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var C=b.match(/([+-]|\d\d)/g),w=60*C[1]+(+C[2]||0);return w===0?0:C[0]==="+"?-w:w}(g)}],h=function(g){var b=l[g];return b&&(b.indexOf?b:b.s.concat(b.f))},p=function(g,b){var C,w=l.meridiem;if(w){for(var _=1;_<=24;_+=1)if(g.indexOf(w(_,0,b))>-1){C=_>12;break}}else C=g===(b?"pm":"PM");return C},v={A:[i,function(g){this.afternoon=p(g,!1)}],a:[i,function(g){this.afternoon=p(g,!0)}],Q:[a,function(g){this.month=3*(g-1)+1}],S:[a,function(g){this.milliseconds=100*+g}],SS:[o,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[r,u("seconds")],ss:[r,u("seconds")],m:[r,u("minutes")],mm:[r,u("minutes")],H:[r,u("hours")],h:[r,u("hours")],HH:[r,u("hours")],hh:[r,u("hours")],D:[r,u("day")],DD:[o,u("day")],Do:[i,function(g){var b=l.ordinal,C=g.match(/\d+/);if(this.day=C[0],b)for(var w=1;w<=31;w+=1)b(w).replace(/\[|\]/g,"")===g&&(this.day=w)}],w:[r,u("week")],ww:[o,u("week")],M:[r,u("month")],MM:[o,u("month")],MMM:[i,function(g){var b=h("months"),C=(h("monthsShort")||b.map(function(w){return w.slice(0,3)})).indexOf(g)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[i,function(g){var b=h("months").indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(g){this.year=c(g)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function m(g){var b,C;b=g,C=l&&l.formats;for(var w=(g=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,$,L){var B=L&&L.toUpperCase();return $||C[L]||n[L]||C[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,J,Y){return J||Y.slice(1)})})).match(s),_=w.length,x=0;x<_;x+=1){var E=w[x],T=v[E],R=T&&T[0],I=T&&T[1];w[x]=I?{regex:R,parser:I}:E.replace(/^\[|\]$/g,"")}return function(M){for(var $={},L=0,B=0;L<_;L+=1){var q=w[L];if(typeof q=="string")B+=q.length;else{var J=q.regex,Y=q.parser,O=M.slice(B),N=J.exec(O)[0];Y.call($,N),M=M.replace(N,"")}}return function(V){var z=V.afternoon;if(z!==void 0){var G=V.hours;z?G<12&&(V.hours+=12):G===12&&(V.hours=0),delete V.afternoon}}($),$}}return function(g,b,C){C.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var w=b.prototype,_=w.parse;w.parse=function(x){var E=x.date,T=x.utc,R=x.args;this.$u=T;var I=R[1];if(typeof I=="string"){var M=R[2]===!0,$=R[3]===!0,L=M||$,B=R[2];$&&(B=R[2]),l=this.$locale(),!M&&B&&(l=C.Ls[B]),this.$d=function(O,N,V,z){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*O);var G=m(N)(O),Q=G.year,K=G.month,ee=G.day,se=G.hours,he=G.minutes,te=G.seconds,pe=G.milliseconds,fe=G.zone,le=G.week,Z=new Date,H=ee||(Q||K?1:Z.getDate()),ae=Q||Z.getFullYear(),de=0;Q&&!K||(de=K>0?K-1:Z.getMonth());var ye,_e=se||0,Se=he||0,Ne=te||0,Fe=pe||0;return fe?new Date(Date.UTC(ae,de,H,_e,Se,Ne,Fe+60*fe.offset*1e3)):V?new Date(Date.UTC(ae,de,H,_e,Se,Ne,Fe)):(ye=new Date(ae,de,H,_e,Se,Ne,Fe),le&&(ye=z(ye).week(le).toDate()),ye)}catch{return new Date("")}}(E,I,T,C),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),L&&E!=this.format(I)&&(this.$d=new Date("")),l={}}else if(I instanceof Array)for(var q=I.length,J=1;J<=q;J+=1){R[1]=I[J-1];var Y=C.apply(this,R);if(Y.isValid()){this.$d=Y.$d,this.$L=Y.$L,this.init();break}J===q&&(this.$d=new Date(""))}else _.call(this,x)}}})})(TT);var xse=TT.exports;const hw=Vl(xse),qS=["hours","minutes","seconds"],xr="EP_PICKER_BASE",pw="ElPopperOptions",MT=Symbol("commonPickerContextKey"),a0="HH:mm:ss",tc="YYYY-MM-DD",Ese={date:tc,dates:tc,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${tc} ${a0}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:tc,datetimerange:`${tc} ${a0}`},PT=(e,t)=>{const{lang:n}=Rt(),s=F(!1),a=F(!1),o=F(null),r=k(()=>{const{modelValue:v}=e;return!v||ke(v)&&!v.filter(Boolean).length}),i=v=>{if(!HA(e.modelValue,v)){let m;ke(v)?m=v.map(b=>OS(b,e.valueFormat,n.value)):v&&(m=OS(v,e.valueFormat,n.value)),t(ct,v&&m,n.value)}},l=k(()=>{var v;let m;if(r.value?c.value.getDefaultValue&&(m=c.value.getDefaultValue()):ke(e.modelValue)?m=e.modelValue.map(g=>LS(g,e.valueFormat,n.value)):m=LS((v=e.modelValue)!=null?v:"",e.valueFormat,n.value),c.value.getRangeAvailableTime){const g=c.value.getRangeAvailableTime(m);On(g,m)||(m=g,r.value||i(Z2(m)))}return ke(m)&&m.some(g=>!g)&&(m=[]),m}),c=F({});return{parsedValue:l,pickerActualVisible:a,pickerOptions:c,pickerVisible:s,userInput:o,valueIsEmpty:r,emitInput:i,onCalendarChange:v=>{t("calendar-change",v)},onPanelChange:(v,m,g)=>{t("panel-change",v,m,g)},onPick:(v="",m=!1)=>{s.value=m;let g;ke(v)?g=v.map(b=>b.toDate()):g=v&&v.toDate(),o.value=null,i(g)},onSetPickerOption:v=>{c.value[v[0]]=v[1],c.value.panelReady=!0}}},vw=Me({disabledHours:{type:re(Function)},disabledMinutes:{type:re(Function)},disabledSeconds:{type:re(Function)}}),RT=Me({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),mw=Me({automaticDropdown:{type:Boolean,default:!0},id:{type:re([Array,String])},name:{type:re([Array,String])},popperClass:Zt.popperClass,popperStyle:Zt.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:re([String,Object]),default:Jo},editable:{type:Boolean,default:!0},prefixIcon:{type:re([String,Object]),default:""},size:rs,readonly:Boolean,disabled:{type:Boolean,default:void 0},placeholder:{type:String,default:""},popperOptions:{type:re(Object),default:()=>({})},modelValue:{type:re([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:re([Date,Array])},defaultTime:{type:re([Date,Array])},isRange:Boolean,...vw,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:re([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:re(String),values:Ei,default:"bottom"},fallbackPlacements:{type:re(Array),default:["bottom","top","right","left"]},...Qd,...ya(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),kse=Me({id:{type:re(Array)},name:{type:re(Array)},modelValue:{type:re([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),Ase=["id","name","placeholder","value","disabled"],Tse=["id","name","placeholder","value","disabled"];var Mse=j({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:kse,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const s=e,a=n,{formItem:o}=Ms(),{inputId:r}=Mo(Kt({id:k(()=>{var R;return(R=s.id)==null?void 0:R[0]})}),{formItemContext:o}),i=Rb(),l=Ee("date"),c=Ee("range"),u=F(),d=F(),{wrapperRef:h,isFocused:p}=Fl(u,{disabled:k(()=>s.disabled)}),v=R=>{a("click",R)},m=R=>{a("mouseenter",R)},g=R=>{a("mouseleave",R)},b=R=>{a("touchstart",R)},C=R=>{a("startInput",R)},w=R=>{a("endInput",R)},_=R=>{a("startChange",R)},x=R=>{a("endChange",R)};return t({focus:()=>{var R;(R=u.value)==null||R.focus()},blur:()=>{var R,I;(R=u.value)==null||R.blur(),(I=d.value)==null||I.blur()}}),(R,I)=>(S(),P("div",{ref_key:"wrapperRef",ref:h,class:D([f(l).is("active",f(p)),R.$attrs.class]),style:tt(R.$attrs.style),onClick:v,onMouseenter:m,onMouseleave:g,onTouchstartPassive:b},[ue(R.$slots,"prefix"),A("input",_t(f(i),{id:f(r),ref_key:"inputRef",ref:u,name:R.name&&R.name[0],placeholder:R.startPlaceholder,value:R.modelValue&&R.modelValue[0],class:f(c).b("input"),disabled:R.disabled,onInput:C,onChange:_}),null,16,Ase),ue(R.$slots,"range-separator"),A("input",_t(f(i),{id:R.id&&R.id[1],ref_key:"endInputRef",ref:d,name:R.name&&R.name[1],placeholder:R.endPlaceholder,value:R.modelValue&&R.modelValue[1],class:f(c).b("input"),disabled:R.disabled,onInput:w,onChange:x}),null,16,Tse),ue(R.$slots,"suffix")],38))}}),IT=j({name:"Picker",__name:"picker",props:mw,emits:[ct,Pt,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const s=e,a=n,o=Nl(),r=Ee("date"),i=Ee("input"),l=Ee("range"),{formItem:c}=Ms(),u=je(pw,{}),d=Gm(s,null),h=F(),p=F(),v=F(null);let m=!1;const g=Pn(),b=PT(s,a),{parsedValue:C,pickerActualVisible:w,userInput:_,pickerVisible:x,pickerOptions:E,valueIsEmpty:T,emitInput:R,onPick:I,onSetPickerOption:M,onCalendarChange:$,onPanelChange:L}=b,{isFocused:B,handleFocus:q,handleBlur:J}=Fl(p,{disabled:g,beforeFocus(){return s.readonly},afterFocus(){s.automaticDropdown&&(x.value=!0)},beforeBlur(we){var Ge;return!m&&((Ge=h.value)==null?void 0:Ge.isFocusInsideContent(we))},afterBlur(){Qe(),x.value=!1,m=!1,s.validateEvent&&(c==null||c.validate("blur").catch(we=>void 0))}}),Y=F(!1),O=k(()=>[r.b("editor"),r.bm("editor",s.type),i.e("wrapper"),r.is("disabled",g.value),r.is("active",x.value),l.b("editor"),Ie?l.bm("editor",Ie.value):"",o.class]),N=k(()=>[i.e("icon"),l.e("close-icon"),ye.value?"":l.em("close-icon","hidden")]);be(x,we=>{we?ze(()=>{we&&(v.value=s.modelValue)}):(_.value=null,ze(()=>{V(s.modelValue)}))});const V=(we,Ge)=>{(Ge||!HA(we,v.value))&&(a(Pt,we),Ge&&(v.value=we),s.validateEvent&&(c==null||c.validate("change").catch(wt=>void 0)))},z=we=>{a("keydown",we)},G=k(()=>p.value?Array.from(p.value.$el.querySelectorAll("input")):[]),Q=(we,Ge,wt)=>{const Ut=G.value;Ut.length&&(!wt||wt==="min"?(Ut[0].setSelectionRange(we,Ge),Ut[0].focus()):wt==="max"&&(Ut[1].setSelectionRange(we,Ge),Ut[1].focus()))},K=()=>{w.value=!0},ee=()=>{a("visible-change",!0)},se=()=>{w.value=!1,x.value=!1,a("visible-change",!1)},he=()=>{x.value=!0},te=()=>{x.value=!1},pe=k(()=>{const we=De(C.value);return ke(_.value)?[_.value[0]||we&&we[0]||"",_.value[1]||we&&we[1]||""]:_.value!==null?_.value:!le.value&&T.value||!x.value&&T.value?"":we?Z.value||H.value||ae.value?we.join(", "):we:""}),fe=k(()=>s.type.includes("time")),le=k(()=>s.type.startsWith("time")),Z=k(()=>s.type==="dates"),H=k(()=>s.type==="months"),ae=k(()=>s.type==="years"),de=k(()=>s.prefixIcon||(fe.value?D8:Ak)),ye=k(()=>s.clearable&&!g.value&&!s.readonly&&!T.value&&(Y.value||B.value)),_e=we=>{s.readonly||g.value||(ye.value&&(we==null||we.stopPropagation(),E.value.handleClear?E.value.handleClear():R(d.valueOnClear.value),V(d.valueOnClear.value,!0),se()),a("clear"))},Se=async we=>{var Ge;s.readonly||g.value||(((Ge=we.target)==null?void 0:Ge.tagName)!=="INPUT"||B.value||!s.automaticDropdown)&&(x.value=!0)},Ne=()=>{s.readonly||g.value||!T.value&&s.clearable&&(Y.value=!0)},Fe=()=>{Y.value=!1},Oe=we=>{var Ge;s.readonly||g.value||(((Ge=we.touches[0].target)==null?void 0:Ge.tagName)!=="INPUT"||B.value||!s.automaticDropdown)&&(x.value=!0)},Ce=k(()=>s.type.includes("range")),Ie=ns(),Pe=k(()=>{var we,Ge;return(Ge=(we=f(h))==null?void 0:we.popperRef)==null?void 0:Ge.contentRef}),He=R8(p,we=>{const Ge=f(Pe),wt=os(p);Ge&&(we.target===Ge||we.composedPath().includes(Ge))||we.target===wt||wt&&we.composedPath().includes(wt)||(x.value=!1)});qt(()=>{He==null||He()});const Qe=()=>{if(_.value){const we=rt(pe.value);we&&(Ke(we)&&R(Z2(we)),_.value=null)}_.value===""&&(R(d.valueOnClear.value),V(d.valueOnClear.value,!0),_.value=null)},rt=we=>we?E.value.parseUserInput(we):null,De=we=>we?ke(we)?we.map(wt=>wt.format(s.format)):we.format(s.format):null,Ke=we=>E.value.isValidValue(we),et=async we=>{if(s.readonly||g.value)return;const Ge=an(we);if(z(we),Ge===Te.esc){x.value===!0&&(x.value=!1,we.preventDefault(),we.stopPropagation());return}if(Ge===Te.down&&(E.value.handleFocusPicker&&(we.preventDefault(),we.stopPropagation()),x.value===!1&&(x.value=!0,await ze()),E.value.handleFocusPicker)){E.value.handleFocusPicker();return}if(Ge===Te.tab){m=!0;return}if(Ge===Te.enter||Ge===Te.numpadEnter){x.value?(_.value===null||_.value===""||Ke(rt(pe.value)))&&(Qe(),x.value=!1):x.value=!0,we.preventDefault(),we.stopPropagation();return}if(_.value){we.stopPropagation();return}E.value.handleKeydownInput&&E.value.handleKeydownInput(we)},Ft=we=>{_.value=we,x.value||(x.value=!0)},Ht=we=>{const Ge=we.target;_.value?_.value=[Ge.value,_.value[1]]:_.value=[Ge.value,null]},at=we=>{const Ge=we.target;_.value?_.value=[_.value[0],Ge.value]:_.value=[null,Ge.value]},vt=()=>{var we;const Ge=_.value,wt=rt(Ge&&Ge[0]),Ut=f(C);if(wt&&wt.isValid()){_.value=[De(wt),((we=pe.value)==null?void 0:we[1])||null];const gn=[wt,Ut&&(Ut[1]||null)];Ke(gn)&&(R(Z2(gn)),_.value=null)}},Et=()=>{var we;const Ge=f(_),wt=rt(Ge&&Ge[1]),Ut=f(C);if(wt&&wt.isValid()){_.value=[((we=f(pe))==null?void 0:we[0])||null,De(wt)];const gn=[Ut&&Ut[0],wt];Ke(gn)&&(R(Z2(gn)),_.value=null)}},xe=()=>{var we;(we=p.value)==null||we.focus()},Ue=()=>{var we;(we=p.value)==null||we.blur()};return Mt(xr,{props:s,emptyValues:d}),Mt(MT,b),t({focus:xe,blur:Ue,handleOpen:he,handleClose:te,onPick:I}),(we,Ge)=>(S(),ce(f(As),_t({ref_key:"refPopper",ref:h,visible:f(x),effect:"light",pure:"",trigger:"click"},we.$attrs,{role:"dialog",teleported:"",transition:`${f(r).namespace.value}-zoom-in-top`,"popper-class":[`${f(r).namespace.value}-picker__popper`,we.popperClass],"popper-style":we.popperStyle,"popper-options":f(u),"fallback-placements":we.fallbackPlacements,"gpu-acceleration":!1,placement:we.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:K,onShow:ee,onHide:se}),{default:X(()=>[Ce.value?(S(),ce(Mse,{key:1,id:we.id,ref_key:"inputRef",ref:p,"model-value":pe.value,name:we.name,disabled:f(g),readonly:!we.editable||we.readonly,"start-placeholder":we.startPlaceholder,"end-placeholder":we.endPlaceholder,class:D(O.value),style:tt(we.$attrs.style),"aria-label":we.ariaLabel,tabindex:we.tabindex,autocomplete:"off",role:"combobox",onClick:Se,onFocus:f(q),onBlur:f(J),onStartInput:Ht,onStartChange:vt,onEndInput:at,onEndChange:Et,onMousedown:Se,onMouseenter:Ne,onMouseleave:Fe,onTouchstartPassive:Oe,onKeydown:et},{prefix:X(()=>[de.value?(S(),ce(f(Ye),{key:0,class:D([f(i).e("icon"),f(l).e("icon")])},{default:X(()=>[(S(),ce(bt(de.value)))]),_:1},8,["class"])):ie("v-if",!0)]),"range-separator":X(()=>[ue(we.$slots,"range-separator",{},()=>[A("span",{class:D(f(l).b("separator"))},ge(we.rangeSeparator),3)])]),suffix:X(()=>[we.clearIcon?(S(),ce(f(Ye),{key:0,class:D(N.value),onMousedown:it(f(Yt),["prevent"]),onClick:_e},{default:X(()=>[(S(),ce(bt(we.clearIcon)))]),_:1},8,["class","onMousedown"])):ie("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(S(),ce(f(ga),{key:0,id:we.id,ref_key:"inputRef",ref:p,"container-role":"combobox","model-value":pe.value,name:we.name,size:f(Ie),disabled:f(g),placeholder:we.placeholder,class:D([f(r).b("editor"),f(r).bm("editor",we.type),f(r).is("focus",f(x)),we.$attrs.class]),style:tt(we.$attrs.style),readonly:!we.editable||we.readonly||Z.value||H.value||ae.value||we.type==="week","aria-label":we.ariaLabel,tabindex:we.tabindex,"validate-event":!1,onInput:Ft,onFocus:f(q),onBlur:f(J),onKeydown:et,onChange:Qe,onMousedown:Se,onMouseenter:Ne,onMouseleave:Fe,onTouchstartPassive:Oe,onClick:Ge[0]||(Ge[0]=it(()=>{},["stop"]))},{prefix:X(()=>[de.value?(S(),ce(f(Ye),{key:0,class:D(f(i).e("icon")),onMousedown:it(Se,["prevent"]),onTouchstartPassive:Oe},{default:X(()=>[(S(),ce(bt(de.value)))]),_:1},8,["class"])):ie("v-if",!0)]),suffix:X(()=>[ye.value&&we.clearIcon?(S(),ce(f(Ye),{key:0,class:D(`${f(i).e("icon")} clear-icon`),onMousedown:it(f(Yt),["prevent"]),onClick:_e},{default:X(()=>[(S(),ce(bt(we.clearIcon)))]),_:1},8,["class","onMousedown"])):ie("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur"]))]),content:X(()=>[ue(we.$slots,"default",{visible:f(x),actualVisible:f(w),parsedValue:f(C),format:we.format,dateFormat:we.dateFormat,timeFormat:we.timeFormat,unlinkPanels:we.unlinkPanels,type:we.type,defaultValue:we.defaultValue,showNow:we.showNow,showConfirm:we.showConfirm,showFooter:we.showFooter,showWeekNumber:we.showWeekNumber,onPick:Ge[1]||(Ge[1]=(...wt)=>f(I)&&f(I)(...wt)),onSelectRange:Q,onSetPickerOption:Ge[2]||(Ge[2]=(...wt)=>f(M)&&f(M)(...wt)),onCalendarChange:Ge[3]||(Ge[3]=(...wt)=>f($)&&f($)(...wt)),onClear:_e,onPanelChange:Ge[4]||(Ge[4]=(...wt)=>f(L)&&f(L)(...wt)),onMousedown:Ge[5]||(Ge[5]=it(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}});const Pse=Me({...RT,datetimeRole:String,parsedValue:{type:re(Object)}}),LT=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const s=(r,i,l,c)=>{const u={hour:e,minute:t,second:n};let d=r;return["hour","minute","second"].forEach(h=>{if(u[h]){let p;const v=u[h];switch(h){case"minute":{p=v(d.hour(),i,c);break}case"second":{p=v(d.hour(),d.minute(),i,c);break}default:{p=v(i,c);break}}if(p!=null&&p.length&&!p.includes(d[h]())){const m=l?0:p.length-1;d=d[h](p[m])}}}),d},a={};return{timePickerOptions:a,getAvailableTime:s,onSetOption:([r,i])=>{a[r]=i}}},D4=e=>{const t=(s,a)=>s||a,n=s=>s!==!0;return e.map(t).filter(n)},OT=(e,t,n)=>({getHoursList:(r,i)=>R4(24,e&&(()=>e==null?void 0:e(r,i))),getMinutesList:(r,i,l)=>R4(60,t&&(()=>t==null?void 0:t(r,i,l))),getSecondsList:(r,i,l,c)=>R4(60,n&&(()=>n==null?void 0:n(r,i,l,c)))}),NT=(e,t,n)=>{const{getHoursList:s,getMinutesList:a,getSecondsList:o}=OT(e,t,n);return{getAvailableHours:(c,u)=>D4(s(c,u)),getAvailableMinutes:(c,u,d)=>D4(a(c,u,d)),getAvailableSeconds:(c,u,d,h)=>D4(o(c,u,d,h))}},$T=e=>{const t=F(e.parsedValue);return be(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},Rse=Me({role:{type:String,required:!0},spinnerDate:{type:re(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:re(String),default:""},...vw}),Ise=100,Lse=600,P2="_RepeatClick",u1={beforeMount(e,t){const n=t.value,{interval:s=Ise,delay:a=Lse}=nt(n)?{}:n;let o,r;const i=()=>nt(n)?n():n.handler(),l=()=>{r&&(clearTimeout(r),r=void 0),o&&(clearInterval(o),o=void 0)},c=u=>{u.button===0&&(l(),i(),document.addEventListener("mouseup",l,{once:!0}),r=setTimeout(()=>{o=setInterval(()=>{i()},s)},a))};e[P2]={start:c,clear:l},e.addEventListener("mousedown",c)},unmounted(e){if(!e[P2])return;const{start:t,clear:n}=e[P2];t&&e.removeEventListener("mousedown",t),n&&(n(),document.removeEventListener("mouseup",n)),e[P2]=null}},Ose=["onClick"],Nse=["onMouseenter"];var Hy=j({__name:"basic-time-spinner",props:Rse,emits:[Pt,"select-range","set-option"],setup(e,{emit:t}){const n=e,s=je(xr),{isRange:a,format:o}=s.props,r=t,i=Ee("time"),{getHoursList:l,getMinutesList:c,getSecondsList:u}=OT(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let d=!1;const h=F(),g={hours:F(),minutes:F(),seconds:F()},b=k(()=>n.showSeconds?qS:qS.slice(0,2)),C=k(()=>{const{spinnerDate:K}=n,ee=K.hour(),se=K.minute(),he=K.second();return{hours:ee,minutes:se,seconds:he}}),w=k(()=>{const{hours:K,minutes:ee}=f(C),{role:se,spinnerDate:he}=n,te=a?void 0:he;return{hours:l(se,te),minutes:c(K,se,te),seconds:u(K,ee,se,te)}}),_=k(()=>{const{hours:K,minutes:ee,seconds:se}=f(C);return{hours:P4(K,23),minutes:P4(ee,59),seconds:P4(se,59)}}),x=yi(K=>{d=!1,R(K)},200),E=K=>{if(!!!n.amPmMode)return"";const se=n.amPmMode==="A";let he=K<12?" am":" pm";return se&&(he=he.toUpperCase()),he},T=K=>{let ee=[0,0];const se=o||a0,he=se.indexOf("HH"),te=se.indexOf("mm"),pe=se.indexOf("ss");switch(K){case"hours":he!==-1&&(ee=[he,he+2]);break;case"minutes":te!==-1&&(ee=[te,te+2]);break;case"seconds":pe!==-1&&(ee=[pe,pe+2]);break}const[fe,le]=ee;r("select-range",fe,le),h.value=K},R=K=>{$(K,f(C)[K])},I=()=>{R("hours"),R("minutes"),R("seconds")},M=K=>K.querySelector(`.${i.namespace.value}-scrollbar__wrap`),$=(K,ee)=>{if(n.arrowControl)return;const se=f(g[K]);se&&se.$el&&(M(se.$el).scrollTop=Math.max(0,ee*L(K)))},L=K=>{const ee=f(g[K]),se=ee==null?void 0:ee.$el.querySelector("li");return se&&Number.parseFloat(fl(se,"height"))||0},B=()=>{J(1)},q=()=>{J(-1)},J=K=>{h.value||T("hours");const ee=h.value,se=f(C)[ee],he=h.value==="hours"?24:60,te=Y(ee,se,K,he);O(ee,te),$(ee,te),ze(()=>T(ee))},Y=(K,ee,se,he)=>{let te=(ee+se+he)%he;const pe=f(w)[K];for(;pe[te]&&te!==ee;)te=(te+se+he)%he;return te},O=(K,ee)=>{if(f(w)[K][ee])return;const{hours:te,minutes:pe,seconds:fe}=f(C);let le;switch(K){case"hours":le=n.spinnerDate.hour(ee).minute(pe).second(fe);break;case"minutes":le=n.spinnerDate.hour(te).minute(ee).second(fe);break;case"seconds":le=n.spinnerDate.hour(te).minute(pe).second(ee);break}r(Pt,le)},N=(K,{value:ee,disabled:se})=>{se||(O(K,ee),T(K),$(K,ee))},V=K=>{const ee=f(g[K]);if(!ee)return;d=!0,x(K);const se=Math.min(Math.round((M(ee.$el).scrollTop-(z(K)*.5-10)/L(K)+3)/L(K)),K==="hours"?23:59);O(K,se)},z=K=>f(g[K]).$el.offsetHeight,G=()=>{const K=ee=>{const se=f(g[ee]);se&&se.$el&&(M(se.$el).onscroll=()=>{V(ee)})};K("hours"),K("minutes"),K("seconds")};St(()=>{ze(()=>{!n.arrowControl&&G(),I(),n.role==="start"&&T("hours")})});const Q=(K,ee)=>{g[ee].value=K??void 0};return r("set-option",[`${n.role}_scrollDown`,J]),r("set-option",[`${n.role}_emitSelectRange`,T]),be(()=>n.spinnerDate,()=>{d||I()}),(K,ee)=>(S(),P("div",{class:D([f(i).b("spinner"),{"has-seconds":K.showSeconds}])},[K.arrowControl?ie("v-if",!0):(S(!0),P(Ve,{key:0},yt(b.value,se=>(S(),ce(f(Cr),{key:se,ref_for:!0,ref:he=>Q(he,se),class:D(f(i).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":f(i).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:he=>T(se),onMousemove:he=>R(se)},{default:X(()=>[(S(!0),P(Ve,null,yt(w.value[se],(he,te)=>(S(),P("li",{key:te,class:D([f(i).be("spinner","item"),f(i).is("active",te===C.value[se]),f(i).is("disabled",he)]),onClick:pe=>N(se,{value:te,disabled:he})},[se==="hours"?(S(),P(Ve,{key:0},[We(ge(("0"+(K.amPmMode?te%12||12:te)).slice(-2))+ge(E(te)),1)],64)):(S(),P(Ve,{key:1},[We(ge(("0"+te).slice(-2)),1)],64))],10,Ose))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),K.arrowControl?(S(!0),P(Ve,{key:1},yt(b.value,se=>(S(),P("div",{key:se,class:D([f(i).be("spinner","wrapper"),f(i).is("arrow")]),onMouseenter:he=>T(se)},[gt((S(),ce(f(Ye),{class:D(["arrow-up",f(i).be("spinner","arrow")])},{default:X(()=>[W(f(Xm))]),_:1},8,["class"])),[[f(u1),q]]),gt((S(),ce(f(Ye),{class:D(["arrow-down",f(i).be("spinner","arrow")])},{default:X(()=>[W(f(Nr))]),_:1},8,["class"])),[[f(u1),B]]),A("ul",{class:D(f(i).be("spinner","list"))},[(S(!0),P(Ve,null,yt(_.value[se],(he,te)=>(S(),P("li",{key:te,class:D([f(i).be("spinner","item"),f(i).is("active",he===C.value[se]),f(i).is("disabled",w.value[se][he])])},[f(st)(he)?(S(),P(Ve,{key:0},[se==="hours"?(S(),P(Ve,{key:0},[We(ge(("0"+(K.amPmMode?he%12||12:he)).slice(-2))+ge(E(he)),1)],64)):(S(),P(Ve,{key:1},[We(ge(("0"+he).slice(-2)),1)],64))],64)):ie("v-if",!0)],2))),128))],2)],42,Nse))),128)):ie("v-if",!0)],2))}}),d1=j({__name:"panel-time-pick",props:Pse,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=t,a=je(xr),{arrowControl:o,disabledHours:r,disabledMinutes:i,disabledSeconds:l,defaultValue:c}=a.props,{getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:h}=NT(r,i,l),p=Ee("time"),{t:v,lang:m}=Rt(),g=F([0,2]),b=$T(n),C=k(()=>Dt(n.actualVisible)?`${p.namespace.value}-zoom-in-top`:""),w=k(()=>n.format.includes("ss")),_=k(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),x=N=>{const V=ht(N).locale(m.value),z=J(V);return V.isSame(z)},E=()=>{const N=b.value;s("pick",N,!1),ze(()=>{b.value=N})},T=(N=!1,V=!1)=>{V||s("pick",n.parsedValue,N)},R=N=>{if(!n.visible)return;const V=J(N).millisecond(0);s("pick",V,!0)},I=(N,V)=>{s("select-range",N,V),g.value=[N,V]},M=N=>{const V=n.format,z=V.indexOf("HH"),G=V.indexOf("mm"),Q=V.indexOf("ss"),K=[],ee=[];z!==-1&&(K.push(z),ee.push("hours")),G!==-1&&(K.push(G),ee.push("minutes")),Q!==-1&&w.value&&(K.push(Q),ee.push("seconds"));const he=(K.indexOf(g.value[0])+N+K.length)%K.length;L.start_emitSelectRange(ee[he])},$=N=>{const V=an(N),{left:z,right:G,up:Q,down:K}=Te;if([z,G].includes(V)){M(V===z?-1:1),N.preventDefault();return}if([Q,K].includes(V)){const ee=V===Q?-1:1;L.start_scrollDown(ee),N.preventDefault();return}},{timePickerOptions:L,onSetOption:B,getAvailableTime:q}=LT({getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:h}),J=N=>q(N,n.datetimeRole||"",!0),Y=N=>N?ht(N,n.format).locale(m.value):null,O=()=>ht(c).locale(m.value);return s("set-picker-option",["isValidValue",x]),s("set-picker-option",["parseUserInput",Y]),s("set-picker-option",["handleKeydownInput",$]),s("set-picker-option",["getRangeAvailableTime",J]),s("set-picker-option",["getDefaultValue",O]),(N,V)=>(S(),ce(bs,{name:C.value},{default:X(()=>[N.actualVisible||N.visible?(S(),P("div",{key:0,class:D(f(p).b("panel"))},[A("div",{class:D([f(p).be("panel","content"),{"has-seconds":w.value}])},[W(Hy,{ref:"spinner",role:N.datetimeRole||"start","arrow-control":f(o),"show-seconds":w.value,"am-pm-mode":_.value,"spinner-date":N.parsedValue,"disabled-hours":f(r),"disabled-minutes":f(i),"disabled-seconds":f(l),onChange:R,onSetOption:f(B),onSelectRange:I},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),A("div",{class:D(f(p).be("panel","footer"))},[A("button",{type:"button",class:D([f(p).be("panel","btn"),"cancel"]),onClick:E},ge(f(v)("el.datepicker.cancel")),3),A("button",{type:"button",class:D([f(p).be("panel","btn"),"confirm"]),onClick:V[0]||(V[0]=z=>T())},ge(f(v)("el.datepicker.confirm")),3)],2)],2)):ie("v-if",!0)]),_:1},8,["name"]))}});const $se=Me({...RT,parsedValue:{type:re(Array)}}),Dse=["disabled"];var Fse=j({__name:"panel-time-range",props:$se,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=t,a=(Z,H)=>{const ae=[];for(let de=Z;de<=H;de++)ae.push(de);return ae},{t:o,lang:r}=Rt(),i=Ee("time"),l=Ee("picker"),c=je(xr),{arrowControl:u,disabledHours:d,disabledMinutes:h,disabledSeconds:p,defaultValue:v}=c.props,m=k(()=>[i.be("range-picker","body"),i.be("panel","content"),i.is("arrow",u),x.value?"has-seconds":""]),g=k(()=>[i.be("range-picker","body"),i.be("panel","content"),i.is("arrow",u),x.value?"has-seconds":""]),b=k(()=>n.parsedValue[0]),C=k(()=>n.parsedValue[1]),w=$T(n),_=()=>{const Z=w.value;s("pick",Z,!1),ze(()=>{w.value=Z})},x=k(()=>n.format.includes("ss")),E=k(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),T=(Z=!1)=>{s("pick",[b.value,C.value],Z)},R=Z=>{$(Z.millisecond(0),C.value)},I=Z=>{$(b.value,Z.millisecond(0))},M=Z=>{const H=Z.map(de=>ht(de).locale(r.value)),ae=Q(H);return H[0].isSame(ae[0])&&H[1].isSame(ae[1])},$=(Z,H)=>{n.visible&&s("pick",[Z,H],!0)},L=k(()=>b.value>C.value),B=F([0,2]),q=(Z,H)=>{s("select-range",Z,H,"min"),B.value=[Z,H]},J=k(()=>x.value?11:8),Y=(Z,H)=>{s("select-range",Z,H,"max");const ae=f(J);B.value=[Z+ae,H+ae]},O=Z=>{const H=x.value?[0,3,6,11,14,17]:[0,3,8,11],ae=["hours","minutes"].concat(x.value?["seconds"]:[]),ye=(H.indexOf(B.value[0])+Z+H.length)%H.length,_e=H.length/2;ye<_e?he.start_emitSelectRange(ae[ye]):he.end_emitSelectRange(ae[ye-_e])},N=Z=>{const H=an(Z),{left:ae,right:de,up:ye,down:_e}=Te;if([ae,de].includes(H)){O(H===ae?-1:1),Z.preventDefault();return}if([ye,_e].includes(H)){const Se=H===ye?-1:1,Ne=B.value[0]<J.value?"start":"end";he[`${Ne}_scrollDown`](Se),Z.preventDefault();return}},V=(Z,H)=>{const ae=d?d(Z):[],de=Z==="start",_e=(H||(de?C.value:b.value)).hour(),Se=de?a(_e+1,23):a(0,_e-1);return x4(ae,Se)},z=(Z,H,ae)=>{const de=h?h(Z,H):[],ye=H==="start",_e=ae||(ye?C.value:b.value),Se=_e.hour();if(Z!==Se)return de;const Ne=_e.minute(),Fe=ye?a(Ne+1,59):a(0,Ne-1);return x4(de,Fe)},G=(Z,H,ae,de)=>{const ye=p?p(Z,H,ae):[],_e=ae==="start",Se=de||(_e?C.value:b.value),Ne=Se.hour(),Fe=Se.minute();if(Z!==Ne||H!==Fe)return ye;const Oe=Se.second(),Ce=_e?a(Oe+1,59):a(0,Oe-1);return x4(ye,Ce)},Q=([Z,H])=>[te(Z,"start",!0,H),te(H,"end",!1,Z)],{getAvailableHours:K,getAvailableMinutes:ee,getAvailableSeconds:se}=NT(V,z,G),{timePickerOptions:he,getAvailableTime:te,onSetOption:pe}=LT({getAvailableHours:K,getAvailableMinutes:ee,getAvailableSeconds:se}),fe=Z=>Z?ke(Z)?Z.map(H=>ht(H,n.format).locale(r.value)):ht(Z,n.format).locale(r.value):null,le=()=>{if(ke(v))return v.map(H=>ht(H).locale(r.value));const Z=ht(v).locale(r.value);return[Z,Z.add(60,"m")]};return s("set-picker-option",["parseUserInput",fe]),s("set-picker-option",["isValidValue",M]),s("set-picker-option",["handleKeydownInput",N]),s("set-picker-option",["getDefaultValue",le]),s("set-picker-option",["getRangeAvailableTime",Q]),(Z,H)=>Z.actualVisible?(S(),P("div",{key:0,class:D([f(i).b("range-picker"),f(l).b("panel")])},[A("div",{class:D(f(i).be("range-picker","content"))},[A("div",{class:D(f(i).be("range-picker","cell"))},[A("div",{class:D(f(i).be("range-picker","header"))},ge(f(o)("el.datepicker.startTime")),3),A("div",{class:D(m.value)},[W(Hy,{ref:"minSpinner",role:"start","show-seconds":x.value,"am-pm-mode":E.value,"arrow-control":f(u),"spinner-date":b.value,"disabled-hours":V,"disabled-minutes":z,"disabled-seconds":G,onChange:R,onSetOption:f(pe),onSelectRange:q},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),A("div",{class:D(f(i).be("range-picker","cell"))},[A("div",{class:D(f(i).be("range-picker","header"))},ge(f(o)("el.datepicker.endTime")),3),A("div",{class:D(g.value)},[W(Hy,{ref:"maxSpinner",role:"end","show-seconds":x.value,"am-pm-mode":E.value,"arrow-control":f(u),"spinner-date":C.value,"disabled-hours":V,"disabled-minutes":z,"disabled-seconds":G,onChange:I,onSetOption:f(pe),onSelectRange:Y},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),A("div",{class:D(f(i).be("panel","footer"))},[A("button",{type:"button",class:D([f(i).be("panel","btn"),"cancel"]),onClick:H[0]||(H[0]=ae=>_())},ge(f(o)("el.datepicker.cancel")),3),A("button",{type:"button",class:D([f(i).be("panel","btn"),"confirm"]),disabled:L.value,onClick:H[1]||(H[1]=ae=>T())},ge(f(o)("el.datepicker.confirm")),11,Dse)],2)],2)):ie("v-if",!0)}});ht.extend(hw);var Bse=j({name:"ElTimePicker",install:null,props:{...mw,isRange:Boolean},emits:[ct],setup(e,t){const n=F(),[s,a]=e.isRange?["timerange",Fse]:["time",d1],o=r=>t.emit(ct,r);return Mt(pw,e.popperOptions),t.expose({focus:()=>{var r;(r=n.value)==null||r.focus()},blur:()=>{var r;(r=n.value)==null||r.blur()},handleOpen:()=>{var r;(r=n.value)==null||r.handleOpen()},handleClose:()=>{var r;(r=n.value)==null||r.handleClose()}}),()=>{var r;const i=(r=e.format)!=null?r:a0;return W(IT,_t(e,{ref:n,type:s,format:i,"onUpdate:modelValue":o}),{default:l=>W(a,l,null)})}}});const Vse=pt(Bse);var DT={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Bl,function(){return function(n,s){var a=s.prototype,o=a.format;a.format=function(r){var i=this,l=this.$locale();if(!this.isValid())return o.bind(this)(r);var c=this.$utils(),u=(r||"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(d){switch(d){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return l.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return l.ordinal(i.week(),"W");case"w":case"ww":return c.s(i.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(i.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(i.$H===0?24:i.$H),d==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return d}});return o.bind(this)(u)}}})})(DT);var zse=DT.exports;const Hse=Vl(zse);var FT={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Bl,function(){var n="week",s="year";return function(a,o,r){var i=o.prototype;i.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=r(this).startOf(s).add(1,s).date(c),d=r(this).endOf(n);if(u.isBefore(d))return 1}var h=r(this).startOf(s).date(c).startOf(n).subtract(1,"millisecond"),p=this.diff(h,n,!0);return p<0?r(this).startOf("week").week():Math.ceil(p)},i.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(FT);var Wse=FT.exports;const jse=Vl(Wse);var BT={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Bl,function(){return function(n,s){s.prototype.weekYear=function(){var a=this.month(),o=this.week(),r=this.year();return o===1&&a===11?r+1:a===0&&o>=52?r-1:r}}})})(BT);var Kse=BT.exports;const Use=Vl(Kse);var VT={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Bl,function(){return function(n,s,a){s.prototype.dayOfYear=function(o){var r=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return o==null?r:this.add(o-r,"day")}}})})(VT);var qse=VT.exports;const Gse=Vl(qse);var zT={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Bl,function(){return function(n,s){s.prototype.isSameOrAfter=function(a,o){return this.isSame(a,o)||this.isAfter(a,o)}}})})(zT);var Yse=zT.exports;const Xse=Vl(Yse);var HT={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Bl,function(){return function(n,s){s.prototype.isSameOrBefore=function(a,o){return this.isSame(a,o)||this.isBefore(a,o)}}})})(HT);var Jse=HT.exports;const Zse=Vl(Jse),Qse=Me({valueFormat:String,dateFormat:String,timeFormat:String,disabled:{type:Boolean,default:void 0},modelValue:{type:re([Date,Array,String,Number]),default:""},defaultValue:{type:re([Date,Array])},defaultTime:{type:re([Date,Array])},isRange:Boolean,...vw,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:re(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}}),gw=Symbol("rootPickerContextKey"),r2="ElIsDefaultFormat",eae=["date","dates","year","years","month","months","week","range"],bw=Me({cellClassName:{type:re(Function)},disabledDate:{type:re(Function)},date:{type:re(Object),required:!0},minDate:{type:re(Object)},maxDate:{type:re(Object)},parsedValue:{type:re([Object,Array])},rangeState:{type:re(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),WT=Me({type:{type:re(String),required:!0,values:Lee},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}}),yw=Me({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:re(Array)}}),ww=e=>({type:String,values:eae,default:e}),tae=Me({...WT,parsedValue:{type:re([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),Up=e=>{if(!ke(e))return!1;const[t,n]=e;return ht.isDayjs(t)&&ht.isDayjs(n)&&ht(t).isValid()&&ht(n).isValid()&&t.isSameOrBefore(n)},Db=(e,{lang:t,step:n=1,unit:s,unlinkPanels:a})=>{let o;if(ke(e)){let[r,i]=e.map(l=>ht(l).locale(t));return a||(i=r.add(n,s)),[r,i]}else e?o=ht(e):o=ht();return o=o.locale(t),[o,o.add(n,s)]},nae=(e,t,{columnIndexOffset:n,startDate:s,nextEndDate:a,now:o,unit:r,relativeDateGetter:i,setCellMetadata:l,setRowMetadata:c})=>{for(let u=0;u<e.row;u++){const d=t[u];for(let h=0;h<e.column;h++){let p=d[h+n];p||(p={row:u,column:h,type:"normal",inRange:!1,start:!1,end:!1});const v=u*e.column+h,m=i(v);p.dayjs=m,p.date=m.toDate(),p.timestamp=m.valueOf(),p.type="normal",p.inRange=!!(s&&m.isSameOrAfter(s,r)&&a&&m.isSameOrBefore(a,r))||!!(s&&m.isSameOrBefore(s,r)&&a&&m.isSameOrAfter(a,r)),s!=null&&s.isSameOrAfter(a)?(p.start=!!a&&m.isSame(a,r),p.end=s&&m.isSame(s,r)):(p.start=!!s&&m.isSame(s,r),p.end=!!a&&m.isSame(a,r)),m.isSame(o,r)&&(p.type="today"),l==null||l(p,{rowIndex:u,columnIndex:h}),d[h+n]=p}c==null||c(d)}},f1=(e,t,n,s)=>{const a=ht().locale(s).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second()),o=a.daysInMonth();return Fc(o).map(r=>a.add(r,"day").toDate())},o0=(e,t,n,s,a)=>{const o=ht().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),r=f1(e,t,n,s).find(i=>!(a!=null&&a(i)));return r?ht(r).locale(s):o.locale(s)},h1=(e,t,n)=>{const s=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const a=e.month();if(!f1(e,s,a,t).every(n))return o0(e,s,a,t,n);for(let o=0;o<12;o++)if(!f1(e,s,o,t).every(n))return o0(e,s,o,t,n);return e},r0=(e,t,n,s)=>{if(ke(e))return e.map(a=>r0(a,t,n,s));if(Xe(e)){const a=s!=null&&s.value?ht(e):ht(e,t);if(!a.isValid())return a}return ht(e,t).locale(n)},sae=Me({...bw,showWeekNumber:Boolean,selectionMode:ww("date")}),aae=["changerange","pick","select"],p1=(e="")=>["normal","today"].includes(e),oae=(e,t)=>{const{lang:n}=Rt(),s=F(),a=F(),o=F(),r=F(),i=F([[],[],[],[],[],[]]);let l=!1;const c=e.date.$locale().weekStart||7,u=e.date.locale("en").localeData().weekdaysShort().map(V=>V.toLowerCase()),d=k(()=>c>3?7-c:-c),h=k(()=>{const V=e.date.startOf("month");return V.subtract(V.day()||7,"day")}),p=k(()=>u.concat(u).slice(c,c+7)),v=k(()=>Zg(f(_)).some(V=>V.isCurrent)),m=k(()=>{const V=e.date.startOf("month"),z=V.day()||7,G=V.daysInMonth(),Q=V.subtract(1,"month").daysInMonth();return{startOfMonthDay:z,dateCountOfMonth:G,dateCountOfLastMonth:Q}}),g=k(()=>e.selectionMode==="dates"?va(e.parsedValue):[]),b=(V,{count:z,rowIndex:G,columnIndex:Q})=>{const{startOfMonthDay:K,dateCountOfMonth:ee,dateCountOfLastMonth:se}=f(m),he=f(d);if(G>=0&&G<=1){const te=K+he<0?7+K+he:K+he;if(Q+G*7>=te)return V.text=z,!0;V.text=se-(te-Q%7)+1+G*7,V.type="prev-month"}else return z<=ee?V.text=z:(V.text=z-ee,V.type="next-month"),!0;return!1},C=(V,{columnIndex:z,rowIndex:G},Q)=>{const{disabledDate:K,cellClassName:ee}=e,se=f(g),he=b(V,{count:Q,rowIndex:G,columnIndex:z}),te=V.dayjs.toDate();return V.selected=se.find(pe=>pe.isSame(V.dayjs,"day")),V.isSelected=!!V.selected,V.isCurrent=E(V),V.disabled=K==null?void 0:K(te),V.customClass=ee==null?void 0:ee(te),he},w=V=>{if(e.selectionMode==="week"){const[z,G]=e.showWeekNumber?[1,7]:[0,6],Q=N(V[z+1]);V[z].inRange=Q,V[z].start=Q,V[G].inRange=Q,V[G].end=Q}},_=k(()=>{const{minDate:V,maxDate:z,rangeState:G,showWeekNumber:Q}=e,K=f(d),ee=f(i),se="day";let he=1;if(nae({row:6,column:7},ee,{startDate:V,columnIndexOffset:Q?1:0,nextEndDate:G.endDate||z||G.selecting&&V||null,now:ht().locale(f(n)).startOf(se),unit:se,relativeDateGetter:te=>f(h).add(te-K,se),setCellMetadata:(...te)=>{C(...te,he)&&(he+=1)},setRowMetadata:w}),Q)for(let te=0;te<6;te++)ee[te][1].dayjs&&(ee[te][0]={type:"week",text:ee[te][1].dayjs.week()});return ee});be(()=>e.date,async()=>{var V;(V=f(s))!=null&&V.contains(document.activeElement)&&(await ze(),await x())});const x=async()=>{var V;return(V=f(a))==null?void 0:V.focus()},E=V=>e.selectionMode==="date"&&p1(V.type)&&T(V,e.parsedValue),T=(V,z)=>z?ht(z).locale(f(n)).isSame(e.date.date(Number(V.text)),"day"):!1,R=(V,z)=>{const G=f(m).startOfMonthDay,Q=f(d),K=G+Q<0?7+G+Q:G+Q,ee=V*7+(z-(e.showWeekNumber?1:0));return e.date.startOf("month").subtract(K,"day").add(ee,"day")},I=V=>{var z;if(!e.rangeState.selecting)return;let G=V.target;if(G.tagName==="SPAN"&&(G=(z=G.parentNode)==null?void 0:z.parentNode),G.tagName==="DIV"&&(G=G.parentNode),G.tagName!=="TD")return;const Q=G.parentNode.rowIndex-1,K=G.cellIndex;f(_)[Q][K].disabled||(Q!==f(o)||K!==f(r))&&(o.value=Q,r.value=K,t("changerange",{selecting:!0,endDate:R(Q,K)}))},M=V=>!f(v)&&(V==null?void 0:V.text)===1&&p1(V.type)||V.isCurrent,$=V=>{l||f(v)||e.selectionMode!=="date"||O(V,!0)},L=V=>{V.target.closest("td")&&(l=!0)},B=V=>{V.target.closest("td")&&(l=!1)},q=V=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:V,maxDate:null}),t("select",!0)):(V>=e.minDate?t("pick",{minDate:e.minDate,maxDate:V}):t("pick",{minDate:V,maxDate:e.minDate}),t("select",!1))},J=V=>{const z=V.week(),G=`${V.year()}w${z}`;t("pick",{year:V.year(),week:z,value:G,date:V.startOf("week")})},Y=(V,z)=>{const G=z?va(e.parsedValue).filter(Q=>(Q==null?void 0:Q.valueOf())!==V.valueOf()):va(e.parsedValue).concat([V]);t("pick",G)},O=(V,z=!1)=>{if(e.disabled)return;const G=V.target.closest("td");if(!G)return;const Q=G.parentNode.rowIndex-1,K=G.cellIndex,ee=f(_)[Q][K];if(ee.disabled||ee.type==="week")return;const se=R(Q,K);switch(e.selectionMode){case"range":{q(se);break}case"date":{t("pick",se,z);break}case"week":{J(se);break}case"dates":{Y(se,!!ee.selected);break}}},N=V=>{if(e.selectionMode!=="week")return!1;let z=e.date.startOf("day");if(V.type==="prev-month"&&(z=z.subtract(1,"month")),V.type==="next-month"&&(z=z.add(1,"month")),z=z.date(Number.parseInt(V.text,10)),e.parsedValue&&!ke(e.parsedValue)){const G=(e.parsedValue.day()-c+7)%7-1;return e.parsedValue.subtract(G,"day").isSame(z,"day")}return!1};return{WEEKS:p,rows:_,tbodyRef:s,currentCellRef:a,focus:x,isCurrent:E,isWeekActive:N,isSelectedCell:M,handlePickDate:O,handleMouseUp:B,handleMouseDown:L,handleMouseMove:I,handleFocus:$}},rae=(e,{isCurrent:t,isWeekActive:n})=>{const s=Ee("date-table"),{t:a}=Rt(),o=k(()=>[s.b(),s.is("week-mode",e.selectionMode==="week"&&!e.disabled)]),r=k(()=>a("el.datepicker.dateTablePrompt")),i=c=>{const u=[];return p1(c.type)&&!c.disabled?(u.push("available"),c.type==="today"&&u.push("today")):u.push(c.type),t(c)&&u.push("current"),c.inRange&&(p1(c.type)||e.selectionMode==="week")&&(u.push("in-range"),c.start&&u.push("start-date"),c.end&&u.push("end-date")),(c.disabled||e.disabled)&&u.push("disabled"),c.selected&&u.push("selected"),c.customClass&&u.push(c.customClass),u.join(" ")},l=c=>[s.e("row"),{current:n(c)}];return{tableKls:o,tableLabel:r,weekHeaderClass:s.e("week-header"),getCellClasses:i,getRowKls:l,t:a}},iae=Me({cell:{type:re(Object)}});var _w=j({name:"ElDatePickerCell",props:iae,setup(e){const t=Ee("date-table-cell"),{slots:n}=je(gw);return()=>{const{cell:s}=e;return ue(n,"default",{...s},()=>{var a;return[W("div",{class:t.b()},[W("span",{class:t.e("text")},[(a=s==null?void 0:s.renderText)!=null?a:s==null?void 0:s.text])])]})}}});const lae=["aria-label"],cae=["aria-label"],uae=["aria-current","aria-selected","tabindex","aria-disabled"];var Wy=j({__name:"basic-date-table",props:sae,emits:aae,setup(e,{expose:t,emit:n}){const s=e,a=n,{WEEKS:o,rows:r,tbodyRef:i,currentCellRef:l,focus:c,isCurrent:u,isWeekActive:d,isSelectedCell:h,handlePickDate:p,handleMouseUp:v,handleMouseDown:m,handleMouseMove:g,handleFocus:b}=oae(s,a),{tableLabel:C,tableKls:w,getCellClasses:_,getRowKls:x,weekHeaderClass:E,t:T}=rae(s,{isCurrent:u,isWeekActive:d});let R=!1;return qt(()=>{R=!0}),t({focus:c}),(I,M)=>(S(),P("table",{"aria-label":f(C),class:D(f(w)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:M[1]||(M[1]=(...$)=>f(p)&&f(p)(...$)),onMousemove:M[2]||(M[2]=(...$)=>f(g)&&f(g)(...$)),onMousedown:M[3]||(M[3]=(...$)=>f(m)&&f(m)(...$)),onMouseup:M[4]||(M[4]=(...$)=>f(v)&&f(v)(...$))},[A("tbody",{ref_key:"tbodyRef",ref:i},[A("tr",null,[I.showWeekNumber?(S(),P("th",{key:0,scope:"col",class:D(f(E))},null,2)):ie("v-if",!0),(S(!0),P(Ve,null,yt(f(o),($,L)=>(S(),P("th",{key:L,"aria-label":f(T)("el.datepicker.weeksFull."+$),scope:"col"},ge(f(T)("el.datepicker.weeks."+$)),9,cae))),128))]),(S(!0),P(Ve,null,yt(f(r),($,L)=>(S(),P("tr",{key:L,class:D(f(x)(I.showWeekNumber?$[2]:$[1]))},[(S(!0),P(Ve,null,yt($,(B,q)=>(S(),P("td",{key:`${L}.${q}`,ref_for:!0,ref:J=>!f(R)&&f(h)(B)&&(l.value=J),class:D(f(_)(B)),"aria-current":B.isCurrent?"date":void 0,"aria-selected":B.isCurrent,tabindex:I.disabled?void 0:f(h)(B)?0:-1,"aria-disabled":I.disabled,onFocus:M[0]||(M[0]=(...J)=>f(b)&&f(b)(...J))},[W(f(_w),{cell:B},null,8,["cell"])],42,uae))),128))],2))),128))],512)],42,lae))}});const dae=Me({...bw,selectionMode:ww("month")}),fae=["aria-label"],hae=["aria-selected","aria-label","tabindex","onKeydown"];var qp=j({__name:"basic-month-table",props:dae,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("month-table"),{t:r,lang:i}=Rt(),l=F(),c=F(),u=F(s.date.locale("en").localeData().monthsShort().map(_=>_.toLowerCase())),d=F([[],[],[]]),h=F(),p=F(),v=k(()=>{var _,x,E;const T=d.value,R=ht().locale(i.value).startOf("month");for(let I=0;I<3;I++){const M=T[I];for(let $=0;$<4;$++){const L=M[$]||(M[$]={row:I,column:$,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});L.type="normal";const B=I*4+$,q=s.date.startOf("year").month(B),J=s.rangeState.endDate||s.maxDate||s.rangeState.selecting&&s.minDate||null;L.inRange=!!(s.minDate&&q.isSameOrAfter(s.minDate,"month")&&J&&q.isSameOrBefore(J,"month"))||!!(s.minDate&&q.isSameOrBefore(s.minDate,"month")&&J&&q.isSameOrAfter(J,"month")),(_=s.minDate)!=null&&_.isSameOrAfter(J)?(L.start=!!(J&&q.isSame(J,"month")),L.end=s.minDate&&q.isSame(s.minDate,"month")):(L.start=!!(s.minDate&&q.isSame(s.minDate,"month")),L.end=!!(J&&q.isSame(J,"month"))),R.isSame(q)&&(L.type="today");const O=q.toDate();L.text=B,L.disabled=((x=s.disabledDate)==null?void 0:x.call(s,O))||!1,L.date=O,L.customClass=(E=s.cellClassName)==null?void 0:E.call(s,O),L.dayjs=q,L.timestamp=q.valueOf(),L.isSelected=b(L)}}return T}),m=()=>{var _;(_=c.value)==null||_.focus()},g=_=>{const x={},E=s.date.year(),T=new Date,R=_.text;return x.disabled=s.disabled||(s.disabledDate?f1(s.date,E,R,i.value).every(s.disabledDate):!1),x.current=va(s.parsedValue).some(I=>ht.isDayjs(I)&&I.year()===E&&I.month()===R),x.today=T.getFullYear()===E&&T.getMonth()===R,_.customClass&&(x[_.customClass]=!0),_.inRange&&(x["in-range"]=!0,_.start&&(x["start-date"]=!0),_.end&&(x["end-date"]=!0)),x},b=_=>{const x=s.date.year(),E=_.text;return va(s.date).some(T=>T.year()===x&&T.month()===E)},C=_=>{var x;if(!s.rangeState.selecting)return;let E=_.target;if(E.tagName==="SPAN"&&(E=(x=E.parentNode)==null?void 0:x.parentNode),E.tagName==="DIV"&&(E=E.parentNode),E.tagName!=="TD")return;const T=E.parentNode.rowIndex,R=E.cellIndex;v.value[T][R].disabled||(T!==h.value||R!==p.value)&&(h.value=T,p.value=R,a("changerange",{selecting:!0,endDate:s.date.startOf("year").month(T*4+R)}))},w=_=>{var x;if(s.disabled)return;const E=(x=_.target)==null?void 0:x.closest("td");if((E==null?void 0:E.tagName)!=="TD"||fi(E,"disabled"))return;const T=E.cellIndex,I=E.parentNode.rowIndex*4+T,M=s.date.startOf("year").month(I);if(s.selectionMode==="months"){if(_.type==="keydown"){a("pick",va(s.parsedValue),!1);return}const $=o0(s.date,s.date.year(),I,i.value,s.disabledDate),L=fi(E,"current")?va(s.parsedValue).filter(B=>(B==null?void 0:B.year())!==$.year()||(B==null?void 0:B.month())!==$.month()):va(s.parsedValue).concat([ht($)]);a("pick",L)}else s.selectionMode==="range"?s.rangeState.selecting?(s.minDate&&M>=s.minDate?a("pick",{minDate:s.minDate,maxDate:M}):a("pick",{minDate:M,maxDate:s.minDate}),a("select",!1)):(a("pick",{minDate:M,maxDate:null}),a("select",!0)):a("pick",I)};return be(()=>s.date,async()=>{var _,x;(_=l.value)!=null&&_.contains(document.activeElement)&&(await ze(),(x=c.value)==null||x.focus())}),t({focus:m}),(_,x)=>(S(),P("table",{role:"grid","aria-label":f(r)("el.datepicker.monthTablePrompt"),class:D(f(o).b()),onClick:w,onMousemove:C},[A("tbody",{ref_key:"tbodyRef",ref:l},[(S(!0),P(Ve,null,yt(v.value,(E,T)=>(S(),P("tr",{key:T},[(S(!0),P(Ve,null,yt(E,(R,I)=>(S(),P("td",{key:I,ref_for:!0,ref:M=>R.isSelected&&(c.value=M),class:D(g(R)),"aria-selected":!!R.isSelected,"aria-label":f(r)(`el.datepicker.month${+R.text+1}`),tabindex:R.isSelected?0:-1,onKeydown:[Ln(it(w,["prevent","stop"]),["space"]),Ln(it(w,["prevent","stop"]),["enter"])]},[W(f(_w),{cell:{...R,renderText:f(r)("el.datepicker.months."+u.value[R.text])}},null,8,["cell"])],42,hae))),128))]))),128))],512)],42,fae))}});const pae=Me({...bw,selectionMode:ww("year")}),vae=["aria-label"],mae=["aria-selected","aria-label","tabindex","onKeydown"];var Gp=j({__name:"basic-year-table",props:pae,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const s=(x,E)=>{const T=ht(String(x)).locale(E).startOf("year"),I=T.endOf("year").dayOfYear();return Fc(I).map(M=>T.add(M,"day").toDate())},a=e,o=n,r=Ee("year-table"),{t:i,lang:l}=Rt(),c=F(),u=F(),d=k(()=>Math.floor(a.date.year()/10)*10),h=F([[],[],[]]),p=F(),v=F(),m=k(()=>{var x,E,T;const R=h.value,I=ht().locale(l.value).startOf("year");for(let M=0;M<3;M++){const $=R[M];for(let L=0;L<4&&!(M*4+L>=10);L++){let B=$[L];B||(B={row:M,column:L,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}),B.type="normal";const q=M*4+L+d.value,J=ht().year(q),Y=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;B.inRange=!!(a.minDate&&J.isSameOrAfter(a.minDate,"year")&&Y&&J.isSameOrBefore(Y,"year"))||!!(a.minDate&&J.isSameOrBefore(a.minDate,"year")&&Y&&J.isSameOrAfter(Y,"year")),(x=a.minDate)!=null&&x.isSameOrAfter(Y)?(B.start=!!(Y&&J.isSame(Y,"year")),B.end=!!(a.minDate&&J.isSame(a.minDate,"year"))):(B.start=!!(a.minDate&&J.isSame(a.minDate,"year")),B.end=!!(Y&&J.isSame(Y,"year"))),I.isSame(J)&&(B.type="today"),B.text=q;const N=J.toDate();B.disabled=((E=a.disabledDate)==null?void 0:E.call(a,N))||!1,B.date=N,B.customClass=(T=a.cellClassName)==null?void 0:T.call(a,N),B.dayjs=J,B.timestamp=J.valueOf(),B.isSelected=C(B),$[L]=B}}return R}),g=()=>{var x;(x=u.value)==null||x.focus()},b=x=>{const E={},T=ht().locale(l.value),R=x.text;return E.disabled=a.disabled||(a.disabledDate?s(R,l.value).every(a.disabledDate):!1),E.today=T.year()===R,E.current=va(a.parsedValue).some(I=>I.year()===R),x.customClass&&(E[x.customClass]=!0),x.inRange&&(E["in-range"]=!0,x.start&&(E["start-date"]=!0),x.end&&(E["end-date"]=!0)),E},C=x=>{const E=x.text;return va(a.date).some(T=>T.year()===E)},w=x=>{var E;if(a.disabled)return;const T=(E=x.target)==null?void 0:E.closest("td");if(!T||!T.textContent||fi(T,"disabled"))return;const R=T.cellIndex,M=T.parentNode.rowIndex*4+R+d.value,$=ht().year(M);if(a.selectionMode==="range")a.rangeState.selecting?(a.minDate&&$>=a.minDate?o("pick",{minDate:a.minDate,maxDate:$}):o("pick",{minDate:$,maxDate:a.minDate}),o("select",!1)):(o("pick",{minDate:$,maxDate:null}),o("select",!0));else if(a.selectionMode==="years"){if(x.type==="keydown"){o("pick",va(a.parsedValue),!1);return}const L=h1($.startOf("year"),l.value,a.disabledDate),B=fi(T,"current")?va(a.parsedValue).filter(q=>(q==null?void 0:q.year())!==M):va(a.parsedValue).concat([L]);o("pick",B)}else o("pick",M)},_=x=>{var E;if(!a.rangeState.selecting)return;const T=(E=x.target)==null?void 0:E.closest("td");if(!T)return;const R=T.parentNode.rowIndex,I=T.cellIndex;m.value[R][I].disabled||(R!==p.value||I!==v.value)&&(p.value=R,v.value=I,o("changerange",{selecting:!0,endDate:ht().year(d.value).add(R*4+I,"year")}))};return be(()=>a.date,async()=>{var x,E;(x=c.value)!=null&&x.contains(document.activeElement)&&(await ze(),(E=u.value)==null||E.focus())}),t({focus:g}),(x,E)=>(S(),P("table",{role:"grid","aria-label":f(i)("el.datepicker.yearTablePrompt"),class:D(f(r).b()),onClick:w,onMousemove:_},[A("tbody",{ref_key:"tbodyRef",ref:c},[(S(!0),P(Ve,null,yt(m.value,(T,R)=>(S(),P("tr",{key:R},[(S(!0),P(Ve,null,yt(T,(I,M)=>(S(),P("td",{key:`${R}_${M}`,ref_for:!0,ref:$=>I.isSelected&&(u.value=$),class:D(["available",b(I)]),"aria-selected":I.isSelected,"aria-label":String(I.text),tabindex:I.isSelected?0:-1,onKeydown:[Ln(it(w,["prevent","stop"]),["space"]),Ln(it(w,["prevent","stop"]),["enter"])]},[W(f(_w),{cell:I},null,8,["cell"])],42,mae))),128))]))),128))],512)],42,vae))}});const gae=["disabled","onClick"],bae=["aria-label","disabled"],yae=["aria-label","disabled"],wae=["tabindex","aria-disabled"],_ae=["tabindex","aria-disabled"],Cae=["aria-label","disabled"],Sae=["aria-label","disabled"];var xae=j({__name:"panel-date-pick",props:tae,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=(xe,Ue,we)=>!0,s=e,a=t,o=Ee("picker-panel"),r=Ee("date-picker"),i=Nl(),l=Hn(),{t:c,lang:u}=Rt(),d=je(xr),h=je(r2,void 0),{shortcuts:p,disabledDate:v,cellClassName:m,defaultTime:g}=d.props,b=Jt(d.props,"defaultValue"),C=F(),w=F(ht().locale(u.value)),_=F(!1);let x=!1;const E=k(()=>ht(g).locale(u.value)),T=k(()=>w.value.month()),R=k(()=>w.value.year()),I=F([]),M=F(null),$=F(null),L=xe=>I.value.length>0?n(xe,I.value,s.format||"HH:mm:ss"):!0,B=xe=>g&&!Ne.value&&!_.value&&!x?E.value.year(xe.year()).month(xe.month()).date(xe.date()):fe.value?xe.millisecond(0):xe.startOf("day"),q=(xe,...Ue)=>{if(!xe)a("pick",xe,...Ue);else if(ke(xe)){const we=xe.map(B);a("pick",we,...Ue)}else a("pick",B(xe),...Ue);M.value=null,$.value=null,_.value=!1,x=!1},J=async(xe,Ue)=>{if(G.value==="date"&&ht.isDayjs(xe)){const we=L0(s.parsedValue);let Ge=we?we.year(xe.year()).month(xe.month()).date(xe.date()):xe;L(Ge),w.value=Ge,q(Ge,fe.value||Ue)}else G.value==="week"?q(xe.date):G.value==="dates"&&q(xe,!0)},Y=xe=>{const Ue=xe?"add":"subtract";w.value=w.value[Ue](1,"month"),Et("month")},O=xe=>{const Ue=w.value,we=xe?"add":"subtract";w.value=N.value==="year"?Ue[we](10,"year"):Ue[we](1,"year"),Et("year")},N=F("date"),V=k(()=>{const xe=c("el.datepicker.year");if(N.value==="year"){const Ue=Math.floor(R.value/10)*10;return xe?`${Ue} ${xe} - ${Ue+9} ${xe}`:`${Ue} - ${Ue+9}`}return`${R.value} ${xe}`}),z=xe=>{const Ue=nt(xe.value)?xe.value():xe.value;if(Ue){x=!0,q(ht(Ue).locale(u.value));return}xe.onClick&&xe.onClick({attrs:i,slots:l,emit:a})},G=k(()=>{const{type:xe}=s;return["week","month","months","year","years","dates"].includes(xe)?xe:"date"}),Q=k(()=>G.value==="dates"||G.value==="months"||G.value==="years"),K=k(()=>G.value==="date"?N.value:G.value),ee=k(()=>!!p.length),se=async(xe,Ue)=>{G.value==="month"?(w.value=o0(w.value,w.value.year(),xe,u.value,v),q(w.value,!1)):G.value==="months"?q(xe,Ue??!0):(w.value=o0(w.value,w.value.year(),xe,u.value,v),N.value="date",["month","year","date","week"].includes(G.value)&&(q(w.value,!0),await ze(),Ft())),Et("month")},he=async(xe,Ue)=>{if(G.value==="year"){const we=w.value.startOf("year").year(xe);w.value=h1(we,u.value,v),q(w.value,!1)}else if(G.value==="years")q(xe,Ue??!0);else{const we=w.value.year(xe);w.value=h1(we,u.value,v),N.value="month",["month","year","date","week"].includes(G.value)&&(q(w.value,!0),await ze(),Ft())}Et("year")},te=Pn(),pe=async xe=>{te.value||(N.value=xe,await ze(),Ft())},fe=k(()=>s.type==="datetime"||s.type==="datetimerange"),le=k(()=>{const xe=fe.value||G.value==="dates",Ue=G.value==="years",we=G.value==="months",Ge=N.value==="date",wt=N.value==="year",Ut=N.value==="month";return xe&&Ge||Ue&&wt||we&&Ut}),Z=k(()=>!Q.value&&s.showNow||s.showConfirm),H=k(()=>v?s.parsedValue?ke(s.parsedValue)?v(s.parsedValue[0].toDate()):v(s.parsedValue.toDate()):!0:!1),ae=()=>{if(Q.value)q(s.parsedValue);else{let xe=L0(s.parsedValue);if(!xe){const Ue=ht(g).locale(u.value),we=et();xe=Ue.year(we.year()).month(we.month()).date(we.date())}w.value=xe,q(xe)}},de=k(()=>v?v(ht().locale(u.value).toDate()):!1),ye=()=>{const Ue=ht().locale(u.value).toDate();_.value=!0,(!v||!v(Ue))&&L(Ue)&&(w.value=ht().locale(u.value),q(w.value))},_e=k(()=>s.timeFormat||zA(s.format)||a0),Se=k(()=>s.dateFormat||VA(s.format)||tc),Ne=k(()=>$.value?$.value:!s.parsedValue&&!b.value?void 0:(L0(s.parsedValue)||w.value).format(_e.value)),Fe=k(()=>M.value?M.value:!s.parsedValue&&!b.value?void 0:(L0(s.parsedValue)||w.value).format(Se.value)),Oe=F(!1),Ce=()=>{Oe.value=!0},Ie=()=>{Oe.value=!1},Pe=xe=>({hour:xe.hour(),minute:xe.minute(),second:xe.second(),year:xe.year(),month:xe.month(),date:xe.date()}),He=(xe,Ue,we)=>{const{hour:Ge,minute:wt,second:Ut}=Pe(xe),gn=L0(s.parsedValue),bn=gn?gn.hour(Ge).minute(wt).second(Ut):xe;w.value=bn,q(w.value,!0),we||(Oe.value=Ue)},Qe=xe=>{const Ue=ht(xe,_e.value).locale(u.value);if(Ue.isValid()&&L(Ue)){const{year:we,month:Ge,date:wt}=Pe(w.value);w.value=Ue.year(we).month(Ge).date(wt),$.value=null,Oe.value=!1,q(w.value,!0)}},rt=xe=>{const Ue=r0(xe,Se.value,u.value,h);if(Ue.isValid()){if(v&&v(Ue.toDate()))return;const{hour:we,minute:Ge,second:wt}=Pe(w.value);w.value=Ue.hour(we).minute(Ge).second(wt),M.value=null,q(w.value,!0)}},De=xe=>ht.isDayjs(xe)&&xe.isValid()&&(v?!v(xe.toDate()):!0),Ke=xe=>r0(xe,s.format,u.value,h),et=()=>{const xe=ht(b.value).locale(u.value);if(!b.value){const Ue=E.value;return ht().hour(Ue.hour()).minute(Ue.minute()).second(Ue.second()).locale(u.value)}return xe},Ft=()=>{var xe;["week","month","year","date"].includes(G.value)&&((xe=C.value)==null||xe.focus())},Ht=()=>{Ft(),G.value==="week"&&vt(Te.down)},at=xe=>{const Ue=an(xe);[Te.up,Te.down,Te.left,Te.right,Te.home,Te.end,Te.pageUp,Te.pageDown].includes(Ue)&&(vt(Ue),xe.stopPropagation(),xe.preventDefault()),[Te.enter,Te.space,Te.numpadEnter].includes(Ue)&&M.value===null&&$.value===null&&(xe.preventDefault(),q(w.value,!1))},vt=xe=>{var Ue;const{up:we,down:Ge,left:wt,right:Ut,home:gn,end:bn,pageUp:Be,pageDown:ve}=Te,me={year:{[we]:-4,[Ge]:4,[wt]:-1,[Ut]:1,offset:(Je,Ae)=>Je.setFullYear(Je.getFullYear()+Ae)},month:{[we]:-4,[Ge]:4,[wt]:-1,[Ut]:1,offset:(Je,Ae)=>Je.setMonth(Je.getMonth()+Ae)},week:{[we]:-1,[Ge]:1,[wt]:-1,[Ut]:1,offset:(Je,Ae)=>Je.setDate(Je.getDate()+Ae*7)},date:{[we]:-7,[Ge]:7,[wt]:-1,[Ut]:1,[gn]:Je=>-Je.getDay(),[bn]:Je=>-Je.getDay()+6,[Be]:Je=>-new Date(Je.getFullYear(),Je.getMonth(),0).getDate(),[ve]:Je=>new Date(Je.getFullYear(),Je.getMonth()+1,0).getDate(),offset:(Je,Ae)=>Je.setDate(Je.getDate()+Ae)}},Ze=w.value.toDate();for(;Math.abs(w.value.diff(Ze,"year",!0))<1;){const Je=me[K.value];if(!Je)return;if(Je.offset(Ze,nt(Je[xe])?Je[xe](Ze):(Ue=Je[xe])!=null?Ue:0),v&&v(Ze))break;const Ae=ht(Ze).locale(u.value);w.value=Ae,a("pick",Ae,!0);break}},Et=xe=>{a("panel-change",w.value.toDate(),xe,N.value)};return be(()=>G.value,xe=>{if(["month","year"].includes(xe)){N.value=xe;return}else if(xe==="years"){N.value="year";return}else if(xe==="months"){N.value="month";return}N.value="date"},{immediate:!0}),be(()=>b.value,xe=>{xe&&(w.value=et())},{immediate:!0}),be(()=>s.parsedValue,xe=>{if(xe){if(Q.value||ke(xe))return;w.value=xe}else w.value=et()},{immediate:!0}),a("set-picker-option",["isValidValue",De]),a("set-picker-option",["parseUserInput",Ke]),a("set-picker-option",["handleFocusPicker",Ht]),(xe,Ue)=>(S(),P("div",{class:D([f(o).b(),f(r).b(),f(o).is("border",xe.border),f(o).is("disabled",f(te)),{"has-sidebar":xe.$slots.sidebar||ee.value,"has-time":fe.value}])},[A("div",{class:D(f(o).e("body-wrapper"))},[ue(xe.$slots,"sidebar",{class:D(f(o).e("sidebar"))}),ee.value?(S(),P("div",{key:0,class:D(f(o).e("sidebar"))},[(S(!0),P(Ve,null,yt(f(p),(we,Ge)=>(S(),P("button",{key:Ge,type:"button",disabled:f(te),class:D(f(o).e("shortcut")),onClick:wt=>z(we)},ge(we.text),11,gae))),128))],2)):ie("v-if",!0),A("div",{class:D(f(o).e("body"))},[fe.value?(S(),P("div",{key:0,class:D(f(r).e("time-header"))},[A("span",{class:D(f(r).e("editor-wrap"))},[W(f(ga),{placeholder:f(c)("el.datepicker.selectDate"),"model-value":Fe.value,size:"small","validate-event":!1,disabled:f(te),readonly:!xe.editable,onInput:Ue[0]||(Ue[0]=we=>M.value=we),onChange:rt},null,8,["placeholder","model-value","disabled","readonly"])],2),gt((S(),P("span",{class:D(f(r).e("editor-wrap"))},[W(f(ga),{placeholder:f(c)("el.datepicker.selectTime"),"model-value":Ne.value,size:"small","validate-event":!1,disabled:f(te),readonly:!xe.editable,onFocus:Ce,onInput:Ue[1]||(Ue[1]=we=>$.value=we),onChange:Qe},null,8,["placeholder","model-value","disabled","readonly"]),W(f(d1),{visible:Oe.value,format:_e.value,"parsed-value":w.value,onPick:He},null,8,["visible","format","parsed-value"])],2)),[[f(Wc),Ie]])],2)):ie("v-if",!0),gt(A("div",{class:D([f(r).e("header"),(N.value==="year"||N.value==="month")&&f(r).em("header","bordered")])},[A("span",{class:D(f(r).e("prev-btn"))},[A("button",{type:"button","aria-label":f(c)("el.datepicker.prevYear"),class:D(["d-arrow-left",f(o).e("icon-btn")]),disabled:f(te),onClick:Ue[2]||(Ue[2]=we=>O(!1))},[ue(xe.$slots,"prev-year",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Al))]),_:1})])],10,bae),gt(A("button",{type:"button","aria-label":f(c)("el.datepicker.prevMonth"),class:D([f(o).e("icon-btn"),"arrow-left"]),disabled:f(te),onClick:Ue[3]||(Ue[3]=we=>Y(!1))},[ue(xe.$slots,"prev-month",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Go))]),_:1})])],10,yae),[[Bt,N.value==="date"]])],2),A("span",{role:"button",class:D(f(r).e("header-label")),"aria-live":"polite",tabindex:xe.disabled?void 0:0,"aria-disabled":xe.disabled,onKeydown:Ue[4]||(Ue[4]=Ln(we=>pe("year"),["enter"])),onClick:Ue[5]||(Ue[5]=we=>pe("year"))},ge(V.value),43,wae),gt(A("span",{role:"button","aria-live":"polite",tabindex:xe.disabled?void 0:0,"aria-disabled":xe.disabled,class:D([f(r).e("header-label"),{active:N.value==="month"}]),onKeydown:Ue[6]||(Ue[6]=Ln(we=>pe("month"),["enter"])),onClick:Ue[7]||(Ue[7]=we=>pe("month"))},ge(f(c)(`el.datepicker.month${T.value+1}`)),43,_ae),[[Bt,N.value==="date"]]),A("span",{class:D(f(r).e("next-btn"))},[gt(A("button",{type:"button","aria-label":f(c)("el.datepicker.nextMonth"),class:D([f(o).e("icon-btn"),"arrow-right"]),disabled:f(te),onClick:Ue[8]||(Ue[8]=we=>Y(!0))},[ue(xe.$slots,"next-month",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Ds))]),_:1})])],10,Cae),[[Bt,N.value==="date"]]),A("button",{type:"button","aria-label":f(c)("el.datepicker.nextYear"),class:D([f(o).e("icon-btn"),"d-arrow-right"]),disabled:f(te),onClick:Ue[9]||(Ue[9]=we=>O(!0))},[ue(xe.$slots,"next-year",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Tl))]),_:1})])],10,Sae)],2)],2),[[Bt,N.value!=="time"]]),A("div",{class:D(f(o).e("content")),onKeydown:at},[N.value==="date"?(S(),ce(Wy,{key:0,ref_key:"currentViewRef",ref:C,"selection-mode":G.value,date:w.value,"parsed-value":xe.parsedValue,"disabled-date":f(v),disabled:f(te),"cell-class-name":f(m),"show-week-number":xe.showWeekNumber,onPick:J},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):ie("v-if",!0),N.value==="year"?(S(),ce(Gp,{key:1,ref_key:"currentViewRef",ref:C,"selection-mode":G.value,date:w.value,"disabled-date":f(v),disabled:f(te),"parsed-value":xe.parsedValue,"cell-class-name":f(m),onPick:he},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):ie("v-if",!0),N.value==="month"?(S(),ce(qp,{key:2,ref_key:"currentViewRef",ref:C,"selection-mode":G.value,date:w.value,"parsed-value":xe.parsedValue,"disabled-date":f(v),disabled:f(te),"cell-class-name":f(m),onPick:se},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):ie("v-if",!0)],34)],2)],2),xe.showFooter&&le.value&&Z.value?(S(),P("div",{key:0,class:D(f(o).e("footer"))},[gt(W(f(ps),{text:"",size:"small",class:D(f(o).e("link-btn")),disabled:de.value,onClick:ye},{default:X(()=>[We(ge(f(c)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[Bt,!Q.value&&xe.showNow]]),xe.showConfirm?(S(),ce(f(ps),{key:0,plain:"",size:"small",class:D(f(o).e("link-btn")),disabled:H.value,onClick:ae},{default:X(()=>[We(ge(f(c)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):ie("v-if",!0)],2)):ie("v-if",!0)],2))}});const Eae=Me({...WT,...yw}),kae=e=>{const{emit:t}=Ct(),n=Nl(),s=Hn();return o=>{const r=nt(o.value)?o.value():o.value;if(r){t("pick",[ht(r[0]).locale(e.value),ht(r[1]).locale(e.value)]);return}o.onClick&&o.onClick({attrs:n,slots:s,emit:t})}},Cw=(e,{defaultValue:t,defaultTime:n,leftDate:s,rightDate:a,step:o,unit:r,sortDates:i})=>{const{emit:l}=Ct(),{pickerNs:c}=je(gw),u=Ee("date-range-picker"),{t:d,lang:h}=Rt(),p=kae(h),v=F(),m=F(),g=F({endDate:null,selecting:!1}),b=E=>{g.value=E},C=(E=!1)=>{const T=f(v),R=f(m);Up([T,R])&&l("pick",[T,R],E)},w=E=>{g.value.selecting=E,E||(g.value.endDate=null)},_=E=>{if(ke(E)&&E.length===2){const[T,R]=E;v.value=T,s.value=T,m.value=R,i(f(v),f(m))}else x()},x=()=>{let[E,T]=Db(f(t),{lang:f(h),step:o,unit:r,unlinkPanels:e.unlinkPanels});const R=M=>M.diff(M.startOf("d"),"ms"),I=f(n);if(I){let M=0,$=0;if(ke(I)){const[L,B]=I.map(ht);M=R(L),$=R(B)}else{const L=R(ht(I));M=L,$=L}E=E.startOf("d").add(M,"ms"),T=T.startOf("d").add($,"ms")}v.value=void 0,m.value=void 0,s.value=E,a.value=T};return be(t,E=>{E&&x()},{immediate:!0}),be(()=>e.parsedValue,E=>{(!(E!=null&&E.length)||!On(E,[v.value,m.value]))&&_(E)},{immediate:!0}),be(()=>e.visible,()=>{e.visible&&_(e.parsedValue)},{immediate:!0}),{minDate:v,maxDate:m,rangeState:g,lang:h,ppNs:c,drpNs:u,handleChangeRange:b,handleRangeConfirm:C,handleShortcutClick:p,onSelect:w,parseValue:_,t:d}},Aae=(e,t,n,s)=>{const a=F("date"),o=F(),r=F("date"),i=F(),l=je(xr),{disabledDate:c}=l.props,{t:u,lang:d}=Rt(),h=k(()=>n.value.year()),p=k(()=>n.value.month()),v=k(()=>s.value.year()),m=k(()=>s.value.month());function g(E,T){const R=u("el.datepicker.year");if(E.value==="year"){const I=Math.floor(T.value/10)*10;return R?`${I} ${R} - ${I+9} ${R}`:`${I} - ${I+9}`}return`${T.value} ${R}`}function b(E){E==null||E.focus()}async function C(E,T){if(e.disabled)return;const R=E==="left"?a:r,I=E==="left"?o:i;R.value=T,await ze(),b(I.value)}async function w(E,T,R){if(e.disabled)return;const I=T==="left",M=I?n:s,$=I?s:n,L=I?a:r,B=I?o:i;if(E==="year"){const q=M.value.year(R);M.value=h1(q,d.value,c)}E==="month"&&(M.value=o0(M.value,M.value.year(),R,d.value,c)),e.unlinkPanels||($.value=T==="left"?M.value.add(1,"month"):M.value.subtract(1,"month")),L.value=E==="year"?"month":"date",await ze(),b(B.value),_(E)}function _(E){t("panel-change",[n.value.toDate(),s.value.toDate()],E)}function x(E,T,R){const I=R?"add":"subtract";return E==="year"?T[I](10,"year"):T[I](1,"year")}return{leftCurrentView:a,rightCurrentView:r,leftCurrentViewRef:o,rightCurrentViewRef:i,leftYear:h,rightYear:v,leftMonth:p,rightMonth:m,leftYearLabel:k(()=>g(a,h)),rightYearLabel:k(()=>g(r,v)),showLeftPicker:E=>C("left",E),showRightPicker:E=>C("right",E),handleLeftYearPick:E=>w("year","left",E),handleRightYearPick:E=>w("year","right",E),handleLeftMonthPick:E=>w("month","left",E),handleRightMonthPick:E=>w("month","right",E),handlePanelChange:_,adjustDateByView:x}},Tae=["disabled","onClick"],Mae=["aria-label","disabled"],Pae=["aria-label","disabled"],Rae=["disabled","aria-label"],Iae=["disabled","aria-label"],Lae=["tabindex","aria-disabled"],Oae=["tabindex","aria-disabled"],Nae=["disabled","aria-label"],$ae=["disabled","aria-label"],Dae=["aria-label","disabled"],Fae=["disabled","aria-label"],Bae=["tabindex","aria-disabled"],Vae=["tabindex","aria-disabled"],R2="month";var zae=j({__name:"panel-date-range",props:Eae,emits:["pick","set-picker-option","calendar-change","panel-change","clear"],setup(e,{emit:t}){const n=e,s=t,a=je(xr),o=je(r2,void 0),{disabledDate:r,cellClassName:i,defaultTime:l,clearable:c}=a.props,u=Jt(a.props,"format"),d=Jt(a.props,"shortcuts"),h=Jt(a.props,"defaultValue"),{lang:p}=Rt(),v=F(ht().locale(p.value)),m=F(ht().locale(p.value).add(1,R2)),{minDate:g,maxDate:b,rangeState:C,ppNs:w,drpNs:_,handleChangeRange:x,handleRangeConfirm:E,handleShortcutClick:T,onSelect:R,parseValue:I,t:M}=Cw(n,{defaultValue:h,defaultTime:l,leftDate:v,rightDate:m,unit:R2,sortDates:Je});be(()=>n.visible,Ae=>{!Ae&&C.value.selecting&&(I(n.parsedValue),R(!1))});const $=F({min:null,max:null}),L=F({min:null,max:null}),{leftCurrentView:B,rightCurrentView:q,leftCurrentViewRef:J,rightCurrentViewRef:Y,leftYear:O,rightYear:N,leftMonth:V,rightMonth:z,leftYearLabel:G,rightYearLabel:Q,showLeftPicker:K,showRightPicker:ee,handleLeftYearPick:se,handleRightYearPick:he,handleLeftMonthPick:te,handleRightMonthPick:pe,handlePanelChange:fe,adjustDateByView:le}=Aae(n,s,v,m),Z=k(()=>!!d.value.length),H=k(()=>$.value.min!==null?$.value.min:g.value?g.value.format(Se.value):""),ae=k(()=>$.value.max!==null?$.value.max:b.value||g.value?(b.value||g.value).format(Se.value):""),de=k(()=>L.value.min!==null?L.value.min:g.value?g.value.format(_e.value):""),ye=k(()=>L.value.max!==null?L.value.max:b.value||g.value?(b.value||g.value).format(_e.value):""),_e=k(()=>n.timeFormat||zA(u.value||"")||a0),Se=k(()=>n.dateFormat||VA(u.value||"")||tc),Ne=Ae=>Up(Ae)&&(r?!r(Ae[0].toDate())&&!r(Ae[1].toDate()):!0),Fe=()=>{v.value=le(B.value,v.value,!1),n.unlinkPanels||(m.value=v.value.add(1,"month")),fe("year")},Oe=()=>{v.value=v.value.subtract(1,"month"),n.unlinkPanels||(m.value=v.value.add(1,"month")),fe("month")},Ce=()=>{n.unlinkPanels?m.value=le(q.value,m.value,!0):(v.value=le(q.value,v.value,!0),m.value=v.value.add(1,"month")),fe("year")},Ie=()=>{n.unlinkPanels?m.value=m.value.add(1,"month"):(v.value=v.value.add(1,"month"),m.value=v.value.add(1,"month")),fe("month")},Pe=()=>{v.value=le(B.value,v.value,!0),fe("year")},He=()=>{v.value=v.value.add(1,"month"),fe("month")},Qe=()=>{m.value=le(q.value,m.value,!1),fe("year")},rt=()=>{m.value=m.value.subtract(1,"month"),fe("month")},De=k(()=>{const Ae=(V.value+1)%12,$e=V.value+1>=12?1:0;return n.unlinkPanels&&new Date(O.value+$e,Ae)<new Date(N.value,z.value)}),Ke=k(()=>n.unlinkPanels&&N.value*12+z.value-(O.value*12+V.value+1)>=12),et=Pn(),Ft=k(()=>!(g.value&&b.value&&!C.value.selecting&&Up([g.value,b.value])&&!et.value)),Ht=k(()=>n.type==="datetime"||n.type==="datetimerange"),at=(Ae,$e)=>{if(Ae)return l?ht(l[$e]||l).locale(p.value).year(Ae.year()).month(Ae.month()).date(Ae.date()):Ae},vt=(Ae,$e=!0)=>{const lt=Ae.minDate,yn=Ae.maxDate,rn=at(lt,0),Rn=at(yn,1);b.value===Rn&&g.value===rn||(s("calendar-change",[lt.toDate(),yn&&yn.toDate()]),b.value=Rn,g.value=rn,!Ht.value&&$e&&($e=!rn||!Rn),E($e))},Et=F(!1),xe=F(!1),Ue=()=>{Et.value=!1},we=()=>{xe.value=!1},Ge=(Ae,$e)=>{$.value[$e]=Ae;const lt=ht(Ae,Se.value).locale(p.value);if(lt.isValid()){if(r&&r(lt.toDate()))return;$e==="min"?(v.value=lt,g.value=(g.value||v.value).year(lt.year()).month(lt.month()).date(lt.date()),!n.unlinkPanels&&(!b.value||b.value.isBefore(g.value))&&(m.value=lt.add(1,"month"),b.value=g.value.add(1,"month"))):(m.value=lt,b.value=(b.value||m.value).year(lt.year()).month(lt.month()).date(lt.date()),!n.unlinkPanels&&(!g.value||g.value.isAfter(b.value))&&(v.value=lt.subtract(1,"month"),g.value=b.value.subtract(1,"month"))),Je(g.value,b.value),E(!0)}},wt=(Ae,$e)=>{$.value[$e]=null},Ut=(Ae,$e)=>{L.value[$e]=Ae;const lt=ht(Ae,_e.value).locale(p.value);lt.isValid()&&($e==="min"?(Et.value=!0,g.value=(g.value||v.value).hour(lt.hour()).minute(lt.minute()).second(lt.second()),v.value=g.value):(xe.value=!0,b.value=(b.value||m.value).hour(lt.hour()).minute(lt.minute()).second(lt.second()),m.value=b.value))},gn=(Ae,$e)=>{L.value[$e]=null,$e==="min"?(v.value=g.value,Et.value=!1,(!b.value||b.value.isBefore(g.value))&&(b.value=g.value)):(m.value=b.value,xe.value=!1,b.value&&b.value.isBefore(g.value)&&(g.value=b.value)),E(!0)},bn=(Ae,$e,lt)=>{L.value.min||(Ae&&(g.value=(g.value||v.value).hour(Ae.hour()).minute(Ae.minute()).second(Ae.second())),lt||(Et.value=$e),(!b.value||b.value.isBefore(g.value))&&(b.value=g.value,m.value=Ae,ze(()=>{I(n.parsedValue)})),E(!0))},Be=(Ae,$e,lt)=>{L.value.max||(Ae&&(b.value=(b.value||m.value).hour(Ae.hour()).minute(Ae.minute()).second(Ae.second())),lt||(xe.value=$e),b.value&&b.value.isBefore(g.value)&&(g.value=b.value),E(!0))},ve=()=>{me(),s("clear")},me=()=>{let Ae=null;a!=null&&a.emptyValues&&(Ae=a.emptyValues.valueOnClear.value),v.value=Db(f(h),{lang:f(p),unit:"month",unlinkPanels:n.unlinkPanels})[0],m.value=v.value.add(1,"month"),b.value=void 0,g.value=void 0,E(!0),s("pick",Ae)},Ze=Ae=>r0(Ae,u.value||"",p.value,o);function Je(Ae,$e){if(n.unlinkPanels&&$e){const lt=(Ae==null?void 0:Ae.year())||0,yn=(Ae==null?void 0:Ae.month())||0,rn=$e.year(),Rn=$e.month();m.value=lt===rn&&yn===Rn?$e.add(1,R2):$e}else m.value=v.value.add(1,R2),$e&&(m.value=m.value.hour($e.hour()).minute($e.minute()).second($e.second()))}return s("set-picker-option",["isValidValue",Ne]),s("set-picker-option",["parseUserInput",Ze]),s("set-picker-option",["handleClear",me]),(Ae,$e)=>(S(),P("div",{class:D([f(w).b(),f(_).b(),f(w).is("border",Ae.border),f(w).is("disabled",f(et)),{"has-sidebar":Ae.$slots.sidebar||Z.value,"has-time":Ht.value}])},[A("div",{class:D(f(w).e("body-wrapper"))},[ue(Ae.$slots,"sidebar",{class:D(f(w).e("sidebar"))}),Z.value?(S(),P("div",{key:0,class:D(f(w).e("sidebar"))},[(S(!0),P(Ve,null,yt(d.value,(lt,yn)=>(S(),P("button",{key:yn,type:"button",disabled:f(et),class:D(f(w).e("shortcut")),onClick:rn=>f(T)(lt)},ge(lt.text),11,Tae))),128))],2)):ie("v-if",!0),A("div",{class:D(f(w).e("body"))},[Ht.value?(S(),P("div",{key:0,class:D(f(_).e("time-header"))},[A("span",{class:D(f(_).e("editors-wrap"))},[A("span",{class:D(f(_).e("time-picker-wrap"))},[W(f(ga),{size:"small",disabled:f(C).selecting||f(et),placeholder:f(M)("el.datepicker.startDate"),class:D(f(_).e("editor")),"model-value":H.value,"validate-event":!1,readonly:!Ae.editable,onInput:$e[0]||($e[0]=lt=>Ge(lt,"min")),onChange:$e[1]||($e[1]=lt=>wt(lt,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),gt((S(),P("span",{class:D(f(_).e("time-picker-wrap"))},[W(f(ga),{size:"small",class:D(f(_).e("editor")),disabled:f(C).selecting||f(et),placeholder:f(M)("el.datepicker.startTime"),"model-value":de.value,"validate-event":!1,readonly:!Ae.editable,onFocus:$e[2]||($e[2]=lt=>Et.value=!0),onInput:$e[3]||($e[3]=lt=>Ut(lt,"min")),onChange:$e[4]||($e[4]=lt=>gn(lt,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),W(f(d1),{visible:Et.value,format:_e.value,"datetime-role":"start","parsed-value":f(g)||v.value,onPick:bn},null,8,["visible","format","parsed-value"])],2)),[[f(Wc),Ue]])],2),A("span",null,[W(f(Ye),null,{default:X(()=>[W(f(Ds))]),_:1})]),A("span",{class:D([f(_).e("editors-wrap"),"is-right"])},[A("span",{class:D(f(_).e("time-picker-wrap"))},[W(f(ga),{size:"small",class:D(f(_).e("editor")),disabled:f(C).selecting||f(et),placeholder:f(M)("el.datepicker.endDate"),"model-value":ae.value,readonly:!f(g)||!Ae.editable,"validate-event":!1,onInput:$e[5]||($e[5]=lt=>Ge(lt,"max")),onChange:$e[6]||($e[6]=lt=>wt(lt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),gt((S(),P("span",{class:D(f(_).e("time-picker-wrap"))},[W(f(ga),{size:"small",class:D(f(_).e("editor")),disabled:f(C).selecting||f(et),placeholder:f(M)("el.datepicker.endTime"),"model-value":ye.value,readonly:!f(g)||!Ae.editable,"validate-event":!1,onFocus:$e[7]||($e[7]=lt=>f(g)&&(xe.value=!0)),onInput:$e[8]||($e[8]=lt=>Ut(lt,"max")),onChange:$e[9]||($e[9]=lt=>gn(lt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),W(f(d1),{"datetime-role":"end",visible:xe.value,format:_e.value,"parsed-value":f(b)||m.value,onPick:Be},null,8,["visible","format","parsed-value"])],2)),[[f(Wc),we]])],2)],2)):ie("v-if",!0),A("div",{class:D([[f(w).e("content"),f(_).e("content")],"is-left"])},[A("div",{class:D(f(_).e("header"))},[A("button",{type:"button",class:D([f(w).e("icon-btn"),"d-arrow-left"]),"aria-label":f(M)("el.datepicker.prevYear"),disabled:f(et),onClick:Fe},[ue(Ae.$slots,"prev-year",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Al))]),_:1})])],10,Mae),gt(A("button",{type:"button",class:D([f(w).e("icon-btn"),"arrow-left"]),"aria-label":f(M)("el.datepicker.prevMonth"),disabled:f(et),onClick:Oe},[ue(Ae.$slots,"prev-month",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Go))]),_:1})])],10,Pae),[[Bt,f(B)==="date"]]),Ae.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!Ke.value||f(et),class:D([[f(w).e("icon-btn"),f(w).is("disabled",!Ke.value||f(et))],"d-arrow-right"]),"aria-label":f(M)("el.datepicker.nextYear"),onClick:Pe},[ue(Ae.$slots,"next-year",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Tl))]),_:1})])],10,Rae)):ie("v-if",!0),Ae.unlinkPanels&&f(B)==="date"?(S(),P("button",{key:1,type:"button",disabled:!De.value||f(et),class:D([[f(w).e("icon-btn"),f(w).is("disabled",!De.value||f(et))],"arrow-right"]),"aria-label":f(M)("el.datepicker.nextMonth"),onClick:He},[ue(Ae.$slots,"next-month",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Ds))]),_:1})])],10,Iae)):ie("v-if",!0),A("div",null,[A("span",{role:"button",class:D(f(_).e("header-label")),"aria-live":"polite",tabindex:Ae.disabled?void 0:0,"aria-disabled":Ae.disabled,onKeydown:$e[10]||($e[10]=Ln(lt=>f(K)("year"),["enter"])),onClick:$e[11]||($e[11]=lt=>f(K)("year"))},ge(f(G)),43,Lae),gt(A("span",{role:"button","aria-live":"polite",tabindex:Ae.disabled?void 0:0,"aria-disabled":Ae.disabled,class:D([f(_).e("header-label"),{active:f(B)==="month"}]),onKeydown:$e[12]||($e[12]=Ln(lt=>f(K)("month"),["enter"])),onClick:$e[13]||($e[13]=lt=>f(K)("month"))},ge(f(M)(`el.datepicker.month${v.value.month()+1}`)),43,Oae),[[Bt,f(B)==="date"]])])],2),f(B)==="date"?(S(),ce(Wy,{key:0,ref_key:"leftCurrentViewRef",ref:J,"selection-mode":"range",date:v.value,"min-date":f(g),"max-date":f(b),"range-state":f(C),"disabled-date":f(r),"cell-class-name":f(i),"show-week-number":Ae.showWeekNumber,disabled:f(et),onChangerange:f(x),onPick:vt,onSelect:f(R)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):ie("v-if",!0),f(B)==="year"?(S(),ce(Gp,{key:1,ref_key:"leftCurrentViewRef",ref:J,"selection-mode":"year",date:v.value,"disabled-date":f(r),"parsed-value":Ae.parsedValue,disabled:f(et),onPick:f(se)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):ie("v-if",!0),f(B)==="month"?(S(),ce(qp,{key:2,ref_key:"leftCurrentViewRef",ref:J,"selection-mode":"month",date:v.value,"parsed-value":Ae.parsedValue,"disabled-date":f(r),disabled:f(et),onPick:f(te)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):ie("v-if",!0)],2),A("div",{class:D([[f(w).e("content"),f(_).e("content")],"is-right"])},[A("div",{class:D(f(_).e("header"))},[Ae.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!Ke.value||f(et),class:D([[f(w).e("icon-btn"),f(w).is("disabled",!Ke.value||f(et))],"d-arrow-left"]),"aria-label":f(M)("el.datepicker.prevYear"),onClick:Qe},[ue(Ae.$slots,"prev-year",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Al))]),_:1})])],10,Nae)):ie("v-if",!0),Ae.unlinkPanels&&f(q)==="date"?(S(),P("button",{key:1,type:"button",disabled:!De.value||f(et),class:D([[f(w).e("icon-btn"),f(w).is("disabled",!De.value||f(et))],"arrow-left"]),"aria-label":f(M)("el.datepicker.prevMonth"),onClick:rt},[ue(Ae.$slots,"prev-month",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Go))]),_:1})])],10,$ae)):ie("v-if",!0),A("button",{type:"button","aria-label":f(M)("el.datepicker.nextYear"),class:D([f(w).e("icon-btn"),"d-arrow-right"]),disabled:f(et),onClick:Ce},[ue(Ae.$slots,"next-year",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Tl))]),_:1})])],10,Dae),gt(A("button",{type:"button",class:D([f(w).e("icon-btn"),"arrow-right"]),disabled:f(et),"aria-label":f(M)("el.datepicker.nextMonth"),onClick:Ie},[ue(Ae.$slots,"next-month",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Ds))]),_:1})])],10,Fae),[[Bt,f(q)==="date"]]),A("div",null,[A("span",{role:"button",class:D(f(_).e("header-label")),"aria-live":"polite",tabindex:Ae.disabled?void 0:0,"aria-disabled":Ae.disabled,onKeydown:$e[14]||($e[14]=Ln(lt=>f(ee)("year"),["enter"])),onClick:$e[15]||($e[15]=lt=>f(ee)("year"))},ge(f(Q)),43,Bae),gt(A("span",{role:"button","aria-live":"polite",tabindex:Ae.disabled?void 0:0,"aria-disabled":Ae.disabled,class:D([f(_).e("header-label"),{active:f(q)==="month"}]),onKeydown:$e[16]||($e[16]=Ln(lt=>f(ee)("month"),["enter"])),onClick:$e[17]||($e[17]=lt=>f(ee)("month"))},ge(f(M)(`el.datepicker.month${m.value.month()+1}`)),43,Vae),[[Bt,f(q)==="date"]])])],2),f(q)==="date"?(S(),ce(Wy,{key:0,ref_key:"rightCurrentViewRef",ref:Y,"selection-mode":"range",date:m.value,"min-date":f(g),"max-date":f(b),"range-state":f(C),"disabled-date":f(r),"cell-class-name":f(i),"show-week-number":Ae.showWeekNumber,disabled:f(et),onChangerange:f(x),onPick:vt,onSelect:f(R)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):ie("v-if",!0),f(q)==="year"?(S(),ce(Gp,{key:1,ref_key:"rightCurrentViewRef",ref:Y,"selection-mode":"year",date:m.value,"disabled-date":f(r),"parsed-value":Ae.parsedValue,disabled:f(et),onPick:f(he)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):ie("v-if",!0),f(q)==="month"?(S(),ce(qp,{key:2,ref_key:"rightCurrentViewRef",ref:Y,"selection-mode":"month",date:m.value,"parsed-value":Ae.parsedValue,"disabled-date":f(r),disabled:f(et),onPick:f(pe)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):ie("v-if",!0)],2)],2)],2),Ae.showFooter&&Ht.value&&(Ae.showConfirm||f(c))?(S(),P("div",{key:0,class:D(f(w).e("footer"))},[f(c)?(S(),ce(f(ps),{key:0,text:"",size:"small",class:D(f(w).e("link-btn")),onClick:ve},{default:X(()=>[We(ge(f(M)("el.datepicker.clear")),1)]),_:1},8,["class"])):ie("v-if",!0),Ae.showConfirm?(S(),ce(f(ps),{key:1,plain:"",size:"small",class:D(f(w).e("link-btn")),disabled:Ft.value,onClick:$e[18]||($e[18]=lt=>f(E)(!1))},{default:X(()=>[We(ge(f(M)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):ie("v-if",!0)],2)):ie("v-if",!0)],2))}});const Hae=Me({...yw}),Wae=["pick","set-picker-option","calendar-change"],jae=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:s}=Rt(),a=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},o=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},r=()=>{t.value=t.value.add(1,"year")},i=()=>{n.value=n.value.subtract(1,"year")},l=k(()=>`${t.value.year()} ${s("el.datepicker.year")}`),c=k(()=>`${n.value.year()} ${s("el.datepicker.year")}`),u=k(()=>t.value.year()),d=k(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:a,rightNextYear:o,leftNextYear:r,rightPrevYear:i,leftLabel:l,rightLabel:c,leftYear:u,rightYear:d}},Kae=["disabled","onClick"],Uae=["disabled"],qae=["disabled"],Gae=["disabled"],Yae=["disabled"],I2="year";var Xae=j({name:"DatePickerMonthRange",__name:"panel-month-range",props:Hae,emits:Wae,setup(e,{emit:t}){const n=e,s=t,{lang:a}=Rt(),o=je(xr),r=je(r2,void 0),{shortcuts:i,disabledDate:l,cellClassName:c}=o.props,u=Jt(o.props,"format"),d=Jt(o.props,"defaultValue"),h=F(ht().locale(a.value)),p=F(ht().locale(a.value).add(1,I2)),{minDate:v,maxDate:m,rangeState:g,ppNs:b,drpNs:C,handleChangeRange:w,handleRangeConfirm:_,handleShortcutClick:x,onSelect:E,parseValue:T}=Cw(n,{defaultValue:d,leftDate:h,rightDate:p,unit:I2,sortDates:G}),R=k(()=>!!i.length),{leftPrevYear:I,rightNextYear:M,leftNextYear:$,rightPrevYear:L,leftLabel:B,rightLabel:q,leftYear:J,rightYear:Y}=jae({unlinkPanels:Jt(n,"unlinkPanels"),leftDate:h,rightDate:p}),O=k(()=>n.unlinkPanels&&Y.value>J.value+1),N=(K,ee=!0)=>{const se=K.minDate,he=K.maxDate;m.value===he&&v.value===se||(s("calendar-change",[se.toDate(),he&&he.toDate()]),m.value=he,v.value=se,ee&&_())},V=()=>{let K=null;o!=null&&o.emptyValues&&(K=o.emptyValues.valueOnClear.value),h.value=Db(f(d),{lang:f(a),unit:"year",unlinkPanels:n.unlinkPanels})[0],p.value=h.value.add(1,"year"),s("pick",K)},z=K=>r0(K,u.value,a.value,r);function G(K,ee){if(n.unlinkPanels&&ee){const se=(K==null?void 0:K.year())||0,he=ee.year();p.value=se===he?ee.add(1,I2):ee}else p.value=h.value.add(1,I2)}const Q=Pn();return be(()=>n.visible,K=>{!K&&g.value.selecting&&(T(n.parsedValue),E(!1))}),s("set-picker-option",["isValidValue",Up]),s("set-picker-option",["parseUserInput",z]),s("set-picker-option",["handleClear",V]),(K,ee)=>(S(),P("div",{class:D([f(b).b(),f(C).b(),f(b).is("border",K.border),f(b).is("disabled",f(Q)),{"has-sidebar":!!K.$slots.sidebar||R.value}])},[A("div",{class:D(f(b).e("body-wrapper"))},[ue(K.$slots,"sidebar",{class:D(f(b).e("sidebar"))}),R.value?(S(),P("div",{key:0,class:D(f(b).e("sidebar"))},[(S(!0),P(Ve,null,yt(f(i),(se,he)=>(S(),P("button",{key:he,type:"button",class:D(f(b).e("shortcut")),disabled:f(Q),onClick:te=>f(x)(se)},ge(se.text),11,Kae))),128))],2)):ie("v-if",!0),A("div",{class:D(f(b).e("body"))},[A("div",{class:D([[f(b).e("content"),f(C).e("content")],"is-left"])},[A("div",{class:D(f(C).e("header"))},[A("button",{type:"button",class:D([f(b).e("icon-btn"),"d-arrow-left"]),disabled:f(Q),onClick:ee[0]||(ee[0]=(...se)=>f(I)&&f(I)(...se))},[ue(K.$slots,"prev-year",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Al))]),_:1})])],10,Uae),K.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!O.value||f(Q),class:D([[f(b).e("icon-btn"),f(b).is("disabled",!O.value||f(Q))],"d-arrow-right"]),onClick:ee[1]||(ee[1]=(...se)=>f($)&&f($)(...se))},[ue(K.$slots,"next-year",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Tl))]),_:1})])],10,qae)):ie("v-if",!0),A("div",null,ge(f(B)),1)],2),W(qp,{"selection-mode":"range",date:h.value,"min-date":f(v),"max-date":f(m),"range-state":f(g),"disabled-date":f(l),disabled:f(Q),"cell-class-name":f(c),onChangerange:f(w),onPick:N,onSelect:f(E)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),A("div",{class:D([[f(b).e("content"),f(C).e("content")],"is-right"])},[A("div",{class:D(f(C).e("header"))},[K.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!O.value||f(Q),class:D([[f(b).e("icon-btn"),f(b).is("disabled",!O.value||f(Q))],"d-arrow-left"]),onClick:ee[2]||(ee[2]=(...se)=>f(L)&&f(L)(...se))},[ue(K.$slots,"prev-year",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Al))]),_:1})])],10,Gae)):ie("v-if",!0),A("button",{type:"button",class:D([f(b).e("icon-btn"),"d-arrow-right"]),disabled:f(Q),onClick:ee[3]||(ee[3]=(...se)=>f(M)&&f(M)(...se))},[ue(K.$slots,"next-year",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Tl))]),_:1})])],10,Yae),A("div",null,ge(f(q)),1)],2),W(qp,{"selection-mode":"range",date:p.value,"min-date":f(v),"max-date":f(m),"range-state":f(g),"disabled-date":f(l),disabled:f(Q),"cell-class-name":f(c),onChangerange:f(w),onPick:N,onSelect:f(E)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});const Jae=Me({...yw}),Zae=["pick","set-picker-option","calendar-change"],Qae=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const s=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},a=()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},o=()=>{t.value=t.value.add(10,"year")},r=()=>{n.value=n.value.subtract(10,"year")},i=k(()=>{const d=Math.floor(t.value.year()/10)*10;return`${d}-${d+9}`}),l=k(()=>{const d=Math.floor(n.value.year()/10)*10;return`${d}-${d+9}`}),c=k(()=>Math.floor(t.value.year()/10)*10+9),u=k(()=>Math.floor(n.value.year()/10)*10);return{leftPrevYear:s,rightNextYear:a,leftNextYear:o,rightPrevYear:r,leftLabel:i,rightLabel:l,leftYear:c,rightYear:u}},eoe=["disabled","onClick"],toe=["disabled"],noe=["disabled"],soe=["disabled"],aoe=["disabled"],rf=10,O0="year";var ooe=j({name:"DatePickerYearRange",__name:"panel-year-range",props:Jae,emits:Zae,setup(e,{emit:t}){const n=e,s=t,{lang:a}=Rt(),o=F(ht().locale(a.value)),r=F(ht().locale(a.value).add(rf,O0)),i=je(r2,void 0),l=je(xr),{shortcuts:c,disabledDate:u,cellClassName:d}=l.props,h=Jt(l.props,"format"),p=Jt(l.props,"defaultValue"),{minDate:v,maxDate:m,rangeState:g,ppNs:b,drpNs:C,handleChangeRange:w,handleRangeConfirm:_,handleShortcutClick:x,onSelect:E,parseValue:T}=Cw(n,{defaultValue:p,leftDate:o,rightDate:r,step:rf,unit:O0,sortDates:he}),{leftPrevYear:R,rightNextYear:I,leftNextYear:M,rightPrevYear:$,leftLabel:L,rightLabel:B,leftYear:q,rightYear:J}=Qae({unlinkPanels:Jt(n,"unlinkPanels"),leftDate:o,rightDate:r}),Y=Pn(),O=k(()=>!!c.length),N=k(()=>[b.b(),C.b(),b.is("border",n.border),b.is("disabled",Y.value),{"has-sidebar":!!Hn().sidebar||O.value}]),V=k(()=>({content:[b.e("content"),C.e("content"),"is-left"],arrowLeftBtn:[b.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[b.e("icon-btn"),b.is("disabled",!G.value||Y.value),"d-arrow-right"]})),z=k(()=>({content:[b.e("content"),C.e("content"),"is-right"],arrowLeftBtn:[b.e("icon-btn"),b.is("disabled",!G.value||Y.value),"d-arrow-left"],arrowRightBtn:[b.e("icon-btn"),"d-arrow-right"]})),G=k(()=>n.unlinkPanels&&J.value>q.value+1),Q=(te,pe=!0)=>{const fe=te.minDate,le=te.maxDate;m.value===le&&v.value===fe||(s("calendar-change",[fe.toDate(),le&&le.toDate()]),m.value=le,v.value=fe,pe&&_())},K=te=>r0(te,h.value,a.value,i),ee=te=>Up(te)&&(u?!u(te[0].toDate())&&!u(te[1].toDate()):!0),se=()=>{let te=null;l!=null&&l.emptyValues&&(te=l.emptyValues.valueOnClear.value);const pe=Db(f(p),{lang:f(a),step:rf,unit:O0,unlinkPanels:n.unlinkPanels});o.value=pe[0],r.value=pe[1],s("pick",te)};function he(te,pe){if(n.unlinkPanels&&pe){const fe=(te==null?void 0:te.year())||0,le=pe.year();r.value=fe+rf>le?pe.add(rf,O0):pe}else r.value=o.value.add(rf,O0)}return be(()=>n.visible,te=>{!te&&g.value.selecting&&(T(n.parsedValue),E(!1))}),s("set-picker-option",["isValidValue",ee]),s("set-picker-option",["parseUserInput",K]),s("set-picker-option",["handleClear",se]),(te,pe)=>(S(),P("div",{class:D(N.value)},[A("div",{class:D(f(b).e("body-wrapper"))},[ue(te.$slots,"sidebar",{class:D(f(b).e("sidebar"))}),O.value?(S(),P("div",{key:0,class:D(f(b).e("sidebar"))},[(S(!0),P(Ve,null,yt(f(c),(fe,le)=>(S(),P("button",{key:le,type:"button",class:D(f(b).e("shortcut")),disabled:f(Y),onClick:Z=>f(x)(fe)},ge(fe.text),11,eoe))),128))],2)):ie("v-if",!0),A("div",{class:D(f(b).e("body"))},[A("div",{class:D(V.value.content)},[A("div",{class:D(f(C).e("header"))},[A("button",{type:"button",class:D(V.value.arrowLeftBtn),disabled:f(Y),onClick:pe[0]||(pe[0]=(...fe)=>f(R)&&f(R)(...fe))},[ue(te.$slots,"prev-year",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Al))]),_:1})])],10,toe),te.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!G.value||f(Y),class:D(V.value.arrowRightBtn),onClick:pe[1]||(pe[1]=(...fe)=>f(M)&&f(M)(...fe))},[ue(te.$slots,"next-year",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Tl))]),_:1})])],10,noe)):ie("v-if",!0),A("div",null,ge(f(L)),1)],2),W(Gp,{"selection-mode":"range",date:o.value,"min-date":f(v),"max-date":f(m),"range-state":f(g),"disabled-date":f(u),disabled:f(Y),"cell-class-name":f(d),onChangerange:f(w),onPick:Q,onSelect:f(E)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),A("div",{class:D(z.value.content)},[A("div",{class:D(f(C).e("header"))},[te.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!G.value||f(Y),class:D(z.value.arrowLeftBtn),onClick:pe[2]||(pe[2]=(...fe)=>f($)&&f($)(...fe))},[ue(te.$slots,"prev-year",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Al))]),_:1})])],10,soe)):ie("v-if",!0),A("button",{type:"button",class:D(z.value.arrowRightBtn),disabled:f(Y),onClick:pe[3]||(pe[3]=(...fe)=>f(I)&&f(I)(...fe))},[ue(te.$slots,"next-year",{},()=>[W(f(Ye),null,{default:X(()=>[W(f(Tl))]),_:1})])],10,aoe),A("div",null,ge(f(B)),1)],2),W(Gp,{"selection-mode":"range",date:r.value,"min-date":f(v),"max-date":f(m),"range-state":f(g),"disabled-date":f(u),disabled:f(Y),"cell-class-name":f(d),onChangerange:f(w),onPick:Q,onSelect:f(E)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});const roe=function(e){switch(e){case"daterange":case"datetimerange":return zae;case"monthrange":return Xae;case"yearrange":return ooe;default:return xae}};function ioe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!un(e)}ht.extend(jA);ht.extend(Hse);ht.extend(hw);ht.extend(jse);ht.extend(Use);ht.extend(Gse);ht.extend(Xse);ht.extend(Zse);var loe=j({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:Qse,emits:[ct,"calendar-change","panel-change","visible-change","clear"],setup(e,{slots:t,emit:n,attrs:s}){const a=Ee("picker-panel"),o=je(xr,void 0);if(Dt(o)){const d=Kt({...gs(e)});Mt(xr,{props:d})}Mt(gw,{slots:t,pickerNs:a});const{parsedValue:r,onCalendarChange:i,onPanelChange:l,onSetPickerOption:c,onPick:u}=je(MT,()=>PT(e,n),!0);return()=>{const d=roe(e.type);return W(d,_t(Wm(s,"onPick"),e,{parsedValue:r.value,"onSet-picker-option":c,"onCalendar-change":i,"onPanel-change":l,onClear:()=>n("clear"),onPick:u}),ioe(t)?t:{default:()=>[t]})}}});const jT=pt(loe),coe=Me({...mw,type:{type:re(String),default:"date"}});function uoe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!un(e)}var doe=j({name:"ElDatePicker",install:null,props:coe,emits:[ct],setup(e,{expose:t,emit:n,slots:s}){const a=k(()=>!e.format);Mt(r2,a),Mt(pw,Kt(Jt(e,"popperOptions")));const o=F();t({focus:()=>{var l;(l=o.value)==null||l.focus()},blur:()=>{var l;(l=o.value)==null||l.blur()},handleOpen:()=>{var l;(l=o.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=o.value)==null||l.handleClose()}});const i=l=>{n(ct,l)};return()=>{var l;const c=(l=e.format)!=null?l:Ese[e.type]||tc;return W(IT,_t(e,{format:c,type:e.type,ref:o,"onUpdate:modelValue":i}),{default:u=>W(jT,_t({disabled:e.disabled,editable:e.editable,border:!1},u),uoe(s)?s:{default:()=>[s]}),"range-separator":s["range-separator"]})}}});const foe=pt(doe),hoe=Me({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:rs,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number]}}),poe=Me({row:{type:re(Array),default:()=>[]}}),Sw=Symbol("elDescriptions");var N0=j({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:je(Sw,{})}},render(){var e,t,n,s;const a=lJ(this.cell),o=(((e=this.cell)==null?void 0:e.dirs)||[]).map(_=>{const{dir:x,arg:E,modifiers:T,value:R}=_;return[x,R,E,T]}),{border:r,direction:i}=this.descriptions,l=i==="vertical",c=()=>{var _,x,E;return((E=(x=(_=this.cell)==null?void 0:_.children)==null?void 0:x.label)==null?void 0:E.call(x))||a.label},u=()=>{var _,x,E;return(E=(x=(_=this.cell)==null?void 0:_.children)==null?void 0:x.default)==null?void 0:E.call(x)},d=a.span,h=a.rowspan,p=a.align?`is-${a.align}`:"",v=a.labelAlign?`is-${a.labelAlign}`:p,m=a.className,g=a.labelClassName,b=this.type==="label"&&(n=(t=a.labelWidth)!=null?t:this.descriptions.labelWidth)!=null?n:a.width,C={width:Mn(b),minWidth:Mn(a.minWidth)},w=Ee("descriptions");switch(this.type){case"label":return gt(ot(this.tag,{style:C,class:[w.e("cell"),w.e("label"),w.is("bordered-label",r),w.is("vertical-label",l),v,g],colSpan:l?d:1,rowspan:l?1:h},c()),o);case"content":return gt(ot(this.tag,{style:C,class:[w.e("cell"),w.e("content"),w.is("bordered-content",r),w.is("vertical-content",l),p,m],colSpan:l?d:d*2-1,rowspan:l?h*2-1:h},u()),o);default:{const _=c(),x={},E=Mn((s=a.labelWidth)!=null?s:this.descriptions.labelWidth);return E&&(x.width=E,x.display="inline-block"),gt(ot("td",{style:C,class:[w.e("cell"),p],colSpan:d,rowspan:h},[Un(_)?void 0:ot("span",{style:x,class:[w.e("label"),g]},_),ot("span",{class:[w.e("content"),m]},u())]),o)}}}});const voe={key:1};var moe=j({name:"ElDescriptionsRow",__name:"descriptions-row",props:poe,setup(e){const t=je(Sw,{});return(n,s)=>f(t).direction==="vertical"?(S(),P(Ve,{key:0},[A("tr",null,[(S(!0),P(Ve,null,yt(e.row,(a,o)=>(S(),ce(f(N0),{key:`tr1-${o}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),A("tr",null,[(S(!0),P(Ve,null,yt(e.row,(a,o)=>(S(),ce(f(N0),{key:`tr2-${o}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(S(),P("tr",voe,[(S(!0),P(Ve,null,yt(e.row,(a,o)=>(S(),P(Ve,{key:`tr3-${o}`},[f(t).border?(S(),P(Ve,{key:0},[W(f(N0),{cell:a,tag:"td",type:"label"},null,8,["cell"]),W(f(N0),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(S(),ce(f(N0),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});const KT="ElDescriptionsItem";var goe=j({name:"ElDescriptions",__name:"description",props:hoe,setup(e){const t=e,n=Ee("descriptions"),s=ns(),a=Hn();Mt(Sw,t);const o=k(()=>[n.b(),n.m(s.value)]),r=(l,c,u,d=!1)=>(l.props||(l.props={}),c>u&&(l.props.span=u),d&&(l.props.span=c),l),i=()=>{if(!a.default)return[];const l=Co(a.default()).filter(v=>{var m;return((m=v==null?void 0:v.type)==null?void 0:m.name)===KT}),c=[];let u=[],d=t.column,h=0;const p=[];return l.forEach((v,m)=>{var g,b,C;const w=((g=v.props)==null?void 0:g.span)||1,_=((b=v.props)==null?void 0:b.rowspan)||1,x=c.length;if(p[x]||(p[x]=0),_>1)for(let E=1;E<_;E++)p[C=x+E]||(p[C]=0),p[x+E]++,h++;if(p[x]>0&&(d-=p[x],p[x]=0),m<l.length-1&&(h+=w>d?d:w),m===l.length-1){const E=t.column-h%t.column;u.push(r(v,E,d,!0)),c.push(u);return}w<d?(d-=w,u.push(v)):(u.push(r(v,w,d)),c.push(u),d=t.column,u=[])}),c};return(l,c)=>(S(),P("div",{class:D(o.value)},[e.title||e.extra||l.$slots.title||l.$slots.extra?(S(),P("div",{key:0,class:D(f(n).e("header"))},[A("div",{class:D(f(n).e("title"))},[ue(l.$slots,"title",{},()=>[We(ge(e.title),1)])],2),A("div",{class:D(f(n).e("extra"))},[ue(l.$slots,"extra",{},()=>[We(ge(e.extra),1)])],2)],2)):ie("v-if",!0),A("div",{class:D(f(n).e("body"))},[A("table",{class:D([f(n).e("table"),f(n).is("bordered",e.border)])},[A("tbody",null,[(S(!0),P(Ve,null,yt(i(),(u,d)=>(S(),ce(moe,{key:d,row:u},null,8,["row"]))),128))])],2)],2)],2))}});const GS=["left","center","right"],boe=Me({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:GS,default:"left"},labelAlign:{type:String,values:GS},className:{type:String,default:""},labelClassName:{type:String,default:""}}),UT=j({name:KT,props:boe}),yoe=pt(goe,{DescriptionsItem:UT}),woe=En(UT),qT=Me({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:en},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"}}),_oe={close:()=>!0},GT=Me({...qT,appendToBody:Boolean,appendTo:{type:Ym.to.type,default:"body"},beforeClose:{type:re(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:re([String,Object]),default:void 0}}),YT={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[ct]:e=>Qt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},xw=e=>{if(!e)return{onClick:Yt,onMousedown:Yt,onMouseup:Yt};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}},Coe=Me({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:re([String,Array,Object])},zIndex:{type:re([String,Number])}}),Soe={click:e=>e instanceof MouseEvent},xoe="overlay";var Eoe=j({name:"ElOverlay",props:Coe,emits:Soe,setup(e,{slots:t,emit:n}){const s=Ee(xoe),a=l=>{n("click",l)},{onClick:o,onMousedown:r,onMouseup:i}=xw(e.customMaskEvent?void 0:a);return()=>e.mask?W("div",{class:[s.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:r,onMouseup:i},[ue(t,"default")],Vo.STYLE|Vo.CLASS|Vo.PROPS,["onClick","onMouseup","onMousedown"]):ot("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ue(t,"default")])}});const Ew=Eoe,XT=Symbol("dialogInjectionKey"),YS="dialog-fade",kw=(...e)=>t=>{e.forEach(n=>{n.value=t})},JT=(e,t,n,s)=>{const a={offsetX:0,offsetY:0},o=F(!1),r=(h,p)=>{if(e.value){const{offsetX:v,offsetY:m}=a,g=e.value.getBoundingClientRect(),b=g.left,C=g.top,w=g.width,_=g.height,x=document.documentElement.clientWidth,E=document.documentElement.clientHeight,T=-b+v,R=-C+m,I=x-b-w+v,M=E-C-(_<E?_:0)+m;s!=null&&s.value||(h=Math.min(Math.max(h,T),I),p=Math.min(Math.max(p,R),M)),a.offsetX=h,a.offsetY=p,e.value.style.transform=`translate(${Mn(h)}, ${Mn(p)})`}},i=h=>{const p=h.clientX,v=h.clientY,{offsetX:m,offsetY:g}=a,b=w=>{o.value||(o.value=!0);const _=m+w.clientX-p,x=g+w.clientY-v;r(_,x)},C=()=>{o.value=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",C)},l=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",i),window.addEventListener("resize",d))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",i),window.removeEventListener("resize",d))},u=()=>{a.offsetX=0,a.offsetY=0,e.value&&(e.value.style.transform="")},d=()=>{const{offsetX:h,offsetY:p}=a;r(h,p)};return St(()=>{Qa(()=>{n.value?l():c()})}),qt(()=>{c()}),{isDragging:o,resetPosition:u,updatePosition:d}},koe=["aria-level"],Aoe=["aria-label"],Toe=["id"];var Moe=j({name:"ElDialogContent",__name:"dialog-content",props:qT,emits:_oe,setup(e,{expose:t}){const{t:n}=Rt(),{Close:s}=Yk,a=e,{dialogRef:o,headerRef:r,bodyId:i,ns:l,style:c}=je(XT),{focusTrapRef:u}=je(xA),d=kw(u,o),h=k(()=>!!a.draggable),p=k(()=>!!a.overflow),{resetPosition:v,updatePosition:m,isDragging:g}=JT(o,r,h,p),b=k(()=>[l.b(),l.is("fullscreen",a.fullscreen),l.is("draggable",h.value),l.is("dragging",g.value),l.is("align-center",!!a.alignCenter),{[l.m("center")]:a.center}]);return t({resetPosition:v,updatePosition:m}),(C,w)=>(S(),P("div",{ref:f(d),class:D(b.value),style:tt(f(c)),tabindex:"-1"},[A("header",{ref_key:"headerRef",ref:r,class:D([f(l).e("header"),e.headerClass,{"show-close":e.showClose}])},[ue(C.$slots,"header",{},()=>[A("span",{role:"heading","aria-level":e.ariaLevel,class:D(f(l).e("title"))},ge(e.title),11,koe)]),e.showClose?(S(),P("button",{key:0,"aria-label":f(n)("el.dialog.close"),class:D(f(l).e("headerbtn")),type:"button",onClick:w[0]||(w[0]=_=>C.$emit("close"))},[W(f(Ye),{class:D(f(l).e("close"))},{default:X(()=>[(S(),ce(bt(e.closeIcon||f(s))))]),_:1},8,["class"])],10,Aoe)):ie("v-if",!0)],2),A("div",{id:f(i),class:D([f(l).e("body"),e.bodyClass])},[ue(C.$slots,"default")],10,Toe),C.$slots.footer?(S(),P("footer",{key:0,class:D([f(l).e("footer"),e.footerClass])},[ue(C.$slots,"footer")],2)):ie("v-if",!0)],6))}});const Fb=(e,t={})=>{vn(e)||Jn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Ee("popup"),s=k(()=>n.bm("parent","hidden"));let a=0,o=!1,r="0",i=!1;const l=()=>{i||(i=!0,setTimeout(()=>{typeof document>"u"||o&&document&&(document.body.style.width=r,ba(document.body,s.value))},200))};be(e,c=>{if(!c){l();return}i=!1,o=!fi(document.body,s.value),o&&(r=document.body.style.width,Wo(document.body,s.value)),a=Ek(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,d=fl(document.body,"overflowY");a>0&&(u||d==="scroll")&&o&&(document.body.style.width=`calc(100% - ${a}px)`)}),Zx(()=>l())},ZT=(e,t)=>{var n;const a=Ct().emit,{nextZIndex:o}=qm();let r="";const i=Fs(),l=Fs(),c=F(!1),u=F(!1),d=F(!1),h=F((n=e.zIndex)!=null?n:o()),p=F(!1);let v,m;const g=y0(),b=k(()=>{var Q,K;return(K=(Q=g.value)==null?void 0:Q.namespace)!=null?K:wp}),C=k(()=>{var Q;return(Q=g.value)==null?void 0:Q.dialog}),w=k(()=>{const Q={},K=`--${b.value}-dialog`;if(!e.fullscreen){e.top&&(Q[`${K}-margin-top`]=e.top);const ee=Mn(e.width);ee&&(Q[`${K}-width`]=ee)}return Q}),_=k(()=>{var Q,K,ee;return((ee=(K=e.draggable)!=null?K:(Q=C.value)==null?void 0:Q.draggable)!=null?ee:!1)&&!e.fullscreen}),x=k(()=>{var Q,K,ee;return(ee=(K=e.alignCenter)!=null?K:(Q=C.value)==null?void 0:Q.alignCenter)!=null?ee:!1}),E=k(()=>{var Q,K,ee;return(ee=(K=e.overflow)!=null?K:(Q=C.value)==null?void 0:Q.overflow)!=null?ee:!1}),T=k(()=>x.value?{display:"flex"}:{}),R=k(()=>{var Q,K,ee;const se=(ee=(K=e.transition)!=null?K:(Q=C.value)==null?void 0:Q.transition)!=null?ee:YS,he={name:se,onAfterEnter:I,onBeforeLeave:$,onAfterLeave:M};if(ft(se)){const te={...se},pe=(fe,le)=>Z=>{ke(fe)?fe.forEach(H=>{nt(H)&&H(Z)}):nt(fe)&&fe(Z),le()};return te.onAfterEnter=pe(te.onAfterEnter,I),te.onBeforeLeave=pe(te.onBeforeLeave,$),te.onAfterLeave=pe(te.onAfterLeave,M),te.name||(te.name=YS),te}return he});function I(){a("opened")}function M(){a("closed"),a(ct,!1),e.destroyOnClose&&(d.value=!1),p.value=!1}function $(){p.value=!0,a("close")}function L(){m==null||m(),v==null||v(),e.openDelay&&e.openDelay>0?{stop:v}=Zh(()=>Y(),e.openDelay):Y()}function B(){v==null||v(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=Zh(()=>O(),e.closeDelay):O()}function q(){function Q(K){K||(u.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(Q):B()}function J(){e.closeOnClickModal&&q()}function Y(){jt&&(c.value=!0)}function O(){c.value=!1}function N(){a("openAutoFocus")}function V(){a("closeAutoFocus")}function z(Q){var K;((K=Q.detail)==null?void 0:K.focusReason)==="pointer"&&Q.preventDefault()}e.lockScroll&&Fb(c);function G(){e.closeOnPressEscape&&q()}return be(()=>e.zIndex,()=>{var Q;h.value=(Q=e.zIndex)!=null?Q:o()}),be(()=>e.modelValue,Q=>{var K;Q?(u.value=!1,p.value=!1,L(),d.value=!0,h.value=(K=e.zIndex)!=null?K:o(),ze(()=>{a("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):c.value&&B()}),be(()=>e.fullscreen,Q=>{t.value&&(Q?(r=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=r)}),St(()=>{e.modelValue&&(c.value=!0,d.value=!0,L())}),{afterEnter:I,afterLeave:M,beforeLeave:$,handleClose:q,onModalClick:J,close:B,doClose:O,onOpenAutoFocus:N,onCloseAutoFocus:V,onCloseRequested:G,onFocusoutPrevented:z,titleId:i,bodyId:l,closed:u,style:w,overlayDialogStyle:T,rendered:d,visible:c,zIndex:h,transitionConfig:R,_draggable:_,_alignCenter:x,_overflow:E,closing:p}},Poe=["aria-label","aria-labelledby","aria-describedby"];var Roe=j({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:GT,emits:YT,setup(e,{expose:t}){const n=e,s=Hn();vi({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"},k(()=>!!s.title));const a=Ee("dialog"),o=F(),r=F(),i=F(),{visible:l,titleId:c,bodyId:u,style:d,overlayDialogStyle:h,rendered:p,transitionConfig:v,zIndex:m,_draggable:g,_alignCenter:b,_overflow:C,handleClose:w,onModalClick:_,onOpenAutoFocus:x,onCloseAutoFocus:E,onCloseRequested:T,onFocusoutPrevented:R,closing:I}=ZT(n,o);Mt(XT,{dialogRef:o,headerRef:r,bodyId:u,ns:a,rendered:p,style:d});const M=xw(_),$=k(()=>n.modalPenetrable&&!n.modal&&!n.fullscreen);return t({visible:l,dialogContentRef:i,resetPosition:()=>{var B;(B=i.value)==null||B.resetPosition()},handleClose:w}),(B,q)=>(S(),ce(f(w0),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:X(()=>[W(bs,_t(f(v),{persisted:""}),{default:X(()=>{var J;return[gt(W(f(Ew),{"custom-mask-event":"",mask:e.modal,"overlay-class":[(J=e.modalClass)!=null?J:"",`${f(a).namespace.value}-modal-dialog`,f(a).is("penetrable",$.value)],"z-index":f(m)},{default:X(()=>[A("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:f(c),"aria-describedby":f(u),class:D([`${f(a).namespace.value}-overlay-dialog`,f(a).is("closing",f(I))]),style:tt(f(h)),onClick:q[0]||(q[0]=(...Y)=>f(M).onClick&&f(M).onClick(...Y)),onMousedown:q[1]||(q[1]=(...Y)=>f(M).onMousedown&&f(M).onMousedown(...Y)),onMouseup:q[2]||(q[2]=(...Y)=>f(M).onMouseup&&f(M).onMouseup(...Y))},[W(f(C0),{loop:"",trapped:f(l),"focus-start-el":"container",onFocusAfterTrapped:f(x),onFocusAfterReleased:f(E),onFocusoutPrevented:f(R),onReleaseRequested:f(T)},{default:X(()=>[f(p)?(S(),ce(Moe,_t({key:0,ref_key:"dialogContentRef",ref:i},B.$attrs,{center:e.center,"align-center":f(b),"close-icon":e.closeIcon,draggable:f(g),overflow:f(C),fullscreen:e.fullscreen,"header-class":e.headerClass,"body-class":e.bodyClass,"footer-class":e.footerClass,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:f(w)}),Na({header:X(()=>[B.$slots.title?ue(B.$slots,"title",{key:1}):ue(B.$slots,"header",{key:0,close:f(w),titleId:f(c),titleClass:f(a).e("title")})]),default:X(()=>[ue(B.$slots,"default")]),_:2},[B.$slots.footer?{name:"footer",fn:X(()=>[ue(B.$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"])):ie("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,Poe)]),_:3},8,["mask","overlay-class","z-index"]),[[Bt,f(l)]])]}),_:3},16)]),_:3},8,["to","disabled"]))}});const Ioe=pt(Roe),Loe=Me({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:re(String),default:"solid"}});var Ooe=j({name:"ElDivider",__name:"divider",props:Loe,setup(e){const t=e,n=Ee("divider"),s=k(()=>n.cssVar({"border-style":t.borderStyle}));return(a,o)=>(S(),P("div",{class:D([f(n).b(),f(n).m(e.direction)]),style:tt(s.value),role:"separator"},[a.$slots.default&&e.direction!=="vertical"?(S(),P("div",{key:0,class:D([f(n).e("text"),f(n).is(e.contentPosition)])},[ue(a.$slots,"default")],2)):ie("v-if",!0)],6))}});const QT=pt(Ooe),Noe=Me({...GT,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"}}),$oe={...YT,"resize-start":(e,t)=>e instanceof MouseEvent&&typeof t=="number",resize:(e,t)=>e instanceof MouseEvent&&typeof t=="number","resize-end":(e,t)=>e instanceof MouseEvent&&typeof t=="number"};function Doe(e,t,n){const{width:s,height:a}=I8(),o=k(()=>["ltr","rtl"].includes(e.direction)),r=k(()=>["ltr","ttb"].includes(e.direction)?1:-1),i=k(()=>o.value?s.value:a.value),l=k(()=>dk(c.value+r.value*u.value,4,i.value)),c=F(0),u=F(0),d=F(!1),h=F(!1);let p=[],v=[];const m=()=>{var _;const x=(_=t.value)==null?void 0:_.closest('[aria-modal="true"]');return x?o.value?x.offsetWidth:x.offsetHeight:100};be(()=>[e.size,e.resizable],()=>{h.value=!1,c.value=0,u.value=0,C()});const g=_=>{e.resizable&&(h.value||(c.value=m(),h.value=!0),p=[_.pageX,_.pageY],d.value=!0,n("resize-start",_,c.value),v.push(Xt(window,"mouseup",C),Xt(window,"mousemove",b)))},b=_=>{const{pageX:x,pageY:E}=_,T=x-p[0],R=E-p[1];u.value=o.value?T:R,n("resize",_,l.value)},C=_=>{d.value&&(p=[],c.value=l.value,u.value=0,d.value=!1,v.forEach(x=>x==null?void 0:x()),v=[],_&&n("resize-end",_,c.value))},w=Xt(t,"mousedown",g);return qt(()=>{w(),C()}),{size:k(()=>h.value?`${l.value}px`:Mn(e.size)),isResizing:d,isHorizontal:o}}const Foe=["aria-label","aria-labelledby","aria-describedby"],Boe=["id","aria-level"],Voe=["aria-label"],zoe=["id"];var Hoe=j({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:Noe,emits:$oe,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Hn();vi({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"},k(()=>!!o.title));const r=F(),i=F(),l=F(),c=Ee("drawer"),{t:u}=Rt(),{afterEnter:d,afterLeave:h,beforeLeave:p,visible:v,rendered:m,titleId:g,bodyId:b,zIndex:C,onModalClick:w,onOpenAutoFocus:_,onCloseAutoFocus:x,onFocusoutPrevented:E,onCloseRequested:T,handleClose:R}=ZT(s,r),{isHorizontal:I,size:M,isResizing:$}=Doe(s,l,a),L=k(()=>s.modalPenetrable&&!s.modal);return t({handleClose:R,afterEnter:d,afterLeave:h}),(B,q)=>(S(),ce(f(w0),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:X(()=>[W(bs,{name:f(c).b("fade"),onAfterEnter:f(d),onAfterLeave:f(h),onBeforeLeave:f(p),persisted:""},{default:X(()=>{var J;return[gt(W(f(Ew),{mask:e.modal,"overlay-class":[f(c).is("drawer"),(J=e.modalClass)!=null?J:"",`${f(c).namespace.value}-modal-drawer`,f(c).is("penetrable",L.value)],"z-index":f(C),onClick:f(w)},{default:X(()=>[W(f(C0),{loop:"",trapped:f(v),"focus-trap-el":r.value,"focus-start-el":i.value,onFocusAfterTrapped:f(_),onFocusAfterReleased:f(x),onFocusoutPrevented:f(E),onReleaseRequested:f(T)},{default:X(()=>[A("div",_t({ref_key:"drawerRef",ref:r,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:f(g),"aria-describedby":f(b)},B.$attrs,{class:[f(c).b(),e.direction,f(v)&&"open",f(c).is("dragging",f($))],style:{[f(I)?"width":"height"]:f(M)},role:"dialog",onClick:q[1]||(q[1]=it(()=>{},["stop"]))}),[A("span",{ref_key:"focusStartRef",ref:i,class:D(f(c).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(S(),P("header",{key:0,class:D([f(c).e("header"),e.headerClass])},[B.$slots.title?ue(B.$slots,"title",{key:1},()=>[ie(" DEPRECATED SLOT ")]):ue(B.$slots,"header",{key:0,close:f(R),titleId:f(g),titleClass:f(c).e("title")},()=>[A("span",{id:f(g),role:"heading","aria-level":e.headerAriaLevel,class:D(f(c).e("title"))},ge(e.title),11,Boe)]),e.showClose?(S(),P("button",{key:2,"aria-label":f(u)("el.drawer.close"),class:D(f(c).e("close-btn")),type:"button",onClick:q[0]||(q[0]=(...Y)=>f(R)&&f(R)(...Y))},[W(f(Ye),{class:D(f(c).e("close"))},{default:X(()=>[W(f(eo))]),_:1},8,["class"])],10,Voe)):ie("v-if",!0)],2)):ie("v-if",!0),f(m)?(S(),P("div",{key:1,id:f(b),class:D([f(c).e("body"),e.bodyClass])},[ue(B.$slots,"default")],10,zoe)):ie("v-if",!0),B.$slots.footer?(S(),P("div",{key:2,class:D([f(c).e("footer"),e.footerClass])},[ue(B.$slots,"footer")],2)):ie("v-if",!0),e.resizable?(S(),P("div",{key:3,ref_key:"draggerRef",ref:l,style:tt({zIndex:f(C)}),class:D(f(c).e("dragger"))},null,6)):ie("v-if",!0)],16,Foe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Bt,f(v)]])]}),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});const Woe=pt(Hoe);var joe=j({inheritAttrs:!1});function Koe(e,t,n,s,a,o){return ue(e.$slots,"default")}var Uoe=is(joe,[["render",Koe]]),qoe=j({name:"ElCollectionItem",inheritAttrs:!1});function Goe(e,t,n,s,a,o){return ue(e.$slots,"default")}var Yoe=is(qoe,[["render",Goe]]);const eM="data-el-collection-item",Xoe=e=>{const t=`El${e}Collection`,n=`${t}Item`,s=Symbol(t),a=Symbol(n),o=Object.assign({},Uoe,{name:t,setup(){const i=F(),l=new Map;Mt(s,{itemMap:l,getItems:()=>{const u=f(i);if(!u)return[];const d=Array.from(u.querySelectorAll(`[${eM}]`));return[...l.values()].sort((p,v)=>d.indexOf(p.ref)-d.indexOf(v.ref))},collectionRef:i})}}),r=Object.assign({},Yoe,{name:n,setup(i,{attrs:l}){const c=F(),u=je(s,void 0);Mt(a,{collectionItemRef:c}),St(()=>{const d=f(c);d&&u.itemMap.set(d,{ref:d,...l})}),qt(()=>{const d=f(c);u.itemMap.delete(d)})}});return{COLLECTION_INJECTION_KEY:s,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:o,ElCollectionItem:r}},Joe=Me({style:{type:re([String,Array,Object])},currentTabId:{type:re(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:re(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:Zoe,ElCollectionItem:Qoe,COLLECTION_INJECTION_KEY:tM,COLLECTION_ITEM_INJECTION_KEY:ere}=Xoe("RovingFocusGroup"),Aw=Symbol("elRovingFocusGroup"),nM=Symbol("elRovingFocusGroupItem"),tre={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},nre=(e,t)=>e,sre=(e,t,n)=>{const s=an(e),a=nre(s);return tre[a]},are=(e,t)=>e.map((n,s)=>e[(s+t)%e.length]),XS=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},JS="currentTabIdChange",ZS="rovingFocusGroup.entryFocus",ore={bubbles:!1,cancelable:!0};var rre=j({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Joe,emits:[JS,"entryFocus"],setup(e,{emit:t}){var n;const s=F((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),a=F(!1),o=F(!1),r=F(),{getItems:i}=je(tM,void 0),l=k(()=>[{outline:"none"},e.style]),c=g=>{t(JS,g)},u=()=>{a.value=!0},d=fs(g=>{var b;(b=e.onMousedown)==null||b.call(e,g)},()=>{o.value=!0}),h=fs(g=>{var b;(b=e.onFocus)==null||b.call(e,g)},g=>{const b=!f(o),{target:C,currentTarget:w}=g;if(C===w&&b&&!f(a)){const _=new Event(ZS,ore);if(w==null||w.dispatchEvent(_),!_.defaultPrevented){const x=i().filter(M=>M.focusable),E=x.find(M=>M.active),T=x.find(M=>M.id===f(s)),I=[E,T,...x].filter(Boolean).map(M=>M.ref);XS(I)}}o.value=!1}),p=fs(g=>{var b;(b=e.onBlur)==null||b.call(e,g)},()=>{a.value=!1}),v=(...g)=>{t("entryFocus",...g)},m=g=>{const b=sre(g);if(b){g.preventDefault();let w=i().filter(_=>_.focusable).map(_=>_.ref);switch(b){case"last":{w.reverse();break}case"prev":case"next":{b==="prev"&&w.reverse();const _=w.indexOf(g.currentTarget);w=e.loop?are(w,_+1):w.slice(_+1);break}}ze(()=>{XS(w)})}};Mt(Aw,{currentTabbedId:Nd(s),loop:Jt(e,"loop"),tabIndex:k(()=>f(a)?-1:0),rovingFocusGroupRef:r,rovingFocusGroupRootStyle:l,orientation:Jt(e,"orientation"),dir:Jt(e,"dir"),onItemFocus:c,onItemShiftTab:u,onBlur:p,onFocus:h,onMousedown:d,onKeydown:m}),be(()=>e.currentTabId,g=>{s.value=g??null}),Xt(r,ZS,v)}});function ire(e,t,n,s,a,o){return ue(e.$slots,"default")}var lre=is(rre,[["render",ire]]),cre=j({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Zoe,ElRovingFocusGroupImpl:lre}});function ure(e,t,n,s,a,o){const r=qe("el-roving-focus-group-impl"),i=qe("el-focus-group-collection");return S(),ce(i,null,{default:X(()=>[W(r,vl(ml(e.$attrs)),{default:X(()=>[ue(e.$slots,"default")]),_:3},16)]),_:3})}var dre=is(cre,[["render",ure]]);const Q2=Me({trigger:{...pi.trigger,type:re([String,Array])},triggerKeys:{type:re(Array),default:()=>[Te.enter,Te.numpadEnter,Te.space,Te.down]},virtualTriggering:pi.virtualTriggering,virtualRef:pi.virtualRef,effect:{...Zt.effect,default:"light"},type:{type:re(String)},placement:{type:re(String),default:"bottom"},popperOptions:{type:re(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:re([Number,String]),default:0},maxHeight:{type:re([Number,String]),default:""},popperClass:Zt.popperClass,popperStyle:Zt.popperStyle,disabled:Boolean,role:{type:String,values:bA,default:"menu"},buttonProps:{type:re(Object)},teleported:Zt.teleported,appendTo:Zt.appendTo,persistent:{type:Boolean,default:!0}}),sM=Me({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:en}}),fre=Me({onKeydown:{type:re(Function)}}),Bb=Symbol("elDropdown"),aM="elDropdown",{ButtonGroup:hre}=ps;var pre=j({name:"ElDropdown",components:{ElButton:ps,ElButtonGroup:hre,ElScrollbar:Cr,ElTooltip:As,ElRovingFocusGroup:dre,ElOnlyChild:CA,ElIcon:Ye,ArrowDown:Nr},props:Q2,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Ct(),s=Ee("dropdown"),{t:a}=Rt(),o=F(),r=F(),i=F(),l=F(),c=F(null),u=F(null),d=F(!1),h=k(()=>({maxHeight:Mn(e.maxHeight)})),p=k(()=>[s.m(_.value)]),v=k(()=>Es(e.trigger)),m=Fs().value,g=k(()=>e.id||m);function b(){var B;(B=i.value)==null||B.onClose(void 0,0)}function C(){var B;(B=i.value)==null||B.onClose()}function w(){var B;(B=i.value)==null||B.onOpen()}const _=ns();function x(...B){t("command",...B)}function E(){}function T(){const B=f(l);v.value.includes("hover")&&(B==null||B.focus({preventScroll:!0})),u.value=null}function R(B){u.value=B}function I(){t("visible-change",!0)}function M(B){var q;d.value=(B==null?void 0:B.type)==="keydown",(q=l.value)==null||q.focus()}function $(){t("visible-change",!1)}return Mt(Bb,{contentRef:l,role:k(()=>e.role),triggerId:g,isUsingKeyboard:d,onItemEnter:E,onItemLeave:T,handleClose:C}),Mt(aM,{instance:n,dropdownSize:_,handleClick:b,commandHandler:x,trigger:Jt(e,"trigger"),hideOnClick:Jt(e,"hideOnClick")}),{t:a,ns:s,scrollbar:c,wrapStyle:h,dropdownTriggerKls:p,dropdownSize:_,triggerId:g,currentTabId:u,handleCurrentTabIdChange:R,handlerMainButtonClick:B=>{t("click",B)},handleClose:C,handleOpen:w,handleBeforeShowTooltip:I,handleShowTooltip:M,handleBeforeHideTooltip:$,popperRef:i,contentRef:l,triggeringElementRef:o,referenceElementRef:r}}});function vre(e,t,n,s,a,o){var r;const i=qe("el-roving-focus-group"),l=qe("el-scrollbar"),c=qe("el-only-child"),u=qe("el-tooltip"),d=qe("el-button"),h=qe("arrow-down"),p=qe("el-icon"),v=qe("el-button-group");return S(),P("div",{class:D([e.ns.b(),e.ns.is("disabled",e.disabled)])},[W(u,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":(r=e.virtualRef)!=null?r:e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Na({content:X(()=>[W(l,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:X(()=>[W(i,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:X(()=>[ue(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:X(()=>[W(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:X(()=>[ue(e.$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"]),e.splitButton?(S(),ce(v,{key:0},{default:X(()=>[W(d,_t({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:X(()=>[ue(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),W(d,_t({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:X(()=>[W(p,{class:D(e.ns.e("icon"))},{default:X(()=>[W(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ie("v-if",!0)],2)}var mre=is(pre,[["render",vre]]),gre=j({components:{ElRovingFocusCollectionItem:Qoe},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:s,onItemShiftTab:a,onKeydown:o}=je(Aw,void 0),r=Fs(),i=F(),l=fs(h=>{t("mousedown",h)},h=>{e.focusable?s(f(r)):h.preventDefault()}),c=fs(h=>{t("focus",h)},()=>{s(f(r))}),u=fs(h=>{t("keydown",h)},h=>{const{shiftKey:p,target:v,currentTarget:m}=h;if(an(h)===Te.tab&&p){a();return}v===m&&o(h)}),d=k(()=>n.value===f(r));return Mt(nM,{rovingFocusGroupItemRef:i,tabIndex:k(()=>f(d)?0:-1),handleMousedown:l,handleFocus:c,handleKeydown:u}),{id:r,handleKeydown:u,handleFocus:c,handleMousedown:l}}});function bre(e,t,n,s,a,o){const r=qe("el-roving-focus-collection-item");return S(),ce(r,{id:e.id,focusable:e.focusable,active:e.active},{default:X(()=>[ue(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var yre=is(gre,[["render",bre]]),wre=j({name:"DropdownItemImpl",components:{ElIcon:Ye},props:sM,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Ee("dropdown"),{role:s}=je(Bb,void 0),{collectionItemRef:a}=je(ere,void 0),{rovingFocusGroupItemRef:o,tabIndex:r,handleFocus:i,handleKeydown:l,handleMousedown:c}=je(nM,void 0),u=kw(a,o),d=k(()=>s.value==="menu"?"menuitem":s.value==="navigation"?"link":"button"),h=fs(p=>{const v=an(p);if([Te.enter,Te.numpadEnter,Te.space].includes(v))return p.preventDefault(),p.stopImmediatePropagation(),t("clickimpl",p),!0},l);return{ns:n,itemRef:u,dataset:{[eM]:""},role:d,tabIndex:r,handleFocus:i,handleKeydown:h,handleMousedown:c}}});const _re=["aria-disabled","tabindex","role"];function Cre(e,t,n,s,a,o){const r=qe("el-icon");return S(),P(Ve,null,[e.divided?(S(),P("li",{key:0,role:"separator",class:D(e.ns.bem("menu","item","divided"))},null,2)):ie("v-if",!0),A("li",_t({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=i=>e.$emit("clickimpl",i)),onFocus:t[1]||(t[1]=(...i)=>e.handleFocus&&e.handleFocus(...i)),onKeydown:t[2]||(t[2]=it((...i)=>e.handleKeydown&&e.handleKeydown(...i),["self"])),onMousedown:t[3]||(t[3]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),onPointermove:t[4]||(t[4]=i=>e.$emit("pointermove",i)),onPointerleave:t[5]||(t[5]=i=>e.$emit("pointerleave",i))}),[e.icon||e.$slots.icon?(S(),ce(r,{key:0},{default:X(()=>[ue(e.$slots,"icon",{},()=>[(S(),ce(bt(e.icon)))])]),_:3})):ie("v-if",!0),ue(e.$slots,"default")],16,_re)],64)}var Sre=is(wre,[["render",Cre]]);const oM=()=>{const e=je(aM,{}),t=k(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}};var xre=j({name:"ElDropdownItem",components:{ElRovingFocusItem:yre,ElDropdownItemImpl:Sre},inheritAttrs:!1,props:sM,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:s}=oM(),a=Ct(),{onItemEnter:o,onItemLeave:r}=je(Bb,void 0),i=fs(d=>(t("pointermove",d),d.defaultPrevented),SS(d=>{if(e.disabled){r(d);return}const h=d.currentTarget;h===document.activeElement||h.contains(document.activeElement)||(o(d),d.defaultPrevented||h==null||h.focus({preventScroll:!0}))})),l=fs(d=>(t("pointerleave",d),d.defaultPrevented),SS(r)),c=fs(d=>{if(!e.disabled)return t("click",d),d.type!=="keydown"&&d.defaultPrevented},d=>{var h,p,v;if(e.disabled){d.stopImmediatePropagation();return}(h=s==null?void 0:s.hideOnClick)!=null&&h.value&&((p=s.handleClick)==null||p.call(s)),(v=s.commandHandler)==null||v.call(s,e.command,a,d)}),u=k(()=>({...e,...n}));return{handleClick:c,handlePointerMove:i,handlePointerLeave:l,propsAndAttrs:u}}});function Ere(e,t,n,s,a,o){const r=qe("el-dropdown-item-impl"),i=qe("el-roving-focus-item");return S(),ce(i,{focusable:!e.disabled},{default:X(()=>[W(r,_t(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),Na({default:X(()=>[ue(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:X(()=>[ue(e.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var rM=is(xre,[["render",Ere]]),kre=j({name:"ElDropdownMenu",props:fre,setup(e){const t=Ee("dropdown"),{_elDropdownSize:n}=oM(),s=n.value,{contentRef:a,role:o,triggerId:r,isUsingKeyboard:i,handleClose:l}=je(Bb,void 0),{rovingFocusGroupRef:c,rovingFocusGroupRootStyle:u,onBlur:d,onFocus:h,onKeydown:p,onMousedown:v}=je(Aw,void 0),{collectionRef:m}=je(tM,void 0),g=k(()=>[t.b("menu"),t.bm("menu",s==null?void 0:s.value)]),b=kw(a,c,m),C=fs(_=>{var x;(x=e.onKeydown)==null||x.call(e,_)},_=>{const{currentTarget:x,target:E}=_,T=an(_);if(x.contains(E),Te.tab===T)return l();p(_)});function w(_){i.value&&h(_)}return{size:s,rovingFocusGroupRootStyle:u,dropdownKls:g,role:o,triggerId:r,dropdownListWrapperRef:b,handleKeydown:C,onBlur:d,handleFocus:w,onMousedown:v}}});const Are=["role","aria-labelledby"];function Tre(e,t,n,s,a,o){return S(),P("ul",{ref:e.dropdownListWrapperRef,class:D(e.dropdownKls),style:tt(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...r)=>e.handleFocus&&e.handleFocus(...r)),onFocusout:t[1]||(t[1]=(...r)=>e.onBlur&&e.onBlur(...r)),onKeydown:t[2]||(t[2]=it((...r)=>e.handleKeydown&&e.handleKeydown(...r),["self"])),onMousedown:t[3]||(t[3]=it((...r)=>e.onMousedown&&e.onMousedown(...r),["self"]))},[ue(e.$slots,"default")],46,Are)}var iM=is(kre,[["render",Tre]]);const Mre=pt(mre,{DropdownItem:rM,DropdownMenu:iM}),Pre=En(rM),Rre=En(iM),Ire=Me({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),Lre={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Ore=["id"],Nre=["stop-color"],$re=["stop-color"],Dre=["id"],Fre=["stop-color"],Bre=["stop-color"],Vre=["id"],zre={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Hre={transform:"translate(-1268.000000, -535.000000)"},Wre={transform:"translate(1268.000000, 535.000000)"},jre=["fill"],Kre=["fill"],Ure={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},qre=["fill"],Gre=["fill"],Yre=["fill"],Xre=["fill"],Jre=["fill"],Zre={transform:"translate(53.000000, 45.000000)"},Qre=["fill","xlink:href"],eie=["fill","mask"],tie=["fill"];var nie=j({name:"ImgEmpty",__name:"img-empty",setup(e){const t=Ee("empty"),n=Fs();return(s,a)=>(S(),P("svg",Lre,[A("defs",null,[A("linearGradient",{id:`linearGradient-1-${f(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[A("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Nre),A("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,$re)],8,Ore),A("linearGradient",{id:`linearGradient-2-${f(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[A("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Fre),A("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,Bre)],8,Dre),A("rect",{id:`path-3-${f(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,Vre)]),A("g",zre,[A("g",Hre,[A("g",Wre,[A("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(${f(t).cssVarBlockName("fill-color-3")})`},null,8,jre),A("polygon",{fill:`var(${f(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,Kre),A("g",Ure,[A("polygon",{fill:`var(${f(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,qre),A("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,Gre),A("rect",{fill:`url(#linearGradient-1-${f(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,Yre),A("polygon",{fill:`var(${f(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,Xre)]),A("rect",{fill:`url(#linearGradient-2-${f(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,Jre),A("g",Zre,[A("use",{fill:`var(${f(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${f(n)}`},null,8,Qre),A("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${f(n)})`,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,eie)]),A("polygon",{fill:`var(${f(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,tie)])])])]))}});const sie=["src"],aie={key:1};var oie=j({name:"ElEmpty",__name:"empty",props:Ire,setup(e){const t=e,{t:n}=Rt(),s=Ee("empty"),a=k(()=>t.description||n("el.table.emptyText")),o=k(()=>({width:Mn(t.imageSize)}));return(r,i)=>(S(),P("div",{class:D(f(s).b())},[A("div",{class:D(f(s).e("image")),style:tt(o.value)},[e.image?(S(),P("img",{key:0,src:e.image,ondragstart:"return false"},null,8,sie)):ue(r.$slots,"image",{key:1},()=>[W(nie)])],6),A("div",{class:D(f(s).e("description"))},[r.$slots.description?ue(r.$slots,"description",{key:0}):(S(),P("p",aie,ge(a.value),1))],2),r.$slots.default?(S(),P("div",{key:0,class:D(f(s).e("bottom"))},[ue(r.$slots,"default")],2)):ie("v-if",!0)],2))}});const lM=pt(oie),rie=Me({size:{type:String,values:Or},disabled:Boolean}),iie=Me({...rie,model:Object,rules:{type:re(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:re([Object,Boolean]),default:!0}}),lie={validate:(e,t,n)=>(ke(e)||Xe(e))&&Qt(t)&&Xe(n)};function cie(){const e=F([]),t=k(()=>{if(!e.value.length)return"0";const o=Math.max(...e.value);return o?`${o}px`:""});function n(o){const r=e.value.indexOf(o);return r===-1&&t.value,r}function s(o,r){if(o&&r){const i=n(r);e.value.splice(i,1,o)}else o&&e.value.push(o)}function a(o){const r=n(o);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:s,deregisterLabelWidth:a}}const L2=(e,t)=>{const n=Es(t).map(s=>ke(s)?s.join("."):s);return n.length>0?e.filter(s=>s.propString&&n.includes(s.propString)):e},uie="ElForm";var die=j({name:uie,__name:"form",props:iie,emits:lie,setup(e,{expose:t,emit:n}){const s=e,a=n,o=F(),r=Kt([]),i=ns(),l=Ee("form"),c=k(()=>{const{labelPosition:E,inline:T}=s;return[l.b(),l.m(i.value||"default"),{[l.m(`label-${E}`)]:E,[l.m("inline")]:T}]}),u=E=>L2(r,[E])[0],d=E=>{r.push(E)},h=E=>{E.prop&&r.splice(r.indexOf(E),1)},p=E=>{s.model&&E&&r.forEach(T=>{if(T.prop&&aV(E,T.prop)){const R=Nf(E,T.prop).value;T.setInitialValue(R)}})},v=(E=[])=>{s.model&&L2(r,E).forEach(T=>T.resetField())},m=(E=[])=>{L2(r,E).forEach(T=>T.clearValidate())},g=k(()=>!!s.model),b=E=>{if(r.length===0)return[];const T=L2(r,E);return T.length?T:[]},C=async E=>_(void 0,E),w=async(E=[])=>{if(!g.value)return!1;const T=b(E);if(T.length===0)return!0;let R={};for(const I of T)try{await I.validate(""),I.validateState==="error"&&!I.error&&I.resetField()}catch(M){R={...R,...M}}return Object.keys(R).length===0?!0:Promise.reject(R)},_=async(E=[],T)=>{let R=!1;const I=!nt(T);try{return R=await w(E),R===!0&&await(T==null?void 0:T(R)),R}catch(M){if(M instanceof Error)throw M;const $=M;if(s.scrollToError&&o.value){const L=o.value.querySelector(`.${l.b()}-item.is-error`);L==null||L.scrollIntoView(s.scrollIntoViewOptions)}return!R&&await(T==null?void 0:T(!1,$)),I&&Promise.reject($)}},x=E=>{var T;const R=u(E);R&&((T=R.$el)==null||T.scrollIntoView(s.scrollIntoViewOptions))};return be(()=>s.rules,()=>{s.validateOnRuleChange&&C().catch(E=>void 0)},{deep:!0,flush:"post"}),Mt(ef,Kt({...gs(s),emit:a,resetFields:v,clearValidate:m,validateField:_,getField:u,addField:d,removeField:h,setInitialValues:p,...cie()})),t({validate:C,validateField:_,resetFields:v,clearValidate:m,scrollToField:x,getField:u,fields:r,setInitialValues:p}),(E,T)=>(S(),P("form",{ref_key:"formRef",ref:o,class:D(c.value)},[ue(E.$slots,"default")],2))}});const fie=["","error","validating","success"],hie=Me({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:re([String,Array])},required:{type:Boolean,default:void 0},rules:{type:re([Object,Array])},error:String,validateStatus:{type:String,values:fie},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:Or}});function bu(){return bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},bu.apply(this,arguments)}function pie(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yp(e,t)}function jy(e){return jy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jy(e)}function Yp(e,t){return Yp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,a){return s.__proto__=a,s},Yp(e,t)}function vie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function eg(e,t,n){return vie()?eg=Reflect.construct.bind():eg=function(a,o,r){var i=[null];i.push.apply(i,o);var l=Function.bind.apply(a,i),c=new l;return r&&Yp(c,r.prototype),c},eg.apply(null,arguments)}function mie(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ky(e){var t=typeof Map=="function"?new Map:void 0;return Ky=function(s){if(s===null||!mie(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(s))return t.get(s);t.set(s,a)}function a(){return eg(s,arguments,jy(this).constructor)}return a.prototype=Object.create(s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Yp(a,s)},Ky(e)}var gie=/%[sdj%]/g,bie=function(){};function Uy(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var s=n.field;t[s]=t[s]||[],t[s].push(n)}),t}function So(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];var a=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var r=e.replace(gie,function(i){if(i==="%%")return"%";if(a>=o)return i;switch(i){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return i}});return r}return e}function yie(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ts(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||yie(t)&&typeof e=="string"&&!e)}function wie(e,t,n){var s=[],a=0,o=e.length;function r(i){s.push.apply(s,i||[]),a++,a===o&&n(s)}e.forEach(function(i){t(i,r)})}function QS(e,t,n){var s=0,a=e.length;function o(r){if(r&&r.length){n(r);return}var i=s;s=s+1,i<a?t(e[i],o):n([])}o([])}function _ie(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var e5=function(e){pie(t,e);function t(n,s){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=n,a.fields=s,a}return t}(Ky(Error));function Cie(e,t,n,s,a){if(t.first){var o=new Promise(function(h,p){var v=function(b){return s(b),b.length?p(new e5(b,Uy(b))):h(a)},m=_ie(e);QS(m,n,v)});return o.catch(function(h){return h}),o}var r=t.firstFields===!0?Object.keys(e):t.firstFields||[],i=Object.keys(e),l=i.length,c=0,u=[],d=new Promise(function(h,p){var v=function(g){if(u.push.apply(u,g),c++,c===l)return s(u),u.length?p(new e5(u,Uy(u))):h(a)};i.length||(s(u),h(a)),i.forEach(function(m){var g=e[m];r.indexOf(m)!==-1?QS(g,n,v):wie(g,n,v)})});return d.catch(function(h){return h}),d}function Sie(e){return!!(e&&e.message!==void 0)}function xie(e,t){for(var n=e,s=0;s<t.length;s++){if(n==null)return n;n=n[t[s]]}return n}function t5(e,t){return function(n){var s;return e.fullFields?s=xie(t,e.fullFields):s=t[n.field||e.fullField],Sie(n)?(n.field=n.field||e.fullField,n.fieldValue=s,n):{message:typeof n=="function"?n():n,fieldValue:s,field:n.field||e.fullField}}}function n5(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var s=t[n];typeof s=="object"&&typeof e[n]=="object"?e[n]=bu({},e[n],s):e[n]=s}}return e}var cM=function(t,n,s,a,o,r){t.required&&(!s.hasOwnProperty(t.field)||Ts(n,r||t.type))&&a.push(So(o.messages.required,t.fullField))},Eie=function(t,n,s,a,o){(/^\s+$/.test(n)||n==="")&&a.push(So(o.messages.whitespace,t.fullField))},O2,kie=function(){if(O2)return O2;var e="[a-fA-F\\d:]",t=function(_){return _&&_.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",s="[a-fA-F\\d]{1,4}",a=(`
(?:
(?:`+s+":){7}(?:"+s+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+s+":){6}(?:"+n+"|:"+s+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+s+":){5}(?::"+n+"|(?::"+s+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+s+":){4}(?:(?::"+s+"){0,1}:"+n+"|(?::"+s+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+s+":){3}(?:(?::"+s+"){0,2}:"+n+"|(?::"+s+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+s+":){2}(?:(?::"+s+"){0,3}:"+n+"|(?::"+s+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+s+":){1}(?:(?::"+s+"){0,4}:"+n+"|(?::"+s+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+s+"){0,5}:"+n+"|(?::"+s+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),r=new RegExp("^"+n+"$"),i=new RegExp("^"+a+"$"),l=function(_){return _&&_.exact?o:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+a+t(_)+")","g")};l.v4=function(w){return w&&w.exact?r:new RegExp(""+t(w)+n+t(w),"g")},l.v6=function(w){return w&&w.exact?i:new RegExp(""+t(w)+a+t(w),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,h=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',C="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+h+"|"+p+v+m+")"+g+b;return O2=new RegExp("(?:^"+C+"$)","i"),O2},s5={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},j0={integer:function(t){return j0.number(t)&&parseInt(t,10)===t},float:function(t){return j0.number(t)&&!j0.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"&&!j0.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(s5.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(kie())},hex:function(t){return typeof t=="string"&&!!t.match(s5.hex)}},Aie=function(t,n,s,a,o){if(t.required&&n===void 0){cM(t,n,s,a,o);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=t.type;r.indexOf(i)>-1?j0[i](n)||a.push(So(o.messages.types[i],t.fullField,t.type)):i&&typeof n!==t.type&&a.push(So(o.messages.types[i],t.fullField,t.type))},Tie=function(t,n,s,a,o){var r=typeof t.len=="number",i=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,h=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(h?d="number":p?d="string":v&&(d="array"),!d)return!1;v&&(u=n.length),p&&(u=n.replace(c,"_").length),r?u!==t.len&&a.push(So(o.messages[d].len,t.fullField,t.len)):i&&!l&&u<t.min?a.push(So(o.messages[d].min,t.fullField,t.min)):l&&!i&&u>t.max?a.push(So(o.messages[d].max,t.fullField,t.max)):i&&l&&(u<t.min||u>t.max)&&a.push(So(o.messages[d].range,t.fullField,t.min,t.max))},lf="enum",Mie=function(t,n,s,a,o){t[lf]=Array.isArray(t[lf])?t[lf]:[],t[lf].indexOf(n)===-1&&a.push(So(o.messages[lf],t.fullField,t[lf].join(", ")))},Pie=function(t,n,s,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(So(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||a.push(So(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},hn={required:cM,whitespace:Eie,type:Aie,range:Tie,enum:Mie,pattern:Pie},Rie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n,"string")&&!t.required)return s();hn.required(t,n,a,r,o,"string"),Ts(n,"string")||(hn.type(t,n,a,r,o),hn.range(t,n,a,r,o),hn.pattern(t,n,a,r,o),t.whitespace===!0&&hn.whitespace(t,n,a,r,o))}s(r)},Iie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n)&&!t.required)return s();hn.required(t,n,a,r,o),n!==void 0&&hn.type(t,n,a,r,o)}s(r)},Lie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(n===""&&(n=void 0),Ts(n)&&!t.required)return s();hn.required(t,n,a,r,o),n!==void 0&&(hn.type(t,n,a,r,o),hn.range(t,n,a,r,o))}s(r)},Oie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n)&&!t.required)return s();hn.required(t,n,a,r,o),n!==void 0&&hn.type(t,n,a,r,o)}s(r)},Nie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n)&&!t.required)return s();hn.required(t,n,a,r,o),Ts(n)||hn.type(t,n,a,r,o)}s(r)},$ie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n)&&!t.required)return s();hn.required(t,n,a,r,o),n!==void 0&&(hn.type(t,n,a,r,o),hn.range(t,n,a,r,o))}s(r)},Die=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n)&&!t.required)return s();hn.required(t,n,a,r,o),n!==void 0&&(hn.type(t,n,a,r,o),hn.range(t,n,a,r,o))}s(r)},Fie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(n==null&&!t.required)return s();hn.required(t,n,a,r,o,"array"),n!=null&&(hn.type(t,n,a,r,o),hn.range(t,n,a,r,o))}s(r)},Bie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n)&&!t.required)return s();hn.required(t,n,a,r,o),n!==void 0&&hn.type(t,n,a,r,o)}s(r)},Vie="enum",zie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n)&&!t.required)return s();hn.required(t,n,a,r,o),n!==void 0&&hn[Vie](t,n,a,r,o)}s(r)},Hie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n,"string")&&!t.required)return s();hn.required(t,n,a,r,o),Ts(n,"string")||hn.pattern(t,n,a,r,o)}s(r)},Wie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n,"date")&&!t.required)return s();if(hn.required(t,n,a,r,o),!Ts(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),hn.type(t,l,a,r,o),l&&hn.range(t,l.getTime(),a,r,o)}}s(r)},jie=function(t,n,s,a,o){var r=[],i=Array.isArray(n)?"array":typeof n;hn.required(t,n,a,r,o,i),s(r)},F4=function(t,n,s,a,o){var r=t.type,i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ts(n,r)&&!t.required)return s();hn.required(t,n,a,i,o,r),Ts(n,r)||hn.type(t,n,a,i,o)}s(i)},Kie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n)&&!t.required)return s();hn.required(t,n,a,r,o)}s(r)},Sp={string:Rie,method:Iie,number:Lie,boolean:Oie,regexp:Nie,integer:$ie,float:Die,array:Fie,object:Bie,enum:zie,pattern:Hie,date:Wie,url:F4,hex:F4,email:F4,required:jie,any:Kie};function qy(){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 Gy=qy(),i2=function(){function e(n){this.rules=null,this._messages=Gy,this.define(n)}var t=e.prototype;return t.define=function(s){var a=this;if(!s)throw new Error("Cannot configure a schema with no rules");if(typeof s!="object"||Array.isArray(s))throw new Error("Rules must be an object");this.rules={},Object.keys(s).forEach(function(o){var r=s[o];a.rules[o]=Array.isArray(r)?r:[r]})},t.messages=function(s){return s&&(this._messages=n5(qy(),s)),this._messages},t.validate=function(s,a,o){var r=this;a===void 0&&(a={}),o===void 0&&(o=function(){});var i=s,l=a,c=o;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(m){var g=[],b={};function C(_){if(Array.isArray(_)){var x;g=(x=g).concat.apply(x,_)}else g.push(_)}for(var w=0;w<m.length;w++)C(m[w]);g.length?(b=Uy(g),c(g,b)):c(null,i)}if(l.messages){var d=this.messages();d===Gy&&(d=qy()),n5(d,l.messages),l.messages=d}else l.messages=this.messages();var h={},p=l.keys||Object.keys(this.rules);p.forEach(function(m){var g=r.rules[m],b=i[m];g.forEach(function(C){var w=C;typeof w.transform=="function"&&(i===s&&(i=bu({},i)),b=i[m]=w.transform(b)),typeof w=="function"?w={validator:w}:w=bu({},w),w.validator=r.getValidationMethod(w),w.validator&&(w.field=m,w.fullField=w.fullField||m,w.type=r.getType(w),h[m]=h[m]||[],h[m].push({rule:w,value:b,source:i,field:m}))})});var v={};return Cie(h,l,function(m,g){var b=m.rule,C=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");C=C&&(b.required||!b.required&&m.value),b.field=m.field;function w(E,T){return bu({},T,{fullField:b.fullField+"."+E,fullFields:b.fullFields?[].concat(b.fullFields,[E]):[E]})}function _(E){E===void 0&&(E=[]);var T=Array.isArray(E)?E:[E];!l.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&b.message!==void 0&&(T=[].concat(b.message));var R=T.map(t5(b,i));if(l.first&&R.length)return v[b.field]=1,g(R);if(!C)g(R);else{if(b.required&&!m.value)return b.message!==void 0?R=[].concat(b.message).map(t5(b,i)):l.error&&(R=[l.error(b,So(l.messages.required,b.field))]),g(R);var I={};b.defaultField&&Object.keys(m.value).map(function(L){I[L]=b.defaultField}),I=bu({},I,m.rule.fields);var M={};Object.keys(I).forEach(function(L){var B=I[L],q=Array.isArray(B)?B:[B];M[L]=q.map(w.bind(null,L))});var $=new e(M);$.messages(l.messages),m.rule.options&&(m.rule.options.messages=l.messages,m.rule.options.error=l.error),$.validate(m.value,m.rule.options||l,function(L){var B=[];R&&R.length&&B.push.apply(B,R),L&&L.length&&B.push.apply(B,L),g(B.length?B:null)})}}var x;if(b.asyncValidator)x=b.asyncValidator(b,m.value,_,m.source,l);else if(b.validator){try{x=b.validator(b,m.value,_,m.source,l)}catch(E){console.error==null||console.error(E),l.suppressValidatorError||setTimeout(function(){throw E},0),_(E.message)}x===!0?_():x===!1?_(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):x instanceof Array?_(x):x instanceof Error&&_(x.message)}x&&x.then&&x.then(function(){return _()},function(E){return _(E)})},function(m){u(m)},i)},t.getType=function(s){if(s.type===void 0&&s.pattern instanceof RegExp&&(s.type="pattern"),typeof s.validator!="function"&&s.type&&!Sp.hasOwnProperty(s.type))throw new Error(So("Unknown rule type %s",s.type));return s.type||"string"},t.getValidationMethod=function(s){if(typeof s.validator=="function")return s.validator;var a=Object.keys(s),o=a.indexOf("message");return o!==-1&&a.splice(o,1),a.length===1&&a[0]==="required"?Sp.required:Sp[this.getType(s)]||void 0},e}();i2.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Sp[t]=n};i2.warning=bie;i2.messages=Gy;i2.validators=Sp;const a5="ElLabelWrap";var Uie=j({name:a5,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=je(ef,void 0),s=je(Ci);s||Jn(a5,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Ee("form"),o=F(),r=F(0),i=()=>{var u;if((u=o.value)!=null&&u.firstElementChild){const d=window.getComputedStyle(o.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},l=(u="update")=>{ze(()=>{t.default&&e.isAutoWidth&&(u==="update"?r.value=i():u==="remove"&&(n==null||n.deregisterLabelWidth(r.value)))})},c=()=>l("update");return St(()=>{c()}),qt(()=>{l("remove")}),Pr(()=>c()),be(r,(u,d)=>{e.updateAll&&(n==null||n.registerLabelWidth(u,d))}),wn(k(()=>{var u,d;return(d=(u=o.value)==null?void 0:u.firstElementChild)!=null?d:null}),c),()=>{var u,d;if(!t)return null;const{isAutoWidth:h}=e;if(h){const p=n==null?void 0:n.autoLabelWidth,v=s==null?void 0:s.hasLabel,m={};if(v&&p&&p!=="auto"){const g=Math.max(0,Number.parseInt(p,10)-r.value),C=(s.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";g&&(m[C]=`${g}px`)}return W("div",{ref:o,class:[a.be("item","label-wrap")],style:m},[(u=t.default)==null?void 0:u.call(t)])}else return W(Ve,{ref:o},[(d=t.default)==null?void 0:d.call(t)])}}});const qie=["role","aria-labelledby"];var uM=j({name:"ElFormItem",__name:"form-item",props:hie,setup(e,{expose:t}){const n=e,s=Hn(),a=je(ef,void 0),o=je(Ci,void 0),r=ns(void 0,{formItem:!1}),i=Ee("form-item"),l=Fs().value,c=F([]),u=F(""),d=DV(u,100),h=F(""),p=F();let v,m=!1;const g=k(()=>n.labelPosition||(a==null?void 0:a.labelPosition)),b=k(()=>{var fe;return g.value==="top"?{}:{width:Mn((fe=n.labelWidth)!=null?fe:a==null?void 0:a.labelWidth)}}),C=k(()=>{var fe;if(g.value==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&M)return{};const le=Mn((fe=n.labelWidth)!=null?fe:a==null?void 0:a.labelWidth);return!n.label&&!s.label?{marginLeft:le}:{}}),w=k(()=>[i.b(),i.m(r.value),i.is("error",u.value==="error"),i.is("validating",u.value==="validating"),i.is("success",u.value==="success"),i.is("required",J.value||n.required),i.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[i.m("feedback")]:a==null?void 0:a.statusIcon,[i.m(`label-${g.value}`)]:g.value}]),_=k(()=>Qt(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),x=k(()=>[i.e("error"),{[i.em("error","inline")]:_.value}]),E=k(()=>n.prop?ke(n.prop)?n.prop.join("."):n.prop:""),T=k(()=>!!(n.label||s.label)),R=k(()=>{var fe;return(fe=n.for)!=null?fe:c.value.length===1?c.value[0]:void 0}),I=k(()=>!R.value&&T.value),M=!!o,$=k(()=>{const fe=a==null?void 0:a.model;if(!(!fe||!n.prop))return Nf(fe,n.prop).value}),L=k(()=>{const{required:fe}=n,le=[];n.rules&&le.push(...Es(n.rules));const Z=a==null?void 0:a.rules;if(Z&&n.prop){const H=Nf(Z,n.prop).value;H&&le.push(...Es(H))}if(fe!==void 0){const H=le.map((ae,de)=>[ae,de]).filter(([ae])=>"required"in ae);if(H.length>0)for(const[ae,de]of H)ae.required!==fe&&(le[de]={...ae,required:fe});else le.push({required:fe})}return le}),B=k(()=>L.value.length>0),q=fe=>L.value.filter(Z=>!Z.trigger||!fe?!0:ke(Z.trigger)?Z.trigger.includes(fe):Z.trigger===fe).map(({trigger:Z,...H})=>H),J=k(()=>L.value.some(fe=>fe.required)),Y=k(()=>{var fe;return d.value==="error"&&n.showMessage&&((fe=a==null?void 0:a.showMessage)!=null?fe:!0)}),O=k(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),N=fe=>{u.value=fe},V=fe=>{var le,Z;const{errors:H,fields:ae}=fe;(!H||!ae)&&console.error(fe),N("error"),h.value=H?(Z=(le=H==null?void 0:H[0])==null?void 0:le.message)!=null?Z:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,h.value)},z=()=>{N("success"),a==null||a.emit("validate",n.prop,!0,"")},G=async fe=>{const le=E.value;return new i2({[le]:fe}).validate({[le]:$.value},{firstFields:!0}).then(()=>(z(),!0)).catch(H=>(V(H),Promise.reject(H)))},Q=async(fe,le)=>{if(m||!n.prop)return!1;const Z=nt(le);if(!B.value)return le==null||le(!1),!1;const H=q(fe);return H.length===0?(le==null||le(!0),!0):(N("validating"),G(H).then(()=>(le==null||le(!0),!0)).catch(ae=>{const{fields:de}=ae;return le==null||le(!1,de),Z?!1:Promise.reject(de)}))},K=()=>{N(""),h.value="",m=!1},ee=async()=>{const fe=a==null?void 0:a.model;if(!fe||!n.prop)return;const le=Nf(fe,n.prop);m=!0,le.value=_4(v),await ze(),K(),m=!1},se=fe=>{c.value.includes(fe)||c.value.push(fe)},he=fe=>{c.value=c.value.filter(le=>le!==fe)},te=fe=>{v=_4(fe)};be(()=>n.error,fe=>{h.value=fe||"",N(fe?"error":"")},{immediate:!0}),be(()=>n.validateStatus,fe=>N(fe||""));const pe=Kt({...gs(n),$el:p,size:r,validateMessage:h,validateState:u,labelId:l,inputIds:c,isGroup:I,hasLabel:T,fieldValue:$,addInputId:se,removeInputId:he,resetField:ee,clearValidate:K,validate:Q,propString:E,setInitialValue:te});return Mt(Ci,pe),St(()=>{n.prop&&(a==null||a.addField(pe),v=_4($.value))}),qt(()=>{a==null||a.removeField(pe)}),t({size:r,validateMessage:h,validateState:u,validate:Q,clearValidate:K,resetField:ee,setInitialValue:te}),(fe,le)=>{var Z;return S(),P("div",{ref_key:"formItemRef",ref:p,class:D(w.value),role:I.value?"group":void 0,"aria-labelledby":I.value?f(l):void 0},[W(f(Uie),{"is-auto-width":b.value.width==="auto","update-all":((Z=f(a))==null?void 0:Z.labelWidth)==="auto"},{default:X(()=>[e.label||fe.$slots.label?(S(),ce(bt(R.value?"label":"div"),{key:0,id:f(l),for:R.value,class:D(f(i).e("label")),style:tt(b.value)},{default:X(()=>[ue(fe.$slots,"label",{label:O.value},()=>[We(ge(O.value),1)])]),_:3},8,["id","for","class","style"])):ie("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),A("div",{class:D(f(i).e("content")),style:tt(C.value)},[ue(fe.$slots,"default"),W(uE,{name:`${f(i).namespace.value}-zoom-in-top`},{default:X(()=>[Y.value?ue(fe.$slots,"error",{key:0,error:h.value},()=>[A("div",{class:D(x.value)},ge(h.value),3)]):ie("v-if",!0)]),_:3},8,["name"])],6)],10,qie)}}});const Gie=pt(die,{FormItem:uM}),Yie=En(uM),Xie=Me({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:re([String,Object])},previewSrcList:{type:re(Array),default:()=>Tn([])},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:re(String)}}),Jie={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>st(e),close:()=>!0,show:()=>!0},Zie=Me({urlList:{type:re(Array),default:()=>Tn([])},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:re(String)}}),Qie={close:()=>!0,error:e=>e instanceof Event,switch:e=>st(e),rotate:e=>st(e)},ele=["src","crossorigin"];var tle=j({name:"ElImageViewer",__name:"image-viewer",props:Zie,emits:Qie,setup(e,{expose:t,emit:n}){var s;const a={CONTAIN:{name:"contain",icon:di(B8)},ORIGINAL:{name:"original",icon:di(Wk)}},o=e,r=n;let i;const{t:l}=Rt(),c=Ee("image-viewer"),{nextZIndex:u}=qm(),d=F(),h=F(),p=BI(),v=k(()=>{const{scale:le,minScale:Z,maxScale:H}=o;return dk(le,Z,H)}),m=F(!0),g=F(!1),b=F(!1),C=F(o.initialIndex),w=fn(a.CONTAIN),_=F({scale:v.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),x=F((s=o.zIndex)!=null?s:u());Fb(b,{ns:c});const E=k(()=>{const{urlList:le}=o;return le.length<=1}),T=k(()=>C.value===0),R=k(()=>C.value===o.urlList.length-1),I=k(()=>o.urlList[C.value]),M=k(()=>[c.e("btn"),c.e("prev"),c.is("disabled",!o.infinite&&T.value)]),$=k(()=>[c.e("btn"),c.e("next"),c.is("disabled",!o.infinite&&R.value)]),L=k(()=>{const{scale:le,deg:Z,offsetX:H,offsetY:ae,enableTransition:de}=_.value;let ye=H/le,_e=ae/le;const Se=Z*Math.PI/180,Ne=Math.cos(Se),Fe=Math.sin(Se);ye=ye*Ne+_e*Fe,_e=_e*Ne-H/le*Fe;const Oe={transform:`scale(${le}) rotate(${Z}deg) translate(${ye}px, ${_e}px)`,transition:de?"transform .3s":""};return w.value.name===a.CONTAIN.name&&(Oe.maxWidth=Oe.maxHeight="100%"),Oe}),B=k(()=>`${C.value+1} / ${o.urlList.length}`);function q(){Y(),i==null||i(),b.value=!1,r("close")}function J(){const le=Lc(H=>{switch(an(H)){case Te.esc:o.closeOnPressEscape&&q();break;case Te.space:Q();break;case Te.left:ee();break;case Te.up:he("zoomIn");break;case Te.right:se();break;case Te.down:he("zoomOut");break}}),Z=Lc(H=>{const ae=H.deltaY||H.deltaX;he(ae<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});p.run(()=>{Xt(document,"keydown",le),Xt(d,"wheel",Z)})}function Y(){p.stop()}function O(){m.value=!1}function N(le){g.value=!0,m.value=!1,r("error",le),le.target.alt=l("el.image.error")}function V(le){if(m.value||le.button!==0||!d.value)return;_.value.enableTransition=!1;const{offsetX:Z,offsetY:H}=_.value,ae=le.pageX,de=le.pageY,ye=Lc(Ne=>{_.value={..._.value,offsetX:Z+Ne.pageX-ae,offsetY:H+Ne.pageY-de}}),_e=Xt(document,"mousemove",ye),Se=Xt(document,"mouseup",()=>{_e(),Se()});le.preventDefault()}function z(le){if(m.value||!d.value||le.touches.length!==1)return;_.value.enableTransition=!1;const{offsetX:Z,offsetY:H}=_.value,{pageX:ae,pageY:de}=le.touches[0],ye=Lc(Ne=>{const Fe=Ne.touches[0];_.value={..._.value,offsetX:Z+Fe.pageX-ae,offsetY:H+Fe.pageY-de}}),_e=Xt(document,"touchmove",ye),Se=Xt(document,"touchend",()=>{_e(),Se()});le.preventDefault()}function G(){_.value={scale:v.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function Q(){if(m.value||g.value)return;const le=zp(a),Z=Object.values(a),H=w.value.name,de=(Z.findIndex(ye=>ye.name===H)+1)%le.length;w.value=a[le[de]],G()}function K(le){g.value=!1;const Z=o.urlList.length;C.value=(le+Z)%Z}function ee(){T.value&&!o.infinite||K(C.value-1)}function se(){R.value&&!o.infinite||K(C.value+1)}function he(le,Z={}){if(m.value||g.value)return;const{minScale:H,maxScale:ae}=o,{zoomRate:de,rotateDeg:ye,enableTransition:_e}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...Z};switch(le){case"zoomOut":_.value.scale>H&&(_.value.scale=Number.parseFloat((_.value.scale/de).toFixed(3)));break;case"zoomIn":_.value.scale<ae&&(_.value.scale=Number.parseFloat((_.value.scale*de).toFixed(3)));break;case"clockwise":_.value.deg+=ye,r("rotate",_.value.deg);break;case"anticlockwise":_.value.deg-=ye,r("rotate",_.value.deg);break}_.value.enableTransition=_e}function te(le){var Z;((Z=le.detail)==null?void 0:Z.focusReason)==="pointer"&&le.preventDefault()}function pe(){o.closeOnPressEscape&&q()}function fe(le){if(le.ctrlKey){if(le.deltaY<0)return le.preventDefault(),!1;if(le.deltaY>0)return le.preventDefault(),!1}}return be(()=>v.value,le=>{_.value.scale=le}),be(I,()=>{ze(()=>{const le=h.value;le!=null&&le.complete||(m.value=!0)})}),be(C,le=>{G(),r("switch",le)}),St(()=>{b.value=!0,J(),i=Xt("wheel",fe,{passive:!1})}),t({setActiveItem:K}),(le,Z)=>(S(),ce(f(w0),{to:"body",disabled:!e.teleported},{default:X(()=>[W(bs,{name:"viewer-fade",appear:""},{default:X(()=>[A("div",{ref_key:"wrapper",ref:d,tabindex:-1,class:D(f(c).e("wrapper")),style:tt({zIndex:x.value})},[W(f(C0),{loop:"",trapped:"","focus-trap-el":d.value,"focus-start-el":"container",onFocusoutPrevented:te,onReleaseRequested:pe},{default:X(()=>[A("div",{class:D(f(c).e("mask")),onClick:Z[0]||(Z[0]=it(H=>e.hideOnClickModal&&q(),["self"]))},null,2),ie(" CLOSE "),A("span",{class:D([f(c).e("btn"),f(c).e("close")]),onClick:q},[W(f(Ye),null,{default:X(()=>[W(f(eo))]),_:1})],2),ie(" ARROW "),E.value?ie("v-if",!0):(S(),P(Ve,{key:0},[A("span",{class:D(M.value),onClick:ee},[W(f(Ye),null,{default:X(()=>[W(f(Go))]),_:1})],2),A("span",{class:D($.value),onClick:se},[W(f(Ye),null,{default:X(()=>[W(f(Ds))]),_:1})],2)],64)),le.$slots.progress||e.showProgress?(S(),P("div",{key:1,class:D([f(c).e("btn"),f(c).e("progress")])},[ue(le.$slots,"progress",{activeIndex:C.value,total:e.urlList.length},()=>[We(ge(B.value),1)])],2)):ie("v-if",!0),ie(" ACTIONS "),A("div",{class:D([f(c).e("btn"),f(c).e("actions")])},[A("div",{class:D(f(c).e("actions__inner"))},[ue(le.$slots,"toolbar",{actions:he,prev:ee,next:se,reset:Q,activeIndex:C.value,setActiveItem:K},()=>[W(f(Ye),{onClick:Z[1]||(Z[1]=H=>he("zoomOut"))},{default:X(()=>[W(f(W8))]),_:1}),W(f(Ye),{onClick:Z[2]||(Z[2]=H=>he("zoomIn"))},{default:X(()=>[W(f(Tb))]),_:1}),A("i",{class:D(f(c).e("actions__divider"))},null,2),W(f(Ye),{onClick:Q},{default:X(()=>[(S(),ce(bt(w.value.icon)))]),_:1}),A("i",{class:D(f(c).e("actions__divider"))},null,2),W(f(Ye),{onClick:Z[3]||(Z[3]=H=>he("anticlockwise"))},{default:X(()=>[W(f(Ab))]),_:1}),W(f(Ye),{onClick:Z[4]||(Z[4]=H=>he("clockwise"))},{default:X(()=>[W(f(Hk))]),_:1})])],2)],2),ie(" CANVAS "),A("div",{class:D(f(c).e("canvas"))},[g.value&&le.$slots["viewer-error"]?ue(le.$slots,"viewer-error",{key:0,activeIndex:C.value,src:I.value}):(S(),P("img",{ref_key:"imgRef",ref:h,key:I.value,src:I.value,style:tt(L.value),class:D(f(c).e("img")),crossorigin:e.crossorigin,onLoad:O,onError:N,onMousedown:V,onTouchstart:z},null,46,ele))],2),ue(le.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});const dM=pt(tle),nle=["src","loading","crossorigin"],sle={key:0};var ale=j({name:"ElImage",inheritAttrs:!1,__name:"image",props:Xie,emits:Jie,setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Rt(),r=Ee("image"),i=Nl(),l=k(()=>Vp(Object.entries(i).filter(([O])=>/^(data-|on[A-Z])/i.test(O)||["id","style"].includes(O)))),c=Rb({excludeListeners:!0,excludeKeys:k(()=>Object.keys(l.value))}),u=F(),d=F(!1),h=F(!0),p=F(!1),v=F(),m=F(),g=jt&&"loading"in HTMLImageElement.prototype;let b;const C=k(()=>[r.e("inner"),_.value&&r.e("preview"),h.value&&r.is("loading")]),w=k(()=>{const{fit:O}=s;return jt&&O?{objectFit:O}:{}}),_=k(()=>{const{previewSrcList:O}=s;return ke(O)&&O.length>0}),x=k(()=>{const{previewSrcList:O,initialIndex:N}=s;let V=N;return N>O.length-1&&(V=0),V}),E=k(()=>s.loading==="eager"?!1:!g&&s.loading==="lazy"||s.lazy),T=()=>{jt&&(h.value=!0,d.value=!1,u.value=s.src)};function R(O){h.value=!1,d.value=!1,a("load",O)}function I(O){h.value=!1,d.value=!0,a("error",O)}function M(O){O&&(T(),B())}const $=hk(M,200,!0);async function L(){var O;if(!jt)return;await ze();const{scrollContainer:N}=s;if(Ya(N))m.value=N;else if(Xe(N)&&N!=="")m.value=(O=document.querySelector(N))!=null?O:void 0;else if(v.value){const z=O8(v.value);m.value=jm(z)?void 0:z}const{stop:V}=KV(v,([z])=>{$(z.isIntersecting)},{root:m});b=V}function B(){!jt||!$||(b==null||b(),m.value=void 0,b=void 0)}function q(){_.value&&(p.value=!0,a("show"))}function J(){p.value=!1,a("close")}function Y(O){a("switch",O)}return be(()=>s.src,()=>{E.value?(h.value=!0,d.value=!1,B(),L()):T()}),St(()=>{E.value?L():T()}),t({showPreview:q}),(O,N)=>(S(),P("div",_t({ref_key:"container",ref:v},l.value,{class:[f(r).b(),O.$attrs.class]}),[d.value?ue(O.$slots,"error",{key:0},()=>[A("div",{class:D(f(r).e("error"))},ge(f(o)("el.image.error")),3)]):(S(),P(Ve,{key:1},[u.value!==void 0?(S(),P("img",_t({key:0},f(c),{src:u.value,loading:e.loading,style:w.value,class:C.value,crossorigin:e.crossorigin,onClick:q,onLoad:R,onError:I}),null,16,nle)):ie("v-if",!0),h.value?(S(),P("div",{key:1,class:D(f(r).e("wrapper"))},[ue(O.$slots,"placeholder",{},()=>[A("div",{class:D(f(r).e("placeholder"))},null,2)])],2)):ie("v-if",!0)],64)),_.value?(S(),P(Ve,{key:2},[p.value?(S(),ce(f(dM),{key:0,"z-index":e.zIndex,"initial-index":x.value,infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"show-progress":e.showProgress,"url-list":e.previewSrcList,scale:e.scale,crossorigin:e.crossorigin,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:J,onSwitch:Y},Na({toolbar:X(V=>[ue(O.$slots,"toolbar",vl(ml(V)))]),default:X(()=>[O.$slots.viewer?(S(),P("div",sle,[ue(O.$slots,"viewer")])):ie("v-if",!0)]),_:2},[O.$slots.progress?{name:"progress",fn:X(V=>[ue(O.$slots,"progress",vl(ml(V)))]),key:"0"}:void 0,O.$slots["viewer-error"]?{name:"viewer-error",fn:X(V=>[ue(O.$slots,"viewer-error",vl(ml(V)))]),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"])):ie("v-if",!0)],64)):ie("v-if",!0)],16))}});const ole=pt(ale),rle=Me({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:rs,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:re([String,Number,null]),validator:e=>e===null||st(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...ya(["ariaLabel"]),inputmode:{type:re(String),default:void 0},align:{type:re(String),default:"center"},disabledScientific:Boolean}),ile={[Pt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[ts]:e=>st(e)||Un(e),[ct]:e=>st(e)||Un(e)},lle=["aria-label"],cle=["aria-label"];var ule=j({name:"ElInputNumber",__name:"input-number",props:rle,emits:ile,setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Rt(),r=Ee("input-number"),i=F(),l=Kt({currentValue:s.modelValue,userInput:null}),{formItem:c}=Ms(),u=k(()=>st(s.modelValue)&&s.modelValue<=s.min),d=k(()=>st(s.modelValue)&&s.modelValue>=s.max),h=k(()=>{const O=C(s.step);return Dt(s.precision)?Math.max(C(s.modelValue),O):(O>s.precision,s.precision)}),p=k(()=>s.controls&&s.controlsPosition==="right"),v=ns(),m=Pn(),g=k(()=>{if(l.userInput!==null)return l.userInput;let O=l.currentValue;if(Un(O))return"";if(st(O)){if(Number.isNaN(O))return"";Dt(s.precision)||(O=O.toFixed(s.precision))}return O}),b=(O,N)=>{if(Dt(N)&&(N=h.value),N===0)return Math.round(O);let V=String(O);const z=V.indexOf(".");if(z===-1||!V.replace(".","").split("")[z+N])return O;const K=V.length;return V.charAt(K-1)==="5"&&(V=`${V.slice(0,Math.max(0,K-1))}6`),Number.parseFloat(Number(V).toFixed(N))},C=O=>{if(Un(O))return 0;const N=O.toString(),V=N.indexOf(".");let z=0;return V!==-1&&(z=N.length-V-1),z},w=(O,N=1)=>st(O)?O>=Number.MAX_SAFE_INTEGER&&N===1||O<=Number.MIN_SAFE_INTEGER&&N===-1?O:b(O+s.step*N):l.currentValue,_=O=>{const N=an(O),V=kA(O);if(s.disabledScientific&&["e","E"].includes(V)){O.preventDefault();return}switch(N){case Te.up:{O.preventDefault(),x();break}case Te.down:{O.preventDefault(),E();break}}},x=()=>{if(s.readonly||m.value||d.value)return;const O=Number(g.value)||0,N=w(O);R(N),a(ts,l.currentValue),J()},E=()=>{if(s.readonly||m.value||u.value)return;const O=Number(g.value)||0,N=w(O,-1);R(N),a(ts,l.currentValue),J()},T=(O,N)=>{const{max:V,min:z,step:G,precision:Q,stepStrictly:K,valueOnClear:ee}=s;V<z&&Jn("InputNumber","min should not be greater than max.");let se=Number(O);if(Un(O)||Number.isNaN(se))return null;if(O===""){if(ee===null)return null;se=Xe(ee)?{min:z,max:V}[ee]:ee}return K&&(se=b(Math.round(b(se/G))*G,Q),se!==O&&N&&a(ct,se)),Dt(Q)||(se=b(se,Q)),(se>V||se<z)&&(se=se>V?V:z,N&&a(ct,se)),se},R=(O,N=!0)=>{var V;const z=l.currentValue,G=T(O);if(!N){a(ct,G);return}l.userInput=null,!(z===G&&O)&&(a(ct,G),z!==G&&a(Pt,G,z),s.validateEvent&&((V=c==null?void 0:c.validate)==null||V.call(c,"change").catch(Q=>void 0)),l.currentValue=G)},I=O=>{l.userInput=O;const N=O===""?null:Number(O);a(ts,N),R(N,!1)},M=O=>{const N=O!==""?Number(O):"";(st(N)&&!Number.isNaN(N)||O==="")&&R(N),J(),l.userInput=null},$=()=>{var O,N;(N=(O=i.value)==null?void 0:O.focus)==null||N.call(O)},L=()=>{var O,N;(N=(O=i.value)==null?void 0:O.blur)==null||N.call(O)},B=O=>{a("focus",O)},q=O=>{var N,V;l.userInput=null,l.currentValue===null&&((N=i.value)!=null&&N.input)&&(i.value.input.value=""),a("blur",O),s.validateEvent&&((V=c==null?void 0:c.validate)==null||V.call(c,"blur").catch(z=>void 0))},J=()=>{l.currentValue!==s.modelValue&&(l.currentValue=s.modelValue)},Y=O=>{document.activeElement===O.target&&O.preventDefault()};return be(()=>s.modelValue,(O,N)=>{const V=T(O,!0);l.userInput===null&&V!==N&&(l.currentValue=V)},{immediate:!0}),be(()=>s.precision,()=>{l.currentValue=T(s.modelValue)}),St(()=>{var O;const{min:N,max:V,modelValue:z}=s,G=(O=i.value)==null?void 0:O.input;if(G.setAttribute("role","spinbutton"),Number.isFinite(V)?G.setAttribute("aria-valuemax",String(V)):G.removeAttribute("aria-valuemax"),Number.isFinite(N)?G.setAttribute("aria-valuemin",String(N)):G.removeAttribute("aria-valuemin"),G.setAttribute("aria-valuenow",l.currentValue||l.currentValue===0?String(l.currentValue):""),G.setAttribute("aria-disabled",String(m.value)),!st(z)&&z!=null){let Q=Number(z);Number.isNaN(Q)&&(Q=null),a(ct,Q)}G.addEventListener("wheel",Y,{passive:!1})}),Pr(()=>{var O,N;const V=(O=i.value)==null?void 0:O.input;V==null||V.setAttribute("aria-valuenow",`${(N=l.currentValue)!=null?N:""}`)}),t({focus:$,blur:L}),(O,N)=>(S(),P("div",{class:D([f(r).b(),f(r).m(f(v)),f(r).is("disabled",f(m)),f(r).is("without-controls",!e.controls),f(r).is("controls-right",p.value),f(r).is(e.align,!!e.align)]),onDragstart:N[0]||(N[0]=it(()=>{},["prevent"]))},[e.controls?gt((S(),P("span",{key:0,role:"button","aria-label":f(o)("el.inputNumber.decrease"),class:D([f(r).e("decrease"),f(r).is("disabled",u.value)]),onKeydown:Ln(E,["enter"])},[ue(O.$slots,"decrease-icon",{},()=>[W(f(Ye),null,{default:X(()=>[p.value?(S(),ce(f(Nr),{key:0})):(S(),ce(f($k),{key:1}))]),_:1})])],42,lle)),[[f(u1),E]]):ie("v-if",!0),e.controls?gt((S(),P("span",{key:1,role:"button","aria-label":f(o)("el.inputNumber.increase"),class:D([f(r).e("increase"),f(r).is("disabled",d.value)]),onKeydown:Ln(x,["enter"])},[ue(O.$slots,"increase-icon",{},()=>[W(f(Ye),null,{default:X(()=>[p.value?(S(),ce(f(Xm),{key:0})):(S(),ce(f(V8),{key:1}))]),_:1})])],42,cle)),[[f(u1),x]]):ie("v-if",!0),W(f(ga),{id:e.id,ref_key:"input",ref:i,type:"number",step:e.step,"model-value":g.value,placeholder:e.placeholder,readonly:e.readonly,disabled:f(m),size:f(v),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,onKeydown:_,onBlur:q,onFocus:B,onInput:I,onChange:M},Na({_:2},[O.$slots.prefix?{name:"prefix",fn:X(()=>[ue(O.$slots,"prefix")]),key:"0"}:void 0,O.$slots.suffix?{name:"suffix",fn:X(()=>[ue(O.$slots,"suffix")]),key:"1"}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],34))}});const fM=pt(ule),dle=Me({modelValue:{type:re(Array)},max:Number,tagType:{...Pl.type,default:"info"},tagEffect:Pl.effect,effect:{type:re(String),default:"light"},trigger:{type:re(String),default:Te.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:rs,clearable:Boolean,clearIcon:{type:en,default:Jo},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:re(String),default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),fle={[ct]:e=>ke(e)||Dt(e),[Pt]:e=>ke(e)||Dt(e),[ts]:e=>Xe(e),"add-tag":e=>Xe(e)||ke(e),"remove-tag":(e,t)=>Xe(e)&&st(t),"drag-tag":(e,t,n)=>st(e)&&st(t)&&Xe(n),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function hle({props:e,emit:t,formItem:n}){const s=Pn(),a=ns(),o=fn(),r=F(),i=F(),l=k(()=>["small"].includes(a.value)?"small":"default"),c=k(()=>{var J;return(J=e.modelValue)!=null&&J.length?void 0:e.placeholder}),u=k(()=>!(e.readonly||s.value)),d=k(()=>{var J,Y;return Dt(e.max)?!1:((Y=(J=e.modelValue)==null?void 0:J.length)!=null?Y:0)>=e.max}),h=k(()=>{var J;return e.collapseTags?(J=e.modelValue)==null?void 0:J.slice(0,e.maxCollapseTags):e.modelValue}),p=k(()=>{var J;return e.collapseTags?(J=e.modelValue)==null?void 0:J.slice(e.maxCollapseTags):[]}),v=J=>{var Y;const O=[...(Y=e.modelValue)!=null?Y:[],...Es(J)];t(ct,O),t(Pt,O),t("add-tag",J),r.value=void 0},m=J=>{var Y,O;const N=J.split(e.delimiter).filter(V=>V&&V!==J);if(e.max){const V=e.max-((O=(Y=e.modelValue)==null?void 0:Y.length)!=null?O:0);N.splice(V)}return N.length===1?N[0]:N},g=J=>{if(d.value){r.value=void 0;return}if(!$.value){if(e.delimiter&&r.value){const Y=m(r.value);Y.length&&v(Y)}t(ts,J.target.value)}},b=J=>{var Y;if($.value)return;switch(an(J)){case e.trigger:J.preventDefault(),J.stopPropagation(),w();break;case Te.numpadEnter:e.trigger===Te.enter&&(J.preventDefault(),J.stopPropagation(),w());break;case Te.backspace:!r.value&&((Y=e.modelValue)!=null&&Y.length)&&(J.preventDefault(),J.stopPropagation(),_(e.modelValue.length-1));break}},C=J=>{if($.value||!dA())return;switch(an(J)){case Te.space:e.trigger===Te.space&&(J.preventDefault(),J.stopPropagation(),w());break}},w=()=>{var J;const Y=(J=r.value)==null?void 0:J.trim();!Y||d.value||v(Y)},_=J=>{var Y;const O=((Y=e.modelValue)!=null?Y:[]).slice(),[N]=O.splice(J,1);t(ct,O),t(Pt,O),t("remove-tag",N,J)},x=()=>{r.value=void 0,t(ct,void 0),t(Pt,void 0),t("clear")},E=(J,Y,O)=>{var N;const V=((N=e.modelValue)!=null?N:[]).slice(),[z]=V.splice(J,1),G=Y>J&&O==="before"?-1:Y<J&&O==="after"?1:0;V.splice(Y+G,0,z),t(ct,V),t(Pt,V),t("drag-tag",J,Y+G,z)},T=()=>{var J;(J=o.value)==null||J.focus()},R=()=>{var J;(J=o.value)==null||J.blur()},{wrapperRef:I,isFocused:M}=Fl(o,{disabled:s,beforeBlur(J){var Y;return(Y=i.value)==null?void 0:Y.isFocusInsideContent(J)},afterBlur(){var J;e.saveOnBlur?w():r.value=void 0,e.validateEvent&&((J=n==null?void 0:n.validate)==null||J.call(n,"blur").catch(Y=>void 0))}}),{isComposing:$,handleCompositionStart:L,handleCompositionUpdate:B,handleCompositionEnd:q}=s2({afterComposition:g});return be(()=>e.modelValue,()=>{var J;e.validateEvent&&((J=n==null?void 0:n.validate)==null||J.call(n,Pt).catch(Y=>void 0))}),{inputRef:o,wrapperRef:I,tagTooltipRef:i,isFocused:M,isComposing:$,inputValue:r,size:a,tagSize:l,placeholder:c,closable:u,disabled:s,inputLimit:d,showTagList:h,collapseTagList:p,handleDragged:E,handleInput:g,handleKeydown:b,handleKeyup:C,handleAddTag:w,handleRemoveTag:_,handleClear:x,handleCompositionStart:L,handleCompositionUpdate:B,handleCompositionEnd:q,focus:T,blur:R}}function ple(){const e=F(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function vle({wrapperRef:e,handleDragged:t,afterDragged:n}){const s=Ee("input-tag"),a=fn(),o=F(!1);let r,i,l,c;function u(v){return`.${s.e("inner")} .${s.namespace.value}-tag:nth-child(${v+1})`}function d(v,m){r=m,i=e.value.querySelector(u(m)),i&&(i.style.opacity="0.5"),v.dataTransfer.effectAllowed="move"}function h(v,m){if(l=m,v.preventDefault(),v.dataTransfer.dropEffect="move",Dt(r)||r===m){o.value=!1;return}const g=e.value.querySelector(u(m)).getBoundingClientRect(),b=r+1!==m,C=r-1!==m,w=v.clientX-g.left,_=b?C?.5:1:-1,x=C?b?.5:0:1;w<=g.width*_?c="before":w>g.width*x?c="after":c=void 0;const E=e.value.querySelector(`.${s.e("inner")}`),T=E.getBoundingClientRect(),R=Number.parseFloat(fl(E,"gap"))/2,I=g.top-T.top;let M=-9999;if(c==="before")M=Math.max(g.left-T.left-R,Math.floor(-R/2));else if(c==="after"){const $=g.right-T.left;M=$+(T.width===$?Math.floor(R/2):R)}xk(a.value,{top:`${I}px`,left:`${M}px`}),o.value=!!c}function p(v){v.preventDefault(),i&&(i.style.opacity=""),c&&!Dt(r)&&!Dt(l)&&r!==l&&t(r,l,c),o.value=!1,r=void 0,i=null,l=void 0,c=void 0,n==null||n()}return{dropIndicatorRef:a,showDropIndicator:o,handleDragStart:d,handleDragOver:h,handleDragEnd:p}}function mle({props:e,isFocused:t,hovering:n,disabled:s,inputValue:a,size:o,validateState:r,validateIcon:i,needStatusIcon:l}){const c=Nl(),u=Hn(),d=Ee("input-tag"),h=Ee("input"),p=F(),v=F(),m=k(()=>[d.b(),d.is("focused",t.value),d.is("hovering",n.value),d.is("disabled",s.value),d.m(o.value),d.e("wrapper"),c.class]),g=k(()=>[c.style]),b=k(()=>{var I,M;return[d.e("inner"),d.is("draggable",e.draggable),d.is("left-space",!((I=e.modelValue)!=null&&I.length)&&!u.prefix),d.is("right-space",!((M=e.modelValue)!=null&&M.length)&&!w.value)]}),C=k(()=>{var I;return e.clearable&&!s.value&&!e.readonly&&(((I=e.modelValue)==null?void 0:I.length)||a.value)&&(t.value||n.value)}),w=k(()=>u.suffix||C.value||r.value&&i.value&&l.value),_=Kt({innerWidth:0,collapseItemWidth:0}),x=()=>{if(!v.value)return 0;const I=window.getComputedStyle(v.value);return Number.parseFloat(I.gap||"6px")},E=()=>{_.innerWidth=Number.parseFloat(window.getComputedStyle(v.value).width)},T=()=>{_.collapseItemWidth=p.value.getBoundingClientRect().width},R=k(()=>{if(!e.collapseTags)return{};const I=x(),M=I+Lb,$=p.value&&e.maxCollapseTags===1?_.innerWidth-_.collapseItemWidth-I-M:_.innerWidth-M;return{maxWidth:`${Math.max($,0)}px`}});return wn(v,E),wn(p,T),{ns:d,nsInput:h,containerKls:m,containerStyle:g,innerKls:b,showClear:C,showSuffix:w,tagStyle:R,collapseItemRef:p,innerRef:v}}const gle=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],ble=["textContent"];var yle=j({name:"ElInputTag",inheritAttrs:!1,__name:"input-tag",props:dle,emits:fle,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Rb(),r=Hn(),{form:i,formItem:l}=Ms(),{inputId:c}=Mo(s,{formItemContext:l}),u=k(()=>{var Oe;return(Oe=i==null?void 0:i.statusIcon)!=null?Oe:!1}),d=k(()=>(l==null?void 0:l.validateState)||""),h=k(()=>d.value&&Mb[d.value]),{inputRef:p,wrapperRef:v,tagTooltipRef:m,isFocused:g,inputValue:b,size:C,tagSize:w,placeholder:_,closable:x,disabled:E,showTagList:T,collapseTagList:R,handleDragged:I,handleInput:M,handleKeydown:$,handleKeyup:L,handleRemoveTag:B,handleClear:q,handleCompositionStart:J,handleCompositionUpdate:Y,handleCompositionEnd:O,focus:N,blur:V}=hle({props:s,emit:a,formItem:l}),{hovering:z,handleMouseEnter:G,handleMouseLeave:Q}=ple(),{calculatorRef:K,inputStyle:ee}=cw(),{dropIndicatorRef:se,showDropIndicator:he,handleDragStart:te,handleDragOver:pe,handleDragEnd:fe}=vle({wrapperRef:v,handleDragged:I,afterDragged:N}),{ns:le,nsInput:Z,containerKls:H,containerStyle:ae,innerKls:de,showClear:ye,showSuffix:_e,tagStyle:Se,collapseItemRef:Ne,innerRef:Fe}=mle({props:s,hovering:z,isFocused:g,inputValue:b,disabled:E,size:C,validateState:d,validateIcon:h,needStatusIcon:u});return t({focus:N,blur:V}),(Oe,Ce)=>(S(),P("div",{ref_key:"wrapperRef",ref:v,class:D(f(H)),style:tt(f(ae)),onMouseenter:Ce[8]||(Ce[8]=(...Ie)=>f(G)&&f(G)(...Ie)),onMouseleave:Ce[9]||(Ce[9]=(...Ie)=>f(Q)&&f(Q)(...Ie))},[f(r).prefix?(S(),P("div",{key:0,class:D(f(le).e("prefix"))},[ue(Oe.$slots,"prefix")],2)):ie("v-if",!0),A("div",{ref_key:"innerRef",ref:Fe,class:D(f(de))},[(S(!0),P(Ve,null,yt(f(T),(Ie,Pe)=>(S(),ce(f(yl),{key:Pe,size:f(w),closable:f(x),type:e.tagType,effect:e.tagEffect,draggable:f(x)&&e.draggable,style:tt(f(Se)),"disable-transitions":"",onClose:He=>f(B)(Pe),onDragstart:He=>f(te)(He,Pe),onDragover:He=>f(pe)(He,Pe),onDragend:f(fe),onDrop:Ce[0]||(Ce[0]=it(()=>{},["stop"]))},{default:X(()=>[ue(Oe.$slots,"tag",{value:Ie,index:Pe},()=>[We(ge(Ie),1)])]),_:2},1032,["size","closable","type","effect","draggable","style","onClose","onDragstart","onDragover","onDragend"]))),128)),e.collapseTags&&e.modelValue&&e.modelValue.length>e.maxCollapseTags?(S(),ce(f(As),{key:0,ref_key:"tagTooltipRef",ref:m,disabled:!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom"},{default:X(()=>[A("div",{ref_key:"collapseItemRef",ref:Ne,class:D(f(le).e("collapse-tag"))},[W(f(yl),{closable:!1,size:f(w),type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:X(()=>[We(" + "+ge(e.modelValue.length-e.maxCollapseTags),1)]),_:1},8,["size","type","effect"])],2)]),content:X(()=>[A("div",{class:D(f(le).e("input-tag-list"))},[(S(!0),P(Ve,null,yt(f(R),(Ie,Pe)=>(S(),ce(f(yl),{key:Pe,size:f(w),closable:f(x),type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:He=>f(B)(Pe+e.maxCollapseTags)},{default:X(()=>[ue(Oe.$slots,"tag",{value:Ie,index:Pe+e.maxCollapseTags},()=>[We(ge(Ie),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):ie("v-if",!0),A("div",{class:D(f(le).e("input-wrapper"))},[gt(A("input",_t({id:f(c),ref_key:"inputRef",ref:p,"onUpdate:modelValue":Ce[1]||(Ce[1]=Ie=>vn(b)?b.value=Ie:null)},f(o),{type:"text",minlength:e.minlength,maxlength:e.maxlength,disabled:f(E),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,placeholder:f(_),autofocus:e.autofocus,ariaLabel:e.ariaLabel,class:f(le).e("input"),style:f(ee),onCompositionstart:Ce[2]||(Ce[2]=(...Ie)=>f(J)&&f(J)(...Ie)),onCompositionupdate:Ce[3]||(Ce[3]=(...Ie)=>f(Y)&&f(Y)(...Ie)),onCompositionend:Ce[4]||(Ce[4]=(...Ie)=>f(O)&&f(O)(...Ie)),onInput:Ce[5]||(Ce[5]=(...Ie)=>f(M)&&f(M)(...Ie)),onKeydown:Ce[6]||(Ce[6]=(...Ie)=>f($)&&f($)(...Ie)),onKeyup:Ce[7]||(Ce[7]=(...Ie)=>f(L)&&f(L)(...Ie))}),null,16,gle),[[fE,f(b)]]),A("span",{ref_key:"calculatorRef",ref:K,"aria-hidden":"true",class:D(f(le).e("input-calculator")),textContent:ge(f(b))},null,10,ble)],2),gt(A("div",{ref_key:"dropIndicatorRef",ref:se,class:D(f(le).e("drop-indicator"))},null,2),[[Bt,f(he)]])],2),f(_e)?(S(),P("div",{key:1,class:D(f(le).e("suffix"))},[ue(Oe.$slots,"suffix"),f(ye)?(S(),ce(f(Ye),{key:0,class:D([f(le).e("icon"),f(le).e("clear")]),onMousedown:it(f(Yt),["prevent"]),onClick:f(q)},{default:X(()=>[(S(),ce(bt(e.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):ie("v-if",!0),d.value&&h.value&&u.value?(S(),ce(f(Ye),{key:1,class:D([f(Z).e("icon"),f(Z).e("validateIcon"),f(Z).is("loading",d.value==="validating")])},{default:X(()=>[(S(),ce(bt(h.value)))]),_:1},8,["class"])):ie("v-if",!0)],2)):ie("v-if",!0)],38))}});const wle=pt(yle),_le=Me({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:en}}),Cle={click:e=>e instanceof MouseEvent},Sle=["href","target"];var xle=j({name:"ElLink",__name:"link",props:_le,emits:Cle,setup(e,{emit:t}){const n=e,s=t,a=y0("link");vi({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"},k(()=>Qt(n.underline)));const o=Ee("link"),r=k(()=>{var c,u,d;return[o.b(),o.m((d=(u=n.type)!=null?u:(c=a.value)==null?void 0:c.type)!=null?d:"default"),o.is("disabled",n.disabled),o.is("underline",i.value==="always"),o.is("hover-underline",i.value==="hover"&&!n.disabled)]}),i=k(()=>{var c,u,d;return Qt(n.underline)?n.underline?"hover":"never":(d=(u=n.underline)!=null?u:(c=a.value)==null?void 0:c.underline)!=null?d:"hover"});function l(c){n.disabled||s("click",c)}return(c,u)=>(S(),P("a",{class:D(r.value),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:l},[e.icon?(S(),ce(f(Ye),{key:0},{default:X(()=>[(S(),ce(bt(e.icon)))]),_:1})):ie("v-if",!0),c.$slots.default?(S(),P("span",{key:1,class:D(f(o).e("inner"))},[ue(c.$slots,"default")],2)):ie("v-if",!0),c.$slots.icon?ue(c.$slots,"icon",{key:2}):ie("v-if",!0)],10,Sle))}});const Ele=pt(xle);var kle=Object.defineProperty,Ale=(e,t,n)=>t in e?kle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o5=(e,t,n)=>Ale(e,typeof t!="symbol"?t+"":t,n);let Tle=class{constructor(t,n){this.parent=t,this.domNode=n,o5(this,"subMenuItems"),o5(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,n=>{n.addEventListener("keydown",s=>{const a=an(s);let o=!1;switch(a){case Te.down:{this.gotoSubIndex(this.subIndex+1),o=!0;break}case Te.up:{this.gotoSubIndex(this.subIndex-1),o=!0;break}case Te.tab:{X2(t,"mouseleave");break}case Te.enter:case Te.numpadEnter:case Te.space:{o=!0,s.currentTarget.click();break}}return o&&(s.preventDefault(),s.stopPropagation()),!1})})}};var Mle=Object.defineProperty,Ple=(e,t,n)=>t in e?Mle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rle=(e,t,n)=>Ple(e,t+"",n);class Ile{constructor(t,n){this.domNode=t,Rle(this,"submenu",null),this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new Tle(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{const n=an(t);let s=!1;switch(n){case Te.down:{X2(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),s=!0;break}case Te.up:{X2(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),s=!0;break}case Te.tab:{X2(t.currentTarget,"mouseleave");break}case Te.enter:case Te.numpadEnter:case Te.space:{s=!0,t.currentTarget.click();break}}s&&t.preventDefault()})}}let Lle=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(s=>{s.nodeType===1&&new Ile(s,t)})}};var Ole=j({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=Ee("menu"),n={onBeforeEnter:s=>s.style.opacity="0.2",onEnter(s,a){Wo(s,`${t.namespace.value}-opacity-transition`),s.style.opacity="1",a()},onAfterEnter(s){ba(s,`${t.namespace.value}-opacity-transition`),s.style.opacity=""},onBeforeLeave(s){s.dataset||(s.dataset={}),fi(s,t.m("collapse"))?(ba(s,t.m("collapse")),s.dataset.oldOverflow=s.style.overflow,s.dataset.scrollWidth=s.clientWidth.toString(),Wo(s,t.m("collapse"))):(Wo(s,t.m("collapse")),s.dataset.oldOverflow=s.style.overflow,s.dataset.scrollWidth=s.clientWidth.toString(),ba(s,t.m("collapse"))),s.style.width=`${s.scrollWidth}px`,s.style.overflow="hidden"},onLeave(s){Wo(s,"horizontal-collapse-transition"),s.style.width=`${s.dataset.scrollWidth}px`}};return(s,a)=>(S(),ce(bs,_t({mode:"out-in"},n),{default:X(()=>[ue(s.$slots,"default")]),_:3},16))}});function hM(e,t){const n=k(()=>{let a=e.parent;const o=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&o.unshift(a.props.index),a=a.parent;return o});return{parentMenu:k(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function Nle(e){return k(()=>{const n=e.backgroundColor;return n?new Sf(n).shade(20).toString():""})}const pM=(e,t)=>{const n=Ee("menu");return k(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Nle(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},Tw="rootMenu",v1="subMenu:",$le=Me({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:re([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:en},expandOpenIcon:{type:en},collapseCloseIcon:{type:en},collapseOpenIcon:{type:en}}),B4="ElSubMenu";var Mw=j({name:B4,props:$le,setup(e,{slots:t,expose:n}){const s=Ct(),{indexPath:a,parentMenu:o}=hM(s,k(()=>e.index)),r=Ee("menu"),i=Ee("sub-menu"),l=je(Tw);l||Jn(B4,"can not inject root menu");const c=je(`${v1}${o.value.uid}`);c||Jn(B4,"can not inject sub menu");const u=F({}),d=F({});let h;const p=F(!1),v=F(),m=F(),g=k(()=>c.level===0),b=k(()=>R.value==="horizontal"&&g.value?"bottom-start":"right-start"),C=k(()=>R.value==="horizontal"&&g.value||R.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?E.value?e.expandOpenIcon:e.expandCloseIcon:Nr:e.collapseCloseIcon&&e.collapseOpenIcon?E.value?e.collapseOpenIcon:e.collapseCloseIcon:Ds),w=k(()=>{const Q=e.teleported;return Dt(Q)?g.value:Q}),_=k(()=>l.props.collapse?`${r.namespace.value}-zoom-in-left`:`${r.namespace.value}-zoom-in-top`),x=k(()=>R.value==="horizontal"&&g.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=k(()=>l.openedMenus.includes(e.index)),T=k(()=>[...Object.values(u.value),...Object.values(d.value)].some(({active:Q})=>Q)),R=k(()=>l.props.mode),I=k(()=>l.props.persistent),M=Kt({index:e.index,indexPath:a,active:T}),$=pM(l.props,c.level+1),L=k(()=>{var Q;return(Q=e.popperOffset)!=null?Q:l.props.popperOffset}),B=k(()=>{var Q;return(Q=e.popperClass)!=null?Q:l.props.popperClass}),q=k(()=>{var Q;return(Q=e.popperStyle)!=null?Q:l.props.popperStyle}),J=k(()=>{var Q;return(Q=e.showTimeout)!=null?Q:l.props.showTimeout}),Y=k(()=>{var Q;return(Q=e.hideTimeout)!=null?Q:l.props.hideTimeout}),O=()=>{var Q,K,ee;return(ee=(K=(Q=m.value)==null?void 0:Q.popperRef)==null?void 0:K.popperInstanceRef)==null?void 0:ee.destroy()},N=Q=>{Q||O()},V=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:a.value,active:T.value})},z=(Q,K=J.value)=>{var ee;if(Q.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,h==null||h(),{stop:h}=Zh(()=>{l.openMenu(e.index,a.value)},K),w.value&&((ee=o.value.vnode.el)==null||ee.dispatchEvent(new MouseEvent("mouseenter"))),Q.type==="mouseenter"&&Q.target&&ze(()=>{n2(Q.target,{preventScroll:!0})})}},G=(Q=!1)=>{var K;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){c.mouseInChild.value=!1;return}h==null||h(),c.mouseInChild.value=!1,{stop:h}=Zh(()=>!p.value&&l.closeMenu(e.index,a.value),Y.value),w.value&&Q&&((K=c.handleMouseleave)==null||K.call(c,!0))};be(()=>l.props.collapse,Q=>N(!!Q));{const Q=ee=>{d.value[ee.index]=ee},K=ee=>{delete d.value[ee.index]};Mt(`${v1}${s.uid}`,{addSubMenu:Q,removeSubMenu:K,handleMouseleave:G,mouseInChild:p,level:c.level+1})}return n({opened:E}),St(()=>{l.addSubMenu(M),c.addSubMenu(M)}),qt(()=>{c.removeSubMenu(M),l.removeSubMenu(M)}),()=>{var Q;const K=[(Q=t.title)==null?void 0:Q.call(t),ot(Ye,{class:i.e("icon-arrow"),style:{transform:E.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Xe(C.value)?ot(s.appContext.components[C.value]):ot(C.value)})],ee=l.isMenuPopup?ot(As,{ref:m,visible:E.value,effect:"light",pure:!0,offset:L.value,showArrow:!1,persistent:I.value,popperClass:B.value,popperStyle:q.value,placement:b.value,teleported:w.value,fallbackPlacements:x.value,transition:_.value,gpuAcceleration:!1},{content:()=>{var se;return ot("div",{class:[r.m(R.value),r.m("popup-container"),B.value],onMouseenter:he=>z(he,100),onMouseleave:()=>G(!0),onFocus:he=>z(he,100)},[ot("ul",{class:[r.b(),r.m("popup"),r.m(`popup-${b.value}`)],style:$.value},[(se=t.default)==null?void 0:se.call(t)])])},default:()=>ot("div",{class:i.e("title"),onClick:V},K)}):ot(Ve,{},[ot("div",{class:i.e("title"),ref:v,onClick:V},K),ot($b,{},{default:()=>{var se;return gt(ot("ul",{role:"menu",class:[r.b(),r.m("inline")],style:$.value},[(se=t.default)==null?void 0:se.call(t)]),[[Bt,E.value]])}})]);return ot("li",{class:[i.b(),i.is("active",T.value),i.is("opened",E.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:E.value,onMouseenter:z,onMouseleave:()=>G(),onFocus:z},[ee])}}});const Dle=Me({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:re(Array),default:()=>Tn([])},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:en,default:()=>Dk},popperEffect:{type:re(String),default:"dark"},popperClass:String,popperStyle:{type:re([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),V4=e=>ke(e)&&e.every(t=>Xe(t)),Fle={close:(e,t)=>Xe(e)&&V4(t),open:(e,t)=>Xe(e)&&V4(t),select:(e,t,n,s)=>Xe(e)&&V4(t)&&ft(n)&&(Dt(s)||s instanceof Promise)},r5=64;var Ble=j({name:"ElMenu",props:Dle,emits:Fle,setup(e,{emit:t,slots:n,expose:s}){const a=Ct(),o=a.appContext.config.globalProperties.$router,r=F(),i=F(),l=Ee("menu"),c=Ee("sub-menu");let u=r5;const d=F(-1),h=F(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),p=F(e.defaultActive),v=F({}),m=F({}),g=k(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),b=()=>{const O=p.value&&v.value[p.value];if(!O||e.mode==="horizontal"||e.collapse)return;O.indexPath.forEach(V=>{const z=m.value[V];z&&C(V,z.indexPath)})},C=(O,N)=>{h.value.includes(O)||(e.uniqueOpened&&(h.value=h.value.filter(V=>N.includes(V))),h.value.push(O),t("open",O,N))},w=O=>{const N=h.value.indexOf(O);N!==-1&&h.value.splice(N,1)},_=(O,N)=>{w(O),t("close",O,N)},x=({index:O,indexPath:N})=>{h.value.includes(O)?_(O,N):C(O,N)},E=O=>{(e.mode==="horizontal"||e.collapse)&&(h.value=[]);const{index:N,indexPath:V}=O;if(!(Un(N)||Un(V)))if(e.router&&o){const z=O.route||N,G=o.push(z).then(Q=>(Q||(p.value=N),Q));t("select",N,V,{index:N,indexPath:V,route:z},G)}else p.value=N,t("select",N,V,{index:N,indexPath:V})},T=O=>{var N;const V=v.value,z=V[O]||p.value&&V[p.value]||V[e.defaultActive];p.value=(N=z==null?void 0:z.index)!=null?N:O},R=O=>{const N=getComputedStyle(O),V=Number.parseInt(N.marginLeft,10),z=Number.parseInt(N.marginRight,10);return O.offsetWidth+V+z||0},I=()=>{if(!r.value)return-1;const O=Array.from(r.value.childNodes).filter(ee=>ee.nodeName!=="#comment"&&(ee.nodeName!=="#text"||ee.nodeValue)),N=getComputedStyle(r.value),V=Number.parseInt(N.paddingLeft,10),z=Number.parseInt(N.paddingRight,10),G=r.value.clientWidth-V-z;let Q=0,K=0;return O.forEach((ee,se)=>{Q+=R(ee),Q<=G-u&&(K=se+1)}),K===O.length?-1:K},M=O=>m.value[O].indexPath,$=(O,N=33.34)=>{let V;return()=>{V&&clearTimeout(V),V=setTimeout(()=>{O()},N)}};let L=!0;const B=()=>{const O=os(i);if(O&&(u=R(O)||r5),d.value===I())return;const N=()=>{d.value=-1,ze(()=>{d.value=I()})};L?N():$(N)(),L=!1};be(()=>e.defaultActive,O=>{v.value[O]||(p.value=""),T(O)}),be(()=>e.collapse,O=>{O&&(h.value=[])}),be(v.value,b);let q;Qa(()=>{e.mode==="horizontal"&&e.ellipsis?q=wn(r,B).stop:q==null||q()});const J=F(!1);{const O=G=>{m.value[G.index]=G},N=G=>{delete m.value[G.index]};Mt(Tw,Kt({props:e,openedMenus:h,items:v,subMenus:m,activeIndex:p,isMenuPopup:g,addMenuItem:G=>{v.value[G.index]=G},removeMenuItem:G=>{delete v.value[G.index]},addSubMenu:O,removeSubMenu:N,openMenu:C,closeMenu:_,handleMenuItemClick:E,handleSubMenuClick:x})),Mt(`${v1}${a.uid}`,{addSubMenu:O,removeSubMenu:N,mouseInChild:J,level:0})}St(()=>{e.mode==="horizontal"&&new Lle(a.vnode.el,l.namespace.value)}),s({open:N=>{const{indexPath:V}=m.value[N];V.forEach(z=>C(z,V))},close:w,updateActiveIndex:T,handleResize:B});const Y=pM(e,0);return()=>{var O,N;let V=(N=(O=n.default)==null?void 0:O.call(n))!=null?N:[];const z=[];if(e.mode==="horizontal"&&r.value){const K=Co(V).filter(he=>(he==null?void 0:he.shapeFlag)!==8),ee=d.value===-1?K:K.slice(0,d.value),se=d.value===-1?[]:K.slice(d.value);se!=null&&se.length&&e.ellipsis&&(V=ee,z.push(ot(Mw,{ref:i,index:"sub-menu-more",class:c.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>ot(Ye,{class:c.e("icon-more")},{default:()=>ot(e.ellipsisIcon)}),default:()=>se})))}const G=e.closeOnClickOutside?[[Wc,()=>{h.value.length&&(J.value||(h.value.forEach(K=>t("close",K,M(K))),h.value=[]))}]]:[],Q=gt(ot("ul",{key:String(e.collapse),role:"menubar",ref:r,style:Y.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...V,...z]),G);return e.collapseTransition&&e.mode==="vertical"?ot(Ole,()=>Q):Q}}});const Vle=Me({index:{type:re([String,null]),default:null},route:{type:re([String,Object])},disabled:Boolean}),zle={click:e=>Xe(e.index)&&ke(e.indexPath)},z4="ElMenuItem";var vM=j({name:z4,__name:"menu-item",props:Vle,emits:zle,setup(e,{expose:t,emit:n}){const s=e,a=n;Xa(s.index)&&void 0;const o=Ct(),r=je(Tw),i=Ee("menu"),l=Ee("menu-item");r||Jn(z4,"can not inject root menu");const{parentMenu:c,indexPath:u}=hM(o,Jt(s,"index")),d=je(`${v1}${c.value.uid}`);d||Jn(z4,"can not inject sub menu");const h=k(()=>s.index===r.activeIndex),p=Kt({index:s.index,indexPath:u,active:h}),v=()=>{s.disabled||(r.handleMenuItemClick({index:s.index,indexPath:u.value,route:s.route}),a("click",p))};return St(()=>{d.addSubMenu(p),r.addMenuItem(p)}),qt(()=>{d.removeSubMenu(p),r.removeMenuItem(p)}),t({parentMenu:c,rootMenu:r,active:h,nsMenu:i,nsMenuItem:l,handleClick:v}),(m,g)=>(S(),P("li",{class:D([f(l).b(),f(l).is("active",h.value),f(l).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:v},[f(c).type.name==="ElMenu"&&f(r).props.collapse&&m.$slots.title?(S(),ce(f(As),{key:0,effect:f(r).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":f(r).props.popperClass,"popper-style":f(r).props.popperStyle,persistent:f(r).props.persistent,"focus-on-target":""},{content:X(()=>[ue(m.$slots,"title")]),default:X(()=>[A("div",{class:D(f(i).be("tooltip","trigger"))},[ue(m.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(S(),P(Ve,{key:1},[ue(m.$slots,"default"),ue(m.$slots,"title")],64))],2))}});const Hle={title:String};var mM=j({name:"ElMenuItemGroup",__name:"menu-item-group",props:Hle,setup(e){const t=Ee("menu-item-group");return(n,s)=>(S(),P("li",{class:D(f(t).b())},[A("div",{class:D(f(t).e("title"))},[n.$slots.title?ue(n.$slots,"title",{key:1}):(S(),P(Ve,{key:0},[We(ge(e.title),1)],64))],2),A("ul",null,[ue(n.$slots,"default")])],2))}});const Wle=pt(Ble,{MenuItem:vM,MenuItemGroup:mM,SubMenu:Mw}),jle=En(vM),Kle=En(mM),Ule=En(Mw),qle=Me({icon:{type:en,default:()=>kk},title:String,content:{type:String,default:""}}),Gle={back:()=>!0},Yle=["aria-label"];var Xle=j({name:"ElPageHeader",__name:"page-header",props:qle,emits:Gle,setup(e,{emit:t}){const n=t,{t:s}=Rt(),a=Ee("page-header");function o(){n("back")}return(r,i)=>(S(),P("div",{class:D([f(a).b(),f(a).is("contentful",!!r.$slots.default),{[f(a).m("has-breadcrumb")]:!!r.$slots.breadcrumb,[f(a).m("has-extra")]:!!r.$slots.extra}])},[r.$slots.breadcrumb?(S(),P("div",{key:0,class:D(f(a).e("breadcrumb"))},[ue(r.$slots,"breadcrumb")],2)):ie("v-if",!0),A("div",{class:D(f(a).e("header"))},[A("div",{class:D(f(a).e("left"))},[A("div",{class:D(f(a).e("back")),role:"button",tabindex:"0",onClick:o},[e.icon||r.$slots.icon?(S(),P("div",{key:0,"aria-label":e.title||f(s)("el.pageHeader.title"),class:D(f(a).e("icon"))},[ue(r.$slots,"icon",{},()=>[e.icon?(S(),ce(f(Ye),{key:0},{default:X(()=>[(S(),ce(bt(e.icon)))]),_:1})):ie("v-if",!0)])],10,Yle)):ie("v-if",!0),A("div",{class:D(f(a).e("title"))},[ue(r.$slots,"title",{},()=>[We(ge(e.title||f(s)("el.pageHeader.title")),1)])],2)],2),W(f(QT),{direction:"vertical"}),A("div",{class:D(f(a).e("content"))},[ue(r.$slots,"content",{},()=>[We(ge(e.content),1)])],2)],2),r.$slots.extra?(S(),P("div",{key:0,class:D(f(a).e("extra"))},[ue(r.$slots,"extra")],2)):ie("v-if",!0)],2),r.$slots.default?(S(),P("div",{key:1,class:D(f(a).e("main"))},[ue(r.$slots,"default")],2)):ie("v-if",!0)],2))}});const Jle=pt(Xle),gM=Symbol("elPaginationKey"),Zle=Me({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:en}}),Qle={click:e=>e instanceof MouseEvent},ece=["disabled","aria-label","aria-disabled"],tce={key:0};var nce=j({name:"ElPaginationPrev",__name:"prev",props:Zle,emits:Qle,setup(e){const t=e,{t:n}=Rt(),s=k(()=>t.disabled||t.currentPage<=1);return(a,o)=>(S(),P("button",{type:"button",class:"btn-prev",disabled:s.value,"aria-label":a.prevText||f(n)("el.pagination.prev"),"aria-disabled":s.value,onClick:o[0]||(o[0]=r=>a.$emit("click",r))},[a.prevText?(S(),P("span",tce,ge(a.prevText),1)):(S(),ce(f(Ye),{key:1},{default:X(()=>[(S(),ce(bt(a.prevIcon)))]),_:1}))],8,ece))}});const sce=Me({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:en}}),ace=["disabled","aria-label","aria-disabled"],oce={key:0};var rce=j({name:"ElPaginationNext",__name:"next",props:sce,emits:["click"],setup(e){const t=e,{t:n}=Rt(),s=k(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,o)=>(S(),P("button",{type:"button",class:"btn-next",disabled:s.value,"aria-label":a.nextText||f(n)("el.pagination.next"),"aria-disabled":s.value,onClick:o[0]||(o[0]=r=>a.$emit("click",r))},[a.nextText?(S(),P("span",oce,ge(a.nextText),1)):(S(),ce(f(Ye),{key:1},{default:X(()=>[(S(),ce(bt(a.nextIcon)))]),_:1}))],8,ace))}});const Pw=()=>je(gM,{}),ice=Me({pageSize:{type:Number,required:!0},pageSizes:{type:re(Array),default:()=>Tn([10,20,30,40,50,100])},popperClass:{type:String},popperStyle:{type:re([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:Or},appendSizeTo:String});var lce=j({name:"ElPaginationSizes",__name:"sizes",props:ice,emits:["page-size-change"],setup(e,{emit:t}){const n=e,s=t,{t:a}=Rt(),o=Ee("pagination"),r=Pw(),i=F(n.pageSize);be(()=>n.pageSizes,(u,d)=>{if(!On(u,d)&&ke(u)){const h=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];s("page-size-change",h)}}),be(()=>n.pageSize,u=>{i.value=u});const l=k(()=>n.pageSizes);function c(u){var d;u!==i.value&&(i.value=u,(d=r.handleSizeChange)==null||d.call(r,Number(u)))}return(u,d)=>(S(),P("span",{class:D(f(o).e("sizes"))},[W(f(jc),{"model-value":i.value,disabled:u.disabled,"popper-class":u.popperClass,"popper-style":u.popperStyle,size:u.size,teleported:u.teleported,"validate-event":!1,"append-to":u.appendSizeTo,onChange:c},{default:X(()=>[(S(!0),P(Ve,null,yt(l.value,h=>(S(),ce(f(l1),{key:h,value:h,label:h+f(a)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}});const cce=Me({size:{type:String,values:Or}}),uce=["disabled"];var dce=j({name:"ElPaginationJumper",__name:"jumper",props:cce,setup(e){const{t}=Rt(),n=Ee("pagination"),{pageCount:s,disabled:a,currentPage:o,changeEvent:r}=Pw(),i=F(),l=k(()=>{var d;return(d=i.value)!=null?d:o==null?void 0:o.value});function c(d){i.value=d?+d:""}function u(d){d=Math.trunc(+d),r==null||r(d),i.value=void 0}return(d,h)=>(S(),P("span",{class:D(f(n).e("jump")),disabled:f(a)},[A("span",{class:D([f(n).e("goto")])},ge(f(t)("el.pagination.goto")),3),W(f(ga),{size:d.size,class:D([f(n).e("editor"),f(n).is("in-pagination")]),min:1,max:f(s),disabled:f(a),"model-value":l.value,"validate-event":!1,"aria-label":f(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:u},null,8,["size","class","max","disabled","model-value","aria-label"]),A("span",{class:D([f(n).e("classifier")])},ge(f(t)("el.pagination.pageClassifier")),3)],10,uce))}});const fce=Me({total:{type:Number,default:1e3}}),hce=["disabled"];var pce=j({name:"ElPaginationTotal",__name:"total",props:fce,setup(e){const{t}=Rt(),n=Ee("pagination"),{disabled:s}=Pw();return(a,o)=>(S(),P("span",{class:D(f(n).e("total")),disabled:f(s)},ge(f(t)("el.pagination.total",{total:a.total})),11,hce))}});const vce=Me({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),mce=["aria-current","aria-label","tabindex"],gce=["tabindex","aria-label"],bce=["aria-current","aria-label","tabindex"],yce=["tabindex","aria-label"],wce=["aria-current","aria-label","tabindex"];var _ce=j({name:"ElPaginationPager",__name:"pager",props:vce,emits:[Pt],setup(e,{emit:t}){const n=e,s=t,a=Ee("pager"),o=Ee("icon"),{t:r}=Rt(),i=F(!1),l=F(!1),c=F(!1),u=F(!1),d=F(!1),h=F(!1),p=k(()=>{const x=n.pagerCount,E=(x-1)/2,T=Number(n.currentPage),R=Number(n.pageCount);let I=!1,M=!1;R>x&&(T>x-E&&(I=!0),T<R-E&&(M=!0));const $=[];if(I&&!M){const L=R-(x-2);for(let B=L;B<R;B++)$.push(B)}else if(!I&&M)for(let L=2;L<x;L++)$.push(L);else if(I&&M){const L=Math.floor(x/2)-1;for(let B=T-L;B<=T+L;B++)$.push(B)}else for(let L=2;L<R;L++)$.push(L);return $}),v=k(()=>["more","btn-quickprev",o.b(),a.is("disabled",n.disabled)]),m=k(()=>["more","btn-quicknext",o.b(),a.is("disabled",n.disabled)]),g=k(()=>n.disabled?-1:0);be(()=>[n.pageCount,n.pagerCount,n.currentPage],([x,E,T])=>{const R=(E-1)/2;let I=!1,M=!1;x>E&&(I=T>E-R,M=T<x-R),c.value&&(c.value=I),u.value&&(u.value=M),i.value=I,l.value=M},{immediate:!0});function b(x=!1){n.disabled||(x?c.value=!0:u.value=!0)}function C(x=!1){x?d.value=!0:h.value=!0}function w(x){const E=x.target;if(E.tagName.toLowerCase()==="li"&&Array.from(E.classList).includes("number")){const T=Number(E.textContent);T!==n.currentPage&&s(Pt,T)}else E.tagName.toLowerCase()==="li"&&Array.from(E.classList).includes("more")&&_(x)}function _(x){const E=x.target;if(E.tagName.toLowerCase()==="ul"||n.disabled)return;let T=Number(E.textContent);const R=n.pageCount,I=n.currentPage,M=n.pagerCount-2;E.className.includes("more")&&(E.className.includes("quickprev")?T=I-M:E.className.includes("quicknext")&&(T=I+M)),Number.isNaN(+T)||(T<1&&(T=1),T>R&&(T=R)),T!==I&&s(Pt,T)}return(x,E)=>(S(),P("ul",{class:D(f(a).b()),onClick:_,onKeyup:Ln(w,["enter"])},[x.pageCount>0?(S(),P("li",{key:0,class:D([[f(a).is("active",x.currentPage===1),f(a).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===1,"aria-label":f(r)("el.pagination.currentPage",{pager:1}),tabindex:g.value}," 1 ",10,mce)):ie("v-if",!0),i.value?(S(),P("li",{key:1,class:D(v.value),tabindex:g.value,"aria-label":f(r)("el.pagination.prevPages",{pager:x.pagerCount-2}),onMouseenter:E[0]||(E[0]=T=>b(!0)),onMouseleave:E[1]||(E[1]=T=>c.value=!1),onFocus:E[2]||(E[2]=T=>C(!0)),onBlur:E[3]||(E[3]=T=>d.value=!1)},[(c.value||d.value)&&!x.disabled?(S(),ce(f(Al),{key:0})):(S(),ce(f(Ay),{key:1}))],42,gce)):ie("v-if",!0),(S(!0),P(Ve,null,yt(p.value,T=>(S(),P("li",{key:T,class:D([[f(a).is("active",x.currentPage===T),f(a).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===T,"aria-label":f(r)("el.pagination.currentPage",{pager:T}),tabindex:g.value},ge(T),11,bce))),128)),l.value?(S(),P("li",{key:2,class:D(m.value),tabindex:g.value,"aria-label":f(r)("el.pagination.nextPages",{pager:x.pagerCount-2}),onMouseenter:E[4]||(E[4]=T=>b()),onMouseleave:E[5]||(E[5]=T=>u.value=!1),onFocus:E[6]||(E[6]=T=>C()),onBlur:E[7]||(E[7]=T=>h.value=!1)},[(u.value||h.value)&&!x.disabled?(S(),ce(f(Tl),{key:0})):(S(),ce(f(Ay),{key:1}))],42,yce)):ie("v-if",!0),x.pageCount>1?(S(),P("li",{key:3,class:D([[f(a).is("active",x.currentPage===x.pageCount),f(a).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===x.pageCount,"aria-label":f(r)("el.pagination.currentPage",{pager:x.pageCount}),tabindex:g.value},ge(x.pageCount),11,wce)):ie("v-if",!0)],34))}});const _a=e=>typeof e!="number",Cce=Me({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>st(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:re(Array),default:()=>Tn([10,20,30,40,50,100])},popperClass:{type:String,default:""},popperStyle:{type:re([String,Object])},prevText:{type:String,default:""},prevIcon:{type:en,default:()=>Go},nextText:{type:String,default:""},nextIcon:{type:en,default:()=>Ds},teleported:{type:Boolean,default:!0},small:Boolean,size:rs,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),Sce={"update:current-page":e=>st(e),"update:page-size":e=>st(e),"size-change":e=>st(e),change:(e,t)=>st(e)&&st(t),"current-change":e=>st(e),"prev-click":e=>st(e),"next-click":e=>st(e)},i5="ElPagination";var xce=j({name:i5,props:Cce,emits:Sce,setup(e,{emit:t,slots:n}){const{t:s}=Rt(),a=Ee("pagination"),o=Ct().vnode.props||{},r=yk(),i=k(()=>{var x;return e.small?"small":(x=e.size)!=null?x:r.value});vi({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},k(()=>!!e.small));const l="onUpdate:currentPage"in o||"onUpdate:current-page"in o||"onCurrentChange"in o,c="onUpdate:pageSize"in o||"onUpdate:page-size"in o||"onSizeChange"in o,u=k(()=>{if(_a(e.total)&&_a(e.pageCount)||!_a(e.currentPage)&&!l)return!1;if(e.layout.includes("sizes")){if(_a(e.pageCount)){if(!_a(e.total)&&!_a(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),d=F(_a(e.defaultPageSize)?10:e.defaultPageSize),h=F(_a(e.defaultCurrentPage)?1:e.defaultCurrentPage),p=k({get(){return _a(e.pageSize)?d.value:e.pageSize},set(x){_a(e.pageSize)&&(d.value=x),c&&(t("update:page-size",x),t("size-change",x))}}),v=k(()=>{let x=0;return _a(e.pageCount)?_a(e.total)||(x=Math.max(1,Math.ceil(e.total/p.value))):x=e.pageCount,x}),m=k({get(){return _a(e.currentPage)?h.value:e.currentPage},set(x){let E=x;x<1?E=1:x>v.value&&(E=v.value),_a(e.currentPage)&&(h.value=E),l&&(t("update:current-page",E),t("current-change",E))}});be(v,x=>{m.value>x&&(m.value=x)}),be([m,p],x=>{t(Pt,...x)},{flush:"post"});function g(x){m.value=x}function b(x){p.value=x;const E=v.value;m.value>E&&(m.value=E)}function C(){e.disabled||(m.value-=1,t("prev-click",m.value))}function w(){e.disabled||(m.value+=1,t("next-click",m.value))}function _(x,E){x&&(x.props||(x.props={}),x.props.class=[x.props.class,E].join(" "))}return Mt(gM,{pageCount:v,disabled:k(()=>e.disabled),currentPage:m,changeEvent:g,handleSizeChange:b}),()=>{var x,E;if(!u.value)return s("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&v.value<=1)return null;const T=[],R=[],I=ot("div",{class:a.e("rightwrapper")},R),M={prev:ot(nce,{disabled:e.disabled,currentPage:m.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:C}),jumper:ot(dce,{size:i.value}),pager:ot(_ce,{currentPage:m.value,pageCount:v.value,pagerCount:e.pagerCount,onChange:g,disabled:e.disabled}),next:ot(rce,{disabled:e.disabled,currentPage:m.value,pageCount:v.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:w}),sizes:ot(lce,{pageSize:p.value,pageSizes:e.pageSizes,popperClass:e.popperClass,popperStyle:e.popperStyle,disabled:e.disabled,teleported:e.teleported,size:i.value,appendSizeTo:e.appendSizeTo}),slot:(E=(x=n==null?void 0:n.default)==null?void 0:x.call(n))!=null?E:null,total:ot(pce,{total:_a(e.total)?0:e.total})},$=e.layout.split(",").map(B=>B.trim());let L=!1;return $.forEach(B=>{if(B==="->"){L=!0;return}L?R.push(M[B]):T.push(M[B])}),_(T[0],a.is("first")),_(T[T.length-1],a.is("last")),L&&R.length>0&&(_(R[0],a.is("first")),_(R[R.length-1],a.is("last")),T.push(I)),ot("div",{class:[a.b(),a.is("background",e.background),a.m(i.value)]},T)}}});const Ece=pt(xce),kce=Me({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:Iy,default:"primary"},cancelButtonType:{type:String,values:Iy,default:"text"},icon:{type:en,default:()=>Vk},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...Zt.effect,default:"light"},teleported:Zt.teleported,persistent:Zt.persistent,width:{type:[String,Number],default:150},virtualTriggering:pi.virtualTriggering,virtualRef:pi.virtualRef}),Ace={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent};var Tce=j({name:"ElPopconfirm",__name:"popconfirm",props:kce,emits:Ace,setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Rt(),r=Ee("popconfirm"),i=F(),l=F(),c=k(()=>{var b;return(b=f(i))==null?void 0:b.popperRef}),u=()=>{var b,C;(C=(b=l.value)==null?void 0:b.focus)==null||C.call(b)},d=()=>{var b,C;(C=(b=i.value)==null?void 0:b.onClose)==null||C.call(b)},h=k(()=>({width:Mn(s.width)})),p=b=>{a("confirm",b),d()},v=b=>{a("cancel",b),d()},m=k(()=>s.confirmButtonText||o("el.popconfirm.confirmButtonText")),g=k(()=>s.cancelButtonText||o("el.popconfirm.cancelButtonText"));return t({popperRef:c,hide:d}),(b,C)=>(S(),ce(f(As),_t({ref_key:"tooltipRef",ref:i,trigger:"click",effect:e.effect},b.$attrs,{"virtual-triggering":e.virtualTriggering,"virtual-ref":e.virtualRef,"popper-class":`${f(r).namespace.value}-popover`,"popper-style":h.value,teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent,loop:"",onShow:u}),{content:X(()=>[A("div",{ref_key:"rootRef",ref:l,tabindex:"-1",class:D(f(r).b())},[A("div",{class:D(f(r).e("main"))},[!e.hideIcon&&e.icon?(S(),ce(f(Ye),{key:0,class:D(f(r).e("icon")),style:tt({color:e.iconColor})},{default:X(()=>[(S(),ce(bt(e.icon)))]),_:1},8,["class","style"])):ie("v-if",!0),We(" "+ge(e.title),1)],2),A("div",{class:D(f(r).e("action"))},[ue(b.$slots,"actions",{confirm:p,cancel:v},()=>[W(f(ps),{size:"small",type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",onClick:v},{default:X(()=>[We(ge(g.value),1)]),_:1},8,["type","text"]),W(f(ps),{size:"small",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",onClick:p},{default:X(()=>[We(ge(m.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:X(()=>[b.$slots.reference?ue(b.$slots,"reference",{key:0}):ie("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}});const Mce=pt(Tce),Pce=Me({trigger:pi.trigger,triggerKeys:pi.triggerKeys,placement:Q2.placement,disabled:pi.disabled,visible:Zt.visible,transition:Zt.transition,popperOptions:Q2.popperOptions,tabindex:Q2.tabindex,content:Zt.content,popperStyle:Zt.popperStyle,popperClass:Zt.popperClass,enterable:{...Zt.enterable,default:!0},effect:{...Zt.effect,default:"light"},teleported:Zt.teleported,appendTo:Zt.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}}),Rce={"update:visible":e=>Qt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Ice="onUpdate:visible";var Lce=j({name:"ElPopover",__name:"popover",props:Pce,emits:Rce,setup(e,{expose:t,emit:n}){const s=e,a=n,o=k(()=>s[Ice]),r=Ee("popover"),i=F(),l=k(()=>{var b;return(b=f(i))==null?void 0:b.popperRef}),c=k(()=>[{width:Mn(s.width)},s.popperStyle]),u=k(()=>[r.b(),s.popperClass,{[r.m("plain")]:!!s.content}]),d=k(()=>s.transition===`${r.namespace.value}-fade-in-linear`),h=()=>{var b;(b=i.value)==null||b.hide()},p=()=>{a("before-enter")},v=()=>{a("before-leave")},m=()=>{a("after-enter")},g=()=>{a("update:visible",!1),a("after-leave")};return t({popperRef:l,hide:h}),(b,C)=>(S(),ce(f(As),_t({ref_key:"tooltipRef",ref:i},b.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":u.value,"popper-style":c.value,teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":d.value,"onUpdate:visible":o.value,onBeforeShow:p,onBeforeHide:v,onShow:m,onHide:g}),{content:X(()=>[e.title?(S(),P("div",{key:0,class:D(f(r).e("title")),role:"title"},ge(e.title),3)):ie("v-if",!0),ue(b.$slots,"default",{},()=>[We(ge(e.content),1)])]),default:X(()=>[b.$slots.reference?ue(b.$slots,"reference",{key:0}):ie("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"]))}});const l5=(e,t)=>{const n=t.arg||t.value,s=n==null?void 0:n.popperRef;s&&(s.triggerRef=e)};var Oce={mounted(e,t){l5(e,t)},updated(e,t){l5(e,t)}};const Nce="popover",bM=nz(Oce,Nce),$ce=pt(Lce,{directive:bM}),Dce=Me({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:re(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:re([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:re(Function),default:e=>`${e}%`}}),Fce=["aria-valuenow"],Bce={viewBox:"0 0 100 100"},Vce=["d","stroke","stroke-linecap","stroke-width"],zce=["d","stroke","opacity","stroke-linecap","stroke-width"],Hce={key:0};var Wce=j({name:"ElProgress",__name:"progress",props:Dce,setup(e){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=e,s=Ee("progress"),a=k(()=>{const w={width:`${n.percentage}%`,animationDuration:`${n.duration}s`},_=C(n.percentage);return _.includes("gradient")?w.background=_:w.backgroundColor=_,w}),o=k(()=>(n.strokeWidth/n.width*100).toFixed(1)),r=k(()=>["circle","dashboard"].includes(n.type)?Number.parseInt(`${50-Number.parseFloat(o.value)/2}`,10):0),i=k(()=>{const w=r.value,_=n.type==="dashboard";return`
M 50 50
m 0 ${_?"":"-"}${w}
a ${w} ${w} 0 1 1 0 ${_?"-":""}${w*2}
a ${w} ${w} 0 1 1 0 ${_?"":"-"}${w*2}
`}),l=k(()=>2*Math.PI*r.value),c=k(()=>n.type==="dashboard"?.75:1),u=k(()=>`${-1*l.value*(1-c.value)/2}px`),d=k(()=>({strokeDasharray:`${l.value*c.value}px, ${l.value}px`,strokeDashoffset:u.value})),h=k(()=>({strokeDasharray:`${l.value*c.value*(n.percentage/100)}px, ${l.value}px`,strokeDashoffset:u.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=k(()=>{let w;return n.color?w=C(n.percentage):w=t[n.status]||t.default,w}),v=k(()=>n.status==="warning"?Zm:n.type==="line"?n.status==="success"?Jm:Jo:n.status==="success"?_0:eo),m=k(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),g=k(()=>n.format(n.percentage));function b(w){const _=100/w.length;return w.map((E,T)=>Xe(E)?{color:E,percentage:(T+1)*_}:E).sort((E,T)=>E.percentage-T.percentage)}const C=w=>{var _;const{color:x}=n;if(nt(x))return x(w);if(Xe(x))return x;{const E=b(x);for(const T of E)if(T.percentage>w)return T.color;return(_=E[E.length-1])==null?void 0:_.color}};return(w,_)=>(S(),P("div",{class:D([f(s).b(),f(s).m(e.type),f(s).is(e.status),{[f(s).m("without-text")]:!e.showText,[f(s).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(S(),P("div",{key:0,class:D(f(s).b("bar"))},[A("div",{class:D(f(s).be("bar","outer")),style:tt({height:`${e.strokeWidth}px`})},[A("div",{class:D([f(s).be("bar","inner"),{[f(s).bem("bar","inner","indeterminate")]:e.indeterminate},{[f(s).bem("bar","inner","striped")]:e.striped},{[f(s).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:tt(a.value)},[(e.showText||w.$slots.default)&&e.textInside?(S(),P("div",{key:0,class:D(f(s).be("bar","innerText"))},[ue(w.$slots,"default",{percentage:e.percentage},()=>[A("span",null,ge(g.value),1)])],2)):ie("v-if",!0)],6)],6)],2)):(S(),P("div",{key:1,class:D(f(s).b("circle")),style:tt({height:`${e.width}px`,width:`${e.width}px`})},[(S(),P("svg",Bce,[A("path",{class:D(f(s).be("circle","track")),d:i.value,stroke:`var(${f(s).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,fill:"none",style:tt(d.value)},null,14,Vce),A("path",{class:D(f(s).be("circle","path")),d:i.value,stroke:p.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,style:tt(h.value)},null,14,zce)]))],6)),(e.showText||w.$slots.default)&&!e.textInside?(S(),P("div",{key:2,class:D(f(s).e("text")),style:tt({fontSize:`${m.value}px`})},[ue(w.$slots,"default",{percentage:e.percentage},()=>[e.status?(S(),ce(f(Ye),{key:1},{default:X(()=>[(S(),ce(bt(v.value)))]),_:1})):(S(),P("span",Hce,ge(g.value),1))])],6)):ie("v-if",!0)],10,Fce))}});const yM=pt(Wce),jce=Me({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:re([Array,Object]),default:()=>Tn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:re([Array,Object]),default:()=>[W0,W0,W0]},voidIcon:{type:en,default:()=>qk},disabledVoidIcon:{type:en,default:()=>W0},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:re(Array),default:()=>Tn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:rs,clearable:Boolean,...ya(["ariaLabel"])}),Kce={[Pt]:e=>st(e),[ct]:e=>st(e)},Uce=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],qce=["onMousemove","onClick"];var Gce=j({name:"ElRate",__name:"rate",props:jce,emits:Kce,setup(e,{expose:t,emit:n}){function s(N,V){const z=K=>ft(K),G=Object.keys(V).map(K=>+K).filter(K=>{const ee=V[K];return(z(ee)?ee.excluded:!1)?N<K:N<=K}).sort((K,ee)=>K-ee),Q=V[G[0]];return z(Q)&&Q.value||Q}const a=e,o=n,r=je(Ci,void 0),i=ns(),l=Ee("rate"),{inputId:c,isLabeledByFormItem:u}=Mo(a,{formItemContext:r}),d=F(mu(a.modelValue,0,a.max)),h=F(-1),p=F(!0),v=F([]),m=k(()=>v.value.map(N=>N.$el.clientWidth)),g=k(()=>[l.b(),l.m(i.value)]),b=Pn(),C=k(()=>l.cssVarBlock({"void-color":a.voidColor,"disabled-void-color":a.disabledVoidColor,"fill-color":E.value})),w=k(()=>{let N="";return a.showScore?N=a.scoreTemplate.replace(/\{\s*value\s*\}/,b.value?`${a.modelValue}`:`${d.value}`):a.showText&&(N=a.texts[Math.ceil(d.value)-1]),N}),_=k(()=>a.modelValue*100-Math.floor(a.modelValue)*100),x=k(()=>ke(a.colors)?{[a.lowThreshold]:a.colors[0],[a.highThreshold]:{value:a.colors[1],excluded:!0},[a.max]:a.colors[2]}:a.colors),E=k(()=>{const N=s(d.value,x.value);return ft(N)?"":N}),T=k(()=>{let N="";return b.value?N=`${_.value}%`:a.allowHalf&&(N="50%"),{color:E.value,width:N}}),R=k(()=>{let N=ke(a.icons)?[...a.icons]:{...a.icons};return N=di(N),ke(N)?{[a.lowThreshold]:N[0],[a.highThreshold]:{value:N[1],excluded:!0},[a.max]:N[2]}:N}),I=k(()=>s(a.modelValue,R.value)),M=k(()=>b.value?Xe(a.disabledVoidIcon)?a.disabledVoidIcon:di(a.disabledVoidIcon):Xe(a.voidIcon)?a.voidIcon:di(a.voidIcon)),$=k(()=>s(d.value,R.value));function L(N){const V=b.value&&_.value>0&&N-1<a.modelValue&&N>a.modelValue,z=a.allowHalf&&p.value&&N-.5<=d.value&&N>d.value;return V||z}function B(N){a.clearable&&N===a.modelValue&&(N=0),o(ct,N),a.modelValue!==N&&o(Pt,N)}function q(N){b.value||(a.allowHalf&&p.value?B(d.value):B(N))}function J(N){if(b.value)return;const V=an(N),z=a.allowHalf?.5:1;let G=d.value;switch(V){case Te.up:case Te.right:G+=z;break;case Te.left:case Te.down:G-=z;break}if(G=mu(G,0,a.max),G!==d.value)return N.stopPropagation(),N.preventDefault(),o(ct,G),o(Pt,G),G}function Y(N,V){b.value||(a.allowHalf&&V?(p.value=V.offsetX*2<=m.value[N-1],d.value=p.value?N-.5:N):d.value=N,h.value=N)}function O(){b.value||(a.allowHalf&&(p.value=a.modelValue!==Math.floor(a.modelValue)),d.value=mu(a.modelValue,0,a.max),h.value=-1)}return be(()=>a.modelValue,N=>{d.value=mu(N,0,a.max),p.value=a.modelValue!==Math.floor(a.modelValue)}),a.modelValue||o(ct,0),t({setCurrentValue:Y,resetCurrentValue:O}),(N,V)=>{var z;return S(),P("div",{id:f(c),class:D([g.value,f(l).is("disabled",f(b))]),role:"slider","aria-label":f(u)?void 0:e.ariaLabel||"rating","aria-labelledby":f(u)?(z=f(r))==null?void 0:z.labelId:void 0,"aria-valuenow":d.value,"aria-valuetext":w.value||void 0,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0",style:tt(C.value),onKeydown:J},[(S(!0),P(Ve,null,yt(e.max,(G,Q)=>(S(),P("span",{key:Q,class:D(f(l).e("item")),onMousemove:K=>Y(G,K),onMouseleave:O,onClick:K=>q(G)},[W(f(Ye),{ref_for:!0,ref_key:"iconRefs",ref:v,class:D([f(l).e("icon"),{hover:h.value===G},f(l).is("active",G<=d.value),f(l).is("focus-visible",G===Math.ceil(d.value||1))])},{default:X(()=>[gt((S(),ce(bt($.value),null,null,512)),[[Bt,!L(G)&&G<=d.value]]),gt((S(),ce(bt(M.value),null,null,512)),[[Bt,!L(G)&&G>d.value]]),gt((S(),ce(bt(M.value),{class:D([f(l).em("decimal","box")])},null,8,["class"])),[[Bt,L(G)]]),gt(W(f(Ye),{style:tt(T.value),class:D([f(l).e("icon"),f(l).e("decimal")])},{default:X(()=>[(S(),ce(bt(I.value)))]),_:1},8,["style","class"]),[[Bt,L(G)]])]),_:2},1032,["class"])],42,qce))),128)),e.showText||e.showScore?(S(),P("span",{key:0,class:D(f(l).e("text")),style:tt({color:e.textColor})},ge(w.value),7)):ie("v-if",!0)],46,Uce)}}});const Yce=pt(Gce),du={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},c5={[du.primary]:Qh,[du.success]:Mk,[du.warning]:Zm,[du.error]:kb,[du.info]:Qh},Xce=Me({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}});var Jce=j({name:"ElResult",__name:"result",props:Xce,setup(e){const t=e,n=Ee("result"),s=k(()=>{const a=t.icon,o=a&&du[a]?du[a]:"icon-info",r=c5[o]||c5["icon-info"];return{class:o,component:r}});return(a,o)=>(S(),P("div",{class:D(f(n).b())},[A("div",{class:D(f(n).e("icon"))},[ue(a.$slots,"icon",{},()=>[s.value.component?(S(),ce(bt(s.value.component),{key:0,class:D(s.value.class)},null,8,["class"])):ie("v-if",!0)])],2),e.title||a.$slots.title?(S(),P("div",{key:0,class:D(f(n).e("title"))},[ue(a.$slots,"title",{},()=>[A("p",null,ge(e.title),1)])],2)):ie("v-if",!0),e.subTitle||a.$slots["sub-title"]?(S(),P("div",{key:1,class:D(f(n).e("subtitle"))},[ue(a.$slots,"sub-title",{},()=>[A("p",null,ge(e.subTitle),1)])],2)):ie("v-if",!0),a.$slots.extra?(S(),P("div",{key:2,class:D(f(n).e("extra"))},[ue(a.$slots,"extra")],2)):ie("v-if",!0)],2))}});const Zce=pt(Jce),Qce=["start","center","end","space-around","space-between","space-evenly"],eue=["top","middle","bottom"],tue=Me({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Qce,default:"start"},align:{type:String,values:eue}});var nue=j({name:"ElRow",__name:"row",props:tue,setup(e){const t=e,n=Ee("row"),s=k(()=>t.gutter);Mt(fT,{gutter:s});const a=k(()=>{const r={};return t.gutter&&(r.marginRight=r.marginLeft=`-${t.gutter/2}px`),r}),o=k(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(r,i)=>(S(),ce(bt(e.tag),{class:D(o.value),style:tt(a.value)},{default:X(()=>[ue(r.$slots,"default")]),_:3},8,["class","style"]))}});const sue=pt(nue);var aue=j({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:Ee("select")}}});function oue(e,t,n,s,a,o){return S(),P("div",{class:D(e.ns.be("group","title")),style:tt({...e.style,lineHeight:`${e.height}px`})},ge(e.item.label),7)}var rue=is(aue,[["render",oue]]);function iue(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const lue=Me({allowCreate:Boolean,autocomplete:{type:re(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:en,default:Jo},effect:{type:re(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:re(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:re([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:re(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:re(Array),required:!0},placeholder:{type:String},teleported:Zt.teleported,persistent:{type:Boolean,default:!0},popperClass:Zt.popperClass,popperStyle:Zt.popperStyle,popperOptions:{type:re(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:rs,props:{type:re(Object),default:()=>i1},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:re(String),values:Ei,default:"bottom-start"},fallbackPlacements:{type:re(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Pl.type,default:"info"},tagEffect:{...Pl.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Zt.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Qt(e)||st(e)}},suffixIcon:{type:en,default:Nr},...Qd,...ya(["ariaLabel"])}),cue=Me({data:Array,disabled:Boolean,hovering:Boolean,item:{type:re(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),uue={[ct]:e=>!0,[Pt]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},due={hover:e=>st(e),select:(e,t)=>!0},Rw=Symbol("ElSelectV2Injection");var fue=j({props:cue,emits:due,setup(e,{emit:t}){const n=je(Rw),s=Ee("select"),{hoverItem:a,selectOptionClick:o}=iue(e,{emit:t}),{getLabel:r}=a2(n.props),i=n.contentId;return{ns:s,contentId:i,hoverItem:a,selectOptionClick:o,getLabel:r}}});const hue=["id","aria-selected","aria-disabled"];function pue(e,t,n,s,a,o){return S(),P("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:tt(e.style),class:D([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onClick:t[1]||(t[1]=it((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[ue(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[A("span",null,ge(e.getLabel(e.item)),1)])],46,hue)}var vue=is(fue,[["render",pue]]),u5=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function mue(e,t){return!!(e===t||u5(e)&&u5(t))}function gue(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!mue(e[n],t[n]))return!1;return!0}function bue(e,t){t===void 0&&(t=gue);var n=null;function s(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(n&&n.lastThis===this&&t(a,n.lastArgs))return n.lastResult;var r=e.apply(this,a);return n={lastResult:r,lastArgs:a,lastThis:this},r}return s.clear=function(){n=null},s}const wM=()=>{const t=Ct().proxy.$props;return k(()=>{const n=(s,a,o)=>({});return t.perfMode?wb(n):bue(n)})},Yy=50,m1="itemRendered",g1="scroll",xf="forward",b1="backward",jo="auto",Vb="smart",Xp="start",ui="center",Jp="end",i0="horizontal",_M="vertical",yue="ltr",$f="rtl",Zp="negative",Iw="positive-ascending",Lw="positive-descending",wue={[i0]:"left",[_M]:"top"},_ue=20,CM=({atEndEdge:e,atStartEdge:t,layout:n},s)=>{let a,o=0;const r=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:r,onWheel:l=>{kl(a);let{deltaX:c,deltaY:u}=l;l.shiftKey&&u!==0&&(c=u,u=0);const d=n.value===i0?c:u;r(d)||(o+=d,!Q8()&&d!==0&&l.preventDefault(),a=wi(()=>{s(o),o=0}))}}},Xy=Lr({type:re([Number,Function]),required:!0}),Jy=Lr({type:Number}),Zy=Lr({type:Number,default:2}),Cue=Lr({type:String,values:["ltr","rtl"],default:"ltr"}),Qy=Lr({type:Number,default:0}),y1=Lr({type:Number,required:!0}),SM=Lr({type:String,values:["horizontal","vertical"],default:_M}),xM=Me({className:{type:String,default:""},containerElement:{type:re([String,Object]),default:"div"},data:{type:re(Array),default:()=>Tn([])},direction:Cue,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:re(Object),default:()=>({})},style:{type:re([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),EM=Me({cache:Zy,estimatedItemSize:Jy,layout:SM,initScrollOffset:Qy,total:y1,itemSize:Xy,...xM}),e3={type:Number,default:6},kM={type:Number,default:0},AM={type:Number,default:2},Rd=Me({columnCache:Zy,columnWidth:Xy,estimatedColumnWidth:Jy,estimatedRowHeight:Jy,initScrollLeft:Qy,initScrollTop:Qy,itemKey:{type:re(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:Zy,rowHeight:Xy,totalColumn:y1,totalRow:y1,hScrollbarSize:e3,vScrollbarSize:e3,scrollbarStartGap:kM,scrollbarEndGap:AM,role:String,...xM}),TM=Me({alwaysOn:Boolean,class:String,layout:SM,total:y1,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:e3,startGap:kM,endGap:AM,visible:Boolean}),yu=(e,t)=>e<t?xf:b1,Qp=e=>e===yue||e===$f||e===i0,d5=e=>e===$f;let cf=null;function w1(e=!1){if(cf===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const s=document.createElement("div"),a=s.style;return a.width="100px",a.height="100px",t.appendChild(s),document.body.appendChild(t),t.scrollLeft>0?cf=Lw:(t.scrollLeft=1,t.scrollLeft===0?cf=Zp:cf=Iw),document.body.removeChild(t),cf}return cf}function Sue({move:e,size:t,bar:n},s){const a={},o=`translate${n.axis}(${e}px)`;return a[n.size]=t,a.transform=o,s==="horizontal"?a.height="100%":a.width="100%",a}const t3=j({name:"ElVirtualScrollBar",props:TM,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=k(()=>e.startGap+e.endGap),s=Ee("virtual-scrollbar"),a=Ee("scrollbar"),o=F(),r=F();let i=null,l=null;const c=Kt({isDragging:!1,traveled:0}),u=k(()=>mA[e.layout]),d=k(()=>e.clientSize-f(n)),h=k(()=>({position:"absolute",width:`${i0===e.layout?d.value:e.scrollbarSize}px`,height:`${i0===e.layout?e.scrollbarSize:d.value}px`,[wue[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),p=k(()=>{const E=e.ratio;if(E>=100)return Number.POSITIVE_INFINITY;if(E>=50)return E*d.value/100;const T=d.value/3;return Math.floor(Math.min(Math.max(E*d.value/100,_ue),T))}),v=k(()=>{if(!Number.isFinite(p.value))return{display:"none"};const E=`${p.value}px`;return Sue({bar:u.value,size:E,move:c.traveled},e.layout)}),m=k(()=>Math.ceil(e.clientSize-p.value-f(n))),g=()=>{window.addEventListener("mousemove",_),window.addEventListener("mouseup",w);const E=f(r);E&&(l=document.onselectstart,document.onselectstart=()=>!1,E.addEventListener("touchmove",_,{passive:!0}),E.addEventListener("touchend",w))},b=()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",w),document.onselectstart=l,l=null;const E=f(r);E&&(E.removeEventListener("touchmove",_),E.removeEventListener("touchend",w))},C=E=>{E.stopImmediatePropagation(),!(E.ctrlKey||[1,2].includes(E.button))&&(c.isDragging=!0,c[u.value.axis]=E.currentTarget[u.value.offset]-(E[u.value.client]-E.currentTarget.getBoundingClientRect()[u.value.direction]),t("start-move"),g())},w=()=>{c.isDragging=!1,c[u.value.axis]=0,t("stop-move"),b()},_=E=>{const{isDragging:T}=c;if(!T||!r.value||!o.value)return;const R=c[u.value.axis];if(!R)return;kl(i);const I=(o.value.getBoundingClientRect()[u.value.direction]-E[u.value.client])*-1,M=r.value[u.value.offset]-R,$=I-M;i=wi(()=>{c.traveled=Math.max(0,Math.min($,m.value)),t("scroll",$,m.value)})},x=E=>{const T=Math.abs(E.target.getBoundingClientRect()[u.value.direction]-E[u.value.client]),R=r.value[u.value.offset]/2,I=T-R;c.traveled=Math.max(0,Math.min(I,m.value)),t("scroll",I,m.value)};return be(()=>e.scrollFrom,E=>{c.isDragging||(c.traveled=Math.ceil(E*m.value))}),qt(()=>{b()}),()=>ot("div",{role:"presentation",ref:o,class:[s.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:h.value,onMousedown:it(x,["stop","prevent"]),onTouchstartPrevent:C},ot("div",{ref:r,class:a.e("thumb"),style:v.value,onMousedown:C},[]))}}),MM=({name:e,getOffset:t,getItemSize:n,getItemOffset:s,getEstimatedTotalSize:a,getStartIndexForOffset:o,getStopIndexForStartIndex:r,initCache:i,clearCache:l,validateProps:c})=>j({name:e??"ElVirtualList",props:EM,emits:[m1,g1],setup(u,{emit:d,expose:h}){c(u);const p=Ct(),v=Ee("vl"),m=F(i(u,p)),g=wM(),b=F(),C=F(),w=F(),_=F({isScrolling:!1,scrollDir:"forward",scrollOffset:st(u.initScrollOffset)?u.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:u.scrollbarAlwaysOn}),x=k(()=>{const{total:K,cache:ee}=u,{isScrolling:se,scrollDir:he,scrollOffset:te}=f(_);if(K===0)return[0,0,0,0];const pe=o(u,te,f(m)),fe=r(u,pe,te,f(m)),le=!se||he===b1?Math.max(1,ee):1,Z=!se||he===xf?Math.max(1,ee):1;return[Math.max(0,pe-le),Math.max(0,Math.min(K-1,fe+Z)),pe,fe]}),E=k(()=>a(u,f(m))),T=k(()=>Qp(u.layout)),R=k(()=>[{position:"relative",[`overflow-${T.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:u.direction,height:st(u.height)?`${u.height}px`:u.height,width:st(u.width)?`${u.width}px`:u.width},u.style]),I=k(()=>{const K=f(E),ee=f(T);return{height:ee?"100%":`${K}px`,pointerEvents:f(_).isScrolling?"none":void 0,width:ee?`${K}px`:"100%",margin:0,boxSizing:"border-box"}}),M=k(()=>T.value?u.width:u.height),{onWheel:$}=CM({atStartEdge:k(()=>_.value.scrollOffset<=0),atEndEdge:k(()=>_.value.scrollOffset>=E.value),layout:k(()=>u.layout)},K=>{var ee,se;(se=(ee=w.value).onMouseUp)==null||se.call(ee),O(Math.min(_.value.scrollOffset+K,E.value-M.value))});Xt(b,"wheel",$,{passive:!1});const L=()=>{const{total:K}=u;if(K>0){const[te,pe,fe,le]=f(x);d(m1,te,pe,fe,le)}const{scrollDir:ee,scrollOffset:se,updateRequested:he}=f(_);d(g1,ee,se,he)},B=K=>{const{clientHeight:ee,scrollHeight:se,scrollTop:he}=K.currentTarget,te=f(_);if(te.scrollOffset===he)return;const pe=Math.max(0,Math.min(he,se-ee));_.value={...te,isScrolling:!0,scrollDir:yu(te.scrollOffset,pe),scrollOffset:pe,updateRequested:!1},ze(z)},q=K=>{const{clientWidth:ee,scrollLeft:se,scrollWidth:he}=K.currentTarget,te=f(_);if(te.scrollOffset===se)return;const{direction:pe}=u;let fe=se;if(pe===$f)switch(w1()){case Zp:{fe=-se;break}case Lw:{fe=he-ee-se;break}}fe=Math.max(0,Math.min(fe,he-ee)),_.value={...te,isScrolling:!0,scrollDir:yu(te.scrollOffset,fe),scrollOffset:fe,updateRequested:!1},ze(z)},J=K=>{f(T)?q(K):B(K),L()},Y=(K,ee)=>{const se=(E.value-M.value)/ee*K;O(Math.min(E.value-M.value,se))},O=K=>{K=Math.max(K,0),K!==f(_).scrollOffset&&(_.value={...f(_),scrollOffset:K,scrollDir:yu(f(_).scrollOffset,K),updateRequested:!0},ze(z))},N=(K,ee=jo)=>{const{scrollOffset:se}=f(_);K=Math.max(0,Math.min(K,u.total-1)),O(t(u,K,ee,se,f(m)))},V=K=>{const{direction:ee,itemSize:se,layout:he}=u,te=g.value(l&&se,l&&he,l&&ee);let pe;if(Wt(te,String(K)))pe=te[K];else{const fe=s(u,K,f(m)),le=n(u,K,f(m)),Z=f(T),H=ee===$f,ae=Z?fe:0;te[K]=pe={position:"absolute",left:H?void 0:`${ae}px`,right:H?`${ae}px`:void 0,top:Z?0:`${fe}px`,height:Z?"100%":`${le}px`,width:Z?`${le}px`:"100%"}}return pe},z=()=>{_.value.isScrolling=!1,ze(()=>{g.value(-1,null,null)})},G=()=>{const K=b.value;K&&(K.scrollTop=0)};St(()=>{if(!jt)return;const{initScrollOffset:K}=u,ee=f(b);st(K)&&ee&&(f(T)?ee.scrollLeft=K:ee.scrollTop=K),L()}),Pr(()=>{const{direction:K,layout:ee}=u,{scrollOffset:se,updateRequested:he}=f(_),te=f(b);if(he&&te)if(ee===i0)if(K===$f)switch(w1()){case Zp:{te.scrollLeft=-se;break}case Iw:{te.scrollLeft=se;break}default:{const{clientWidth:pe,scrollWidth:fe}=te;te.scrollLeft=fe-pe-se;break}}else te.scrollLeft=se;else te.scrollTop=se}),Dm(()=>{f(b).scrollTop=f(_).scrollOffset});const Q={ns:v,clientSize:M,estimatedTotalSize:E,windowStyle:R,windowRef:b,innerRef:C,innerStyle:I,itemsToRender:x,scrollbarRef:w,states:_,getItemStyle:V,onScroll:J,onScrollbarScroll:Y,onWheel:$,scrollTo:O,scrollToItem:N,resetScrollTop:G};return h({windowRef:b,innerRef:C,getItemStyleCache:g,scrollTo:O,scrollToItem:N,resetScrollTop:G,states:_}),Q},render(u){var d;const{$slots:h,className:p,clientSize:v,containerElement:m,data:g,getItemStyle:b,innerElement:C,itemsToRender:w,innerStyle:_,layout:x,total:E,onScroll:T,onScrollbarScroll:R,states:I,useIsScrolling:M,windowStyle:$,ns:L}=u,[B,q]=w,J=bt(m),Y=bt(C),O=[];if(E>0)for(let G=B;G<=q;G++)O.push(ot(Ve,{key:G},(d=h.default)==null?void 0:d.call(h,{data:g,index:G,isScrolling:M?I.isScrolling:void 0,style:b(G)})));const N=[ot(Y,_t(u.innerProps,{style:_,ref:"innerRef"}),Xe(Y)?O:{default:()=>O})],V=ot(t3,{ref:"scrollbarRef",clientSize:v,layout:x,onScroll:R,ratio:v*100/this.estimatedTotalSize,scrollFrom:I.scrollOffset/(this.estimatedTotalSize-v),total:E,alwaysOn:I.scrollbarAlwaysOn}),z=ot(J,{class:[L.e("window"),p],style:$,onScroll:T,ref:"windowRef",key:0},Xe(J)?[N]:{default:()=>[N]});return ot("div",{key:0,class:[L.e("wrapper"),I.scrollbarAlwaysOn?"always-on":""]},[z,V])}}),PM=MM({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:s,width:a},o,r,i)=>{const l=Qp(s)?a:e,c=Math.max(0,t*n-l),u=Math.min(c,o*n),d=Math.max(0,(o+1)*n-l);switch(r===Vb&&(i>=d-l&&i<=u+l?r=jo:r=ui),r){case Xp:return u;case Jp:return d;case ui:{const h=Math.round(d+(u-d)/2);return h<Math.ceil(l/2)?0:h>c+Math.floor(l/2)?c:h}case jo:default:return i>=d&&i<=u?i:i<d?d:u}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:s,width:a},o,r)=>{const i=o*n,l=Qp(s)?a:e,c=Math.ceil((l+r-i)/n);return Math.max(0,Math.min(t-1,o+c-1))},initCache(){},clearCache:!0,validateProps(){}}),Ef=(e,t,n)=>{const{itemSize:s}=e,{items:a,lastVisitedIndex:o}=n;if(t>o){let r=0;if(o>=0){const i=a[o];r=i.offset+i.size}for(let i=o+1;i<=t;i++){const l=s(i);a[i]={offset:r,size:l},r+=l}n.lastVisitedIndex=t}return a[t]},xue=(e,t,n)=>{const{items:s,lastVisitedIndex:a}=t;return(a>0?s[a].offset:0)>=n?RM(e,t,0,a,n):Eue(e,t,Math.max(0,a),n)},RM=(e,t,n,s,a)=>{for(;n<=s;){const o=n+Math.floor((s-n)/2),r=Ef(e,o,t).offset;if(r===a)return o;r<a?n=o+1:r>a&&(s=o-1)}return Math.max(0,n-1)},Eue=(e,t,n,s)=>{const{total:a}=e;let o=1;for(;n<a&&Ef(e,n,t).offset<s;)n+=o,o*=2;return RM(e,t,Math.floor(n/2),Math.min(n,a-1),s)},f5=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:s})=>{let a=0;if(s>=e&&(s=e-1),s>=0){const i=t[s];a=i.offset+i.size}const r=(e-s-1)*n;return a+r},kue=MM({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Ef(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:f5,getOffset:(e,t,n,s,a)=>{const{height:o,layout:r,width:i}=e,l=Qp(r)?i:o,c=Ef(e,t,a),u=f5(e,a),d=Math.max(0,Math.min(u-l,c.offset)),h=Math.max(0,c.offset-l+c.size);switch(n===Vb&&(s>=h-l&&s<=d+l?n=jo:n=ui),n){case Xp:return d;case Jp:return h;case ui:return Math.round(h+(d-h)/2);case jo:default:return s>=h&&s<=d?s:s<h?h:d}},getStartIndexForOffset:(e,t,n)=>xue(e,n,t),getStopIndexForStartIndex:(e,t,n,s)=>{const{height:a,total:o,layout:r,width:i}=e,l=Qp(r)?i:a,c=Ef(e,t,s),u=n+l;let d=c.offset+c.size,h=t;for(;h<o-1&&d<u;)h++,d+=Ef(e,h,s).size;return h},initCache({estimatedItemSize:e=Yy},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(s,a=!0)=>{var o,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,s-1),(o=t.exposed)==null||o.getItemStyleCache(-1),a&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),Aue={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var Tue=j({name:"ElSelectDropdown",props:Aue,setup(e,{slots:t,expose:n}){const s=je(Rw),a=Ee("select"),{getLabel:o,getValue:r,getDisabled:i}=a2(s.props),l=F([]),c=F(),u=k(()=>e.data.length);be(()=>u.value,()=>{var $,L;(L=($=s.tooltipRef.value)==null?void 0:$.updatePopper)==null||L.call($)});const d=k(()=>Dt(s.props.estimatedOptionHeight)),h=k(()=>d.value?{itemSize:s.props.itemHeight}:{estimatedSize:s.props.estimatedOptionHeight,itemSize:$=>l.value[$]}),p=($=[],L)=>{const{props:{valueKey:B}}=s;return ft(L)?$&&$.some(q=>dn(Xn(q,B))===Xn(L,B)):$.includes(L)},v=($,L)=>{if(ft(L)){const{valueKey:B}=s.props;return Xn($,B)===Xn(L,B)}else return $===L},m=($,L)=>s.props.multiple?p($,r(L)):v($,r(L)),g=($,L)=>{const{disabled:B,multiple:q,multipleLimit:J}=s.props;return B||!L&&(q?J>0&&$.length>=J:!1)},b=$=>e.hoveringIndex===$;n({listRef:c,isSized:d,isItemDisabled:g,isItemHovering:b,isItemSelected:m,scrollToItem:$=>{const L=c.value;L&&L.scrollToItem($)},resetScrollTop:()=>{const $=c.value;$&&$.resetScrollTop()}});const x=$=>{const{index:L,data:B,style:q}=$,J=f(d),{itemSize:Y,estimatedSize:O}=f(h),{modelValue:N}=s.props,{onSelect:V,onHover:z}=s,G=B[L];if(G.type==="Group")return W(rue,{item:G,style:q,height:J?Y:O},null);const Q=m(N,G),K=g(N,Q),ee=b(L);return W(vue,_t($,{selected:Q,disabled:i(G)||K,created:!!G.created,hovering:ee,item:G,onSelect:V,onHover:z}),{default:se=>{var he;return((he=t.default)==null?void 0:he.call(t,se))||W("span",null,[o(G)])}})},{onKeyboardNavigate:E,onKeyboardSelect:T}=s,R=()=>{E("forward")},I=()=>{E("backward")},M=$=>{const L=an($),{tab:B,esc:q,down:J,up:Y,enter:O,numpadEnter:N}=Te;switch([q,J,Y,O,N].includes(L)&&($.preventDefault(),$.stopPropagation()),L){case B:case q:break;case J:R();break;case Y:I();break;case O:case N:T();break}};return()=>{var $,L,B,q;const{data:J,width:Y}=e,{height:O,multiple:N,scrollbarAlwaysOn:V}=s.props,z=k(()=>t1?!0:V),G=f(d)?PM:kue;return W("div",{class:[a.b("dropdown"),a.is("multiple",N)],style:{width:`${Y}px`}},[($=t.header)==null?void 0:$.call(t),((L=t.loading)==null?void 0:L.call(t))||((B=t.empty)==null?void 0:B.call(t))||W(G,_t({ref:c},f(h),{className:a.be("dropdown","list"),scrollbarAlwaysOn:z.value,data:J,height:O,width:Y,total:J.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onKeydown:M}),{default:Q=>W(x,Q,null)}),(q=t.footer)==null?void 0:q.call(t)])}}});function Mue(e,t){const{aliasProps:n,getLabel:s,getValue:a}=a2(e),o=F(0),r=F(),i=k(()=>e.allowCreate&&e.filterable);be(()=>e.options,p=>{const v=new Set(p.map(m=>s(m)));t.createdOptions=t.createdOptions.filter(m=>!v.has(s(m)))});function l(p){const v=m=>s(m)===p;return e.options&&e.options.some(v)||t.createdOptions.some(v)}function c(p){i.value&&(e.multiple&&p.created?o.value++:r.value=p)}function u(p){if(i.value)if(p&&p.length>0){if(l(p)){t.createdOptions=t.createdOptions.filter(m=>s(m)!==t.previousQuery);return}const v={[n.value.value]:p,[n.value.label]:p,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=o.value?t.createdOptions[o.value]=v:t.createdOptions.push(v)}else if(e.multiple)t.createdOptions.length=o.value;else{const v=r.value;t.createdOptions.length=0,v&&v.created&&t.createdOptions.push(v)}}function d(p){if(!i.value||!p||!p.created||p.created&&e.reserveKeyword&&t.inputValue===s(p))return;const v=t.createdOptions.findIndex(m=>a(m)===a(p));~v&&(t.createdOptions.splice(v,1),o.value--)}function h(){i.value&&(t.createdOptions.length=0,o.value=0)}return{createNewOption:u,removeNewOption:d,selectNewOption:c,clearAllNewOption:h}}const Pue=(e,t)=>{const{t:n}=Rt(),s=Hn(),a=Ee("select"),o=Ee("input"),{form:r,formItem:i}=Ms(),{inputId:l}=Mo(e,{formItemContext:i}),{aliasProps:c,getLabel:u,getValue:d,getDisabled:h,getOptions:p}=a2(e),{valueOnClear:v,isEmptyValue:m}=Gm(e),g=Kt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),b=F(-1),C=F(!1),w=F(),_=F(),x=F(),E=F(),T=F(),R=F(),I=F(),M=F(),$=F(),L=F(),{isComposing:B,handleCompositionStart:q,handleCompositionEnd:J,handleCompositionUpdate:Y}=s2({afterComposition:Le=>Cn(Le)}),O=Pn(),{wrapperRef:N,isFocused:V,handleBlur:z}=Fl(T,{disabled:O,afterFocus(){e.automaticDropdown&&!ee.value&&(ee.value=!0,g.menuVisibleOnFocus=!0)},beforeBlur(Le){var dt,kt;return((dt=x.value)==null?void 0:dt.isFocusInsideContent(Le))||((kt=E.value)==null?void 0:kt.isFocusInsideContent(Le))},afterBlur(){var Le;ee.value=!1,g.menuVisibleOnFocus=!1,e.validateEvent&&((Le=i==null?void 0:i.validate)==null||Le.call(i,"blur").catch(dt=>void 0))}}),G=k(()=>Ne("")),Q=k(()=>e.loading?!1:e.options.length>0||g.createdOptions.length>0),K=F([]),ee=F(!1),se=k(()=>{var Le;return(Le=r==null?void 0:r.statusIcon)!=null?Le:!1}),he=k(()=>{const Le=K.value.length*e.itemHeight;return Le>e.height?e.height:Le}),te=k(()=>e.multiple?ke(e.modelValue)&&e.modelValue.length>0:!m(e.modelValue)),pe=k(()=>e.clearable&&!O.value&&te.value&&(V.value||g.inputHovering)),fe=k(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),le=k(()=>fe.value&&a.is("reverse",ee.value)),Z=k(()=>(i==null?void 0:i.validateState)||""),H=k(()=>{if(Z.value)return Mb[Z.value]}),ae=k(()=>e.remote?e.debounce:0),de=k(()=>e.remote&&!g.inputValue&&!Q.value),ye=k(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&g.inputValue&&Q.value&&K.value.length===0?e.noMatchText||n("el.select.noMatch"):Q.value?null:e.noDataText||n("el.select.noData")),_e=k(()=>e.filterable&&nt(e.filterMethod)),Se=k(()=>e.filterable&&e.remote&&nt(e.remoteMethod)),Ne=Le=>{const dt=new RegExp(rw(Le),"i"),kt=Lt=>_e.value||Se.value?!0:Le?dt.test(u(Lt)||""):!0;return e.loading?[]:[...g.createdOptions,...e.options].reduce((Lt,ys)=>{const Po=p(ys);if(ke(Po)){const k0=Po.filter(kt);k0.length>0&&Lt.push({label:u(ys),type:"Group"},...k0)}else(e.remote||kt(ys))&&Lt.push(ys);return Lt},[])},Fe=()=>{K.value=Ne(g.inputValue)},Oe=k(()=>{const Le=new Map;return G.value.forEach((dt,kt)=>{Le.set($e(d(dt)),{option:dt,index:kt})}),Le}),Ce=k(()=>{const Le=new Map;return K.value.forEach((dt,kt)=>{Le.set($e(d(dt)),{option:dt,index:kt})}),Le}),Ie=k(()=>K.value.every(Le=>h(Le))),Pe=ns(),He=k(()=>Pe.value==="small"?"small":"default"),Qe=()=>{var Le;if(st(e.fitInputWidth)){b.value=e.fitInputWidth;return}const dt=((Le=w.value)==null?void 0:Le.offsetWidth)||200;!e.fitInputWidth&&Q.value?ze(()=>{b.value=Math.max(dt,rt())}):b.value=dt},rt=()=>{var Le,dt;const Lt=document.createElement("canvas").getContext("2d"),ys=a.be("dropdown","item"),k0=(((dt=(Le=M.value)==null?void 0:Le.listRef)==null?void 0:dt.innerRef)||document).querySelector(`.${ys}`);if(k0===null||Lt===null)return 0;const g2=getComputedStyle(k0),_I=Number.parseFloat(g2.paddingLeft)+Number.parseFloat(g2.paddingRight);return Lt.font=`bold ${g2.font.replace(new RegExp(`\\b${g2.fontWeight}\\b`),"")}`,K.value.reduce((CI,SI)=>{const xI=Lt.measureText(u(SI));return Math.max(xI.width,CI)},0)+_I},De=()=>{if(!_.value)return 0;const Le=window.getComputedStyle(_.value);return Number.parseFloat(Le.gap||"6px")},Ke=k(()=>{const Le=De(),dt=e.filterable?Le+Lb:0;return{maxWidth:`${L.value&&e.maxCollapseTags===1?g.selectionWidth-g.collapseItemWidth-Le-dt:g.selectionWidth-dt}px`}}),et=k(()=>({maxWidth:`${g.selectionWidth}px`})),Ft=k(()=>ke(e.modelValue)?e.modelValue.length===0&&!g.inputValue:e.filterable?!g.inputValue:!0),Ht=k(()=>{var Le;const dt=(Le=e.placeholder)!=null?Le:n("el.select.placeholder");return e.multiple||!te.value?dt:g.selectedLabel}),at=k(()=>{var Le,dt;return(dt=(Le=x.value)==null?void 0:Le.popperRef)==null?void 0:dt.contentRef}),vt=k(()=>{if(e.multiple){const Le=e.modelValue.length;if(Le>0&&Ce.value.has(e.modelValue[Le-1])){const{index:dt}=Ce.value.get(e.modelValue[Le-1]);return dt}}else if(!m(e.modelValue)&&Ce.value.has(e.modelValue)){const{index:Le}=Ce.value.get(e.modelValue);return Le}return-1}),Et=k({get(){return ee.value&&(e.loading||!de.value||e.remote&&!!s.empty)&&(!C.value||!Pa(g.previousQuery))},set(Le){ee.value=Le}}),xe=k(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(0,e.maxCollapseTags):g.cachedOptions:[]),Ue=k(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:we,removeNewOption:Ge,selectNewOption:wt,clearAllNewOption:Ut}=Mue(e,g),gn=Le=>{var dt;O.value||e.filterable&&ee.value&&Le&&!((dt=I.value)!=null&&dt.contains(Le.target))||(g.menuVisibleOnFocus?g.menuVisibleOnFocus=!1:ee.value=!ee.value)},bn=()=>{g.inputValue.length>0&&!ee.value&&(ee.value=!0),we(g.inputValue),ze(()=>{ve(g.inputValue)})},Be=Km(()=>{bn(),C.value=!1},ae),ve=Le=>{g.previousQuery===Le||B.value||(g.previousQuery=Le,e.filterable&&nt(e.filterMethod)?e.filterMethod(Le):e.filterable&&e.remote&&nt(e.remoteMethod)&&e.remoteMethod(Le),e.defaultFirstOption&&(e.filterable||e.remote)&&K.value.length?ze(me):ze($t))},me=()=>{const Le=K.value.filter(Lt=>!Lt.disabled&&Lt.type!=="Group"),dt=Le.find(Lt=>Lt.created),kt=Le[0];g.hoveringIndex=Ae(K.value,dt||kt)},Ze=Le=>{On(e.modelValue,Le)||t(Pt,Le)},Je=Le=>{t(ct,Le),Ze(Le),g.previousValue=e.multiple?String(Le):Le,ze(()=>{if(e.multiple&&ke(e.modelValue)){const dt=g.cachedOptions.slice(),kt=e.modelValue.map(Lt=>Dr(Lt,dt));On(g.cachedOptions,kt)||(g.cachedOptions=kt)}else nf(!0)})},Ae=(Le=[],dt)=>{if(!ft(dt))return Le.indexOf(dt);const kt=e.valueKey;let Lt=-1;return Le.some((ys,Po)=>Xn(ys,kt)===Xn(dt,kt)?(Lt=Po,!0):!1),Lt},$e=Le=>ft(Le)?Xn(Le,e.valueKey):Le,lt=()=>{Qe()},yn=()=>{g.selectionWidth=Number.parseFloat(window.getComputedStyle(_.value).width)},rn=()=>{g.collapseItemWidth=L.value.getBoundingClientRect().width},Rn=()=>{var Le,dt;(dt=(Le=x.value)==null?void 0:Le.updatePopper)==null||dt.call(Le)},Js=()=>{var Le,dt;(dt=(Le=E.value)==null?void 0:Le.updatePopper)==null||dt.call(Le)},It=Le=>{const dt=d(Le);if(e.multiple){let kt=e.modelValue.slice();const Lt=Ae(kt,dt);Lt>-1?(kt=[...kt.slice(0,Lt),...kt.slice(Lt+1)],g.cachedOptions.splice(Lt,1),Ge(Le)):(e.multipleLimit<=0||kt.length<e.multipleLimit)&&(kt=[...kt,dt],g.cachedOptions.push(Le),wt(Le)),Je(kt),Le.created&&ve(""),e.filterable&&!e.reserveKeyword&&(g.inputValue="")}else g.selectedLabel=u(Le),!On(e.modelValue,dt)&&Je(dt),ee.value=!1,wt(Le),Le.created||Ut();Fa()},to=(Le,dt)=>{let kt=e.modelValue.slice();const Lt=Ae(kt,d(dt));Lt>-1&&!O.value&&(kt=[...e.modelValue.slice(0,Lt),...e.modelValue.slice(Lt+1)],g.cachedOptions.splice(Lt,1),Je(kt),t("remove-tag",d(dt)),Ge(dt)),Le.stopPropagation(),Fa()},Fa=()=>{var Le;(Le=T.value)==null||Le.focus()},Jc=()=>{var Le;if(ee.value){ee.value=!1,ze(()=>{var dt;return(dt=T.value)==null?void 0:dt.blur()});return}(Le=T.value)==null||Le.blur()},Zc=()=>{g.inputValue.length>0?g.inputValue="":ee.value=!1},Qc=Le=>sk(Le,dt=>!g.cachedOptions.some(kt=>d(kt)===dt&&h(kt))),o4=Le=>{const dt=an(Le);if(e.multiple&&dt!==Te.delete&&g.inputValue.length===0){Le.preventDefault();const kt=e.modelValue.slice(),Lt=Qc(kt);if(Lt<0)return;const ys=kt[Lt];kt.splice(Lt,1);const Po=g.cachedOptions[Lt];g.cachedOptions.splice(Lt,1),Ge(Po),Je(kt),t("remove-tag",ys)}},r4=()=>{let Le;ke(e.modelValue)?Le=[]:Le=v.value,g.selectedLabel="",ee.value=!1,Je(Le),t("clear"),Ut(),Fa()},eu=(Le,dt=void 0)=>{const kt=K.value;if(!["forward","backward"].includes(Le)||O.value||kt.length<=0||Ie.value||B.value)return;if(!ee.value)return gn();Dt(dt)&&(dt=g.hoveringIndex);let Lt=-1;Le==="forward"?(Lt=dt+1,Lt>=kt.length&&(Lt=0)):Le==="backward"&&(Lt=dt-1,(Lt<0||Lt>=kt.length)&&(Lt=kt.length-1));const ys=kt[Lt];if(h(ys)||ys.type==="Group")return eu(Le,Lt);g.hoveringIndex=Lt,Bs(Lt)},Re=()=>{if(ee.value)~g.hoveringIndex&&K.value[g.hoveringIndex]&&It(K.value[g.hoveringIndex]);else return gn()},ut=Le=>{g.hoveringIndex=Le??-1},$t=()=>{if(!e.multiple)g.hoveringIndex=K.value.findIndex(Le=>$e(d(Le))===$e(e.modelValue));else{const Le=e.modelValue.length;if(Le>0){const dt=e.modelValue[Le-1];g.hoveringIndex=K.value.findIndex(kt=>$e(dt)===$e(d(kt)))}else g.hoveringIndex=-1}},Cn=Le=>{if(g.inputValue=Le.target.value,e.remote)C.value=!0,Be();else return bn()},Fn=Le=>{if(ee.value=!1,V.value){const dt=new FocusEvent("blur",Le);z(dt)}},Zs=()=>(g.isBeforeHide=!1,ze(()=>{~vt.value&&Bs(vt.value)})),Bs=Le=>{M.value.scrollToItem(Le)},Dr=(Le,dt)=>{const kt=$e(Le);if(Oe.value.has(kt)){const{option:Lt}=Oe.value.get(kt);return Lt}if(dt&&dt.length){const Lt=dt.find(ys=>$e(d(ys))===kt);if(Lt)return Lt}return{[c.value.value]:Le,[c.value.label]:Le}},Ai=Le=>{var dt,kt;return(kt=(dt=Oe.value.get(d(Le)))==null?void 0:dt.index)!=null?kt:-1},nf=(Le=!1)=>{if(e.multiple)if(e.modelValue.length>0){const dt=g.cachedOptions.slice();g.cachedOptions.length=0,g.previousValue=e.modelValue.toString();for(const kt of e.modelValue){const Lt=Dr(kt,dt);g.cachedOptions.push(Lt)}}else g.cachedOptions=[],g.previousValue=void 0;else if(te.value){g.previousValue=e.modelValue;const dt=K.value,kt=dt.findIndex(Lt=>$e(d(Lt))===$e(e.modelValue));~kt?g.selectedLabel=u(dt[kt]):(!g.selectedLabel||Le)&&(g.selectedLabel=$e(e.modelValue))}else g.selectedLabel="",g.previousValue=void 0;Ut(),Qe()};be(()=>e.fitInputWidth,()=>{Qe()}),be(ee,Le=>{Le?(e.persistent||Qe(),ve("")):(g.inputValue="",g.previousQuery=null,g.isBeforeHide=!0,g.menuVisibleOnFocus=!1,we(""))}),be(()=>e.modelValue,(Le,dt)=>{var kt;(!Le||ke(Le)&&Le.length===0||e.multiple&&!On(Le.toString(),g.previousValue)||!e.multiple&&$e(Le)!==$e(g.previousValue))&&nf(!0),!On(Le,dt)&&e.validateEvent&&((kt=i==null?void 0:i.validate)==null||kt.call(i,"change").catch(ys=>void 0))},{deep:!0}),be(()=>e.options,()=>{const Le=T.value;(!Le||Le&&document.activeElement!==Le)&&nf()},{deep:!0,flush:"post"}),be(()=>K.value,()=>(Qe(),M.value&&ze(M.value.resetScrollTop))),Qa(()=>{g.isBeforeHide||Fe()}),Qa(()=>{const{valueKey:Le,options:dt}=e,kt=new Map;for(const Lt of dt){const ys=d(Lt);let Po=ys;if(ft(Po)&&(Po=Xn(ys,Le)),kt.get(Po))break;kt.set(Po,!0)}}),St(()=>{nf()}),wn(w,lt),wn(_,yn),wn(N,Rn),wn($,Js),wn(L,rn);let m2;return be(()=>Et.value,Le=>{Le?m2=wn(M,Rn).stop:(m2==null||m2(),m2=void 0),t("visible-change",Le)}),{inputId:l,collapseTagSize:He,currentPlaceholder:Ht,expanded:ee,emptyText:ye,popupHeight:he,debounce:ae,allOptions:G,allOptionsValueMap:Oe,filteredOptions:K,iconComponent:fe,iconReverse:le,tagStyle:Ke,collapseTagStyle:et,popperSize:b,dropdownMenuVisible:Et,hasModelValue:te,shouldShowPlaceholder:Ft,selectDisabled:O,selectSize:Pe,needStatusIcon:se,showClearBtn:pe,states:g,isFocused:V,nsSelect:a,nsInput:o,inputRef:T,menuRef:M,tagMenuRef:$,tooltipRef:x,tagTooltipRef:E,selectRef:w,wrapperRef:N,selectionRef:_,prefixRef:R,suffixRef:I,collapseItemRef:L,popperRef:at,validateState:Z,validateIcon:H,showTagList:xe,collapseTagList:Ue,debouncedOnInputChange:Be,deleteTag:to,getLabel:u,getValue:d,getDisabled:h,getValueKey:$e,getIndex:Ai,handleClear:r4,handleClickOutside:Fn,handleDel:o4,handleEsc:Zc,focus:Fa,blur:Jc,handleMenuEnter:Zs,handleResize:lt,resetSelectionWidth:yn,updateTooltip:Rn,updateTagTooltip:Js,updateOptions:Fe,toggleMenu:gn,scrollTo:Bs,onInput:Cn,onKeyboardNavigate:eu,onKeyboardSelect:Re,onSelect:It,onHover:ut,handleCompositionStart:q,handleCompositionEnd:J,handleCompositionUpdate:Y}};var Rue=j({name:"ElSelectV2",components:{ElSelectMenu:Tue,ElTag:yl,ElTooltip:As,ElIcon:Ye},directives:{ClickOutside:Wc},props:lue,emits:uue,setup(e,{emit:t}){const n=k(()=>{const{modelValue:l,multiple:c}=e,u=c?[]:void 0;return ke(l)?c?l:u:c?u:l}),s=Pue(Kt({...gs(e),modelValue:n}),t),{calculatorRef:a,inputStyle:o}=cw(),r=Fs();Mt(Rw,{props:Kt({...gs(e),height:s.popupHeight,modelValue:n}),expanded:s.expanded,tooltipRef:s.tooltipRef,contentId:r,onSelect:s.onSelect,onHover:s.onHover,onKeyboardNavigate:s.onKeyboardNavigate,onKeyboardSelect:s.onKeyboardSelect});const i=k(()=>e.multiple?s.states.cachedOptions.map(l=>s.getLabel(l)):s.states.selectedLabel);return{...s,modelValue:n,selectedLabel:i,calculatorRef:a,inputStyle:o,contentId:r,BORDER_HORIZONTAL_WIDTH:UA}}});const Iue=["id","value","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],Lue=["textContent"],Oue={key:1};function Nue(e,t,n,s,a,o){const r=qe("el-tag"),i=qe("el-tooltip"),l=qe("el-icon"),c=qe("el-select-menu"),u=l8("click-outside");return gt((S(),P("div",{ref:"selectRef",class:D([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[14]||(t[14]=d=>e.states.inputHovering=!0),onMouseleave:t[15]||(t[15]=d=>e.states.inputHovering=!1)},[W(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[13]||(t[13]=d=>e.states.isBeforeHide=!1)},{default:X(()=>{var d,h;return[A("div",{ref:"wrapperRef",class:D([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[10]||(t[10]=it((...p)=>e.toggleMenu&&e.toggleMenu(...p),["prevent"]))},[e.$slots.prefix?(S(),P("div",{key:0,ref:"prefixRef",class:D(e.nsSelect.e("prefix"))},[ue(e.$slots,"prefix")],2)):ie("v-if",!0),A("div",{ref:"selectionRef",class:D([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?ue(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(S(!0),P(Ve,null,yt(e.showTagList,p=>(S(),P("div",{key:e.getValueKey(e.getValue(p)),class:D(e.nsSelect.e("selected-item"))},[W(r,{closable:!e.selectDisabled&&!e.getDisabled(p),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:tt(e.tagStyle),onClose:v=>e.deleteTag(v,p)},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:e.getIndex(p),label:e.getLabel(p),value:e.getValue(p)},()=>[We(ge(e.getLabel(p)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(S(),ce(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported,"popper-options":e.popperOptions},{default:X(()=>[A("div",{ref:"collapseItemRef",class:D(e.nsSelect.e("selected-item"))},[W(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:tt(e.collapseTagStyle),"disable-transitions":""},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))}," + "+ge(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:X(()=>[A("div",{ref:"tagMenuRef",class:D(e.nsSelect.e("selection"))},[(S(!0),P(Ve,null,yt(e.collapseTagList,p=>(S(),P("div",{key:e.getValueKey(e.getValue(p)),class:D(e.nsSelect.e("selected-item"))},[W(r,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(p),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:v=>e.deleteTag(v,p)},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:e.getIndex(p),label:e.getLabel(p),value:e.getValue(p)},()=>[We(ge(e.getLabel(p)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported","popper-options"])):ie("v-if",!0)]):ie("v-if",!0),A("div",{class:D([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled)])},[A("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,style:tt(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:D([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[0]||(t[0]=(...p)=>e.onInput&&e.onInput(...p)),onCompositionstart:t[1]||(t[1]=(...p)=>e.handleCompositionStart&&e.handleCompositionStart(...p)),onCompositionupdate:t[2]||(t[2]=(...p)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...p)),onCompositionend:t[3]||(t[3]=(...p)=>e.handleCompositionEnd&&e.handleCompositionEnd(...p)),onKeydown:[t[4]||(t[4]=Ln(it(p=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[5]||(t[5]=Ln(it(p=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[6]||(t[6]=Ln(it((...p)=>e.onKeyboardSelect&&e.onKeyboardSelect(...p),["stop","prevent"]),["enter"])),t[7]||(t[7]=Ln(it((...p)=>e.handleEsc&&e.handleEsc(...p),["stop","prevent"]),["esc"])),t[8]||(t[8]=Ln(it((...p)=>e.handleDel&&e.handleDel(...p),["stop"]),["delete"]))],onClick:t[9]||(t[9]=it((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"]))},null,46,Iue),e.filterable?(S(),P("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:D(e.nsSelect.e("input-calculator")),textContent:ge(e.states.inputValue)},null,10,Lue)):ie("v-if",!0)],2),e.shouldShowPlaceholder?(S(),P("div",{key:1,class:D([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ue(e.$slots,"label",{key:0,index:(h=(d=e.allOptionsValueMap.get(e.modelValue))==null?void 0:d.index)!=null?h:-1,label:e.currentPlaceholder,value:e.modelValue},()=>[A("span",null,ge(e.currentPlaceholder),1)]):(S(),P("span",Oue,ge(e.currentPlaceholder),1))],2)):ie("v-if",!0)],2),A("div",{ref:"suffixRef",class:D(e.nsSelect.e("suffix"))},[e.iconComponent?gt((S(),ce(l,{key:0,class:D([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:X(()=>[(S(),ce(bt(e.iconComponent)))]),_:1},8,["class"])),[[Bt,!e.showClearBtn]]):ie("v-if",!0),e.showClearBtn&&e.clearIcon?(S(),ce(l,{key:1,class:D([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:it(e.handleClear,["prevent","stop"])},{default:X(()=>[(S(),ce(bt(e.clearIcon)))]),_:1},8,["class","onClick"])):ie("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(S(),ce(l,{key:2,class:D([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:X(()=>[(S(),ce(bt(e.validateIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)]}),content:X(()=>[W(c,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel},Na({default:X(d=>[ue(e.$slots,"default",vl(ml(d)))]),_:2},[e.$slots.header?{name:"header",fn:X(()=>[A("div",{class:D(e.nsSelect.be("dropdown","header")),onClick:t[11]||(t[11]=it(()=>{},["stop"]))},[ue(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:X(()=>[A("div",{class:D(e.nsSelect.be("dropdown","loading"))},[ue(e.$slots,"loading")],2)]),key:"1"}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:X(()=>[A("div",{class:D(e.nsSelect.be("dropdown","empty"))},[ue(e.$slots,"empty",{},()=>[A("span",null,ge(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:X(()=>[A("div",{class:D(e.nsSelect.be("dropdown","footer")),onClick:t[12]||(t[12]=it(()=>{},["stop"]))},[ue(e.$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)),[[u,e.handleClickOutside,e.popperRef]])}var $ue=is(Rue,[["render",Nue]]);const Due=pt($ue),Fue=Me({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:re([Number,Object])}}),Bue=Me({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}});var _1=j({name:"ElSkeletonItem",__name:"skeleton-item",props:Bue,setup(e){const t=Ee("skeleton");return(n,s)=>(S(),P("div",{class:D([f(t).e("item"),f(t).e(e.variant)])},[e.variant==="image"?(S(),ce(f(Fk),{key:0})):ie("v-if",!0)],2))}});const Vue=(e,t=0)=>{if(t===0)return e;const n=ft(t)&&!!t.initVal,s=F(n);let a=null;const o=i=>{if(Dt(i)){s.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{s.value=e.value},i)},r=i=>{i==="leading"?st(t)?o(t):o(t.leading):ft(t)?o(t.trailing):s.value=!1};return St(()=>r("leading")),be(()=>e.value,i=>{r(i?"leading":"trailing")}),s};var zue=j({name:"ElSkeleton",__name:"skeleton",props:Fue,setup(e,{expose:t}){const n=e,s=Ee("skeleton"),a=Vue(Jt(n,"loading"),n.throttle);return t({uiLoading:a}),(o,r)=>f(a)?(S(),P("div",_t({key:0,class:[f(s).b(),f(s).is("animated",e.animated)]},o.$attrs),[(S(!0),P(Ve,null,yt(e.count,i=>(S(),P(Ve,{key:i},[f(a)?ue(o.$slots,"template",{key:i},()=>[W(_1,{class:D(f(s).is("first")),variant:"p"},null,8,["class"]),(S(!0),P(Ve,null,yt(e.rows,l=>(S(),ce(_1,{key:l,class:D([f(s).e("paragraph"),f(s).is("last",l===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"]))),128))]):ie("v-if",!0)],64))),128))],16)):ue(o.$slots,"default",vl(_t({key:1},o.$attrs)))}});const Hue=pt(zue,{SkeletonItem:_1}),Wue=En(_1),IM=Symbol("sliderContextKey"),jue=Me({modelValue:{type:re([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:rs,inputSize:rs,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:re(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:re(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Ei,default:"top"},marks:{type:re(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...ya(["ariaLabel"])}),H4=e=>st(e)||ke(e)&&e.every(st),Kue={[ct]:H4,[ts]:H4,[Pt]:H4},Uue=Me({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ei,default:"top"}}),que={[ct]:e=>st(e)},Gue=(e,t,n)=>{const s=F(),a=F(!1),o=k(()=>t.value instanceof Function),r=k(()=>o.value&&t.value(e.modelValue)||e.modelValue),i=yi(()=>{n.value&&(a.value=!0)},50),l=yi(()=>{n.value&&(a.value=!1)},50);return{tooltip:s,tooltipVisible:a,formatValue:r,displayTooltip:i,hideTooltip:l}},Yue=(e,t,n)=>{const{disabled:s,min:a,max:o,step:r,showTooltip:i,persistent:l,precision:c,sliderSize:u,formatTooltip:d,emitChange:h,resetSize:p,updateDragging:v}=je(IM),{tooltip:m,tooltipVisible:g,formatValue:b,displayTooltip:C,hideTooltip:w}=Gue(e,d,i),_=F(),x=k(()=>`${(e.modelValue-a.value)/(o.value-a.value)*100}%`),E=k(()=>e.vertical?{bottom:x.value}:{left:x.value}),T=()=>{t.hovering=!0,C()},R=()=>{t.hovering=!1,t.dragging||w()},I=K=>{s.value||(K.preventDefault(),V(K),window.addEventListener("mousemove",z),window.addEventListener("touchmove",z),window.addEventListener("mouseup",G),window.addEventListener("touchend",G),window.addEventListener("contextmenu",G),_.value.focus())},M=K=>{s.value||(t.newPosition=Number.parseFloat(x.value)+K/(o.value-a.value)*100,Q(t.newPosition),h())},$=()=>{M(-r.value)},L=()=>{M(r.value)},B=()=>{M(-r.value*4)},q=()=>{M(r.value*4)},J=()=>{s.value||(Q(0),h())},Y=()=>{s.value||(Q(100),h())},O=K=>{const ee=an(K);let se=!0;switch(ee){case Te.left:case Te.down:$();break;case Te.right:case Te.up:L();break;case Te.home:J();break;case Te.end:Y();break;case Te.pageDown:B();break;case Te.pageUp:q();break;default:se=!1;break}se&&K.preventDefault()},N=K=>{let ee,se;return K.type.startsWith("touch")?(se=K.touches[0].clientY,ee=K.touches[0].clientX):(se=K.clientY,ee=K.clientX),{clientX:ee,clientY:se}},V=K=>{t.dragging=!0,t.isClick=!0;const{clientX:ee,clientY:se}=N(K);e.vertical?t.startY=se:t.startX=ee,t.startPosition=Number.parseFloat(x.value),t.newPosition=t.startPosition},z=K=>{if(t.dragging){t.isClick=!1,C(),p();let ee;const{clientX:se,clientY:he}=N(K);e.vertical?(t.currentY=he,ee=(t.startY-t.currentY)/u.value*100):(t.currentX=se,ee=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+ee,Q(t.newPosition)}},G=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||w(),t.isClick||Q(t.newPosition),h()},0),window.removeEventListener("mousemove",z),window.removeEventListener("touchmove",z),window.removeEventListener("mouseup",G),window.removeEventListener("touchend",G),window.removeEventListener("contextmenu",G))},Q=async K=>{if(K===null||Number.isNaN(+K))return;K=mu(K,0,100);const ee=Math.floor((o.value-a.value)/r.value),se=ee*r.value/(o.value-a.value)*100,he=se+(100-se)/2;let te;if(K<se){const pe=se/ee,fe=Math.round(K/pe);te=a.value+fe*r.value}else K<he?te=a.value+ee*r.value:te=o.value;te=Number.parseFloat(te.toFixed(c.value)),te!==e.modelValue&&n(ct,te),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await ze(),t.dragging&&C(),m.value.updatePopper()};return be(()=>t.dragging,K=>{v(K)}),Xt(_,"touchstart",I,{passive:!1}),{disabled:s,button:_,tooltip:m,tooltipVisible:g,showTooltip:i,persistent:l,wrapperStyle:E,formatValue:b,handleMouseEnter:T,handleMouseLeave:R,onButtonDown:I,onKeyDown:O,setPosition:Q}},Xue=["tabindex"];var h5=j({name:"ElSliderButton",__name:"button",props:Uue,emits:que,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("slider"),r=Kt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:s.modelValue}),i=k(()=>d.value?h.value:!1),{disabled:l,button:c,tooltip:u,showTooltip:d,persistent:h,tooltipVisible:p,wrapperStyle:v,formatValue:m,handleMouseEnter:g,handleMouseLeave:b,onButtonDown:C,onKeyDown:w,setPosition:_}=Yue(s,r,a),{hovering:x,dragging:E}=gs(r);return t({onButtonDown:C,onKeyDown:w,setPosition:_,hovering:x,dragging:E}),(T,R)=>(S(),P("div",{ref_key:"button",ref:c,class:D([f(o).e("button-wrapper"),{hover:f(x),dragging:f(E)}]),style:tt(f(v)),tabindex:f(l)?void 0:0,onMouseenter:R[0]||(R[0]=(...I)=>f(g)&&f(g)(...I)),onMouseleave:R[1]||(R[1]=(...I)=>f(b)&&f(b)(...I)),onMousedown:R[2]||(R[2]=(...I)=>f(C)&&f(C)(...I)),onFocus:R[3]||(R[3]=(...I)=>f(g)&&f(g)(...I)),onBlur:R[4]||(R[4]=(...I)=>f(b)&&f(b)(...I)),onKeydown:R[5]||(R[5]=(...I)=>f(w)&&f(w)(...I))},[W(f(As),{ref_key:"tooltip",ref:u,visible:f(p),placement:T.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":T.tooltipClass,disabled:!f(d),persistent:i.value},{content:X(()=>[A("span",null,ge(f(m)),1)]),default:X(()=>[A("div",{class:D([f(o).e("button"),{hover:f(x),dragging:f(E)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,Xue))}});const Jue=Me({mark:{type:re([String,Object]),default:void 0}});var Zue=j({name:"ElSliderMarker",props:Jue,setup(e){const t=Ee("slider"),n=k(()=>Xe(e.mark)?e.mark:e.mark.label),s=k(()=>Xe(e.mark)?void 0:e.mark.style);return()=>ot("div",{class:t.e("marks-text"),style:s.value},n.value)}});const Que=(e,t,n)=>{const{formItem:s}=Ms(),a=fn(),o=F(),r=F(),i={firstButton:o,secondButton:r},l=Pn(),c=k(()=>Math.min(t.firstValue,t.secondValue)),u=k(()=>Math.max(t.firstValue,t.secondValue)),d=k(()=>e.range?`${100*(u.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=k(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),p=k(()=>e.vertical?{height:e.height}:{}),v=k(()=>e.vertical?{height:d.value,bottom:h.value}:{width:d.value,left:h.value}),m=()=>{if(a.value){const $=a.value.getBoundingClientRect();t.sliderSize=$[e.vertical?"height":"width"]}},g=$=>{const L=e.min+$*(e.max-e.min)/100;if(!e.range)return o;let B;return Math.abs(c.value-L)<Math.abs(u.value-L)?B=t.firstValue<t.secondValue?"firstButton":"secondButton":B=t.firstValue>t.secondValue?"firstButton":"secondButton",i[B]},b=$=>{const L=g($);return L.value.setPosition($),L},C=$=>{t.firstValue=$??e.min,_(e.range?[c.value,u.value]:$??e.min)},w=$=>{t.secondValue=$,e.range&&_([c.value,u.value])},_=$=>{n(ct,$),n(ts,$)},x=async()=>{await ze(),n(Pt,e.range?[c.value,u.value]:e.modelValue)},E=$=>{var L,B,q,J,Y,O;if(l.value||t.dragging)return;m();let N=0;if(e.vertical){const V=(q=(B=(L=$.touches)==null?void 0:L.item(0))==null?void 0:B.clientY)!=null?q:$.clientY;N=(a.value.getBoundingClientRect().bottom-V)/t.sliderSize*100}else{const V=(O=(Y=(J=$.touches)==null?void 0:J.item(0))==null?void 0:Y.clientX)!=null?O:$.clientX,z=a.value.getBoundingClientRect().left;N=(V-z)/t.sliderSize*100}if(!(N<0||N>100))return b(N)};return{elFormItem:s,slider:a,firstButton:o,secondButton:r,sliderDisabled:l,minValue:c,maxValue:u,runwayStyle:p,barStyle:v,resetSize:m,setPosition:b,emitChange:x,onSliderWrapperPrevent:$=>{var L,B;((L=i.firstButton.value)!=null&&L.dragging||(B=i.secondButton.value)!=null&&B.dragging)&&$.preventDefault()},onSliderClick:$=>{E($)&&x()},onSliderDown:async $=>{const L=E($);L&&(await ze(),L.value.onButtonDown($))},onSliderMarkerDown:$=>{if(l.value||t.dragging)return;b($)&&x()},setFirstValue:C,setSecondValue:w}},ede=(e,t,n,s)=>({stops:k(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const r=Math.ceil((e.max-e.min)/e.step),i=100*e.step/(e.max-e.min),l=Array.from({length:r-1}).map((c,u)=>(u+1)*i);return e.range?l.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(s.value-e.min)/(e.max-e.min)):l.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:r=>e.vertical?{bottom:`${r}%`}:{left:`${r}%`}}),tde=e=>k(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,s)=>n-s).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),nde=(e,t,n,s,a,o)=>{const r=c=>{a(ct,c),a(ts,c)},i=()=>e.range?![n.value,s.value].every((c,u)=>c===t.oldValue[u]):e.modelValue!==t.oldValue,l=()=>{var c,u;e.min>e.max&&Jn("Slider","min should not be greater than max.");const d=e.modelValue;e.range&&ke(d)?d[1]<e.min?r([e.min,e.min]):d[0]>e.max?r([e.max,e.max]):d[0]<e.min?r([e.min,d[1]]):d[1]>e.max?r([d[0],e.max]):(t.firstValue=d[0],t.secondValue=d[1],i()&&(e.validateEvent&&((c=o==null?void 0:o.validate)==null||c.call(o,"change").catch(h=>void 0)),t.oldValue=d.slice())):!e.range&&st(d)&&!Number.isNaN(d)&&(d<e.min?r(e.min):d>e.max?r(e.max):(t.firstValue=d,i()&&(e.validateEvent&&((u=o==null?void 0:o.validate)==null||u.call(o,"change").catch(h=>void 0)),t.oldValue=d)))};l(),be(()=>t.dragging,c=>{c||l()}),be(()=>e.modelValue,(c,u)=>{t.dragging||ke(c)&&ke(u)&&c.every((d,h)=>d===u[h])&&t.firstValue===c[0]&&t.secondValue===c[1]||l()},{deep:!0}),be(()=>[e.min,e.max],()=>{l()})},sde=(e,t,n)=>{const s=F();return St(async()=>{e.range?(ke(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!st(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Xt(window,"resize",n),await ze(),n()}),{sliderWrapper:s}},ade=["id","role","aria-label","aria-labelledby"],ode={key:1};var rde=j({name:"ElSlider",__name:"slider",props:jue,emits:Kue,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("slider"),{t:r}=Rt(),i=Kt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:l,slider:c,firstButton:u,secondButton:d,sliderDisabled:h,minValue:p,maxValue:v,runwayStyle:m,barStyle:g,resetSize:b,emitChange:C,onSliderWrapperPrevent:w,onSliderClick:_,onSliderDown:x,onSliderMarkerDown:E,setFirstValue:T,setSecondValue:R}=Que(s,i,a),{stops:I,getStopStyle:M}=ede(s,i,p,v),{inputId:$,isLabeledByFormItem:L}=Mo(s,{formItemContext:l}),B=ns(),q=k(()=>s.inputSize||B.value),J=k(()=>s.ariaLabel||r("el.slider.defaultLabel",{min:s.min,max:s.max})),Y=k(()=>s.range?s.rangeStartLabel||r("el.slider.defaultRangeStartLabel"):J.value),O=k(()=>s.formatValueText?s.formatValueText(ee.value):`${ee.value}`),N=k(()=>s.rangeEndLabel||r("el.slider.defaultRangeEndLabel")),V=k(()=>s.formatValueText?s.formatValueText(se.value):`${se.value}`),z=k(()=>[o.b(),o.m(B.value),o.is("vertical",s.vertical),{[o.m("with-input")]:s.showInput}]),G=tde(s);nde(s,i,p,v,a,l);const Q=k(()=>{const pe=[s.min,s.max,s.step].map(fe=>{const le=`${fe}`.split(".")[1];return le?le.length:0});return Math.max.apply(null,pe)}),{sliderWrapper:K}=sde(s,i,b),{firstValue:ee,secondValue:se,sliderSize:he}=gs(i),te=pe=>{i.dragging=pe};return Xt(K,"touchstart",w,{passive:!1}),Xt(K,"touchmove",w,{passive:!1}),Mt(IM,{...gs(s),sliderSize:he,disabled:h,precision:Q,emitChange:C,resetSize:b,updateDragging:te}),t({onSliderClick:_}),(pe,fe)=>{var le,Z;return S(),P("div",{id:pe.range?f($):void 0,ref_key:"sliderWrapper",ref:K,class:D(z.value),role:pe.range?"group":void 0,"aria-label":pe.range&&!f(L)?J.value:void 0,"aria-labelledby":pe.range&&f(L)?(le=f(l))==null?void 0:le.labelId:void 0},[A("div",{ref_key:"slider",ref:c,class:D([f(o).e("runway"),{"show-input":pe.showInput&&!pe.range},f(o).is("disabled",f(h))]),style:tt(f(m)),onMousedown:fe[0]||(fe[0]=(...H)=>f(x)&&f(x)(...H)),onTouchstartPassive:fe[1]||(fe[1]=(...H)=>f(x)&&f(x)(...H))},[A("div",{class:D(f(o).e("bar")),style:tt(f(g))},null,6),W(h5,{id:pe.range?void 0:f($),ref_key:"firstButton",ref:u,"model-value":f(ee),vertical:pe.vertical,"tooltip-class":pe.tooltipClass,placement:pe.placement,role:"slider","aria-label":pe.range||!f(L)?Y.value:void 0,"aria-labelledby":!pe.range&&f(L)?(Z=f(l))==null?void 0:Z.labelId:void 0,"aria-valuemin":pe.min,"aria-valuemax":pe.range?f(se):pe.max,"aria-valuenow":f(ee),"aria-valuetext":O.value,"aria-orientation":pe.vertical?"vertical":"horizontal","aria-disabled":f(h),"onUpdate:modelValue":f(T)},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"]),pe.range?(S(),ce(h5,{key:0,ref_key:"secondButton",ref:d,"model-value":f(se),vertical:pe.vertical,"tooltip-class":pe.tooltipClass,placement:pe.placement,role:"slider","aria-label":N.value,"aria-valuemin":f(ee),"aria-valuemax":pe.max,"aria-valuenow":f(se),"aria-valuetext":V.value,"aria-orientation":pe.vertical?"vertical":"horizontal","aria-disabled":f(h),"onUpdate:modelValue":f(R)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ie("v-if",!0),pe.showStops?(S(),P("div",ode,[(S(!0),P(Ve,null,yt(f(I),(H,ae)=>(S(),P("div",{key:ae,class:D(f(o).e("stop")),style:tt(f(M)(H))},null,6))),128))])):ie("v-if",!0),f(G).length>0?(S(),P(Ve,{key:2},[A("div",null,[(S(!0),P(Ve,null,yt(f(G),(H,ae)=>(S(),P("div",{key:ae,style:tt(f(M)(H.position)),class:D([f(o).e("stop"),f(o).e("marks-stop")])},null,6))),128))]),A("div",{class:D(f(o).e("marks"))},[(S(!0),P(Ve,null,yt(f(G),(H,ae)=>(S(),ce(f(Zue),{key:ae,mark:H.mark,style:tt(f(M)(H.position)),onMousedown:it(de=>f(E)(H.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):ie("v-if",!0)],38),pe.showInput&&!pe.range?(S(),ce(f(fM),{key:0,ref:"input","model-value":f(ee),class:D(f(o).e("input")),step:pe.step,disabled:f(h),controls:pe.showInputControls,min:pe.min,max:pe.max,precision:Q.value,size:q.value,"onUpdate:modelValue":f(T),onChange:f(C)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):ie("v-if",!0)],10,ade)}}});const ide=pt(rde),lde=Me({prefixCls:{type:String}}),p5=j({name:"ElSpaceItem",props:lde,setup(e,{slots:t}){const n=Ee("space"),s=k(()=>`${e.prefixCls||n.b()}__item`);return()=>ot("div",{class:s.value},ue(t,"default"))}}),v5={small:8,default:12,large:16};function cde(e){const t=Ee("space"),n=k(()=>[t.b(),t.m(e.direction),e.class]),s=F(0),a=F(0),o=k(()=>{const i=e.wrap||e.fill?{flexWrap:"wrap"}:{},l={alignItems:e.alignment},c={rowGap:`${a.value}px`,columnGap:`${s.value}px`};return[i,l,c,e.style]}),r=k(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return Qa(()=>{const{size:i="small",wrap:l,direction:c,fill:u}=e;if(ke(i)){const[d=0,h=0]=i;s.value=d,a.value=h}else{let d;st(i)?d=i:d=v5[i||"small"]||v5.small,(l||u)&&c==="horizontal"?s.value=a.value=d:c==="horizontal"?(s.value=d,a.value=0):(a.value=d,s.value=0)}}),{classes:n,containerStyle:o,itemStyle:r}}const ude=Me({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:re([String,Object,Array]),default:""},style:{type:re([String,Array,Object]),default:""},alignment:{type:re(String),default:"center"},prefixCls:{type:String},spacer:{type:re([Object,String,Number,Array]),default:null,validator:e=>un(e)||st(e)||Xe(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Or,validator:e=>st(e)||ke(e)&&e.length===2&&e.every(st)}}),dde=j({name:"ElSpace",props:ude,setup(e,{slots:t}){const{classes:n,containerStyle:s,itemStyle:a}=cde(e);function o(r,i="",l=[]){const{prefixCls:c}=e;return r.forEach((u,d)=>{Ty(u)?ke(u.children)&&u.children.forEach((h,p)=>{Ty(h)&&ke(h.children)?o(h.children,`${i+p}-`,l):un(h)&&(h==null?void 0:h.type)===Kn?l.push(h):l.push(W(p5,{style:a.value,prefixCls:c,key:`nested-${i+p}`},{default:()=>[h]},Vo.PROPS|Vo.STYLE,["style","prefixCls"]))}):iJ(u)&&l.push(W(p5,{style:a.value,prefixCls:c,key:`LoopKey${i+d}`},{default:()=>[u]},Vo.PROPS|Vo.STYLE,["style","prefixCls"]))}),l}return()=>{var r;const{spacer:i,direction:l}=e,c=ue(t,"default",{key:0},()=>[]);if(((r=c.children)!=null?r:[]).length===0)return null;if(ke(c.children)){let u=o(c.children);if(i){const d=u.length-1;u=u.reduce((h,p,v)=>{const m=[...h,p];return v!==d&&m.push(W("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:v},[un(i)?i:We(i,Vo.TEXT)],Vo.STYLE)),m},[])}return W("div",{class:n.value,style:s.value},u,Vo.STYLE|Vo.CLASS)}return c.children}}}),fde=pt(dde),hde=Me({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:re([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:re([String,Object,Array])}});var pde=j({name:"ElStatistic",__name:"statistic",props:hde,setup(e,{expose:t}){const n=e,s=Ee("statistic"),a=k(()=>{const{value:o,formatter:r,precision:i,decimalSeparator:l,groupSeparator:c}=n;if(nt(r))return r(o);if(!st(o)||Number.isNaN(o))return o;let[u,d=""]=String(o).split(".");return d=d.padEnd(i,"0").slice(0,i>0?i:0),u=u.replace(/\B(?=(\d{3})+(?!\d))/g,c),[u,d].join(d?l:"")});return t({displayValue:a}),(o,r)=>(S(),P("div",{class:D(f(s).b())},[o.$slots.title||e.title?(S(),P("div",{key:0,class:D(f(s).e("head"))},[ue(o.$slots,"title",{},()=>[We(ge(e.title),1)])],2)):ie("v-if",!0),A("div",{class:D(f(s).e("content"))},[o.$slots.prefix||e.prefix?(S(),P("div",{key:0,class:D(f(s).e("prefix"))},[ue(o.$slots,"prefix",{},()=>[A("span",null,ge(e.prefix),1)])],2)):ie("v-if",!0),A("span",{class:D(f(s).e("number")),style:tt(e.valueStyle)},ge(a.value),7),o.$slots.suffix||e.suffix?(S(),P("div",{key:1,class:D(f(s).e("suffix"))},[ue(o.$slots,"suffix",{},()=>[A("span",null,ge(e.suffix),1)])],2)):ie("v-if",!0)],2)],2))}});const LM=pt(pde),vde=Me({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:re([Number,Object]),default:0},valueStyle:{type:re([String,Object,Array])}}),mde={finish:()=>!0,[Pt]:e=>st(e)},gde=[["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]],m5=e=>st(e)?new Date(e).getTime():e.valueOf(),g5=(e,t)=>{let n=e;const s=/\[([^\]]*)]/g;return gde.reduce((o,[r,i])=>{const l=new RegExp(`${r}+(?![^\\[\\]]*\\])`,"g");if(l.test(o)){const c=Math.floor(n/i);return n-=c*i,o.replace(l,u=>String(c).padStart(u.length,"0"))}return o},t).replace(s,"$1")};var bde=j({name:"ElCountdown",__name:"countdown",props:vde,emits:mde,setup(e,{expose:t,emit:n}){const s=e,a=n;let o;const r=F(0),i=k(()=>g5(r.value,s.format)),l=d=>g5(d,s.format),c=()=>{o&&(kl(o),o=void 0)},u=()=>{const d=m5(s.value),h=()=>{let p=d-Date.now();a(Pt,p),p<=0?(p=0,c(),a("finish")):o=wi(h),r.value=p};o=wi(h)};return St(()=>{r.value=m5(s.value)-Date.now(),be(()=>[s.value,s.format],()=>{c(),u()},{immediate:!0})}),qt(()=>{c()}),t({displayValue:i}),(d,h)=>(S(),ce(f(LM),{value:r.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:l},Na({_:2},[yt(d.$slots,(p,v)=>({name:v,fn:X(()=>[ue(d.$slots,v)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});const yde=pt(bde),wde=Me({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"}}),_de={[Pt]:(e,t)=>[e,t].every(st)},OM="ElSteps";var Cde=j({name:"ElSteps",__name:"steps",props:wde,emits:_de,setup(e,{emit:t}){const n=e,s=t,a=Ee("steps"),{children:o,addChild:r,removeChild:i,ChildrenSorter:l}=Ob(Ct(),"ElStep");return be(o,()=>{o.value.forEach((c,u)=>{c.setIndex(u)})}),Mt(OM,{props:n,steps:o,addStep:r,removeStep:i}),be(()=>n.active,(c,u)=>{s(Pt,c,u)}),(c,u)=>(S(),P("div",{class:D([f(a).b(),f(a).m(e.simple?"simple":e.direction)])},[ue(c.$slots,"default"),W(f(l))],2))}});const Sde=Me({title:{type:String,default:""},icon:{type:en},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}});var NM=j({name:"ElStep",__name:"item",props:Sde,setup(e){const t=e,n=Ee("step"),s=F(-1),a=F({}),o=F(""),r=je(OM),i=Ct();let l=0,c=0;St(()=>{be([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([R],[I])=>{c=I||0,l=R-c,E(R)},{immediate:!0})});const u=k(()=>t.status||o.value),d=k(()=>{const R=r.steps.value[s.value-1];return R?R.internalStatus.value:"wait"}),h=k(()=>r.props.alignCenter),p=k(()=>r.props.direction==="vertical"),v=k(()=>r.props.simple),m=k(()=>r.steps.value.length),g=k(()=>{var R;return((R=r.steps.value[m.value-1])==null?void 0:R.uid)===i.uid}),b=k(()=>v.value?"":r.props.space),C=k(()=>[n.b(),n.is(v.value?"simple":r.props.direction),n.is("flex",g.value&&!b.value&&!h.value),n.is("center",h.value&&!p.value&&!v.value)]),w=k(()=>{const R={flexBasis:st(b.value)?`${b.value}px`:b.value?b.value:`${100/(m.value-(h.value?0:1))}%`};return p.value||g.value&&(R.maxWidth=`${100/m.value}%`),R}),_=R=>{s.value=R},x=R=>{const I=R==="wait",$={transitionDelay:`${Math.abs(l)===1?0:l>0?(s.value+1-c)*150:-(s.value+1-r.props.active)*150}ms`},L=R===r.props.processStatus||I?0:100;$.borderWidth=L&&!v.value?"1px":0,$[r.props.direction==="vertical"?"height":"width"]=`${L}%`,a.value=$},E=R=>{R>s.value?o.value=r.props.finishStatus:R===s.value&&d.value!=="error"?o.value=r.props.processStatus:o.value="wait";const I=r.steps.value[s.value-1];I&&I.calcProgress(o.value)},T={uid:i.uid,getVnode:()=>i.vnode,currentStatus:u,internalStatus:o,setIndex:_,calcProgress:x};return r.addStep(T),qt(()=>{r.removeStep(T)}),(R,I)=>(S(),P("div",{style:tt(w.value),class:D(C.value)},[ie(" icon & line "),A("div",{class:D([f(n).e("head"),f(n).is(u.value)])},[v.value?ie("v-if",!0):(S(),P("div",{key:0,class:D(f(n).e("line"))},[A("i",{class:D(f(n).e("line-inner")),style:tt(a.value)},null,6)],2)),A("div",{class:D([f(n).e("icon"),f(n).is(e.icon||R.$slots.icon?"icon":"text")])},[ue(R.$slots,"icon",{},()=>[e.icon?(S(),ce(f(Ye),{key:0,class:D(f(n).e("icon-inner"))},{default:X(()=>[(S(),ce(bt(e.icon)))]),_:1},8,["class"])):u.value==="success"?(S(),ce(f(Ye),{key:1,class:D([f(n).e("icon-inner"),f(n).is("status")])},{default:X(()=>[W(f(_0))]),_:1},8,["class"])):u.value==="error"?(S(),ce(f(Ye),{key:2,class:D([f(n).e("icon-inner"),f(n).is("status")])},{default:X(()=>[W(f(eo))]),_:1},8,["class"])):v.value?ie("v-if",!0):(S(),P("div",{key:3,class:D(f(n).e("icon-inner"))},ge(s.value+1),3))])],2)],2),ie(" title & description "),A("div",{class:D(f(n).e("main"))},[A("div",{class:D([f(n).e("title"),f(n).is(u.value)])},[ue(R.$slots,"title",{},()=>[We(ge(e.title),1)])],2),v.value?(S(),P("div",{key:0,class:D(f(n).e("arrow"))},null,2)):(S(),P("div",{key:1,class:D([f(n).e("description"),f(n).is(u.value)])},[ue(R.$slots,"description",{},()=>[We(ge(e.description),1)])],2))],2)],6))}});const xde=pt(Cde,{Step:NM}),Ede=En(NM),$M=e=>["",...Or].includes(e),kde=Me({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:$M},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:en},activeActionIcon:{type:en},activeIcon:{type:en},inactiveIcon:{type:en},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:re(Function)},id:String,tabindex:{type:[String,Number]},...ya(["ariaLabel"])}),Ade={[ct]:e=>Qt(e)||Xe(e)||st(e),[Pt]:e=>Qt(e)||Xe(e)||st(e),[ts]:e=>Qt(e)||Xe(e)||st(e)},Tde=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],Mde=["aria-hidden"],Pde={key:1},Rde={key:1},Ide=["aria-hidden"],b5="ElSwitch";var Lde=j({name:b5,__name:"switch",props:kde,emits:Ade,setup(e,{expose:t,emit:n}){const s=e,a=n,{formItem:o}=Ms(),r=ns(),i=Ee("switch"),{inputId:l}=Mo(s,{formItemContext:o}),c=Pn(k(()=>{if(s.loading)return!0})),u=F(s.modelValue!==!1),d=fn(),h=k(()=>[i.b(),i.m(r.value),i.is("disabled",c.value),i.is("checked",b.value)]),p=k(()=>[i.e("label"),i.em("label","left"),i.is("active",!b.value)]),v=k(()=>[i.e("label"),i.em("label","right"),i.is("active",b.value)]),m=k(()=>({width:Mn(s.width)}));be(()=>s.modelValue,()=>{u.value=!0});const g=k(()=>u.value?s.modelValue:!1),b=k(()=>g.value===s.activeValue);[s.activeValue,s.inactiveValue].includes(g.value)||(a(ct,s.inactiveValue),a(Pt,s.inactiveValue),a(ts,s.inactiveValue)),be(b,x=>{var E;d.value.checked=x,s.validateEvent&&((E=o==null?void 0:o.validate)==null||E.call(o,"change").catch(T=>void 0))});const C=()=>{const x=b.value?s.inactiveValue:s.activeValue;a(ct,x),a(Pt,x),a(ts,x),ze(()=>{d.value.checked=b.value})},w=()=>{if(c.value)return;const{beforeChange:x}=s;if(!x){C();return}const E=x();[Ld(E),Qt(E)].includes(!0)||Jn(b5,"beforeChange must return type `Promise<boolean>` or `boolean`"),Ld(E)?E.then(R=>{R&&C()}).catch(R=>{}):E&&C()},_=()=>{var x,E;(E=(x=d.value)==null?void 0:x.focus)==null||E.call(x)};return St(()=>{d.value.checked=b.value}),t({focus:_,checked:b}),(x,E)=>(S(),P("div",{class:D(h.value),onClick:it(w,["prevent"])},[A("input",{id:f(l),ref_key:"input",ref:d,class:D(f(i).e("input")),type:"checkbox",role:"switch","aria-checked":b.value,"aria-disabled":f(c),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:f(c),tabindex:e.tabindex,onChange:C,onKeydown:Ln(w,["enter"])},null,42,Tde),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText||x.$slots.inactive)?(S(),P("span",{key:0,class:D(p.value)},[ue(x.$slots,"inactive",{},()=>[e.inactiveIcon?(S(),ce(f(Ye),{key:0},{default:X(()=>[(S(),ce(bt(e.inactiveIcon)))]),_:1})):ie("v-if",!0),!e.inactiveIcon&&e.inactiveText?(S(),P("span",{key:1,"aria-hidden":b.value},ge(e.inactiveText),9,Mde)):ie("v-if",!0)])],2)):ie("v-if",!0),A("span",{class:D(f(i).e("core")),style:tt(m.value)},[e.inlinePrompt?(S(),P("div",{key:0,class:D(f(i).e("inner"))},[b.value?(S(),P("div",{key:1,class:D(f(i).e("inner-wrapper"))},[ue(x.$slots,"active",{},()=>[e.activeIcon?(S(),ce(f(Ye),{key:0},{default:X(()=>[(S(),ce(bt(e.activeIcon)))]),_:1})):ie("v-if",!0),!e.activeIcon&&e.activeText?(S(),P("span",Rde,ge(e.activeText),1)):ie("v-if",!0)])],2)):(S(),P("div",{key:0,class:D(f(i).e("inner-wrapper"))},[ue(x.$slots,"inactive",{},()=>[e.inactiveIcon?(S(),ce(f(Ye),{key:0},{default:X(()=>[(S(),ce(bt(e.inactiveIcon)))]),_:1})):ie("v-if",!0),!e.inactiveIcon&&e.inactiveText?(S(),P("span",Pde,ge(e.inactiveText),1)):ie("v-if",!0)])],2))],2)):ie("v-if",!0),A("div",{class:D(f(i).e("action"))},[e.loading?(S(),ce(f(Ye),{key:0,class:D(f(i).is("loading"))},{default:X(()=>[W(f(Ao))]),_:1},8,["class"])):b.value?ue(x.$slots,"active-action",{key:1},()=>[e.activeActionIcon?(S(),ce(f(Ye),{key:0},{default:X(()=>[(S(),ce(bt(e.activeActionIcon)))]),_:1})):ie("v-if",!0)]):b.value?ie("v-if",!0):ue(x.$slots,"inactive-action",{key:2},()=>[e.inactiveActionIcon?(S(),ce(f(Ye),{key:0},{default:X(()=>[(S(),ce(bt(e.inactiveActionIcon)))]),_:1})):ie("v-if",!0)])],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText||x.$slots.active)?(S(),P("span",{key:1,class:D(v.value)},[ue(x.$slots,"active",{},()=>[e.activeIcon?(S(),ce(f(Ye),{key:0},{default:X(()=>[(S(),ce(bt(e.activeIcon)))]),_:1})):ie("v-if",!0),!e.activeIcon&&e.activeText?(S(),P("span",{key:1,"aria-hidden":!b.value},ge(e.activeText),9,Ide)):ie("v-if",!0)])],2)):ie("v-if",!0)],2))}});const Ode=pt(Lde),W4=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Nde=function(e,t,n,s,a){if(!t&&!s&&(!a||ke(a)&&!a.length))return e;Xe(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const o=s?null:function(i,l){return a?ak(Es(a),c=>Xe(c)?Xn(i,c):c(i,l,e)):(t!=="$key"&&ft(i)&&"$value"in i&&(i=i.$value),[ft(i)?t?Xn(i,t):null:i])},r=function(i,l){var c,u,d,h,p,v;if(s)return s(i.value,l.value);for(let m=0,g=(u=(c=i.key)==null?void 0:c.length)!=null?u:0;m<g;m++){if(((d=i.key)==null?void 0:d[m])<((h=l.key)==null?void 0:h[m]))return-1;if(((p=i.key)==null?void 0:p[m])>((v=l.key)==null?void 0:v[m]))return 1}return 0};return e.map((i,l)=>({value:i,index:l,key:o?o(i,l):null})).sort((i,l)=>{let c=r(i,l);return c||(c=i.index-l.index),c*+n}).map(i=>i.value)},DM=function(e,t){let n=null;return e.columns.forEach(s=>{s.id===t&&(n=s)}),n},$de=function(e,t){let n=null;for(let s=0;s<e.columns.length;s++){const a=e.columns[s];if(a.columnKey===t){n=a;break}}return n||Jn("ElTable",`No column matching with column-key: ${t}`),n},y5=function(e,t,n){const s=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return s?DM(e,s[0]):null},Gs=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(Xe(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let s=e;for(const a of n)s=s[a];return`${s}`}else if(nt(t))return t.call(null,e);return""},Df=function(e,t,n=!1,s="children"){const a=e||[],o={};return a.forEach((r,i)=>{if(o[Gs(r,t)]={row:r,index:i},n){const l=r[s];ke(l)&&Object.assign(o,Df(l,t,!0,s))}}),o};function Dde(e,t){const n={};let s;for(s in e)n[s]=e[s];for(s in t)if(Wt(t,s)){const a=t[s];Dt(a)||(n[s]=a)}return n}function Ow(e){return e===""||Dt(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function FM(e){return e===""||Dt(e)||(e=Ow(e),Number.isNaN(e)&&(e=80)),e}function Fde(e){return st(e)?e:Xe(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Bde(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...s)=>t(n(...s)))}function C1(e,t,n,s,a,o,r){let i=o??0,l=!1;const u=(()=>{if(!r)return e.indexOf(t);const m=Gs(t,r);return e.findIndex(g=>Gs(g,r)===m)})(),d=u!==-1,h=a==null?void 0:a.call(null,t,i),p=m=>{m==="add"?e.push(t):e.splice(u,1),l=!0},v=m=>{let g=0;const b=(s==null?void 0:s.children)&&m[s.children];return b&&ke(b)&&(g+=b.length,b.forEach(C=>{g+=v(C)})),g};return(!a||h)&&(Qt(n)?n&&!d?p("add"):!n&&d&&p("remove"):p(d?"remove":"add")),!(s!=null&&s.checkStrictly)&&(s!=null&&s.children)&&ke(t[s.children])&&t[s.children].forEach(m=>{const g=C1(e,m,n??!d,s,a,i+1,r);i+=v(m)+1,g&&(l=g)}),l}function Vde(e,t,n="children",s="hasChildren",a=!1){const o=i=>!(ke(i)&&i.length);function r(i,l,c){t(i,l,c),l.forEach(u=>{if(u[s]&&a){t(u,null,c+1);return}const d=u[n];o(d)||r(u,d,c+1)})}e.forEach(i=>{if(i[s]&&a){t(i,null,0);return}const l=i[n];o(l)||r(i,l,0)})}const zde=(e,t,n,s)=>{const a={strategy:"fixed",...e.popperOptions},o=nt(s==null?void 0:s.tooltipFormatter)?s.tooltipFormatter({row:n,column:s,cellValue:Nf(n,s.property).value}):void 0;return un(o)?{slotContent:o,content:null,...e,popperOptions:a}:{slotContent:null,content:o??t,...e,popperOptions:a}};let ca=null;function Hde(e,t,n,s,a,o){var r;const i=zde(e,t,n,s),l={...i,slotContent:void 0};if((ca==null?void 0:ca.trigger)===a){const v=(r=ca.vm)==null?void 0:r.component;ok(v==null?void 0:v.props,l),v&&i.slotContent&&(v.slots.content=()=>[i.slotContent]);return}ca==null||ca();const c=o==null?void 0:o.refs.tableWrapper,u=c==null?void 0:c.dataset.prefix,d=W(As,{virtualTriggering:!0,virtualRef:a,appendTo:c,placement:"top",transition:"none",offset:0,hideAfter:0,...l},i.slotContent?{content:()=>i.slotContent}:void 0);d.appContext={...o.appContext,...o};const h=document.createElement("div");zc(d,h),d.component.exposed.onOpen();const p=c==null?void 0:c.querySelector(`.${u}-scrollbar__wrap`);ca=()=>{var v,m;(m=(v=d.component)==null?void 0:v.exposed)!=null&&m.onClose&&d.component.exposed.onClose(),zc(null,h);const g=ca;p==null||p.removeEventListener("scroll",g),g.trigger=void 0,g.vm=void 0,ca=null},ca.trigger=a??void 0,ca.vm=d,p==null||p.addEventListener("scroll",ca)}function BM(e){return e.children?ak(e.children,BM):[e]}function w5(e,t){return e+t.colSpan}const VM=(e,t,n,s)=>{let a=0,o=e;const r=n.states.columns.value;if(s){const l=BM(s[e]);a=r.slice(0,r.indexOf(l[0])).reduce(w5,0),o=a+l.reduce(w5,0)-1}else a=e;let i;switch(t){case"left":o<n.states.fixedLeafColumnsLength.value&&(i="left");break;case"right":a>=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:o<n.states.fixedLeafColumnsLength.value?i="left":a>=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:a,after:o}:{}},Nw=(e,t,n,s,a,o=0)=>{const r=[],{direction:i,start:l,after:c}=VM(t,n,s,a);if(i){const u=i==="left";r.push(`${e}-fixed-column--${i}`),u&&c+o===s.states.fixedLeafColumnsLength.value-1?r.push("is-last-column"):!u&&l-o===s.states.columns.value.length-s.states.rightFixedLeafColumnsLength.value&&r.push("is-first-column")}return r};function _5(e,t){return e+(Sb(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const $w=(e,t,n,s)=>{const{direction:a,start:o=0,after:r=0}=VM(e,t,n,s);if(!a)return;const i={},l=a==="left",c=n.states.columns.value;return l?i.left=c.slice(0,o).reduce(_5,0):i.right=c.slice(r+1).reverse().reduce(_5,0),i},l0=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function zM(e){return e.some(t=>un(t)?!(t.type===Kn||t.type===Ve&&!zM(t.children)):!0)?e:null}function Wde(e){const t=Ct(),n=F(!1),s=F([]),a=(c,u)=>{var d;const h=t.store.states.rowExpandable.value;return(d=h==null?void 0:h(c,u))!=null?d:!0};return{updateExpandRows:()=>{const c=e.data.value||[],u=e.rowKey.value;if(n.value)s.value=t.store.states.rowExpandable.value?c.filter(a):c.slice();else if(u){const d=Df(s.value,u);s.value=c.filter((h,p)=>{const v=Gs(h,u);return!!d[v]&&a(h,p)})}else s.value=[]},toggleRowExpansion:(c,u)=>{const h=(e.data.value||[]).indexOf(c);if(h>-1&&!a(c,h))return;C1(s.value,c,u,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",c,s.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const u=e.data.value||[],d=e.rowKey.value,h=Df(u,d);s.value=c.reduce((p,v)=>{const m=h[v];return m&&a(m.row,m.index)&&p.push(m.row),p},[])},isRowExpanded:c=>{const u=e.rowKey.value;return u?!!Df(s.value,u)[Gs(c,u)]:s.value.includes(c)},states:{expandRows:s,defaultExpandAll:n}}}function jde(e){const t=Ct(),n=F(null),s=F(null),a=c=>{t.store.assertRowKey(),n.value=c,r(c)},o=()=>{n.value=null},r=c=>{var u;const{data:d,rowKey:h}=e,p=s.value;let v=null;h.value&&(v=(u=(f(d)||[]).find(m=>Gs(m,h.value)===c))!=null?u:null),s.value=v??null,t.emit("current-change",s.value,p)};return{setCurrentRowKey:a,restoreCurrentRowKey:o,setCurrentRowByKey:r,updateCurrentRow:c=>{const u=s.value;if(c&&c!==u){s.value=c,t.emit("current-change",s.value,u);return}!c&&u&&(s.value=null,t.emit("current-change",null,u))},updateCurrentRowData:()=>{const c=e.rowKey.value,u=e.data.value||[],d=s.value;if(d&&!u.includes(d))if(c){const h=Gs(d,c);r(h)}else s.value=null,t.emit("current-change",null,d);else n.value&&(r(n.value),o())},states:{_currentRowKey:n,currentRow:s}}}function Kde(e){const t=F([]),n=F({}),s=F(16),a=F(!1),o=F({}),r=F("hasChildren"),i=F("children"),l=F(!1),c=Ct(),u=k(()=>{if(!e.rowKey.value)return{};const _=e.data.value||[];return h(_)}),d=k(()=>{const _=e.rowKey.value,x=Object.keys(o.value),E={};return x.length&&x.forEach(T=>{if(o.value[T].length){const R={children:[]};o.value[T].forEach(I=>{const M=Gs(I,_);R.children.push(M),I[r.value]&&!E[M]&&(E[M]={children:[]})}),E[T]=R}}),E}),h=_=>{const x=e.rowKey.value,E={};return Vde(_,(T,R,I)=>{const M=Gs(T,x);ke(R)?E[M]={children:R.map($=>Gs($,x)),level:I}:a.value&&(E[M]={children:[],lazy:!0,level:I})},i.value,r.value,a.value),E},p=(_=!1,x)=>{var E,T;x||(x=(E=c.store)==null?void 0:E.states.defaultExpandAll.value);const R=u.value,I=d.value,M=Object.keys(R),$={};if(M.length){const L=f(n),B=[],q=(Y,O)=>{if(_)return t.value?x||t.value.includes(O):!!(x||Y!=null&&Y.expanded);{const N=x||t.value&&t.value.includes(O);return!!(Y!=null&&Y.expanded||N)}};M.forEach(Y=>{const O=L[Y],N={...R[Y]};if(N.expanded=q(O,Y),N.lazy){const{loaded:V=!1,loading:z=!1}=O||{};N.loaded=!!V,N.loading=!!z,B.push(Y)}$[Y]=N});const J=Object.keys(I);a.value&&J.length&&B.length&&J.forEach(Y=>{var O;const N=L[Y],V=I[Y].children;if(B.includes(Y)){if(((O=$[Y].children)==null?void 0:O.length)!==0)throw new Error("[ElTable]children must be an empty array.");$[Y].children=V}else{const{loaded:z=!1,loading:G=!1}=N||{};$[Y]={lazy:!0,loaded:!!z,loading:!!G,expanded:q(N,Y),children:V,level:void 0}}})}n.value=$,(T=c.store)==null||T.updateTableScrollY()};be(()=>t.value,()=>{p(!0)}),be(()=>u.value,()=>{p()}),be(()=>d.value,()=>{p()});const v=_=>{t.value=_,p()},m=_=>a.value&&_&&"loaded"in _&&!_.loaded,g=(_,x)=>{c.store.assertRowKey();const E=e.rowKey.value,T=Gs(_,E),R=T&&n.value[T];if(T&&R&&"expanded"in R){const I=R.expanded;x=Dt(x)?!R.expanded:x,n.value[T].expanded=x,I!==x&&c.emit("expand-change",_,x),x&&m(R)&&C(_,T,R),c.store.updateTableScrollY()}},b=_=>{c.store.assertRowKey();const x=e.rowKey.value,E=Gs(_,x),T=n.value[E];m(T)?C(_,E,T):g(_,void 0)},C=(_,x,E)=>{const{load:T}=c.props;T&&!n.value[x].loaded&&(n.value[x].loading=!0,T(_,E,R=>{if(!ke(R))throw new TypeError("[ElTable] data must be an array");n.value[x].loading=!1,n.value[x].loaded=!0,n.value[x].expanded=!0,R.length&&(o.value[x]=R),c.emit("expand-change",_,!0)}))};return{loadData:C,loadOrToggle:b,toggleTreeExpansion:g,updateTreeExpandKeys:v,updateTreeData:p,updateKeyChildren:(_,x)=>{const{lazy:E,rowKey:T}=c.props;if(E){if(!T)throw new Error("[Table] rowKey is required in updateKeyChild");o.value[_]&&(o.value[_]=x)}},normalize:h,states:{expandRowKeys:t,treeData:n,indent:s,lazy:a,lazyTreeNodeMap:o,lazyColumnIdentifier:r,childrenColumnName:i,checkStrictly:l}}}const Ude=(e,t)=>{const n=t.sortingColumn;return!n||Xe(n.sortable)?e:Nde(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},tg=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,tg(n.children)):t.push(n)}),t};function qde(){var e;const t=Ct(),{size:n}=gs((e=t.proxy)==null?void 0:e.$props),s=F(null),a=F([]),o=F([]),r=F(!1),i=F([]),l=F([]),c=F([]),u=F([]),d=F([]),h=F([]),p=F([]),v=F([]),m=[],g=F(0),b=F(0),C=F(0),w=F(!1),_=F([]),x=F(!1),E=F(!1),T=F(null),R=F(null),I=F({}),M=F(null),$=F(null),L=F(null),B=F(null),q=F(null),J=k(()=>s.value?Df(_.value,s.value):void 0);be(a,()=>{var at;t.state&&(V(!1),t.props.tableLayout==="auto"&&((at=t.refs.tableHeaderRef)==null||at.updateFixedColumnStyle()))},{deep:!0});const Y=()=>{if(!s.value)throw new Error("[ElTable] prop row-key is required")},O=at=>{var vt;(vt=at.children)==null||vt.forEach(Et=>{Et.fixed=at.fixed,O(Et)})},N=()=>{i.value.forEach(Ge=>{O(Ge)}),u.value=i.value.filter(Ge=>[!0,"left"].includes(Ge.fixed));const at=i.value.find(Ge=>Ge.type==="selection");let vt;at&&at.fixed!=="right"&&!u.value.includes(at)&&i.value.indexOf(at)===0&&u.value.length&&(u.value.unshift(at),vt=!0),d.value=i.value.filter(Ge=>Ge.fixed==="right");const Et=i.value.filter(Ge=>(vt?Ge.type!=="selection":!0)&&!Ge.fixed);l.value=Array.from(u.value).concat(Et).concat(d.value);const xe=tg(Et),Ue=tg(u.value),we=tg(d.value);g.value=xe.length,b.value=Ue.length,C.value=we.length,c.value=Array.from(Ue).concat(xe).concat(we),r.value=u.value.length>0||d.value.length>0},V=(at,vt=!1)=>{at&&N(),vt?t.state.doLayout():t.state.debouncedUpdateLayout()},z=at=>J.value?!!J.value[Gs(at,s.value)]:_.value.includes(at),G=()=>{w.value=!1;const at=_.value;_.value=[],at.length&&t.emit("selection-change",[])},Q=()=>{var at,vt;let Et;if(s.value){Et=[];const xe=(vt=(at=t==null?void 0:t.store)==null?void 0:at.states)==null?void 0:vt.childrenColumnName.value,Ue=Df(a.value,s.value,!0,xe);for(const we in J.value)Wt(J.value,we)&&!Ue[we]&&Et.push(J.value[we].row)}else Et=_.value.filter(xe=>!a.value.includes(xe));if(Et.length){const xe=_.value.filter(Ue=>!Et.includes(Ue));_.value=xe,t.emit("selection-change",xe.slice())}},K=()=>(_.value||[]).slice(),ee=(at,vt,Et=!0,xe=!1)=>{var Ue,we,Ge,wt;const Ut={children:(we=(Ue=t==null?void 0:t.store)==null?void 0:Ue.states)==null?void 0:we.childrenColumnName.value,checkStrictly:(wt=(Ge=t==null?void 0:t.store)==null?void 0:Ge.states)==null?void 0:wt.checkStrictly.value};if(C1(_.value,at,vt,Ut,xe?void 0:T.value,a.value.indexOf(at),s.value)){const bn=(_.value||[]).slice();Et&&t.emit("select",bn,at),t.emit("selection-change",bn)}},se=()=>{var at,vt;const Et=E.value?!w.value:!(w.value||_.value.length);w.value=Et;let xe=!1,Ue=0;const we=(vt=(at=t==null?void 0:t.store)==null?void 0:at.states)==null?void 0:vt.rowKey.value,{childrenColumnName:Ge}=t.store.states,wt={children:Ge.value,checkStrictly:!1};a.value.forEach((Ut,gn)=>{const bn=gn+Ue;C1(_.value,Ut,Et,wt,T.value,bn,we)&&(xe=!0),Ue+=te(Gs(Ut,we))}),xe&&t.emit("selection-change",_.value?_.value.slice():[]),t.emit("select-all",(_.value||[]).slice())},he=()=>{var at;if(((at=a.value)==null?void 0:at.length)===0){w.value=!1;return}const{childrenColumnName:vt}=t.store.states;let Et=0,xe=0;const Ue=Ge=>{var wt;for(const Ut of Ge){const gn=T.value&&T.value.call(null,Ut,Et);if(z(Ut))xe++;else if(!T.value||gn)return!1;if(Et++,(wt=Ut[vt.value])!=null&&wt.length&&!Ue(Ut[vt.value]))return!1}return!0},we=Ue(a.value||[]);w.value=xe===0?!1:we},te=at=>{var vt;if(!t||!t.store)return 0;const{treeData:Et}=t.store.states;let xe=0;const Ue=(vt=Et.value[at])==null?void 0:vt.children;return Ue&&(xe+=Ue.length,Ue.forEach(we=>{xe+=te(we)})),xe},pe=(at,vt)=>{const Et={};return Es(at).forEach(xe=>{I.value[xe.id]=vt,Et[xe.columnKey||xe.id]=vt}),Et},fe=(at,vt,Et)=>{$.value&&$.value!==at&&($.value.order=null),$.value=at,L.value=vt,B.value=Et},le=()=>{let at=f(o);Object.keys(I.value).forEach(vt=>{const Et=I.value[vt];if(!Et||Et.length===0)return;const xe=DM({columns:c.value},vt);xe&&xe.filterMethod&&(at=at.filter(Ue=>Et.some(we=>xe.filterMethod.call(null,we,Ue,xe))))}),M.value=at},Z=()=>{var at;a.value=Ude((at=M.value)!=null?at:[],{sortingColumn:$.value,sortProp:L.value,sortOrder:B.value})},H=(at=void 0)=>{at!=null&&at.filter||le(),Z()},ae=at=>{const{tableHeaderRef:vt}=t.refs;if(!vt)return;const Et=Object.assign({},vt.filterPanels),xe=Object.keys(Et);if(xe.length)if(Xe(at)&&(at=[at]),ke(at)){const Ue=at.map(we=>$de({columns:c.value},we));xe.forEach(we=>{const Ge=Ue.find(wt=>wt.id===we);Ge&&(Ge.filteredValue=[])}),t.store.commit("filterChange",{column:Ue,values:[],silent:!0,multi:!0})}else xe.forEach(Ue=>{const we=c.value.find(Ge=>Ge.id===Ue);we&&(we.filteredValue=[])}),I.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},de=()=>{$.value&&(fe(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ye,toggleRowExpansion:_e,updateExpandRows:Se,states:Ne,isRowExpanded:Fe}=Wde({data:a,rowKey:s}),{updateTreeExpandKeys:Oe,toggleTreeExpansion:Ce,updateTreeData:Ie,updateKeyChildren:Pe,loadOrToggle:He,states:Qe}=Kde({data:a,rowKey:s}),{updateCurrentRowData:rt,updateCurrentRow:De,setCurrentRowKey:Ke,states:et}=jde({data:a,rowKey:s});return{assertRowKey:Y,updateColumns:N,scheduleLayout:V,isSelected:z,clearSelection:G,cleanSelection:Q,getSelectionRows:K,toggleRowSelection:ee,_toggleAllSelection:se,toggleAllSelection:null,updateAllSelected:he,updateFilters:pe,updateCurrentRow:De,updateSort:fe,execFilter:le,execSort:Z,execQuery:H,clearFilter:ae,clearSort:de,toggleRowExpansion:_e,setExpandRowKeysAdapter:at=>{ye(at),Oe(at)},setCurrentRowKey:Ke,toggleRowExpansionAdapter:(at,vt)=>{c.value.some(({type:xe})=>xe==="expand")?_e(at,vt):Ce(at,vt)},isRowExpanded:Fe,updateExpandRows:Se,updateCurrentRowData:rt,loadOrToggle:He,updateTreeData:Ie,updateKeyChildren:Pe,states:{tableSize:n,rowKey:s,data:a,_data:o,isComplex:r,_columns:i,originColumns:l,columns:c,fixedColumns:u,rightFixedColumns:d,leafColumns:h,fixedLeafColumns:p,rightFixedLeafColumns:v,updateOrderFns:m,leafColumnsLength:g,fixedLeafColumnsLength:b,rightFixedLeafColumnsLength:C,isAllSelected:w,selection:_,reserveSelection:x,selectOnIndeterminate:E,selectable:T,rowExpandable:R,filters:I,filteredData:M,sortingColumn:$,sortProp:L,sortOrder:B,hoverRow:q,...Ne,...Qe,...et}}}function n3(e,t){return e.map(n=>{var s;return n.id===t.id?t:((s=n.children)!=null&&s.length&&(n.children=n3(n.children,t)),n)})}function s3(e){e.forEach(t=>{var n,s;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(s=t.children)!=null&&s.length&&s3(t.children)}),e.sort((t,n)=>t.no-n.no)}function Gde(){const e=Ct(),t=qde(),n=Ee("table"),{t:s}=Rt();return{ns:n,t:s,...t,mutations:{setData(i,l){const c=f(i._data)!==l;i.data.value=l,i._data.value=l,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),f(i.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(i,l,c,u){var d;const h=f(i._columns);let p=[];c?(c&&!c.children&&(c.children=[]),(d=c.children)==null||d.push(l),p=n3(h,c)):(h.push(l),p=h),s3(p),i._columns.value=p,i.updateOrderFns.push(u),l.type==="selection"&&(i.selectable.value=l.selectable,i.reserveSelection.value=l.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(i,l){var c;((c=l.getColumnIndex)==null?void 0:c.call(l))!==l.no&&(s3(i._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(i,l,c,u){var d;const h=f(i._columns)||[];if(c)(d=c.children)==null||d.splice(c.children.findIndex(v=>v.id===l.id),1),ze(()=>{var v;((v=c.children)==null?void 0:v.length)===0&&delete c.children}),i._columns.value=n3(h,c);else{const v=h.indexOf(l);v>-1&&(h.splice(v,1),i._columns.value=h)}const p=i.updateOrderFns.indexOf(u);p>-1&&i.updateOrderFns.splice(p,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(i,l){const{prop:c,order:u,init:d}=l;if(c){const h=f(i.columns).find(p=>p.property===c);h&&(h.order=u,e.store.updateSort(h,c,u),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(i,l){const{sortingColumn:c,sortProp:u,sortOrder:d}=i,h=f(c),p=f(u),v=f(d);Sb(v)&&(i.sortingColumn.value=null,i.sortProp.value=null);const m={filter:!0};e.store.execQuery(m),(!l||!(l.silent||l.init))&&e.emit("sort-change",{column:h,prop:p,order:v}),e.store.updateTableScrollY()},filterChange(i,l){const{column:c,values:u,silent:d}=l,h=e.store.updateFilters(c,u);e.store.execQuery(),d||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){var i,l;(l=(i=e.store).toggleAllSelection)==null||l.call(i)},rowSelectedChanged(i,l){e.store.toggleRowSelection(l),e.store.updateAllSelected()},setHoverRow(i,l){i.hoverRow.value=l},setCurrentRow(i,l){e.store.updateCurrentRow(l)}},commit:function(i,...l){const c=e.store.mutations;if(c[i])c[i].apply(e,[e.store.states,...l]);else throw new Error(`Action not found: ${i}`)},updateTableScrollY:function(){ze(()=>e.layout.updateScrollY.apply(e.layout))}}}const Dw={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",rowExpandable:"rowExpandable",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 Yde(e,t){if(!e)throw new Error("Table is required.");const n=Gde();return n.toggleAllSelection=yi(n._toggleAllSelection,10),Object.keys(Dw).forEach(s=>{HM(WM(t,s),s,n)}),Xde(n,t),n}function Xde(e,t){Object.keys(Dw).forEach(n=>{be(()=>WM(t,n),s=>{HM(s,n,e)})})}function HM(e,t,n){let s=e,a=Dw[t];ft(a)&&(s=s||a.default,a=a.key),n.states[a].value=s}function WM(e,t){if(t.includes(".")){const n=t.split(".");let s=e;return n.forEach(a=>{s=s[a]}),s}else return e[t]}var Jde=Object.defineProperty,Zde=(e,t,n)=>t in e?Jde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vs=(e,t,n)=>Zde(e,typeof t!="symbol"?t+"":t,n);class Qde{constructor(t){Vs(this,"observers"),Vs(this,"table"),Vs(this,"store"),Vs(this,"columns"),Vs(this,"fit"),Vs(this,"showHeader"),Vs(this,"height"),Vs(this,"scrollX"),Vs(this,"scrollY"),Vs(this,"bodyWidth"),Vs(this,"fixedWidth"),Vs(this,"rightFixedWidth"),Vs(this,"tableHeight"),Vs(this,"headerHeight"),Vs(this,"appendHeight"),Vs(this,"footerHeight"),Vs(this,"gutterWidth"),this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=F(null),this.scrollX=F(!1),this.scrollY=F(!1),this.bodyWidth=F(null),this.fixedWidth=F(null),this.rightFixedWidth=F(null),this.gutterWidth=0;for(const n in t)Wt(t,n)&&(vn(this[n])?this[n].value=t[n]:this[n]=t[n]);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(Sb(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let s=!0;const a=this.scrollY.value;return s=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=s,a!==s}return!1}setHeight(t,n="height"){if(!jt)return;const s=this.table.vnode.el;if(t=Fde(t),this.height.value=Number(t),!s&&(t||t===0)){ze(()=>this.setHeight(t,n));return}s&&st(t)?(s.style[n]=`${t}px`,this.updateElsHeight()):s&&Xe(t)&&(s.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(s=>{s.isColumnGroup?t.push.apply(t,s.columns):t.push(s)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){var t;if(!jt)return;const n=this.fit,s=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let a=0;const o=this.getFlattenColumns(),r=o.filter(c=>!st(c.width));if(o.forEach(c=>{st(c.width)&&c.realWidth&&(c.realWidth=null)}),r.length>0&&n){if(o.forEach(c=>{a+=Number(c.width||c.minWidth||80)}),a<=s){this.scrollX.value=!1;const c=s-a;if(r.length===1)r[0].realWidth=Number(r[0].minWidth||80)+c;else{const u=r.reduce((p,v)=>p+Number(v.minWidth||80),0),d=c/u;let h=0;r.forEach((p,v)=>{if(v===0)return;const m=Math.floor(Number(p.minWidth||80)*d);h+=m,p.realWidth=Number(p.minWidth||80)+m}),r[0].realWidth=Number(r[0].minWidth||80)+c-h}}else this.scrollX.value=!0,r.forEach(c=>{c.realWidth=Number(c.minWidth)});this.bodyWidth.value=Math.max(a,s),this.table.state.resizeState.value.width=this.bodyWidth.value}else o.forEach(c=>{!c.width&&!c.minWidth?c.realWidth=80:c.realWidth=Number(c.width||c.minWidth),a+=c.realWidth}),this.scrollX.value=a>s,this.bodyWidth.value=a;const i=this.store.states.fixedColumns.value;if(i.length>0){let c=0;i.forEach(u=>{c+=Number(u.realWidth||u.width)}),this.fixedWidth.value=c}const l=this.store.states.rightFixedColumns.value;if(l.length>0){let c=0;l.forEach(u=>{c+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=c}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(s=>{var a,o;switch(t){case"columns":(a=s.state)==null||a.onColumnsChange(this);break;case"scrollable":(o=s.state)==null||o.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}var efe=j({name:"ElTableFilterPanel",components:{ElCheckbox:Sr,ElCheckboxGroup:dw,ElScrollbar:Cr,ElTooltip:As,ElIcon:Ye,ArrowDown:Nr,ArrowUp:Xm},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Zt.appendTo},setup(e){const t=Ct(),{t:n}=Rt(),s=Ee("table-filter"),a=t==null?void 0:t.parent;e.column&&!a.filterPanels.value[e.column.id]&&(a.filterPanels.value[e.column.id]=t);const o=F(null),r=F(null),i=F(0),l=k(()=>e.column&&e.column.filters),c=k(()=>e.column&&e.column.filterClassName?`${s.b()} ${e.column.filterClassName}`:s.b()),u=k({get:()=>{var T;return(((T=e.column)==null?void 0:T.filteredValue)||[])[0]},set:T=>{d.value&&(Xa(T)?d.value.splice(0,1):d.value.splice(0,1,T))}}),d=k({get(){return e.column?e.column.filteredValue||[]:[]},set(T){var R;e.column&&((R=e.upDataColumn)==null||R.call(e,"filteredValue",T))}}),h=k(()=>e.column?e.column.filterMultiple:!0),p=T=>T.value===u.value,v=()=>{var T;(T=o.value)==null||T.onClose()},m=()=>{C(d.value),v()},g=()=>{d.value=[],C(d.value),v()},b=(T,R)=>{u.value=T,i.value=R,Xa(T)?C([]):C(d.value),v()},C=T=>{var R,I;(R=e.store)==null||R.commit("filterChange",{column:e.column,values:T}),(I=e.store)==null||I.updateAllSelected()},w=()=>{var T,R;(T=r.value)==null||T.focus(),!h.value&&x(),e.column&&((R=e.upDataColumn)==null||R.call(e,"filterOpened",!0))},_=()=>{var T;e.column&&((T=e.upDataColumn)==null||T.call(e,"filterOpened",!1))},x=()=>{if(Xa(u)){i.value=0;return}const T=(l.value||[]).findIndex(R=>R.value===u.value);i.value=T>=0?T+1:0};return{multiple:h,filterClassName:c,filteredValue:d,filterValue:u,filters:l,handleConfirm:m,handleReset:g,handleSelect:b,isPropAbsent:Xa,isActive:p,t:n,ns:s,tooltipRef:o,rootRef:r,checkedIndex:i,handleShowTooltip:w,handleHideTooltip:_,handleKeydown:T=>{var R,I;const M=an(T),$=(l.value?l.value.length:0)+1;let L=i.value,B=!0;switch(M){case Te.down:case Te.right:L=(L+1)%$;break;case Te.up:case Te.left:L=(L-1+$)%$;break;case Te.tab:v(),B=!1;break;case Te.enter:case Te.space:if(L===0)b(null,0);else{const q=(l.value||[])[L-1];q.value&&b(q.value,L)}break;default:B=!1;break}B&&T.preventDefault(),i.value=L,(I=(R=r.value)==null?void 0:R.querySelector(`.${s.e("list-item")}:nth-child(${L+1})`))==null||I.focus()}}}});const tfe=["disabled"],nfe=["tabindex","aria-checked"],sfe=["tabindex","aria-checked","onClick"],afe=["aria-label"];function ofe(e,t,n,s,a,o){const r=qe("el-checkbox"),i=qe("el-checkbox-group"),l=qe("el-scrollbar"),c=qe("arrow-up"),u=qe("arrow-down"),d=qe("el-icon"),h=qe("el-tooltip");return S(),ce(h,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:X(()=>[e.multiple?(S(),P("div",{key:0,ref:"rootRef",tabindex:"-1",class:D(e.ns.e("multiple"))},[A("div",{class:D(e.ns.e("content"))},[W(l,{"wrap-class":e.ns.e("wrap")},{default:X(()=>[W(i,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=p=>e.filteredValue=p),class:D(e.ns.e("checkbox-group"))},{default:X(()=>[(S(!0),P(Ve,null,yt(e.filters,p=>(S(),ce(r,{key:p.value,value:p.value},{default:X(()=>[We(ge(p.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),A("div",{class:D(e.ns.e("bottom"))},[A("button",{class:D(e.ns.is("disabled",e.filteredValue.length===0)),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...p)=>e.handleConfirm&&e.handleConfirm(...p))},ge(e.t("el.table.confirmFilter")),11,tfe),A("button",{type:"button",onClick:t[2]||(t[2]=(...p)=>e.handleReset&&e.handleReset(...p))},ge(e.t("el.table.resetFilter")),1)],2)],2)):(S(),P("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:D(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...p)=>e.handleKeydown&&e.handleKeydown(...p))},[A("li",{role:"radio",class:D([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:e.checkedIndex===0?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=p=>e.handleSelect(null,0))},ge(e.t("el.table.clearFilter")),11,nfe),(S(!0),P(Ve,null,yt(e.filters,(p,v)=>(S(),P("li",{key:p.value,role:"radio",class:D([e.ns.e("list-item"),e.ns.is("active",e.isActive(p))]),tabindex:e.checkedIndex===v+1?0:-1,"aria-checked":e.isActive(p),onClick:m=>e.handleSelect(p.value,v+1)},ge(p.text),11,sfe))),128))],34))]),default:X(()=>{var p;return[A("button",{type:"button",class:D(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:((p=e.column)==null?void 0:p.label)||""})},[W(d,null,{default:X(()=>[ue(e.$slots,"filter-icon",{},()=>{var v;return[(v=e.column)!=null&&v.filterOpened?(S(),ce(c,{key:0})):(S(),ce(u,{key:1}))]})]),_:3})],10,afe)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var rfe=is(efe,[["render",ofe]]);function Fw(e){const t=Ct();hb(()=>{n.value.addObserver(t)}),St(()=>{s(n.value),a(n.value)}),Pr(()=>{s(n.value),a(n.value)}),Gd(()=>{n.value.removeObserver(t)});const n=k(()=>{const o=e.layout;if(!o)throw new Error("Can not find table layout.");return o}),s=o=>{var r;const i=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col"))||[];if(!i.length)return;const l=o.getFlattenColumns(),c={};l.forEach(u=>{c[u.id]=u});for(let u=0,d=i.length;u<d;u++){const h=i[u],p=h.getAttribute("name"),v=c[p];v&&h.setAttribute("width",v.realWidth||v.width)}},a=o=>{var r,i;const l=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let u=0,d=l.length;u<d;u++)l[u].setAttribute("width",o.scrollY.value?o.gutterWidth:"0");const c=((i=e.vnode.el)==null?void 0:i.querySelectorAll("th.gutter"))||[];for(let u=0,d=c.length;u<d;u++){const h=c[u];h.style.width=o.scrollY.value?`${o.gutterWidth}px`:"0",h.style.display=o.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:s,onScrollableChange:a}}const $r=Symbol("ElTable");function ife(e,t){const n=Ct(),s=je($r),a=m=>{m.stopPropagation()},o=(m,g)=>{!g.filters&&g.sortable?v(m,g,!1):g.filterable&&!g.sortable&&a(m),s==null||s.emit("header-click",g,m)},r=(m,g)=>{s==null||s.emit("header-contextmenu",g,m)},i=F(null),l=F(!1),c=F(),u=(m,g)=>{var b,C;if(jt&&!(g.children&&g.children.length>0)&&i.value&&e.border&&i.value.id===g.id){l.value=!0;const w=s;t("set-drag-visible",!0);const _=w==null?void 0:w.vnode.el,x=_==null?void 0:_.getBoundingClientRect().left,E=(C=(b=n==null?void 0:n.vnode)==null?void 0:b.el)==null?void 0:C.querySelector(`th.${g.id}`),T=E.getBoundingClientRect(),R=T.left-x+30;Wo(E,"noclick"),c.value={startMouseLeft:m.clientX,startLeft:T.right-x,startColumnLeft:T.left-x,tableLeft:x};const I=w==null?void 0:w.refs.resizeProxy;I.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const M=L=>{const B=L.clientX-c.value.startMouseLeft,q=c.value.startLeft+B;I.style.left=`${Math.max(R,q)}px`},$=()=>{if(l.value){const{startColumnLeft:L,startLeft:B}=c.value,J=Number.parseInt(I.style.left,10)-L;g.width=g.realWidth=J,w==null||w.emit("header-dragend",g.width,B-L,g,m),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,i.value=null,c.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",$),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ba(E,"noclick")},0)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",$)}},d=(m,g)=>{var b;if(!e.border||g.children&&g.children.length>0)return;const C=m.target,w=Ya(C)?C.closest("th"):null;if(!w)return;const _=fi(w,"is-sortable");if(_){const M=l.value?"col-resize":"";w.style.cursor=M;const $=w.querySelector(".caret-wrapper");$&&($.style.cursor=M)}if(!g.resizable||l.value){i.value=null;return}const x=w.getBoundingClientRect(),E=((b=w.parentNode)==null?void 0:b.lastElementChild)===w,T=e.allowDragLastColumn||!E,R=x.width>12&&x.right-m.clientX<8&&T,I=R?"col-resize":"";document.body.style.cursor=I,i.value=R?g:null,_&&(w.style.cursor=I)},h=()=>{!jt||l.value||(document.body.style.cursor="")},p=({order:m,sortOrders:g})=>{if(m==="")return g[0];const b=g.indexOf(m||null);return g[b>g.length-2?0:b+1]},v=(m,g,b)=>{var C;m.stopPropagation();const w=g.order===b?null:b||p(g),_=(C=m.target)==null?void 0:C.closest("th");if(_&&fi(_,"noclick")){ba(_,"noclick");return}if(!g.sortable)return;const x=m.currentTarget;if(["ascending","descending"].some(M=>fi(x,M)&&!g.sortOrders.includes(M)))return;const E=e.store.states;let T=E.sortProp.value,R;const I=E.sortingColumn.value;(I!==g||I===g&&Sb(I.order))&&(I&&(I.order=null),E.sortingColumn.value=g,T=g.property),w?R=g.order=w:R=g.order=null,E.sortProp.value=T,E.sortOrder.value=R,s==null||s.store.commit("changeSortCondition")};return{handleHeaderClick:o,handleHeaderContextMenu:r,handleMouseDown:u,handleMouseMove:d,handleMouseOut:h,handleSortClick:v,handleFilterClick:a}}function lfe(e){const t=je($r),n=Ee("table");return{getHeaderRowStyle:i=>{const l=t==null?void 0:t.props.headerRowStyle;return nt(l)?l.call(null,{rowIndex:i}):l},getHeaderRowClass:i=>{const l=[],c=t==null?void 0:t.props.headerRowClassName;return Xe(c)?l.push(c):nt(c)&&l.push(c.call(null,{rowIndex:i})),l.join(" ")},getHeaderCellStyle:(i,l,c,u)=>{var d;let h=(d=t==null?void 0:t.props.headerCellStyle)!=null?d:{};nt(h)&&(h=h.call(null,{rowIndex:i,columnIndex:l,row:c,column:u}));const p=$w(l,u.fixed,e.store,c);return l0(p,"left"),l0(p,"right"),Object.assign({},h,p)},getHeaderCellClass:(i,l,c,u)=>{const d=Nw(n.b(),l,u.fixed,e.store,c),h=[u.id,u.order,u.headerAlign,u.className,u.labelClassName,...d];u.children||h.push("is-leaf"),u.sortable&&h.push("is-sortable");const p=t==null?void 0:t.props.headerCellClassName;return Xe(p)?h.push(p):nt(p)&&h.push(p.call(null,{rowIndex:i,columnIndex:l,row:c,column:u})),h.push(n.e("cell")),h.filter(v=>!!v).join(" ")}}}const jM=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,jM(n.children))):t.push(n)}),t},KM=e=>{let t=1;const n=(o,r)=>{if(r&&(o.level=r.level+1,t<o.level&&(t=o.level)),o.children){let i=0;o.children.forEach(l=>{n(l,o),i+=l.colSpan}),o.colSpan=i}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const s=[];for(let o=0;o<t;o++)s.push([]);return jM(e).forEach(o=>{o.children?(o.rowSpan=1,o.children.forEach(r=>r.isSubColumn=!0)):o.rowSpan=t-o.level+1,s[o.level-1].push(o)}),s};function cfe(e){const t=je($r),n=k(()=>KM(e.store.states.originColumns.value));return{isGroup:k(()=>{const o=n.value.length>1;return o&&t&&(t.state.isGroup.value=!0),o}),toggleAllSelection:o=>{o.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var ufe=j({name:"ElTableHeader",components:{ElCheckbox:Sr},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(e,{emit:t}){const n=Ct(),s=je($r),a=Ee("table"),o=F({}),{onColumnsChange:r,onScrollableChange:i}=Fw(s),l=(s==null?void 0:s.props.tableLayout)==="auto",c=Kt(new Map),u=F();let d;const h=()=>{d=setTimeout(()=>{c.size>0&&(c.forEach((L,B)=>{const q=u.value.querySelector(`.${B.replace(/\s/g,".")}`);if(q){const J=q.getBoundingClientRect().width;L.width=J||L.width}}),c.clear())})};be(c,h),qt(()=>{d&&(clearTimeout(d),d=void 0)}),St(async()=>{await ze(),await ze();const{prop:L,order:B}=e.defaultSort;s==null||s.store.commit("sort",{prop:L,order:B,init:!0}),h()});const{handleHeaderClick:p,handleHeaderContextMenu:v,handleMouseDown:m,handleMouseMove:g,handleMouseOut:b,handleSortClick:C,handleFilterClick:w}=ife(e,t),{getHeaderRowStyle:_,getHeaderRowClass:x,getHeaderCellStyle:E,getHeaderCellClass:T}=lfe(e),{isGroup:R,toggleAllSelection:I,columnRows:M}=cfe(e),{t:$}=Rt();return n.state={onColumnsChange:r,onScrollableChange:i},n.filterPanels=o,{ns:a,t:$,filterPanels:o,onColumnsChange:r,onScrollableChange:i,columnRows:M,getHeaderRowClass:x,getHeaderRowStyle:_,getHeaderCellClass:T,getHeaderCellStyle:E,handleHeaderClick:p,handleHeaderContextMenu:v,handleMouseDown:m,handleMouseMove:g,handleMouseOut:b,handleSortClick:C,handleFilterClick:w,isGroup:R,toggleAllSelection:I,saveIndexSelection:c,isTableLayoutAuto:l,theadRef:u,updateFixedColumnStyle:h}},render(){const{ns:e,t,isGroup:n,columnRows:s,getHeaderCellStyle:a,getHeaderCellClass:o,getHeaderRowClass:r,getHeaderRowStyle:i,handleHeaderClick:l,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleSortClick:h,handleMouseOut:p,store:v,$parent:m,saveIndexSelection:g,isTableLayoutAuto:b}=this;let C=1;return ot("thead",{ref:"theadRef",class:e.is("group",n)},s.map((w,_)=>ot("tr",{class:r(_),key:_,style:i(_)},w.map((x,E)=>{x.rowSpan>C&&(C=x.rowSpan);const T=o(_,E,w,x);return b&&x.fixed&&g.set(T,x),ot("th",{class:T,colspan:x.colSpan,key:`${x.id}-thead`,rowspan:x.rowSpan,scope:x.colSpan>1?"colgroup":"col",ariaSort:x.sortable?x.order:void 0,style:a(_,E,w,x),onClick:R=>{var I;(I=R.currentTarget)!=null&&I.classList.contains("noclick")||l(R,x)},onContextmenu:R=>c(R,x),onMousedown:R=>u(R,x),onMousemove:R=>d(R,x),onMouseout:p},[ot("div",{class:["cell",x.filteredValue&&x.filteredValue.length>0?"highlight":""]},[x.renderHeader?x.renderHeader({column:x,$index:E,store:v,_self:m}):x.label,x.sortable&&ot("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:x.label||""}),onClick:R=>h(R,x)},[ot("i",{onClick:R=>h(R,x,"ascending"),class:"sort-caret ascending"}),ot("i",{onClick:R=>h(R,x,"descending"),class:"sort-caret descending"})]),x.filterable&&ot(rfe,{store:v,placement:x.filterPlacement||"bottom-start",appendTo:m==null?void 0:m.appendFilterPanelTo,column:x,upDataColumn:(R,I)=>{x[R]=I}},{"filter-icon":()=>x.renderFilterIcon?x.renderFilterIcon({filterOpened:x.filterOpened}):null})])])}))))}});function j4(e,t,n=.03){return e-t>n}function dfe(e){const t=je($r),n=F(""),s=F(ot("div")),a=(v,m,g)=>{var b,C,w;const _=t,x=W4(v);let E=null;const T=(b=_==null?void 0:_.vnode.el)==null?void 0:b.dataset.prefix;x&&(E=y5({columns:(w=(C=e.store)==null?void 0:C.states.columns.value)!=null?w:[]},x,T),E&&(_==null||_.emit(`cell-${g}`,m,E,x,v))),_==null||_.emit(`row-${g}`,m,E,v)},o=(v,m)=>{a(v,m,"dblclick")},r=(v,m)=>{var g;(g=e.store)==null||g.commit("setCurrentRow",m),a(v,m,"click")},i=(v,m)=>{a(v,m,"contextmenu")},l=yi(v=>{var m;(m=e.store)==null||m.commit("setHoverRow",v)},30),c=yi(()=>{var v;(v=e.store)==null||v.commit("setHoverRow",null)},30),u=v=>{const m=window.getComputedStyle(v,null),g=Number.parseInt(m.paddingLeft,10)||0,b=Number.parseInt(m.paddingRight,10)||0,C=Number.parseInt(m.paddingTop,10)||0,w=Number.parseInt(m.paddingBottom,10)||0;return{left:g,right:b,top:C,bottom:w}},d=(v,m,g)=>{var b;let C=(b=m==null?void 0:m.target)==null?void 0:b.parentNode;for(;v>1&&(C=C==null?void 0:C.nextSibling,!(!C||C.nodeName!=="TR"));)g(C,"hover-row hover-fixed-row"),v--};return{handleDoubleClick:o,handleClick:r,handleContextMenu:i,handleMouseEnter:l,handleMouseLeave:c,handleCellMouseEnter:(v,m,g)=>{var b,C,w,_,x,E,T,R,I;if(!t)return;const M=t,$=W4(v),L=(b=M==null?void 0:M.vnode.el)==null?void 0:b.dataset.prefix;let B=null;if($){if(B=y5({columns:(w=(C=e.store)==null?void 0:C.states.columns.value)!=null?w:[]},$,L),!B)return;$.rowSpan>1&&d($.rowSpan,v,Wo);const he=M.hoverState={cell:$,column:B,row:m};M==null||M.emit("cell-mouse-enter",he.row,he.column,he.cell,v)}if(!g){((_=ca)==null?void 0:_.trigger)===$&&((x=ca)==null||x());return}const q=v.target.querySelector(".cell");if(!(fi(q,`${L}-tooltip`)&&q.childNodes.length&&((E=q.textContent)!=null&&E.trim())))return;const J=document.createRange();J.setStart(q,0),J.setEnd(q,q.childNodes.length);const{width:Y,height:O}=J.getBoundingClientRect(),{width:N,height:V}=q.getBoundingClientRect(),{top:z,left:G,right:Q,bottom:K}=u(q),ee=G+Q,se=z+K;j4(Y+ee,N)||j4(O+se,V)||j4(q.scrollWidth,N)?Hde(g,(T=($==null?void 0:$.innerText)||($==null?void 0:$.textContent))!=null?T:"",m,B,$,M):((R=ca)==null?void 0:R.trigger)===$&&((I=ca)==null||I())},handleCellMouseLeave:v=>{const m=W4(v);if(!m)return;m.rowSpan>1&&d(m.rowSpan,v,ba);const g=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",g==null?void 0:g.row,g==null?void 0:g.column,g==null?void 0:g.cell,v)},tooltipContent:n,tooltipTrigger:s}}function ffe(e){const t=je($r),n=Ee("table");return{getRowStyle:(c,u)=>{const d=t==null?void 0:t.props.rowStyle;return nt(d)?d.call(null,{row:c,rowIndex:u}):d||null},getRowClass:(c,u,d)=>{var h;const p=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===((h=e.store)==null?void 0:h.states.currentRow.value)&&p.push("current-row"),e.stripe&&d%2===1&&p.push(n.em("row","striped"));const v=t==null?void 0:t.props.rowClassName;return Xe(v)?p.push(v):nt(v)&&p.push(v.call(null,{row:c,rowIndex:u})),p},getCellStyle:(c,u,d,h)=>{const p=t==null?void 0:t.props.cellStyle;let v=p??{};nt(p)&&(v=p.call(null,{rowIndex:c,columnIndex:u,row:d,column:h}));const m=$w(u,e==null?void 0:e.fixed,e.store);return l0(m,"left"),l0(m,"right"),Object.assign({},v,m)},getCellClass:(c,u,d,h,p)=>{const v=Nw(n.b(),u,e==null?void 0:e.fixed,e.store,void 0,p),m=[h.id,h.align,h.className,...v],g=t==null?void 0:t.props.cellClassName;return Xe(g)?m.push(g):nt(g)&&m.push(g.call(null,{rowIndex:c,columnIndex:u,row:d,column:h})),m.push(n.e("cell")),m.filter(b=>!!b).join(" ")},getSpan:(c,u,d,h)=>{let p=1,v=1;const m=t==null?void 0:t.props.spanMethod;if(nt(m)){const g=m({row:c,column:u,rowIndex:d,columnIndex:h});ke(g)?(p=g[0],v=g[1]):ft(g)&&(p=g.rowspan,v=g.colspan)}return{rowspan:p,colspan:v}},getColspanRealWidth:(c,u,d)=>{if(u<1)return c[d].realWidth;const h=c.map(({realWidth:p,width:v})=>p||v).slice(d,d+u);return Number(h.reduce((p,v)=>Number(p)+Number(v),-1))}}}const hfe=["colspan","rowspan"];var pfe=j({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(S(),P("td",{colspan:e.colspan,rowspan:e.rowspan},[ue(t.$slots,"default")],8,hfe))}});function vfe(e){const t=je($r),n=Ee("table"),{handleDoubleClick:s,handleClick:a,handleContextMenu:o,handleMouseEnter:r,handleMouseLeave:i,handleCellMouseEnter:l,handleCellMouseLeave:c,tooltipContent:u,tooltipTrigger:d}=dfe(e),{getRowStyle:h,getRowClass:p,getCellStyle:v,getCellClass:m,getSpan:g,getColspanRealWidth:b}=ffe(e);let C=-1;const w=k(()=>{var R;return(R=e.store)==null?void 0:R.states.columns.value.findIndex(({type:I})=>I==="default")}),_=(R,I)=>{var M;const $=(M=t==null?void 0:t.props)==null?void 0:M.rowKey;return $?Gs(R,$):I},x=(R,I,M,$=!1)=>{const{tooltipEffect:L,tooltipOptions:B,store:q}=e,{indent:J,columns:Y}=q.states,O=[];let N=!0;return M&&(O.push(n.em("row",`level-${M.level}`)),N=!!M.display),I===0&&(C=-1),e.stripe&&N&&C++,O.push(...p(R,I,C)),ot("tr",{style:[N?null:{display:"none"},h(R,I)],class:O,key:_(R,I),onDblclick:z=>s(z,R),onClick:z=>a(z,R),onContextmenu:z=>o(z,R),onMouseenter:()=>r(I),onMouseleave:i},Y.value.map((z,G)=>{const{rowspan:Q,colspan:K}=g(R,z,I,G);if(!Q||!K)return null;const ee=Object.assign({},z);ee.realWidth=b(Y.value,K,G);const se={store:q,_self:e.context||t,column:ee,row:R,$index:I,cellIndex:G,expanded:$};G===w.value&&M&&(se.treeNode={indent:M.level&&M.level*J.value,level:M.level},Qt(M.expanded)&&(se.treeNode.expanded=M.expanded,"loading"in M&&(se.treeNode.loading=M.loading),"noLazyChildren"in M&&(se.treeNode.noLazyChildren=M.noLazyChildren)));const he=`${_(R,I)},${G}`,te=ee.columnKey||ee.rawColumnKey||"",pe=z.showOverflowTooltip&&ok({effect:L},B,z.showOverflowTooltip);return ot(pfe,{style:v(I,G,R,z),class:m(I,G,R,z,K-1),key:`${te}${he}`,rowspan:Q,colspan:K,onMouseenter:fe=>l(fe,R,pe),onMouseleave:c},{default:()=>E(G,z,se)})}))},E=(R,I,M)=>I.renderCell(M);return{wrappedRowRender:(R,I)=>{const M=e.store,{isRowExpanded:$,assertRowKey:L}=M,{treeData:B,lazyTreeNodeMap:q,childrenColumnName:J,rowKey:Y}=M.states,O=M.states.columns.value;if(O.some(({type:V})=>V==="expand")){const V=$(R),z=x(R,I,void 0,V),G=t==null?void 0:t.renderExpanded;if(!G)return console.error("[Element Error]renderExpanded is required."),z;const Q=[[z]];return(t.props.preserveExpandedContent||V)&&Q[0].push(ot("tr",{key:`expanded-row__${z.key}`,style:{display:V?"":"none"}},[ot("td",{colspan:O.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[G({row:R,$index:I,store:M,expanded:V})])])),Q}else if(Object.keys(B.value).length){L();const V=Gs(R,Y.value);let z=B.value[V],G=null;z&&(G={expanded:z.expanded,level:z.level,display:!0,noLazyChildren:void 0,loading:void 0},Qt(z.lazy)&&(G&&Qt(z.loaded)&&z.loaded&&(G.noLazyChildren=!(z.children&&z.children.length)),G.loading=z.loading));const Q=[x(R,I,G??void 0)];if(z){let K=0;const ee=(he,te)=>{he&&he.length&&te&&he.forEach(pe=>{const fe={display:te.display&&te.expanded,level:te.level+1,expanded:!1,noLazyChildren:!1,loading:!1},le=Gs(pe,Y.value);if(Xa(le))throw new Error("For nested data item, row-key is required.");if(z={...B.value[le]},z&&(fe.expanded=z.expanded,z.level=z.level||fe.level,z.display=!!(z.expanded&&fe.display),Qt(z.lazy)&&(Qt(z.loaded)&&z.loaded&&(fe.noLazyChildren=!(z.children&&z.children.length)),fe.loading=z.loading)),K++,Q.push(x(pe,I+K,fe)),z){const Z=q.value[le]||pe[J.value];ee(Z,z)}})};z.display=!0;const se=q.value[V]||R[J.value];ee(se,z)}return Q}else return x(R,I,void 0)},tooltipContent:u,tooltipTrigger:d}}const mfe={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 gfe=j({name:"ElTableBody",props:mfe,setup(e){var t;const n=Ct(),s=je($r),a=Ee("table"),{wrappedRowRender:o,tooltipContent:r,tooltipTrigger:i}=vfe(e),{onColumnsChange:l,onScrollableChange:c}=Fw(s),u=[];return be((t=e.store)==null?void 0:t.states.hoverRow,(d,h)=>{var p,v;const m=n==null?void 0:n.vnode.el,g=Array.from((m==null?void 0:m.children)||[]).filter(w=>w==null?void 0:w.classList.contains(`${a.e("row")}`));let b=d;const C=(p=g[b])==null?void 0:p.childNodes;if(C!=null&&C.length){let w=0;Array.from(C).reduce((x,E,T)=>{var R,I;return((R=C[T])==null?void 0:R.colSpan)>1&&(w=(I=C[T])==null?void 0:I.colSpan),E.nodeName!=="TD"&&w===0&&x.push(T),w>0&&w--,x},[]).forEach(x=>{var E;for(b=d;b>0;){const T=(E=g[b-1])==null?void 0:E.childNodes;if(T[x]&&T[x].nodeName==="TD"&&T[x].rowSpan>1){Wo(T[x],"hover-cell"),u.push(T[x]);break}b--}})}else u.forEach(w=>ba(w,"hover-cell")),u.length=0;!((v=e.store)!=null&&v.states.isComplex.value)||!jt||wi(()=>{const w=g[h],_=g[d];w&&!w.classList.contains("hover-fixed-row")&&ba(w,"hover-row"),_&&Wo(_,"hover-row")})}),Gd(()=>{var d;(d=ca)==null||d()}),{ns:a,onColumnsChange:l,onScrollableChange:c,wrappedRowRender:o,tooltipContent:r,tooltipTrigger:i}},render(){const{wrappedRowRender:e,store:t}=this,n=(t==null?void 0:t.states.data.value)||[];return ot("tbody",{tabIndex:-1},[n.reduce((s,a)=>s.concat(e(a,s.length)),[])])}});function bfe(){const e=je($r),t=e==null?void 0:e.store,n=k(()=>{var i;return(i=t==null?void 0:t.states.fixedLeafColumnsLength.value)!=null?i:0}),s=k(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0}),a=k(()=>{var i;return(i=t==null?void 0:t.states.columns.value.length)!=null?i:0}),o=k(()=>{var i;return(i=t==null?void 0:t.states.fixedColumns.value.length)!=null?i:0}),r=k(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0});return{leftFixedLeafCount:n,rightFixedLeafCount:s,columnsCount:a,leftFixedCount:o,rightFixedCount:r,columns:k(()=>{var i;return(i=t==null?void 0:t.states.columns.value)!=null?i:[]})}}function yfe(e){const{columns:t}=bfe(),n=Ee("table");return{getCellClasses:(o,r)=>{const i=o[r],l=[n.e("cell"),i.id,i.align,i.labelClassName,...Nw(n.b(),r,i.fixed,e.store)];return i.className&&l.push(i.className),i.children||l.push(n.is("leaf")),l},getCellStyles:(o,r)=>{const i=$w(r,o.fixed,e.store);return l0(i,"left"),l0(i,"right"),i},columns:t}}var wfe=j({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(e){const t=je($r),n=Ee("table"),{getCellClasses:s,getCellStyles:a,columns:o}=yfe(e),{onScrollableChange:r,onColumnsChange:i}=Fw(t);return{ns:n,onScrollableChange:r,onColumnsChange:i,getCellClasses:s,getCellStyles:a,columns:o}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:s,sumText:a}=this,o=this.store.states.data.value;let r=[];return s?r=s({columns:e,data:o}):e.forEach((i,l)=>{if(l===0){r[l]=a;return}const c=o.map(p=>Number(p[i.property])),u=[];let d=!0;c.forEach(p=>{if(!Number.isNaN(+p)){d=!1;const v=`${p}`.split(".")[1];u.push(v?v.length:0)}});const h=Math.max.apply(null,u);d?r[l]="":r[l]=c.reduce((p,v)=>{const m=Number(v);return Number.isNaN(+m)?p:Number.parseFloat((p+v).toFixed(Math.min(h,20)))},0)}),ot(ot("tfoot",[ot("tr",{},[...e.map((i,l)=>ot("td",{key:l,colspan:i.colSpan,rowspan:i.rowSpan,class:n(e,l),style:t(i,l)},[ot("div",{class:["cell",i.labelClassName]},[r[l]])]))])]))}});function _fe(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,h,p=!0)=>{e.toggleRowSelection(d,h,!1,p),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:d=>{e.clearFilter(d)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(d,h)=>{e.toggleRowExpansionAdapter(d,h)},clearSort:()=>{e.clearSort()},sort:(d,h)=>{e.commit("sort",{prop:d,order:h})},updateKeyChildren:(d,h)=>{e.updateKeyChildren(d,h)}}}function Cfe(e,t,n,s){const a=F(!1),o=F(null),r=F(!1),i=O=>{r.value=O},l=F({width:null,height:null,headerHeight:null}),c=F(!1),u={display:"inline-block",verticalAlign:"middle"},d=F(),h=F(0),p=F(0),v=F(0),m=F(0),g=F(0);be(()=>e.height,O=>{t.setHeight(O??null)},{immediate:!0}),be(()=>e.maxHeight,O=>{t.setMaxHeight(O??null)},{immediate:!0}),be(()=>[e.currentRowKey,n.states.rowKey],([O,N])=>{!f(N)||!f(O)||n.setCurrentRowKey(`${O}`)},{immediate:!0}),be(()=>e.data,O=>{s.store.commit("setData",O)},{immediate:!0,deep:!0}),Qa(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const b=()=>{s.store.commit("setHoverRow",null),s.hoverState&&(s.hoverState=null)},C=(O,N)=>{const{pixelX:V,pixelY:z}=N;Math.abs(V)>=Math.abs(z)&&(s.refs.bodyWrapper.scrollLeft+=N.pixelX/5)},w=k(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),_=k(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),x=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(I)};St(async()=>{await ze(),n.updateColumns(),M(),requestAnimationFrame(x);const O=s.vnode.el,N=s.refs.headerWrapper;e.flexible&&O&&O.parentElement&&(O.parentElement.style.minWidth="0"),l.value={width:d.value=O.offsetWidth,height:O.offsetHeight,headerHeight:e.showHeader&&N?N.offsetHeight:null},n.states.columns.value.forEach(V=>{V.filteredValue&&V.filteredValue.length&&s.store.commit("filterChange",{column:V,values:V.filteredValue,silent:!0})}),s.$ready=!0});const E=(O,N)=>{if(!O)return;const V=Array.from(O.classList).filter(z=>!z.startsWith("is-scrolling-"));V.push(t.scrollX.value?N:"is-scrolling-none"),O.className=V.join(" ")},T=O=>{const{tableWrapper:N}=s.refs;E(N,O)},R=O=>{const{tableWrapper:N}=s.refs;return!!(N&&N.classList.contains(O))},I=function(){if(!s.refs.scrollBarRef)return;if(!t.scrollX.value){const ee="is-scrolling-none";R(ee)||T(ee);return}const O=s.refs.scrollBarRef.wrapRef;if(!O)return;const{scrollLeft:N,offsetWidth:V,scrollWidth:z}=O,{headerWrapper:G,footerWrapper:Q}=s.refs;G&&(G.scrollLeft=N),Q&&(Q.scrollLeft=N);const K=z-V-1;N>=K?T("is-scrolling-right"):T(N===0?"is-scrolling-left":"is-scrolling-middle")},M=()=>{s.refs.scrollBarRef&&(s.refs.scrollBarRef.wrapRef&&Xt(s.refs.scrollBarRef.wrapRef,"scroll",I,{passive:!0}),e.fit?wn(s.vnode.el,$):Xt(window,"resize",$),wn(s.refs.tableInnerWrapper,()=>{var O,N;$(),(N=(O=s.refs)==null?void 0:O.scrollBarRef)==null||N.update()}))},$=()=>{var O,N,V,z;const G=s.vnode.el;if(!s.$ready||!G)return;let Q=!1;const{width:K,height:ee,headerHeight:se}=l.value,he=d.value=G.offsetWidth;K!==he&&(Q=!0);const te=G.offsetHeight;(e.height||w.value)&&ee!==te&&(Q=!0);const pe=e.tableLayout==="fixed"?s.refs.headerWrapper:(O=s.refs.tableHeaderRef)==null?void 0:O.$el;e.showHeader&&(pe==null?void 0:pe.offsetHeight)!==se&&(Q=!0),h.value=((N=s.refs.tableWrapper)==null?void 0:N.scrollHeight)||0,v.value=(pe==null?void 0:pe.scrollHeight)||0,m.value=((V=s.refs.footerWrapper)==null?void 0:V.offsetHeight)||0,g.value=((z=s.refs.appendWrapper)==null?void 0:z.offsetHeight)||0,p.value=h.value-v.value-m.value-g.value,Q&&(l.value={width:he,height:te,headerHeight:e.showHeader&&(pe==null?void 0:pe.offsetHeight)||0},x())},L=ns(),B=k(()=>{const{bodyWidth:O,scrollY:N,gutterWidth:V}=t;return O.value?`${O.value-(N.value?V:0)}px`:""}),q=k(()=>e.maxHeight?"fixed":e.tableLayout),J=k(()=>{if(e.data&&e.data.length)return;let O="100%";e.height&&p.value&&(O=`${p.value}px`);const N=d.value;return{width:N?`${N}px`:"",height:O}}),Y=k(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+m.value}px)`}:{maxHeight:`${+e.maxHeight-v.value-m.value}px`}:{});return{isHidden:a,renderExpanded:o,setDragVisible:i,isGroup:c,handleMouseLeave:b,handleHeaderFooterMousewheel:C,tableSize:L,emptyBlockStyle:J,resizeProxyVisible:r,bodyWidth:B,resizeState:l,doLayout:x,tableBodyStyles:_,tableLayout:q,scrollbarViewStyle:u,scrollbarStyle:Y}}function Sfe(e){let t;const n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},r=e.store.states.updateOrderFns;t=new MutationObserver(()=>{r.forEach(i=>i())}),t.observe(a,o)};St(()=>{n()}),Gd(()=>{t==null||t.disconnect()})}var xfe={data:{type:Array,default:()=>[]},size:rs,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,rowExpandable:{type:Function},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 UM(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:a})=>Dt(a))&&(n=[]);const s=a=>{const o={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?o.style={width:`${a.width}px`}:o.name=a.id,o};return ot("colgroup",{},n.map(a=>ot("col",s(a))))}UM.props=["columns","tableLayout"];const Efe=()=>{const e=F(),t=(o,r)=>{const i=e.value;i&&i.scrollTo(o,r)},n=(o,r)=>{const i=e.value;i&&st(r)&&["Top","Left"].includes(o)&&i[`setScroll${o}`](r)};return{scrollBarRef:e,scrollTo:t,setScrollTop:o=>n("Top",o),setScrollLeft:o=>n("Left",o)}};var C5=!1,fu,a3,o3,ng,sg,qM,ag,r3,i3,l3,GM,c3,u3,YM,XM;function za(){if(!C5){C5=!0;var e=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(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(c3=/\b(iPhone|iP[ao]d)/.exec(e),u3=/\b(iP[ao]d)/.exec(e),l3=/Android/i.exec(e),YM=/FBAN\/\w+;/i.exec(e),XM=/Mobile/i.exec(e),GM=!!/Win64/.exec(e),t){fu=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,fu&&document&&document.documentMode&&(fu=document.documentMode);var s=/(?:Trident\/(\d+.\d+))/.exec(e);qM=s?parseFloat(s[1])+4:fu,a3=t[2]?parseFloat(t[2]):NaN,o3=t[3]?parseFloat(t[3]):NaN,ng=t[4]?parseFloat(t[4]):NaN,ng?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),sg=t&&t[1]?parseFloat(t[1]):NaN):sg=NaN}else fu=a3=o3=sg=ng=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);ag=a?parseFloat(a[1].replace("_",".")):!0}else ag=!1;r3=!!n[2],i3=!!n[3]}else ag=r3=i3=!1}}var d3={ie:function(){return za()||fu},ieCompatibilityMode:function(){return za()||qM>fu},ie64:function(){return d3.ie()&&GM},firefox:function(){return za()||a3},opera:function(){return za()||o3},webkit:function(){return za()||ng},safari:function(){return d3.webkit()},chrome:function(){return za()||sg},windows:function(){return za()||r3},osx:function(){return za()||ag},linux:function(){return za()||i3},iphone:function(){return za()||c3},mobile:function(){return za()||c3||u3||l3||XM},nativeApp:function(){return za()||YM},android:function(){return za()||l3},ipad:function(){return za()||u3}},kfe=d3,Afe=!!(typeof window<"u"&&window.document&&window.document.createElement),Tfe={canUseDOM:Afe},JM=Tfe,ZM;JM.canUseDOM&&(ZM=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Mfe(e,t){if(!JM.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,s=n in document;if(!s){var a=document.createElement("div");a.setAttribute(n,"return;"),s=typeof a[n]=="function"}return!s&&ZM&&e==="wheel"&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}var Pfe=Mfe,S5=10,x5=40,E5=800;function QM(e){var t=0,n=0,s=0,a=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),s=t*S5,a=n*S5,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(s=e.deltaX),(s||a)&&e.deltaMode&&(e.deltaMode==1?(s*=x5,a*=x5):(s*=E5,a*=E5)),s&&!t&&(t=s<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:s,pixelY:a}}QM.getEventType=function(){return kfe.firefox()?"DOMMouseScroll":Pfe("wheel")?"wheel":"mousewheel"};var Rfe=QM;/**
* 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 og="_Mousewheel",k5=function(e,t){if(e&&e.addEventListener){e7(e);const n=function(s){const a=Rfe(s);t&&Reflect.apply(t,this,[s,a])};e[og]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},e7=e=>{var t;(t=e[og])!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[og].wheelHandler),e[og]=null)},Ife={beforeMount(e,t){k5(e,t.value)},unmounted(e){e7(e)},updated(e,t){t.value!==t.oldValue&&k5(e,t.value)}};let Lfe=1;var Ofe=j({name:"ElTable",directives:{Mousewheel:Ife},components:{TableHeader:ufe,TableBody:gfe,TableFooter:wfe,ElScrollbar:Cr,hColgroup:UM},props:xfe,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(e){const{t}=Rt(),n=Ee("table"),s=Ct();Mt($r,s);const a=Yde(s,e);s.store=a;const o=new Qde({store:s.store,table:s,fit:e.fit,showHeader:e.showHeader});s.layout=o;const r=k(()=>(a.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:l,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:p,clearSort:v,sort:m,updateKeyChildren:g}=_fe(a),{isHidden:b,renderExpanded:C,setDragVisible:w,isGroup:_,handleMouseLeave:x,handleHeaderFooterMousewheel:E,tableSize:T,emptyBlockStyle:R,resizeProxyVisible:I,bodyWidth:M,resizeState:$,doLayout:L,tableBodyStyles:B,tableLayout:q,scrollbarViewStyle:J,scrollbarStyle:Y}=Cfe(e,o,a,s),{scrollBarRef:O,scrollTo:N,setScrollLeft:V,setScrollTop:z}=Efe(),G=yi(L,50),Q=`${n.namespace.value}-table_${Lfe++}`;s.tableId=Q,s.state={isGroup:_,resizeState:$,doLayout:L,debouncedUpdateLayout:G};const K=k(()=>{var he;return(he=e.sumText)!=null?he:t("el.table.sumText")}),ee=k(()=>{var he;return(he=e.emptyText)!=null?he:t("el.table.emptyText")}),se=k(()=>KM(a.states.originColumns.value)[0]);return Sfe(s),qt(()=>{G.cancel()}),{ns:n,layout:o,store:a,columns:se,handleHeaderFooterMousewheel:E,handleMouseLeave:x,tableId:Q,tableSize:T,isHidden:b,isEmpty:r,renderExpanded:C,resizeProxyVisible:I,resizeState:$,isGroup:_,bodyWidth:M,tableBodyStyles:B,emptyBlockStyle:R,debouncedUpdateLayout:G,setCurrentRow:i,getSelectionRows:l,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:p,clearSort:v,doLayout:L,sort:m,updateKeyChildren:g,t,setDragVisible:w,context:s,computedSumText:K,computedEmptyText:ee,tableLayout:q,scrollbarViewStyle:J,scrollbarStyle:Y,scrollBarRef:O,scrollTo:N,setScrollLeft:V,setScrollTop:z,allowDragLastColumn:e.allowDragLastColumn}}});const Nfe=["data-prefix"],$fe={ref:"hiddenColumns",class:"hidden-columns"};function Dfe(e,t,n,s,a,o){const r=qe("hColgroup"),i=qe("table-header"),l=qe("table-body"),c=qe("table-footer"),u=qe("el-scrollbar"),d=l8("mousewheel");return S(),P("div",{ref:"tableWrapper",class:D([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:tt(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[A("div",{ref:"tableInnerWrapper",class:D(e.ns.e("inner-wrapper"))},[A("div",$fe,[ue(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?gt((S(),P("div",{key:0,ref:"headerWrapper",class:D(e.ns.e("header-wrapper"))},[A("table",{ref:"tableHeader",class:D(e.ns.e("header")),style:tt(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[W(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),W(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):ie("v-if",!0),A("div",{ref:"bodyWrapper",class:D(e.ns.e("body-wrapper"))},[W(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=h=>e.$emit("scroll",h))},{default:X(()=>[A("table",{ref:"tableBody",class:D(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:tt({width:e.bodyWidth,tableLayout:e.tableLayout})},[W(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(S(),ce(i,{key:0,ref:"tableHeaderRef",class:D(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):ie("v-if",!0),W(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(S(),ce(c,{key:1,class:D(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):ie("v-if",!0)],6),e.isEmpty?(S(),P("div",{key:0,ref:"emptyBlock",style:tt(e.emptyBlockStyle),class:D(e.ns.e("empty-block"))},[A("span",{class:D(e.ns.e("empty-text"))},[ue(e.$slots,"empty",{},()=>[We(ge(e.computedEmptyText),1)])],2)],6)):ie("v-if",!0),e.$slots.append?(S(),P("div",{key:1,ref:"appendWrapper",class:D(e.ns.e("append-wrapper"))},[ue(e.$slots,"append")],2)):ie("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&e.tableLayout==="fixed"?gt((S(),P("div",{key:1,ref:"footerWrapper",class:D(e.ns.e("footer-wrapper"))},[A("table",{class:D(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:tt(e.tableBodyStyles)},[W(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),W(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[Bt,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):ie("v-if",!0),e.border||e.isGroup?(S(),P("div",{key:2,class:D(e.ns.e("border-left-patch"))},null,2)):ie("v-if",!0)],2),gt(A("div",{ref:"resizeProxy",class:D(e.ns.e("column-resize-proxy"))},null,2),[[Bt,e.resizeProxyVisible]])],46,Nfe)}var Ffe=is(Ofe,[["render",Dfe]]);const Bfe={selection:"table-column--selection",expand:"table__expand-column"},Vfe={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:""}},zfe=e=>Bfe[e]||"",Hfe={selection:{renderHeader({store:e}){var t;function n(){return e.states.data.value&&e.states.data.value.length===0}return ot(Sr,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":(t=e.toggleAllSelection)!=null?t:void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:s}){return ot(Sr,{disabled:t.selectable?!t.selectable.call(null,e,s):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const s=e.index;return st(s)?n=t+s:nt(s)&&(n=s(t)),ot("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:s,$index:a}){var o,r,i;const{ns:l}=n,c=[l.e("expand-icon")];!e.renderExpand&&s&&c.push(l.em("expand-icon","expanded"));const u=function(h){h.stopPropagation(),n.toggleRowExpansion(t)},d=(i=(r=(o=n.states.rowExpandable).value)==null?void 0:r.call(o,t,a))!=null?i:!0;return d||c.push(l.is("disabled")),ot("button",{type:"button",disabled:!d,"aria-label":n.t(s?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":s,class:c,onClick:u},{default:()=>e.renderExpand?[e.renderExpand({expanded:s,expandable:d})]:[ot(Ye,null,{default:()=>[ot(Ds)]})]})},sortable:!1,resizable:!1}};function Wfe({row:e,column:t,$index:n}){var s;const a=t.property,o=a&&Nf(e,a).value;return t&&t.formatter?t.formatter(e,t,o,n):((s=o==null?void 0:o.toString)==null?void 0:s.call(o))||""}function jfe({row:e,treeNode:t,store:n},s=!1){const{ns:a}=n;if(!t)return s?[ot("span",{class:a.e("placeholder")})]:null;const o=[],r=function(i){i.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&o.push(ot("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),Qt(t.expanded)&&!t.noLazyChildren){const i=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let l=Ds;t.loading&&(l=Ao),o.push(ot("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:i,onClick:r},{default:()=>[ot(Ye,{class:a.is("loading",t.loading)},{default:()=>[ot(l)]})]}))}else o.push(ot("span",{class:a.e("placeholder")}));return o}function A5(e,t){return e.reduce((n,s)=>(n[s]=s,n),t)}function Kfe(e,t){const n=Ct();return{registerComplexWatchers:()=>{const o=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},i=A5(o,r);Object.keys(i).forEach(l=>{const c=r[l];Wt(t,c)&&be(()=>t[c],u=>{let d=u;c==="width"&&l==="realWidth"&&(d=Ow(u)),c==="minWidth"&&l==="realMinWidth"&&(d=FM(u)),n.columnConfig.value[c]=d,n.columnConfig.value[l]=d;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const o=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],r=["showOverflowTooltip"],i={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=A5(o,i);Object.keys(l).forEach(c=>{const u=i[c];Wt(t,u)&&be(()=>t[u],d=>{n.columnConfig.value[c]=d,(c==="filters"||c==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),r.forEach(c=>{Wt(e.value.props,c)&&be(()=>e.value.props[c],u=>{n.columnConfig.value.type!=="selection"&&Dt(t[c])&&(n.columnConfig.value[c]=u)})})}}}function Ufe(e,t,n){const s=Ct(),a=F(""),o=F(!1),r=F(),i=F(),l=Ee("table");Qa(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),Qa(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:r.value,i.value});const c=k(()=>{let _=s.vnode.vParent||s.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),u=k(()=>{const{store:_}=s.parent;if(!_)return!1;const{treeData:x}=_.states,E=x.value;return E&&Object.keys(E).length>0}),d=F(Ow(e.width)),h=F(FM(e.minWidth)),p=_=>(d.value&&(_.width=d.value),h.value&&(_.minWidth=h.value),!d.value&&h.value&&(_.width=void 0),_.minWidth||(_.minWidth=80),_.realWidth=Number(Dt(_.width)?_.minWidth:_.width),_),v=_=>{const x=_.type,E=Hfe[x]||{};Object.keys(E).forEach(R=>{const I=E[R];R!=="className"&&!Dt(I)&&(_[R]=I)});const T=zfe(x);if(T){const R=`${f(l.namespace)}-${T}`;_.className=_.className?`${_.className} ${R}`:R}return _},m=_=>{ke(_)?_.forEach(E=>x(E)):x(_);function x(E){var T;((T=E==null?void 0:E.type)==null?void 0:T.name)==="ElTableColumn"&&(E.vParent=s)}};return{columnId:a,realAlign:r,isSubColumn:o,realHeaderAlign:i,columnOrTableParent:c,setColumnWidth:p,setColumnForcedProps:v,setColumnRenders:_=>{e.renderHeader||_.type!=="selection"&&(_.renderHeader=E=>{if(s.columnConfig.value.label,t.header){const T=t.header(E);if(zM(T))return ot(Ve,T)}return We(_.label)}),t["filter-icon"]&&(_.renderFilterIcon=E=>ue(t,"filter-icon",E)),t.expand&&(_.renderExpand=E=>ue(t,"expand",E));let x=_.renderCell;return _.type==="expand"?(_.renderCell=E=>ot("div",{class:"cell"},[x(E)]),n.value.renderExpanded=E=>t.default?t.default(E):t.default):(x=x||Wfe,_.renderCell=E=>{let T=null;if(t.default){const B=t.default(E);T=B.some(q=>q.type!==Kn)?B:x(E)}else T=x(E);const{columns:R}=n.value.store.states,I=R.value.findIndex(B=>B.type==="default"),M=u.value&&E.cellIndex===I,$=jfe(E,M),L={class:"cell",style:{}};return _.showOverflowTooltip&&(L.class=`${L.class} ${f(l.namespace)}-tooltip`,L.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),m(T),ot("div",L,[$,T])}),_},getPropsData:(..._)=>_.reduce((x,E)=>(ke(E)&&E.forEach(T=>{x[T]=e[T]}),x),{}),getColumnElIndex:(_,x)=>Array.prototype.indexOf.call(_,x),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",s.columnConfig.value)}}}var qfe={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:e=>e.every(t=>["ascending","descending",null].includes(t))}};let Gfe=1;var t7=j({name:"ElTableColumn",components:{ElCheckbox:Sr},props:qfe,setup(e,{slots:t}){const n=Ct(),s=F({}),a=k(()=>{let w=n.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:o,registerComplexWatchers:r}=Kfe(a,e),{columnId:i,isSubColumn:l,realHeaderAlign:c,columnOrTableParent:u,setColumnWidth:d,setColumnForcedProps:h,setColumnRenders:p,getPropsData:v,getColumnElIndex:m,realAlign:g,updateColumnOrder:b}=Ufe(e,t,a),C=u.value;i.value=`${"tableId"in C&&C.tableId||"columnId"in C&&C.columnId}_column_${Gfe++}`,hb(()=>{l.value=a.value!==C;const w=e.type||"default",_=e.sortable===""?!0:e.sortable,x=w==="selection"?!1:Dt(e.showOverflowTooltip)?C.props.showOverflowTooltip:e.showOverflowTooltip,E=Dt(e.tooltipFormatter)?C.props.tooltipFormatter:e.tooltipFormatter,T={...Vfe[w],id:i.value,type:w,property:e.prop||e.property,align:g,headerAlign:c,showOverflowTooltip:x,tooltipFormatter:E,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_,index:e.index,rawColumnKey:n.vnode.key};let L=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);L=Dde(T,L),L=Bde(p,d,h)(L),s.value=L,o(),r()}),St(()=>{var w,_;const x=u.value,E=l.value?(w=x.vnode.el)==null?void 0:w.children:(_=x.refs.hiddenColumns)==null?void 0:_.children,T=()=>m(E||[],n.vnode.el);s.value.getColumnIndex=T,T()>-1&&a.value.store.commit("insertColumn",s.value,l.value?"columnConfig"in x&&x.columnConfig.value:null,b)}),qt(()=>{const w=s.value.getColumnIndex;(w?w():-1)>-1&&a.value.store.commit("removeColumn",s.value,l.value?"columnConfig"in C&&C.columnConfig.value:null,b)}),n.columnId=i.value,n.columnConfig=s},render(){var e,t,n;try{const s=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if(ke(s))for(const r of s)((n=r.type)==null?void 0:n.name)==="ElTableColumn"||r.shapeFlag&2?a.push(r):r.type===Ve&&ke(r.children)&&r.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!Xe(i==null?void 0:i.children)&&a.push(i)});return ot("div",a)}catch{return ot("div",[])}}});const Yfe=pt(Ffe,{TableColumn:t7}),Xfe=En(t7);var wu=(e=>(e.ASC="asc",e.DESC="desc",e))(wu||{}),ev=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(ev||{}),n7=(e=>(e.LEFT="left",e.RIGHT="right",e))(n7||{});const f3={asc:"desc",desc:"asc"},tv=Symbol("placeholder"),Jfe=(e,t,n)=>{var s,a,o;const r={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:(s=e.flexGrow)!=null?s:0,flexShrink:(a=e.flexShrink)!=null?a:1}},i={...(o=e.style)!=null?o:{},...r,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function Zfe(e,t,n){const s=k(()=>f(t).map((g,b)=>{var C,w;return{...g,key:(w=(C=g.key)!=null?C:g.dataKey)!=null?w:b}})),a=k(()=>f(s).filter(g=>!g.hidden)),o=k(()=>f(a).filter(g=>g.fixed==="left"||g.fixed===!0)),r=k(()=>f(a).filter(g=>g.fixed==="right")),i=k(()=>f(a).filter(g=>!g.fixed)),l=k(()=>{const g=[];return f(o).forEach(b=>{g.push({...b,placeholderSign:tv})}),f(i).forEach(b=>{g.push(b)}),f(r).forEach(b=>{g.push({...b,placeholderSign:tv})}),g}),c=k(()=>f(o).length||f(r).length),u=k(()=>f(s).reduce((g,b)=>(g[b.key]=Jfe(b,f(n),e.fixed),g),{})),d=k(()=>f(a).reduce((g,b)=>g+b.width,0)),h=g=>f(s).find(b=>b.key===g),p=g=>f(u)[g],v=(g,b)=>{g.width=b};function m(g){var b;const{key:C}=g.currentTarget.dataset;if(!C)return;const{sortState:w,sortBy:_}=e;let x=wu.ASC;ft(w)?x=f3[w[C]]:x=f3[_.order],(b=e.onColumnSort)==null||b.call(e,{column:h(C),key:C,order:x})}return{columns:s,columnsStyles:u,columnsTotalWidth:d,fixedColumnsOnLeft:o,fixedColumnsOnRight:r,hasFixedColumns:c,mainColumns:l,normalColumns:i,visibleColumns:a,getColumn:h,getColumnStyle:p,updateColumnWidth:v,onColumnSorted:m}}const Qfe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,onMaybeEndReached:a})=>{const o=F({scrollLeft:0,scrollTop:0});function r(p){var v,m,g;const{scrollTop:b}=p;(v=t.value)==null||v.scrollTo(p),(m=n.value)==null||m.scrollToTop(b),(g=s.value)==null||g.scrollToTop(b)}function i(p){o.value=p,r(p)}function l(p){o.value.scrollTop=p,r(f(o))}function c(p){var v,m;o.value.scrollLeft=p,(m=(v=t.value)==null?void 0:v.scrollTo)==null||m.call(v,f(o))}function u(p){var v;i(p),(v=e.onScroll)==null||v.call(e,p)}function d({scrollTop:p}){const{scrollTop:v}=f(o);p!==v&&l(p)}function h(p,v="auto"){var m;(m=t.value)==null||m.scrollToRow(p,v)}return be(()=>f(o).scrollTop,(p,v)=>{p>v&&a()}),{scrollPos:o,scrollTo:i,scrollToLeft:c,scrollToTop:l,scrollToRow:h,onScroll:u,onVerticalScroll:d}},ehe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,tableInstance:a,ns:o,isScrolling:r})=>{const i=Ct(),{emit:l}=i,c=fn(!1),u=F(e.defaultExpandedRowKeys||[]),d=F(-1),h=fn(null),p=F({}),v=F({}),m=fn({}),g=fn({}),b=fn({}),C=k(()=>st(e.estimatedRowHeight));function w(M){var $;($=e.onRowsRendered)==null||$.call(e,M),M.rowCacheEnd>f(d)&&(d.value=M.rowCacheEnd)}function _({hovered:M,rowKey:$}){if(r.value)return;a.vnode.el.querySelectorAll(`[rowkey="${String($)}"]`).forEach(q=>{M?q.classList.add(o.is("hovered")):q.classList.remove(o.is("hovered"))})}function x({expanded:M,rowData:$,rowIndex:L,rowKey:B}){var q,J;const Y=[...f(u)],O=Y.indexOf(B);M?O===-1&&Y.push(B):O>-1&&Y.splice(O,1),u.value=Y,l("update:expandedRowKeys",Y),(q=e.onRowExpand)==null||q.call(e,{expanded:M,rowData:$,rowIndex:L,rowKey:B}),(J=e.onExpandedRowsChange)==null||J.call(e,Y),a.vnode.el.querySelector(`.${o.is("hovered")}[rowkey="${String(B)}"]`)&&ze(()=>_({hovered:!0,rowKey:B}))}const E=yi(()=>{var M,$,L,B;c.value=!0,p.value={...f(p),...f(v)},T(f(h),!1),v.value={},h.value=null,(M=t.value)==null||M.forceUpdate(),($=n.value)==null||$.forceUpdate(),(L=s.value)==null||L.forceUpdate(),(B=i.proxy)==null||B.$forceUpdate(),c.value=!1},0);function T(M,$=!1){f(C)&&[t,n,s].forEach(L=>{const B=f(L);B&&B.resetAfterRowIndex(M,$)})}function R(M,$,L){const B=f(h);(B===null||B>L)&&(h.value=L),v.value[M]=$}function I({rowKey:M,height:$,rowIndex:L},B){B?B===n7.RIGHT?b.value[M]=$:m.value[M]=$:g.value[M]=$;const q=Math.max(...[m,b,g].map(J=>J.value[M]||0));f(p)[M]!==q&&(R(M,q,L),E())}return{expandedRowKeys:u,lastRenderedRowIndex:d,isDynamic:C,isResetting:c,rowHeights:p,resetAfterIndex:T,onRowExpanded:x,onRowHovered:_,onRowsRendered:w,onRowHeightChange:I}},the=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:s})=>{const a=F({}),o=k(()=>{const i={},{data:l,rowKey:c}=e,u=f(t);if(!u||!u.length)return l;const d=[],h=new Set;u.forEach(v=>h.add(v));let p=l.slice();for(p.forEach(v=>i[v[c]]=0);p.length>0;){const v=p.shift();d.push(v),h.has(v[c])&&ke(v.children)&&v.children.length>0&&(p=[...v.children,...p],v.children.forEach(m=>i[m[c]]=i[v[c]]+1))}return a.value=i,d}),r=k(()=>{const{data:i,expandColumnKey:l}=e;return l?f(o):i});return be(r,(i,l)=>{i!==l&&(n.value=-1,s(0,!0))}),{data:r,depthMap:a}},nhe=(e,t)=>e+t,rg=e=>ke(e)?e.reduce(nhe,0):e,Bd=(e,t,n={})=>nt(e)?e(t):e??n,Nc=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Mn(e[t])}),e),s7=e=>un(e)?t=>ot(e,t):e,she=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:s,fixedColumnsOnRight:a})=>{const o=k(()=>{const{fixed:b,width:C,vScrollbarSize:w}=e,_=C-w;return b?Math.max(Math.round(f(t)),_):_}),r=k(()=>{const{height:b=0,maxHeight:C=0,footerHeight:w,hScrollbarSize:_}=e;if(C>0){const x=f(h),E=f(n),R=f(d)+x+E+_;return Math.min(R,C-w)}return b-w}),i=k(()=>{const{maxHeight:b}=e,C=f(r);if(st(b)&&b>0)return C;const w=f(n)+f(d)+f(h);return Math.min(C,w)}),l=b=>b.width,c=k(()=>rg(f(s).map(l))),u=k(()=>rg(f(a).map(l))),d=k(()=>rg(e.headerHeight)),h=k(()=>{var b;return(((b=e.fixedData)==null?void 0:b.length)||0)*e.rowHeight}),p=k(()=>f(r)-f(d)-f(h)),v=k(()=>{const{style:b={},height:C,width:w}=e;return Nc({...b,height:C,width:w})}),m=k(()=>Nc({height:e.footerHeight})),g=k(()=>({top:Mn(f(d)),bottom:Mn(e.footerHeight),width:Mn(e.width)}));return{bodyWidth:o,fixedTableHeight:i,mainTableHeight:r,leftTableWidth:c,rightTableWidth:u,windowHeight:p,footerHeight:m,emptyStyle:g,rootStyle:v,headerHeight:d}};function ahe(e){const t=F(),n=F(),s=F(),{columns:a,columnsStyles:o,columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:l,hasFixedColumns:c,mainColumns:u,onColumnSorted:d}=Zfe(e,Jt(e,"columns"),Jt(e,"fixed")),{scrollTo:h,scrollToLeft:p,scrollToTop:v,scrollToRow:m,onScroll:g,onVerticalScroll:b,scrollPos:C}=Qfe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,onMaybeEndReached:ae}),w=Ee("table-v2"),_=Ct(),x=fn(!1),{expandedRowKeys:E,lastRenderedRowIndex:T,isDynamic:R,isResetting:I,rowHeights:M,resetAfterIndex:$,onRowExpanded:L,onRowHeightChange:B,onRowHovered:q,onRowsRendered:J}=ehe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,tableInstance:_,ns:w,isScrolling:x}),{data:Y,depthMap:O}=the(e,{expandedRowKeys:E,lastRenderedRowIndex:T,resetAfterIndex:$}),N=k(()=>{const{estimatedRowHeight:de,rowHeight:ye}=e,_e=f(Y);return st(de)?Object.values(f(M)).reduce((Se,Ne)=>Se+Ne,0):_e.length*ye}),{bodyWidth:V,fixedTableHeight:z,mainTableHeight:G,leftTableWidth:Q,rightTableWidth:K,windowHeight:ee,footerHeight:se,emptyStyle:he,rootStyle:te,headerHeight:pe}=she(e,{columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:l,rowsHeight:N}),fe=F(),le=k(()=>{const de=f(Y).length===0;return ke(e.fixedData)?e.fixedData.length===0&&de:de});function Z(de){const{estimatedRowHeight:ye,rowHeight:_e,rowKey:Se}=e;return ye?f(M)[f(Y)[de][Se]]||ye:_e}const H=F(!1);function ae(){const{onEndReached:de}=e;if(!de)return;const{scrollTop:ye}=f(C),_e=f(N),Se=f(ee),Ne=_e-(ye+Se)+e.hScrollbarSize;!H.value&&f(T)>=0&&_e<=ye+f(G)-f(pe)?(H.value=!0,de(Ne)):H.value=!1}return be(()=>f(N),()=>H.value=!1),be(()=>e.expandedRowKeys,de=>E.value=de,{deep:!0}),{columns:a,containerRef:fe,mainTableRef:t,leftTableRef:n,rightTableRef:s,isDynamic:R,isResetting:I,isScrolling:x,hasFixedColumns:c,columnsStyles:o,columnsTotalWidth:r,data:Y,expandedRowKeys:E,depthMap:O,fixedColumnsOnLeft:i,fixedColumnsOnRight:l,mainColumns:u,bodyWidth:V,emptyStyle:he,rootStyle:te,footerHeight:se,mainTableHeight:G,fixedTableHeight:z,leftTableWidth:Q,rightTableWidth:K,showEmpty:le,getRowHeight:Z,onColumnSorted:d,onRowHovered:q,onRowExpanded:L,onRowsRendered:J,onRowHeightChange:B,scrollTo:h,scrollToLeft:p,scrollToTop:v,scrollToRow:m,onScroll:g,onVerticalScroll:b}}const Bw=Symbol("tableV2"),a7="tableV2GridScrollLeft",o7=String,l2={type:re(Array),required:!0},Vw={type:re(Array)},r7={...Vw,required:!0},ohe=String,T5={type:re(Array),default:()=>Tn([])},hu={type:Number,required:!0},i7={type:re([String,Number,Symbol]),default:"id"},M5={type:re(Object)},_u=Me({class:String,columns:l2,columnsStyles:{type:re(Object),required:!0},depth:Number,expandColumnKey:ohe,estimatedRowHeight:{...Rd.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:re(Function)},onRowHover:{type:re(Function)},onRowHeightChange:{type:re(Function)},rowData:{type:re(Object),required:!0},rowEventHandlers:{type:re(Object)},rowIndex:{type:Number,required:!0},rowKey:i7,style:{type:re(Object)}}),K4={type:Number,required:!0},zw=Me({class:String,columns:l2,fixedHeaderData:{type:re(Array)},headerData:{type:re(Array),required:!0},headerHeight:{type:re([Number,Array]),default:50},rowWidth:K4,rowHeight:{type:Number,default:50},height:K4,width:K4}),ig=Me({columns:l2,data:r7,fixedData:Vw,estimatedRowHeight:_u.estimatedRowHeight,width:hu,height:hu,headerWidth:hu,headerHeight:zw.headerHeight,bodyWidth:hu,rowHeight:hu,cache:EM.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Rd.scrollbarAlwaysOn,scrollbarStartGap:Rd.scrollbarStartGap,scrollbarEndGap:Rd.scrollbarEndGap,class:o7,style:M5,containerStyle:M5,getRowHeight:{type:re(Function),required:!0},rowKey:_u.rowKey,onRowsRendered:{type:re(Function)},onScroll:{type:re(Function)}}),rhe=Me({cache:ig.cache,estimatedRowHeight:_u.estimatedRowHeight,rowKey:i7,headerClass:{type:re([String,Function])},headerProps:{type:re([Object,Function])},headerCellProps:{type:re([Object,Function])},headerHeight:zw.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:re([String,Function])},rowProps:{type:re([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:re([Object,Function])},columns:l2,data:r7,dataGetter:{type:re(Function)},fixedData:Vw,expandColumnKey:_u.expandColumnKey,expandedRowKeys:T5,defaultExpandedRowKeys:T5,class:o7,fixed:Boolean,style:{type:re(Object)},width:hu,height:hu,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Rd.hScrollbarSize,vScrollbarSize:Rd.vScrollbarSize,scrollbarAlwaysOn:TM.alwaysOn,sortBy:{type:re(Object),default:()=>({})},sortState:{type:re(Object),default:void 0},onColumnSort:{type:re(Function)},onExpandedRowsChange:{type:re(Function)},onEndReached:{type:re(Function)},onRowExpand:_u.onRowExpand,onScroll:ig.onScroll,onRowsRendered:ig.onRowsRendered,rowEventHandlers:_u.rowEventHandlers}),ihe=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:s},a)=>{let o=null,r=0,i=0;const l=(u,d)=>{const h=u<0&&t.value||u>0&&e.value,p=d<0&&s.value||d>0&&n.value;return h||p};return{hasReachedEdge:l,onWheel:u=>{kl(o);let d=u.deltaX,h=u.deltaY;Math.abs(d)>Math.abs(h)?h=0:d=0,u.shiftKey&&h!==0&&(d=h,h=0),!l(d,h)&&(r+=d,i+=h,u.preventDefault(),o=wi(()=>{a(r,i),r=0,i=0}))}}},lhe=(e,t,n,s,a,o,r)=>{const i=F(0),l=F(0);let c,u=0,d=0;const h=v=>{kl(c),i.value=v.touches[0].clientX,l.value=v.touches[0].clientY,u=0,d=0},p=v=>{v.preventDefault(),kl(c),u+=i.value-v.touches[0].clientX,d+=l.value-v.touches[0].clientY,i.value=v.touches[0].clientX,l.value=v.touches[0].clientY,c=wi(()=>{const m=s.value-f(o),g=a.value-f(r),b=Math.min(t.value.scrollLeft+u,m),C=Math.min(t.value.scrollTop+d,g);n({scrollLeft:b,scrollTop:C}),u=0,d=0})};return Xt(e,"touchstart",h,{passive:!0}),Xt(e,"touchmove",p,{passive:!1}),{touchStartX:i,touchStartY:l,handleTouchStart:h,handleTouchMove:p}},l7=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:s,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:o,getEstimatedTotalWidth:r,getColumnOffset:i,getRowOffset:l,getRowPosition:c,getRowStartIndexForOffset:u,getRowStopIndexForStartIndex:d,initCache:h,injectToInstance:p,validateProps:v})=>j({name:e??"ElVirtualList",props:Rd,emits:[m1,g1],setup(m,{emit:g,expose:b,slots:C}){const w=Ee("vl");v(m);const _=Ct(),x=F(h(m,_));p==null||p(_,x);const E=F(),T=F(),R=F(),I=F(),M=F({isScrolling:!1,scrollLeft:st(m.initScrollLeft)?m.initScrollLeft:0,scrollTop:st(m.initScrollTop)?m.initScrollTop:0,updateRequested:!1,xAxisScrollDir:xf,yAxisScrollDir:xf}),$=wM(),L=k(()=>Number.parseInt(`${m.height}`,10)),B=k(()=>Number.parseInt(`${m.width}`,10)),q=k(()=>{const{totalColumn:Ce,totalRow:Ie,columnCache:Pe}=m,{isScrolling:He,xAxisScrollDir:Qe,scrollLeft:rt}=f(M);if(Ce===0||Ie===0)return[0,0,0,0];const De=s(m,rt,f(x)),Ke=a(m,De,rt,f(x)),et=!He||Qe===b1?Math.max(1,Pe):1,Ft=!He||Qe===xf?Math.max(1,Pe):1;return[Math.max(0,De-et),Math.max(0,Math.min(Ce-1,Ke+Ft)),De,Ke]}),J=k(()=>{const{totalColumn:Ce,totalRow:Ie,rowCache:Pe}=m,{isScrolling:He,yAxisScrollDir:Qe,scrollTop:rt}=f(M);if(Ce===0||Ie===0)return[0,0,0,0];const De=u(m,rt,f(x)),Ke=d(m,De,rt,f(x)),et=!He||Qe===b1?Math.max(1,Pe):1,Ft=!He||Qe===xf?Math.max(1,Pe):1;return[Math.max(0,De-et),Math.max(0,Math.min(Ie-1,Ke+Ft)),De,Ke]}),Y=k(()=>o(m,f(x))),O=k(()=>r(m,f(x))),N=k(()=>{var Ce;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:m.direction,height:st(m.height)?`${m.height}px`:m.height,width:st(m.width)?`${m.width}px`:m.width},(Ce=m.style)!=null?Ce:{}]}),V=k(()=>{const Ce=`${f(O)}px`;return{height:`${f(Y)}px`,pointerEvents:f(M).isScrolling?"none":void 0,width:Ce,margin:0,boxSizing:"border-box"}}),z=()=>{const{totalColumn:Ce,totalRow:Ie}=m;if(Ce>0&&Ie>0){const[Ke,et,Ft,Ht]=f(q),[at,vt,Et,xe]=f(J);g(m1,{columnCacheStart:Ke,columnCacheEnd:et,rowCacheStart:at,rowCacheEnd:vt,columnVisibleStart:Ft,columnVisibleEnd:Ht,rowVisibleStart:Et,rowVisibleEnd:xe})}const{scrollLeft:Pe,scrollTop:He,updateRequested:Qe,xAxisScrollDir:rt,yAxisScrollDir:De}=f(M);g(g1,{xAxisScrollDir:rt,scrollLeft:Pe,yAxisScrollDir:De,scrollTop:He,updateRequested:Qe})},G=Ce=>{const{clientHeight:Ie,clientWidth:Pe,scrollHeight:He,scrollLeft:Qe,scrollTop:rt,scrollWidth:De}=Ce.currentTarget,Ke=f(M);if(Ke.scrollTop===rt&&Ke.scrollLeft===Qe)return;let et=Qe;if(d5(m.direction))switch(w1()){case Zp:et=-Qe;break;case Lw:et=De-Pe-Qe;break}M.value={...Ke,isScrolling:!0,scrollLeft:et,scrollTop:Math.max(0,Math.min(rt,He-Ie)),updateRequested:!0,xAxisScrollDir:yu(Ke.scrollLeft,et),yAxisScrollDir:yu(Ke.scrollTop,rt)},ze(()=>H()),ae(),z()},Q=(Ce,Ie)=>{const Pe=f(L),He=(Y.value-Pe)/Ie*Ce;se({scrollTop:Math.min(Y.value-Pe,He)})},K=(Ce,Ie)=>{const Pe=f(B),He=(O.value-Pe)/Ie*Ce;se({scrollLeft:Math.min(O.value-Pe,He)})},{onWheel:ee}=ihe({atXStartEdge:k(()=>M.value.scrollLeft<=0),atXEndEdge:k(()=>M.value.scrollLeft>=O.value-f(B)),atYStartEdge:k(()=>M.value.scrollTop<=0),atYEndEdge:k(()=>M.value.scrollTop>=Y.value-f(L))},(Ce,Ie)=>{var Pe,He,Qe,rt;(He=(Pe=T.value)==null?void 0:Pe.onMouseUp)==null||He.call(Pe),(rt=(Qe=R.value)==null?void 0:Qe.onMouseUp)==null||rt.call(Qe);const De=f(B),Ke=f(L);se({scrollLeft:Math.min(M.value.scrollLeft+Ce,O.value-De),scrollTop:Math.min(M.value.scrollTop+Ie,Y.value-Ke)})});Xt(E,"wheel",ee,{passive:!1});const se=({scrollLeft:Ce=M.value.scrollLeft,scrollTop:Ie=M.value.scrollTop})=>{Ce=Math.max(Ce,0),Ie=Math.max(Ie,0);const Pe=f(M);Ie===Pe.scrollTop&&Ce===Pe.scrollLeft||(M.value={...Pe,xAxisScrollDir:yu(Pe.scrollLeft,Ce),yAxisScrollDir:yu(Pe.scrollTop,Ie),scrollLeft:Ce,scrollTop:Ie,updateRequested:!0},ze(()=>H()),ae(),z())},{touchStartX:he,touchStartY:te,handleTouchStart:pe,handleTouchMove:fe}=lhe(E,M,se,O,Y,B,L),le=(Ce=0,Ie=0,Pe=jo)=>{const He=f(M);Ie=Math.max(0,Math.min(Ie,m.totalColumn-1)),Ce=Math.max(0,Math.min(Ce,m.totalRow-1));const Qe=Ek(w.namespace.value),rt=f(x),De=o(m,rt),Ke=r(m,rt);se({scrollLeft:i(m,Ie,Pe,He.scrollLeft,rt,Ke>m.width?Qe:0),scrollTop:l(m,Ce,Pe,He.scrollTop,rt,De>m.height?Qe:0)})},Z=(Ce,Ie)=>{const{columnWidth:Pe,direction:He,rowHeight:Qe}=m,rt=$.value(t&&Pe,t&&Qe,t&&He),De=`${Ce},${Ie}`;if(Wt(rt,De))return rt[De];{const[,Ke]=n(m,Ie,f(x)),et=f(x),Ft=d5(He),[Ht,at]=c(m,Ce,et),[vt]=n(m,Ie,et);return rt[De]={position:"absolute",left:Ft?void 0:`${Ke}px`,right:Ft?`${Ke}px`:void 0,top:`${at}px`,height:`${Ht}px`,width:`${vt}px`},rt[De]}},H=()=>{M.value.isScrolling=!1,ze(()=>{$.value(-1,null,null)})};St(()=>{if(!jt)return;const{initScrollLeft:Ce,initScrollTop:Ie}=m,Pe=f(E);Pe&&(st(Ce)&&(Pe.scrollLeft=Ce),st(Ie)&&(Pe.scrollTop=Ie)),z()});const ae=()=>{const{direction:Ce}=m,{scrollLeft:Ie,scrollTop:Pe,updateRequested:He}=f(M),Qe=f(E);if(He&&Qe){if(Ce===$f)switch(w1()){case Zp:{Qe.scrollLeft=-Ie;break}case Iw:{Qe.scrollLeft=Ie;break}default:{const{clientWidth:rt,scrollWidth:De}=Qe;Qe.scrollLeft=De-rt-Ie;break}}else Qe.scrollLeft=Math.max(0,Ie);Qe.scrollTop=Math.max(0,Pe)}},{resetAfterColumnIndex:de,resetAfterRowIndex:ye,resetAfter:_e}=_.proxy;b({windowRef:E,innerRef:I,getItemStyleCache:$,touchStartX:he,touchStartY:te,handleTouchStart:pe,handleTouchMove:fe,scrollTo:se,scrollToItem:le,states:M,resetAfterColumnIndex:de,resetAfterRowIndex:ye,resetAfter:_e});const Se=()=>{const{scrollbarAlwaysOn:Ce,scrollbarStartGap:Ie,scrollbarEndGap:Pe,totalColumn:He,totalRow:Qe}=m,rt=f(B),De=f(L),Ke=f(O),et=f(Y),{scrollLeft:Ft,scrollTop:Ht}=f(M),at=ot(t3,{ref:T,alwaysOn:Ce,startGap:Ie,endGap:Pe,class:w.e("horizontal"),clientSize:rt,layout:"horizontal",onScroll:K,ratio:rt*100/Ke,scrollFrom:Ft/(Ke-rt),total:Qe,visible:!0}),vt=ot(t3,{ref:R,alwaysOn:Ce,startGap:Ie,endGap:Pe,class:w.e("vertical"),clientSize:De,layout:"vertical",onScroll:Q,ratio:De*100/et,scrollFrom:Ht/(et-De),total:He,visible:!0});return{horizontalScrollbar:at,verticalScrollbar:vt}},Ne=()=>{var Ce;const[Ie,Pe]=f(q),[He,Qe]=f(J),{data:rt,totalColumn:De,totalRow:Ke,useIsScrolling:et,itemKey:Ft}=m,Ht=[];if(Ke>0&&De>0)for(let at=He;at<=Qe;at++)for(let vt=Ie;vt<=Pe;vt++){const Et=Ft({columnIndex:vt,data:rt,rowIndex:at});Ht.push(ot(Ve,{key:Et},(Ce=C.default)==null?void 0:Ce.call(C,{columnIndex:vt,data:rt,isScrolling:et?f(M).isScrolling:void 0,style:Z(at,vt),rowIndex:at})))}return Ht},Fe=()=>{const Ce=bt(m.innerElement),Ie=Ne();return[ot(Ce,_t(m.innerProps,{style:f(V),ref:I}),Xe(Ce)?Ie:{default:()=>Ie})]};return()=>{const Ce=bt(m.containerElement),{horizontalScrollbar:Ie,verticalScrollbar:Pe}=Se(),He=Fe();return ot("div",{key:0,class:w.e("wrapper"),role:m.role},[ot(Ce,{class:m.className,style:f(N),onScroll:G,ref:E},Xe(Ce)?He:{default:()=>He}),Ie,Pe])}}}),{max:S1,min:c7,floor:u7}=Math,che={column:"columnWidth",row:"rowHeight"},h3={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Fi=(e,t,n,s)=>{const[a,o,r]=[n[s],e[che[s]],n[h3[s]]];if(t>r){let i=0;if(r>=0){const l=a[r];i=l.offset+l.size}for(let l=r+1;l<=t;l++){const c=o(l);a[l]={offset:i,size:c},i+=c}n[h3[s]]=t}return a[t]},d7=(e,t,n,s,a,o)=>{for(;n<=s;){const r=n+u7((s-n)/2),i=Fi(e,r,t,o).offset;if(i===a)return r;i<a?n=r+1:s=r-1}return S1(0,n-1)},uhe=(e,t,n,s,a)=>{const o=a==="column"?e.totalColumn:e.totalRow;let r=1;for(;n<o&&Fi(e,n,t,a).offset<s;)n+=r,r*=2;return d7(e,t,u7(n/2),c7(n,o-1),s,a)},P5=(e,t,n,s)=>{const[a,o]=[t[s],t[h3[s]]];return(o>0?a[o].offset:0)>=n?d7(e,t,0,o,n,s):uhe(e,t,S1(0,o),n,s)},f7=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:s})=>{let a=0;if(n>=e&&(n=e-1),n>=0){const i=s[n];a=i.offset+i.size}const r=(e-n-1)*t;return a+r},h7=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:s})=>{let a=0;if(s>e&&(s=e-1),s>=0){const i=t[s];a=i.offset+i.size}const r=(e-s-1)*n;return a+r},dhe={column:h7,row:f7},R5=(e,t,n,s,a,o,r)=>{const[i,l]=[o==="row"?e.height:e.width,dhe[o]],c=Fi(e,t,a,o),u=l(e,a),d=S1(0,c7(u-i,c.offset)),h=S1(0,c.offset-i+r+c.size);switch(n===Vb&&(s>=h-i&&s<=d+i?n=jo:n=ui),n){case Xp:return d;case Jp:return h;case ui:return Math.round(h+(d-h)/2);case jo:default:return s>=h&&s<=d?s:h>d||s<h?h:d}},fhe=l7({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const s=Fi(e,t,n,"column");return[s.size,s.offset]},getRowPosition:(e,t,n)=>{const s=Fi(e,t,n,"row");return[s.size,s.offset]},getColumnOffset:(e,t,n,s,a,o)=>R5(e,t,n,s,a,"column",o),getRowOffset:(e,t,n,s,a,o)=>R5(e,t,n,s,a,"row",o),getColumnStartIndexForOffset:(e,t,n)=>P5(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,s)=>{const a=Fi(e,t,s,"column"),o=n+e.width;let r=a.offset+a.size,i=t;for(;i<e.totalColumn-1&&r<o;)i++,r+=Fi(e,t,s,"column").size;return i},getEstimatedTotalHeight:f7,getEstimatedTotalWidth:h7,getRowStartIndexForOffset:(e,t,n)=>P5(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,s)=>{const{totalRow:a,height:o}=e,r=Fi(e,t,s,"row"),i=n+o;let l=r.size+r.offset,c=t;for(;c<a-1&&l<i;)c++,l+=Fi(e,c,s,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:o,rowIndex:r},i)=>{var l,c;i=Dt(i)?!0:i,st(o)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,o-1)),st(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),i&&((c=e.proxy)==null||c.$forceUpdate())},s=(o,r)=>{n({columnIndex:o},r)},a=(o,r)=>{n({rowIndex:o},r)};Object.assign(e.proxy,{resetAfterColumnIndex:s,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:e=Yy,estimatedRowHeight:t=Yy})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),hhe=l7({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},s,a,o,r,i)=>{n=Number(n);const l=Math.max(0,e*t-n),c=Math.min(l,s*t),u=Math.max(0,s*t-n+i+t);switch(a==="smart"&&(o>=u-n&&o<=c+n?a=jo:a=ui),a){case Xp:return c;case Jp:return u;case ui:{const d=Math.round(u+(c-u)/2);return d<Math.ceil(n/2)?0:d>l+Math.floor(n/2)?l:d}case jo:default:return o>=u&&o<=c?o:u>c||o<u?u:c}},getRowOffset:({rowHeight:e,height:t,totalRow:n},s,a,o,r,i)=>{t=Number(t);const l=Math.max(0,n*e-t),c=Math.min(l,s*e),u=Math.max(0,s*e-t+i+e);switch(a===Vb&&(o>=u-t&&o<=c+t?a=jo:a=ui),a){case Xp:return c;case Jp:return u;case ui:{const d=Math.round(u+(c-u)/2);return d<Math.ceil(t/2)?0:d>l+Math.floor(t/2)?l:d}case jo:default:return o>=u&&o<=c?o:u>c||o<u?u:c}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},s,a)=>{const o=s*e,r=Math.ceil((n+a-o)/e);return Math.max(0,Math.min(t-1,s+r-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},s,a)=>{const o=s*e,r=Math.ceil((n+a-o)/e);return Math.max(0,Math.min(t-1,s+r-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),phe="ElTableV2Header",vhe=j({name:phe,props:zw,setup(e,{slots:t,expose:n}){const s=Ee("table-v2"),a=je(a7),o=F(),r=k(()=>Nc({width:e.width,height:e.height})),i=k(()=>Nc({width:e.rowWidth,height:e.height})),l=k(()=>Es(f(e.headerHeight))),c=h=>{const p=f(o);ze(()=>{p!=null&&p.scroll&&p.scroll({left:h})})},u=()=>{const h=s.e("fixed-header-row"),{columns:p,fixedHeaderData:v,rowHeight:m}=e;return v==null?void 0:v.map((g,b)=>{var C;const w=Nc({height:m,width:"100%"});return(C=t.fixed)==null?void 0:C.call(t,{class:h,columns:p,rowData:g,rowIndex:-(b+1),style:w})})},d=()=>{const h=s.e("dynamic-header-row"),{columns:p}=e;return f(l).map((v,m)=>{var g;const b=Nc({width:"100%",height:v});return(g=t.dynamic)==null?void 0:g.call(t,{class:h,columns:p,headerIndex:m,style:b})})};return Pr(()=>{a!=null&&a.value&&c(a.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return W("div",{ref:o,class:e.class,style:f(r),role:"rowgroup"},[W("div",{style:f(i),class:s.e("header")},[d(),u()])])}}}),mhe="ElTableV2Grid",ghe=e=>{const t=F(),n=F(),s=F(0),a=k(()=>{const{data:g,rowHeight:b,estimatedRowHeight:C}=e;if(!C)return g.length*b}),o=k(()=>{const{fixedData:g,rowHeight:b}=e;return((g==null?void 0:g.length)||0)*b}),r=k(()=>rg(e.headerHeight)),i=k(()=>{const{height:g}=e;return Math.max(0,g-f(r)-f(o))}),l=k(()=>f(r)+f(o)>0),c=({data:g,rowIndex:b})=>g[b][e.rowKey];function u({rowCacheStart:g,rowCacheEnd:b,rowVisibleStart:C,rowVisibleEnd:w}){var _;(_=e.onRowsRendered)==null||_.call(e,{rowCacheStart:g,rowCacheEnd:b,rowVisibleStart:C,rowVisibleEnd:w})}function d(g,b){var C;(C=n.value)==null||C.resetAfterRowIndex(g,b)}function h(g,b){const C=f(t),w=f(n);ft(g)?(C==null||C.scrollToLeft(g.scrollLeft),s.value=g.scrollLeft,w==null||w.scrollTo(g)):(C==null||C.scrollToLeft(g),s.value=g,w==null||w.scrollTo({scrollLeft:g,scrollTop:b}))}function p(g){var b;(b=f(n))==null||b.scrollTo({scrollTop:g})}function v(g,b){const C=f(n);if(!C)return;const w=s.value;C.scrollToItem(g,0,b),w&&h({scrollLeft:w})}function m(){var g,b;(g=f(n))==null||g.$forceUpdate(),(b=f(t))==null||b.$forceUpdate()}return be(()=>e.bodyWidth,()=>{var g;st(e.estimatedRowHeight)&&((g=n.value)==null||g.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:m,fixedRowHeight:o,gridHeight:i,hasHeader:l,headerHeight:r,headerRef:t,totalHeight:a,itemKey:c,onItemRendered:u,resetAfterRowIndex:d,scrollTo:h,scrollToTop:p,scrollToRow:v,scrollLeft:s}},Hw=j({name:mhe,props:ig,setup(e,{slots:t,expose:n}){const{ns:s}=je(Bw),{bodyRef:a,fixedRowHeight:o,gridHeight:r,hasHeader:i,headerRef:l,headerHeight:c,totalHeight:u,forceUpdate:d,itemKey:h,onItemRendered:p,resetAfterRowIndex:v,scrollTo:m,scrollToTop:g,scrollToRow:b,scrollLeft:C}=ghe(e);Mt(a7,C),Dm(async()=>{var _;await ze();const x=(_=a.value)==null?void 0:_.states.scrollTop;x&&g(Math.round(x)+1)}),n({forceUpdate:d,totalHeight:u,scrollTo:m,scrollToTop:g,scrollToRow:b,resetAfterRowIndex:v});const w=()=>e.bodyWidth;return()=>{const{cache:_,columns:x,data:E,fixedData:T,useIsScrolling:R,scrollbarAlwaysOn:I,scrollbarEndGap:M,scrollbarStartGap:$,style:L,rowHeight:B,bodyWidth:q,estimatedRowHeight:J,headerWidth:Y,height:O,width:N,getRowHeight:V,onScroll:z}=e,G=st(J),Q=G?fhe:hhe,K=f(c);return W("div",{role:"table",class:[s.e("table"),e.class],style:L},[W(Q,{ref:a,data:E,useIsScrolling:R,itemKey:h,columnCache:0,columnWidth:G?w:q,totalColumn:1,totalRow:E.length,rowCache:_,rowHeight:G?V:B,width:N,height:f(r),class:s.e("body"),role:"rowgroup",scrollbarStartGap:$,scrollbarEndGap:M,scrollbarAlwaysOn:I,onScroll:z,onItemRendered:p,perfMode:!1},{default:ee=>{var se;const he=E[ee.rowIndex];return(se=t.row)==null?void 0:se.call(t,{...ee,columns:x,rowData:he})}}),f(i)&&W(vhe,{ref:l,class:s.e("header-wrapper"),columns:x,headerData:E,headerHeight:e.headerHeight,fixedHeaderData:T,rowWidth:Y,rowHeight:B,width:N,height:Math.min(K+f(o),O)},{dynamic:t.header,fixed:t.row})])}}});function bhe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!un(e)}const yhe=(e,{slots:t})=>{const{mainTableRef:n,...s}=e;return W(Hw,_t({ref:n},s),bhe(t)?t:{default:()=>[t]})};function whe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!un(e)}const _he=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...s}=e;return W(Hw,_t({ref:n},s),whe(t)?t:{default:()=>[t]})};function Che(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!un(e)}const She=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...s}=e;return W(Hw,_t({ref:n},s),Che(t)?t:{default:()=>[t]})},xhe=e=>{const{isScrolling:t}=je(Bw),n=F(!1),s=F(),a=k(()=>st(e.estimatedRowHeight)&&e.rowIndex>=0),o=(l=!1)=>{const c=f(s);if(!c)return;const{columns:u,onRowHeightChange:d,rowKey:h,rowIndex:p,style:v}=e,{height:m}=c.getBoundingClientRect();n.value=!0,ze(()=>{if(l||m!==Number.parseInt(v.height)){const g=u[0],b=(g==null?void 0:g.placeholderSign)===tv;d==null||d({rowKey:h,height:m,rowIndex:p},g&&!b&&g.fixed)}})},r=k(()=>{const{rowData:l,rowIndex:c,rowKey:u,onRowHover:d}=e,h=e.rowEventHandlers||{},p={};return Object.entries(h).forEach(([v,m])=>{nt(m)&&(p[v]=g=>{m({event:g,rowData:l,rowIndex:c,rowKey:u})})}),d&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:v,hovered:m})=>{const g=p[v];p[v]=b=>{d({event:b,hovered:m,rowData:l,rowIndex:c,rowKey:u}),g==null||g(b)}}),p}),i=l=>{const{onRowExpand:c,rowData:u,rowIndex:d,rowKey:h}=e;c==null||c({expanded:l,rowData:u,rowIndex:d,rowKey:h})};return St(()=>{f(a)&&o(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:s,eventHandlers:r,onExpand:i}},Ehe="ElTableV2TableRow",khe=j({name:Ehe,props:_u,setup(e,{expose:t,slots:n,attrs:s}){const{eventHandlers:a,isScrolling:o,measurable:r,measured:i,rowRef:l,onExpand:c}=xhe(e);return t({onExpand:c}),()=>{const{columns:u,columnsStyles:d,expandColumnKey:h,depth:p,rowData:v,rowIndex:m,style:g}=e;let b=u.map((C,w)=>{const _=ke(v.children)&&v.children.length>0&&C.key===h;return n.cell({column:C,columns:u,columnIndex:w,depth:p,style:d[C.key],rowData:v,rowIndex:m,isScrolling:f(o),expandIconProps:_?{rowData:v,rowIndex:m,onExpand:c}:void 0})});if(n.row&&(b=n.row({cells:b.map(C=>ke(C)&&C.length===1?C[0]:C),style:g,columns:u,depth:p,rowData:v,rowIndex:m,isScrolling:f(o)})),f(r)){const{height:C,...w}=g||{},_=f(i);return W("div",_t({ref:l,class:e.class,style:_?g:w,role:"row"},s,f(a)),[b])}return W("div",_t(s,{ref:l,class:e.class,style:g,role:"row"},f(a)),[b])}}});function Ahe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!un(e)}const The=(e,{slots:t})=>{const{columns:n,columnsStyles:s,depthMap:a,expandColumnKey:o,expandedRowKeys:r,estimatedRowHeight:i,hasFixedColumns:l,rowData:c,rowIndex:u,style:d,isScrolling:h,rowProps:p,rowClass:v,rowKey:m,rowEventHandlers:g,ns:b,onRowHovered:C,onRowExpanded:w}=e,_=Bd(v,{columns:n,rowData:c,rowIndex:u},""),x=Bd(p,{columns:n,rowData:c,rowIndex:u}),E=c[m],T=a[E]||0,R=!!o,I=u<0,M=[b.e("row"),_,b.is("expanded",R&&r.includes(E)),b.is("fixed",!T&&I),b.is("customized",!!t.row),{[b.e(`row-depth-${T}`)]:R&&u>=0}],$=l?C:void 0,L={...x,columns:n,columnsStyles:s,class:M,depth:T,expandColumnKey:o,estimatedRowHeight:I?void 0:i,isScrolling:h,rowIndex:u,rowData:c,rowKey:E,rowEventHandlers:g,style:d};return W(khe,_t(L,{onRowExpand:w,onMouseenter:J=>{$==null||$({hovered:!0,rowKey:E,event:J,rowData:c,rowIndex:u})},onMouseleave:J=>{$==null||$({hovered:!1,rowKey:E,event:J,rowData:c,rowIndex:u})},rowkey:E}),Ahe(t)?t:{default:()=>[t]})},Ww=(e,{slots:t})=>{var n;const{cellData:s,style:a}=e,o=((n=s==null?void 0:s.toString)==null?void 0:n.call(s))||"",r=ue(t,"default",e,()=>[o]);return W("div",{class:e.class,title:o,style:a},[r])};Ww.displayName="ElTableV2Cell";Ww.inheritAttrs=!1;const p7=e=>{const{expanded:t,expandable:n,onExpand:s,style:a,size:o,ariaLabel:r}=e,i={onClick:n?()=>s(!t):void 0,ariaLabel:r,ariaExpanded:t,class:e.class};return W("button",_t(i,{type:"button"}),[W(Ye,{size:o,style:a},{default:()=>[W(Ds,null,null)]})])};p7.inheritAttrs=!1;const p3=({columns:e,column:t,columnIndex:n,depth:s,expandIconProps:a,isScrolling:o,rowData:r,rowIndex:i,style:l,expandedRowKeys:c,ns:u,t:d,cellProps:h,expandColumnKey:p,indentSize:v,iconSize:m,rowKey:g},{slots:b})=>{const C=Nc(l);if(t.placeholderSign===tv)return W("div",{class:u.em("row-cell","placeholder"),style:C},null);const{cellRenderer:w,dataKey:_,dataGetter:x}=t,E=nt(x)?x({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i}):Xn(r,_??""),T=Bd(h,{cellData:E,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:r}),R={class:u.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:E,isScrolling:o,rowData:r,rowIndex:i},I=s7(w),M=I?I(R):ue(b,"default",R,()=>[W(Ww,R,null)]),$=[u.e("row-cell"),t.class,t.align===ev.CENTER&&u.is("align-center"),t.align===ev.RIGHT&&u.is("align-right")],L=i>=0&&p&&t.key===p,B=i>=0&&c.includes(r[g]);let q;const J=`margin-inline-start: ${s*v}px;`;return L&&(ft(a)?q=W(p7,_t(a,{class:[u.e("expand-icon"),u.is("expanded",B)],size:m,expanded:B,ariaLabel:d(B?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:J,expandable:!0}),null):q=W("div",{style:[J,`width: ${m}px; height: ${m}px;`].join(" ")},null)),W("div",_t({class:$,style:C},T,{role:"cell"}),[q,M])};p3.inheritAttrs=!1;const Mhe=Me({class:String,columns:l2,columnsStyles:{type:re(Object),required:!0},headerIndex:Number,style:{type:re(Object)}}),Phe=j({name:"ElTableV2HeaderRow",props:Mhe,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:s,headerIndex:a,style:o}=e;let r=n.map((i,l)=>t.cell({columns:n,column:i,columnIndex:l,headerIndex:a,style:s[i.key]}));return t.header&&(r=t.header({cells:r.map(i=>ke(i)&&i.length===1?i[0]:i),columns:n,headerIndex:a})),W("div",{class:e.class,style:o,role:"row"},[r])}}});function Rhe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!un(e)}const Ihe=({columns:e,columnsStyles:t,headerIndex:n,style:s,headerClass:a,headerProps:o,ns:r},{slots:i})=>{const l={columns:e,headerIndex:n},c=[r.e("header-row"),Bd(a,l,""),r.is("customized",!!i.header)],u={...Bd(o,l),columnsStyles:t,class:c,columns:e,headerIndex:n,style:s};return W(Phe,u,Rhe(i)?i:{default:()=>[i]})},jw=(e,{slots:t})=>ue(t,"default",e,()=>{var n,s;return[W("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(s=e.column)==null?void 0:s.title])]});jw.displayName="ElTableV2HeaderCell";jw.inheritAttrs=!1;const Lhe=e=>{const{sortOrder:t}=e;return W("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[W(Ye,{size:14},{default:()=>[t===wu.ASC?W(Uk,null,null):W(Kk,null,null)]})])},I5=(e,{slots:t})=>{const{column:n,ns:s,t:a,style:o,onColumnSorted:r}=e,i=Nc(o);if(n.placeholderSign===tv)return W("div",{class:s.em("header-row-cell","placeholder"),style:i},null);const{headerCellRenderer:l,headerClass:c,sortable:u}=n,d={...e,class:s.e("header-cell-text")},h=s7(l),p=h?h(d):ue(t,"default",d,()=>[W(jw,d,null)]),{sortBy:v,sortState:m,headerCellProps:g}=e;let b,C,w;if(m){const E=m[n.key];b=!!f3[E],C=b?E:wu.ASC}else b=n.key===v.key,C=b?v.order:wu.ASC;C===wu.ASC?w="ascending":C===wu.DESC?w="descending":w=void 0;const _=[s.e("header-cell"),Bd(c,e,""),n.align===ev.CENTER&&s.is("align-center"),n.align===ev.RIGHT&&s.is("align-right"),u&&s.is("sortable")],x={...Bd(g,e),onClick:n.sortable?r:void 0,ariaSort:u?w:void 0,class:_,style:i,"data-key":n.key};return W("div",_t(x,{role:"columnheader"}),[p,u&&W(Lhe,{class:[s.e("sort-icon"),b&&s.is("sorting")],sortOrder:C,ariaLabel:a("el.table.sortLabel",{column:n.title||""})},null)])},v7=(e,{slots:t})=>{var n;return W("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};v7.displayName="ElTableV2Footer";const m7=(e,{slots:t})=>{const n=ue(t,"default",{},()=>[W(lM,null,null)]);return W("div",{class:e.class,style:e.style},[n])};m7.displayName="ElTableV2Empty";const g7=(e,{slots:t})=>{var n;return W("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};g7.displayName="ElTableV2Overlay";function $0(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!un(e)}const Ohe="ElTableV2",Nhe=j({name:Ohe,props:rhe,setup(e,{slots:t,expose:n}){const s=Ee("table-v2"),{t:a}=Rt(),{columnsStyles:o,fixedColumnsOnLeft:r,fixedColumnsOnRight:i,mainColumns:l,mainTableHeight:c,fixedTableHeight:u,leftTableWidth:d,rightTableWidth:h,data:p,depthMap:v,expandedRowKeys:m,hasFixedColumns:g,mainTableRef:b,leftTableRef:C,rightTableRef:w,isDynamic:_,isResetting:x,isScrolling:E,bodyWidth:T,emptyStyle:R,rootStyle:I,footerHeight:M,showEmpty:$,scrollTo:L,scrollToLeft:B,scrollToTop:q,scrollToRow:J,getRowHeight:Y,onColumnSorted:O,onRowHeightChange:N,onRowHovered:V,onRowExpanded:z,onRowsRendered:G,onScroll:Q,onVerticalScroll:K}=ahe(e);return n({scrollTo:L,scrollToLeft:B,scrollToTop:q,scrollToRow:J}),Mt(Bw,{ns:s,isResetting:x,isScrolling:E}),()=>{const{cache:ee,cellProps:se,estimatedRowHeight:he,expandColumnKey:te,fixedData:pe,headerHeight:fe,headerClass:le,headerProps:Z,headerCellProps:H,sortBy:ae,sortState:de,rowHeight:ye,rowClass:_e,rowEventHandlers:Se,rowKey:Ne,rowProps:Fe,scrollbarAlwaysOn:Oe,indentSize:Ce,iconSize:Ie,useIsScrolling:Pe,vScrollbarSize:He,width:Qe}=e,rt=f(p),De={cache:ee,class:s.e("main"),columns:f(l),data:rt,fixedData:pe,estimatedRowHeight:he,bodyWidth:f(T),headerHeight:fe,headerWidth:f(T),height:f(c),mainTableRef:b,rowKey:Ne,rowHeight:ye,scrollbarAlwaysOn:Oe,scrollbarStartGap:2,scrollbarEndGap:He,useIsScrolling:Pe,width:Qe,getRowHeight:Y,onRowsRendered:G,onScroll:Q},Ke=f(d),et=f(u),Ft={cache:ee,class:s.e("left"),columns:f(r),data:rt,fixedData:pe,estimatedRowHeight:he,leftTableRef:C,rowHeight:ye,bodyWidth:Ke,headerWidth:Ke,headerHeight:fe,height:et,rowKey:Ne,scrollbarAlwaysOn:Oe,scrollbarStartGap:2,scrollbarEndGap:He,useIsScrolling:Pe,width:Ke,getRowHeight:Y,onScroll:K},Ht=f(h),at={cache:ee,class:s.e("right"),columns:f(i),data:rt,fixedData:pe,estimatedRowHeight:he,rightTableRef:w,rowHeight:ye,bodyWidth:Ht,headerWidth:Ht,headerHeight:fe,height:et,rowKey:Ne,scrollbarAlwaysOn:Oe,scrollbarStartGap:2,scrollbarEndGap:He,width:Ht,style:`${s.cssVarName("table-scrollbar-size")}: ${He}px`,useIsScrolling:Pe,getRowHeight:Y,onScroll:K},vt=f(o),Et={ns:s,depthMap:f(v),columnsStyles:vt,expandColumnKey:te,expandedRowKeys:f(m),estimatedRowHeight:he,hasFixedColumns:f(g),rowProps:Fe,rowClass:_e,rowKey:Ne,rowEventHandlers:Se,onRowHovered:V,onRowExpanded:z,onRowHeightChange:N},xe={cellProps:se,expandColumnKey:te,indentSize:Ce,iconSize:Ie,rowKey:Ne,expandedRowKeys:f(m),ns:s,t:a},Ue={ns:s,headerClass:le,headerProps:Z,columnsStyles:vt},we={ns:s,t:a,sortBy:ae,sortState:de,headerCellProps:H,onColumnSorted:O},Ge={row:gn=>W(The,_t(gn,Et),{row:t.row,cell:bn=>{let Be;return t.cell?W(p3,_t(bn,xe,{style:vt[bn.column.key]}),$0(Be=t.cell(bn))?Be:{default:()=>[Be]}):W(p3,_t(bn,xe,{style:vt[bn.column.key]}),null)}}),header:gn=>W(Ihe,_t(gn,Ue),{header:t.header,cell:bn=>{let Be;return t["header-cell"]?W(I5,_t(bn,we,{style:vt[bn.column.key]}),$0(Be=t["header-cell"](bn))?Be:{default:()=>[Be]}):W(I5,_t(bn,we,{style:vt[bn.column.key]}),null)}})},wt=[e.class,s.b(),s.e("root"),s.is("dynamic",f(_))],Ut={class:s.e("footer"),style:f(M)};return W("div",{class:wt,style:f(I)},[W(yhe,De,$0(Ge)?Ge:{default:()=>[Ge]}),W(_he,Ft,$0(Ge)?Ge:{default:()=>[Ge]}),W(She,at,$0(Ge)?Ge:{default:()=>[Ge]}),t.footer&&W(v7,Ut,{default:t.footer}),f($)&&W(m7,{class:s.e("empty"),style:f(R)},{default:t.empty}),t.overlay&&W(g7,{class:s.e("overlay")},{default:t.overlay})])}}}),$he=Me({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:re(Function)}}),Dhe=e=>{const t=F(),n=F(0),s=F(0);let a;return St(()=>{a=wn(t,([o])=>{const{width:r,height:i}=o.contentRect,{paddingLeft:l,paddingRight:c,paddingTop:u,paddingBottom:d}=getComputedStyle(o.target),h=Number.parseInt(l)||0,p=Number.parseInt(c)||0,v=Number.parseInt(u)||0,m=Number.parseInt(d)||0;n.value=r-h-p,s.value=i-v-m}).stop}),qt(()=>{a==null||a()}),be([n,s],([o,r])=>{var i;(i=e.onResize)==null||i.call(e,{width:o,height:r})}),{sizer:t,width:n,height:s}},Fhe=j({name:"ElAutoResizer",props:$he,setup(e,{slots:t}){const n=Ee("auto-resizer"),{height:s,width:a,sizer:o}=Dhe(e),r={width:"100%",height:"100%"};return()=>{var i;return W("div",{ref:o,class:n.b(),style:r},[(i=t.default)==null?void 0:i.call(t,{height:s.value,width:a.value})])}}}),Bhe=pt(Nhe),Vhe=pt(Fhe),zb=Symbol("tabsRootContextKey"),zhe=Me({tabs:{type:re(Array),default:()=>Tn([])},tabRefs:{type:re(Object),default:()=>Tn({})}}),L5="ElTabBar";var Hhe=j({name:L5,__name:"tab-bar",props:zhe,setup(e,{expose:t}){const n=e,s=je(zb);s||Jn(L5,"<el-tabs><el-tab-bar /></el-tabs>");const a=Ee("tabs"),o=F(),r=F(),i=k(()=>{var p;return Dt(s.props.defaultValue)||!!((p=r.value)!=null&&p.transform)}),l=()=>{let p=0,v=0;const m=["top","bottom"].includes(s.props.tabPosition)?"width":"height",g=m==="width"?"x":"y",b=g==="x"?"left":"top";return n.tabs.every(C=>{if(Dt(C.paneName))return!1;const w=n.tabRefs[C.paneName];if(!w)return!1;if(!C.active)return!0;p=w[`offset${ec(b)}`],v=w[`client${ec(m)}`];const _=window.getComputedStyle(w);return m==="width"&&(v-=Number.parseFloat(_.paddingLeft)+Number.parseFloat(_.paddingRight),p+=Number.parseFloat(_.paddingLeft)),!1}),{[m]:`${v}px`,transform:`translate${ec(g)}(${p}px)`}},c=()=>r.value=l(),u=[],d=()=>{u.forEach(p=>p.stop()),u.length=0,Object.values(n.tabRefs).forEach(p=>{u.push(wn(p,c))})};be(()=>n.tabs,async()=>{await ze(),c(),d()},{immediate:!0});const h=wn(o,()=>c());return qt(()=>{u.forEach(p=>p.stop()),u.length=0,h.stop()}),t({ref:o,update:c}),(p,v)=>i.value?(S(),P("div",{key:0,ref_key:"barRef",ref:o,class:D([f(a).e("active-bar"),f(a).is(f(s).props.tabPosition)]),style:tt(r.value)},null,6)):ie("v-if",!0)}});const Whe=Me({panes:{type:re(Array),default:()=>Tn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),jhe={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},O5="ElTabNav",Khe=j({name:O5,props:Whe,emits:jhe,setup(e,{expose:t,emit:n}){const s=je(zb);s||Jn(O5,"<el-tabs><tab-nav /></el-tabs>");const a=Ee("tabs"),o=jV(),r=UV(),i=F(),l=F(),c=F(),u=F({}),d=F(),h=F(!1),p=F(0),v=F(!1),m=F(!0),g=fn(),b=k(()=>["top","bottom"].includes(s.props.tabPosition)),C=k(()=>b.value?"width":"height"),w=k(()=>({transform:`translate${C.value==="width"?"X":"Y"}(-${p.value}px)`})),{width:_,height:x}=ky(i),{width:E,height:T}=ky(l,{width:0,height:0},{box:"border-box"}),R=k(()=>b.value?_.value:x.value),I=k(()=>b.value?E.value:T.value),{onWheel:M}=CM({atStartEdge:k(()=>p.value<=0),atEndEdge:k(()=>I.value-p.value<=R.value),layout:k(()=>b.value?"horizontal":"vertical")},z=>{p.value=mu(p.value+z,0,I.value-R.value)}),$=()=>{if(!i.value)return;const z=i.value[`offset${ec(C.value)}`],G=p.value;if(!G)return;const Q=G>z?G-z:0;p.value=Q},L=()=>{if(!i.value||!l.value)return;const z=l.value[`offset${ec(C.value)}`],G=i.value[`offset${ec(C.value)}`],Q=p.value;if(z-Q<=G)return;const K=z-Q>G*2?Q+G:z-G;p.value=K},B=async()=>{const z=l.value;if(!h.value||!c.value||!i.value||!z)return;await ze();const G=u.value[e.currentName];if(!G)return;const Q=i.value,K=G.getBoundingClientRect(),ee=Q.getBoundingClientRect(),se=b.value?z.offsetWidth-ee.width:z.offsetHeight-ee.height,he=p.value;let te=he;b.value?(K.left<ee.left&&(te=he-(ee.left-K.left)),K.right>ee.right&&(te=he+K.right-ee.right)):(K.top<ee.top&&(te=he-(ee.top-K.top)),K.bottom>ee.bottom&&(te=he+(K.bottom-ee.bottom))),te=Math.max(te,0),p.value=Math.min(te,se)},q=()=>{var z;if(!l.value||!i.value)return;e.stretch&&((z=d.value)==null||z.update());const G=l.value[`offset${ec(C.value)}`],Q=i.value[`offset${ec(C.value)}`],K=p.value;Q<G?(h.value=h.value||{},h.value.prev=K,h.value.next=K+Q<G,G-K<Q&&(p.value=G-Q)):(h.value=!1,K>0&&(p.value=0))},J=z=>{const G=an(z);let Q=0;switch(G){case Te.left:case Te.up:Q=-1;break;case Te.right:case Te.down:Q=1;break;default:return}const K=Array.from(z.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let se=K.indexOf(z.target)+Q;se<0?se=K.length-1:se>=K.length&&(se=0),K[se].focus({preventScroll:!0}),K[se].click(),Y()},Y=()=>{m.value&&(v.value=!0)},O=()=>v.value=!1,N=(z,G)=>{u.value[G]=z},V=async()=>{await ze();const z=u.value[e.currentName];z==null||z.focus({preventScroll:!0})};return be(o,z=>{z==="hidden"?m.value=!1:z==="visible"&&setTimeout(()=>m.value=!0,50)}),be(r,z=>{z?setTimeout(()=>m.value=!0,50):m.value=!1}),wn(c,()=>{wi(q)}),St(()=>setTimeout(()=>B(),0)),Pr(()=>q()),t({scrollToActiveTab:B,removeFocus:O,focusActiveTab:V,tabListRef:l,tabBarRef:d,scheduleRender:()=>K2(g)}),()=>{const z=h.value?[W("span",{class:[a.e("nav-prev"),a.is("disabled",!h.value.prev)],onClick:$},[W(Ye,null,{default:()=>[W(Go,null,null)]})]),W("span",{class:[a.e("nav-next"),a.is("disabled",!h.value.next)],onClick:L},[W(Ye,null,{default:()=>[W(Ds,null,null)]})])]:null,G=e.panes.map((Q,K)=>{var ee,se,he,te,pe;const fe=Q.uid,le=Q.props.disabled,Z=(se=(ee=Q.props.name)!=null?ee:Q.index)!=null?se:`${K}`,H=!le&&(Q.isClosable||Q.props.closable!==!1&&e.editable);Q.index=`${K}`;const ae=H?W(Ye,{class:"is-icon-close",onClick:_e=>n("tabRemove",Q,_e)},{default:()=>[W(eo,null,null)]}):null,de=((te=(he=Q.slots).label)==null?void 0:te.call(he))||Q.props.label,ye=!le&&Q.active?(pe=e.tabindex)!=null?pe:s.props.tabindex:-1;return W("div",{ref:_e=>N(_e,Z),class:[a.e("item"),a.is(s.props.tabPosition),a.is("active",Q.active),a.is("disabled",le),a.is("closable",H),a.is("focus",v.value)],id:`tab-${Z}`,key:`tab-${fe}`,"aria-controls":`pane-${Z}`,role:"tab","aria-selected":Q.active,tabindex:ye,onFocus:()=>Y(),onBlur:()=>O(),onClick:_e=>{O(),n("tabClick",Q,Z,_e)},onKeydown:_e=>{const Se=an(_e);H&&(Se===Te.delete||Se===Te.backspace)&&n("tabRemove",Q,_e)}},[de,ae])});return g.value,W("div",{ref:c,class:[a.e("nav-wrap"),a.is("scrollable",!!h.value),a.is(s.props.tabPosition)]},[z,W("div",{class:a.e("nav-scroll"),ref:i},[e.panes.length>0?W("div",{class:[a.e("nav"),a.is(s.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(s.props.tabPosition))],ref:l,style:w.value,role:"tablist",onKeydown:J,onWheel:M},[e.type?null:W(Hhe,{ref:d,tabs:[...e.panes],tabRefs:u.value},null),G]):null])])}}}),Uhe=Me({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:re(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),U4=e=>Xe(e)||st(e),qhe={[ct]:e=>U4(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>U4(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>U4(e),tabAdd:()=>!0},Ghe=j({name:"ElTabs",props:Uhe,emits:qhe,setup(e,{emit:t,slots:n,expose:s}){var a;const o=Ee("tabs"),r=k(()=>["left","right"].includes(e.tabPosition)),{children:i,addChild:l,removeChild:c,ChildrenSorter:u}=Ob(Ct(),"ElTabPane"),d=F(),h=F((a=Dt(e.modelValue)?e.defaultValue:e.modelValue)!=null?a:"0"),p=async(w,_=!1)=>{var x,E,T,R;if(!(h.value===w||Dt(w)))try{let I;if(e.beforeLeave){const M=e.beforeLeave(w,h.value);I=M instanceof Promise?await M:M}else I=!0;if(I!==!1){const M=(x=i.value.find($=>$.paneName===h.value))==null?void 0:x.isFocusInsidePane();h.value=w,_&&(t(ct,w),t("tabChange",w)),(T=(E=d.value)==null?void 0:E.removeFocus)==null||T.call(E),M&&((R=d.value)==null||R.focusActiveTab())}}catch{}},v=(w,_,x)=>{w.props.disabled||(t("tabClick",w,x),p(_,!0))},m=(w,_)=>{w.props.disabled||Dt(w.props.name)||(_.stopPropagation(),t("edit",w.props.name,"remove"),t("tabRemove",w.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")},b=w=>{const _=an(w);[Te.enter,Te.numpadEnter].includes(_)&&g()},C=w=>{const _=w.el.firstChild,x=["bottom","right"].includes(e.tabPosition)?w.children[0].el:w.children[1].el;_!==x&&_.before(x)};return be(()=>e.modelValue,w=>p(w)),be(h,async()=>{var w;await ze(),(w=d.value)==null||w.scrollToActiveTab()}),Mt(zb,{props:e,currentName:h,registerPane:l,unregisterPane:c,nav$:d}),s({currentName:h,get tabNavRef(){return Wm(d.value,["scheduleRender"])}}),()=>{const w=n["add-icon"],_=e.editable||e.addable?W("div",{class:[o.e("new-tab"),r.value&&o.e("new-tab-vertical")],tabindex:e.tabindex,onClick:g,onKeydown:b},[w?ue(n,"add-icon"):W(Ye,{class:o.is("icon-plus")},{default:()=>[W(V8,null,null)]})]):null,x=()=>W(Khe,{ref:d,currentName:h.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:v,onTabRemove:m},null),E=W("div",{class:[o.e("header"),r.value&&o.e("header-vertical"),o.is(e.tabPosition)]},[W(u,null,{default:x,$stable:!0}),_]),T=W("div",{class:o.e("content")},[ue(n,"default")]);return W("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}],onVnodeMounted:C,onVnodeUpdated:C},[T,E])}}}),Yhe=Me({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),Xhe=["id","aria-hidden","aria-labelledby"],N5="ElTabPane";var b7=j({name:N5,__name:"tab-pane",props:Yhe,setup(e){const t=e,n=Ct(),s=Hn(),a=je(zb);a||Jn(N5,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const o=Ee("tab-pane"),r=F(),i=F(),l=k(()=>{var m;return(m=t.closable)!=null?m:a.props.closable}),c=k(()=>{var m;return a.currentName.value===((m=t.name)!=null?m:i.value)}),u=F(c.value),d=k(()=>{var m;return(m=t.name)!=null?m:i.value}),h=k(()=>!t.lazy||u.value||c.value),p=()=>{var m;return(m=r.value)==null?void 0:m.contains(document.activeElement)};be(c,m=>{m&&(u.value=!0)});const v=Kt({uid:n.uid,getVnode:()=>n.vnode,slots:s,props:t,paneName:d,active:c,index:i,isClosable:l,isFocusInsidePane:p});return a.registerPane(v),qt(()=>{a.unregisterPane(v)}),r8(()=>{var m;s.label&&((m=a.nav$.value)==null||m.scheduleRender())}),(m,g)=>h.value?gt((S(),P("div",{key:0,id:`pane-${d.value}`,ref_key:"paneRef",ref:r,class:D(f(o).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${d.value}`},[ue(m.$slots,"default")],10,Xhe)),[[Bt,c.value]]):ie("v-if",!0)}});const Jhe=pt(Ghe,{TabPane:b7}),Zhe=En(b7),Qhe=Me({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Or,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}});var e0e=j({name:"ElText",__name:"text",props:Qhe,setup(e){const t=e,n=F(),s=ns(),a=Ee("text"),o=k(()=>[a.b(),a.m(t.type),a.m(s.value),a.is("truncated",t.truncated),a.is("line-clamp",!Dt(t.lineClamp))]),r=()=>{var i,l,c,u,d,h,p;if(Nl().title)return;let m=!1;const g=((i=n.value)==null?void 0:i.textContent)||"";if(t.truncated){const b=(l=n.value)==null?void 0:l.offsetWidth,C=(c=n.value)==null?void 0:c.scrollWidth;b&&C&&C>b&&(m=!0)}else if(!Dt(t.lineClamp)){const b=(u=n.value)==null?void 0:u.offsetHeight,C=(d=n.value)==null?void 0:d.scrollHeight;b&&C&&C>b&&(m=!0)}m?(h=n.value)==null||h.setAttribute("title",g):(p=n.value)==null||p.removeAttribute("title")};return St(r),Pr(r),(i,l)=>(S(),ce(bt(e.tag),{ref_key:"textRef",ref:n,class:D(o.value),style:tt({"-webkit-line-clamp":e.lineClamp})},{default:X(()=>[ue(i.$slots,"default")]),_:3},8,["class","style"]))}});const Kw=pt(e0e),t0e=Me({format:{type:String,default:"HH:mm"},modelValue:{type:re(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:re(String),default:"light"},clearable:{type:Boolean,default:!0},size:rs,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:re(String)},maxTime:{type:re(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:re([String,Object]),default:()=>D8},clearIcon:{type:re([String,Object]),default:()=>Jo},popperClass:{type:String,default:""},popperStyle:{type:re([String,Object])},...Qd}),hl=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const s=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&n===12?n=0:a.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:s}}return null},q4=(e,t)=>{const n=hl(e);if(!n)return-1;const s=hl(t);if(!s)return-1;const a=n.minutes+n.hours*60,o=s.minutes+s.hours*60;return a===o?0:a>o?1:-1},$5=e=>`${e}`.padStart(2,"0"),hf=e=>`${$5(e.hours)}:${$5(e.minutes)}`,n0e=(e,t)=>{const n=hl(e);if(!n)return"";const s=hl(t);if(!s)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=s.minutes,a.hours+=s.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,hf(a)};var s0e=j({name:"ElTimeSelect",__name:"time-select",props:t0e,emits:[Pt,"blur","focus","clear",ct],setup(e,{expose:t}){ht.extend(hw);const{Option:n}=jc,s=e,a=Ee("input"),o=F(),r=Pn(),{lang:i}=Rt(),l=k(()=>s.modelValue),c=k(()=>{const b=hl(s.start);return b?hf(b):null}),u=k(()=>{const b=hl(s.end);return b?hf(b):null}),d=k(()=>{const b=hl(s.step);return b?hf(b):null}),h=k(()=>{const b=hl(s.minTime||"");return b?hf(b):null}),p=k(()=>{const b=hl(s.maxTime||"");return b?hf(b):null}),v=k(()=>{var b;const C=[],w=(_,x)=>{C.push({value:_,disabled:q4(x,h.value||"-1:-1")<=0||q4(x,p.value||"100:100")>=0})};if(s.start&&s.end&&s.step){let _=c.value,x;for(;_&&u.value&&q4(_,u.value)<=0;)x=ht(_,"HH:mm").locale(i.value).format(s.format),w(x,_),_=n0e(_,d.value);if(s.includeEndTime&&u.value&&((b=C[C.length-1])==null?void 0:b.value)!==u.value){const E=ht(u.value,"HH:mm").locale(i.value).format(s.format);w(E,u.value)}}return C});return t({blur:()=>{var b,C;(C=(b=o.value)==null?void 0:b.blur)==null||C.call(b)},focus:()=>{var b,C;(C=(b=o.value)==null?void 0:b.focus)==null||C.call(b)}}),(b,C)=>(S(),ce(f(jc),{ref_key:"select",ref:o,"model-value":l.value,disabled:f(r),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"empty-values":e.emptyValues,"value-on-clear":e.valueOnClear,"popper-class":e.popperClass,"popper-style":e.popperStyle,"onUpdate:modelValue":C[0]||(C[0]=w=>b.$emit(f(ct),w)),onChange:C[1]||(C[1]=w=>b.$emit(f(Pt),w)),onBlur:C[2]||(C[2]=w=>b.$emit("blur",w)),onFocus:C[3]||(C[3]=w=>b.$emit("focus",w)),onClear:C[4]||(C[4]=()=>b.$emit("clear"))},{prefix:X(()=>[e.prefixIcon?(S(),ce(f(Ye),{key:0,class:D(f(a).e("prefix-icon"))},{default:X(()=>[(S(),ce(bt(e.prefixIcon)))]),_:1},8,["class"])):ie("v-if",!0)]),default:X(()=>[(S(!0),P(Ve,null,yt(v.value,w=>(S(),ce(f(n),{key:w.value,label:w.value,value:w.value,disabled:w.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"]))}});const a0e=pt(s0e),y7="timeline",o0e=Me({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),r0e=j({name:"ElTimeline",props:o0e,setup(e,{slots:t}){const n=Ee("timeline");Mt(y7,{props:e,slots:t});const s=k(()=>[n.b(),n.is(e.mode)]);return()=>{var a,o;const r=Co((o=(a=t.default)==null?void 0:a.call(t))!=null?o:[]);return ot("ul",{class:s.value},e.reverse?r.reverse():r)}}}),i0e=Me({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:en},hollow:Boolean});var w7=j({name:"ElTimelineItem",__name:"timeline-item",props:i0e,setup(e){const t=e,{props:n}=je(y7),s=Ee("timeline-item"),a=k(()=>[s.e("node"),s.em("node",t.size||""),s.em("node",t.type||""),s.is("hollow",t.hollow)]),o=k(()=>[s.b(),{[s.e("center")]:t.center},s.is(n.mode)]);return(r,i)=>(S(),P("li",{class:D(o.value)},[A("div",{class:D(f(s).e("tail"))},null,2),r.$slots.dot?ie("v-if",!0):(S(),P("div",{key:0,class:D(a.value),style:tt({backgroundColor:e.color})},[e.icon?(S(),ce(f(Ye),{key:0,class:D(f(s).e("icon"))},{default:X(()=>[(S(),ce(bt(e.icon)))]),_:1},8,["class"])):ie("v-if",!0)],6)),r.$slots.dot?(S(),P("div",{key:1,class:D(f(s).e("dot"))},[ue(r.$slots,"dot")],2)):ie("v-if",!0),A("div",{class:D(f(s).e("wrapper"))},[!e.hideTimestamp&&e.placement==="top"?(S(),P("div",{key:0,class:D([f(s).e("timestamp"),f(s).is("top")])},ge(e.timestamp),3)):ie("v-if",!0),A("div",{class:D(f(s).e("content"))},[ue(r.$slots,"default")],2),!e.hideTimestamp&&e.placement==="bottom"?(S(),P("div",{key:1,class:D([f(s).e("timestamp"),f(s).is("bottom")])},ge(e.timestamp),3)):ie("v-if",!0)],2)],2))}});const l0e=pt(r0e,{TimelineItem:w7}),c0e=En(w7),_7="left-check-change",C7="right-check-change",pf=Me({data:{type:re(Array),default:()=>[]},titles:{type:re(Array),default:()=>[]},buttonTexts:{type:re(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:re(Function)},leftDefaultChecked:{type:re(Array),default:()=>[]},rightDefaultChecked:{type:re(Array),default:()=>[]},renderContent:{type:re(Function)},modelValue:{type:re(Array),default:()=>[]},format:{type:re(Object),default:()=>({})},filterable:Boolean,props:{type:re(Object),default:()=>Tn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),v3=(e,t)=>[e,t].every(ke)||ke(e)&&Un(t),u0e={[Pt]:(e,t,n)=>[e,n].every(ke)&&["left","right"].includes(t),[ct]:e=>ke(e),[_7]:v3,[C7]:v3},m3="checked-change",d0e=Me({data:pf.data,optionRender:{type:re(Function)},placeholder:String,title:String,filterable:Boolean,format:pf.format,filterMethod:pf.filterMethod,defaultChecked:pf.leftDefaultChecked,props:pf.props}),f0e={[m3]:v3},c2=e=>{const t={label:"label",key:"key",disabled:"disabled"};return k(()=>({...t,...e.props}))},h0e=(e,t,n)=>{const s=c2(e),a=k(()=>e.data.filter(u=>nt(e.filterMethod)?e.filterMethod(t.query,u):String(u[s.value.label]||u[s.value.key]).toLowerCase().includes(t.query.toLowerCase()))),o=k(()=>a.value.filter(u=>!u[s.value.disabled])),r=k(()=>{const u=t.checked.length,d=e.data.length,{noChecked:h,hasChecked:p}=e.format;return h&&p?u>0?p.replace(/\${checked}/g,u.toString()).replace(/\${total}/g,d.toString()):h.replace(/\${total}/g,d.toString()):`${u}/${d}`}),i=k(()=>{const u=t.checked.length;return u>0&&u<o.value.length}),l=()=>{const u=o.value.map(d=>d[s.value.key]);t.allChecked=u.length>0&&u.every(d=>t.checked.includes(d))},c=u=>{t.checked=u?o.value.map(d=>d[s.value.key]):[]};return be(()=>t.checked,(u,d)=>{if(l(),t.checkChangeByUser){const h=u.concat(d).filter(p=>!u.includes(p)||!d.includes(p));n(m3,u,h)}else n(m3,u),t.checkChangeByUser=!0}),be(o,()=>{l()}),be(()=>e.data,()=>{const u=[],d=a.value.map(h=>h[s.value.key]);t.checked.forEach(h=>{d.includes(h)&&u.push(h)}),t.checkChangeByUser=!1,t.checked=u}),be(()=>e.defaultChecked,(u,d)=>{if(d&&u.length===d.length&&u.every(v=>d.includes(v)))return;const h=[],p=o.value.map(v=>v[s.value.key]);u.forEach(v=>{p.includes(v)&&h.push(v)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:a,checkableData:o,checkedSummary:r,isIndeterminate:i,updateAllChecked:l,handleAllCheckedChange:c}};var D5=j({name:"ElTransferPanel",__name:"transfer-panel",props:d0e,emits:f0e,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Hn(),r=({option:_})=>_,{t:i}=Rt(),l=Ee("transfer"),c=Kt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=c2(s),{filteredData:d,checkedSummary:h,isIndeterminate:p,handleAllCheckedChange:v}=h0e(s,c,a),m=k(()=>!Pa(c.query)&&Pa(d.value)),g=k(()=>!Pa(o.default()[0].children)),{checked:b,allChecked:C,query:w}=gs(c);return t({query:w}),(_,x)=>(S(),P("div",{class:D(f(l).b("panel"))},[A("p",{class:D(f(l).be("panel","header"))},[W(f(Sr),{modelValue:f(C),"onUpdate:modelValue":x[0]||(x[0]=E=>vn(C)?C.value=E:null),indeterminate:f(p),"validate-event":!1,onChange:f(v)},{default:X(()=>[We(ge(e.title)+" ",1),A("span",null,ge(f(h)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),A("div",{class:D([f(l).be("panel","body"),f(l).is("with-footer",g.value)])},[e.filterable?(S(),ce(f(ga),{key:0,modelValue:f(w),"onUpdate:modelValue":x[1]||(x[1]=E=>vn(w)?w.value=E:null),class:D(f(l).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":f(jk),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):ie("v-if",!0),gt(W(f(dw),{modelValue:f(b),"onUpdate:modelValue":x[2]||(x[2]=E=>vn(b)?b.value=E:null),"validate-event":!1,class:D([f(l).is("filterable",e.filterable),f(l).be("panel","list")])},{default:X(()=>[(S(!0),P(Ve,null,yt(f(d),E=>(S(),ce(f(Sr),{key:E[f(u).key],class:D(f(l).be("panel","item")),value:E[f(u).key],disabled:E[f(u).disabled],"validate-event":!1},{default:X(()=>{var T;return[W(r,{option:(T=e.optionRender)==null?void 0:T.call(e,E)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[Bt,!m.value&&!f(Pa)(e.data)]]),gt(A("div",{class:D(f(l).be("panel","empty"))},[ue(_.$slots,"empty",{},()=>[We(ge(m.value?f(i)("el.transfer.noMatch"):f(i)("el.transfer.noData")),1)])],2),[[Bt,m.value||f(Pa)(e.data)]])],2),g.value?(S(),P("p",{key:0,class:D(f(l).be("panel","footer"))},[ue(_.$slots,"default")],2)):ie("v-if",!0)],2))}});const p0e=e=>{const t=c2(e),n=k(()=>e.data.reduce((o,r)=>(o[r[t.value.key]]=r)&&o,{})),s=k(()=>e.data.filter(o=>!e.modelValue.includes(o[t.value.key]))),a=k(()=>e.targetOrder==="original"?e.data.filter(o=>e.modelValue.includes(o[t.value.key])):e.modelValue.reduce((o,r)=>{const i=n.value[r];return i&&o.push(i),o},[]));return{sourceData:s,targetData:a}},v0e=(e,t,n)=>{const s=c2(e),a=(i,l,c)=>{n(ct,i),n(Pt,i,l,c)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(l=>{const c=i.indexOf(l);c>-1&&i.splice(c,1)}),a(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const l=e.data.filter(c=>{const u=c[s.value.key];return t.leftChecked.includes(u)&&!e.modelValue.includes(u)}).map(c=>c[s.value.key]);i=e.targetOrder==="unshift"?l.concat(i):i.concat(l),e.targetOrder==="original"&&(i=e.data.filter(c=>i.includes(c[s.value.key])).map(c=>c[s.value.key])),a(i,"right",t.leftChecked)}}},m0e=(e,t)=>({onSourceCheckedChange:(a,o)=>{e.leftChecked=a,o&&t(_7,a,o)},onTargetCheckedChange:(a,o)=>{e.rightChecked=a,o&&t(C7,a,o)}}),g0e={key:0},b0e={key:0};var y0e=j({name:"ElTransfer",__name:"transfer",props:pf,emits:u0e,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Hn(),{t:r}=Rt(),i=Ee("transfer"),{formItem:l}=Ms(),c=Kt({leftChecked:[],rightChecked:[]}),u=c2(s),{sourceData:d,targetData:h}=p0e(s),{onSourceCheckedChange:p,onTargetCheckedChange:v}=m0e(c,a),{addToLeft:m,addToRight:g}=v0e(s,c,a),b=F(),C=F(),w=I=>{switch(I){case"left":b.value.query="";break;case"right":C.value.query="";break}},_=k(()=>s.buttonTexts.length===2),x=k(()=>s.titles[0]||r("el.transfer.titles.0")),E=k(()=>s.titles[1]||r("el.transfer.titles.1")),T=k(()=>s.filterPlaceholder||r("el.transfer.filterPlaceholder"));be(()=>s.modelValue,()=>{var I;s.validateEvent&&((I=l==null?void 0:l.validate)==null||I.call(l,"change").catch(M=>void 0))});const R=k(()=>I=>{var M;if(s.renderContent)return s.renderContent(ot,I);const $=(((M=o.default)==null?void 0:M.call(o,{option:I}))||[]).filter(L=>L.type!==Kn);return $.length?$:ot("span",I[u.value.label]||I[u.value.key])});return t({clearQuery:w,leftPanel:b,rightPanel:C}),(I,M)=>(S(),P("div",{class:D(f(i).b())},[W(D5,{ref_key:"leftPanel",ref:b,data:f(d),"option-render":R.value,placeholder:T.value,title:x.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:s.props,onCheckedChange:f(p)},{empty:X(()=>[ue(I.$slots,"left-empty")]),default:X(()=>[ue(I.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),A("div",{class:D(f(i).e("buttons"))},[W(f(ps),{type:"primary",class:D([f(i).e("button"),f(i).is("with-texts",_.value)]),disabled:f(Pa)(c.rightChecked),onClick:f(m)},{default:X(()=>[W(f(Ye),null,{default:X(()=>[W(f(Go))]),_:1}),f(Dt)(e.buttonTexts[0])?ie("v-if",!0):(S(),P("span",g0e,ge(e.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),W(f(ps),{type:"primary",class:D([f(i).e("button"),f(i).is("with-texts",_.value)]),disabled:f(Pa)(c.leftChecked),onClick:f(g)},{default:X(()=>[f(Dt)(e.buttonTexts[1])?ie("v-if",!0):(S(),P("span",b0e,ge(e.buttonTexts[1]),1)),W(f(Ye),null,{default:X(()=>[W(f(Ds))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),W(D5,{ref_key:"rightPanel",ref:C,data:f(h),"option-render":R.value,placeholder:T.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:E.value,"default-checked":e.rightDefaultChecked,props:s.props,onCheckedChange:f(v)},{empty:X(()=>[ue(I.$slots,"right-empty")]),default:X(()=>[ue(I.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});const w0e=pt(y0e),Ff="$treeNodeId",F5=function(e,t){!t||t[Ff]||Object.defineProperty(t,Ff,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Uw=(e,t)=>t==null?void 0:t[e||Ff],g3=(e,t,n)=>{const s=e.value.currentNode;n();const a=e.value.currentNode;s!==a&&t("current-change",a?a.data:null,a)};var _0e=Object.defineProperty,C0e=(e,t,n)=>t in e?_0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ps=(e,t,n)=>C0e(e,typeof t!="symbol"?t+"":t,n);const S7=e=>{let t=!0,n=!0,s=!0,a=!0;for(let o=0,r=e.length;o<r;o++){const i=e[o];(i.checked!==!0||i.indeterminate)&&(t=!1,i.disabled||(s=!1)),(i.checked!==!1||i.indeterminate)&&(n=!1),i.isEffectivelyChecked||(a=!1)}return{all:t,none:n,allWithoutDisable:s,half:!t&&!n,isEffectivelyChecked:a}},K0=function(e){if(e.childNodes.length===0||e.loading){e.isEffectivelyChecked=e.disabled||e.checked;return}const{all:t,none:n,half:s,isEffectivelyChecked:a}=S7(e.childNodes);e.isEffectivelyChecked=a,t?(e.checked=!0,e.indeterminate=!1):s?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const o=e.parent;!o||o.level===0||e.store.checkStrictly||K0(o)},N2=function(e,t){const n=e.store.props,s=e.data||{},a=n[t];if(nt(a))return a(s,e);if(Xe(a))return s[a];if(Dt(a)){const o=s[t];return Dt(o)?"":o}},b3=function(e,t){e.forEach(n=>{n.canFocus=t,b3(n.childNodes,t)})};let S0e=0,y3=class lg{constructor(t){Ps(this,"id"),Ps(this,"text"),Ps(this,"checked"),Ps(this,"indeterminate"),Ps(this,"data"),Ps(this,"expanded"),Ps(this,"parent"),Ps(this,"visible"),Ps(this,"isCurrent"),Ps(this,"store"),Ps(this,"isLeafByUser"),Ps(this,"isLeaf"),Ps(this,"canFocus"),Ps(this,"level"),Ps(this,"loaded"),Ps(this,"childNodes"),Ps(this,"loading"),Ps(this,"isEffectivelyChecked",!1),this.id=S0e++,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 n in t)Wt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var t;const n=this.store;if(!n)throw new Error("[Node]store is required!");n.registerNode(this);const s=n.props;if(s&&typeof s.isLeaf<"u"){const r=N2(this,"isLeaf");Qt(r)&&(this.isLeafByUser=r)}if(n.lazy!==!0&&this.data?(this.setData(this.data),n.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&n.lazy&&n.defaultExpandAll&&!this.isLeafByUser&&this.expand(),ke(this.data)||F5(this,this.data),!this.data)return;const a=n.defaultExpandedKeys,o=n.key;o&&!Un(this.key)&&a&&a.includes(this.key)&&this.expand(null,n.autoExpandParent),o&&n.currentNodeKey!==void 0&&this.key===n.currentNodeKey&&(n.currentNode&&(n.currentNode.isCurrent=!1),n.currentNode=this,n.currentNode.isCurrent=!0),n.lazy&&n._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((t=this.parent)==null?void 0:t.expanded)===!0)&&(this.canFocus=!0)}setData(t){ke(t)||F5(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&ke(this.data)?n=this.data:n=N2(this,"children")||[];for(let s=0,a=n.length;s<a;s++)this.insertChild({data:n[s]})}get label(){return N2(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return N2(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(s=>s===t||n&&s.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,s){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof lg)){if(!s){const a=this.getChildren(!0);a!=null&&a.includes(t.data)||(Dt(n)||n<0?a==null||a.push(t.data):a==null||a.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Kt(new lg(t)),t instanceof lg&&t.initialize()}t.level=this.level+1,Dt(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let s;n&&(s=this.childNodes.indexOf(n)),this.insertChild(t,s)}insertAfter(t,n){let s;n&&(s=this.childNodes.indexOf(n),s!==-1&&(s+=1)),this.insertChild(t,s)}removeChild(t){const n=this.getChildren()||[],s=n.indexOf(t.data);s>-1&&n.splice(s,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(s=>s.data===t);n&&this.removeChild(n)}expand(t,n){const s=()=>{if(n){let a=this.parent;for(;a&&a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),b3(this.childNodes,!0)};this.shouldLoadData()?this.loadData(a=>{ke(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||K0(this),s())}):s()}doCreateChildren(t,n={}){t.forEach(s=>{this.insertChild(Object.assign({data:s},n),void 0,!0)})}collapse(){this.expanded=!1,b3(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,n,s,a){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 r=()=>{if(n){const i=this.childNodes;for(let d=0,h=i.length;d<h;d++){const p=i[d];a=a||t!==!1;const v=p.disabled&&p.isLeaf?p.checked:a;p.setChecked(v,n,!0,a)}const{half:l,all:c,isEffectivelyChecked:u}=S7(i);c||(this.checked=c,this.indeterminate=l),this.isEffectivelyChecked=this.childNodes.length?u:this.disabled||this.checked}};if(this.shouldLoadData()){this.loadData(()=>{r(),K0(this)},{checked:t!==!1});return}else r()}const o=this.parent;!o||o.level===0||s||K0(o)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const s=this.store.props;let a="children";return s&&(a=s.children||"children"),Dt(n[a])&&(n[a]=null),t&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(o=>o.data),s={},a=[];t.forEach((o,r)=>{const i=o[Ff];!!i&&n.some(c=>(c==null?void 0:c[Ff])===i)?s[i]={index:r,data:o}:a.push({index:r,data:o})}),this.store.lazy||n.forEach(o=>{s[o==null?void 0:o[Ff]]||this.removeChildByData(o)}),a.forEach(({index:o,data:r})=>{this.insertChild({data:r},o)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const s=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,o)},a=()=>{this.loading=!1};this.store.load(this,s,a)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const s=n.shift();n.unshift(...s.childNodes),t(s)}}reInitChecked(){this.store.checkStrictly||K0(this)}};var x0e=Object.defineProperty,E0e=(e,t,n)=>t in e?x0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qs=(e,t,n)=>E0e(e,typeof t!="symbol"?t+"":t,n);class k0e{constructor(t){Qs(this,"currentNode"),Qs(this,"currentNodeKey"),Qs(this,"nodesMap"),Qs(this,"root"),Qs(this,"data"),Qs(this,"lazy",!1),Qs(this,"load"),Qs(this,"filterNodeMethod"),Qs(this,"key"),Qs(this,"defaultCheckedKeys"),Qs(this,"checkStrictly",!1),Qs(this,"defaultExpandedKeys"),Qs(this,"autoExpandParent",!1),Qs(this,"defaultExpandAll",!1),Qs(this,"checkDescendants",!1),Qs(this,"props"),this.currentNode=null,this.currentNodeKey=null;for(const n in t)Wt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new y3({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()},Yt)}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,s=this.lazy,a=async function(o){const r=o.root?o.root.childNodes:o.childNodes;for(const[i,l]of r.entries())l.visible=!!(n!=null&&n.call(l,t,l.data,l)),i%80===0&&i>0&&await ze(),await a(l);if(!o.visible&&r.length){let i=!0;i=!r.some(l=>l.visible),o.root?o.root.visible=i===!1:o.visible=i===!1}t&&o.visible&&!o.isLeaf&&(!s||o.loaded)&&o.expand()};a(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 y3)return t;const n=ft(t)?Uw(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){var s;const a=this.getNode(n);(s=a.parent)==null||s.insertBefore({data:t},a)}insertAfter(t,n){var s;const a=this.getNode(n);(s=a.parent)==null||s.insertAfter({data:t},a)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const s=Xa(n)?this.root:this.getNode(n);s&&s.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(s=>{const a=n[s];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){const n=this.defaultCheckedKeys||[];!Un(t.key)&&n.includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;if(!(!t||!t.data))if(!n)this.nodesMap[t.id]=t;else{const s=t.key;Un(s)||(this.nodesMap[s]=t)}}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(s=>{this.deregisterNode(s)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const s=[],a=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(i=>{(i.checked||n&&i.indeterminate)&&(!t||t&&i.isLeaf)&&s.push(i.data),a(i)})};return a(this),s}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(s){(s.root?s.root.childNodes:s.childNodes).forEach(o=>{o.indeterminate&&t.push(o.data),n(o)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const s in n)Wt(n,s)&&t.push(n[s]);return t}updateChildren(t,n){const s=this.nodesMap[t];if(!s)return;const a=s.childNodes;for(let o=a.length-1;o>=0;o--){const r=a[o];this.remove(r.data)}for(let o=0,r=n.length;o<r;o++){const i=n[o];this.append(i,s.data)}}_setCheckedKeys(t,n=!1,s){const a=this._getAllNodes().sort((l,c)=>l.level-c.level),o=Object.create(null),r=Object.keys(s);a.forEach(l=>l.setChecked(!1,!1));const i=l=>{l.childNodes.forEach(c=>{var u;o[c.data[t]]=!0,(u=c.childNodes)!=null&&u.length&&i(c)})};for(let l=0,c=a.length;l<c;l++){const u=a[l],d=u.data[t].toString();if(!r.includes(d)){u.checked&&!o[d]&&u.setChecked(!1,!1);continue}if(u.childNodes.length&&i(u),u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),n){u.setChecked(!1,!1);const p=function(v){v.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),p(g)})};p(u)}}}setCheckedNodes(t,n=!1){const s=this.key,a={};t.forEach(o=>{a[(o||{})[s]]=!0}),this._setCheckedKeys(s,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const s=this.key,a={};t.forEach(o=>{a[o]=!0}),this._setCheckedKeys(s,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const s=this.getNode(n);s&&s.expand(null,this.autoExpandParent)})}setChecked(t,n,s){const a=this.getNode(t);a&&a.setChecked(!!n,s)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){var s;const a=t[this.key],o=this.nodesMap[a];this.setCurrentNode(o),n&&this.currentNode&&this.currentNode.level>1&&((s=this.currentNode.parent)==null||s.expand(null,!0))}setCurrentNodeKey(t,n=!0){var s;if(this.currentNodeKey=t,Xa(t)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const a=this.getNode(t);a&&(this.setCurrentNode(a),n&&this.currentNode&&this.currentNode.level>1&&((s=this.currentNode.parent)==null||s.expand(null,!0)))}}const qw="RootTree",x7="NodeInstance",B5="TreeNodeMap";var A0e=j({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Ee("tree"),n=je(x7),s=je(qw);return()=>{const a=e.node,{data:o,store:r}=a;return e.renderContent?e.renderContent(ot,{_self:n,node:a,data:o,store:r}):ue(s.ctx.slots,"default",{node:a,data:o},()=>[ot(Kw,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[a.label])])}}});function E7(e){const t=je(B5,null);let n={treeNodeExpand:s=>{var a;e.node!==s&&((a=e.node)==null||a.collapse())},children:new Set};return t&&t.children.add(n),qt(()=>{t&&t.children.delete(n),n=null}),Mt(B5,n),{broadcastExpanded:s=>{if(e.accordion)for(const a of n.children)a.treeNodeExpand(s)}}}const k7=Symbol("dragEvents");function T0e({props:e,ctx:t,el$:n,dropIndicator$:s,store:a}){const o=Ee("tree"),r=F({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Mt(k7,{treeNodeDragStart:({event:u,treeNode:d})=>{if(u.dataTransfer){if(nt(e.allowDrag)&&!e.allowDrag(d.node))return u.preventDefault(),!1;u.dataTransfer.effectAllowed="move";try{u.dataTransfer.setData("text/plain","")}catch{}r.value.draggingNode=d,t.emit("node-drag-start",d.node,u)}},treeNodeDragOver:({event:u,treeNode:d})=>{if(!u.dataTransfer)return;const h=d,p=r.value.dropNode;p&&p.node.id!==h.node.id&&ba(p.$el,o.is("drop-inner"));const v=r.value.draggingNode;if(!v||!h)return;let m=!0,g=!0,b=!0,C=!0;nt(e.allowDrop)&&(m=e.allowDrop(v.node,h.node,"prev"),C=g=e.allowDrop(v.node,h.node,"inner"),b=e.allowDrop(v.node,h.node,"next")),u.dataTransfer.dropEffect=g||m||b?"move":"none",(m||g||b)&&(p==null?void 0:p.node.id)!==h.node.id&&(p&&t.emit("node-drag-leave",v.node,p.node,u),t.emit("node-drag-enter",v.node,h.node,u)),m||g||b?r.value.dropNode=h:r.value.dropNode=null,h.node.nextSibling===v.node&&(b=!1),h.node.previousSibling===v.node&&(m=!1),h.node.contains(v.node,!1)&&(g=!1),(v.node===h.node||v.node.contains(h.node))&&(m=!1,g=!1,b=!1);const w=h.$el,_=w.querySelector(`.${o.be("node","content")}`).getBoundingClientRect(),x=n.value.getBoundingClientRect(),E=n.value.scrollTop;let T;const R=m?g?.25:b?.45:1:Number.NEGATIVE_INFINITY,I=b?g?.75:m?.55:0:Number.POSITIVE_INFINITY;let M=-9999;const $=u.clientY-_.top;$<_.height*R?T="before":$>_.height*I?T="after":g?T="inner":T="none";const L=w.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),B=s.value;T==="before"?M=L.top-x.top+E:T==="after"&&(M=L.bottom-x.top+E),B.style.top=`${M}px`,B.style.left=`${L.right-x.left}px`,T==="inner"?Wo(w,o.is("drop-inner")):ba(w,o.is("drop-inner")),r.value.showDropIndicator=T==="before"||T==="after",r.value.allowDrop=r.value.showDropIndicator||C,r.value.dropType=T,t.emit("node-drag-over",v.node,h.node,u)},treeNodeDragEnd:u=>{var d,h;const{draggingNode:p,dropType:v,dropNode:m}=r.value;if(u.preventDefault(),u.dataTransfer&&(u.dataTransfer.dropEffect="move"),p!=null&&p.node.data&&m){const g={data:p.node.data};v!=="none"&&p.node.remove(),v==="before"?(d=m.node.parent)==null||d.insertBefore(g,m.node):v==="after"?(h=m.node.parent)==null||h.insertAfter(g,m.node):v==="inner"&&m.node.insertChild(g),v!=="none"&&(a.value.registerNode(g),a.value.key&&p.node.eachNode(b=>{var C;(C=a.value.nodesMap[b.data[a.value.key]])==null||C.setChecked(b.checked,!a.value.checkStrictly)})),ba(m.$el,o.is("drop-inner")),t.emit("node-drag-end",p.node,m.node,v,u),v!=="none"&&t.emit("node-drop",p.node,m.node,v,u)}p&&!m&&t.emit("node-drag-end",p.node,null,v,u),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}var M0e=j({name:"ElTreeNode",components:{ElCollapseTransition:$b,ElCheckbox:Sr,NodeContent:A0e,ElIcon:Ye,Loading:Ao},props:{node:{type:y3,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=Ee("tree"),{broadcastExpanded:s}=E7(e),a=je(qw),o=F(!1),r=F(!1),i=F(),l=F(),c=F(),u=je(k7),d=Ct();Mt(x7,d),e.node.expanded&&(o.value=!0,r.value=!0);const h=a.props.props.children||"children";be(()=>{var I;const M=(I=e.node.data)==null?void 0:I[h];return M&&[...M]},()=>{e.node.updateChildren()}),be(()=>e.node.indeterminate,I=>{m(e.node.checked,I)}),be(()=>e.node.checked,I=>{m(I,e.node.indeterminate)}),be(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),be(()=>e.node.expanded,I=>{ze(()=>o.value=I),I&&(r.value=!0)});const p=I=>Uw(a.props.nodeKey,I.data),v=I=>{const M=e.props.class;if(!M)return{};let $;if(nt(M)){const{data:L}=I;$=M(L,I)}else $=M;return Xe($)?{[$]:!0}:$},m=(I,M)=>{(i.value!==I||l.value!==M)&&a.ctx.emit("check-change",e.node.data,I,M),i.value=I,l.value=M},g=I=>{g3(a.store,a.ctx.emit,()=>{var M;if((M=a==null?void 0:a.props)==null?void 0:M.nodeKey){const L=p(e.node);a.store.value.setCurrentNodeKey(L)}else a.store.value.setCurrentNode(e.node)}),a.currentNode.value=e.node,a.props.expandOnClickNode&&C(),(a.props.checkOnClickNode||e.node.isLeaf&&a.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&w(!e.node.checked),a.ctx.emit("node-click",e.node.data,e.node,d,I)},b=I=>{var M;(M=a.instance.vnode.props)!=null&&M.onNodeContextmenu&&(I.stopPropagation(),I.preventDefault()),a.ctx.emit("node-contextmenu",I,e.node.data,e.node,d)},C=()=>{e.node.isLeaf||(o.value?(a.ctx.emit("node-collapse",e.node.data,e.node,d),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,d)}))},w=I=>{const M=a==null?void 0:a.props.checkStrictly,$=e.node.childNodes;!M&&$.length&&(I=$.some(L=>!L.isEffectivelyChecked)),e.node.setChecked(I,!M),ze(()=>{const L=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:L.getCheckedNodes(),checkedKeys:L.getCheckedKeys(),halfCheckedNodes:L.getHalfCheckedNodes(),halfCheckedKeys:L.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:a,expanded:o,childNodeRendered:r,oldChecked:i,oldIndeterminate:l,getNodeKey:p,getNodeClass:v,handleSelectChange:m,handleClick:g,handleContextMenu:b,handleExpandIconClick:C,handleCheckChange:w,handleChildNodeExpand:(I,M,$)=>{s(M),a.ctx.emit("node-expand",I,M,$)},handleDragStart:I=>{a.props.draggable&&u.treeNodeDragStart({event:I,treeNode:e})},handleDragOver:I=>{I.preventDefault(),a.props.draggable&&u.treeNodeDragOver({event:I,treeNode:{$el:c.value,node:e.node}})},handleDrop:I=>{I.preventDefault()},handleDragEnd:I=>{a.props.draggable&&u.treeNodeDragEnd(I)},CaretRight:$8}}});const P0e=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],R0e=["aria-expanded"];function I0e(e,t,n,s,a,o){const r=qe("el-icon"),i=qe("el-checkbox"),l=qe("loading"),c=qe("node-content"),u=qe("el-tree-node"),d=qe("el-collapse-transition");return gt((S(),P("div",{ref:"node$",class:D([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=it((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[3]||(t[3]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[4]||(t[4]=it((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[5]||(t[5]=it((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[6]||(t[6]=it((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[7]||(t[7]=it((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[A("div",{class:D(e.ns.be("node","content")),style:tt({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(S(),ce(r,{key:0,class:D([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:it(e.handleExpandIconClick,["stop"])},{default:X(()=>[(S(),ce(bt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ie("v-if",!0),e.showCheckbox?(S(),ce(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=it(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):ie("v-if",!0),e.node.loading?(S(),ce(r,{key:2,class:D([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:X(()=>[W(l)]),_:1},8,["class"])):ie("v-if",!0),W(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),W(d,null,{default:X(()=>[!e.renderAfterExpand||e.childNodeRendered?gt((S(),P("div",{key:0,class:D(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=it(()=>{},["stop"]))},[(S(!0),P(Ve,null,yt(e.node.childNodes,h=>(S(),ce(u,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,R0e)),[[Bt,e.expanded]]):ie("v-if",!0)]),_:1})],42,P0e)),[[Bt,e.node.visible]])}var L0e=is(M0e,[["render",I0e]]);function O0e({el$:e},t){const n=Ee("tree");St(()=>{o()}),Pr(()=>{var r;(r=e.value)==null||r.querySelectorAll("input[type=checkbox]").forEach(i=>{i.setAttribute("tabindex","-1")})});function s(r,i){var l,c;const u=t.value.getNode(r[i].dataset.key);return u.canFocus&&u.visible&&(((l=u.parent)==null?void 0:l.expanded)||((c=u.parent)==null?void 0:c.level)===0)}Xt(e,"keydown",r=>{const i=r.target;if(!i.className.includes(n.b("node")))return;const l=an(r),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),u=c.indexOf(i);let d;if([Te.up,Te.down].includes(l)){if(r.preventDefault(),l===Te.up){d=u===-1?0:u!==0?u-1:c.length-1;const p=d;for(;!s(c,d);){if(d--,d===p){d=-1;break}d<0&&(d=c.length-1)}}else{d=u===-1?0:u<c.length-1?u+1:0;const p=d;for(;!s(c,d);){if(d++,d===p){d=-1;break}d>=c.length&&(d=0)}}d!==-1&&c[d].focus()}[Te.left,Te.right].includes(l)&&(r.preventDefault(),i.click());const h=i.querySelector('[type="checkbox"]');[Te.enter,Te.numpadEnter,Te.space].includes(l)&&h&&(r.preventDefault(),h.click())});const o=()=>{var r;if(!e.value)return;const i=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(u=>{u.setAttribute("tabindex","-1")});const c=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(c.length){c[0].setAttribute("tabindex","0");return}(r=i[0])==null||r.setAttribute("tabindex","0")}}const A7=Me({data:{type:re(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:re(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:re(Function)},allowDrop:{type:re(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:en}}),N0e={"check-change":(e,t,n)=>e&&Qt(t)&&Qt(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,s)=>e&&t&&s instanceof Event,"node-contextmenu":(e,t,n,s)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,s)=>e&&s,"node-drop":(e,t,n,s)=>e&&t&&s,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n};var $0e=j({name:"ElTree",components:{ElTreeNode:L0e},props:A7,emits:N0e,setup(e,t){const{t:n}=Rt(),s=Ee("tree"),a=F(new k0e({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const o=F(a.value.root),r=F(null),i=F(null),l=F(null),{broadcastExpanded:c}=E7(e),{dragState:u}=T0e({props:e,ctx:t,el$:i,dropIndicator$:l,store:a});O0e({el$:i},a);const d=Ct(),h=k(()=>{let z=d==null?void 0:d.parent;for(;z;){if(z.type.name==="ElTreeSelect")return!0;z=z.parent}return!1}),p=k(()=>{const{childNodes:z}=o.value;return(!z||z.length===0||z.every(({visible:G})=>!G))&&!h.value});be(()=>e.currentNodeKey,z=>{a.value.setCurrentNodeKey(z??null)}),be(()=>e.defaultCheckedKeys,(z,G)=>{On(z,G)||a.value.setDefaultCheckedKey(z??[])}),be(()=>e.defaultExpandedKeys,z=>{a.value.setDefaultExpandedKeys(z??[])}),be(()=>e.data,z=>{a.value.setData(z)},{deep:!0}),be(()=>e.checkStrictly,z=>{a.value.checkStrictly=z});const v=z=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(z)},m=z=>Uw(e.nodeKey,z.data),g=z=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${z}`)},b=z=>{g("getNodePath");const G=a.value.getNode(z);if(!G)return[];const Q=[G.data];let K=G.parent;for(;K&&K!==o.value;)Q.push(K.data),K=K.parent;return Q.reverse()},C=(z,G)=>a.value.getCheckedNodes(z,G),w=z=>a.value.getCheckedKeys(z),_=()=>{const z=a.value.getCurrentNode();return z?z.data:null},x=()=>{g("getCurrentKey");const z=_();return z?z[e.nodeKey]:null},E=(z,G)=>{g("setCheckedNodes"),a.value.setCheckedNodes(z,G)},T=(z,G)=>{g("setCheckedKeys"),a.value.setCheckedKeys(z,G)},R=(z,G,Q)=>{a.value.setChecked(z,G,Q)},I=()=>a.value.getHalfCheckedNodes(),M=()=>a.value.getHalfCheckedKeys(),$=(z,G=!0)=>{g("setCurrentNode"),g3(a,t.emit,()=>{c(z),a.value.setUserCurrentNode(z,G)})},L=(z=null,G=!0)=>{g("setCurrentKey"),g3(a,t.emit,()=>{c(),a.value.setCurrentNodeKey(z,G)})},B=z=>a.value.getNode(z),q=z=>{a.value.remove(z)},J=(z,G)=>{a.value.append(z,G)},Y=(z,G)=>{a.value.insertBefore(z,G)},O=(z,G)=>{a.value.insertAfter(z,G)},N=(z,G,Q)=>{c(G),t.emit("node-expand",z,G,Q)},V=(z,G)=>{g("updateKeyChild"),a.value.updateChildren(z,G)};return Mt(qw,{ctx:t,props:e,store:a,root:o,currentNode:r,instance:d}),Mt(Ci,void 0),{ns:s,store:a,root:o,currentNode:r,dragState:u,el$:i,dropIndicator$:l,isEmpty:p,filter:v,getNodeKey:m,getNodePath:b,getCheckedNodes:C,getCheckedKeys:w,getCurrentNode:_,getCurrentKey:x,setCheckedNodes:E,setCheckedKeys:T,setChecked:R,getHalfCheckedNodes:I,getHalfCheckedKeys:M,setCurrentNode:$,setCurrentKey:L,t:n,getNode:B,remove:q,append:J,insertBefore:Y,insertAfter:O,handleNodeExpand:N,updateKeyChildren:V}}});function D0e(e,t,n,s,a,o){const r=qe("el-tree-node");return S(),P("div",{ref:"el$",class:D([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(S(!0),P(Ve,null,yt(e.root.childNodes,i=>(S(),ce(r,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(S(),P("div",{key:0,class:D(e.ns.e("empty-block"))},[ue(e.$slots,"empty",{},()=>{var i;return[A("span",{class:D(e.ns.e("empty-text"))},ge((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)]})],2)):ie("v-if",!0),gt(A("div",{ref:"dropIndicator$",class:D(e.ns.e("drop-indicator"))},null,2),[[Bt,e.dragState.showDropIndicator]])],2)}var F0e=is($0e,[["render",D0e]]);const Gw=pt(F0e),B0e=(e,{attrs:t,emit:n},{select:s,tree:a,key:o})=>{const r=Ee("tree-select");be(()=>e.data,()=>{e.filterable&&ze(()=>{var c,u;(u=a.value)==null||u.filter((c=s.value)==null?void 0:c.states.inputValue)})},{flush:"post"});const i=c=>{var u;const d=c.at(-1);if(d.expanded&&d.childNodes.at(-1))i([d.childNodes.at(-1)]);else{const h=(u=a.value.el$)==null?void 0:u.querySelector(`[data-key="${c.at(-1).key}"]`);h==null||h.focus({preventScroll:!0});return}};return St(()=>{Xt(()=>{var c;return(c=s.value)==null?void 0:c.$el},"keydown",async c=>{const u=an(c),{dropdownMenuVisible:d}=s.value;[Te.down,Te.up].includes(u)&&d&&(await ze(),setTimeout(()=>{var h,p,v;if(Te.up===u){const m=a.value.store.root.childNodes;i(m);return}(v=(p=(h=s.value.optionsArray[s.value.states.hoveringIndex].$el)==null?void 0:h.parentNode)==null?void 0:p.parentNode)==null||v.focus({preventScroll:!0})}))},{capture:!0})}),{...El(gs(e),Object.keys(jc.props)),...t,class:k(()=>t.class),style:k(()=>t.style),"onUpdate:modelValue":c=>n(ct,c),valueKey:o,popperClass:k(()=>{const c=[r.e("popper")];return e.popperClass&&c.push(e.popperClass),c.join(" ")}),filterMethod:(c="")=>{var u;e.filterMethod?e.filterMethod(c):e.remoteMethod?e.remoteMethod(c):(u=a.value)==null||u.filter(c)}}},V0e=j({extends:l1,setup(e,t){const n=l1.setup(e,t);delete n.selectOptionClick;const s=Ct().proxy;return ze(()=>{n.select.states.cachedOptions.get(s.value)||n.select.onOptionCreate(s)}),be(()=>t.attrs.visible,a=>{ze(()=>{n.states.visible=a})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function w3(e){return e||e===0}function Yw(e){return ke(e)&&e.length}function uf(e){return ke(e)?e:w3(e)?[e]:[]}function cg(e,t,n,s,a){for(let o=0;o<e.length;o++){const r=e[o];if(t(r,o,e,a))return s?s(r,o,e,a):r;{const i=n(r);if(Yw(i)){const l=cg(i,t,n,s,r);if(l)return l}}}}function ug(e,t,n,s){for(let a=0;a<e.length;a++){const o=e[a];t(o,a,e,s);const r=n(o);Yw(r)&&ug(r,t,n,o)}}const z0e=(e,{attrs:t,slots:n,emit:s},{select:a,tree:o,key:r})=>{be([()=>e.modelValue,o],()=>{e.showCheckbox&&ze(()=>{const h=o.value;h&&!On(h.getCheckedKeys(),uf(e.modelValue))&&h.setCheckedKeys(uf(e.modelValue))})},{immediate:!0,deep:!0});const i=k(()=>({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(h,p)=>{var v;const m=i.value[h];return nt(m)?m(p,(v=o.value)==null?void 0:v.getNode(l("value",p))):p[m]},c=uf(e.modelValue).map(h=>cg(e.data||[],p=>l("value",p)===h,p=>l("children",p),(p,v,m,g)=>g&&l("value",g))).filter(h=>w3(h)),u=k(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const h=[];return ug(e.data.concat(e.cacheData),p=>{const v=l("value",p);h.push({value:v,currentLabel:l("label",p),isDisabled:l("disabled",p)})},p=>l("children",p)),h}),d=()=>{var h;return(h=o.value)==null?void 0:h.getCheckedKeys().filter(p=>{var v;const m=(v=o.value)==null?void 0:v.getNode(p);return!Un(m)&&Pa(m.childNodes)})};return{...El(gs(e),Object.keys(Gw.props)),...t,nodeKey:r,expandOnClickNode:k(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:k(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(h,{node:p,data:v,store:m})=>h(V0e,{value:l("value",v),label:l("label",v),disabled:l("disabled",v),visible:p.visible},e.renderContent?()=>e.renderContent(h,{node:p,data:v,store:m}):n.default?()=>n.default({node:p,data:v,store:m}):void 0),filterNodeMethod:(h,p,v)=>e.filterNodeMethod?e.filterNodeMethod(h,p,v):h?new RegExp(rw(h),"i").test(l("label",p)||""):!0,onNodeClick:(h,p,v)=>{var m,g,b;if((m=t.onNodeClick)==null||m.call(t,h,p,v),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||p.isLeaf)){if(!l("disabled",h)){const C=(g=a.value)==null?void 0:g.states.options.get(l("value",h));(b=a.value)==null||b.handleOptionSelect(C)}}else e.expandOnClickNode&&v.proxy.handleExpandIconClick()},onCheck:(h,p)=>{var v;if(!e.showCheckbox)return;const m=l("value",h),g={};ug([o.value.store.root],_=>g[_.key]=_,_=>_.childNodes);const b=p.checkedKeys,C=e.multiple?uf(e.modelValue).filter(_=>!(_ in g)&&!b.includes(_)):[],w=C.concat(b);if(e.checkStrictly)s(ct,e.multiple?w:w.includes(m)?m:void 0);else if(e.multiple){const _=d();s(ct,C.concat(_))}else{const _=cg([h],T=>!Yw(l("children",T))&&!l("disabled",T),T=>l("children",T)),x=_?l("value",_):void 0,E=w3(e.modelValue)&&!!cg([h],T=>l("value",T)===e.modelValue,T=>l("children",T));s(ct,x===e.modelValue||E?void 0:x)}ze(()=>{var _;const x=uf(e.modelValue);o.value.setCheckedKeys(x),(_=t.onCheck)==null||_.call(t,h,{checkedKeys:o.value.getCheckedKeys(),checkedNodes:o.value.getCheckedNodes(),halfCheckedKeys:o.value.getHalfCheckedKeys(),halfCheckedNodes:o.value.getHalfCheckedNodes()})}),(v=a.value)==null||v.focus()},onNodeExpand:(h,p,v)=>{var m;(m=t.onNodeExpand)==null||m.call(t,h,p,v),ze(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&p.checked){const g={},b=o.value.getCheckedKeys();ug([o.value.store.root],_=>g[_.key]=_,_=>_.childNodes);const C=uf(e.modelValue).filter(_=>!(_ in g)&&!b.includes(_)),w=d();s(ct,C.concat(w))}})},cacheOptions:u}};var H0e=j({props:{data:{type:Array,default:()=>[]}},setup(e){const t=je(o2);return be(()=>e.data,()=>{var n;e.data.forEach(a=>{t.states.cachedOptions.has(a.value)||t.states.cachedOptions.set(a.value,a)});const s=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];jt&&!Array.from(s).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}}),W0e=j({name:"ElTreeSelect",inheritAttrs:!1,props:{...qA,...A7,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:s}=t,a=F(),o=F(),r=k(()=>e.nodeKey||e.valueKey||"value"),i=B0e(e,t,{select:a,tree:o,key:r}),{cacheOptions:l,...c}=z0e(e,t,{select:a,tree:o,key:r}),u=Kt({});return s(u),St(()=>{Object.assign(u,{...El(o.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...El(a.value,["focus","blur","selectedLabel"]),treeRef:o.value,selectRef:a.value})}),()=>ot(jc,Kt({...i,ref:d=>a.value=d}),{...n,default:()=>[ot(H0e,{data:l.value}),ot(Gw,Kt({...c,ref:d=>o.value=d}))]})}});const j0e=pt(W0e),Xw=Symbol(),K0e={key:-1,level:-1,data:{}};var U0=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(U0||{}),_3=(e=>(e.ADD="add",e.DELETE="delete",e))(_3||{});const T7={type:Number,default:26},U0e=Me({data:{type:re(Array),default:()=>Tn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:re(Object),default:()=>Tn({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:re(Array),default:()=>Tn([])},checkStrictly:Boolean,defaultExpandedKeys:{type:re(Array),default:()=>Tn([])},indent:{type:Number,default:16},itemSize:T7,icon:{type:en},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:re([String,Number])},accordion:Boolean,filterMethod:{type:re(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),q0e=Me({node:{type:re(Object),default:()=>Tn(K0e)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:T7}),G0e=Me({node:{type:re(Object),required:!0}}),M7="node-click",P7="node-drop",R7="node-expand",I7="node-collapse",L7="current-change",O7="check",N7="check-change",$7="node-contextmenu",Y0e={[M7]:(e,t,n)=>e&&t&&n,[P7]:(e,t,n)=>e&&t&&n,[R7]:(e,t)=>e&&t,[I7]:(e,t)=>e&&t,[L7]:(e,t)=>e&&t,[O7]:(e,t)=>e&&t,[N7]:(e,t)=>e&&Qt(t),[$7]:(e,t,n)=>e&&t&&n},X0e={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Qt(t)};function J0e(e,t){const n=F(new Set),s=F(new Set),{emit:a}=Ct();be([()=>t.value,()=>e.defaultCheckedKeys],()=>ze(()=>{C(e.defaultCheckedKeys)}),{immediate:!0});const o=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:_}=t.value,x=n.value,E=new Set;for(let T=_;T>=1;--T){const R=w.get(T);R&&R.forEach(I=>{const M=I.children;let $=!I.isLeaf||I.disabled||x.has(I.key);if(M){let L=!0,B=!1;for(const q of M){const J=q.key;if(q.isEffectivelyChecked||($=!1),x.has(J))B=!0;else if(E.has(J)){L=!1,B=!0;break}else L=!1}L?x.add(I.key):B?(E.add(I.key),x.delete(I.key)):(x.delete(I.key),E.delete(I.key))}I.isEffectivelyChecked=$})}s.value=E},r=w=>n.value.has(w.key),i=w=>s.value.has(w.key),l=(w,_,x=!0,E=!0)=>{const T=n.value,R=w.children;!e.checkStrictly&&x&&(R!=null&&R.length)&&(_=R.some(M=>!M.isEffectivelyChecked));const I=(M,$)=>{T[$?_3.ADD:_3.DELETE](M.key);const L=M.children;!e.checkStrictly&&L&&L.forEach(B=>{(!B.disabled||B.children)&&I(B,$)})};I(w,_),E&&o(),x&&c(w,_)},c=(w,_)=>{const{checkedNodes:x,checkedKeys:E}=v(),{halfCheckedNodes:T,halfCheckedKeys:R}=m();a(O7,w.data,{checkedKeys:E,checkedNodes:x,halfCheckedKeys:R,halfCheckedNodes:T}),a(N7,w.data,_)};function u(w=!1){return v(w).checkedKeys}function d(w=!1){return v(w).checkedNodes}function h(){return m().halfCheckedKeys}function p(){return m().halfCheckedNodes}function v(w=!1){const _=[],x=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:E}=t.value;n.value.forEach(T=>{const R=E.get(T);R&&(!w||w&&R.isLeaf)&&(x.push(T),_.push(R.data))})}return{checkedKeys:x,checkedNodes:_}}function m(){const w=[],_=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:x}=t.value;s.value.forEach(E=>{const T=x.get(E);T&&(_.push(E),w.push(T.data))})}return{halfCheckedNodes:w,halfCheckedKeys:_}}function g(w){n.value.clear(),s.value.clear(),ze(()=>{C(w)})}function b(w,_){if(t!=null&&t.value&&e.showCheckbox){const x=t.value.treeNodeMap.get(w);x&&l(x,_,!1)}}function C(w){if(t!=null&&t.value){const{treeNodeMap:_}=t.value;if(e.showCheckbox&&_&&(w==null?void 0:w.length)>0){for(const x of w){const E=_.get(x);E&&!r(E)&&l(E,!0,!1,!1)}o()}}}return{updateCheckedKeys:o,toggleCheckbox:l,isChecked:r,isIndeterminate:i,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:h,getHalfCheckedNodes:p,setChecked:b,setCheckedKeys:g}}function Z0e(e,t){const n=F(new Set([])),s=F(new Set([])),a=k(()=>nt(e.filterMethod));function o(i){var l;if(!a.value)return;const c=new Set,u=s.value,d=n.value,h=[],p=((l=t.value)==null?void 0:l.treeNodes)||[],v=e.filterMethod;d.clear();function m(g){g.forEach(b=>{h.push(b),v!=null&&v(i,b.data,b)?h.forEach(w=>{c.add(w.key),w.expanded=!0}):(b.expanded=!1,b.isLeaf&&d.add(b.key));const C=b.children;if(C&&m(C),!b.isLeaf){if(!c.has(b.key))d.add(b.key);else if(C){let w=!0;for(const _ of C)if(!d.has(_.key)){w=!1;break}w?u.add(b.key):u.delete(b.key)}}h.pop()})}return m(p),c}function r(i){return s.value.has(i.key)}return{hiddenExpandIconKeySet:s,hiddenNodeKeySet:n,doFilter:o,isForceHiddenExpandIcon:r}}function Q0e(e,t){const n=F(new Set),s=F(),a=fn(),o=F(),{isIndeterminate:r,isChecked:i,toggleCheckbox:l,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:p,setCheckedKeys:v}=J0e(e,a),{doFilter:m,hiddenNodeKeySet:g,isForceHiddenExpandIcon:b}=Z0e(e,a),C=k(()=>{var Z;return((Z=e.props)==null?void 0:Z.value)||U0.KEY}),w=k(()=>{var Z;return((Z=e.props)==null?void 0:Z.children)||U0.CHILDREN}),_=k(()=>{var Z;return((Z=e.props)==null?void 0:Z.disabled)||U0.DISABLED}),x=k(()=>{var Z;return((Z=e.props)==null?void 0:Z.label)||U0.LABEL}),E=k(()=>{var Z;const H=n.value,ae=g.value,de=[],ye=((Z=a.value)==null?void 0:Z.treeNodes)||[],_e=[];for(let Se=ye.length-1;Se>=0;--Se)_e.push(ye[Se]);for(;_e.length;){const Se=_e.pop();if(!ae.has(Se.key)&&(de.push(Se),Se.children&&H.has(Se.key)))for(let Ne=Se.children.length-1;Ne>=0;--Ne)_e.push(Se.children[Ne])}return de}),T=k(()=>E.value.length>0);function R(Z){const H=new Map,ae=new Map;let de=1;function ye(Se,Ne=1,Fe=void 0){var Oe;const Ce=[];for(const Ie of Se){const Pe=$(Ie),He={level:Ne,key:Pe,data:Ie};He.label=B(Ie),He.parent=Fe;const Qe=M(Ie);He.disabled=L(Ie),He.isLeaf=!Qe||Qe.length===0,He.expanded=n.value.has(Pe),Qe&&Qe.length&&(He.children=ye(Qe,Ne+1,He)),Ce.push(He),H.set(Pe,He),ae.has(Ne)||ae.set(Ne,[]),(Oe=ae.get(Ne))==null||Oe.push(He)}return Ne>de&&(de=Ne),Ce}const _e=ye(Z);return{treeNodeMap:H,levelTreeNodeMap:ae,maxLevel:de,treeNodes:_e}}function I(Z){const H=m(Z);H&&(n.value=H)}function M(Z){return Z[w.value]}function $(Z){return Z?Z[C.value]:""}function L(Z){return Z[_.value]}function B(Z){return Z[x.value]}function q(Z){n.value.has(Z.key)?G(Z):z(Z)}function J(Z){const H=new Set,ae=a.value.treeNodeMap;n.value.forEach(de=>{const ye=ae.get(de);n.value.delete(ye.key),ye.expanded=!1}),Z.forEach(de=>{let ye=ae.get(de);for(;ye&&!H.has(ye.key);)H.add(ye.key),ye.expanded=!0,ye=ye.parent}),n.value=H}function Y(Z,H){t(M7,Z.data,Z,H),N(Z),e.expandOnClickNode&&q(Z),e.showCheckbox&&(e.checkOnClickNode||Z.isLeaf&&e.checkOnClickLeaf)&&!Z.disabled&&l(Z,!i(Z),!0)}function O(Z,H){t(P7,Z.data,Z,H)}function N(Z){K(Z)||(s.value=Z.key,t(L7,Z.data,Z))}function V(Z,H){l(Z,H)}function z(Z){const H=n.value;if(a.value&&e.accordion){const{treeNodeMap:de}=a.value;H.forEach(ye=>{const _e=de.get(ye);Z&&Z.level===(_e==null?void 0:_e.level)&&(H.delete(ye),_e.expanded=!1)})}H.add(Z.key);const ae=pe(Z.key);ae&&(ae.expanded=!0,t(R7,ae.data,ae))}function G(Z){n.value.delete(Z.key);const H=pe(Z.key);H&&(H.expanded=!1,t(I7,H.data,H))}function Q(Z){return!!Z.disabled}function K(Z){const H=s.value;return H!==void 0&&H===Z.key}function ee(){var Z,H;if(s.value)return(H=(Z=a.value)==null?void 0:Z.treeNodeMap.get(s.value))==null?void 0:H.data}function se(){return s.value}function he(Z){s.value=Z}function te(Z){a.value=R(Z)}function pe(Z){var H;const ae=ft(Z)?$(Z):Z;return(H=a.value)==null?void 0:H.treeNodeMap.get(ae)}function fe(Z,H="auto"){const ae=pe(Z);ae&&o.value&&o.value.scrollToItem(E.value.indexOf(ae),H)}function le(Z){var H;(H=o.value)==null||H.scrollTo(Z)}return be(()=>e.currentNodeKey,Z=>{s.value=Z},{immediate:!0}),be(()=>e.defaultExpandedKeys,Z=>{n.value=new Set(Z)},{immediate:!0}),be(()=>e.data,Z=>{te(Z)},{immediate:!0}),{tree:a,flattenTree:E,isNotEmpty:T,listRef:o,getKey:$,getChildren:M,toggleExpand:q,toggleCheckbox:l,isChecked:i,isIndeterminate:r,isDisabled:Q,isCurrent:K,isForceHiddenExpandIcon:b,handleNodeClick:Y,handleNodeDrop:O,handleNodeCheck:V,getCurrentNode:ee,getCurrentKey:se,setCurrentKey:he,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:p,setCheckedKeys:v,filter:I,setData:te,getNode:pe,expandNode:z,collapseNode:G,setExpandedKeys:J,scrollToNode:fe,scrollTo:le}}var epe=j({name:"ElTreeNodeContent",props:G0e,setup(e){const t=je(Xw),n=Ee("tree");return()=>{const s=e.node,{data:a}=s;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:s,data:a}):ot(Kw,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[s==null?void 0:s.label])}}});const tpe=["aria-expanded","aria-disabled","aria-checked","data-key"];var npe=j({name:"ElTreeNode",__name:"tree-node",props:q0e,emits:X0e,setup(e,{emit:t}){const n=e,s=t,a=je(Xw),o=Ee("tree"),r=k(()=>{var v;return(v=a==null?void 0:a.props.indent)!=null?v:16}),i=k(()=>{var v;return(v=a==null?void 0:a.props.icon)!=null?v:$8}),l=v=>{var m;const g=(m=a==null?void 0:a.props.props)==null?void 0:m.class;if(!g)return{};let b;if(nt(g)){const{data:C}=v;b=g(C,v)}else b=g;return Xe(b)?{[b]:!0}:b},c=v=>{s("click",n.node,v)},u=v=>{s("drop",n.node,v)},d=()=>{s("toggle",n.node)},h=v=>{s("check",n.node,v)},p=v=>{var m,g,b,C;(b=(g=(m=a==null?void 0:a.instance)==null?void 0:m.vnode)==null?void 0:g.props)!=null&&b.onNodeContextmenu&&(v.stopPropagation(),v.preventDefault()),a==null||a.ctx.emit($7,v,(C=n.node)==null?void 0:C.data,n.node)};return(v,m)=>{var g,b,C;return S(),P("div",{ref:"node$",class:D([f(o).b("node"),f(o).is("expanded",e.expanded),f(o).is("current",e.current),f(o).is("focusable",!e.disabled),f(o).is("checked",!e.disabled&&e.checked),l(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":(g=e.node)==null?void 0:g.key,onClick:it(c,["stop"]),onContextmenu:p,onDragover:m[1]||(m[1]=it(()=>{},["prevent"])),onDragenter:m[2]||(m[2]=it(()=>{},["prevent"])),onDrop:it(u,["stop"])},[A("div",{class:D(f(o).be("node","content")),style:tt({paddingLeft:`${(e.node.level-1)*r.value}px`,height:e.itemSize+"px"})},[i.value?(S(),ce(f(Ye),{key:0,class:D([f(o).is("leaf",!!((b=e.node)!=null&&b.isLeaf)),f(o).is("hidden",e.hiddenExpandIcon),{expanded:!((C=e.node)!=null&&C.isLeaf)&&e.expanded},f(o).be("node","expand-icon")]),onClick:it(d,["stop"])},{default:X(()=>[(S(),ce(bt(i.value)))]),_:1},8,["class"])):ie("v-if",!0),e.showCheckbox?(S(),ce(f(Sr),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:h,onClick:m[0]||(m[0]=it(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):ie("v-if",!0),W(f(epe),{node:{...e.node,expanded:e.expanded}},null,8,["node"])],6)],42,tpe)}}}),spe=j({name:"ElTreeV2",__name:"tree",props:U0e,emits:Y0e,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Hn(),r=k(()=>s.itemSize);Mt(Xw,{ctx:{emit:a,slots:o},props:s,instance:Ct()}),Mt(Ci,void 0);const{t:i}=Rt(),l=Ee("tree"),{flattenTree:c,isNotEmpty:u,listRef:d,toggleExpand:h,isIndeterminate:p,isChecked:v,isDisabled:m,isCurrent:g,isForceHiddenExpandIcon:b,handleNodeClick:C,handleNodeDrop:w,handleNodeCheck:_,toggleCheckbox:x,getCurrentNode:E,getCurrentKey:T,setCurrentKey:R,getCheckedKeys:I,getCheckedNodes:M,getHalfCheckedKeys:$,getHalfCheckedNodes:L,setChecked:B,setCheckedKeys:q,filter:J,setData:Y,getNode:O,expandNode:N,collapseNode:V,setExpandedKeys:z,scrollToNode:G,scrollTo:Q}=Q0e(s,a);return t({toggleCheckbox:x,getCurrentNode:E,getCurrentKey:T,setCurrentKey:R,getCheckedKeys:I,getCheckedNodes:M,getHalfCheckedKeys:$,getHalfCheckedNodes:L,setChecked:B,setCheckedKeys:q,filter:J,setData:Y,getNode:O,expandNode:N,collapseNode:V,setExpandedKeys:z,scrollToNode:G,scrollTo:Q}),(K,ee)=>(S(),P("div",{class:D([f(l).b(),{[f(l).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[f(u)?(S(),ce(f(PM),{key:0,ref_key:"listRef",ref:d,"class-name":f(l).b("virtual-list"),data:f(c),total:f(c).length,height:e.height,"item-size":r.value,"perf-mode":e.perfMode,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:X(({data:se,index:he,style:te})=>[(S(),ce(npe,{key:se[he].key,style:tt(te),node:se[he],expanded:se[he].expanded,"show-checkbox":e.showCheckbox,checked:f(v)(se[he]),indeterminate:f(p)(se[he]),"item-size":r.value,disabled:f(m)(se[he]),current:f(g)(se[he]),"hidden-expand-icon":f(b)(se[he]),onClick:f(C),onToggle:f(h),onCheck:f(_),onDrop:f(w)},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"])):(S(),P("div",{key:1,class:D(f(l).e("empty-block"))},[ue(K.$slots,"empty",{},()=>{var se;return[A("span",{class:D(f(l).e("empty-text"))},ge((se=e.emptyText)!=null?se:f(i)("el.tree.emptyText")),3)]})],2))],2))}});const ape=pt(spe);var ope=Object.defineProperty,rpe=(e,t,n)=>t in e?ope(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$2=(e,t,n)=>rpe(e,typeof t!="symbol"?t+"":t,n);const ipe="ElUpload";class lpe extends Error{constructor(t,n,s,a){super(t),$2(this,"name","UploadAjaxError"),$2(this,"status"),$2(this,"method"),$2(this,"url"),this.status=n,this.method=s,this.url=a}}function V5(e,t,n){let s;return n.response?s=`${n.response.error||n.response}`:n.responseText?s=`${n.responseText}`:s=`fail to ${t.method} ${e} ${n.status}`,new lpe(s,n.status,t.method,e)}function cpe(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const upe=e=>{typeof XMLHttpRequest>"u"&&Jn(ipe,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",o=>{const r=o;r.percent=o.total>0?o.loaded/o.total*100:0,e.onProgress(r)});const s=new FormData;if(e.data)for(const[o,r]of Object.entries(e.data))ke(r)&&r.length?s.append(o,...r):s.append(o,r);s.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(V5(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(V5(n,e,t));e.onSuccess(cpe(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((o,r)=>t.setRequestHeader(r,o));else for(const[o,r]of Object.entries(a))Un(r)||t.setRequestHeader(o,String(r));return t.send(s),t},D7=["text","picture","picture-card"];let dpe=1;const C3=()=>Date.now()+dpe++,F7=Me({action:{type:String,default:"#"},headers:{type:re(Object)},method:{type:String,default:"post"},data:{type:re([Object,Function,Promise]),default:()=>Tn({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:re(Array),default:()=>Tn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:D7,default:"text"},httpRequest:{type:re(Function),default:upe},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),fpe=Me({...F7,beforeUpload:{type:re(Function),default:Yt},beforeRemove:{type:re(Function)},onRemove:{type:re(Function),default:Yt},onChange:{type:re(Function),default:Yt},onPreview:{type:re(Function),default:Yt},onSuccess:{type:re(Function),default:Yt},onProgress:{type:re(Function),default:Yt},onError:{type:re(Function),default:Yt},onExceed:{type:re(Function),default:Yt},crossorigin:{type:re(String)}}),B7=Symbol("uploadContextKey"),hpe=Me({files:{type:re(Array),default:()=>Tn([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:re(Function),default:Yt},listType:{type:String,values:D7,default:"text"},crossorigin:{type:re(String)}}),ppe={remove:e=>!!e},vpe=["tabindex","aria-disabled","onKeydown"],mpe=["src","crossorigin"],gpe=["onClick"],bpe=["title"],ype=["onClick"],wpe=["onClick"];var z5=j({name:"ElUploadList",__name:"upload-list",props:hpe,emits:ppe,setup(e,{emit:t}){const n=e,s=t,{t:a}=Rt(),o=Ee("upload"),r=Ee("icon"),i=Ee("list"),l=Pn(),c=F(!1),u=k(()=>[o.b("list"),o.bm("list",n.listType),o.is("disabled",l.value)]),d=h=>{s("remove",h)};return(h,p)=>(S(),ce(uE,{tag:"ul",class:D(u.value),name:f(i).b()},{default:X(()=>[(S(!0),P(Ve,null,yt(e.files,(v,m)=>(S(),P("li",{key:v.uid||v.name,class:D([f(o).be("list","item"),f(o).is(v.status),{focusing:c.value}]),tabindex:f(l)?void 0:0,"aria-disabled":f(l),role:"button",onKeydown:Ln(g=>!f(l)&&d(v),["delete"]),onFocus:p[0]||(p[0]=g=>c.value=!0),onBlur:p[1]||(p[1]=g=>c.value=!1),onClick:p[2]||(p[2]=g=>c.value=!1)},[ue(h.$slots,"default",{file:v,index:m},()=>[e.listType==="picture"||v.status!=="uploading"&&e.listType==="picture-card"?(S(),P("img",{key:0,class:D(f(o).be("list","item-thumbnail")),src:v.url,crossorigin:e.crossorigin,alt:""},null,10,mpe)):ie("v-if",!0),v.status==="uploading"||e.listType!=="picture-card"?(S(),P("div",{key:1,class:D(f(o).be("list","item-info"))},[A("a",{class:D(f(o).be("list","item-name")),onClick:it(g=>e.handlePreview(v),["prevent"])},[W(f(Ye),{class:D(f(r).m("document"))},{default:X(()=>[W(f(a1))]),_:1},8,["class"]),A("span",{class:D(f(o).be("list","item-file-name")),title:v.name},ge(v.name),11,bpe)],10,gpe),v.status==="uploading"?(S(),ce(f(yM),{key:0,type:e.listType==="picture-card"?"circle":"line","stroke-width":e.listType==="picture-card"?6:2,percentage:Number(v.percentage),style:tt(e.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ie("v-if",!0)],2)):ie("v-if",!0),A("label",{class:D(f(o).be("list","item-status-label"))},[e.listType==="text"?(S(),ce(f(Ye),{key:0,class:D([f(r).m("upload-success"),f(r).m("circle-check")])},{default:X(()=>[W(f(Jm))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(S(),ce(f(Ye),{key:1,class:D([f(r).m("upload-success"),f(r).m("check")])},{default:X(()=>[W(f(_0))]),_:1},8,["class"])):ie("v-if",!0)],2),f(l)?ie("v-if",!0):(S(),ce(f(Ye),{key:2,class:D(f(r).m("close")),onClick:g=>d(v)},{default:X(()=>[W(f(eo))]),_:1},8,["class","onClick"])),ie(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ie(" This is a bug which needs to be fixed "),ie(" TODO: Fix the incorrect navigation interaction "),f(l)?ie("v-if",!0):(S(),P("i",{key:3,class:D(f(r).m("close-tip"))},ge(f(a)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(S(),P("span",{key:4,class:D(f(o).be("list","item-actions"))},[A("span",{class:D(f(o).be("list","item-preview")),onClick:g=>e.handlePreview(v)},[W(f(Ye),{class:D(f(r).m("zoom-in"))},{default:X(()=>[W(f(Tb))]),_:1},8,["class"])],10,ype),f(l)?ie("v-if",!0):(S(),P("span",{key:0,class:D(f(o).be("list","item-delete")),onClick:g=>d(v)},[W(f(Ye),{class:D(f(r).m("delete"))},{default:X(()=>[W(f(Pk))]),_:1},8,["class"])],10,wpe))],2)):ie("v-if",!0)])],42,vpe))),128)),ue(h.$slots,"append")]),_:3},8,["class","name"]))}});const _pe=Me({...F7,beforeUpload:{type:re(Function),default:Yt},onRemove:{type:re(Function),default:Yt},onStart:{type:re(Function),default:Yt},onSuccess:{type:re(Function),default:Yt},onProgress:{type:re(Function),default:Yt},onError:{type:re(Function),default:Yt},onExceed:{type:re(Function),default:Yt}}),Cpe=Me({disabled:{type:Boolean,default:void 0},directory:Boolean}),Spe={file:e=>ke(e)},H5="ElUploadDrag";var xpe=j({name:H5,__name:"upload-dragger",props:Cpe,emits:Spe,setup(e,{emit:t}){const n=e,s=t;je(B7)||Jn(H5,"usage: <el-upload><el-upload-dragger /></el-upload>");const o=Ee("upload"),r=F(!1),i=Pn(),l=p=>new Promise((v,m)=>p.file(v,m)),c=async p=>{try{if(p.isFile){const v=await l(p);return v.isDirectory=!1,[v]}if(p.isDirectory){const v=p.createReader(),m=()=>new Promise((_,x)=>v.readEntries(_,x)),g=[];let b=await m();for(;b.length>0;)g.push(...b),b=await m();const C=g.map(_=>c(_).catch(()=>[])),w=await Promise.all(C);return Zg(w)}}catch{return[]}return[]},u=async p=>{if(i.value)return;r.value=!1,p.stopPropagation();const v=Array.from(p.dataTransfer.files),m=p.dataTransfer.items||[];if(n.directory){const g=Array.from(m).map(C=>{var w;return(w=C==null?void 0:C.webkitGetAsEntry)==null?void 0:w.call(C)}).filter(C=>C),b=await Promise.all(g.map(c));s("file",Zg(b));return}v.forEach((g,b)=>{var C;const w=m[b],_=(C=w==null?void 0:w.webkitGetAsEntry)==null?void 0:C.call(w);_&&(g.isDirectory=_.isDirectory)}),s("file",v)},d=()=>{i.value||(r.value=!0)},h=p=>{p.currentTarget.contains(p.relatedTarget)||(r.value=!1)};return(p,v)=>(S(),P("div",{class:D([f(o).b("dragger"),f(o).is("dragover",r.value)]),onDrop:it(u,["prevent"]),onDragover:it(d,["prevent"]),onDragleave:it(h,["prevent"])},[ue(p.$slots,"default")],34))}});const Epe=["tabindex","aria-disabled","onKeydown"],kpe=["name","disabled","multiple","accept","webkitdirectory"];var W5=j({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:_pe,setup(e,{expose:t}){const n=e,s=Ee("upload"),a=Pn(),o=fn({}),r=fn(),i=m=>{if(m.length===0)return;const{autoUpload:g,limit:b,fileList:C,multiple:w,onStart:_,onExceed:x}=n;if(b&&C.length+m.length>b){x(m,C);return}w||(m=m.slice(0,1));for(const E of m){const T=E;T.uid=C3(),_(T),g&&l(T)}},l=async m=>{if(r.value.value="",!n.beforeUpload)return u(m);let g,b={};try{const w=n.data,_=n.beforeUpload(m);b=Tp(n.data)?e1(n.data):n.data,g=await _,Tp(n.data)&&On(w,b)&&(b=e1(n.data))}catch{g=!1}if(g===!1){n.onRemove(m);return}let C=m;g instanceof Blob&&(g instanceof File?C=g:C=new File([g],m.name,{type:m.type})),u(Object.assign(C,{uid:m.uid}),b)},c=async(m,g)=>nt(m)?m(g):m,u=async(m,g)=>{const{headers:b,data:C,method:w,withCredentials:_,name:x,action:E,onProgress:T,onSuccess:R,onError:I,httpRequest:M}=n;try{g=await c(g??C,m)}catch{n.onRemove(m);return}const{uid:$}=m,L={headers:b||{},withCredentials:_,file:m,data:g,method:w,filename:x,action:E,onProgress:q=>{T(q,m)},onSuccess:q=>{R(q,m),delete o.value[$]},onError:q=>{I(q,m),delete o.value[$]}},B=M(L);o.value[$]=B,B instanceof Promise&&B.then(L.onSuccess,L.onError)},d=m=>{const g=m.target.files;g&&i(Array.from(g))},h=()=>{a.value||(r.value.value="",r.value.click())},p=()=>{h()};return t({abort:m=>{_k(o.value).filter(m?([b])=>String(m.uid)===b:()=>!0).forEach(([b,C])=>{C instanceof XMLHttpRequest&&C.abort(),delete o.value[b]})},upload:l}),(m,g)=>(S(),P("div",{class:D([f(s).b(),f(s).m(e.listType),f(s).is("drag",e.drag),f(s).is("disabled",f(a))]),tabindex:f(a)?void 0:0,"aria-disabled":f(a),role:"button",onClick:h,onKeydown:Ln(it(p,["self"]),["enter","space"])},[e.drag?(S(),ce(xpe,{key:0,disabled:f(a),directory:e.directory,onFile:i},{default:X(()=>[ue(m.$slots,"default")]),_:3},8,["disabled","directory"])):ue(m.$slots,"default",{key:1}),A("input",{ref_key:"inputRef",ref:r,class:D(f(s).e("input")),name:e.name,disabled:f(a),multiple:e.multiple,accept:e.accept,webkitdirectory:e.directory||void 0,type:"file",onChange:d,onClick:g[0]||(g[0]=it(()=>{},["stop"]))},null,42,kpe)],42,Epe))}});const j5="ElUpload",K5=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Ape=(e,t)=>{const n=pk(e,"fileList",void 0,{passive:!0}),s=v=>n.value.find(m=>m.uid===v.uid);function a(v){var m;(m=t.value)==null||m.abort(v)}function o(v=["ready","uploading","success","fail"]){n.value=n.value.filter(m=>!v.includes(m.status))}function r(v){n.value=n.value.filter(m=>m.uid!==v.uid)}const i=v=>{ze(()=>e.onChange(v,n.value))},l=(v,m)=>{const g=s(m);g&&(console.error(v),g.status="fail",r(g),e.onError(v,g,n.value),i(g))},c=(v,m)=>{const g=s(m);g&&(e.onProgress(v,g,n.value),g.status="uploading",g.percentage=Math.round(v.percent))},u=(v,m)=>{const g=s(m);g&&(g.status="success",g.response=v,e.onSuccess(v,g,n.value),i(g))},d=v=>{Un(v.uid)&&(v.uid=C3());const m={name:v.name,percentage:0,status:"ready",size:v.size,raw:v,uid:v.uid};if(e.listType==="picture-card"||e.listType==="picture")try{m.url=URL.createObjectURL(v)}catch(g){g.message,e.onError(g,m,n.value)}n.value=[...n.value,m],i(m)},h=async v=>{const m=v instanceof File?s(v):v;m||Jn(j5,"file to be removed not found");const g=b=>{a(b),r(b),e.onRemove(b,n.value),K5(b)};e.beforeRemove?await e.beforeRemove(m,n.value)!==!1&&g(m):g(m)};function p(){n.value.filter(({status:v})=>v==="ready").forEach(({raw:v})=>{var m;return v&&((m=t.value)==null?void 0:m.upload(v))})}return be(()=>e.listType,v=>{v!=="picture-card"&&v!=="picture"||(n.value=n.value.map(m=>{const{raw:g,url:b}=m;if(!b&&g)try{m.url=URL.createObjectURL(g)}catch(C){e.onError(C,m,n.value)}return m}))}),be(n,v=>{for(const m of v)m.uid||(m.uid=C3()),m.status||(m.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:o,handleError:l,handleProgress:c,handleStart:d,handleSuccess:u,handleRemove:h,submit:p,revokeFileObjectURL:K5}};var Tpe=j({name:"ElUpload",__name:"upload",props:fpe,setup(e,{expose:t}){const n=e,s=Pn(),a=fn(),{abort:o,submit:r,clearFiles:i,uploadFiles:l,handleStart:c,handleError:u,handleRemove:d,handleSuccess:h,handleProgress:p,revokeFileObjectURL:v}=Ape(n,a),m=k(()=>n.listType==="picture-card"),g=k(()=>({...n,fileList:l.value,onStart:c,onProgress:p,onSuccess:h,onError:u,onRemove:d}));return qt(()=>{l.value.forEach(v)}),Mt(B7,{accept:Jt(n,"accept")}),t({abort:o,submit:r,clearFiles:i,handleStart:c,handleRemove:d}),(b,C)=>(S(),P("div",null,[m.value&&e.showFileList?(S(),ce(z5,{key:0,disabled:f(s),"list-type":e.listType,files:f(l),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:f(d)},Na({append:X(()=>[W(W5,_t({ref_key:"uploadRef",ref:a},g.value),{default:X(()=>[b.$slots.trigger?ue(b.$slots,"trigger",{key:0}):ie("v-if",!0),!b.$slots.trigger&&b.$slots.default?ue(b.$slots,"default",{key:1}):ie("v-if",!0)]),_:3},16)]),_:2},[b.$slots.file?{name:"default",fn:X(({file:w,index:_})=>[ue(b.$slots,"file",{file:w,index:_})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ie("v-if",!0),!m.value||m.value&&!e.showFileList?(S(),ce(W5,_t({key:1,ref_key:"uploadRef",ref:a},g.value),{default:X(()=>[b.$slots.trigger?ue(b.$slots,"trigger",{key:0}):ie("v-if",!0),!b.$slots.trigger&&b.$slots.default?ue(b.$slots,"default",{key:1}):ie("v-if",!0)]),_:3},16)):ie("v-if",!0),b.$slots.trigger?ue(b.$slots,"default",{key:2}):ie("v-if",!0),ue(b.$slots,"tip"),!m.value&&e.showFileList?(S(),ce(z5,{key:3,disabled:f(s),"list-type":e.listType,files:f(l),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:f(d)},Na({_:2},[b.$slots.file?{name:"default",fn:X(({file:w,index:_})=>[ue(b.$slots,"file",{file:w,index:_})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ie("v-if",!0)]))}});const Mpe=pt(Tpe),Ppe=Me({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:re([String,Array]),default:"Element Plus"},font:{type:re(Object)},gap:{type:re(Array),default:()=>[100,100]},offset:{type:re(Array)}});function Rpe(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Ipe(e){return Object.keys(e).map(t=>`${Rpe(t)}: ${e[t]};`).join(" ")}function Lpe(){return window.devicePixelRatio||1}const Ope=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},Npe={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function G4(e,t,n=1){const s=document.createElement("canvas"),a=s.getContext("2d"),o=e*n,r=t*n;return s.setAttribute("width",`${o}px`),s.setAttribute("height",`${r}px`),a.save(),[a,s,o,r]}function $pe(){function e(t,n,s,a,o,r,i,l,c){const[u,d,h,p]=G4(a,o,s);let v=0;if(t instanceof HTMLImageElement)u.drawImage(t,0,0,h,p);else{const{color:K,fontSize:ee,fontStyle:se,fontWeight:he,fontFamily:te,textAlign:pe,textBaseline:fe}=r,le=Number(ee)*s;u.font=`${se} normal ${he} ${le}px/${o}px ${te}`,u.fillStyle=K,u.textAlign=pe,u.textBaseline=fe;const Z=ke(t)?t:[t];if(fe!=="top"&&Z[0]){const H=u.measureText(Z[0]);u.textBaseline="top";const ae=u.measureText(Z[0]);v=H.actualBoundingBoxAscent-ae.actualBoundingBoxAscent}Z==null||Z.forEach((H,ae)=>{const[de,ye]=Npe[pe];u.fillText(H??"",h*de+c*ye,ae*(le+r.fontGap*s))})}const m=Math.PI/180*Number(n),g=Math.max(a,o),[b,C,w]=G4(g,g,s);b.translate(w/2,w/2),b.rotate(m),h>0&&p>0&&b.drawImage(d,-h/2,-p/2);function _(K,ee){const se=K*Math.cos(m)-ee*Math.sin(m),he=K*Math.sin(m)+ee*Math.cos(m);return[se,he]}let x=0,E=0,T=0,R=0;const I=h/2,M=p/2;[[0-I,0-M],[0+I,0-M],[0+I,0+M],[0-I,0+M]].forEach(([K,ee])=>{const[se,he]=_(K,ee);x=Math.min(x,se),E=Math.max(E,se),T=Math.min(T,he),R=Math.max(R,he)});const L=x+w/2,B=T+w/2,q=E-x,J=R-T,Y=i*s,O=l*s,N=(q+Y)*2,V=J+O,[z,G]=G4(N,V);function Q(K=0,ee=0){z.drawImage(C,L,B,q,J,K,ee+v,q,J)}return Q(),Q(q+Y,-J/2-O/2),Q(q+Y,+J/2+O/2),[G.toDataURL(),N/s,V/s]}return e}var Dpe=j({name:"ElWatermark",__name:"watermark",props:Ppe,setup(e){const t={position:"relative"},n=e,s=k(()=>{var $,L;return(L=($=n.font)==null?void 0:$.fontGap)!=null?L:3}),a=k(()=>{var $,L;return(L=($=n.font)==null?void 0:$.color)!=null?L:"rgba(0,0,0,.15)"}),o=k(()=>{var $,L;return(L=($=n.font)==null?void 0:$.fontSize)!=null?L:16}),r=k(()=>{var $,L;return(L=($=n.font)==null?void 0:$.fontWeight)!=null?L:"normal"}),i=k(()=>{var $,L;return(L=($=n.font)==null?void 0:$.fontStyle)!=null?L:"normal"}),l=k(()=>{var $,L;return(L=($=n.font)==null?void 0:$.fontFamily)!=null?L:"sans-serif"}),c=k(()=>{var $,L;return(L=($=n.font)==null?void 0:$.textAlign)!=null?L:"center"}),u=k(()=>{var $,L;return(L=($=n.font)==null?void 0:$.textBaseline)!=null?L:"hanging"}),d=k(()=>n.gap[0]),h=k(()=>n.gap[1]),p=k(()=>d.value/2),v=k(()=>h.value/2),m=k(()=>{var $,L;return(L=($=n.offset)==null?void 0:$[0])!=null?L:p.value}),g=k(()=>{var $,L;return(L=($=n.offset)==null?void 0:$[1])!=null?L:v.value}),b=()=>{const $={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let L=m.value-p.value,B=g.value-v.value;return L>0&&($.left=`${L}px`,$.width=`calc(100% - ${L}px)`,L=0),B>0&&($.top=`${B}px`,$.height=`calc(100% - ${B}px)`,B=0),$.backgroundPosition=`${L}px ${B}px`,$},C=fn(null),w=fn(),_=F(!1),x=()=>{w.value&&(w.value.remove(),w.value=void 0)},E=($,L)=>{var B;C.value&&w.value&&(_.value=!0,w.value.setAttribute("style",Ipe({...b(),backgroundImage:`url('${$}')`,backgroundSize:`${Math.floor(L)}px`})),(B=C.value)==null||B.append(w.value),setTimeout(()=>{_.value=!1}))},T=$=>{let L=120,B=64,q=0;const{image:J,content:Y,width:O,height:N,rotate:V}=n;if(!J&&$.measureText){$.font=`${Number(o.value)}px ${l.value}`;const z=ke(Y)?Y:[Y];let G=0,Q=0;z.forEach(ee=>{const{width:se,fontBoundingBoxAscent:he,fontBoundingBoxDescent:te,actualBoundingBoxAscent:pe,actualBoundingBoxDescent:fe}=$.measureText(ee),le=Dt(he)?pe+fe:he+te;se>G&&(G=Math.ceil(se)),le>Q&&(Q=Math.ceil(le))}),L=G,B=Q*z.length+(z.length-1)*s.value;const K=Math.PI/180*Number(V);q=Math.ceil(Math.abs(Math.sin(K)*B)/2),L+=q}return[O??L,N??B,q]},R=$pe(),I=()=>{const L=document.createElement("canvas").getContext("2d"),B=n.image,q=n.content,J=n.rotate;if(L){w.value||(w.value=document.createElement("div"));const Y=Lpe(),[O,N,V]=T(L),z=G=>{const[Q,K]=R(G||"",J,Y,O,N,{color:a.value,fontSize:o.value,fontStyle:i.value,fontWeight:r.value,fontFamily:l.value,fontGap:s.value,textAlign:c.value,textBaseline:u.value},d.value,h.value,V);E(Q,K)};if(B){const G=new Image;G.onload=()=>{z(G)},G.onerror=()=>{z(q)},G.crossOrigin="anonymous",G.referrerPolicy="no-referrer",G.src=B}else z(q)}};return St(()=>{I()}),be(()=>n,()=>{I()},{deep:!0,flush:"post"}),qt(()=>{x()}),Um(C,$=>{_.value||$.forEach(L=>{Ope(L,w.value)&&(x(),I())})},{attributes:!0,subtree:!0,childList:!0}),($,L)=>(S(),P("div",{ref_key:"containerRef",ref:C,style:tt([t])},[ue($.$slots,"default")],4))}});const Fpe=pt(Dpe),Bpe=["absolute","fixed"],Vpe=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],Jw=Me({placement:{type:re(String),values:Vpe,default:"bottom"},reference:{type:re(Object),default:null},strategy:{type:re(String),values:Bpe,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),zpe={close:()=>!0},Hpe=Me({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:en},placement:Jw.placement,contentStyle:{type:re([Object])},mask:{type:re([Boolean,Object]),default:!0},gap:{type:re(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:re([Boolean,Object]),default:()=>({block:"center"})},type:{type:re(String)},appendTo:{type:Ym.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),Wpe={[ct]:e=>Qt(e),"update:current":e=>st(e),close:e=>st(e),finish:()=>!0,change:e=>st(e)},jpe=Me({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:re(Object)},targetAreaClickable:{type:Boolean,default:!0}}),c0=Math.min,Id=Math.max,x1=Math.round,D2=Math.floor,mi=e=>({x:e,y:e}),Kpe={left:"right",right:"left",bottom:"top",top:"bottom"},Upe={start:"end",end:"start"};function S3(e,t,n){return Id(e,c0(t,n))}function u2(e,t){return typeof e=="function"?e(t):e}function Vd(e){return e.split("-")[0]}function d2(e){return e.split("-")[1]}function V7(e){return e==="x"?"y":"x"}function Zw(e){return e==="y"?"height":"width"}const qpe=new Set(["top","bottom"]);function $c(e){return qpe.has(Vd(e))?"y":"x"}function Qw(e){return V7($c(e))}function Gpe(e,t,n){n===void 0&&(n=!1);const s=d2(e),a=Qw(e),o=Zw(a);let r=a==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=E1(r)),[r,E1(r)]}function Ype(e){const t=E1(e);return[x3(e),t,x3(t)]}function x3(e){return e.replace(/start|end/g,t=>Upe[t])}const U5=["left","right"],q5=["right","left"],Xpe=["top","bottom"],Jpe=["bottom","top"];function Zpe(e,t,n){switch(e){case"top":case"bottom":return n?t?q5:U5:t?U5:q5;case"left":case"right":return t?Xpe:Jpe;default:return[]}}function Qpe(e,t,n,s){const a=d2(e);let o=Zpe(Vd(e),n==="start",s);return a&&(o=o.map(r=>r+"-"+a),t&&(o=o.concat(o.map(x3)))),o}function E1(e){return e.replace(/left|right|bottom|top/g,t=>Kpe[t])}function eve(e){return{top:0,right:0,bottom:0,left:0,...e}}function z7(e){return typeof e!="number"?eve(e):{top:e,right:e,bottom:e,left:e}}function k1(e){const{x:t,y:n,width:s,height:a}=e;return{width:s,height:a,top:n,left:t,right:t+s,bottom:n+a,x:t,y:n}}function G5(e,t,n){let{reference:s,floating:a}=e;const o=$c(t),r=Qw(t),i=Zw(r),l=Vd(t),c=o==="y",u=s.x+s.width/2-a.width/2,d=s.y+s.height/2-a.height/2,h=s[i]/2-a[i]/2;let p;switch(l){case"top":p={x:u,y:s.y-a.height};break;case"bottom":p={x:u,y:s.y+s.height};break;case"right":p={x:s.x+s.width,y:d};break;case"left":p={x:s.x-a.width,y:d};break;default:p={x:s.x,y:s.y}}switch(d2(t)){case"start":p[r]-=h*(n&&c?-1:1);break;case"end":p[r]+=h*(n&&c?-1:1);break}return p}async function H7(e,t){var n;t===void 0&&(t={});const{x:s,y:a,platform:o,rects:r,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=u2(t,e),v=z7(p),g=i[h?d==="floating"?"reference":"floating":d],b=k1(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(g)))==null||n?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:l})),C=d==="floating"?{x:s,y:a,width:r.floating.width,height:r.floating.height}:r.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(i.floating)),_=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},x=k1(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:C,offsetParent:w,strategy:l}):C);return{top:(b.top-x.top+v.top)/_.y,bottom:(x.bottom-b.bottom+v.bottom)/_.y,left:(b.left-x.left+v.left)/_.x,right:(x.right-b.right+v.right)/_.x}}const tve=async(e,t,n)=>{const{placement:s="bottom",strategy:a="absolute",middleware:o=[],platform:r}=n,i=o.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=G5(c,s,l),h=s,p={},v=0;for(let g=0;g<i.length;g++){var m;const{name:b,fn:C}=i[g],{x:w,y:_,data:x,reset:E}=await C({x:u,y:d,initialPlacement:s,placement:h,strategy:a,middlewareData:p,rects:c,platform:{...r,detectOverflow:(m=r.detectOverflow)!=null?m:H7},elements:{reference:e,floating:t}});u=w??u,d=_??d,p={...p,[b]:{...p[b],...x}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(c=E.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:a}):E.rects),{x:u,y:d}=G5(c,h,l)),g=-1)}return{x:u,y:d,placement:h,strategy:a,middlewareData:p}},nve=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:a,rects:o,platform:r,elements:i,middlewareData:l}=t,{element:c,padding:u=0}=u2(e,t)||{};if(c==null)return{};const d=z7(u),h={x:n,y:s},p=Qw(a),v=Zw(p),m=await r.getDimensions(c),g=p==="y",b=g?"top":"left",C=g?"bottom":"right",w=g?"clientHeight":"clientWidth",_=o.reference[v]+o.reference[p]-h[p]-o.floating[v],x=h[p]-o.reference[p],E=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let T=E?E[w]:0;(!T||!await(r.isElement==null?void 0:r.isElement(E)))&&(T=i.floating[w]||o.floating[v]);const R=_/2-x/2,I=T/2-m[v]/2-1,M=c0(d[b],I),$=c0(d[C],I),L=M,B=T-m[v]-$,q=T/2-m[v]/2+R,J=S3(L,q,B),Y=!l.arrow&&d2(a)!=null&&q!==J&&o.reference[v]/2-(q<L?M:$)-m[v]/2<0,O=Y?q<L?q-L:q-B:0;return{[p]:h[p]+O,data:{[p]:J,centerOffset:q-J-O,...Y&&{alignmentOffset:O}},reset:Y}}}),sve=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:a,middlewareData:o,rects:r,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...g}=u2(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=Vd(a),C=$c(i),w=Vd(i)===i,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=h||(w||!m?[E1(i)]:Ype(i)),E=v!=="none";!h&&E&&x.push(...Qpe(i,m,v,_));const T=[i,...x],R=await l.detectOverflow(t,g),I=[];let M=((s=o.flip)==null?void 0:s.overflows)||[];if(u&&I.push(R[b]),d){const q=Gpe(a,r,_);I.push(R[q[0]],R[q[1]])}if(M=[...M,{placement:a,overflows:I}],!I.every(q=>q<=0)){var $,L;const q=((($=o.flip)==null?void 0:$.index)||0)+1,J=T[q];if(J&&(!(d==="alignment"?C!==$c(J):!1)||M.every(N=>$c(N.placement)===C?N.overflows[0]>0:!0)))return{data:{index:q,overflows:M},reset:{placement:J}};let Y=(L=M.filter(O=>O.overflows[0]<=0).sort((O,N)=>O.overflows[1]-N.overflows[1])[0])==null?void 0:L.placement;if(!Y)switch(p){case"bestFit":{var B;const O=(B=M.filter(N=>{if(E){const V=$c(N.placement);return V===C||V==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(V=>V>0).reduce((V,z)=>V+z,0)]).sort((N,V)=>N[1]-V[1])[0])==null?void 0:B[0];O&&(Y=O);break}case"initialPlacement":Y=i;break}if(a!==Y)return{reset:{placement:Y}}}return{}}}},ave=new Set(["left","top"]);async function ove(e,t){const{placement:n,platform:s,elements:a}=e,o=await(s.isRTL==null?void 0:s.isRTL(a.floating)),r=Vd(n),i=d2(n),l=$c(n)==="y",c=ave.has(r)?-1:1,u=o&&l?-1:1,d=u2(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof v=="number"&&(p=i==="end"?v*-1:v),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const rve=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:a,y:o,placement:r,middlewareData:i}=t,l=await ove(t,e);return r===((n=i.offset)==null?void 0:n.placement)&&(s=i.arrow)!=null&&s.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:r}}}}},ive=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:a,platform:o}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:l={fn:b=>{let{x:C,y:w}=b;return{x:C,y:w}}},...c}=u2(e,t),u={x:n,y:s},d=await o.detectOverflow(t,c),h=$c(Vd(a)),p=V7(h);let v=u[p],m=u[h];if(r){const b=p==="y"?"top":"left",C=p==="y"?"bottom":"right",w=v+d[b],_=v-d[C];v=S3(w,v,_)}if(i){const b=h==="y"?"top":"left",C=h==="y"?"bottom":"right",w=m+d[b],_=m-d[C];m=S3(w,m,_)}const g=l.fn({...t,[p]:v,[h]:m});return{...g,data:{x:g.x-n,y:g.y-s,enabled:{[p]:r,[h]:i}}}}}};function Hb(){return typeof window<"u"}function x0(e){return W7(e)?(e.nodeName||"").toLowerCase():"#document"}function Eo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ki(e){var t;return(t=(W7(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function W7(e){return Hb()?e instanceof Node||e instanceof Eo(e).Node:!1}function Er(e){return Hb()?e instanceof Element||e instanceof Eo(e).Element:!1}function Si(e){return Hb()?e instanceof HTMLElement||e instanceof Eo(e).HTMLElement:!1}function Y5(e){return!Hb()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Eo(e).ShadowRoot}const lve=new Set(["inline","contents"]);function f2(e){const{overflow:t,overflowX:n,overflowY:s,display:a}=kr(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!lve.has(a)}const cve=new Set(["table","td","th"]);function uve(e){return cve.has(x0(e))}const dve=[":popover-open",":modal"];function Wb(e){return dve.some(t=>{try{return e.matches(t)}catch{return!1}})}const fve=["transform","translate","scale","rotate","perspective"],hve=["transform","translate","scale","rotate","perspective","filter"],pve=["paint","layout","strict","content"];function e_(e){const t=t_(),n=Er(e)?kr(e):e;return fve.some(s=>n[s]?n[s]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||hve.some(s=>(n.willChange||"").includes(s))||pve.some(s=>(n.contain||"").includes(s))}function vve(e){let t=Kc(e);for(;Si(t)&&!u0(t);){if(e_(t))return t;if(Wb(t))return null;t=Kc(t)}return null}function t_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mve=new Set(["html","body","#document"]);function u0(e){return mve.has(x0(e))}function kr(e){return Eo(e).getComputedStyle(e)}function jb(e){return Er(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kc(e){if(x0(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Y5(e)&&e.host||ki(e);return Y5(t)?t.host:t}function j7(e){const t=Kc(e);return u0(t)?e.ownerDocument?e.ownerDocument.body:e.body:Si(t)&&f2(t)?t:j7(t)}function nv(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=j7(e),o=a===((s=e.ownerDocument)==null?void 0:s.body),r=Eo(a);if(o){const i=E3(r);return t.concat(r,r.visualViewport||[],f2(a)?a:[],i&&n?nv(i):[])}return t.concat(a,nv(a,[],n))}function E3(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function K7(e){const t=kr(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=Si(e),o=a?e.offsetWidth:n,r=a?e.offsetHeight:s,i=x1(n)!==o||x1(s)!==r;return i&&(n=o,s=r),{width:n,height:s,$:i}}function n_(e){return Er(e)?e:e.contextElement}function Bf(e){const t=n_(e);if(!Si(t))return mi(1);const n=t.getBoundingClientRect(),{width:s,height:a,$:o}=K7(t);let r=(o?x1(n.width):n.width)/s,i=(o?x1(n.height):n.height)/a;return(!r||!Number.isFinite(r))&&(r=1),(!i||!Number.isFinite(i))&&(i=1),{x:r,y:i}}const gve=mi(0);function U7(e){const t=Eo(e);return!t_()||!t.visualViewport?gve:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bve(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Eo(e)?!1:t}function zd(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=n_(e);let r=mi(1);t&&(s?Er(s)&&(r=Bf(s)):r=Bf(e));const i=bve(o,n,s)?U7(o):mi(0);let l=(a.left+i.x)/r.x,c=(a.top+i.y)/r.y,u=a.width/r.x,d=a.height/r.y;if(o){const h=Eo(o),p=s&&Er(s)?Eo(s):s;let v=h,m=E3(v);for(;m&&s&&p!==v;){const g=Bf(m),b=m.getBoundingClientRect(),C=kr(m),w=b.left+(m.clientLeft+parseFloat(C.paddingLeft))*g.x,_=b.top+(m.clientTop+parseFloat(C.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=w,c+=_,v=Eo(m),m=E3(v)}}return k1({width:u,height:d,x:l,y:c})}function Kb(e,t){const n=jb(e).scrollLeft;return t?t.left+n:zd(ki(e)).left+n}function q7(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-Kb(e,n),a=n.top+t.scrollTop;return{x:s,y:a}}function yve(e){let{elements:t,rect:n,offsetParent:s,strategy:a}=e;const o=a==="fixed",r=ki(s),i=t?Wb(t.floating):!1;if(s===r||i&&o)return n;let l={scrollLeft:0,scrollTop:0},c=mi(1);const u=mi(0),d=Si(s);if((d||!d&&!o)&&((x0(s)!=="body"||f2(r))&&(l=jb(s)),Si(s))){const p=zd(s);c=Bf(s),u.x=p.x+s.clientLeft,u.y=p.y+s.clientTop}const h=r&&!d&&!o?q7(r,l):mi(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function wve(e){return Array.from(e.getClientRects())}function _ve(e){const t=ki(e),n=jb(e),s=e.ownerDocument.body,a=Id(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),o=Id(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let r=-n.scrollLeft+Kb(e);const i=-n.scrollTop;return kr(s).direction==="rtl"&&(r+=Id(t.clientWidth,s.clientWidth)-a),{width:a,height:o,x:r,y:i}}const X5=25;function Cve(e,t){const n=Eo(e),s=ki(e),a=n.visualViewport;let o=s.clientWidth,r=s.clientHeight,i=0,l=0;if(a){o=a.width,r=a.height;const u=t_();(!u||u&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}const c=Kb(s);if(c<=0){const u=s.ownerDocument,d=u.body,h=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(s.clientWidth-d.clientWidth-p);v<=X5&&(o-=v)}else c<=X5&&(o+=c);return{width:o,height:r,x:i,y:l}}const Sve=new Set(["absolute","fixed"]);function xve(e,t){const n=zd(e,!0,t==="fixed"),s=n.top+e.clientTop,a=n.left+e.clientLeft,o=Si(e)?Bf(e):mi(1),r=e.clientWidth*o.x,i=e.clientHeight*o.y,l=a*o.x,c=s*o.y;return{width:r,height:i,x:l,y:c}}function J5(e,t,n){let s;if(t==="viewport")s=Cve(e,n);else if(t==="document")s=_ve(ki(e));else if(Er(t))s=xve(t,n);else{const a=U7(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return k1(s)}function G7(e,t){const n=Kc(e);return n===t||!Er(n)||u0(n)?!1:kr(n).position==="fixed"||G7(n,t)}function Eve(e,t){const n=t.get(e);if(n)return n;let s=nv(e,[],!1).filter(i=>Er(i)&&x0(i)!=="body"),a=null;const o=kr(e).position==="fixed";let r=o?Kc(e):e;for(;Er(r)&&!u0(r);){const i=kr(r),l=e_(r);!l&&i.position==="fixed"&&(a=null),(o?!l&&!a:!l&&i.position==="static"&&!!a&&Sve.has(a.position)||f2(r)&&!l&&G7(e,r))?s=s.filter(u=>u!==r):a=i,r=Kc(r)}return t.set(e,s),s}function kve(e){let{element:t,boundary:n,rootBoundary:s,strategy:a}=e;const r=[...n==="clippingAncestors"?Wb(t)?[]:Eve(t,this._c):[].concat(n),s],i=r[0],l=r.reduce((c,u)=>{const d=J5(t,u,a);return c.top=Id(d.top,c.top),c.right=c0(d.right,c.right),c.bottom=c0(d.bottom,c.bottom),c.left=Id(d.left,c.left),c},J5(t,i,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ave(e){const{width:t,height:n}=K7(e);return{width:t,height:n}}function Tve(e,t,n){const s=Si(t),a=ki(t),o=n==="fixed",r=zd(e,!0,o,t);let i={scrollLeft:0,scrollTop:0};const l=mi(0);function c(){l.x=Kb(a)}if(s||!s&&!o)if((x0(t)!=="body"||f2(a))&&(i=jb(t)),s){const p=zd(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else a&&c();o&&!s&&a&&c();const u=a&&!s&&!o?q7(a,i):mi(0),d=r.left+i.scrollLeft-l.x-u.x,h=r.top+i.scrollTop-l.y-u.y;return{x:d,y:h,width:r.width,height:r.height}}function Y4(e){return kr(e).position==="static"}function Z5(e,t){if(!Si(e)||kr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ki(e)===n&&(n=n.ownerDocument.body),n}function Y7(e,t){const n=Eo(e);if(Wb(e))return n;if(!Si(e)){let a=Kc(e);for(;a&&!u0(a);){if(Er(a)&&!Y4(a))return a;a=Kc(a)}return n}let s=Z5(e,t);for(;s&&uve(s)&&Y4(s);)s=Z5(s,t);return s&&u0(s)&&Y4(s)&&!e_(s)?n:s||vve(e)||n}const Mve=async function(e){const t=this.getOffsetParent||Y7,n=this.getDimensions,s=await n(e.floating);return{reference:Tve(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Pve(e){return kr(e).direction==="rtl"}const Rve={convertOffsetParentRelativeRectToViewportRelativeRect:yve,getDocumentElement:ki,getClippingRect:kve,getOffsetParent:Y7,getElementRects:Mve,getClientRects:wve,getDimensions:Ave,getScale:Bf,isElement:Er,isRTL:Pve};function X7(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ive(e,t){let n=null,s;const a=ki(e);function o(){var i;clearTimeout(s),(i=n)==null||i.disconnect(),n=null}function r(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(i||t(),!h||!p)return;const v=D2(d),m=D2(a.clientWidth-(u+h)),g=D2(a.clientHeight-(d+p)),b=D2(u),w={rootMargin:-v+"px "+-m+"px "+-g+"px "+-b+"px",threshold:Id(0,c0(1,l))||1};let _=!0;function x(E){const T=E[0].intersectionRatio;if(T!==l){if(!_)return r();T?r(!1,T):s=setTimeout(()=>{r(!1,1e-7)},1e3)}T===1&&!X7(c,e.getBoundingClientRect())&&r(),_=!1}try{n=new IntersectionObserver(x,{...w,root:a.ownerDocument})}catch{n=new IntersectionObserver(x,w)}n.observe(e)}return r(!0),o}function Lve(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=s,c=n_(e),u=a||o?[...c?nv(c):[],...nv(t)]:[];u.forEach(b=>{a&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const d=c&&i?Ive(c,n):null;let h=-1,p=null;r&&(p=new ResizeObserver(b=>{let[C]=b;C&&C.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let v,m=l?zd(e):null;l&&g();function g(){const b=zd(e);m&&!X7(m,b)&&n(),m=b,v=requestAnimationFrame(g)}return n(),()=>{var b;u.forEach(C=>{a&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),d==null||d(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(v)}}const Ove=H7,Nve=rve,$ve=ive,Dve=sve,Fve=nve,Bve=(e,t,n)=>{const s=new Map,a={platform:Rve,...n},o={...a.platform,_c:s};return tve(e,t,{...a,platform:o})},Vve=(e,t,n,s,a)=>{const o=F(null),r=()=>{let d;return Xe(e.value)?d=document.querySelector(e.value):nt(e.value)?d=e.value():d=e.value,d},i=()=>{const d=r();if(!d||!t.value){o.value=null;return}zve(d)||d.scrollIntoView(a.value);const{left:h,top:p,width:v,height:m}=d.getBoundingClientRect();o.value={left:h,top:p,width:v,height:m,radius:0}};St(()=>{be([t,e],()=>{i()},{immediate:!0}),window.addEventListener("resize",i)}),qt(()=>{window.removeEventListener("resize",i)});const l=d=>{var h;return(h=ke(n.value.offset)?n.value.offset[d]:n.value.offset)!=null?h:6},c=k(()=>{var d;if(!o.value)return o.value;const h=l(0),p=l(1),v=((d=n.value)==null?void 0:d.radius)||2;return{left:o.value.left-h,top:o.value.top-p,width:o.value.width+h*2,height:o.value.height+p*2,radius:v}}),u=k(()=>{const d=r();return!s.value||!d||!window.DOMRect?d||void 0:{getBoundingClientRect(){var h,p,v,m;return window.DOMRect.fromRect({width:((h=c.value)==null?void 0:h.width)||0,height:((p=c.value)==null?void 0:p.height)||0,x:((v=c.value)==null?void 0:v.left)||0,y:((m=c.value)==null?void 0:m.top)||0})}}});return{mergedPosInfo:c,triggerTarget:u}},Ub=Symbol("ElTour");function zve(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:s,right:a,bottom:o,left:r}=e.getBoundingClientRect();return s>=0&&r>=0&&a<=t&&o<=n}const Hve=(e,t,n,s,a,o,r,i)=>{const l=F(),c=F(),u=F({}),d={x:l,y:c,placement:s,strategy:a,middlewareData:u},h=k(()=>{const b=[Nve(f(o)),Dve(),$ve(),Wve()];return f(i)&&f(n)&&b.push(Fve({element:f(n)})),b}),p=async()=>{if(!jt)return;const b=f(e),C=f(t);if(!b||!C)return;const w=await Bve(b,C,{placement:f(s),strategy:f(a),middleware:f(h)});zp(d).forEach(_=>{d[_].value=w[_]})},v=k(()=>{if(!f(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:f(r)};const{overflow:b}=f(u);return{position:f(a),zIndex:f(r),top:f(c)!=null?`${f(c)}px`:"",left:f(l)!=null?`${f(l)}px`:"",maxWidth:b!=null&&b.maxWidth?`${b==null?void 0:b.maxWidth}px`:""}}),m=k(()=>{if(!f(i))return{};const{arrow:b}=f(u);return{left:(b==null?void 0:b.x)!=null?`${b==null?void 0:b.x}px`:"",top:(b==null?void 0:b.y)!=null?`${b==null?void 0:b.y}px`:""}});let g;return St(()=>{const b=f(e),C=f(t);b&&C&&(g=Lve(b,C,p)),Qa(()=>{p()})}),qt(()=>{g&&g()}),{update:p,contentStyle:v,arrowStyle:m}},Wve=()=>({name:"overflow",async fn(e){const t=await Ove(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),jve={style:{width:"100%",height:"100%"}},Kve=["d"];var Uve=j({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:jpe,setup(e){const t=e,{ns:n}=je(Ub),s=k(()=>{var u,d;return(d=(u=t.pos)==null?void 0:u.radius)!=null?d:2}),a=k(()=>{const u=s.value,d=`a${u},${u} 0 0 1`;return{topRight:`${d} ${u},${u}`,bottomRight:`${d} ${-u},${u}`,bottomLeft:`${d} ${-u},${-u}`,topLeft:`${d} ${u},${-u}`}}),{width:o,height:r}=I8(),i=k(()=>{const u=o.value,d=r.value,h=a.value,p=`M${u},0 L0,0 L0,${d} L${u},${d} L${u},0 Z`,v=s.value;return t.pos?`${p} M${t.pos.left+v},${t.pos.top} h${t.pos.width-v*2} ${h.topRight} v${t.pos.height-v*2} ${h.bottomRight} h${-t.pos.width+v*2} ${h.bottomLeft} v${-t.pos.height+v*2} ${h.topLeft} z`:p}),l=k(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),c=k(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return Fb(Jt(t,"visible"),{ns:n}),(u,d)=>e.visible?(S(),P("div",_t({key:0,class:f(n).e("mask"),style:l.value},u.$attrs),[(S(),P("svg",jve,[A("path",{class:D(f(n).e("hollow")),style:tt(c.value),d:i.value},null,14,Kve)]))],16)):ie("v-if",!0)}});const qve=["data-side"];var Gve=j({name:"ElTourContent",__name:"content",props:Jw,emits:zpe,setup(e,{emit:t}){const n=e,s=t,a=F(n.placement),o=F(n.strategy),r=F(null),i=F(null);be(()=>n.placement,()=>{a.value=n.placement});const{contentStyle:l,arrowStyle:c}=Hve(Jt(n,"reference"),r,i,a,o,Jt(n,"offset"),Jt(n,"zIndex"),Jt(n,"showArrow")),u=k(()=>a.value.split("-")[0]),{ns:d}=je(Ub),h=()=>{s("close")},p=v=>{v.detail.focusReason==="pointer"&&v.preventDefault()};return(v,m)=>(S(),P("div",{ref_key:"contentRef",ref:r,style:tt(f(l)),class:D(f(d).e("content")),"data-side":u.value,tabindex:"-1"},[W(f(C0),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":r.value||void 0,onReleaseRequested:h,onFocusoutPrevented:p},{default:X(()=>[ue(v.$slots,"default")]),_:3},8,["focus-trap-el"]),e.showArrow?(S(),P("span",{key:0,ref_key:"arrowRef",ref:i,style:tt(f(c)),class:D(f(d).e("arrow"))},null,6)):ie("v-if",!0)],14,qve))}}),Yve=j({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let s=0;return()=>{var a,o;const r=(a=t.default)==null?void 0:a.call(t),i=[];let l=0;function c(u){ke(u)&&u.forEach(d=>{var h;((h=(d==null?void 0:d.type)||{})==null?void 0:h.name)==="ElTourStep"&&(i.push(d),l+=1)})}return r.length&&c(Co((o=r[0])==null?void 0:o.children)),s!==l&&(s=l,n("update-total",l)),i.length?i[e.current]:null}}}),Xve=j({name:"ElTour",inheritAttrs:!1,__name:"tour",props:Hpe,emits:Wpe,setup(e,{emit:t}){const n=e,s=t,a=Ee("tour"),o=F(0),r=F(),i=pk(n,"current",s,{passive:!0}),l=k(()=>{var M;return(M=r.value)==null?void 0:M.target}),c=k(()=>[a.b(),b.value==="primary"?a.m("primary"):""]),u=k(()=>{var M;return((M=r.value)==null?void 0:M.placement)||n.placement}),d=k(()=>{var M,$;return($=(M=r.value)==null?void 0:M.contentStyle)!=null?$:n.contentStyle}),h=k(()=>{var M,$;return($=(M=r.value)==null?void 0:M.mask)!=null?$:n.mask}),p=k(()=>!!h.value&&n.modelValue),v=k(()=>Qt(h.value)?void 0:h.value),m=k(()=>{var M,$;return!!l.value&&(($=(M=r.value)==null?void 0:M.showArrow)!=null?$:n.showArrow)}),g=k(()=>{var M,$;return($=(M=r.value)==null?void 0:M.scrollIntoViewOptions)!=null?$:n.scrollIntoViewOptions}),b=k(()=>{var M,$;return($=(M=r.value)==null?void 0:M.type)!=null?$:n.type}),{nextZIndex:C}=qm(),w=C(),_=k(()=>{var M;return(M=n.zIndex)!=null?M:w}),{mergedPosInfo:x,triggerTarget:E}=Vve(l,Jt(n,"modelValue"),Jt(n,"gap"),h,g);be(()=>n.modelValue,M=>{M||(i.value=0)});const T=()=>{n.closeOnPressEscape&&(s(ct,!1),s("close",i.value))},R=M=>{o.value=M},I=Hn();return Mt(Ub,{currentStep:r,current:i,total:o,showClose:Jt(n,"showClose"),closeIcon:Jt(n,"closeIcon"),mergedType:b,ns:a,slots:I,updateModelValue(M){s(ct,M)},onClose(){s("close",i.value)},onFinish(){s("finish")},onChange(){s(Pt,i.value)}}),(M,$)=>(S(),P(Ve,null,[W(f(w0),{to:e.appendTo},{default:X(()=>{var L,B;return[A("div",_t({class:c.value},M.$attrs),[W(Uve,{visible:p.value,fill:(L=v.value)==null?void 0:L.color,style:tt((B=v.value)==null?void 0:B.style),pos:f(x),"z-index":_.value,"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(S(),ce(Gve,{key:f(i),reference:f(E),placement:u.value,"show-arrow":m.value,"z-index":_.value,style:tt(d.value),onClose:T},{default:X(()=>[W(f(Yve),{current:f(i),onUpdateTotal:R},{default:X(()=>[ue(M.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):ie("v-if",!0)],16)]}),_:3},8,["to"]),ie(" just for IDE "),ie("v-if",!0)],64))}});const Jve=Me({target:{type:re([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:en},showArrow:{type:Boolean,default:void 0},placement:Jw.placement,mask:{type:re([Boolean,Object]),default:void 0},contentStyle:{type:re([Object])},prevButtonProps:{type:re(Object)},nextButtonProps:{type:re(Object)},scrollIntoViewOptions:{type:re([Boolean,Object]),default:void 0},type:{type:re(String)}}),Zve={close:()=>!0},Qve=["aria-label"];var J7=j({name:"ElTourStep",__name:"step",props:Jve,emits:Zve,setup(e,{emit:t}){const n=e,s=t,{Close:a}=Yk,{t:o}=Rt(),{currentStep:r,current:i,total:l,showClose:c,closeIcon:u,mergedType:d,ns:h,slots:p,updateModelValue:v,onClose:m,onFinish:g,onChange:b}=je(Ub);be(n,M=>{r.value=M},{immediate:!0});const C=k(()=>{var M;return(M=n.showClose)!=null?M:c.value}),w=k(()=>{var M,$;return($=(M=n.closeIcon)!=null?M:u.value)!=null?$:a}),_=M=>{if(M)return Wm(M,["children","onClick"])},x=()=>{var M,$;i.value-=1,(M=n.prevButtonProps)!=null&&M.onClick&&(($=n.prevButtonProps)==null||$.onClick()),b()},E=()=>{var M;i.value>=l.value-1?T():i.value+=1,(M=n.nextButtonProps)!=null&&M.onClick&&n.nextButtonProps.onClick(),b()},T=()=>{R(),g()},R=()=>{v(!1),m(),s("close")},I=M=>{const $=M.target;if($!=null&&$.isContentEditable)return;switch(an(M)){case Te.left:M.preventDefault(),i.value>0&&x();break;case Te.right:M.preventDefault(),E();break}};return St(()=>{window.addEventListener("keydown",I)}),qt(()=>{window.removeEventListener("keydown",I)}),(M,$)=>(S(),P(Ve,null,[C.value?(S(),P("button",{key:0,"aria-label":f(o)("el.tour.close"),class:D(f(h).e("closebtn")),type:"button",onClick:R},[W(f(Ye),{class:D(f(h).e("close"))},{default:X(()=>[(S(),ce(bt(w.value)))]),_:1},8,["class"])],10,Qve)):ie("v-if",!0),A("header",{class:D([f(h).e("header"),{"show-close":f(c)}])},[ue(M.$slots,"header",{},()=>[A("span",{role:"heading",class:D(f(h).e("title"))},ge(e.title),3)])],2),A("div",{class:D(f(h).e("body"))},[ue(M.$slots,"default",{},()=>[A("span",null,ge(e.description),1)])],2),A("footer",{class:D(f(h).e("footer"))},[A("div",{class:D(f(h).b("indicators"))},[f(p).indicators?(S(),ce(bt(f(p).indicators),{key:0,current:f(i),total:f(l)},null,8,["current","total"])):(S(!0),P(Ve,{key:1},yt(f(l),(L,B)=>(S(),P("span",{key:L,class:D([f(h).b("indicator"),f(h).is("active",B===f(i))])},null,2))),128))],2),A("div",{class:D(f(h).b("buttons"))},[f(i)>0?(S(),ce(f(ps),_t({key:0,size:"small",type:f(d)},_(e.prevButtonProps),{onClick:x}),{default:X(()=>{var L,B;return[We(ge((B=(L=e.prevButtonProps)==null?void 0:L.children)!=null?B:f(o)("el.tour.previous")),1)]}),_:1},16,["type"])):ie("v-if",!0),f(i)<=f(l)-1?(S(),ce(f(ps),_t({key:1,size:"small",type:f(d)==="primary"?"default":"primary"},_(e.nextButtonProps),{onClick:E}),{default:X(()=>{var L,B;return[We(ge((B=(L=e.nextButtonProps)==null?void 0:L.children)!=null?B:f(i)===f(l)-1?f(o)("el.tour.finish"):f(o)("el.tour.next")),1)]}),_:1},16,["type"])):ie("v-if",!0)],2)],2)],64))}});const eme=pt(Xve,{TourStep:J7}),tme=En(J7),nme=Me({container:{type:re([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:re(String),default:"default"},direction:{type:re(String),default:"vertical"},selectScrollTop:Boolean}),sme={change:e=>Xe(e),click:(e,t)=>e instanceof MouseEvent&&(Xe(t)||Dt(t))},Z7=Symbol("anchor");function ame(e){let t=0;const n=(...s)=>{t&&kl(t),t=wi(()=>{e(...s),t=0})};return n.cancel=()=>{kl(t),t=0},n}const F2=e=>{if(!jt||e==="")return null;if(Xe(e))try{return document.querySelector(e)}catch{return null}return e};var ome=j({name:"ElAnchor",__name:"anchor",props:nme,emits:sme,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Hn(),r=F(""),i=F({}),l=F(null),c=F(null),u=F(),d={};let h=!1,p=0;const v=Ee("anchor"),m=k(()=>[v.b(),s.type==="underline"?v.m("underline"):"",v.m(s.direction)]),g=L=>{d[L.href]=L.el},b=L=>{delete d[L]},C=L=>{r.value!==L&&(r.value=L,a(Pt,L))};let w=null,_="";const x=L=>{if(!u.value)return;const B=F2(L);if(!B)return;if(w){if(_===L)return;w()}_=L,h=!0;const q=XC(B,u.value),J=zy(B,q),Y=q.scrollHeight-q.clientHeight,O=Math.min(J-s.offset,Y);w=oz(u.value,p,O,s.duration,()=>{setTimeout(()=>{h=!1,_=""},20)})},E=L=>{L&&(C(L),x(L))},T=(L,B)=>{a("click",L,B),E(B)},R=ame(()=>{u.value&&(p=JC(u.value));const L=I();h||Dt(L)||C(L)}),I=()=>{if(!u.value)return;const L=JC(u.value),B=[];for(const q of Object.keys(d)){const J=F2(q);if(!J)continue;const Y=XC(J,u.value),O=zy(J,Y);B.push({top:O-s.offset-s.bound,href:q})}B.sort((q,J)=>q.top-J.top);for(let q=0;q<B.length;q++){const J=B[q],Y=B[q+1];if(q===0&&L===0)return s.selectScrollTop?J.href:"";if(J.top<=L&&(!Y||Y.top>L))return J.href}},M=()=>{const L=F2(s.container);!L||jm(L)?u.value=window:u.value=L};Xt(u,"scroll",R);const $=()=>{ze(()=>{if(!l.value||!c.value||!r.value){i.value={};return}const L=d[r.value];if(!L){i.value={};return}const B=l.value.getBoundingClientRect(),q=c.value.getBoundingClientRect(),J=L.getBoundingClientRect();if(s.direction==="horizontal"){const Y=J.left-B.left;i.value={left:`${Y}px`,width:`${J.width}px`,opacity:1}}else{const Y=J.top-B.top+(J.height-q.height)/2;i.value={top:`${Y}px`,opacity:1}}})};return be(r,$),be(()=>{var L;return(L=o.default)==null?void 0:L.call(o)},$),St(()=>{M();const L=decodeURIComponent(window.location.hash);F2(L)?E(L):R()}),be(()=>s.container,()=>{M()}),Mt(Z7,{ns:v,direction:s.direction,currentAnchor:r,addLink:g,removeLink:b,handleClick:T}),t({scrollTo:E}),(L,B)=>(S(),P("div",{ref_key:"anchorRef",ref:l,class:D(m.value)},[e.marker?(S(),P("div",{key:0,ref_key:"markerRef",ref:c,class:D(f(v).e("marker")),style:tt(i.value)},null,6)):ie("v-if",!0),A("div",{class:D(f(v).e("list"))},[ue(L.$slots,"default")],2)],2))}});const rme=Me({title:String,href:String}),ime=["href"];var Q7=j({name:"ElAnchorLink",__name:"anchor-link",props:rme,setup(e){const t=e,n=F(null),{ns:s,direction:a,currentAnchor:o,addLink:r,removeLink:i,handleClick:l}=je(Z7),c=k(()=>[s.e("link"),s.is("active",o.value===t.href)]),u=d=>{l(d,t.href)};return be(()=>t.href,(d,h)=>{ze(()=>{h&&i(h),d&&r({href:d,el:n.value})})}),St(()=>{const{href:d}=t;d&&r({href:d,el:n.value})}),qt(()=>{const{href:d}=t;d&&i(d)}),(d,h)=>(S(),P("div",{class:D(f(s).e("item"))},[A("a",{ref_key:"linkRef",ref:n,class:D(c.value),href:e.href,onClick:u},[ue(d.$slots,"default",{},()=>[We(ge(e.title),1)])],10,ime),d.$slots["sub-link"]&&f(a)==="vertical"?(S(),P("div",{key:0,class:D(f(s).e("list"))},[ue(d.$slots,"sub-link")],2)):ie("v-if",!0)],2))}});const lme=pt(ome,{AnchorLink:Q7}),cme=En(Q7),eP={label:"label",value:"value",disabled:"disabled"},ume=Me({direction:{type:re(String),default:"horizontal"},options:{type:re(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:re(Object),default:()=>eP},block:Boolean,size:rs,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...ya(["ariaLabel"])}),dme={[ct]:e=>Xe(e)||st(e)||Qt(e),[Pt]:e=>Xe(e)||st(e)||Qt(e)},fme=["id","aria-label","aria-labelledby"],hme=["name","disabled","checked","onChange"];var pme=j({name:"ElSegmented",__name:"segmented",props:ume,emits:dme,setup(e,{emit:t}){const n=e,s=t,a=Ee("segmented"),o=Fs(),r=ns(),i=Pn(),{formItem:l}=Ms(),{inputId:c,isLabeledByFormItem:u}=Mo(n,{formItemContext:l}),d=F(null),h=VV(),p=Kt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),v=(L,B)=>{const q=b(B);s(ct,q),s(Pt,q),L.target.checked=q===n.modelValue},m=k(()=>({...eP,...n.props})),g=L=>L,b=L=>ft(L)?L[m.value.value]:L,C=L=>ft(L)?L[m.value.label]:L,w=L=>!!(i.value||ft(L)&&L[m.value.disabled]),_=L=>n.modelValue===b(L),x=L=>n.options.find(B=>b(B)===L),E=L=>[a.e("item"),a.is("selected",_(L)),a.is("disabled",w(L))],T=()=>{if(!d.value)return;const L=d.value.querySelector(".is-selected"),B=d.value.querySelector(".is-selected input");if(!L||!B){p.width=0,p.height=0,p.translateX=0,p.translateY=0,p.focusVisible=!1;return}p.isInit=!0,n.direction==="vertical"?(p.height=L.offsetHeight,p.translateY=L.offsetTop):(p.width=L.offsetWidth,p.translateX=L.offsetLeft);try{p.focusVisible=B.matches(":focus-visible")}catch{}},R=k(()=>[a.b(),a.m(r.value),a.is("block",n.block)]),I=k(()=>({width:n.direction==="vertical"?"100%":`${p.width}px`,height:n.direction==="vertical"?`${p.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${p.translateY}px)`:`translateX(${p.translateX}px)`,display:p.isInit?"block":"none"})),M=k(()=>[a.e("item-selected"),a.is("disabled",w(x(n.modelValue))),a.is("focus-visible",p.focusVisible)]),$=k(()=>n.name||o.value);return wn(d,T),be(h,T),be(()=>n.modelValue,()=>{var L;T(),n.validateEvent&&((L=l==null?void 0:l.validate)==null||L.call(l,"change").catch(B=>void 0))},{flush:"post"}),(L,B)=>e.options.length?(S(),P("div",{key:0,id:f(c),ref_key:"segmentedRef",ref:d,class:D(R.value),role:"radiogroup","aria-label":f(u)?void 0:e.ariaLabel||"segmented","aria-labelledby":f(u)?f(l).labelId:void 0},[A("div",{class:D([f(a).e("group"),f(a).m(e.direction)])},[A("div",{style:tt(I.value),class:D(M.value)},null,6),(S(!0),P(Ve,null,yt(e.options,(q,J)=>(S(),P("label",{key:J,class:D(E(q))},[A("input",{class:D(f(a).e("item-input")),type:"radio",name:$.value,disabled:w(q),checked:_(q),onChange:Y=>v(Y,q)},null,42,hme),A("div",{class:D(f(a).e("item-label"))},[ue(L.$slots,"default",{item:g(q)},()=>[We(ge(C(q)),1)])],2)],2))),128))],2)],10,fme)):ie("v-if",!0)}});const vme=pt(pme),mme=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},gme=(e,t,n)=>{const{selectionEnd:s}=e;if(s===null)return;const a=e.value,o=Es(t);let r=-1,i;for(let l=s-1;l>=0;--l){const c=a[l];if(c===n||c===`
`||c==="\r"){r=l;continue}if(o.includes(c)){const u=r===-1?s:r;i={pattern:a.slice(l+1,u),start:l+1,end:u,prefix:c,prefixIndex:l,splitIndex:r,selectionEnd:s};break}}return i},bme=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,s=e.selectionEnd!==null?e.selectionEnd:0,a=t.useSelectionEnd?s:n,o=["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 h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const i=r.style,l=window.getComputedStyle(e),c=e.nodeName==="INPUT";i.whiteSpace=c?"nowrap":"pre-wrap",c||(i.wordWrap="break-word"),i.position="absolute",t.debug||(i.visibility="hidden"),o.forEach(h=>{if(c&&h==="lineHeight")if(l.boxSizing==="border-box"){const p=Number.parseInt(l.height),v=Number.parseInt(l.paddingTop)+Number.parseInt(l.paddingBottom)+Number.parseInt(l.borderTopWidth)+Number.parseInt(l.borderBottomWidth),m=v+Number.parseInt(l.lineHeight);p>m?i.lineHeight=`${p-v}px`:p===m?i.lineHeight=l.lineHeight:i.lineHeight="0"}else i.lineHeight=l.height;else i[h]=l[h]}),Q8()?e.scrollHeight>Number.parseInt(l.height)&&(i.overflowY="scroll"):i.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,a)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g," "));const u=document.createElement("span");u.textContent=e.value.slice(Math.max(0,a))||".",u.style.position="relative",u.style.left=`${-e.scrollLeft}px`,u.style.top=`${-e.scrollTop}px`,r.appendChild(u);const d={top:u.offsetTop+Number.parseInt(l.borderTopWidth),left:u.offsetLeft+Number.parseInt(l.borderLeftWidth),height:Number.parseInt(l.fontSize)*1.5};return t.debug?u.style.backgroundColor="#aaa":document.body.removeChild(r),d.left>=e.clientWidth&&(d.left=e.clientWidth),d},yme=Me({...t2,options:{type:re(Array),default:()=>[]},prefix:{type:re([String,Array]),default:"@",validator:e=>Xe(e)?e.length===1:e.every(t=>Xe(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:re([Boolean,Function]),default:()=>mme,validator:e=>e===!1?!0:nt(e)},placement:{type:re(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:re(Function)},modelValue:String,loading:Boolean,popperClass:Zt.popperClass,popperStyle:Zt.popperStyle,popperOptions:{type:re(Object),default:()=>({})},props:{type:re(Object),default:()=>tP}}),wme={[ct]:e=>Xe(e),"whole-remove":(e,t)=>Xe(e)&&Xe(t),input:e=>Xe(e),search:(e,t)=>Xe(e)&&Xe(t),select:(e,t)=>ft(e)&&Xe(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},tP={value:"value",label:"label",disabled:"disabled"},_me=Me({options:{type:re(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),Cme={select:e=>Xe(e.value)},Sme=["id","aria-disabled","aria-selected","onMousemove","onClick"];var xme=j({name:"ElMentionDropdown",__name:"mention-dropdown",props:_me,emits:Cme,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("mention"),{t:r}=Rt(),i=F(-1),l=F(),c=F(),u=F(),d=(_,x)=>[o.be("dropdown","item"),o.is("hovering",i.value===x),o.is("disabled",_.disabled||s.disabled)],h=_=>{_.disabled||s.disabled||a("select",_)},p=_=>{i.value=_},v=k(()=>s.disabled||s.options.every(_=>_.disabled)),m=k(()=>s.options[i.value]),g=()=>{m.value&&a("select",m.value)},b=_=>{const{options:x}=s;if(x.length===0||v.value)return;_==="next"?(i.value++,i.value===x.length&&(i.value=0)):_==="prev"&&(i.value--,i.value<0&&(i.value=x.length-1));const E=x[i.value];if(E.disabled){b(_);return}ze(()=>C(E))},C=_=>{var x,E,T,R;const{options:I}=s,M=I.findIndex(L=>L.value===_.value),$=(x=c.value)==null?void 0:x[M];if($){const L=(T=(E=u.value)==null?void 0:E.querySelector)==null?void 0:T.call(E,`.${o.be("dropdown","wrap")}`);L&&N8(L,$)}(R=l.value)==null||R.handleScroll()};return be(()=>s.options,()=>{v.value||s.options.length===0?i.value=-1:i.value=0},{immediate:!0}),t({hoveringIndex:i,navigateOptions:b,selectHoverOption:g,hoverOption:m}),(_,x)=>(S(),P("div",{ref_key:"dropdownRef",ref:u,class:D(f(o).b("dropdown"))},[_.$slots.header?(S(),P("div",{key:0,class:D(f(o).be("dropdown","header"))},[ue(_.$slots,"header")],2)):ie("v-if",!0),gt(W(f(Cr),{id:e.contentId,ref_key:"scrollbarRef",ref:l,tag:"ul","wrap-class":f(o).be("dropdown","wrap"),"view-class":f(o).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:X(()=>[(S(!0),P(Ve,null,yt(e.options,(E,T)=>(S(),P("li",{id:`${e.contentId}-${T}`,ref_for:!0,ref_key:"optionRefs",ref:c,key:T,class:D(d(E,T)),role:"option","aria-disabled":E.disabled||e.disabled||void 0,"aria-selected":i.value===T,onMousemove:R=>p(T),onClick:it(R=>h(E),["stop"])},[ue(_.$slots,"label",{item:E,index:T},()=>{var R;return[A("span",null,ge((R=E.label)!=null?R:E.value),1)]})],42,Sme))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[Bt,e.options.length>0&&!e.loading]]),e.loading?(S(),P("div",{key:1,class:D(f(o).be("dropdown","loading"))},[ue(_.$slots,"loading",{},()=>[We(ge(f(r)("el.mention.loading")),1)])],2)):ie("v-if",!0),_.$slots.footer?(S(),P("div",{key:2,class:D(f(o).be("dropdown","footer"))},[ue(_.$slots,"footer")],2)):ie("v-if",!0)],2))}}),Eme=j({name:"ElMention",inheritAttrs:!1,__name:"mention",props:yme,emits:wme,setup(e,{expose:t,emit:n}){const s=e,a=n,o=k(()=>El(s,Object.keys(t2))),r=Ee("mention"),i=Pn(),l=Fs(),c=F(),u=F(),d=F(),h=F(!1),p=F(),v=F(),m=k(()=>s.showArrow?s.placement:`${s.placement}-start`),g=k(()=>s.showArrow?["bottom","top"]:["bottom-start","top-start"]),b=k(()=>({...tP,...s.props})),C=O=>{const N={label:O[b.value.label],value:O[b.value.value],disabled:O[b.value.disabled]};return{...O,...N}},w=k(()=>s.options.map(C)),_=k(()=>{const{filterOption:O}=s;return!v.value||!O?w.value:w.value.filter(N=>O(v.value.pattern,N))}),x=k(()=>h.value&&(!!_.value.length||s.loading)),E=k(()=>{var O;return`${l.value}-${(O=d.value)==null?void 0:O.hoveringIndex}`}),T=O=>{a(ct,O),a(ts,O),q()},R=O=>{var N,V,z,G;if((N=c.value)!=null&&N.isComposing)return;const Q=an(O);switch(Q){case Te.left:case Te.right:q();break;case Te.up:case Te.down:if(!h.value)return;O.preventDefault(),(V=d.value)==null||V.navigateOptions(Q===Te.up?"prev":"next");break;case Te.enter:case Te.numpadEnter:if(!h.value){s.type!=="textarea"&&q();return}O.preventDefault(),(z=d.value)!=null&&z.hoverOption?(G=d.value)==null||G.selectHoverOption():h.value=!1;break;case Te.esc:if(!h.value)return;O.preventDefault(),h.value=!1;break;case Te.backspace:if(s.whole&&v.value){const{splitIndex:K,selectionEnd:ee,pattern:se,prefixIndex:he,prefix:te}=v.value,pe=B();if(!pe)return;const fe=pe.value,le=w.value.find(H=>H.value===se);if((nt(s.checkIsWhole)?s.checkIsWhole(se,te):le)&&K!==-1&&K+1===ee){O.preventDefault();const H=fe.slice(0,he)+fe.slice(K+1);a(ct,H),a(ts,H),a("whole-remove",se,te);const ae=he;ze(()=>{pe.selectionStart=ae,pe.selectionEnd=ae,Y()})}}}},{wrapperRef:I}=Fl(c,{disabled:i,afterFocus(){q()},beforeBlur(O){var N;return(N=u.value)==null?void 0:N.isFocusInsideContent(O)},afterBlur(){h.value=!1}}),M=()=>{q()},$=O=>s.options.find(N=>O.value===N[b.value.value]),L=O=>{if(!v.value)return;const N=B();if(!N)return;const V=N.value,{split:z}=s,G=V.slice(v.value.end),Q=G.startsWith(z),K=`${O.value}${Q?"":z}`,ee=V.slice(0,v.value.start)+K+G;a(ct,ee),a(ts,ee),a("select",$(O),v.value.prefix);const se=v.value.start+K.length+(Q?1:0);ze(()=>{N.selectionStart=se,N.selectionEnd=se,N.focus(),Y()})},B=()=>{var O,N;return s.type==="textarea"?(O=c.value)==null?void 0:O.textarea:(N=c.value)==null?void 0:N.input},q=()=>{setTimeout(()=>{J(),Y(),ze(()=>{var O;return(O=u.value)==null?void 0:O.updatePopper()})},0)},J=()=>{const O=B();if(!O)return;const N=bme(O),V=O.getBoundingClientRect(),z=I.value.getBoundingClientRect();p.value={position:"absolute",width:0,height:`${N.height}px`,left:`${N.left+V.left-z.left}px`,top:`${N.top+V.top-z.top}px`}},Y=()=>{const O=B();if(document.activeElement!==O){h.value=!1;return}const{prefix:N,split:V}=s;if(v.value=gme(O,N,V),v.value&&v.value.splitIndex===-1){h.value=!0,a("search",v.value.pattern,v.value.prefix);return}h.value=!1};return t({input:c,tooltip:u,dropdownVisible:x}),(O,N)=>(S(),P("div",{ref_key:"wrapperRef",ref:I,class:D(f(r).b())},[W(f(ga),_t(_t(o.value,O.$attrs),{ref_key:"elInputRef",ref:c,"model-value":e.modelValue,disabled:f(i),role:x.value?"combobox":void 0,"aria-activedescendant":x.value?E.value||"":void 0,"aria-controls":x.value?f(l):void 0,"aria-expanded":x.value||void 0,"aria-label":e.ariaLabel,"aria-autocomplete":x.value?"none":void 0,"aria-haspopup":x.value?"listbox":void 0,onInput:T,onKeydown:R,onMousedown:M}),Na({_:2},[yt(O.$slots,(V,z)=>({name:z,fn:X(G=>[ue(O.$slots,z,vl(ml(G)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),W(f(As),{ref_key:"tooltipRef",ref:u,visible:x.value,"popper-class":[f(r).e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,placement:m.value,"fallback-placements":g.value,effect:"light",pure:"",offset:e.offset,"show-arrow":e.showArrow},{default:X(()=>[A("div",{style:tt(p.value)},null,4)]),content:X(()=>[W(xme,{ref_key:"dropdownRef",ref:d,options:_.value,disabled:f(i),loading:e.loading,"content-id":f(l),"aria-label":e.ariaLabel,onSelect:L,onClick:N[0]||(N[0]=it(V=>{var z;return(z=c.value)==null?void 0:z.focus()},["stop"]))},Na({_:2},[yt(O.$slots,(V,z)=>({name:z,fn:X(G=>[ue(O.$slots,z,vl(ml(G)))])}))]),1032,["options","disabled","loading","content-id","aria-label"])]),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});const kme=pt(Eme),Ame=Me({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),Tme={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0},nP=Symbol("splitterRootContextKey");function Mme(e){const t=F(),{width:n,height:s}=ky(t),a=k(()=>e.value==="horizontal"?n.value:s.value);return{containerEl:t,containerSize:a}}function s_(e){return Number(e.slice(0,-1))/100}function a_(e){return Number(e.slice(0,-2))}function o_(e){return Xe(e)&&e.endsWith("%")}function r_(e){return Xe(e)&&e.endsWith("px")}function Pme(e,t){const n=k(()=>e.value.map(i=>i.size)),s=k(()=>e.value.length),a=F([]);be([n,s,t],()=>{var i;let l=[],c=0;for(let d=0;d<s.value;d+=1){const h=(i=e.value[d])==null?void 0:i.size;if(o_(h))l[d]=s_(h);else if(r_(h))l[d]=a_(h)/t.value;else if(h||h===0){const p=Number(h);Number.isNaN(p)||(l[d]=p/t.value)}else c+=1,l[d]=void 0}const u=l.reduce((d,h)=>d+(h||0),0);if(u>1||!c){const d=1/u;l=l.map(h=>h===void 0?0:h*d)}else{const d=(1-u)/c;l=l.map(h=>h===void 0?d:h)}a.value=l});const o=i=>i*t.value,r=k(()=>a.value.map(o));return{percentSizes:a,pxSizes:r}}function Rme(e,t,n,s){const a=g=>g*t.value||0;function o(g,b){return o_(g)?a(s_(g)):r_(g)?a_(g):g??b}const r=F(0),i=F(null);let l=[],c=Yt;const u=k(()=>e.value.map(g=>[g.min,g.max]));be(s,()=>{if(r.value){const g=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(g)}});const d=g=>{r.value=0,i.value={index:g,confirmed:!1},l=n.value},h=(g,b)=>{var C,w;let _=null;if((!i.value||!i.value.confirmed)&&b!==0){if(b>0)_=g,i.value={index:g,confirmed:!0};else for(let B=g;B>=0;B-=1)if(l[B]>0){_=B,i.value={index:B,confirmed:!0};break}}const x=(w=_??((C=i.value)==null?void 0:C.index))!=null?w:g,E=[...l],T=x+1,R=o(u.value[x][0],0),I=o(u.value[T][0],0),M=o(u.value[x][1],t.value||0),$=o(u.value[T][1],t.value||0);let L=b;E[x]+L<R&&(L=R-E[x]),E[T]-L<I&&(L=E[T]-I),E[x]+L>M&&(L=M-E[x]),E[T]-L>$&&(L=E[T]-$),E[x]+=L,E[T]-=L,r.value=L,c=()=>{e.value.forEach((B,q)=>{B.size=E[q]}),c=Yt},s.value||c()},p=()=>{s.value&&c(),r.value=0,i.value=null,l=[]},v=[];return{lazyOffset:r,onMoveStart:d,onMoving:h,onMoveEnd:p,movingIndex:i,onCollapse:(g,b)=>{v.length||v.push(...n.value);const C=n.value,w=b==="start"?g:g+1,_=b==="start"?g+1:g,x=C[w],E=C[_];if(x!==0&&E!==0)C[w]=0,C[_]+=x,v[g]=x;else{const T=x+E,R=v[g],I=T-R;C[_]=R,C[w]=I}e.value.forEach((T,R)=>{T.size=C[R]})}}}var Ime=j({name:"ElSplitter",__name:"splitter",props:Ame,emits:Tme,setup(e,{emit:t}){const n=Ee("splitter"),s=t,a=e,o=Jt(a,"layout"),r=Jt(a,"lazy"),{containerEl:i,containerSize:l}=Mme(o),{removeChild:c,children:u,addChild:d,ChildrenSorter:h}=Ob(Ct(),"ElSplitterPanel");be(u,()=>{g.value=null,u.value.forEach((M,$)=>{M.setIndex($)})});const{percentSizes:p,pxSizes:v}=Pme(u,l),{lazyOffset:m,movingIndex:g,onMoveStart:b,onMoving:C,onMoveEnd:w,onCollapse:_}=Rme(u,l,v,r),x=k(()=>({[n.cssVarBlockName("bar-offset")]:r.value?`${m.value}px`:void 0}));return Mt(nP,Kt({panels:u,percentSizes:p,pxSizes:v,layout:o,lazy:r,movingIndex:g,containerSize:l,onMoveStart:M=>{b(M),s("resizeStart",M,v.value)},onMoving:(M,$)=>{C(M,$),r.value||s("resize",M,v.value)},onMoveEnd:async M=>{w(),await ze(),s("resizeEnd",M,v.value)},onCollapse:(M,$)=>{_(M,$),s("collapse",M,$,v.value)},registerPanel:d,unregisterPanel:c})),(M,$)=>(S(),P("div",{ref_key:"containerEl",ref:i,class:D([f(n).b(),f(n).e(o.value)]),style:tt(x.value)},[ue(M.$slots,"default"),W(f(h)),ie(" Prevent iframe touch events from breaking "),f(g)?(S(),P("div",{key:0,class:D([f(n).e("mask"),f(n).e(`mask-${o.value}`)])},null,2)):ie("v-if",!0)],6))}});const Lme=Me({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),Ome={"update:size":e=>typeof e=="number"||typeof e=="string"};function Nme(e){return e&&ft(e)?e:{start:!!e,end:!!e}}function Q5(e,t,n,s){return!!(e!=null&&e.collapsible.end&&t>0||n!=null&&n.collapsible.start&&s===0&&t>0)}var $me=j({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(e,{emit:t}){const n=Ee("splitter-bar"),s=e,a=t,o=k(()=>s.layout==="horizontal"),r=k(()=>o.value?{width:0}:{height:0}),i=k(()=>({width:o.value?"16px":"100%",height:o.value?"100%":"16px",cursor:s.resizable?o.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),l=k(()=>{const C=n.e("dragger");return{[`${C}-horizontal`]:o.value,[`${C}-vertical`]:!o.value,[`${C}-active`]:!!c.value}}),c=F(null),u=C=>{s.resizable&&(c.value=[C.pageX,C.pageY],a("moveStart",s.index),window.addEventListener("mouseup",v),window.addEventListener("mousemove",h))},d=C=>{if(s.resizable&&C.touches.length===1){C.preventDefault();const w=C.touches[0];c.value=[w.pageX,w.pageY],a("moveStart",s.index),window.addEventListener("touchend",m),window.addEventListener("touchmove",p)}},h=C=>{const{pageX:w,pageY:_}=C,x=w-c.value[0],E=_-c.value[1],T=o.value?x:E;a("moving",s.index,T)},p=C=>{if(C.touches.length===1){C.preventDefault();const w=C.touches[0],_=w.pageX-c.value[0],x=w.pageY-c.value[1],E=o.value?_:x;a("moving",s.index,E)}},v=()=>{c.value=null,window.removeEventListener("mouseup",v),window.removeEventListener("mousemove",h),a("moveEnd",s.index)},m=()=>{c.value=null,window.removeEventListener("touchend",m),window.removeEventListener("touchmove",p),a("moveEnd",s.index)},g=k(()=>o.value?Go:Xm),b=k(()=>o.value?Ds:Nr);return(C,w)=>(S(),P("div",{class:D([f(n).b()]),style:tt(r.value)},[e.startCollapsible?(S(),P("div",{key:0,class:D([f(n).e("collapse-icon"),f(n).e(`${e.layout}-collapse-icon-start`)]),onClick:w[0]||(w[0]=_=>a("collapse",e.index,"start"))},[ue(C.$slots,"start-collapsible",{},()=>[(S(),ce(bt(g.value),{style:{width:"12px",height:"12px"}}))])],2)):ie("v-if",!0),A("div",{class:D([f(n).e("dragger"),l.value,f(n).is("disabled",!e.resizable),f(n).is("lazy",e.resizable&&e.lazy)]),style:tt(i.value),onMousedown:u,onTouchstart:d},null,38),e.endCollapsible?(S(),P("div",{key:1,class:D([f(n).e("collapse-icon"),f(n).e(`${e.layout}-collapse-icon-end`)]),onClick:w[1]||(w[1]=_=>a("collapse",e.index,"end"))},[ue(C.$slots,"end-collapsible",{},()=>[(S(),ce(bt(b.value),{style:{width:"12px",height:"12px"}}))])],2)):ie("v-if",!0)],6))}});const ex="ElSplitterPanel";var sP=j({name:ex,__name:"split-panel",props:Lme,emits:Ome,setup(e,{expose:t,emit:n}){const s=Ee("splitter-panel"),a=e,o=n,r=je(nP);r||Jn(ex,"usage: <el-splitter><el-splitter-panel /></el-splitter/>");const{panels:i,layout:l,lazy:c,containerSize:u,pxSizes:d}=gs(r),{registerPanel:h,unregisterPanel:p,onCollapse:v,onMoveEnd:m,onMoveStart:g,onMoving:b}=r,C=F(),w=Ct(),_=w.uid,x=F(0),E=k(()=>i.value[x.value]),T=N=>{x.value=N},R=k(()=>{var N;return E.value&&(N=d.value[x.value])!=null?N:0}),I=k(()=>{var N;return E.value&&(N=d.value[x.value+1])!=null?N:0}),M=k(()=>E.value?i.value[x.value+1]:null),$=k(()=>{var N;return M.value?a.resizable&&((N=M.value)==null?void 0:N.resizable)&&(R.value!==0||!a.min)&&(I.value!==0||!M.value.min):!1}),L=k(()=>E.value?x.value!==i.value.length-1:!1),B=k(()=>Q5(E.value,R.value,M.value,I.value)),q=k(()=>Q5(M.value,I.value,E.value,R.value));function J(N){return o_(N)?s_(N)*u.value||0:r_(N)?a_(N):N??0}let Y=!1;be(()=>a.size,()=>{if(!Y&&E.value){if(!u.value){E.value.size=a.size;return}const N=J(a.size),V=J(a.max),z=J(a.min),G=Math.min(Math.max(N,z||0),V||N);G!==N&&o("update:size",G),E.value.size=G}}),be(()=>{var N;return(N=E.value)==null?void 0:N.size},N=>{N!==a.size&&(Y=!0,o("update:size",N),ze(()=>Y=!1))}),be(()=>a.resizable,N=>{E.value&&(E.value.resizable=N)});const O=Kt({uid:_,getVnode:()=>w.vnode,setIndex:T,...a,collapsible:k(()=>Nme(a.collapsible))});return h(O),qt(()=>p(O)),t({splitterPanelRef:C}),(N,V)=>(S(),P(Ve,null,[A("div",_t({ref_key:"panelEl",ref:C,class:[f(s).b()],style:{flexBasis:`${R.value}px`}},N.$attrs),[ue(N.$slots,"default")],16),L.value?(S(),ce($me,{key:0,index:x.value,layout:f(l),lazy:f(c),resizable:$.value,"start-collapsible":B.value,"end-collapsible":q.value,onMoveStart:f(g),onMoving:f(b),onMoveEnd:f(m),onCollapse:f(v)},{"start-collapsible":X(()=>[ue(N.$slots,"start-collapsible")]),"end-collapsible":X(()=>[ue(N.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):ie("v-if",!0)],64))}});const Dme=pt(Ime,{SplitPanel:sP}),Fme=En(sP);var Bme=[iz,uJ,BQ,Vhe,jQ,KQ,XQ,IA,see,aee,ps,FA,mte,yte,Ote,Nte,Sne,dT,Ane,Sr,Xte,dw,Pne,Wne,jne,$b,ST,pse,gse,yse,wse,_se,Cse,Sse,foe,jT,yoe,woe,Ioe,QT,Woe,Mre,Pre,Rre,lM,Gie,Yie,Ye,ole,dM,ga,fM,wle,Ele,Wle,jle,Kle,Ule,Jle,Ece,Mce,$ce,AA,yM,uT,one,ane,Yce,Zce,sue,Cr,jc,l1,fte,Due,Hue,Wue,ide,fde,LM,yde,xde,Ede,Ode,Yfe,Xfe,Bhe,Jhe,Zhe,yl,Kw,Vse,a0e,l0e,c0e,As,w0e,Gw,j0e,ape,Mpe,Fpe,eme,tme,lme,cme,vme,kme,Dme,Fme];const go="ElInfiniteScroll",Vme=50,zme=200,Hme=0,Wme={delay:{type:Number,default:zme},distance:{type:Number,default:Hme},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},i_=(e,t)=>Object.entries(Wme).reduce((n,[s,a])=>{var o,r;const{type:i,default:l}=a,c=e.getAttribute(`infinite-scroll-${s}`);let u=(r=(o=t[c])!=null?o:c)!=null?r:l;return u=u==="false"?!1:u,u=i(u),n[s]=Number.isNaN(u)?l:u,n},{}),aP=e=>{const{observer:t}=e[go];t&&(t.disconnect(),delete e[go].observer)},jme=(e,t)=>{const{container:n,containerEl:s,instance:a,observer:o,lastScrollTop:r}=e[go],{disabled:i,distance:l}=i_(e,a),{clientHeight:c,scrollHeight:u,scrollTop:d}=s,h=d-r;if(e[go].lastScrollTop=d,o||i||h<0)return;let p=!1;if(n===e)p=u-(c+d)<=l;else{const{clientTop:v,scrollHeight:m}=e,g=zy(e,s);p=d+c>=g+v+m-l}p&&t.call(a)};function X4(e,t){const{containerEl:n,instance:s}=e[go],{disabled:a}=i_(e,s);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(s):aP(e))}const Kme={async mounted(e,t){const{instance:n,value:s}=t;vi({scope:go,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),nt(s)||Jn(go,"'v-infinite-scroll' binding value must be a function"),await ze();const{delay:a,immediate:o}=i_(e,n),r=O8(e,!0),i=r===window?document.documentElement:r,l=Lc(jme.bind(null,e,s),a);if(r){if(e[go]={instance:n,container:r,containerEl:i,delay:a,cb:s,onScroll:l,lastScrollTop:i.scrollTop},o){const c=new MutationObserver(Lc(X4.bind(null,e,s),Vme));e[go].observer=c,c.observe(e,{childList:!0,subtree:!0}),X4(e,s)}r.addEventListener("scroll",l)}},unmounted(e){if(!e[go])return;const{container:t,onScroll:n}=e[go];t==null||t.removeEventListener("scroll",n),aP(e)},async updated(e){if(!e[go])await ze();else{const{containerEl:t,cb:n,observer:s}=e[go];t.clientHeight&&s&&X4(e,n)}}},k3=Kme;k3.install=e=>{e.directive("InfiniteScroll",k3)};const Ume=k3;function qme(e,t){let n;const s=F(!1),a=Kt({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(p){a.text=p}function r(){const p=a.parent,v=h.ns;if(!p.vLoadingAddClassList){let m=p.getAttribute("loading-number");m=Number.parseInt(m)-1,m?p.setAttribute("loading-number",m.toString()):(ba(p,v.bm("parent","relative")),p.removeAttribute("loading-number")),ba(p,v.bm("parent","hidden"))}i(),d.unmount()}function i(){var p,v;(v=(p=h.$el)==null?void 0:p.parentNode)==null||v.removeChild(h.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(s.value=!0,clearTimeout(n),n=setTimeout(c,400),a.visible=!1,(p=e.closed)==null||p.call(e))}function c(){if(!s.value)return;const p=a.parent;s.value=!1,p.vLoadingAddClassList=void 0,r()}const d=bE(j({name:"ElLoading",setup(p,{expose:v}){const{ns:m,zIndex:g}=Eb("loading");return v({ns:m,zIndex:g}),()=>{const b=a.spinner||a.svg,C=ot("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...b?{innerHTML:b}:{}},[ot("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),w=a.text?ot("p",{class:m.b("text")},[a.text]):void 0;return ot(bs,{name:m.b("fade"),onAfterLeave:c},{default:X(()=>[gt(W("div",{style:{backgroundColor:a.background||""},class:[m.b("mask"),a.customClass,m.is("fullscreen",a.fullscreen)]},[ot("div",{class:m.b("spinner")},[C,w])]),[[Bt,a.visible]])])})}}}));Object.assign(d._context,t??{});const h=d.mount(document.createElement("div"));return{...gs(a),setText:o,removeElLoadingChild:i,close:l,handleAfterLeave:c,vm:h,get $el(){return h.$el}}}let B2;const Vf=function(e={},t){if(!jt)return;const n=Gme(e);if(n.fullscreen&&B2)return B2;const s=qme({...n,closed:()=>{var o;(o=n.closed)==null||o.call(n),n.fullscreen&&(B2=void 0)}},t??Vf._context);Yme(n,n.parent,s),tx(n,n.parent,s),n.parent.vLoadingAddClassList=()=>tx(n,n.parent,s);let a=n.parent.getAttribute("loading-number");return a?a=`${Number.parseInt(a)+1}`:a="1",n.parent.setAttribute("loading-number",a),n.parent.appendChild(s.$el),ze(()=>s.visible.value=n.visible),n.fullscreen&&(B2=s),s},Gme=e=>{var t,n,s,a;let o;return Xe(e.target)?o=(t=document.querySelector(e.target))!=null?t:document.body:o=e.target||document.body,{parent:o===document.body||e.body?document.body:o,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:o===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(s=e.lock)!=null?s:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:o}},Yme=async(e,t,n)=>{const{nextZIndex:s}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=fl(document.body,"position"),n.originalOverflow.value=fl(document.body,"overflow"),a.zIndex=s();else if(e.parent===document.body){n.originalPosition.value=fl(document.body,"position"),await ze();for(const o of["top","left"]){const r=o==="top"?"scrollTop":"scrollLeft";a[o]=`${e.target.getBoundingClientRect()[o]+document.body[r]+document.documentElement[r]-Number.parseInt(fl(document.body,`margin-${o}`),10)}px`}for(const o of["height","width"])a[o]=`${e.target.getBoundingClientRect()[o]}px`}else n.originalPosition.value=fl(t,"position");for(const[o,r]of Object.entries(a))n.$el.style[o]=r},tx=(e,t,n)=>{const s=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?ba(t,s.bm("parent","relative")):Wo(t,s.bm("parent","relative")),e.fullscreen&&e.lock?Wo(t,s.bm("parent","hidden")):ba(t,s.bm("parent","hidden"))};Vf._context=null;const q0=Symbol("ElLoading"),ru=e=>`element-loading-${Ll(e)}`,nx=(e,t)=>{var n,s,a,o;const r=t.instance,i=p=>ft(t.value)?t.value[p]:void 0,l=p=>{const v=Xe(p)&&(r==null?void 0:r[p])||p;return F(v)},c=p=>l(i(p)||e.getAttribute(ru(p))),u=(n=i("fullscreen"))!=null?n:t.modifiers.fullscreen,d={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:u,target:(s=i("target"))!=null?s:u?void 0:e,body:(a=i("body"))!=null?a:t.modifiers.body,lock:(o=i("lock"))!=null?o:t.modifiers.lock},h=Vf(d);h._context=xp._context,e[q0]={options:d,instance:h}},Xme=(e,t)=>{for(const n of Object.keys(e))vn(e[n])&&(e[n].value=t[n])},xp={mounted(e,t){t.value&&nx(e,t)},updated(e,t){const n=e[q0];if(!t.value){n==null||n.instance.close(),e[q0]=null;return}n?Xme(n.options,ft(t.value)?t.value:{text:e.getAttribute(ru("text")),svg:e.getAttribute(ru("svg")),svgViewBox:e.getAttribute(ru("svgViewBox")),spinner:e.getAttribute(ru("spinner")),background:e.getAttribute(ru("background")),customClass:e.getAttribute(ru("customClass"))}):nx(e,t)},unmounted(e){var t;(t=e[q0])==null||t.instance.close(),e[q0]=null}};xp._context=null;const Jme={install(e){Vf._context=e._context,xp._context=e._context,e.directive("loading",xp),e.config.globalProperties.$loading=Vf},directive:xp,service:Vf},oP=["primary","success","info","warning","error"],rP=["top","top-left","top-right","bottom","bottom-left","bottom-right"],sv="top",ea=Tn({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:jt?document.body:void 0}),Zme=Me({customClass:{type:String,default:ea.customClass},dangerouslyUseHTMLString:{type:Boolean,default:ea.dangerouslyUseHTMLString},duration:{type:Number,default:ea.duration},icon:{type:en,default:ea.icon},id:{type:String,default:ea.id},message:{type:re([String,Object,Function]),default:ea.message},onClose:{type:re(Function),default:ea.onClose},showClose:{type:Boolean,default:ea.showClose},type:{type:String,values:oP,default:ea.type},plain:{type:Boolean,default:ea.plain},offset:{type:Number,default:ea.offset},placement:{type:String,values:rP,default:ea.placement},zIndex:{type:Number,default:ea.zIndex},grouping:{type:Boolean,default:ea.grouping},repeatNum:{type:Number,default:ea.repeatNum}}),Qme={destroy:()=>!0},br=lb({}),e2e=e=>(br[e]||(br[e]=lb([])),br[e]),t2e=(e,t)=>{const n=br[t]||[],s=n.findIndex(r=>r.id===e),a=n[s];let o;return s>0&&(o=n[s-1]),{current:a,prev:o}},n2e=(e,t)=>{const{prev:n}=t2e(e,t);return n?n.vm.exposed.bottom.value:0},s2e=(e,t,n)=>(br[n]||[]).findIndex(o=>o.id===e)>0?16:t,a2e=["id"],o2e=["innerHTML"];var r2e=j({name:"ElMessage",__name:"message",props:Zme,emits:Qme,setup(e,{expose:t,emit:n}){const{Close:s}=j8,a=e,o=n,r=F(!1),{ns:i,zIndex:l}=Eb("message"),{currentZIndex:c,nextZIndex:u}=l,d=F(),h=F(!1),p=F(0);let v;const m=k(()=>a.type?a.type==="error"?"danger":a.type:"info"),g=k(()=>{const B=a.type;return{[i.bm("icon",B)]:B&&Hc[B]}}),b=k(()=>a.icon||Hc[a.type]||""),C=k(()=>a.placement||sv),w=k(()=>n2e(a.id,C.value)),_=k(()=>s2e(a.id,a.offset,C.value)+w.value),x=k(()=>p.value+_.value),E=k(()=>C.value.includes("left")?i.is("left"):C.value.includes("right")?i.is("right"):i.is("center")),T=k(()=>C.value.startsWith("top")?"top":"bottom"),R=k(()=>({[T.value]:`${_.value}px`,zIndex:c.value}));function I(){a.duration!==0&&({stop:v}=Zh(()=>{$()},a.duration))}function M(){v==null||v()}function $(){h.value=!1,ze(()=>{var B;r.value||((B=a.onClose)==null||B.call(a),o("destroy"))})}function L(B){an(B)===Te.esc&&$()}return St(()=>{I(),u(),h.value=!0}),be(()=>a.repeatNum,()=>{M(),I()}),Xt(document,"keydown",L),wn(d,()=>{p.value=d.value.getBoundingClientRect().height}),t({visible:h,bottom:x,close:$}),(B,q)=>(S(),ce(bs,{name:f(i).b("fade"),onBeforeEnter:q[0]||(q[0]=J=>r.value=!0),onBeforeLeave:e.onClose,onAfterLeave:q[1]||(q[1]=J=>B.$emit("destroy")),persisted:""},{default:X(()=>[gt(A("div",{id:e.id,ref_key:"messageRef",ref:d,class:D([f(i).b(),{[f(i).m(e.type)]:e.type},f(i).is("closable",e.showClose),f(i).is("plain",e.plain),f(i).is("bottom",T.value==="bottom"),E.value,e.customClass]),style:tt(R.value),role:"alert",onMouseenter:M,onMouseleave:I},[e.repeatNum>1?(S(),ce(f(IA),{key:0,value:e.repeatNum,type:m.value,class:D(f(i).e("badge"))},null,8,["value","type","class"])):ie("v-if",!0),b.value?(S(),ce(f(Ye),{key:1,class:D([f(i).e("icon"),g.value])},{default:X(()=>[(S(),ce(bt(b.value)))]),_:1},8,["class"])):ie("v-if",!0),ue(B.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(S(),P(Ve,{key:1},[ie(" Caution here, message could've been compromised, never use user's input as message "),A("p",{class:D(f(i).e("content")),innerHTML:e.message},null,10,o2e)],2112)):(S(),P("p",{key:0,class:D(f(i).e("content"))},ge(e.message),3))]),e.showClose?(S(),ce(f(Ye),{key:2,class:D(f(i).e("closeBtn")),onClick:it($,["stop"])},{default:X(()=>[W(f(s))]),_:1},8,["class"])):ie("v-if",!0)],46,a2e),[[Bt,h.value]])]),_:3},8,["name","onBeforeLeave"]))}});let i2e=1;const l2e=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Xe(e.appendTo)){let n=document.querySelector(e.appendTo);Ya(n)||(n=document.body),e.appendTo=n}},c2e=e=>{!e.placement&&Xe(da.placement)&&da.placement&&(e.placement=da.placement),e.placement||(e.placement=sv),rP.includes(e.placement)||(e.placement=sv)},iP=e=>{const t=!e||Xe(e)||un(e)||nt(e)?{message:e}:e,n={...ea,...t};return l2e(n),c2e(n),Qt(da.grouping)&&!n.grouping&&(n.grouping=da.grouping),st(da.duration)&&n.duration===3e3&&(n.duration=da.duration),st(da.offset)&&n.offset===16&&(n.offset=da.offset),Qt(da.showClose)&&!n.showClose&&(n.showClose=da.showClose),Qt(da.plain)&&!n.plain&&(n.plain=da.plain),n},u2e=e=>{const t=e.props.placement||sv,n=br[t],s=n.indexOf(e);if(s===-1)return;n.splice(s,1);const{handler:a}=e;a.close()},d2e=({appendTo:e,...t},n)=>{const s=`message_${i2e++}`,a=t.onClose,o=document.createElement("div"),r={...t,id:s,onClose:()=>{a==null||a(),u2e(u)},onDestroy:()=>{zc(null,o)}},i=W(r2e,r,nt(r.message)||un(r.message)?{default:nt(r.message)?r.message:()=>r.message}:null);i.appContext=n||Hd._context,zc(i,o),e.appendChild(o.firstElementChild);const l=i.component,u={id:s,vnode:i,vm:l,handler:{close:()=>{l.exposed.close()}},props:i.component.props};return u},Hd=(e={},t)=>{if(!jt)return{close:()=>{}};const n=iP(e),s=e2e(n.placement||sv);if(n.grouping&&s.length){const o=s.find(({vnode:r})=>{var i;return((i=r.props)==null?void 0:i.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}if(st(da.max)&&s.length>=da.max)return{close:()=>{}};const a=d2e(n,t);return s.push(a),a.handler};oP.forEach(e=>{Hd[e]=(t={},n)=>{const s=iP(t);return Hd({...s,type:e},n)}});function f2e(e){for(const t in br)if(Wt(br,t)){const n=[...br[t]];for(const s of n)(!e||e===s.props.type)&&s.handler.close()}}function h2e(e){if(!br[e])return;[...br[e]].forEach(n=>n.handler.close())}Hd.closeAll=f2e;Hd.closeAllByPlacement=h2e;Hd._context=null;const zs=Ck(Hd,"$message"),A3="_trap-focus-children",Cu=[],sx=e=>{if(Cu.length===0)return;const t=an(e),n=Cu[Cu.length-1][A3];if(n.length>0&&t===Te.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const s=e.shiftKey,a=e.target===n[0],o=e.target===n[n.length-1];a&&s&&(e.preventDefault(),n[n.length-1].focus()),o&&!s&&(e.preventDefault(),n[0].focus())}},p2e={beforeMount(e){e[A3]=fS(e),Cu.push(e),Cu.length<=1&&document.addEventListener("keydown",sx)},updated(e){ze(()=>{e[A3]=fS(e)})},unmounted(){Cu.shift(),Cu.length===0&&document.removeEventListener("keydown",sx)}};var v2e=j({name:"ElMessageBox",directives:{TrapFocus:p2e},components:{ElButton:ps,ElFocusTrap:C0,ElInput:ga,ElOverlay:Ew,ElIcon:Ye,...j8},inheritAttrs:!1,props:{buttonSize:{type:String,validator:$M},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(e,{emit:t}){const{locale:n,zIndex:s,ns:a,size:o}=Eb("message-box",k(()=>e.buttonSize)),{t:r}=n,{nextZIndex:i}=s,l=F(!1),c=Kt({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:di(Ao),cancelButtonLoadingIcon:di(Ao),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),u=k(()=>{const O=c.type;return{[a.bm("icon",O)]:O&&Hc[O]}}),d=Fs(),h=Fs(),p=k(()=>{const O=c.type;return c.icon||O&&Hc[O]||""}),v=k(()=>!!c.message),m=F(),g=F(),b=F(),C=F(),w=F(),_=k(()=>c.confirmButtonClass);be(()=>c.inputValue,async O=>{await ze(),e.boxType==="prompt"&&O&&B()},{immediate:!0}),be(()=>l.value,O=>{var N,V;O&&(e.boxType!=="prompt"&&(c.autofocus?b.value=(V=(N=w.value)==null?void 0:N.$el)!=null?V:m.value:b.value=m.value),c.zIndex=i()),e.boxType==="prompt"&&(O?ze().then(()=>{var z;C.value&&C.value.$el&&(c.autofocus?b.value=(z=q())!=null?z:m.value:b.value=m.value)}):(c.editorErrorMessage="",c.validateError=!1))});const x=k(()=>e.draggable),E=k(()=>e.overflow),{isDragging:T}=JT(m,g,x,E);St(async()=>{await ze(),e.closeOnHashChange&&window.addEventListener("hashchange",R)}),qt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",R)});function R(){l.value&&(l.value=!1,ze(()=>{c.action&&t("action",c.action)}))}const I=()=>{e.closeOnClickModal&&L(c.distinguishCancelAndClose?"close":"cancel")},M=xw(I),$=O=>{var N;if(c.inputType!=="textarea"&&!((N=C.value)!=null&&N.isComposing))return O.preventDefault(),L("confirm")},L=O=>{var N;e.boxType==="prompt"&&O==="confirm"&&!B()||(c.action=O,c.beforeClose?(N=c.beforeClose)==null||N.call(c,O,c,R):R())},B=()=>{if(e.boxType==="prompt"){const O=c.inputPattern;if(O&&!O.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;const N=c.inputValidator;if(nt(N)){const V=N(c.inputValue);if(V===!1)return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;if(Xe(V))return c.editorErrorMessage=V,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},q=()=>{var O,N;const V=(O=C.value)==null?void 0:O.$refs;return(N=V==null?void 0:V.input)!=null?N:V==null?void 0:V.textarea},J=()=>{L("close")},Y=()=>{e.closeOnPressEscape&&J()};return e.lockScroll&&Fb(l,{ns:a}),{...gs(c),ns:a,overlayEvent:M,visible:l,hasMessage:v,typeClass:u,contentId:d,inputId:h,btnSize:o,iconComponent:p,confirmButtonClasses:_,rootRef:m,focusStartRef:b,headerRef:g,inputRef:C,isDragging:T,confirmRef:w,doClose:R,handleClose:J,onCloseRequested:Y,handleWrapperClick:I,handleInputEnter:$,handleAction:L,t:r}}});const m2e=["aria-label","aria-describedby"],g2e=["aria-label"],b2e=["id"];function y2e(e,t,n,s,a,o){const r=qe("el-icon"),i=qe("el-input"),l=qe("el-button"),c=qe("el-focus-trap"),u=qe("el-overlay");return S(),ce(bs,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=d=>e.$emit("vanish")),persisted:""},{default:X(()=>[gt(W(u,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:X(()=>[A("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:D(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...d)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...d)),onMousedown:t[9]||(t[9]=(...d)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...d)),onMouseup:t[10]||(t[10]=(...d)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...d))},[W(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:X(()=>[A("div",{ref:"rootRef",class:D([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:tt(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=it(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(S(),P("div",{key:0,ref:"headerRef",class:D([e.ns.e("header"),{"show-close":e.showClose}])},[A("div",{class:D(e.ns.e("title"))},[e.iconComponent&&e.center?(S(),ce(r,{key:0,class:D([e.ns.e("status"),e.typeClass])},{default:X(()=>[(S(),ce(bt(e.iconComponent)))]),_:1},8,["class"])):ie("v-if",!0),A("span",null,ge(e.title),1)],2),e.showClose?(S(),P("button",{key:0,type:"button",class:D(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Ln(it(d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[W(r,{class:D(e.ns.e("close"))},{default:X(()=>[(S(),ce(bt(e.closeIcon||"close")))]),_:1},8,["class"])],42,g2e)):ie("v-if",!0)],2)):ie("v-if",!0),A("div",{id:e.contentId,class:D(e.ns.e("content"))},[A("div",{class:D(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(S(),ce(r,{key:0,class:D([e.ns.e("status"),e.typeClass])},{default:X(()=>[(S(),ce(bt(e.iconComponent)))]),_:1},8,["class"])):ie("v-if",!0),e.hasMessage?(S(),P("div",{key:1,class:D(e.ns.e("message"))},[ue(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(S(),ce(bt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(S(),ce(bt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:ge(e.message)},null,8,["for","textContent"]))])],2)):ie("v-if",!0)],2),gt(A("div",{class:D(e.ns.e("input"))},[W(i,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=d=>e.inputValue=d),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:D({invalid:e.validateError}),onKeydown:Ln(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),A("div",{class:D(e.ns.e("errormsg")),style:tt({visibility:e.editorErrorMessage?"visible":"hidden"})},ge(e.editorErrorMessage),7)],2),[[Bt,e.showInput]])],10,b2e),A("div",{class:D(e.ns.e("btns"))},[e.showCancelButton?(S(),ce(l,{key:0,type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:D([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=d=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Ln(it(d=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:X(()=>[We(ge(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):ie("v-if",!0),gt(W(l,{ref:"confirmRef",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:D([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=d=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Ln(it(d=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:X(()=>[We(ge(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[Bt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,m2e)]),_:3},8,["z-index","overlay-class","mask"]),[[Bt,e.visible]])]),_:3})}var w2e=is(v2e,[["render",y2e]]);const av=new Map,_2e=e=>{let t=document.body;return e.appendTo&&(Xe(e.appendTo)&&(t=document.querySelector(e.appendTo)),Ya(e.appendTo)&&(t=e.appendTo),Ya(t)||(t=document.body)),t},C2e=(e,t,n=null)=>{const s=W(w2e,e,nt(e.message)||un(e.message)?{default:nt(e.message)?e.message:()=>e.message}:null);return s.appContext=n,zc(s,t),_2e(e).appendChild(t.firstElementChild),s.component},S2e=()=>document.createElement("div"),x2e=(e,t)=>{const n=S2e();e.onVanish=()=>{zc(null,n),av.delete(a)},e.onAction=o=>{const r=av.get(a);let i;e.showInput?i={value:a.inputValue,action:o}:i=o,e.callback?e.callback(i,s.proxy):o==="cancel"||o==="close"?e.distinguishCancelAndClose&&o!=="cancel"?r.reject("close"):r.reject("cancel"):r.resolve(i)};const s=C2e(e,n,t),a=s.proxy;for(const o in e)Wt(e,o)&&!Wt(a.$props,o)&&(o==="closeIcon"&&ft(e[o])?a[o]=di(e[o]):a[o]=e[o]);return a.visible=!0,a};function E0(e,t=null){if(!jt)return Promise.reject();let n;return Xe(e)||un(e)?e={message:e}:n=e.callback,new Promise((s,a)=>{const o=x2e(e,t??E0._context);av.set(o,{options:e,callback:n,resolve:s,reject:a})})}const E2e=["alert","confirm","prompt"],k2e={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};E2e.forEach(e=>{E0[e]=A2e(e)});function A2e(e){return(t,n,s,a)=>{let o="";return ft(n)?(s=n,o=""):Dt(n)?o="":o=n,E0(Object.assign({title:o,message:t,type:"",...k2e[e]},s,{boxType:e}),a)}}E0.close=()=>{av.forEach((e,t)=>{t.doClose()}),av.clear()};E0._context=null;const Gl=E0;Gl.install=e=>{Gl._context=e._context,e.config.globalProperties.$msgbox=Gl,e.config.globalProperties.$messageBox=Gl,e.config.globalProperties.$alert=Gl.alert,e.config.globalProperties.$confirm=Gl.confirm,e.config.globalProperties.$prompt=Gl.prompt};const T2e=Gl,lP=["primary","success","info","warning","error"],M2e=Me({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:en},id:{type:String,default:""},message:{type:re([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:re(Function),default:()=>{}},onClose:{type:re(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:[...lP,""],default:""},zIndex:Number,closeIcon:{type:en,default:eo}}),P2e={destroy:()=>!0},R2e=["id"],I2e=["textContent"],L2e={key:0},O2e=["innerHTML"];var N2e=j({name:"ElNotification",__name:"notification",props:M2e,emits:P2e,setup(e,{expose:t}){const n=e,{ns:s,zIndex:a}=Eb("notification"),{nextZIndex:o,currentZIndex:r}=a,i=F(!1);let l;const c=k(()=>{const C=n.type;return C&&Hc[n.type]?s.m(C):""}),u=k(()=>n.type&&Hc[n.type]||n.icon),d=k(()=>n.position.endsWith("right")?"right":"left"),h=k(()=>n.position.startsWith("top")?"top":"bottom"),p=k(()=>{var C;return{[h.value]:`${n.offset}px`,zIndex:(C=n.zIndex)!=null?C:r.value}});function v(){n.duration>0&&({stop:l}=Zh(()=>{i.value&&g()},n.duration))}function m(){l==null||l()}function g(){i.value=!1}function b(C){switch(an(C)){case Te.delete:case Te.backspace:m();break;case Te.esc:i.value&&g();break;default:v();break}}return St(()=>{v(),o(),i.value=!0}),Xt(document,"keydown",b),t({visible:i,close:g}),(C,w)=>(S(),ce(bs,{name:f(s).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:w[1]||(w[1]=_=>C.$emit("destroy")),persisted:""},{default:X(()=>[gt(A("div",{id:e.id,class:D([f(s).b(),e.customClass,d.value]),style:tt(p.value),role:"alert",onMouseenter:m,onMouseleave:v,onClick:w[0]||(w[0]=(..._)=>e.onClick&&e.onClick(..._))},[u.value?(S(),ce(f(Ye),{key:0,class:D([f(s).e("icon"),c.value])},{default:X(()=>[(S(),ce(bt(u.value)))]),_:1},8,["class"])):ie("v-if",!0),A("div",{class:D(f(s).e("group"))},[A("h2",{class:D(f(s).e("title")),textContent:ge(e.title)},null,10,I2e),gt(A("div",{class:D(f(s).e("content")),style:tt(e.title?void 0:{margin:0})},[ue(C.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(S(),P(Ve,{key:1},[ie(" Caution here, message could've been compromised, never use user's input as message "),A("p",{innerHTML:e.message},null,8,O2e)],2112)):(S(),P("p",L2e,ge(e.message),1))])],6),[[Bt,e.message]]),e.showClose?(S(),ce(f(Ye),{key:0,class:D(f(s).e("closeBtn")),onClick:it(g,["stop"])},{default:X(()=>[(S(),ce(bt(e.closeIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],46,R2e),[[Bt,i.value]])]),_:3},8,["name","onBeforeLeave"]))}});const d0={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},A1=16;let $2e=1;const Wd=function(e={},t){if(!jt)return{close:()=>{}};(Xe(e)||un(e))&&(e={message:e});const n=e.position||"top-right";let s=e.offset||0;d0[n].forEach(({vm:u})=>{var d;s+=(((d=u.el)==null?void 0:d.offsetHeight)||0)+A1}),s+=A1;const a=`notification_${$2e++}`,o=e.onClose,r={...e,offset:s,id:a,onClose:()=>{D2e(a,n,o)}};let i=document.body;Ya(e.appendTo)?i=e.appendTo:Xe(e.appendTo)&&(i=document.querySelector(e.appendTo)),Ya(i)||(i=document.body);const l=document.createElement("div"),c=W(N2e,r,nt(r.message)?r.message:un(r.message)?()=>r.message:null);return c.appContext=Dt(t)?Wd._context:t,c.props.onDestroy=()=>{zc(null,l)},zc(c,l),d0[n].push({vm:c}),i.appendChild(l.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};lP.forEach(e=>{Wd[e]=(t={},n)=>((Xe(t)||un(t))&&(t={message:t}),Wd({...t,type:e},n))});function D2e(e,t,n){const s=d0[t],a=s.findIndex(({vm:c})=>{var u;return((u=c.component)==null?void 0:u.props.id)===e});if(a===-1)return;const{vm:o}=s[a];if(!o)return;n==null||n(o);const r=o.el.offsetHeight,i=t.split("-")[0];s.splice(a,1);const l=s.length;if(!(l<1))for(let c=a;c<l;c++){const{el:u,component:d}=s[c].vm,h=Number.parseInt(u.style[i],10)-r-A1;d.props.offset=h}}function F2e(){for(const e of Object.values(d0))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}function B2e(e="top-right"){var t,n,s,a;let o=((s=(n=(t=d0[e][0])==null?void 0:t.vm.component)==null?void 0:n.props)==null?void 0:s.offset)||0;for(const{vm:r}of d0[e])r.component.props.offset=o,o+=(((a=r.el)==null?void 0:a.offsetHeight)||0)+A1}Wd.closeAll=F2e;Wd.updateOffsets=B2e;Wd._context=null;const V2e=Ck(Wd,"$notify");var z2e=[Ume,Jme,zs,T2e,V2e,bM],l_=ZV([...Bme,...z2e]);l_.install;l_.version;const zl=(e,t)=>{const n=e.__vccOpts||e;for(const[s,a]of t)n[s]=a;return n},H2e={};function W2e(e,t){const n=qe("RouterView");return S(),ce(n)}const j2e=zl(H2e,[["render",W2e]]);/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const vf=typeof document<"u";function cP(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function K2e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&cP(e.default)}const xn=Object.assign;function J4(e,t){const n={};for(const s in t){const a=t[s];n[s]=Ar(a)?a.map(e):e(a)}return n}const Ep=()=>{},Ar=Array.isArray;function ax(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const uP=/#/g,U2e=/&/g,q2e=/\//g,G2e=/=/g,Y2e=/\?/g,dP=/\+/g,X2e=/%5B/g,J2e=/%5D/g,fP=/%5E/g,Z2e=/%60/g,hP=/%7B/g,Q2e=/%7C/g,pP=/%7D/g,ege=/%20/g;function c_(e){return e==null?"":encodeURI(""+e).replace(Q2e,"|").replace(X2e,"[").replace(J2e,"]")}function tge(e){return c_(e).replace(hP,"{").replace(pP,"}").replace(fP,"^")}function T3(e){return c_(e).replace(dP,"%2B").replace(ege,"+").replace(uP,"%23").replace(U2e,"%26").replace(Z2e,"`").replace(hP,"{").replace(pP,"}").replace(fP,"^")}function nge(e){return T3(e).replace(G2e,"%3D")}function sge(e){return c_(e).replace(uP,"%23").replace(Y2e,"%3F")}function age(e){return sge(e).replace(q2e,"%2F")}function ov(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const oge=/\/$/,rge=e=>e.replace(oge,"");function Z4(e,t,n="/"){let s,a={},o="",r="";const i=t.indexOf("#");let l=t.indexOf("?");return l=i>=0&&l>i?-1:l,l>=0&&(s=t.slice(0,l),o=t.slice(l,i>0?i:t.length),a=e(o.slice(1))),i>=0&&(s=s||t.slice(0,i),r=t.slice(i,t.length)),s=uge(s??t,n),{fullPath:s+o+r,path:s,query:a,hash:ov(r)}}function ige(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ox(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function lge(e,t,n){const s=t.matched.length-1,a=n.matched.length-1;return s>-1&&s===a&&f0(t.matched[s],n.matched[a])&&vP(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function f0(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function vP(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!cge(e[n],t[n]))return!1;return!0}function cge(e,t){return Ar(e)?rx(e,t):Ar(t)?rx(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function rx(e,t){return Ar(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function uge(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),a=s[s.length-1];(a===".."||a===".")&&s.push("");let o=n.length-1,r,i;for(r=0;r<s.length;r++)if(i=s[r],i!==".")if(i==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r).join("/")}const jl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let M3=function(e){return e.pop="pop",e.push="push",e}({}),Q4=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function dge(e){if(!e)if(vf){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),rge(e)}const fge=/^[^#]+#/;function hge(e,t){return e.replace(fge,"#")+t}function pge(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const qb=()=>({left:window.scrollX,top:window.scrollY});function vge(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=pge(a,e)}else t=e;"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 ix(e,t){return(history.state?history.state.position-t:-1)+e}const P3=new Map;function mge(e,t){P3.set(e,t)}function gge(e){const t=P3.get(e);return P3.delete(e),t}function bge(e){return typeof e=="string"||e&&typeof e=="object"}function mP(e){return typeof e=="string"||typeof e=="symbol"}let as=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const gP=Symbol("");as.MATCHER_NOT_FOUND+"",as.NAVIGATION_GUARD_REDIRECT+"",as.NAVIGATION_ABORTED+"",as.NAVIGATION_CANCELLED+"",as.NAVIGATION_DUPLICATED+"";function h0(e,t){return xn(new Error,{type:e,[gP]:!0},t)}function Pi(e,t){return e instanceof Error&&gP in e&&(t==null||!!(e.type&t))}const yge=["params","query","hash"];function wge(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of yge)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function _ge(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const a=n[s].replace(dP," "),o=a.indexOf("="),r=ov(o<0?a:a.slice(0,o)),i=o<0?null:ov(a.slice(o+1));if(r in t){let l=t[r];Ar(l)||(l=t[r]=[l]),l.push(i)}else t[r]=i}return t}function lx(e){let t="";for(let n in e){const s=e[n];if(n=nge(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ar(s)?s.map(a=>a&&T3(a)):[s&&T3(s)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function Cge(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ar(s)?s.map(a=>a==null?null:""+a):s==null?s:""+s)}return t}const Sge=Symbol(""),cx=Symbol(""),Gb=Symbol(""),bP=Symbol(""),R3=Symbol("");function D0(){let e=[];function t(s){return e.push(s),()=>{const a=e.indexOf(s);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Zl(e,t,n,s,a,o=r=>r()){const r=s&&(s.enterCallbacks[a]=s.enterCallbacks[a]||[]);return()=>new Promise((i,l)=>{const c=h=>{h===!1?l(h0(as.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?l(h):bge(h)?l(h0(as.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(r&&s.enterCallbacks[a]===r&&typeof h=="function"&&r.push(h),i())},u=o(()=>e.call(s&&s.instances[a],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(h=>l(h))})}function ey(e,t,n,s,a=o=>o()){const o=[];for(const r of e)for(const i in r.components){let l=r.components[i];if(!(t!=="beforeRouteEnter"&&!r.instances[i]))if(cP(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Zl(c,n,s,r,i,a))}else{let c=l();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${i}" at "${r.path}"`);const d=K2e(u)?u.default:u;r.mods[i]=u,r.components[i]=d;const h=(d.__vccOpts||d)[t];return h&&Zl(h,n,s,r,i,a)()}))}}return o}function xge(e,t){const n=[],s=[],a=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;r<o;r++){const i=t.matched[r];i&&(e.matched.find(c=>f0(c,i))?s.push(i):n.push(i));const l=e.matched[r];l&&(t.matched.find(c=>f0(c,l))||a.push(l))}return[n,s,a]}/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let Ege=()=>location.protocol+"//"+location.host;function yP(e,t){const{pathname:n,search:s,hash:a}=t,o=e.indexOf("#");if(o>-1){let r=a.includes(e.slice(o))?e.slice(o).length:1,i=a.slice(r);return i[0]!=="/"&&(i="/"+i),ox(i,"")}return ox(n,e)+s+a}function kge(e,t,n,s){let a=[],o=[],r=null;const i=({state:h})=>{const p=yP(e,location),v=n.value,m=t.value;let g=0;if(h){if(n.value=p,t.value=h,r&&r===v){r=null;return}g=m?h.position-m.position:0}else s(p);a.forEach(b=>{b(n.value,v,{delta:g,type:M3.pop,direction:g?g>0?Q4.forward:Q4.back:Q4.unknown})})};function l(){r=n.value}function c(h){a.push(h);const p=()=>{const v=a.indexOf(h);v>-1&&a.splice(v,1)};return o.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(xn({},h.state,{scroll:qb()}),"")}}function d(){for(const h of o)h();o=[],window.removeEventListener("popstate",i),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",i),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:c,destroy:d}}function ux(e,t,n,s=!1,a=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:a?qb():null}}function Age(e){const{history:t,location:n}=window,s={value:yP(e,n)},a={value:t.state};a.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const d=e.indexOf("#"),h=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Ege()+e+l;try{t[u?"replaceState":"pushState"](c,"",h),a.value=c}catch(p){console.error(p),n[u?"replace":"assign"](h)}}function r(l,c){o(l,xn({},t.state,ux(a.value.back,l,a.value.forward,!0),c,{position:a.value.position}),!0),s.value=l}function i(l,c){const u=xn({},a.value,t.state,{forward:l,scroll:qb()});o(u.current,u,!0),o(l,xn({},ux(s.value,l,null),{position:u.position+1},c),!1),s.value=l}return{location:s,state:a,push:i,replace:r}}function Tge(e){e=dge(e);const t=Age(e),n=kge(e,t.state,t.location,t.replace);function s(o,r=!0){r||n.pauseListeners(),history.go(o)}const a=xn({location:"",base:e,go:s,createHref:hge.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}let Su=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var ws=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(ws||{});const Mge={type:Su.Static,value:""},Pge=/[a-zA-Z0-9_]/;function Rge(e){if(!e)return[[]];if(e==="/")return[[Mge]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=ws.Static,s=n;const a=[];let o;function r(){o&&a.push(o),o=[]}let i=0,l,c="",u="";function d(){c&&(n===ws.Static?o.push({type:Su.Static,value:c}):n===ws.Param||n===ws.ParamRegExp||n===ws.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Su.Param,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;i<e.length;){if(l=e[i++],l==="\\"&&n!==ws.ParamRegExp){s=n,n=ws.EscapeNext;continue}switch(n){case ws.Static:l==="/"?(c&&d(),r()):l===":"?(d(),n=ws.Param):h();break;case ws.EscapeNext:h(),n=s;break;case ws.Param:l==="("?n=ws.ParamRegExp:Pge.test(l)?h():(d(),n=ws.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--);break;case ws.ParamRegExp:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=ws.ParamRegExpEnd:u+=l;break;case ws.ParamRegExpEnd:d(),n=ws.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--,u="";break;default:t("Unknown state");break}}return n===ws.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),d(),r(),a}const dx="[^/]+?",Ige={sensitive:!1,strict:!1,start:!0,end:!0};var Ta=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(Ta||{});const Lge=/[.+*?^${}()[\]/\\]/g;function Oge(e,t){const n=xn({},Ige,t),s=[];let a=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[Ta.Root];n.strict&&!c.length&&(a+="/");for(let d=0;d<c.length;d++){const h=c[d];let p=Ta.Segment+(n.sensitive?Ta.BonusCaseSensitive:0);if(h.type===Su.Static)d||(a+="/"),a+=h.value.replace(Lge,"\\$&"),p+=Ta.Static;else if(h.type===Su.Param){const{value:v,repeatable:m,optional:g,regexp:b}=h;o.push({name:v,repeatable:m,optional:g});const C=b||dx;if(C!==dx){p+=Ta.BonusCustomRegExp;try{`${C}`}catch(_){throw new Error(`Invalid custom RegExp for param "${v}" (${C}): `+_.message)}}let w=m?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;d||(w=g&&c.length<2?`(?:/${w})`:"/"+w),g&&(w+="?"),a+=w,p+=Ta.Dynamic,g&&(p+=Ta.BonusOptional),m&&(p+=Ta.BonusRepeatable),C===".*"&&(p+=Ta.BonusWildcard)}u.push(p)}s.push(u)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=Ta.BonusStrict}n.strict||(a+="/?"),n.end?a+="$":n.strict&&!a.endsWith("/")&&(a+="(?:/|$)");const r=new RegExp(a,n.sensitive?"":"i");function i(c){const u=c.match(r),d={};if(!u)return null;for(let h=1;h<u.length;h++){const p=u[h]||"",v=o[h-1];d[v.name]=p&&v.repeatable?p.split("/"):p}return d}function l(c){let u="",d=!1;for(const h of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const p of h)if(p.type===Su.Static)u+=p.value;else if(p.type===Su.Param){const{value:v,repeatable:m,optional:g}=p,b=v in c?c[v]:"";if(Ar(b)&&!m)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const C=Ar(b)?b.join("/"):b;if(!C)if(g)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${v}"`);u+=C}}return u||"/"}return{re:r,score:s,keys:o,parse:i,stringify:l}}function Nge(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===Ta.Static+Ta.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Ta.Static+Ta.Segment?1:-1:0}function wP(e,t){let n=0;const s=e.score,a=t.score;for(;n<s.length&&n<a.length;){const o=Nge(s[n],a[n]);if(o)return o;n++}if(Math.abs(a.length-s.length)===1){if(fx(s))return 1;if(fx(a))return-1}return a.length-s.length}function fx(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const $ge={strict:!1,end:!0,sensitive:!1};function Dge(e,t,n){const s=Oge(Rge(e.path),n),a=xn(s,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function Fge(e,t){const n=[],s=new Map;t=ax($ge,t);function a(d){return s.get(d)}function o(d,h,p){const v=!p,m=px(d);m.aliasOf=p&&p.record;const g=ax(t,d),b=[m];if("alias"in d){const _=typeof d.alias=="string"?[d.alias]:d.alias;for(const x of _)b.push(px(xn({},m,{components:p?p.record.components:m.components,path:x,aliasOf:p?p.record:m})))}let C,w;for(const _ of b){const{path:x}=_;if(h&&x[0]!=="/"){const E=h.record.path,T=E[E.length-1]==="/"?"":"/";_.path=h.record.path+(x&&T+x)}if(C=Dge(_,h,g),p?p.alias.push(C):(w=w||C,w!==C&&w.alias.push(C),v&&d.name&&!vx(C)&&r(d.name)),_P(C)&&l(C),m.children){const E=m.children;for(let T=0;T<E.length;T++)o(E[T],C,p&&p.children[T])}p=p||C}return w?()=>{r(w)}:Ep}function r(d){if(mP(d)){const h=s.get(d);h&&(s.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(r),h.alias.forEach(r))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&s.delete(d.record.name),d.children.forEach(r),d.alias.forEach(r))}}function i(){return n}function l(d){const h=zge(d,n);n.splice(h,0,d),d.record.name&&!vx(d)&&s.set(d.record.name,d)}function c(d,h){let p,v={},m,g;if("name"in d&&d.name){if(p=s.get(d.name),!p)throw h0(as.MATCHER_NOT_FOUND,{location:d});g=p.record.name,v=xn(hx(h.params,p.keys.filter(w=>!w.optional).concat(p.parent?p.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),d.params&&hx(d.params,p.keys.map(w=>w.name))),m=p.stringify(v)}else if(d.path!=null)m=d.path,p=n.find(w=>w.re.test(m)),p&&(v=p.parse(m),g=p.record.name);else{if(p=h.name?s.get(h.name):n.find(w=>w.re.test(h.path)),!p)throw h0(as.MATCHER_NOT_FOUND,{location:d,currentLocation:h});g=p.record.name,v=xn({},h.params,d.params),m=p.stringify(v)}const b=[];let C=p;for(;C;)b.unshift(C.record),C=C.parent;return{name:g,path:m,params:v,matched:b,meta:Vge(b)}}e.forEach(d=>o(d));function u(){n.length=0,s.clear()}return{addRoute:o,resolve:c,removeRoute:r,clearRoutes:u,getRoutes:i,getRecordMatcher:a}}function hx(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function px(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Bge(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Bge(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function vx(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Vge(e){return e.reduce((t,n)=>xn(t,n.meta),{})}function zge(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;wP(e,t[o])<0?s=o:n=o+1}const a=Hge(e);return a&&(s=t.lastIndexOf(a,s-1)),s}function Hge(e){let t=e;for(;t=t.parent;)if(_P(t)&&wP(e,t)===0)return t}function _P({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function mx(e){const t=je(Gb),n=je(bP),s=k(()=>{const l=f(e.to);return t.resolve(l)}),a=k(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const h=d.findIndex(f0.bind(null,u));if(h>-1)return h;const p=gx(l[c-2]);return c>1&&gx(u)===p&&d[d.length-1].path!==p?d.findIndex(f0.bind(null,l[c-2])):h}),o=k(()=>a.value>-1&&qge(n.params,s.value.params)),r=k(()=>a.value>-1&&a.value===n.matched.length-1&&vP(n.params,s.value.params));function i(l={}){if(Uge(l)){const c=t[f(e.replace)?"replace":"push"](f(e.to)).catch(Ep);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:k(()=>s.value.href),isActive:o,isExactActive:r,navigate:i}}function Wge(e){return e.length===1?e[0]:e}const jge=j({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:mx,setup(e,{slots:t}){const n=Kt(mx(e)),{options:s}=je(Gb),a=k(()=>({[bx(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[bx(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Wge(t.default(n));return e.custom?o:ot("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},o)}}}),Kge=jge;function Uge(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function qge(e,t){for(const n in t){const s=t[n],a=e[n];if(typeof s=="string"){if(s!==a)return!1}else if(!Ar(a)||a.length!==s.length||s.some((o,r)=>o.valueOf()!==a[r].valueOf()))return!1}return!0}function gx(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const bx=(e,t,n)=>e??t??n,Gge=j({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=je(R3),a=k(()=>e.route||s.value),o=je(cx,0),r=k(()=>{let c=f(o);const{matched:u}=a.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),i=k(()=>a.value.matched[r.value]);Mt(cx,k(()=>r.value+1)),Mt(Sge,i),Mt(R3,a);const l=F();return be(()=>[l.value,i.value,e.name],([c,u,d],[h,p,v])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!f0(u,p)||!h)&&(u.enterCallbacks[d]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=a.value,u=e.name,d=i.value,h=d&&d.components[u];if(!h)return yx(n.default,{Component:h,route:c});const p=d.props[u],v=p?p===!0?c.params:typeof p=="function"?p(c):p:null,g=ot(h,xn({},v,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return yx(n.default,{Component:g,route:c})||g}}});function yx(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Yge=Gge;function Xge(e){const t=Fge(e.routes,e),n=e.parseQuery||_ge,s=e.stringifyQuery||lx,a=e.history,o=D0(),r=D0(),i=D0(),l=fn(jl);let c=jl;vf&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=J4.bind(null,te=>""+te),d=J4.bind(null,age),h=J4.bind(null,ov);function p(te,pe){let fe,le;return mP(te)?(fe=t.getRecordMatcher(te),le=pe):le=te,t.addRoute(le,fe)}function v(te){const pe=t.getRecordMatcher(te);pe&&t.removeRoute(pe)}function m(){return t.getRoutes().map(te=>te.record)}function g(te){return!!t.getRecordMatcher(te)}function b(te,pe){if(pe=xn({},pe||l.value),typeof te=="string"){const de=Z4(n,te,pe.path),ye=t.resolve({path:de.path},pe),_e=a.createHref(de.fullPath);return xn(de,ye,{params:h(ye.params),hash:ov(de.hash),redirectedFrom:void 0,href:_e})}let fe;if(te.path!=null)fe=xn({},te,{path:Z4(n,te.path,pe.path).path});else{const de=xn({},te.params);for(const ye in de)de[ye]==null&&delete de[ye];fe=xn({},te,{params:d(de)}),pe.params=d(pe.params)}const le=t.resolve(fe,pe),Z=te.hash||"";le.params=u(h(le.params));const H=ige(s,xn({},te,{hash:tge(Z),path:le.path})),ae=a.createHref(H);return xn({fullPath:H,hash:Z,query:s===lx?Cge(te.query):te.query||{}},le,{redirectedFrom:void 0,href:ae})}function C(te){return typeof te=="string"?Z4(n,te,l.value.path):xn({},te)}function w(te,pe){if(c!==te)return h0(as.NAVIGATION_CANCELLED,{from:pe,to:te})}function _(te){return T(te)}function x(te){return _(xn(C(te),{replace:!0}))}function E(te,pe){const fe=te.matched[te.matched.length-1];if(fe&&fe.redirect){const{redirect:le}=fe;let Z=typeof le=="function"?le(te,pe):le;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=C(Z):{path:Z},Z.params={}),xn({query:te.query,hash:te.hash,params:Z.path!=null?{}:te.params},Z)}}function T(te,pe){const fe=c=b(te),le=l.value,Z=te.state,H=te.force,ae=te.replace===!0,de=E(fe,le);if(de)return T(xn(C(de),{state:typeof de=="object"?xn({},Z,de.state):Z,force:H,replace:ae}),pe||fe);const ye=fe;ye.redirectedFrom=pe;let _e;return!H&&lge(s,le,fe)&&(_e=h0(as.NAVIGATION_DUPLICATED,{to:ye,from:le}),G(le,le,!0,!1)),(_e?Promise.resolve(_e):M(ye,le)).catch(Se=>Pi(Se)?Pi(Se,as.NAVIGATION_GUARD_REDIRECT)?Se:z(Se):N(Se,ye,le)).then(Se=>{if(Se){if(Pi(Se,as.NAVIGATION_GUARD_REDIRECT))return T(xn({replace:ae},C(Se.to),{state:typeof Se.to=="object"?xn({},Z,Se.to.state):Z,force:H}),pe||ye)}else Se=L(ye,le,!0,ae,Z);return $(ye,le,Se),Se})}function R(te,pe){const fe=w(te,pe);return fe?Promise.reject(fe):Promise.resolve()}function I(te){const pe=ee.values().next().value;return pe&&typeof pe.runWithContext=="function"?pe.runWithContext(te):te()}function M(te,pe){let fe;const[le,Z,H]=xge(te,pe);fe=ey(le.reverse(),"beforeRouteLeave",te,pe);for(const de of le)de.leaveGuards.forEach(ye=>{fe.push(Zl(ye,te,pe))});const ae=R.bind(null,te,pe);return fe.push(ae),he(fe).then(()=>{fe=[];for(const de of o.list())fe.push(Zl(de,te,pe));return fe.push(ae),he(fe)}).then(()=>{fe=ey(Z,"beforeRouteUpdate",te,pe);for(const de of Z)de.updateGuards.forEach(ye=>{fe.push(Zl(ye,te,pe))});return fe.push(ae),he(fe)}).then(()=>{fe=[];for(const de of H)if(de.beforeEnter)if(Ar(de.beforeEnter))for(const ye of de.beforeEnter)fe.push(Zl(ye,te,pe));else fe.push(Zl(de.beforeEnter,te,pe));return fe.push(ae),he(fe)}).then(()=>(te.matched.forEach(de=>de.enterCallbacks={}),fe=ey(H,"beforeRouteEnter",te,pe,I),fe.push(ae),he(fe))).then(()=>{fe=[];for(const de of r.list())fe.push(Zl(de,te,pe));return fe.push(ae),he(fe)}).catch(de=>Pi(de,as.NAVIGATION_CANCELLED)?de:Promise.reject(de))}function $(te,pe,fe){i.list().forEach(le=>I(()=>le(te,pe,fe)))}function L(te,pe,fe,le,Z){const H=w(te,pe);if(H)return H;const ae=pe===jl,de=vf?history.state:{};fe&&(le||ae?a.replace(te.fullPath,xn({scroll:ae&&de&&de.scroll},Z)):a.push(te.fullPath,Z)),l.value=te,G(te,pe,fe,ae),z()}let B;function q(){B||(B=a.listen((te,pe,fe)=>{if(!se.listening)return;const le=b(te),Z=E(le,se.currentRoute.value);if(Z){T(xn(Z,{replace:!0,force:!0}),le).catch(Ep);return}c=le;const H=l.value;vf&&mge(ix(H.fullPath,fe.delta),qb()),M(le,H).catch(ae=>Pi(ae,as.NAVIGATION_ABORTED|as.NAVIGATION_CANCELLED)?ae:Pi(ae,as.NAVIGATION_GUARD_REDIRECT)?(T(xn(C(ae.to),{force:!0}),le).then(de=>{Pi(de,as.NAVIGATION_ABORTED|as.NAVIGATION_DUPLICATED)&&!fe.delta&&fe.type===M3.pop&&a.go(-1,!1)}).catch(Ep),Promise.reject()):(fe.delta&&a.go(-fe.delta,!1),N(ae,le,H))).then(ae=>{ae=ae||L(le,H,!1),ae&&(fe.delta&&!Pi(ae,as.NAVIGATION_CANCELLED)?a.go(-fe.delta,!1):fe.type===M3.pop&&Pi(ae,as.NAVIGATION_ABORTED|as.NAVIGATION_DUPLICATED)&&a.go(-1,!1)),$(le,H,ae)}).catch(Ep)}))}let J=D0(),Y=D0(),O;function N(te,pe,fe){z(te);const le=Y.list();return le.length?le.forEach(Z=>Z(te,pe,fe)):console.error(te),Promise.reject(te)}function V(){return O&&l.value!==jl?Promise.resolve():new Promise((te,pe)=>{J.add([te,pe])})}function z(te){return O||(O=!te,q(),J.list().forEach(([pe,fe])=>te?fe(te):pe()),J.reset()),te}function G(te,pe,fe,le){const{scrollBehavior:Z}=e;if(!vf||!Z)return Promise.resolve();const H=!fe&&gge(ix(te.fullPath,0))||(le||!fe)&&history.state&&history.state.scroll||null;return ze().then(()=>Z(te,pe,H)).then(ae=>ae&&vge(ae)).catch(ae=>N(ae,te,pe))}const Q=te=>a.go(te);let K;const ee=new Set,se={currentRoute:l,listening:!0,addRoute:p,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:m,resolve:b,options:e,push:_,replace:x,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:o.add,beforeResolve:r.add,afterEach:i.add,onError:Y.add,isReady:V,install(te){te.component("RouterLink",Kge),te.component("RouterView",Yge),te.config.globalProperties.$router=se,Object.defineProperty(te.config.globalProperties,"$route",{enumerable:!0,get:()=>f(l)}),vf&&!K&&l.value===jl&&(K=!0,_(a.location).catch(le=>{}));const pe={};for(const le in jl)Object.defineProperty(pe,le,{get:()=>l.value[le],enumerable:!0});te.provide(Gb,se),te.provide(bP,lb(pe)),te.provide(R3,l);const fe=te.unmount;ee.add(te),te.unmount=function(){ee.delete(te),ee.size<1&&(c=jl,B&&B(),B=null,l.value=jl,K=!1,O=!1),fe()}}};function he(te){return te.reduce((pe,fe)=>pe.then(()=>I(fe)),Promise.resolve())}return se}function CP(){return je(Gb)}const Jge={class:"card-title"},Zge={class:"batch-area"},Qge={class:"batch-input-row"},e1e={key:0,class:"batch-preview"},t1e={class:"batch-summary"},n1e={class:"batch-limit-row"},s1e={key:0,class:"batch-more-hint"},a1e={key:1,class:"batch-empty"},o1e={class:"option-row"},r1e={class:"mode-hint"},i1e={class:"option-row"},l1e={class:"option-row"},c1e={class:"submit-row"},u1e={__name:"FileUpload",emits:["submit"],setup(e,{emit:t}){const n=t,s=F("file"),a=F([]),o=F(null),r=F(""),i=F(["excel","json"]),l=F("drawing"),c=F(!0),u=F(null),d=F(null),h=F(null),p=F([]),v=F(200),m=k(()=>p.value.slice(0,v.value).map(I=>({name:I.webkitRelativePath||I.name,size:g(I.size),raw:I})));function g(I){return I<1024?`${I} B`:I<1024*1024?`${(I/1024).toFixed(1)} KB`:`${(I/(1024*1024)).toFixed(1)} MB`}function b(){var I;(I=d.value)==null||I.click()}function C(){var I;(I=h.value)==null||I.click()}function w(I){const M=Array.from(I.target.files||[]).filter($=>$.name.toLowerCase().endsWith(".pdf"));if(!M.length){zs.warning("未找到 PDF 文件");return}p.value=M,v.value=M.length,I.target.value=""}function _(){p.value=[],v.value=200}const x=k(()=>i.value.length===0?!1:s.value==="file"?!!o.value:s.value==="url"?r.value.trim().startsWith("http"):s.value==="batch"?p.value.length>0:!1);function E(I){o.value=I.raw,a.value=[I]}function T(){zs.warning("只能上传一个 PDF 文件,请先移除后再添加")}function R(){if(x.value){if(s.value==="batch"){const I=p.value.slice(0,v.value);n("submit",{file:null,url:null,files:I,formats:i.value,mode:l.value,autoCorrect:c.value,maxConcurrent:40,batch:!0});return}n("submit",{file:s.value==="file"?o.value:null,url:s.value==="url"?r.value.trim():null,files:null,formats:i.value,mode:l.value,autoCorrect:c.value,maxConcurrent:40,batch:!1})}}return(I,M)=>{const $=qe("Upload"),L=qe("el-icon"),B=qe("UploadFilled"),q=qe("el-upload"),J=qe("el-tab-pane"),Y=qe("Link"),O=qe("el-input"),N=qe("el-button"),V=qe("el-tag"),z=qe("el-input-number"),G=qe("el-table-column"),Q=qe("el-table"),K=qe("el-tabs"),ee=qe("el-radio-button"),se=qe("el-radio-group"),he=qe("el-switch"),te=qe("Grid"),pe=qe("el-checkbox"),fe=qe("DataLine"),le=qe("el-checkbox-group"),Z=qe("el-card");return S(),ce(Z,{class:"upload-card",shadow:"never"},{header:X(()=>[A("div",Jge,[W(L,null,{default:X(()=>[W($)]),_:1}),M[7]||(M[7]=A("span",null,"上传 PDF 文件",-1))])]),default:X(()=>[W(K,{modelValue:s.value,"onUpdate:modelValue":M[3]||(M[3]=H=>s.value=H),class:"upload-tabs"},{default:X(()=>[W(J,{label:"本地上传",name:"file"},{default:X(()=>[W(q,{ref_key:"uploadRef",ref:u,class:"drop-area",drag:"","auto-upload":!1,accept:".pdf",limit:1,"on-change":E,"on-exceed":T,"file-list":a.value},{tip:X(()=>[...M[8]||(M[8]=[A("div",{class:"upload-tip"},"支持单个 PDF 文件,最大 500MB",-1)])]),default:X(()=>[W(L,{class:"upload-icon"},{default:X(()=>[W(B)]),_:1}),M[9]||(M[9]=A("div",{class:"upload-text"},[We("拖拽 PDF 文件到此处,或 "),A("em",null,"点击选择")],-1))]),_:1},8,["file-list"])]),_:1}),W(J,{label:"网络 URL",name:"url"},{default:X(()=>[W(O,{modelValue:r.value,"onUpdate:modelValue":M[0]||(M[0]=H=>r.value=H),placeholder:"输入 PDF 文件的网络地址,例如 https://example.com/file.pdf",clearable:"",size:"large"},{prepend:X(()=>[W(L,null,{default:X(()=>[W(Y)]),_:1})]),_:1},8,["modelValue"])]),_:1}),W(J,{label:"批量解析",name:"batch"},{default:X(()=>[A("div",Zge,[A("div",Qge,[W(N,{icon:f(o1),onClick:b},{default:X(()=>[...M[10]||(M[10]=[We(" 选择文件夹 ",-1)])]),_:1},8,["icon"]),W(N,{icon:f(Rk),onClick:C},{default:X(()=>[...M[11]||(M[11]=[We(" 选择多个文件 ",-1)])]),_:1},8,["icon"]),A("input",{ref_key:"folderInputRef",ref:d,type:"file",accept:".pdf",webkitdirectory:"",multiple:"",style:{display:"none"},onChange:w},null,544),A("input",{ref_key:"multiInputRef",ref:h,type:"file",accept:".pdf",multiple:"",style:{display:"none"},onChange:w},null,544)]),p.value.length?(S(),P("div",e1e,[A("div",t1e,[W(V,{type:"success"},{default:X(()=>[We(" 共检测到 "+ge(p.value.length)+" 个 PDF 文件 ",1)]),_:1}),p.value.length>v.value?(S(),ce(V,{key:0,type:"warning"},{default:X(()=>[We(" 当前限制解析前 "+ge(v.value)+" 个 ",1)]),_:1})):ie("",!0),A("div",n1e,[M[13]||(M[13]=A("span",{class:"option-label"},"解析数量:",-1)),W(z,{modelValue:v.value,"onUpdate:modelValue":M[1]||(M[1]=H=>v.value=H),min:1,max:p.value.length,size:"small",step:10,style:{width:"120px"}},null,8,["modelValue","max"]),W(N,{size:"small",text:"",onClick:M[2]||(M[2]=H=>v.value=p.value.length)},{default:X(()=>[...M[12]||(M[12]=[We("全部",-1)])]),_:1})])]),W(Q,{data:m.value,size:"small","max-height":"200",class:"batch-table","highlight-current-row":""},{default:X(()=>[W(G,{type:"index",width:"50",label:"#"}),W(G,{prop:"name",label:"文件名","show-overflow-tooltip":""}),W(G,{prop:"size",label:"大小",width:"90",align:"right"})]),_:1},8,["data"]),p.value.length>v.value?(S(),P("div",s1e," ... 还有 "+ge(p.value.length-v.value)+" 个文件未显示(超出解析数量限制) ",1)):ie("",!0),W(N,{size:"small",text:"",type:"danger",onClick:_,class:"batch-clear-btn"},{default:X(()=>[...M[14]||(M[14]=[We("清除",-1)])]),_:1})])):(S(),P("div",a1e,[W(L,{size:"40",color:"#c0c4cc"},{default:X(()=>[W(f(o1))]),_:1}),M[15]||(M[15]=A("p",null,"选择包含 PDF 的文件夹,或直接选择多个 PDF 文件",-1)),M[16]||(M[16]=A("p",{class:"batch-hint"},"支持 100+ 文件批量处理,逐文件顺序解析",-1))]))])]),_:1})]),_:1},8,["modelValue"]),A("div",o1e,[M[19]||(M[19]=A("span",{class:"option-label"},"识别模式:",-1)),W(se,{modelValue:l.value,"onUpdate:modelValue":M[4]||(M[4]=H=>l.value=H),size:"small"},{default:X(()=>[W(ee,{value:"drawing"},{default:X(()=>[...M[17]||(M[17]=[We("图纸模式",-1)])]),_:1}),W(ee,{value:"auto"},{default:X(()=>[...M[18]||(M[18]=[We("自动识别",-1)])]),_:1})]),_:1},8,["modelValue"]),A("span",r1e,ge(l.value==="drawing"?"管道轴测图每页均为图纸复用第1页区域配置40并发高速识别":"VL 自动分类图纸页专项裁剪文字页通用识别40并发"),1)]),A("div",i1e,[M[20]||(M[20]=A("span",{class:"option-label"},"自动纠错:",-1)),W(he,{modelValue:c.value,"onUpdate:modelValue":M[5]||(M[5]=H=>c.value=H),"active-text":"启用","inactive-text":"关闭"},null,8,["modelValue"]),M[21]||(M[21]=A("span",{class:"mode-hint"},"识别完成后调用 LLM 对结果进行连续性校验与自动修正",-1))]),A("div",l1e,[M[24]||(M[24]=A("span",{class:"option-label"},"导出格式:",-1)),W(le,{modelValue:i.value,"onUpdate:modelValue":M[6]||(M[6]=H=>i.value=H)},{default:X(()=>[W(pe,{value:"excel",label:"excel"},{default:X(()=>[W(L,null,{default:X(()=>[W(te)]),_:1}),M[22]||(M[22]=We(" Excel ",-1))]),_:1}),W(pe,{value:"json",label:"json"},{default:X(()=>[W(L,null,{default:X(()=>[W(fe)]),_:1}),M[23]||(M[23]=We(" JSON ",-1))]),_:1})]),_:1},8,["modelValue"])]),A("div",c1e,[W(N,{type:"primary",size:"large",disabled:!x.value,icon:s.value==="batch"?f(F8):f(Bk),onClick:R},{default:X(()=>[We(ge(s.value==="batch"?`批量解析 ${Math.min(v.value,p.value.length)} 个文件`:"开始识别"),1)]),_:1},8,["disabled","icon"])])]),_:1})}}},d1e=zl(u1e,[["__scopeId","data-v-a0c75cf1"]]),Yb="/api/ocr";function f1e(e,t=["excel","json"],n,s="drawing",a=!0,o=null){const r=new FormData;r.append("file",e),r.append("export_formats",t.join(",")),r.append("pdf_mode",s),r.append("auto_correct",a?"true":"false"),o&&r.append("max_concurrent",String(o));const i=new AbortController;return fetch(`${Yb}/upload`,{method:"POST",body:r,signal:i.signal}).then(l=>{if(!l.ok)throw new Error(`HTTP ${l.status}`);return u_(l,n)}).catch(l=>{l.name!=="AbortError"&&n({type:"error",data:{message:l.message}})}),()=>i.abort()}function h1e(e,t=["excel","json"],n,s="drawing",a=!0){const o=new AbortController;return fetch(`${Yb}/url`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e,export_formats:t,pdf_mode:s,auto_correct:a}),signal:o.signal}).then(r=>{if(!r.ok)throw new Error(`HTTP ${r.status}`);return u_(r,n)}).catch(r=>{r.name!=="AbortError"&&n({type:"error",data:{message:r.message}})}),()=>o.abort()}async function u_(e,t){const n=e.body.getReader(),s=new TextDecoder;let a="";for(;;){const{done:o,value:r}=await n.read();if(o)break;a+=s.decode(r,{stream:!0});const i=a.split(`
`);a=i.pop()??"";for(const l of i)if(l.startsWith("data: "))try{const c=JSON.parse(l.slice(6));t(c)}catch{}}}function T1(e,t){return`${Yb}/download/${e}/${t}`}function p1e(e,t=["excel","json"],n,s="drawing",a=!0,o=null){const r=new FormData;for(const l of e)r.append("files",l);r.append("export_formats",t.join(",")),r.append("pdf_mode",s),r.append("auto_correct",a?"true":"false"),o&&r.append("max_concurrent",String(o));const i=new AbortController;return fetch(`${Yb}/batch`,{method:"POST",body:r,signal:i.signal}).then(l=>{if(!l.ok)throw new Error(`HTTP ${l.status}`);return u_(l,n)}).catch(l=>{l.name!=="AbortError"&&n({type:"error",data:{message:l.message}})}),()=>i.abort()}const v1e={class:"panel-header"},m1e={class:"panel-title"},g1e={class:"panel-actions"},b1e={key:0,class:"overall-progress"},y1e={class:"progress-label"},w1e={key:0,class:"current-file"},_1e={key:0,class:"current-msg"},C1e={key:1,class:"summary-row"},S1e={key:1,class:"row-msg"},x1e={key:2,class:"text-danger"},E1e={key:3,class:"text-success"},k1e={__name:"BatchResultPanel",props:{batchEvents:{type:Array,default:()=>[]},batchDone:{type:Boolean,default:!1},mergedSessionId:{type:String,default:""},outputFiles:{type:Object,default:()=>({})},totalFiles:{type:Number,default:0}},emits:["reset"],setup(e,{emit:t}){const n=e,s=t,a=F({});be(()=>n.batchEvents,w=>{for(const _ of w)o(_)},{deep:!0});function o(w){const{type:_,data:x}=w;if(_==="file_start")a.value[x.filename]={filename:x.filename,status:"processing",pages:0,message:"准备中...",percent:0,sessionId:null,error:null,success:!1};else if(_==="file_progress"){const E=a.value[x.filename];E&&(E.message=x.message||E.message,x.percent!=null&&(E.percent=x.percent))}else _==="file_done"?a.value[x.filename]={filename:x.filename,status:"done",pages:x.pages||0,message:"",percent:100,sessionId:x.session_id,error:null,success:!0}:_==="file_error"&&(a.value[x.filename]={filename:x.filename,status:"error",pages:0,message:"",percent:0,sessionId:null,error:x.error,success:!1})}const r=k(()=>Object.values(a.value)),i=k(()=>r.value.filter(w=>w.status==="done"||w.status==="error").length),l=k(()=>r.value.filter(w=>w.status==="done").length),c=k(()=>r.value.filter(w=>w.status==="error").length),u=k(()=>r.value.reduce((w,_)=>w+(_.pages||0),0)),d=k(()=>n.totalFiles?Math.round(i.value/n.totalFiles*100):0),h=k(()=>r.value.find(w=>w.status==="processing")),p=k(()=>{var w;return((w=h.value)==null?void 0:w.filename)||""}),v=k(()=>{var w;return((w=h.value)==null?void 0:w.message)||""}),m=k(()=>{var w;return!!((w=n.outputFiles)!=null&&w.excel)}),g=k(()=>{var w;return!!((w=n.outputFiles)!=null&&w.json)});function b(w){const _=T1(n.mergedSessionId,w),x=document.createElement("a");x.href=_,x.download=w,document.body.appendChild(x),x.click(),document.body.removeChild(x)}function C(w,_,x){const E=T1(w,_),T=_.endsWith(".xlsx")?".xlsx":".json",R=x?x.replace(/\.pdf$/i,"")+T:_,I=document.createElement("a");I.href=E,I.download=R,document.body.appendChild(I),I.click(),document.body.removeChild(I)}return(w,_)=>{const x=qe("el-icon"),E=qe("el-tag"),T=qe("el-button"),R=qe("el-progress"),I=qe("el-statistic"),M=qe("el-table-column"),$=qe("el-table"),L=qe("el-card");return S(),ce(L,{class:"batch-result-card",shadow:"never"},{header:X(()=>[A("div",v1e,[A("div",m1e,[W(x,null,{default:X(()=>[W(f(F8))]),_:1}),_[3]||(_[3]=A("span",null,"批量解析结果",-1)),e.batchDone?(S(),ce(E,{key:0,type:"success",size:"small"},{default:X(()=>[We(" 完成 "+ge(l.value)+"/"+ge(e.totalFiles),1)]),_:1})):ie("",!0),c.value>0?(S(),ce(E,{key:1,type:"danger",size:"small"},{default:X(()=>[We(" 失败 "+ge(c.value),1)]),_:1})):ie("",!0)]),A("div",g1e,[e.mergedSessionId?(S(),P(Ve,{key:0},[m.value?(S(),ce(T,{key:0,type:"primary",size:"small",icon:f(bl),onClick:_[0]||(_[0]=B=>b("result.xlsx"))},{default:X(()=>[..._[4]||(_[4]=[We("下载合并 Excel",-1)])]),_:1},8,["icon"])):ie("",!0),g.value?(S(),ce(T,{key:1,size:"small",icon:f(bl),onClick:_[1]||(_[1]=B=>b("result.json"))},{default:X(()=>[..._[5]||(_[5]=[We("下载合并 JSON",-1)])]),_:1},8,["icon"])):ie("",!0)],64)):ie("",!0),W(T,{size:"small",plain:"",onClick:_[2]||(_[2]=B=>s("reset"))},{default:X(()=>[..._[6]||(_[6]=[We("重新开始",-1)])]),_:1})])])]),default:X(()=>[e.batchDone?ie("",!0):(S(),P("div",b1e,[A("div",y1e,[We(" 已完成 "+ge(i.value)+" / "+ge(e.totalFiles)+" 个文件 ",1),p.value?(S(),P("span",w1e," — 正在处理:"+ge(p.value),1)):ie("",!0)]),W(R,{percentage:d.value,"stroke-width":10,striped:"","striped-flow":"",duration:10,status:""},null,8,["percentage"]),v.value?(S(),P("div",_1e,ge(v.value),1)):ie("",!0)])),e.batchDone?(S(),P("div",C1e,[W(I,{title:"总文件数",value:e.totalFiles},null,8,["value"]),W(I,{title:"成功解析",value:l.value,"value-style":"color:#67c23a"},null,8,["value"]),W(I,{title:"失败文件",value:c.value,"value-style":"color:#f56c6c"},null,8,["value"]),W(I,{title:"合计页数",value:u.value},null,8,["value"])])):ie("",!0),W($,{data:r.value,size:"small",class:"file-table","max-height":"420",stripe:""},{default:X(()=>[W(M,{type:"index",width:"55",label:"#",align:"center"}),W(M,{label:"文件名","min-width":"220","show-overflow-tooltip":""},{default:X(({row:B})=>[A("span",{class:D(B.success?"":"text-danger")},ge(B.filename),3)]),_:1}),W(M,{label:"状态",width:"110",align:"center"},{default:X(({row:B})=>[B.status==="done"?(S(),ce(E,{key:0,type:"success",size:"small"},{default:X(()=>[W(x,null,{default:X(()=>[W(f(Jm))]),_:1}),_[7]||(_[7]=We(" 完成 ",-1))]),_:1})):B.status==="error"?(S(),ce(E,{key:1,type:"danger",size:"small"},{default:X(()=>[W(x,null,{default:X(()=>[W(f(Jo))]),_:1}),_[8]||(_[8]=We(" 失败 ",-1))]),_:1})):B.status==="processing"?(S(),ce(E,{key:2,type:"warning",size:"small"},{default:X(()=>[W(x,null,{default:X(()=>[W(f(Ao))]),_:1}),_[9]||(_[9]=We(" 处理中 ",-1))]),_:1})):(S(),ce(E,{key:3,type:"info",size:"small"},{default:X(()=>[..._[10]||(_[10]=[We("等待",-1)])]),_:1}))]),_:1}),W(M,{label:"页数",width:"70",align:"center",prop:"pages"}),W(M,{label:"进度/错误信息","min-width":"260","show-overflow-tooltip":""},{default:X(({row:B})=>[B.status==="processing"&&B.percent!=null?(S(),ce(R,{key:0,percentage:B.percent,"stroke-width":6,striped:"","striped-flow":"",duration:8,class:"row-progress"},null,8,["percentage"])):B.status==="processing"?(S(),P("span",S1e,ge(B.message),1)):B.status==="error"?(S(),P("span",x1e,ge(B.error),1)):B.status==="done"?(S(),P("span",E1e,"识别完成")):ie("",!0)]),_:1}),W(M,{label:"下载",width:"80",align:"center"},{default:X(({row:B})=>[B.sessionId?(S(),ce(T,{key:0,size:"small",text:"",type:"primary",icon:f(bl),title:"下载 Excel",onClick:q=>C(B.sessionId,"result.xlsx",B.filename)},null,8,["icon","onClick"])):ie("",!0)]),_:1})]),_:1},8,["data"])]),_:1})}}},A1e=zl(k1e,[["__scopeId","data-v-d95acc72"]]),T1e={class:"card-title"},M1e={key:0,class:"page-indicator"},P1e={class:"log-time"},R1e={__name:"ProgressTracker",props:{logs:{type:Array,default:()=>[]},percent:{type:Number,default:0},totalPages:{type:Number,default:0},currentPage:{type:Number,default:0}},setup(e){const t=e,n=F(null),s=Date.now(),a=[{color:"#409EFF",percentage:40},{color:"#67C23A",percentage:80},{color:"#E6A23C",percentage:100}];function o(r){return`[${Math.round((Date.now()-s)/1e3)}s]`}return be(()=>t.logs.length,async()=>{await ze(),n.value&&(n.value.scrollTop=n.value.scrollHeight)}),(r,i)=>{const l=qe("Loading"),c=qe("el-icon"),u=qe("el-progress"),d=qe("el-card");return S(),ce(d,{class:"progress-card",shadow:"never"},{header:X(()=>[A("div",T1e,[W(c,{class:"spin"},{default:X(()=>[W(l)]),_:1}),i[0]||(i[0]=A("span",null,"正在处理中...",-1)),e.totalPages>0?(S(),P("span",M1e," 第 "+ge(e.currentPage)+" / "+ge(e.totalPages)+" 页 ",1)):ie("",!0)])]),default:X(()=>[W(u,{percentage:e.percent,"stroke-width":14,color:a,class:"main-progress"},null,8,["percentage"]),A("div",{class:"log-container",ref_key:"logContainer",ref:n},[(S(!0),P(Ve,null,yt(e.logs,(h,p)=>(S(),P("div",{key:p,class:D(["log-item",{"log-success":h.includes("✓")||h.includes("✅"),"log-error":h.includes("❌")}])},[A("span",P1e,ge(o(p)),1),We(" "+ge(h),1)],2))),128))],512)]),_:1})}}},I1e=zl(R1e,[["__scopeId","data-v-673aebf7"]]),L1e={class:"flagged-cell"},O1e={key:1},N1e={class:"row-count"},$1e={key:1,class:"raw-text"},D1e={__name:"Parts3Table",props:{data:{type:[Object,null],default:null}},setup(e){const t=e,n=new Set(["_flags","_corrections"]),s={seq_no:"序号",category:"类别",description:"材料描述",size:"SIZE",code:"材料代号",qty:"数量",pipe_no:"管道号",unit:"单位",material:"材质",remark:"备注",spec:"公称直径"},a={llm_suspicious:"LLM标记可疑需人工复核",llm_corrected:"LLM已修正",rule_corrected:"规则已修正",seq_gap:"序号不连续",seq_dup:"序号重复",desc_overflow:"描述溢出到规格列",size_invalid:"规格字段异常",size_outlier:"规格偏离本页主导尺寸",qty_invalid:"数量字段异常",cell_overlap:"单元格数值重叠(叠印)",desc_num_tail:"描述末尾残留尺寸数字",size_num_prefix:"尺寸前缀数字粘连"},o=k(()=>{if(!t.data)return[];const d=t.data;return d.rows&&Array.isArray(d.rows)?d.rows:d.data&&Array.isArray(d.data)?d.data:d.items&&Array.isArray(d.items)?d.items:[]}),r=k(()=>{if(o.value.length===0)return[];const d=new Set;return o.value.slice(0,5).forEach(h=>Object.keys(h).forEach(p=>d.add(p))),Array.from(d).filter(h=>!n.has(h))}),i=k(()=>t.data&&t.data.raw_text||"");function l(d){return s[d]||d}function c(d,h){var g,b;const p=(g=d._flags)==null?void 0:g[h],v=a[p]||p||"",m=(b=d._corrections)==null?void 0:b[h];return m!=null?`[已修正] 原值:${m}
${v}`:`[${v}]`}function u({row:d,column:h}){if(!d._flags)return{};const p=h.property,v=d._flags[p];return v?new Set(["llm_corrected","rule_corrected"]).has(v)?{backgroundColor:"#FFB347",color:"#000",fontWeight:"bold"}:{backgroundColor:"#ADD8E6",color:"#000",fontWeight:"bold"}:{}}return(d,h)=>{const p=qe("el-tooltip"),v=qe("el-table-column"),m=qe("el-table"),g=qe("el-empty");return S(),P("div",null,[o.value.length>0?(S(),P(Ve,{key:0},[W(m,{data:o.value,border:"",stripe:"",size:"small",style:{width:"100%"},"max-height":500,"cell-style":u},{default:X(()=>[(S(!0),P(Ve,null,yt(r.value,b=>(S(),ce(v,{key:b,prop:b,label:l(b),"min-width":"100"},{default:X(({row:C})=>[C._flags&&C._flags[b]?(S(),ce(p,{key:0,content:c(C,b),placement:"top","show-after":300},{default:X(()=>[A("span",L1e,ge(C[b]),1)]),_:2},1032,["content"])):(S(),P("span",O1e,ge(C[b]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]),A("div",N1e,"共 "+ge(o.value.length)+" 行",1)],64)):i.value?(S(),P("pre",$1e,ge(i.value),1)):(S(),ce(g,{key:2,description:"暂无识别数据","image-size":60}))])}}},F1e=zl(D1e,[["__scopeId","data-v-bfa225df"]]),B1e={key:1,class:"raw-text"},V1e={__name:"MetaInfo",props:{data:{type:[Object,null],default:null}},setup(e){const t=e,n=k(()=>!t.data||typeof t.data!="object"?[]:Object.entries(t.data).filter(([a])=>a!=="raw_text"&&a!=="parse_error"&&a!=="part").filter(([,a])=>a!=null).map(([a,o])=>({key:a,value:String(o)}))),s=k(()=>{var a;return((a=t.data)==null?void 0:a.raw_text)||""});return(a,o)=>{const r=qe("el-descriptions-item"),i=qe("el-descriptions"),l=qe("el-empty");return S(),P("div",null,[n.value.length>0?(S(),ce(i,{key:0,column:1,border:"",size:"small"},{default:X(()=>[(S(!0),P(Ve,null,yt(n.value,({key:c,value:u})=>(S(),ce(r,{key:c,label:c},{default:X(()=>[We(ge(u),1)]),_:2},1032,["label"]))),128))]),_:1})):s.value?(S(),P("pre",B1e,ge(s.value),1)):(S(),ce(l,{key:2,description:"暂无数据","image-size":50}))])}}},wx=zl(V1e,[["__scopeId","data-v-9250db36"]]),z1e={class:"toolbar"},H1e={class:"result-summary"},W1e={key:0,class:"token-hint"},j1e={class:"btn-group"},K1e={key:0},U1e={key:1},q1e={key:0,style:{color:"#e6a23c"}},G1e={key:0,class:"reason-tags"},Y1e={key:2,class:"page-detail"},X1e={__name:"ResultPanel",props:{pagesData:{type:Array,default:()=>[]},sessionId:{type:String,default:""},outputFiles:{type:Object,default:()=>({})},outputFilenames:{type:Object,default:()=>({})},tokenUsage:{type:Object,default:null},pdfName:{type:String,default:""},correctionSummary:{type:Object,default:null}},emits:["reset"],setup(e,{emit:t}){const n=e,s=t,a=F("1"),o=k(()=>{const c=parseInt(a.value);return n.pagesData.find(u=>u.page===c)||n.pagesData[0]});function r(c){const u=c==="excel"?".xlsx":".json",d=n.outputFilenames[c]||`result${u}`,h=T1(n.sessionId,d),p=document.createElement("a");p.href=h,p.download=d,document.body.appendChild(p),p.click(),document.body.removeChild(p)}const i={llm_suspicious:"LLM标记可疑",llm_corrected:"LLM已修正",rule_corrected:"规则已修正",seq_gap:"序号不连续",seq_dup:"序号重复",desc_overflow:"描述溢出到规格列",size_invalid:"规格字段异常",size_outlier:"规格偏离主导尺寸",qty_invalid:"数量字段异常",cell_overlap:"数值重叠(两格合并)",desc_num_tail:"描述末尾残留尺寸数字",size_num_prefix:"尺寸前缀数字粘连",pressure_oob:"压力值超范围",cross_inconsist:"跨页参数不一致"};function l(c){return i[c]||c}return(c,u)=>{const d=qe("CircleCheck"),h=qe("el-icon"),p=qe("el-button"),v=qe("el-card"),m=qe("el-tag"),g=qe("el-alert"),b=qe("el-tab-pane"),C=qe("el-tabs"),w=qe("el-col"),_=qe("el-row");return S(),P("div",null,[W(v,{class:"toolbar-card",shadow:"never"},{default:X(()=>[A("div",z1e,[A("div",H1e,[W(h,{color:"#67C23A",size:"20"},{default:X(()=>[W(d)]),_:1}),A("span",null,[u[4]||(u[4]=We("识别完成,共处理 ",-1)),A("strong",null,ge(e.pagesData.length),1),u[5]||(u[5]=We(" 页",-1))]),e.tokenUsage?(S(),P("span",W1e," · "+ge(e.tokenUsage.total_tokens.toLocaleString())+" tokens  ¥"+ge(e.tokenUsage.cost_cny),1)):ie("",!0)]),A("div",j1e,[e.sessionId?(S(),ce(p,{key:0,type:"success",icon:f(bl),onClick:u[0]||(u[0]=x=>r("excel"))},{default:X(()=>[...u[6]||(u[6]=[We(" 下载 Excel ",-1)])]),_:1},8,["icon"])):ie("",!0),e.sessionId?(S(),ce(p,{key:1,type:"info",icon:f(bl),onClick:u[1]||(u[1]=x=>r("json"))},{default:X(()=>[...u[7]||(u[7]=[We(" 下载 JSON ",-1)])]),_:1},8,["icon"])):ie("",!0),W(p,{icon:f(Ab),onClick:u[2]||(u[2]=x=>s("reset"))},{default:X(()=>[...u[8]||(u[8]=[We(" 重新识别 ",-1)])]),_:1},8,["icon"])])])]),_:1}),e.correctionSummary?(S(),ce(g,{key:0,class:"correction-alert",closable:!0,"show-icon":"",type:e.correctionSummary.flagged_rows>0?e.correctionSummary.corrected_rows>0?"warning":"error":"success"},{title:X(()=>[e.correctionSummary.flagged_rows===0?(S(),P("span",K1e,"OCR 校验通过,未发现异常")):(S(),P("span",U1e,[u[9]||(u[9]=We(" 发现 ",-1)),A("strong",null,ge(e.correctionSummary.flagged_rows),1),u[10]||(u[10]=We(" 行存疑内容,已自动修正 ",-1)),A("strong",null,ge(e.correctionSummary.corrected_rows),1),u[11]||(u[11]=We(" 行 ",-1)),e.correctionSummary.flagged_rows>e.correctionSummary.corrected_rows?(S(),P("span",q1e,"(剩余 "+ge(e.correctionSummary.flagged_rows-e.correctionSummary.corrected_rows)+" 行已在 Excel 中标红)",1)):ie("",!0)]))]),default:X(()=>[e.correctionSummary.reasons&&Object.keys(e.correctionSummary.reasons).length?(S(),P("div",G1e,[(S(!0),P(Ve,null,yt(e.correctionSummary.reasons,(x,E)=>(S(),ce(m,{key:E,size:"small",type:E==="llm_corrected"||E==="rule_corrected"?"success":E==="llm_suspicious"?"danger":"warning",class:"reason-tag"},{default:X(()=>[We(ge(l(E))+"×"+ge(x),1)]),_:2},1032,["type"]))),128))])):ie("",!0)]),_:1},8,["type"])):ie("",!0),e.pagesData.length>1?(S(),ce(C,{key:1,modelValue:a.value,"onUpdate:modelValue":u[3]||(u[3]=x=>a.value=x),class:"page-tabs"},{default:X(()=>[(S(!0),P(Ve,null,yt(e.pagesData,x=>(S(),ce(b,{key:x.page,label:`第 ${x.page} 页`,name:String(x.page)},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):ie("",!0),o.value?(S(),P("div",Y1e,[W(v,{shadow:"never",class:"part-card parts3-card"},{header:X(()=>[...u[12]||(u[12]=[A("span",{class:"part-label parts3-label"},"⭐ 材料明细Parts 3",-1)])]),default:X(()=>[W(F1e,{data:o.value.parts3},null,8,["data"])]),_:1}),W(_,{gutter:16,class:"meta-row"},{default:X(()=>[W(w,{span:12},{default:X(()=>[W(v,{shadow:"never",class:"part-card"},{header:X(()=>[...u[13]||(u[13]=[A("span",{class:"part-label"},"标题栏Parts 1",-1)])]),default:X(()=>[W(wx,{data:o.value.parts1},null,8,["data"])]),_:1})]),_:1}),W(w,{span:12},{default:X(()=>[W(v,{shadow:"never",class:"part-card"},{header:X(()=>[...u[14]||(u[14]=[A("span",{class:"part-label"},"附属信息Parts 2",-1)])]),default:X(()=>[W(wx,{data:o.value.parts2},null,8,["data"])]),_:1})]),_:1})]),_:1})])):ie("",!0)])}}},_x=zl(X1e,[["__scopeId","data-v-7ae18195"]]),J1e={class:"toolbar"},Z1e={class:"result-summary"},Q1e={key:0,class:"token-hint"},ebe={class:"btn-group"},tbe={key:1,class:"page-content"},nbe={class:"table-header"},sbe={key:0,class:"table-title"},abe={class:"para-label"},obe={key:0,class:"para-title"},rbe={class:"para-text"},ibe={__name:"GeneralResultPanel",props:{pagesData:{type:Array,default:()=>[]},sessionId:{type:String,default:""},outputFiles:{type:Object,default:()=>({})},outputFilenames:{type:Object,default:()=>({})},tokenUsage:{type:Object,default:null},pdfName:{type:String,default:""}},emits:["reset"],setup(e,{emit:t}){const n=e,s=t,a=F("1"),o=k(()=>{const d=parseInt(a.value);return n.pagesData.find(h=>h.page===d)||n.pagesData[0]}),r=k(()=>n.pagesData.reduce((d,h)=>{var p;return d+(((p=h.tables)==null?void 0:p.length)||0)},0)),i=k(()=>n.pagesData.reduce((d,h)=>{var p;return d+(((p=h.paragraphs)==null?void 0:p.length)||0)},0));function l(d){return(d.rows||[]).map(h=>{const p={};return(h||[]).forEach((v,m)=>{p[String(m)]=v}),p})}function c(d){const h=d.headers||[];return h.length?h:((d.rows||[])[0]||[]).map((v,m)=>`列${m+1}`)}function u(d){const h=d==="excel"?".xlsx":".json",p=n.outputFilenames[d]||`result${h}`,v=T1(n.sessionId,p),m=document.createElement("a");m.href=v,m.download=p,document.body.appendChild(m),m.click(),document.body.removeChild(m)}return(d,h)=>{var T,R,I,M;const p=qe("CircleCheck"),v=qe("el-icon"),m=qe("el-button"),g=qe("el-card"),b=qe("el-tab-pane"),C=qe("el-tabs"),w=qe("el-empty"),_=qe("el-tag"),x=qe("el-table-column"),E=qe("el-table");return S(),P("div",null,[W(g,{class:"toolbar-card",shadow:"never"},{default:X(()=>[A("div",J1e,[A("div",Z1e,[W(v,{color:"#67C23A",size:"20"},{default:X(()=>[W(p)]),_:1}),A("span",null,[h[4]||(h[4]=We("通用识别完成,共 ",-1)),A("strong",null,ge(e.pagesData.length),1),h[5]||(h[5]=We(" 页  ·  ",-1)),A("strong",null,ge(r.value),1),h[6]||(h[6]=We(" 张表格  ·  ",-1)),A("strong",null,ge(i.value),1),h[7]||(h[7]=We(" 段文字",-1))]),e.tokenUsage?(S(),P("span",Q1e," · "+ge(e.tokenUsage.total_tokens.toLocaleString())+" tokens  ¥"+ge(e.tokenUsage.cost_cny),1)):ie("",!0)]),A("div",ebe,[e.sessionId?(S(),ce(m,{key:0,type:"success",icon:f(bl),onClick:h[0]||(h[0]=$=>u("excel"))},{default:X(()=>[...h[8]||(h[8]=[We("下载 Excel",-1)])]),_:1},8,["icon"])):ie("",!0),e.sessionId?(S(),ce(m,{key:1,type:"info",icon:f(bl),onClick:h[1]||(h[1]=$=>u("json"))},{default:X(()=>[...h[9]||(h[9]=[We("下载 JSON",-1)])]),_:1},8,["icon"])):ie("",!0),W(m,{icon:f(Ab),onClick:h[2]||(h[2]=$=>s("reset"))},{default:X(()=>[...h[10]||(h[10]=[We("重新识别",-1)])]),_:1},8,["icon"])])])]),_:1}),e.pagesData.length>1?(S(),ce(C,{key:0,modelValue:a.value,"onUpdate:modelValue":h[3]||(h[3]=$=>a.value=$),class:"page-tabs"},{default:X(()=>[(S(!0),P(Ve,null,yt(e.pagesData,$=>(S(),ce(b,{key:$.page,label:`第 ${$.page} 页`,name:String($.page)},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):ie("",!0),o.value?(S(),P("div",tbe,[!((T=o.value.tables)!=null&&T.length)&&!((R=o.value.paragraphs)!=null&&R.length)?(S(),ce(w,{key:0,description:"本页未识别到表格或文字","image-size":80})):ie("",!0),(I=o.value.tables)!=null&&I.length?(S(!0),P(Ve,{key:1},yt(o.value.tables,($,L)=>(S(),ce(g,{key:L,class:"table-card",shadow:"never"},{header:X(()=>[A("div",nbe,[W(_,{size:"small",type:"warning"},{default:X(()=>[We("表格 "+ge(L+1),1)]),_:2},1024),$.title?(S(),P("span",sbe,ge($.title),1)):ie("",!0)])]),default:X(()=>[W(E,{data:l($),size:"small",border:"",stripe:"",style:{width:"100%"},"max-height":"400"},{default:X(()=>[(S(!0),P(Ve,null,yt(c($),(B,q)=>(S(),ce(x,{key:q,label:B,prop:String(q),"min-width":"120","show-overflow-tooltip":""},null,8,["label","prop"]))),128))]),_:2},1032,["data"])]),_:2},1024))),128)):ie("",!0),(M=o.value.paragraphs)!=null&&M.length?(S(),ce(g,{key:2,class:"para-card",shadow:"never"},{header:X(()=>[A("span",abe,"📝 段落文字("+ge(o.value.paragraphs.length)+" 段)",1)]),default:X(()=>[(S(!0),P(Ve,null,yt(o.value.paragraphs,($,L)=>(S(),P("div",{key:L,class:"para-item"},[$.title?(S(),P("div",obe,ge($.title),1)):ie("",!0),A("pre",rbe,ge($.text),1)]))),128))]),_:1})):ie("",!0)])):ie("",!0)])}}},Cx=zl(ibe,[["__scopeId","data-v-5cd76fd5"]]),lbe={class:"ocr-app"},cbe={class:"header-inner"},ube={class:"header-actions"},dbe={class:"auto-section-title"},fbe={class:"auto-section-title"},hbe={__name:"App",setup(e){const t=CP();function n(){window.open("/docs","_blank")}const s=F(!1),a=F(!1),o=F(""),r=F([]),i=F(0),l=F(0),c=F(0),u=F([]),d=F(""),h=F({}),p=F(null),v=F("drawing"),m=F(""),g=F(null),b=F({}),C=F(!1),w=F(!1),_=F(!1),x=F([]),E=F(0),T=F(""),R=F({}),I=k(()=>u.value.filter(O=>O.page_type==="drawing")),M=k(()=>u.value.filter(O=>O.page_type==="table"||O.page_type==="text"));let $=null;function L({file:O,url:N,files:V,formats:z,mode:G,autoCorrect:Q,maxConcurrent:K,batch:ee}){Y(),v.value=G||"drawing";const se=K||null;if(ee&&V&&V.length){C.value=!0,w.value=!0,E.value=V.length,x.value=[],$=p1e(V,z,q,v.value,Q!==!1,se);return}s.value=!0,O&&(m.value=O.name.replace(/\.pdf$/i,""));const he=te=>{B(te)};O?$=f1e(O,z,he,v.value,Q!==!1,se):N&&($=h1e(N,z,he,v.value,Q!==!1))}function B(O){const{type:N,data:V}=O;N==="progress"&&(r.value.push(V.message),V.percent!=null&&(i.value=V.percent),V.total_pages&&(l.value=V.total_pages),V.current_page&&(c.value=V.current_page)),N==="page_done"&&(v.value==="drawing"&&u.value.push(V.result),c.value=V.page,r.value.push(`✓ 第 ${V.page} 页识别完成`)),N==="done"&&(i.value=100,d.value=V.session_id,h.value=V.output_files||{},p.value=V.token_usage||null,g.value=V.correction_summary?{flagged_rows:0,corrected_rows:0,reasons:{},...V.correction_summary}:{flagged_rows:0,corrected_rows:0,reasons:{}},b.value=V.output_filenames||{},v.value==="drawing"&&Array.isArray(V.pages_data)&&(u.value=V.pages_data),(V.pdf_mode==="general"||V.pdf_mode==="auto")&&Array.isArray(V.pages_data)&&(u.value=V.pages_data),p.value&&(p.value.total_tokens!=null&&p.value.drawing_ocr==null?r.value.push(`📊 Token: 输入 ${p.value.prompt_tokens} / 输出 ${p.value.completion_tokens},费用 ¥${p.value.cost_cny}`):p.value.total_tokens!=null&&r.value.push(`📊 Token 合计 ${p.value.total_tokens}(分类+检测+OCR`)),r.value.push("✅ 全部处理完成!"),s.value=!1,a.value=!0),N==="error"&&(o.value=V.message,s.value=!1,r.value.push(`❌ 错误:${V.message}`))}function q(O){x.value=[...x.value,O];const{type:N,data:V}=O;N==="batch_done"&&(T.value=V.merged_session_id||"",R.value=V.output_files||{},w.value=!1,_.value=!0),N==="error"&&(o.value=V.message,w.value=!1)}function J(){Y()}function Y(){$&&($(),$=null),s.value=!1,a.value=!1,o.value="",r.value=[],i.value=0,l.value=0,c.value=0,u.value=[],d.value="",h.value={},p.value=null,g.value=null,b.value={},v.value="auto",m.value="",C.value=!1,w.value=!1,_.value=!1,x.value=[],E.value=0,T.value="",R.value={}}return(O,N)=>{const V=qe("Document"),z=qe("el-icon"),G=qe("el-button"),Q=qe("el-header"),K=qe("el-alert"),ee=qe("el-main");return S(),P("div",lbe,[W(Q,{class:"app-header"},{default:X(()=>[A("div",cbe,[W(z,{size:"28",class:"logo-icon"},{default:X(()=>[W(V)]),_:1}),N[2]||(N[2]=A("span",{class:"title"},"PDF OCR 识别系统",-1)),N[3]||(N[3]=A("span",{class:"subtitle"},"PDF 表格与文字识别系统",-1))]),A("div",ube,[W(G,{size:"small",plain:"",class:"manual-btn",onClick:N[0]||(N[0]=se=>f(t).push("/Manual"))},{default:X(()=>[W(z,null,{default:X(()=>[W(f(s1))]),_:1}),N[4]||(N[4]=We(" 手动模式 ",-1))]),_:1}),W(G,{size:"small",plain:"",class:"swagger-btn",onClick:n},{default:X(()=>[...N[5]||(N[5]=[We("API Docs",-1)])]),_:1})])]),_:1}),W(ee,{class:"app-main"},{default:X(()=>[!s.value&&!a.value&&!C.value?(S(),ce(d1e,{key:0,onSubmit:L})):ie("",!0),C.value?(S(),ce(A1e,{key:1,"batch-events":x.value,"batch-done":_.value,"merged-session-id":T.value,"output-files":R.value,"total-files":E.value,onReset:J},null,8,["batch-events","batch-done","merged-session-id","output-files","total-files"])):ie("",!0),s.value?(S(),ce(I1e,{key:2,logs:r.value,percent:i.value,"total-pages":l.value,"current-page":c.value},null,8,["logs","percent","total-pages","current-page"])):ie("",!0),a.value&&v.value==="drawing"?(S(),ce(_x,{key:3,"pages-data":u.value,"session-id":d.value,"output-files":h.value,"output-filenames":b.value,"token-usage":p.value,"pdf-name":m.value,"correction-summary":g.value,onReset:J},null,8,["pages-data","session-id","output-files","output-filenames","token-usage","pdf-name","correction-summary"])):ie("",!0),a.value&&v.value==="general"?(S(),ce(Cx,{key:4,"pages-data":u.value,"session-id":d.value,"output-files":h.value,"output-filenames":b.value,"token-usage":p.value,"pdf-name":m.value,onReset:J},null,8,["pages-data","session-id","output-files","output-filenames","token-usage","pdf-name"])):ie("",!0),a.value&&v.value==="auto"?(S(),P(Ve,{key:5},[I.value.length?(S(),P(Ve,{key:0},[A("div",dbe,"📐 图纸类页面("+ge(I.value.length)+" 页)",1),W(_x,{"pages-data":I.value,"session-id":d.value,"output-files":h.value,"output-filenames":b.value,"token-usage":null,"pdf-name":m.value,"correction-summary":g.value,onReset:J},null,8,["pages-data","session-id","output-files","output-filenames","pdf-name","correction-summary"])],64)):ie("",!0),M.value.length?(S(),P(Ve,{key:1},[A("div",fbe,"📄 文字/表格类页面("+ge(M.value.length)+" 页)",1),W(Cx,{"pages-data":M.value,"session-id":d.value,"output-files":h.value,"output-filenames":b.value,"token-usage":p.value,"pdf-name":m.value,onReset:J},null,8,["pages-data","session-id","output-files","output-filenames","token-usage","pdf-name"])],64)):ie("",!0)],64)):ie("",!0),o.value?(S(),ce(K,{key:6,title:o.value,type:"error","show-icon":"",class:"mt-4",onClose:N[1]||(N[1]=se=>o.value="")},null,8,["title"])):ie("",!0)]),_:1})])}}};var kp={};kp.d=(e,t)=>{for(var n in t)kp.o(t,n)&&!kp.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})};kp.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Gt=globalThis.pdfjsLib={};kp.d(Gt,{AbortException:()=>Uc,AnnotationEditorLayer:()=>V6,AnnotationEditorParamsType:()=>pn,AnnotationEditorType:()=>nn,AnnotationEditorUIManager:()=>Kd,AnnotationLayer:()=>lye,AnnotationMode:()=>nc,ColorPicker:()=>O1,DOMSVGFactory:()=>y_,DrawLayer:()=>W6,FeatureTest:()=>Ra,GlobalWorkerOptions:()=>pl,ImageKind:()=>dg,InvalidPDFException:()=>L3,MissingPDFException:()=>rv,OPS:()=>er,OutputScale:()=>N3,PDFDataRangeTransport:()=>xR,PDFDateString:()=>v_,PDFWorker:()=>Hf,PasswordResponses:()=>gbe,PermissionFlag:()=>mbe,PixelsPerInch:()=>qc,RenderingCancelledException:()=>h_,TextLayer:()=>iv,TouchManager:()=>I1,UnexpectedResponseException:()=>M1,Util:()=>Nt,VerbosityLevel:()=>Xb,XfaLayer:()=>kR,build:()=>H4e,createValidAbsoluteUrl:()=>_be,fetchData:()=>e4,getDocument:()=>L4e,getFilenameFromUrl:()=>Pbe,getPdfFilenameFromUrl:()=>Rbe,getXfaPageViewport:()=>Ibe,isDataScheme:()=>t4,isPdfFile:()=>p_,noContextMenu:()=>Tr,normalizeUnicode:()=>Abe,setLayerDimensions:()=>jd,shadow:()=>cn,stopEvent:()=>yo,version:()=>z4e});const ma=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),SP=[1,0,0,1,0,0],I3=[.001,0,0,.001,0,0],pbe=1e7,ty=1.35,mo={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},nc={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},vbe="pdfjs_internal_editor_",nn={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},pn={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35,DRAW_STEP:41},mbe={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},ta={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},dg={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},_s={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,WIDGET:20},F0={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},Xb={ERRORS:0,WARNINGS:1,INFOS:5},er={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93},gbe={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let Jb=Xb.WARNINGS;function bbe(e){Number.isInteger(e)&&(Jb=e)}function ybe(){return Jb}function Zb(e){Jb>=Xb.INFOS&&console.log(`Info: ${e}`)}function sn(e){Jb>=Xb.WARNINGS&&console.log(`Warning: ${e}`)}function Dn(e){throw new Error(e)}function hs(e,t){e||Dn(t)}function wbe(e){switch(e==null?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function _be(e,t=null,n=null){if(!e)return null;try{if(n&&typeof e=="string"){if(n.addDefaultProtocol&&e.startsWith("www.")){const a=e.match(/\./g);(a==null?void 0:a.length)>=2&&(e=`http://${e}`)}if(n.tryConvertEncoding)try{e=kbe(e)}catch{}}const s=t?new URL(e,t):new URL(e);if(wbe(s))return s}catch{}return null}function cn(e,t,n,s=!1){return Object.defineProperty(e,t,{value:n,enumerable:!s,configurable:!0,writable:!1}),n}const Xc=function(){function t(n,s){this.message=n,this.name=s}return t.prototype=new Error,t.constructor=t,t}();class Sx extends Xc{constructor(t,n){super(t,"PasswordException"),this.code=n}}class ny extends Xc{constructor(t,n){super(t,"UnknownErrorException"),this.details=n}}class L3 extends Xc{constructor(t){super(t,"InvalidPDFException")}}class rv extends Xc{constructor(t){super(t,"MissingPDFException")}}class M1 extends Xc{constructor(t,n){super(t,"UnexpectedResponseException"),this.status=n}}class Cbe extends Xc{constructor(t){super(t,"FormatError")}}class Uc extends Xc{constructor(t){super(t,"AbortException")}}function xP(e){(typeof e!="object"||(e==null?void 0:e.length)===void 0)&&Dn("Invalid argument for bytesToString");const t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);const s=[];for(let a=0;a<t;a+=n){const o=Math.min(a+n,t),r=e.subarray(a,o);s.push(String.fromCharCode.apply(null,r))}return s.join("")}function Qb(e){typeof e!="string"&&Dn("Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let s=0;s<t;++s)n[s]=e.charCodeAt(s)&255;return n}function Sbe(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,e&255)}function d_(e){const t=Object.create(null);for(const[n,s]of e)t[n]=s;return t}function xbe(){const e=new Uint8Array(4);return e[0]=1,new Uint32Array(e.buffer,0,1)[0]===1}function Ebe(){try{return new Function(""),!0}catch{return!1}}class Ra{static get isLittleEndian(){return cn(this,"isLittleEndian",xbe())}static get isEvalSupported(){return cn(this,"isEvalSupported",Ebe())}static get isOffscreenCanvasSupported(){return cn(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return cn(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get platform(){return typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.platform)=="string"?cn(this,"platform",{isMac:navigator.platform.includes("Mac"),isWindows:navigator.platform.includes("Win"),isFirefox:typeof(navigator==null?void 0:navigator.userAgent)=="string"&&navigator.userAgent.includes("Firefox")}):cn(this,"platform",{isMac:!1,isWindows:!1,isFirefox:!1})}static get isCSSRoundSupported(){var t,n;return cn(this,"isCSSRoundSupported",(n=(t=globalThis.CSS)==null?void 0:t.supports)==null?void 0:n.call(t,"width: round(1.5px, 1px)"))}}const sy=Array.from(Array(256).keys(),e=>e.toString(16).padStart(2,"0"));var wl,fg,O3;class Nt{static makeHexColor(t,n,s){return`#${sy[t]}${sy[n]}${sy[s]}`}static scaleMinMax(t,n){let s;t[0]?(t[0]<0&&(s=n[0],n[0]=n[2],n[2]=s),n[0]*=t[0],n[2]*=t[0],t[3]<0&&(s=n[1],n[1]=n[3],n[3]=s),n[1]*=t[3],n[3]*=t[3]):(s=n[0],n[0]=n[1],n[1]=s,s=n[2],n[2]=n[3],n[3]=s,t[1]<0&&(s=n[1],n[1]=n[3],n[3]=s),n[1]*=t[1],n[3]*=t[1],t[2]<0&&(s=n[0],n[0]=n[2],n[2]=s),n[0]*=t[2],n[2]*=t[2]),n[0]+=t[4],n[1]+=t[5],n[2]+=t[4],n[3]+=t[5]}static transform(t,n){return[t[0]*n[0]+t[2]*n[1],t[1]*n[0]+t[3]*n[1],t[0]*n[2]+t[2]*n[3],t[1]*n[2]+t[3]*n[3],t[0]*n[4]+t[2]*n[5]+t[4],t[1]*n[4]+t[3]*n[5]+t[5]]}static applyTransform(t,n){const s=t[0]*n[0]+t[1]*n[2]+n[4],a=t[0]*n[1]+t[1]*n[3]+n[5];return[s,a]}static applyInverseTransform(t,n){const s=n[0]*n[3]-n[1]*n[2],a=(t[0]*n[3]-t[1]*n[2]+n[2]*n[5]-n[4]*n[3])/s,o=(-t[0]*n[1]+t[1]*n[0]+n[4]*n[1]-n[5]*n[0])/s;return[a,o]}static getAxialAlignedBoundingBox(t,n){const s=this.applyTransform(t,n),a=this.applyTransform(t.slice(2,4),n),o=this.applyTransform([t[0],t[3]],n),r=this.applyTransform([t[2],t[1]],n);return[Math.min(s[0],a[0],o[0],r[0]),Math.min(s[1],a[1],o[1],r[1]),Math.max(s[0],a[0],o[0],r[0]),Math.max(s[1],a[1],o[1],r[1])]}static inverseTransform(t){const n=t[0]*t[3]-t[1]*t[2];return[t[3]/n,-t[1]/n,-t[2]/n,t[0]/n,(t[2]*t[5]-t[4]*t[3])/n,(t[4]*t[1]-t[5]*t[0])/n]}static singularValueDecompose2dScale(t){const n=[t[0],t[2],t[1],t[3]],s=t[0]*n[0]+t[1]*n[2],a=t[0]*n[1]+t[1]*n[3],o=t[2]*n[0]+t[3]*n[2],r=t[2]*n[1]+t[3]*n[3],i=(s+r)/2,l=Math.sqrt((s+r)**2-4*(s*r-o*a))/2,c=i+l||1,u=i-l||1;return[Math.sqrt(c),Math.sqrt(u)]}static normalizeRect(t){const n=t.slice(0);return t[0]>t[2]&&(n[0]=t[2],n[2]=t[0]),t[1]>t[3]&&(n[1]=t[3],n[3]=t[1]),n}static intersect(t,n){const s=Math.max(Math.min(t[0],t[2]),Math.min(n[0],n[2])),a=Math.min(Math.max(t[0],t[2]),Math.max(n[0],n[2]));if(s>a)return null;const o=Math.max(Math.min(t[1],t[3]),Math.min(n[1],n[3])),r=Math.min(Math.max(t[1],t[3]),Math.max(n[1],n[3]));return o>r?null:[s,o,a,r]}static bezierBoundingBox(t,n,s,a,o,r,i,l,c){return c?(c[0]=Math.min(c[0],t,i),c[1]=Math.min(c[1],n,l),c[2]=Math.max(c[2],t,i),c[3]=Math.max(c[3],n,l)):c=[Math.min(t,i),Math.min(n,l),Math.max(t,i),Math.max(n,l)],oe(this,wl,O3).call(this,t,s,o,i,n,a,r,l,3*(-t+3*(s-o)+i),6*(t-2*s+o),3*(s-t),c),oe(this,wl,O3).call(this,t,s,o,i,n,a,r,l,3*(-n+3*(a-r)+l),6*(n-2*a+r),3*(a-n),c),c}}wl=new WeakSet,fg=function(t,n,s,a,o,r,i,l,c,u){if(c<=0||c>=1)return;const d=1-c,h=c*c,p=h*c,v=d*(d*(d*t+3*c*n)+3*h*s)+p*a,m=d*(d*(d*o+3*c*r)+3*h*i)+p*l;u[0]=Math.min(u[0],v),u[1]=Math.min(u[1],m),u[2]=Math.max(u[2],v),u[3]=Math.max(u[3],m)},O3=function(t,n,s,a,o,r,i,l,c,u,d,h){if(Math.abs(c)<1e-12){Math.abs(u)>=1e-12&&oe(this,wl,fg).call(this,t,n,s,a,o,r,i,l,-d/u,h);return}const p=u**2-4*d*c;if(p<0)return;const v=Math.sqrt(p),m=2*c;oe(this,wl,fg).call(this,t,n,s,a,o,r,i,l,(-u+v)/m,h),oe(this,wl,fg).call(this,t,n,s,a,o,r,i,l,(-u-v)/m,h)},ne(Nt,wl);function kbe(e){return decodeURIComponent(escape(e))}let ay=null,xx=null;function Abe(e){return ay||(ay=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,xx=new Map([["ſt","ſt"]])),e.replaceAll(ay,(t,n,s)=>n?n.normalize("NFKC"):xx.get(s))}function Tbe(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();const e=new Uint8Array(32);return crypto.getRandomValues(e),xP(e)}const f_="pdfjs_internal_id_";function Mbe(e){return Uint8Array.prototype.toBase64?e.toBase64():btoa(xP(e))}typeof Promise.try!="function"&&(Promise.try=function(e,...t){return new Promise(n=>{n(e(...t))})});const Ri="http://www.w3.org/2000/svg",pu=class pu{};Vt(pu,"CSS",96),Vt(pu,"PDF",72),Vt(pu,"PDF_TO_CSS_UNITS",pu.CSS/pu.PDF);let qc=pu;async function e4(e,t="text"){if(G0(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);switch(t){case"arraybuffer":return n.arrayBuffer();case"blob":return n.blob();case"json":return n.json()}return n.text()}return new Promise((n,s)=>{const a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType=t,a.onreadystatechange=()=>{if(a.readyState===XMLHttpRequest.DONE){if(a.status===200||a.status===0){switch(t){case"arraybuffer":case"blob":case"json":n(a.response);return}n(a.responseText);return}s(new Error(a.statusText))}},a.send(null)})}class h2{constructor({viewBox:t,userUnit:n,scale:s,rotation:a,offsetX:o=0,offsetY:r=0,dontFlip:i=!1}){this.viewBox=t,this.userUnit=n,this.scale=s,this.rotation=a,this.offsetX=o,this.offsetY=r,s*=n;const l=(t[2]+t[0])/2,c=(t[3]+t[1])/2;let u,d,h,p;switch(a%=360,a<0&&(a+=360),a){case 180:u=-1,d=0,h=0,p=1;break;case 90:u=0,d=1,h=1,p=0;break;case 270:u=0,d=-1,h=-1,p=0;break;case 0:u=1,d=0,h=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}i&&(h=-h,p=-p);let v,m,g,b;u===0?(v=Math.abs(c-t[1])*s+o,m=Math.abs(l-t[0])*s+r,g=(t[3]-t[1])*s,b=(t[2]-t[0])*s):(v=Math.abs(l-t[0])*s+o,m=Math.abs(c-t[1])*s+r,g=(t[2]-t[0])*s,b=(t[3]-t[1])*s),this.transform=[u*s,d*s,h*s,p*s,v-u*s*l-h*s*c,m-d*s*l-p*s*c],this.width=g,this.height=b}get rawDims(){const{userUnit:t,viewBox:n}=this,s=n.map(a=>a*t);return cn(this,"rawDims",{pageWidth:s[2]-s[0],pageHeight:s[3]-s[1],pageX:s[0],pageY:s[1]})}clone({scale:t=this.scale,rotation:n=this.rotation,offsetX:s=this.offsetX,offsetY:a=this.offsetY,dontFlip:o=!1}={}){return new h2({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:t,rotation:n,offsetX:s,offsetY:a,dontFlip:o})}convertToViewportPoint(t,n){return Nt.applyTransform([t,n],this.transform)}convertToViewportRectangle(t){const n=Nt.applyTransform([t[0],t[1]],this.transform),s=Nt.applyTransform([t[2],t[3]],this.transform);return[n[0],n[1],s[0],s[1]]}convertToPdfPoint(t,n){return Nt.applyInverseTransform([t,n],this.transform)}}class h_ extends Xc{constructor(t,n=0){super(t,"RenderingCancelledException"),this.extraDelay=n}}function t4(e){const t=e.length;let n=0;for(;n<t&&e[n].trim()==="";)n++;return e.substring(n,n+5).toLowerCase()==="data:"}function p_(e){return typeof e=="string"&&/\.pdf$/i.test(e)}function Pbe(e){return[e]=e.split(/[#?]/,1),e.substring(e.lastIndexOf("/")+1)}function Rbe(e,t="document.pdf"){if(typeof e!="string")return t;if(t4(e))return sn('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const n=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,s=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,a=n.exec(e);let o=s.exec(a[1])||s.exec(a[2])||s.exec(a[3]);if(o&&(o=o[0],o.includes("%")))try{o=s.exec(decodeURIComponent(o))[0]}catch{}return o||t}class Ex{constructor(){Vt(this,"started",Object.create(null));Vt(this,"times",[])}time(t){t in this.started&&sn(`Timer is already running for ${t}`),this.started[t]=Date.now()}timeEnd(t){t in this.started||sn(`Timer has not been started for ${t}`),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}toString(){const t=[];let n=0;for(const{name:s}of this.times)n=Math.max(s.length,n);for(const{name:s,start:a,end:o}of this.times)t.push(`${s.padEnd(n)} ${o-a}ms
`);return t.join("")}}function G0(e,t){try{const{protocol:n}=t?new URL(e,t):new URL(e);return n==="http:"||n==="https:"}catch{return!1}}function Tr(e){e.preventDefault()}function yo(e){e.preventDefault(),e.stopPropagation()}var cv;class v_{static toDateObject(t){if(!t||typeof t!="string")return null;y(this,cv)||U(this,cv,new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const n=y(this,cv).exec(t);if(!n)return null;const s=parseInt(n[1],10);let a=parseInt(n[2],10);a=a>=1&&a<=12?a-1:0;let o=parseInt(n[3],10);o=o>=1&&o<=31?o:1;let r=parseInt(n[4],10);r=r>=0&&r<=23?r:0;let i=parseInt(n[5],10);i=i>=0&&i<=59?i:0;let l=parseInt(n[6],10);l=l>=0&&l<=59?l:0;const c=n[7]||"Z";let u=parseInt(n[8],10);u=u>=0&&u<=23?u:0;let d=parseInt(n[9],10)||0;return d=d>=0&&d<=59?d:0,c==="-"?(r+=u,i+=d):c==="+"&&(r-=u,i-=d),new Date(Date.UTC(s,a,o,r,i,l))}}cv=new WeakMap,ne(v_,cv);function Ibe(e,{scale:t=1,rotation:n=0}){const{width:s,height:a}=e.attributes.style,o=[0,0,parseInt(s),parseInt(a)];return new h2({viewBox:o,userUnit:1,scale:t,rotation:n})}function m_(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(t&16711680)>>16,(t&65280)>>8,t&255]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map(t=>parseInt(t)):e.startsWith("rgba(")?e.slice(5,-1).split(",").map(t=>parseInt(t)).slice(0,3):(sn(`Not a valid color format: "${e}"`),[0,0,0])}function Lbe(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const n of e.keys()){t.style.color=n;const s=window.getComputedStyle(t).color;e.set(n,m_(s))}t.remove()}function Gn(e){const{a:t,b:n,c:s,d:a,e:o,f:r}=e.getTransform();return[t,n,s,a,o,r]}function Vr(e){const{a:t,b:n,c:s,d:a,e:o,f:r}=e.getTransform().invertSelf();return[t,n,s,a,o,r]}function jd(e,t,n=!1,s=!0){if(t instanceof h2){const{pageWidth:a,pageHeight:o}=t.rawDims,{style:r}=e,i=Ra.isCSSRoundSupported,l=`var(--scale-factor) * ${a}px`,c=`var(--scale-factor) * ${o}px`,u=i?`round(down, ${l}, var(--scale-round-x, 1px))`:`calc(${l})`,d=i?`round(down, ${c}, var(--scale-round-y, 1px))`:`calc(${c})`;!n||t.rotation%180===0?(r.width=u,r.height=d):(r.width=d,r.height=u)}s&&e.setAttribute("data-main-rotation",t.rotation)}class N3{constructor(){const t=window.devicePixelRatio||1;this.sx=t,this.sy=t}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}}var sc,xu,tr,Eu,uv,dv,D1,EP,Ia,kP,AP,hg,TP,D3;const Ni=class Ni{constructor(t){ne(this,Ia);ne(this,sc,null);ne(this,xu,null);ne(this,tr);ne(this,Eu,null);ne(this,uv,null);U(this,tr,t),y(Ni,dv)||U(Ni,dv,Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button"}))}render(){const t=U(this,sc,document.createElement("div"));t.classList.add("editToolbar","hidden"),t.setAttribute("role","toolbar");const n=y(this,tr)._uiManager._signal;t.addEventListener("contextmenu",Tr,{signal:n}),t.addEventListener("pointerdown",oe(Ni,D1,EP),{signal:n});const s=U(this,Eu,document.createElement("div"));s.className="buttons",t.append(s);const a=y(this,tr).toolbarPosition;if(a){const{style:o}=t,r=y(this,tr)._uiManager.direction==="ltr"?1-a[0]:a[0];o.insetInlineEnd=`${100*r}%`,o.top=`calc(${100*a[1]}% + var(--editor-toolbar-vert-offset))`}return oe(this,Ia,TP).call(this),t}get div(){return y(this,sc)}hide(){var t;y(this,sc).classList.add("hidden"),(t=y(this,xu))==null||t.hideDropdown()}show(){var t;y(this,sc).classList.remove("hidden"),(t=y(this,uv))==null||t.shown()}async addAltText(t){const n=await t.render();oe(this,Ia,hg).call(this,n),y(this,Eu).prepend(n,y(this,Ia,D3)),U(this,uv,t)}addColorPicker(t){U(this,xu,t);const n=t.renderButton();oe(this,Ia,hg).call(this,n),y(this,Eu).prepend(n,y(this,Ia,D3))}remove(){var t;y(this,sc).remove(),(t=y(this,xu))==null||t.destroy(),U(this,xu,null)}};sc=new WeakMap,xu=new WeakMap,tr=new WeakMap,Eu=new WeakMap,uv=new WeakMap,dv=new WeakMap,D1=new WeakSet,EP=function(t){t.stopPropagation()},Ia=new WeakSet,kP=function(t){y(this,tr)._focusEventsAllowed=!1,yo(t)},AP=function(t){y(this,tr)._focusEventsAllowed=!0,yo(t)},hg=function(t){const n=y(this,tr)._uiManager._signal;t.addEventListener("focusin",oe(this,Ia,kP).bind(this),{capture:!0,signal:n}),t.addEventListener("focusout",oe(this,Ia,AP).bind(this),{capture:!0,signal:n}),t.addEventListener("contextmenu",Tr,{signal:n})},TP=function(){const{editorType:t,_uiManager:n}=y(this,tr),s=document.createElement("button");s.className="delete",s.tabIndex=0,s.setAttribute("data-l10n-id",y(Ni,dv)[t]),oe(this,Ia,hg).call(this,s),s.addEventListener("click",a=>{n.delete()},{signal:n._signal}),y(this,Eu).append(s)},D3=function(){const t=document.createElement("div");return t.className="divider",t},ne(Ni,D1),ne(Ni,dv,null);let $3=Ni;var fv,ku,Au,Gc,MP,PP,RP;class Obe{constructor(t){ne(this,Gc);ne(this,fv,null);ne(this,ku,null);ne(this,Au);U(this,Au,t)}show(t,n,s){const[a,o]=oe(this,Gc,PP).call(this,n,s),{style:r}=y(this,ku)||U(this,ku,oe(this,Gc,MP).call(this));t.append(y(this,ku)),r.insetInlineEnd=`${100*a}%`,r.top=`calc(${100*o}% + var(--editor-toolbar-vert-offset))`}hide(){y(this,ku).remove()}}fv=new WeakMap,ku=new WeakMap,Au=new WeakMap,Gc=new WeakSet,MP=function(){const t=U(this,ku,document.createElement("div"));t.className="editToolbar",t.setAttribute("role","toolbar"),t.addEventListener("contextmenu",Tr,{signal:y(this,Au)._signal});const n=U(this,fv,document.createElement("div"));return n.className="buttons",t.append(n),oe(this,Gc,RP).call(this),t},PP=function(t,n){let s=0,a=0;for(const o of t){const r=o.y+o.height;if(r<s)continue;const i=o.x+(n?o.width:0);if(r>s){a=i,s=r;continue}n?i>a&&(a=i):i<a&&(a=i)}return[n?1-a:a,s]},RP=function(){const t=document.createElement("button");t.className="highlightButton",t.tabIndex=0,t.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const n=document.createElement("span");t.append(n),n.className="visuallyHidden",n.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const s=y(this,Au)._signal;t.addEventListener("contextmenu",Tr,{signal:s}),t.addEventListener("click",()=>{y(this,Au).highlightSelection("floating_button")},{signal:s}),y(this,fv).append(t)};function P1(e,t,n){for(const s of n)t.addEventListener(s,e[s].bind(e))}var F1;class Nbe{constructor(){ne(this,F1,0)}get id(){return`${vbe}${wa(this,F1)._++}`}}F1=new WeakMap;var Wf,hv,aa,jf,pg;const __=class __{constructor(){ne(this,jf);ne(this,Wf,Tbe());ne(this,hv,0);ne(this,aa,null)}static get _isSVGFittingCanvas(){const t='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',s=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),a=new Image;a.src=t;const o=a.decode().then(()=>(s.drawImage(a,0,0,1,1,0,0,1,3),new Uint32Array(s.getImageData(0,0,1,1).data.buffer)[0]===0));return cn(this,"_isSVGFittingCanvas",o)}async getFromFile(t){const{lastModified:n,name:s,size:a,type:o}=t;return oe(this,jf,pg).call(this,`${n}_${s}_${a}_${o}`,t)}async getFromUrl(t){return oe(this,jf,pg).call(this,t,t)}async getFromBlob(t,n){const s=await n;return oe(this,jf,pg).call(this,t,s)}async getFromId(t){y(this,aa)||U(this,aa,new Map);const n=y(this,aa).get(t);if(!n)return null;if(n.bitmap)return n.refCounter+=1,n;if(n.file)return this.getFromFile(n.file);if(n.blobPromise){const{blobPromise:s}=n;return delete n.blobPromise,this.getFromBlob(n.id,s)}return this.getFromUrl(n.url)}getFromCanvas(t,n){y(this,aa)||U(this,aa,new Map);let s=y(this,aa).get(t);if(s!=null&&s.bitmap)return s.refCounter+=1,s;const a=new OffscreenCanvas(n.width,n.height);return a.getContext("2d").drawImage(n,0,0),s={bitmap:a.transferToImageBitmap(),id:`image_${y(this,Wf)}_${wa(this,hv)._++}`,refCounter:1,isSvg:!1},y(this,aa).set(t,s),y(this,aa).set(s.id,s),s}getSvgUrl(t){const n=y(this,aa).get(t);return n!=null&&n.isSvg?n.svgUrl:null}deleteId(t){var a;y(this,aa)||U(this,aa,new Map);const n=y(this,aa).get(t);if(!n||(n.refCounter-=1,n.refCounter!==0))return;const{bitmap:s}=n;if(!n.url&&!n.file){const o=new OffscreenCanvas(s.width,s.height);o.getContext("bitmaprenderer").transferFromImageBitmap(s),n.blobPromise=o.convertToBlob()}(a=s.close)==null||a.call(s),n.bitmap=null}isValidId(t){return t.startsWith(`image_${y(this,Wf)}_`)}};Wf=new WeakMap,hv=new WeakMap,aa=new WeakMap,jf=new WeakSet,pg=async function(t,n){y(this,aa)||U(this,aa,new Map);let s=y(this,aa).get(t);if(s===null)return null;if(s!=null&&s.bitmap)return s.refCounter+=1,s;try{s||(s={bitmap:null,id:`image_${y(this,Wf)}_${wa(this,hv)._++}`,refCounter:0,isSvg:!1});let a;if(typeof n=="string"?(s.url=n,a=await e4(n,"blob")):n instanceof File?a=s.file=n:n instanceof Blob&&(a=n),a.type==="image/svg+xml"){const o=__._isSVGFittingCanvas,r=new FileReader,i=new Image,l=new Promise((c,u)=>{i.onload=()=>{s.bitmap=i,s.isSvg=!0,c()},r.onload=async()=>{const d=s.svgUrl=r.result;i.src=await o?`${d}#svgView(preserveAspectRatio(none))`:d},i.onerror=r.onerror=u});r.readAsDataURL(a),await l}else s.bitmap=await createImageBitmap(a);s.refCounter=1}catch(a){sn(a),s=null}return y(this,aa).set(t,s),s&&y(this,aa).set(s.id,s),s};let F3=__;var ls,ac,pv,Zn;class $be{constructor(t=128){ne(this,ls,[]);ne(this,ac,!1);ne(this,pv);ne(this,Zn,-1);U(this,pv,t)}add({cmd:t,undo:n,post:s,mustExec:a,type:o=NaN,overwriteIfSameType:r=!1,keepUndo:i=!1}){if(a&&t(),y(this,ac))return;const l={cmd:t,undo:n,post:s,type:o};if(y(this,Zn)===-1){y(this,ls).length>0&&(y(this,ls).length=0),U(this,Zn,0),y(this,ls).push(l);return}if(r&&y(this,ls)[y(this,Zn)].type===o){i&&(l.undo=y(this,ls)[y(this,Zn)].undo),y(this,ls)[y(this,Zn)]=l;return}const c=y(this,Zn)+1;c===y(this,pv)?y(this,ls).splice(0,1):(U(this,Zn,c),c<y(this,ls).length&&y(this,ls).splice(c)),y(this,ls).push(l)}undo(){if(y(this,Zn)===-1)return;U(this,ac,!0);const{undo:t,post:n}=y(this,ls)[y(this,Zn)];t(),n==null||n(),U(this,ac,!1),U(this,Zn,y(this,Zn)-1)}redo(){if(y(this,Zn)<y(this,ls).length-1){U(this,Zn,y(this,Zn)+1),U(this,ac,!0);const{cmd:t,post:n}=y(this,ls)[y(this,Zn)];t(),n==null||n(),U(this,ac,!1)}}hasSomethingToUndo(){return y(this,Zn)!==-1}hasSomethingToRedo(){return y(this,Zn)<y(this,ls).length-1}cleanType(t){if(y(this,Zn)!==-1){for(let n=y(this,Zn);n>=0;n--)if(y(this,ls)[n].type!==t){y(this,ls).splice(n+1,y(this,Zn)-n),U(this,Zn,n);return}y(this,ls).length=0,U(this,Zn,-1)}}destroy(){U(this,ls,null)}}ls=new WeakMap,ac=new WeakMap,pv=new WeakMap,Zn=new WeakMap;var B1,IP;class p2{constructor(t){ne(this,B1);this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:n}=Ra.platform;for(const[s,a,o={}]of t)for(const r of s){const i=r.startsWith("mac+");n&&i?(this.callbacks.set(r.slice(4),{callback:a,options:o}),this.allKeys.add(r.split("+").at(-1))):!n&&!i&&(this.callbacks.set(r,{callback:a,options:o}),this.allKeys.add(r.split("+").at(-1)))}}exec(t,n){if(!this.allKeys.has(n.key))return;const s=this.callbacks.get(oe(this,B1,IP).call(this,n));if(!s)return;const{callback:a,options:{bubbles:o=!1,args:r=[],checker:i=null}}=s;i&&!i(t,n)||(a.bind(t,...r,n)(),o||yo(n))}}B1=new WeakSet,IP=function(t){t.altKey&&this.buffer.push("alt"),t.ctrlKey&&this.buffer.push("ctrl"),t.metaKey&&this.buffer.push("meta"),t.shiftKey&&this.buffer.push("shift"),this.buffer.push(t.key);const n=this.buffer.join("+");return this.buffer.length=0,n};const V1=class V1{get _colors(){const t=new Map([["CanvasText",null],["Canvas",null]]);return Lbe(t),cn(this,"_colors",t)}convert(t){const n=m_(t);if(!window.matchMedia("(forced-colors: active)").matches)return n;for(const[s,a]of this._colors)if(a.every((o,r)=>o===n[r]))return V1._colorsMapping.get(s);return n}getHexCode(t){const n=this._colors.get(t);return n?Nt.makeHexColor(...n):t}};Vt(V1,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));let B3=V1;var Kf,so,Ss,Hs,Uf,Bi,qf,Lo,oc,Tu,Gf,Mu,Ur,nr,Pu,vv,mv,Yf,gv,qr,rc,Xf,ic,Gr,z1,lc,bv,cc,Ru,yv,wv,Rs,kn,Vi,Iu,_v,Cv,uc,Yr,zi,Sv,Oo,mt,vg,V3,LP,OP,mg,NP,$P,DP,z3,FP,H3,W3,BP,Sa,Ii,VP,zP,j3,HP,Y0,K3;const kf=class kf{constructor(t,n,s,a,o,r,i,l,c,u,d,h,p){ne(this,mt);ne(this,Kf,new AbortController);ne(this,so,null);ne(this,Ss,new Map);ne(this,Hs,new Map);ne(this,Uf,null);ne(this,Bi,null);ne(this,qf,null);ne(this,Lo,new $be);ne(this,oc,null);ne(this,Tu,null);ne(this,Gf,0);ne(this,Mu,new Set);ne(this,Ur,null);ne(this,nr,null);ne(this,Pu,new Set);Vt(this,"_editorUndoBar",null);ne(this,vv,!1);ne(this,mv,!1);ne(this,Yf,!1);ne(this,gv,null);ne(this,qr,null);ne(this,rc,null);ne(this,Xf,null);ne(this,ic,!1);ne(this,Gr,null);ne(this,z1,new Nbe);ne(this,lc,!1);ne(this,bv,!1);ne(this,cc,null);ne(this,Ru,null);ne(this,yv,null);ne(this,wv,null);ne(this,Rs,nn.NONE);ne(this,kn,new Set);ne(this,Vi,null);ne(this,Iu,null);ne(this,_v,null);ne(this,Cv,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1});ne(this,uc,[0,0]);ne(this,Yr,null);ne(this,zi,null);ne(this,Sv,null);ne(this,Oo,null);const v=this._signal=y(this,Kf).signal;U(this,zi,t),U(this,Sv,n),U(this,Uf,s),this._eventBus=a,a._on("editingaction",this.onEditingAction.bind(this),{signal:v}),a._on("pagechanging",this.onPageChanging.bind(this),{signal:v}),a._on("scalechanging",this.onScaleChanging.bind(this),{signal:v}),a._on("rotationchanging",this.onRotationChanging.bind(this),{signal:v}),a._on("setpreference",this.onSetPreference.bind(this),{signal:v}),a._on("switchannotationeditorparams",m=>this.updateParams(m.type,m.value),{signal:v}),oe(this,mt,NP).call(this),oe(this,mt,BP).call(this),oe(this,mt,z3).call(this),U(this,Bi,o.annotationStorage),U(this,gv,o.filterFactory),U(this,Iu,r),U(this,Xf,i||null),U(this,vv,l),U(this,mv,c),U(this,Yf,u),U(this,wv,d||null),this.viewParameters={realScale:qc.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=h||null,this._supportsPinchToZoom=p!==!1}static get _keyboardManager(){const t=kf.prototype,n=r=>y(r,zi).contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&r.hasSomethingToControl(),s=(r,{target:i})=>{if(i instanceof HTMLInputElement){const{type:l}=i;return l!=="text"&&l!=="number"}return!0},a=this.TRANSLATE_SMALL,o=this.TRANSLATE_BIG;return cn(this,"_keyboardManager",new p2([[["ctrl+a","mac+meta+a"],t.selectAll,{checker:s}],[["ctrl+z","mac+meta+z"],t.undo,{checker:s}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo,{checker:s}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete,{checker:s}],[["Enter","mac+Enter"],t.addNewEditorFromKeyboard,{checker:(r,{target:i})=>!(i instanceof HTMLButtonElement)&&y(r,zi).contains(i)&&!r.isEnterHandled}],[[" ","mac+ "],t.addNewEditorFromKeyboard,{checker:(r,{target:i})=>!(i instanceof HTMLButtonElement)&&y(r,zi).contains(document.activeElement)}],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-a,0],checker:n}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-o,0],checker:n}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[a,0],checker:n}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[o,0],checker:n}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-a],checker:n}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-o],checker:n}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,a],checker:n}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,o],checker:n}]]))}destroy(){var t,n,s,a,o;(t=y(this,Oo))==null||t.resolve(),U(this,Oo,null),(n=y(this,Kf))==null||n.abort(),U(this,Kf,null),this._signal=null;for(const r of y(this,Hs).values())r.destroy();y(this,Hs).clear(),y(this,Ss).clear(),y(this,Pu).clear(),U(this,so,null),y(this,kn).clear(),y(this,Lo).destroy(),(s=y(this,Uf))==null||s.destroy(),(a=y(this,Gr))==null||a.hide(),U(this,Gr,null),y(this,qr)&&(clearTimeout(y(this,qr)),U(this,qr,null)),y(this,Yr)&&(clearTimeout(y(this,Yr)),U(this,Yr,null)),(o=this._editorUndoBar)==null||o.destroy()}combinedSignal(t){return AbortSignal.any([this._signal,t.signal])}get mlManager(){return y(this,wv)}get useNewAltTextFlow(){return y(this,mv)}get useNewAltTextWhenAddingImage(){return y(this,Yf)}get hcmFilter(){return cn(this,"hcmFilter",y(this,Iu)?y(this,gv).addHCMFilter(y(this,Iu).foreground,y(this,Iu).background):"none")}get direction(){return cn(this,"direction",getComputedStyle(y(this,zi)).direction)}get highlightColors(){return cn(this,"highlightColors",y(this,Xf)?new Map(y(this,Xf).split(",").map(t=>t.split("=").map(n=>n.trim()))):null)}get highlightColorNames(){return cn(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,t=>t.reverse())):null)}setCurrentDrawingSession(t){t?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),U(this,Tu,t)}setMainHighlightColorPicker(t){U(this,yv,t)}editAltText(t,n=!1){var s;(s=y(this,Uf))==null||s.editAltText(this,t,n)}switchToMode(t,n){this._eventBus.on("annotationeditormodechanged",n,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:t})}setPreference(t,n){this._eventBus.dispatch("setpreference",{source:this,name:t,value:n})}onSetPreference({name:t,value:n}){switch(t){case"enableNewAltTextWhenAddingImage":U(this,Yf,n);break}}onPageChanging({pageNumber:t}){U(this,Gf,t-1)}focusMainContainer(){y(this,zi).focus()}findParent(t,n){for(const s of y(this,Hs).values()){const{x:a,y:o,width:r,height:i}=s.div.getBoundingClientRect();if(t>=a&&t<=a+r&&n>=o&&n<=o+i)return s}return null}disableUserSelect(t=!1){y(this,Sv).classList.toggle("noUserSelect",t)}addShouldRescale(t){y(this,Pu).add(t)}removeShouldRescale(t){y(this,Pu).delete(t)}onScaleChanging({scale:t}){var n;this.commitOrRemove(),this.viewParameters.realScale=t*qc.PDF_TO_CSS_UNITS;for(const s of y(this,Pu))s.onScaleChanging();(n=y(this,Tu))==null||n.onScaleChanging()}onRotationChanging({pagesRotation:t}){this.commitOrRemove(),this.viewParameters.rotation=t}highlightSelection(t=""){const n=document.getSelection();if(!n||n.isCollapsed)return;const{anchorNode:s,anchorOffset:a,focusNode:o,focusOffset:r}=n,i=n.toString(),c=oe(this,mt,vg).call(this,n).closest(".textLayer"),u=this.getSelectionBoxes(c);if(!u)return;n.empty();const d=oe(this,mt,V3).call(this,c),h=y(this,Rs)===nn.NONE,p=()=>{d==null||d.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:u,anchorNode:s,anchorOffset:a,focusNode:o,focusOffset:r,text:i}),h&&this.showAllEditors("highlight",!0,!0)};if(h){this.switchToMode(nn.HIGHLIGHT,p);return}p()}addToAnnotationStorage(t){!t.isEmpty()&&y(this,Bi)&&!y(this,Bi).has(t.id)&&y(this,Bi).setValue(t.id,t)}blur(){if(this.isShiftKeyDown=!1,y(this,ic)&&(U(this,ic,!1),oe(this,mt,mg).call(this,"main_toolbar")),!this.hasSelection)return;const{activeElement:t}=document;for(const n of y(this,kn))if(n.div.contains(t)){U(this,Ru,[n,t]),n._focusEventsAllowed=!1;break}}focus(){if(!y(this,Ru))return;const[t,n]=y(this,Ru);U(this,Ru,null),n.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this._signal}),n.focus()}addEditListeners(){oe(this,mt,z3).call(this),oe(this,mt,H3).call(this)}removeEditListeners(){oe(this,mt,FP).call(this),oe(this,mt,W3).call(this)}dragOver(t){for(const{type:n}of t.dataTransfer.items)for(const s of y(this,nr))if(s.isHandlingMimeForPasting(n)){t.dataTransfer.dropEffect="copy",t.preventDefault();return}}drop(t){for(const n of t.dataTransfer.items)for(const s of y(this,nr))if(s.isHandlingMimeForPasting(n.type)){s.paste(n,this.currentLayer),t.preventDefault();return}}copy(t){var s;if(t.preventDefault(),(s=y(this,so))==null||s.commitOrRemove(),!this.hasSelection)return;const n=[];for(const a of y(this,kn)){const o=a.serialize(!0);o&&n.push(o)}n.length!==0&&t.clipboardData.setData("application/pdfjs",JSON.stringify(n))}cut(t){this.copy(t),this.delete()}async paste(t){t.preventDefault();const{clipboardData:n}=t;for(const o of n.items)for(const r of y(this,nr))if(r.isHandlingMimeForPasting(o.type)){r.paste(o,this.currentLayer);return}let s=n.getData("application/pdfjs");if(!s)return;try{s=JSON.parse(s)}catch(o){sn(`paste: "${o.message}".`);return}if(!Array.isArray(s))return;this.unselectAll();const a=this.currentLayer;try{const o=[];for(const l of s){const c=await a.deserialize(l);if(!c)return;o.push(c)}const r=()=>{for(const l of o)oe(this,mt,j3).call(this,l);oe(this,mt,K3).call(this,o)},i=()=>{for(const l of o)l.remove()};this.addCommands({cmd:r,undo:i,mustExec:!0})}catch(o){sn(`paste: "${o.message}".`)}}keydown(t){!this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!0),y(this,Rs)!==nn.NONE&&!this.isEditorHandlingKeyboard&&kf._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!1,y(this,ic)&&(U(this,ic,!1),oe(this,mt,mg).call(this,"main_toolbar")))}onEditingAction({name:t}){switch(t){case"undo":case"redo":case"delete":case"selectAll":this[t]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}setEditingState(t){t?(oe(this,mt,$P).call(this),oe(this,mt,H3).call(this),oe(this,mt,Sa).call(this,{isEditing:y(this,Rs)!==nn.NONE,isEmpty:oe(this,mt,Y0).call(this),hasSomethingToUndo:y(this,Lo).hasSomethingToUndo(),hasSomethingToRedo:y(this,Lo).hasSomethingToRedo(),hasSelectedEditor:!1})):(oe(this,mt,DP).call(this),oe(this,mt,W3).call(this),oe(this,mt,Sa).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!y(this,nr)){U(this,nr,t);for(const n of y(this,nr))oe(this,mt,Ii).call(this,n.defaultPropertiesToUpdate)}}getId(){return y(this,z1).id}get currentLayer(){return y(this,Hs).get(y(this,Gf))}getLayer(t){return y(this,Hs).get(t)}get currentPageIndex(){return y(this,Gf)}addLayer(t){y(this,Hs).set(t.pageIndex,t),y(this,lc)?t.enable():t.disable()}removeLayer(t){y(this,Hs).delete(t.pageIndex)}async updateMode(t,n=null,s=!1){var a;if(y(this,Rs)!==t&&!(y(this,Oo)&&(await y(this,Oo).promise,!y(this,Oo)))){if(U(this,Oo,Promise.withResolvers()),U(this,Rs,t),t===nn.NONE){this.setEditingState(!1),oe(this,mt,zP).call(this),(a=this._editorUndoBar)==null||a.hide(),y(this,Oo).resolve();return}this.setEditingState(!0),await oe(this,mt,VP).call(this),this.unselectAll();for(const o of y(this,Hs).values())o.updateMode(t);if(!n){s&&this.addNewEditorFromKeyboard(),y(this,Oo).resolve();return}for(const o of y(this,Ss).values())o.annotationElementId===n?(this.setSelected(o),o.enterInEditMode()):o.unselect();y(this,Oo).resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t!==y(this,Rs)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:t})}updateParams(t,n){var s;if(y(this,nr)){switch(t){case pn.CREATE:this.currentLayer.addNewEditor();return;case pn.HIGHLIGHT_DEFAULT_COLOR:(s=y(this,yv))==null||s.updateColor(n);break;case pn.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(y(this,_v)||U(this,_v,new Map)).set(t,n),this.showAllEditors("highlight",n);break}for(const a of y(this,kn))a.updateParams(t,n);for(const a of y(this,nr))a.updateDefaultParams(t,n)}}showAllEditors(t,n,s=!1){var o;for(const r of y(this,Ss).values())r.editorType===t&&r.show(n);(((o=y(this,_v))==null?void 0:o.get(pn.HIGHLIGHT_SHOW_ALL))??!0)!==n&&oe(this,mt,Ii).call(this,[[pn.HIGHLIGHT_SHOW_ALL,n]])}enableWaiting(t=!1){if(y(this,bv)!==t){U(this,bv,t);for(const n of y(this,Hs).values())t?n.disableClick():n.enableClick(),n.div.classList.toggle("waiting",t)}}getEditors(t){const n=[];for(const s of y(this,Ss).values())s.pageIndex===t&&n.push(s);return n}getEditor(t){return y(this,Ss).get(t)}addEditor(t){y(this,Ss).set(t.id,t)}removeEditor(t){var n;t.div.contains(document.activeElement)&&(y(this,qr)&&clearTimeout(y(this,qr)),U(this,qr,setTimeout(()=>{this.focusMainContainer(),U(this,qr,null)},0))),y(this,Ss).delete(t.id),this.unselect(t),(!t.annotationElementId||!y(this,Mu).has(t.annotationElementId))&&((n=y(this,Bi))==null||n.remove(t.id))}addDeletedAnnotationElement(t){y(this,Mu).add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}isDeletedAnnotationElement(t){return y(this,Mu).has(t)}removeDeletedAnnotationElement(t){y(this,Mu).delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}setActiveEditor(t){y(this,so)!==t&&(U(this,so,t),t&&oe(this,mt,Ii).call(this,t.propertiesToUpdate))}updateUI(t){y(this,mt,HP)===t&&oe(this,mt,Ii).call(this,t.propertiesToUpdate)}updateUIForDefaultProperties(t){oe(this,mt,Ii).call(this,t.defaultPropertiesToUpdate)}toggleSelected(t){if(y(this,kn).has(t)){y(this,kn).delete(t),t.unselect(),oe(this,mt,Sa).call(this,{hasSelectedEditor:this.hasSelection});return}y(this,kn).add(t),t.select(),oe(this,mt,Ii).call(this,t.propertiesToUpdate),oe(this,mt,Sa).call(this,{hasSelectedEditor:!0})}setSelected(t){var n;(n=y(this,Tu))==null||n.commitOrRemove();for(const s of y(this,kn))s!==t&&s.unselect();y(this,kn).clear(),y(this,kn).add(t),t.select(),oe(this,mt,Ii).call(this,t.propertiesToUpdate),oe(this,mt,Sa).call(this,{hasSelectedEditor:!0})}isSelected(t){return y(this,kn).has(t)}get firstSelectedEditor(){return y(this,kn).values().next().value}unselect(t){t.unselect(),y(this,kn).delete(t),oe(this,mt,Sa).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return y(this,kn).size!==0}get isEnterHandled(){return y(this,kn).size===1&&this.firstSelectedEditor.isEnterHandled}undo(){var t;y(this,Lo).undo(),oe(this,mt,Sa).call(this,{hasSomethingToUndo:y(this,Lo).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:oe(this,mt,Y0).call(this)}),(t=this._editorUndoBar)==null||t.hide()}redo(){y(this,Lo).redo(),oe(this,mt,Sa).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:y(this,Lo).hasSomethingToRedo(),isEmpty:oe(this,mt,Y0).call(this)})}addCommands(t){y(this,Lo).add(t),oe(this,mt,Sa).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:oe(this,mt,Y0).call(this)})}cleanUndoStack(t){y(this,Lo).cleanType(t)}delete(){var o;this.commitOrRemove();const t=(o=this.currentLayer)==null?void 0:o.endDrawingSession(!0);if(!this.hasSelection&&!t)return;const n=t?[t]:[...y(this,kn)],s=()=>{var r;(r=this._editorUndoBar)==null||r.show(a,n.length===1?n[0].editorType:n.length);for(const i of n)i.remove()},a=()=>{for(const r of n)oe(this,mt,j3).call(this,r)};this.addCommands({cmd:s,undo:a,mustExec:!0})}commitOrRemove(){var t;(t=y(this,so))==null||t.commitOrRemove()}hasSomethingToControl(){return y(this,so)||this.hasSelection}selectAll(){for(const t of y(this,kn))t.commit();oe(this,mt,K3).call(this,y(this,Ss).values())}unselectAll(){var t;if(!(y(this,so)&&(y(this,so).commitOrRemove(),y(this,Rs)!==nn.NONE))&&!((t=y(this,Tu))!=null&&t.commitOrRemove())&&this.hasSelection){for(const n of y(this,kn))n.unselect();y(this,kn).clear(),oe(this,mt,Sa).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(t,n,s=!1){if(s||this.commitOrRemove(),!this.hasSelection)return;y(this,uc)[0]+=t,y(this,uc)[1]+=n;const[a,o]=y(this,uc),r=[...y(this,kn)],i=1e3;y(this,Yr)&&clearTimeout(y(this,Yr)),U(this,Yr,setTimeout(()=>{U(this,Yr,null),y(this,uc)[0]=y(this,uc)[1]=0,this.addCommands({cmd:()=>{for(const l of r)y(this,Ss).has(l.id)&&l.translateInPage(a,o)},undo:()=>{for(const l of r)y(this,Ss).has(l.id)&&l.translateInPage(-a,-o)},mustExec:!1})},i));for(const l of r)l.translateInPage(t,n)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),U(this,Ur,new Map);for(const t of y(this,kn))y(this,Ur).set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!y(this,Ur))return!1;this.disableUserSelect(!1);const t=y(this,Ur);U(this,Ur,null);let n=!1;for(const[{x:a,y:o,pageIndex:r},i]of t)i.newX=a,i.newY=o,i.newPageIndex=r,n||(n=a!==i.savedX||o!==i.savedY||r!==i.savedPageIndex);if(!n)return!1;const s=(a,o,r,i)=>{if(y(this,Ss).has(a.id)){const l=y(this,Hs).get(i);l?a._setParentAndPosition(l,o,r):(a.pageIndex=i,a.x=o,a.y=r)}};return this.addCommands({cmd:()=>{for(const[a,{newX:o,newY:r,newPageIndex:i}]of t)s(a,o,r,i)},undo:()=>{for(const[a,{savedX:o,savedY:r,savedPageIndex:i}]of t)s(a,o,r,i)},mustExec:!0}),!0}dragSelectedEditors(t,n){if(y(this,Ur))for(const s of y(this,Ur).keys())s.drag(t,n)}rebuild(t){if(t.parent===null){const n=this.getLayer(t.pageIndex);n?(n.changeParent(t),n.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}get isEditorHandlingKeyboard(){var t;return((t=this.getActive())==null?void 0:t.shouldGetKeyboardEvents())||y(this,kn).size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return y(this,so)===t}getActive(){return y(this,so)}getMode(){return y(this,Rs)}get imageManager(){return cn(this,"imageManager",new F3)}getSelectionBoxes(t){if(!t)return null;const n=document.getSelection();for(let c=0,u=n.rangeCount;c<u;c++)if(!t.contains(n.getRangeAt(c).commonAncestorContainer))return null;const{x:s,y:a,width:o,height:r}=t.getBoundingClientRect();let i;switch(t.getAttribute("data-main-rotation")){case"90":i=(c,u,d,h)=>({x:(u-a)/r,y:1-(c+d-s)/o,width:h/r,height:d/o});break;case"180":i=(c,u,d,h)=>({x:1-(c+d-s)/o,y:1-(u+h-a)/r,width:d/o,height:h/r});break;case"270":i=(c,u,d,h)=>({x:1-(u+h-a)/r,y:(c-s)/o,width:h/r,height:d/o});break;default:i=(c,u,d,h)=>({x:(c-s)/o,y:(u-a)/r,width:d/o,height:h/r});break}const l=[];for(let c=0,u=n.rangeCount;c<u;c++){const d=n.getRangeAt(c);if(!d.collapsed)for(const{x:h,y:p,width:v,height:m}of d.getClientRects())v===0||m===0||l.push(i(h,p,v,m))}return l.length===0?null:l}addChangedExistingAnnotation({annotationElementId:t,id:n}){(y(this,qf)||U(this,qf,new Map)).set(t,n)}removeChangedExistingAnnotation({annotationElementId:t}){var n;(n=y(this,qf))==null||n.delete(t)}renderAnnotationElement(t){var a;const n=(a=y(this,qf))==null?void 0:a.get(t.data.id);if(!n)return;const s=y(this,Bi).getRawValue(n);s&&(y(this,Rs)===nn.NONE&&!s.hasBeenModified||s.renderAnnotationElement(t))}};Kf=new WeakMap,so=new WeakMap,Ss=new WeakMap,Hs=new WeakMap,Uf=new WeakMap,Bi=new WeakMap,qf=new WeakMap,Lo=new WeakMap,oc=new WeakMap,Tu=new WeakMap,Gf=new WeakMap,Mu=new WeakMap,Ur=new WeakMap,nr=new WeakMap,Pu=new WeakMap,vv=new WeakMap,mv=new WeakMap,Yf=new WeakMap,gv=new WeakMap,qr=new WeakMap,rc=new WeakMap,Xf=new WeakMap,ic=new WeakMap,Gr=new WeakMap,z1=new WeakMap,lc=new WeakMap,bv=new WeakMap,cc=new WeakMap,Ru=new WeakMap,yv=new WeakMap,wv=new WeakMap,Rs=new WeakMap,kn=new WeakMap,Vi=new WeakMap,Iu=new WeakMap,_v=new WeakMap,Cv=new WeakMap,uc=new WeakMap,Yr=new WeakMap,zi=new WeakMap,Sv=new WeakMap,Oo=new WeakMap,mt=new WeakSet,vg=function({anchorNode:t}){return t.nodeType===Node.TEXT_NODE?t.parentElement:t},V3=function(t){const{currentLayer:n}=this;if(n.hasTextLayer(t))return n;for(const s of y(this,Hs).values())if(s.hasTextLayer(t))return s;return null},LP=function(){const t=document.getSelection();if(!t||t.isCollapsed)return;const s=oe(this,mt,vg).call(this,t).closest(".textLayer"),a=this.getSelectionBoxes(s);a&&(y(this,Gr)||U(this,Gr,new Obe(this)),y(this,Gr).show(s,a,this.direction==="ltr"))},OP=function(){var o,r,i;const t=document.getSelection();if(!t||t.isCollapsed){y(this,Vi)&&((o=y(this,Gr))==null||o.hide(),U(this,Vi,null),oe(this,mt,Sa).call(this,{hasSelectedText:!1}));return}const{anchorNode:n}=t;if(n===y(this,Vi))return;const a=oe(this,mt,vg).call(this,t).closest(".textLayer");if(!a){y(this,Vi)&&((r=y(this,Gr))==null||r.hide(),U(this,Vi,null),oe(this,mt,Sa).call(this,{hasSelectedText:!1}));return}if((i=y(this,Gr))==null||i.hide(),U(this,Vi,n),oe(this,mt,Sa).call(this,{hasSelectedText:!0}),!(y(this,Rs)!==nn.HIGHLIGHT&&y(this,Rs)!==nn.NONE)&&(y(this,Rs)===nn.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),U(this,ic,this.isShiftKeyDown),!this.isShiftKeyDown)){const l=y(this,Rs)===nn.HIGHLIGHT?oe(this,mt,V3).call(this,a):null;l==null||l.toggleDrawing();const c=new AbortController,u=this.combinedSignal(c),d=h=>{h.type==="pointerup"&&h.button!==0||(c.abort(),l==null||l.toggleDrawing(!0),h.type==="pointerup"&&oe(this,mt,mg).call(this,"main_toolbar"))};window.addEventListener("pointerup",d,{signal:u}),window.addEventListener("blur",d,{signal:u})}},mg=function(t=""){y(this,Rs)===nn.HIGHLIGHT?this.highlightSelection(t):y(this,vv)&&oe(this,mt,LP).call(this)},NP=function(){document.addEventListener("selectionchange",oe(this,mt,OP).bind(this),{signal:this._signal})},$P=function(){if(y(this,rc))return;U(this,rc,new AbortController);const t=this.combinedSignal(y(this,rc));window.addEventListener("focus",this.focus.bind(this),{signal:t}),window.addEventListener("blur",this.blur.bind(this),{signal:t})},DP=function(){var t;(t=y(this,rc))==null||t.abort(),U(this,rc,null)},z3=function(){if(y(this,cc))return;U(this,cc,new AbortController);const t=this.combinedSignal(y(this,cc));window.addEventListener("keydown",this.keydown.bind(this),{signal:t}),window.addEventListener("keyup",this.keyup.bind(this),{signal:t})},FP=function(){var t;(t=y(this,cc))==null||t.abort(),U(this,cc,null)},H3=function(){if(y(this,oc))return;U(this,oc,new AbortController);const t=this.combinedSignal(y(this,oc));document.addEventListener("copy",this.copy.bind(this),{signal:t}),document.addEventListener("cut",this.cut.bind(this),{signal:t}),document.addEventListener("paste",this.paste.bind(this),{signal:t})},W3=function(){var t;(t=y(this,oc))==null||t.abort(),U(this,oc,null)},BP=function(){const t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t})},Sa=function(t){Object.entries(t).some(([s,a])=>y(this,Cv)[s]!==a)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(y(this,Cv),t)}),y(this,Rs)===nn.HIGHLIGHT&&t.hasSelectedEditor===!1&&oe(this,mt,Ii).call(this,[[pn.HIGHLIGHT_FREE,!0]]))},Ii=function(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})},VP=async function(){if(!y(this,lc)){U(this,lc,!0);const t=[];for(const n of y(this,Hs).values())t.push(n.enable());await Promise.all(t);for(const n of y(this,Ss).values())n.enable()}},zP=function(){if(this.unselectAll(),y(this,lc)){U(this,lc,!1);for(const t of y(this,Hs).values())t.disable();for(const t of y(this,Ss).values())t.disable()}},j3=function(t){const n=y(this,Hs).get(t.pageIndex);n?n.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))},HP=function(){let t=null;for(t of y(this,kn));return t},Y0=function(){if(y(this,Ss).size===0)return!0;if(y(this,Ss).size===1)for(const t of y(this,Ss).values())return t.isEmpty();return!1},K3=function(t){for(const n of y(this,kn))n.unselect();y(this,kn).clear();for(const n of t)n.isEmpty()||(y(this,kn).add(n),n.select());oe(this,mt,Sa).call(this,{hasSelectedEditor:this.hasSelection})},Vt(kf,"TRANSLATE_SMALL",1),Vt(kf,"TRANSLATE_BIG",10);let Kd=kf;var Is,Xr,sr,Jf,Jr,ao,Zf,Zr,Ka,Hi,Lu,Qr,dc,pr,X0,gg;const xa=class xa{constructor(t){ne(this,pr);ne(this,Is,null);ne(this,Xr,!1);ne(this,sr,null);ne(this,Jf,null);ne(this,Jr,null);ne(this,ao,null);ne(this,Zf,!1);ne(this,Zr,null);ne(this,Ka,null);ne(this,Hi,null);ne(this,Lu,null);ne(this,Qr,!1);U(this,Ka,t),U(this,Qr,t._uiManager.useNewAltTextFlow),y(xa,dc)||U(xa,dc,Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"}))}static initialize(t){xa._l10n??(xa._l10n=t)}async render(){const t=U(this,sr,document.createElement("button"));t.className="altText",t.tabIndex="0";const n=U(this,Jf,document.createElement("span"));t.append(n),y(this,Qr)?(t.classList.add("new"),t.setAttribute("data-l10n-id",y(xa,dc).missing),n.setAttribute("data-l10n-id",y(xa,dc)["missing-label"])):(t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),n.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));const s=y(this,Ka)._uiManager._signal;t.addEventListener("contextmenu",Tr,{signal:s}),t.addEventListener("pointerdown",o=>o.stopPropagation(),{signal:s});const a=o=>{o.preventDefault(),y(this,Ka)._uiManager.editAltText(y(this,Ka)),y(this,Qr)&&y(this,Ka)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:y(this,pr,X0)}})};return t.addEventListener("click",a,{capture:!0,signal:s}),t.addEventListener("keydown",o=>{o.target===t&&o.key==="Enter"&&(U(this,Zf,!0),a(o))},{signal:s}),await oe(this,pr,gg).call(this),t}finish(){y(this,sr)&&(y(this,sr).focus({focusVisible:y(this,Zf)}),U(this,Zf,!1))}isEmpty(){return y(this,Qr)?y(this,Is)===null:!y(this,Is)&&!y(this,Xr)}hasData(){return y(this,Qr)?y(this,Is)!==null||!!y(this,Hi):this.isEmpty()}get guessedText(){return y(this,Hi)}async setGuessedText(t){y(this,Is)===null&&(U(this,Hi,t),U(this,Lu,await xa._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:t})),oe(this,pr,gg).call(this))}toggleAltTextBadge(t=!1){var n;if(!y(this,Qr)||y(this,Is)){(n=y(this,Zr))==null||n.remove(),U(this,Zr,null);return}if(!y(this,Zr)){const s=U(this,Zr,document.createElement("div"));s.className="noAltTextBadge",y(this,Ka).div.append(s)}y(this,Zr).classList.toggle("hidden",!t)}serialize(t){let n=y(this,Is);return!t&&y(this,Hi)===n&&(n=y(this,Lu)),{altText:n,decorative:y(this,Xr),guessedText:y(this,Hi),textWithDisclaimer:y(this,Lu)}}get data(){return{altText:y(this,Is),decorative:y(this,Xr)}}set data({altText:t,decorative:n,guessedText:s,textWithDisclaimer:a,cancel:o=!1}){s&&(U(this,Hi,s),U(this,Lu,a)),!(y(this,Is)===t&&y(this,Xr)===n)&&(o||(U(this,Is,t),U(this,Xr,n)),oe(this,pr,gg).call(this))}toggle(t=!1){y(this,sr)&&(!t&&y(this,ao)&&(clearTimeout(y(this,ao)),U(this,ao,null)),y(this,sr).disabled=!t)}shown(){y(this,Ka)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:y(this,pr,X0)}})}destroy(){var t,n;(t=y(this,sr))==null||t.remove(),U(this,sr,null),U(this,Jf,null),U(this,Jr,null),(n=y(this,Zr))==null||n.remove(),U(this,Zr,null)}};Is=new WeakMap,Xr=new WeakMap,sr=new WeakMap,Jf=new WeakMap,Jr=new WeakMap,ao=new WeakMap,Zf=new WeakMap,Zr=new WeakMap,Ka=new WeakMap,Hi=new WeakMap,Lu=new WeakMap,Qr=new WeakMap,dc=new WeakMap,pr=new WeakSet,X0=function(){return y(this,Is)&&"added"||y(this,Is)===null&&this.guessedText&&"review"||"missing"},gg=async function(){var a,o,r;const t=y(this,sr);if(!t)return;if(y(this,Qr)){if(t.classList.toggle("done",!!y(this,Is)),t.setAttribute("data-l10n-id",y(xa,dc)[y(this,pr,X0)]),(a=y(this,Jf))==null||a.setAttribute("data-l10n-id",y(xa,dc)[`${y(this,pr,X0)}-label`]),!y(this,Is)){(o=y(this,Jr))==null||o.remove();return}}else{if(!y(this,Is)&&!y(this,Xr)){t.classList.remove("done"),(r=y(this,Jr))==null||r.remove();return}t.classList.add("done"),t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let n=y(this,Jr);if(!n){U(this,Jr,n=document.createElement("span")),n.className="tooltip",n.setAttribute("role","tooltip"),n.id=`alt-text-tooltip-${y(this,Ka).id}`;const i=100,l=y(this,Ka)._uiManager._signal;l.addEventListener("abort",()=>{clearTimeout(y(this,ao)),U(this,ao,null)},{once:!0}),t.addEventListener("mouseenter",()=>{U(this,ao,setTimeout(()=>{U(this,ao,null),y(this,Jr).classList.add("show"),y(this,Ka)._reportTelemetry({action:"alt_text_tooltip"})},i))},{signal:l}),t.addEventListener("mouseleave",()=>{var c;y(this,ao)&&(clearTimeout(y(this,ao)),U(this,ao,null)),(c=y(this,Jr))==null||c.classList.remove("show")},{signal:l})}y(this,Xr)?n.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(n.removeAttribute("data-l10n-id"),n.textContent=y(this,Is)),n.parentNode||t.append(n);const s=y(this,Ka).getImageForAltText();s==null||s.setAttribute("aria-describedby",n.id)},ne(xa,dc,null),Vt(xa,"_l10n",null);let R1=xa;var xv,Ou,Ev,kv,Av,Tv,Mv,Qf,Wi,Nu,fc,Rl,WP,jP,U3;const C_=class C_{constructor({container:t,isPinchingDisabled:n=null,isPinchingStopped:s=null,onPinchStart:a=null,onPinching:o=null,onPinchEnd:r=null,signal:i}){ne(this,Rl);ne(this,xv);ne(this,Ou,!1);ne(this,Ev,null);ne(this,kv);ne(this,Av);ne(this,Tv);ne(this,Mv);ne(this,Qf);ne(this,Wi,null);ne(this,Nu);ne(this,fc,null);U(this,xv,t),U(this,Ev,s),U(this,kv,n),U(this,Av,a),U(this,Tv,o),U(this,Mv,r),U(this,Nu,new AbortController),U(this,Qf,AbortSignal.any([i,y(this,Nu).signal])),t.addEventListener("touchstart",oe(this,Rl,WP).bind(this),{passive:!1,signal:y(this,Qf)})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return cn(this,"MIN_TOUCH_DISTANCE_TO_PINCH",35/(window.devicePixelRatio||1))}destroy(){var t;(t=y(this,Nu))==null||t.abort(),U(this,Nu,null)}};xv=new WeakMap,Ou=new WeakMap,Ev=new WeakMap,kv=new WeakMap,Av=new WeakMap,Tv=new WeakMap,Mv=new WeakMap,Qf=new WeakMap,Wi=new WeakMap,Nu=new WeakMap,fc=new WeakMap,Rl=new WeakSet,WP=function(t){var a,o,r;if((a=y(this,kv))!=null&&a.call(this)||t.touches.length<2)return;if(!y(this,fc)){U(this,fc,new AbortController);const i=AbortSignal.any([y(this,Qf),y(this,fc).signal]),l=y(this,xv),c={signal:i,passive:!1};l.addEventListener("touchmove",oe(this,Rl,jP).bind(this),c),l.addEventListener("touchend",oe(this,Rl,U3).bind(this),c),l.addEventListener("touchcancel",oe(this,Rl,U3).bind(this),c),(o=y(this,Av))==null||o.call(this)}if(yo(t),t.touches.length!==2||(r=y(this,Ev))!=null&&r.call(this)){U(this,Wi,null);return}let[n,s]=t.touches;n.identifier>s.identifier&&([n,s]=[s,n]),U(this,Wi,{touch0X:n.screenX,touch0Y:n.screenY,touch1X:s.screenX,touch1Y:s.screenY})},jP=function(t){var _;if(!y(this,Wi)||t.touches.length!==2)return;let[n,s]=t.touches;n.identifier>s.identifier&&([n,s]=[s,n]);const{screenX:a,screenY:o}=n,{screenX:r,screenY:i}=s,l=y(this,Wi),{touch0X:c,touch0Y:u,touch1X:d,touch1Y:h}=l,p=d-c,v=h-u,m=r-a,g=i-o,b=Math.hypot(m,g)||1,C=Math.hypot(p,v)||1;if(!y(this,Ou)&&Math.abs(C-b)<=C_.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(l.touch0X=a,l.touch0Y=o,l.touch1X=r,l.touch1Y=i,t.preventDefault(),!y(this,Ou)){U(this,Ou,!0);return}const w=[(a+r)/2,(o+i)/2];(_=y(this,Tv))==null||_.call(this,w,C,b)},U3=function(t){var n;y(this,fc).abort(),U(this,fc,null),(n=y(this,Mv))==null||n.call(this),y(this,Wi)&&(t.preventDefault(),U(this,Wi,null),U(this,Ou,!1))};let I1=C_;var $u,ar,Wn,eh,hc,Pv,Du,Ws,Fu,ji,pc,Rv,Bu,oo,Iv,Vu,Ki,ei,th,nh,No,zu,Lv,H1,zt,q3,Ov,G3,bg,KP,UP,Y3,yg,X3,qP,GP,YP,J3,XP,Z3,JP,ZP,QP,Q3,J0;const on=class on{constructor(t){ne(this,zt);ne(this,$u,null);ne(this,ar,null);ne(this,Wn,null);ne(this,eh,!1);ne(this,hc,null);ne(this,Pv,"");ne(this,Du,!1);ne(this,Ws,null);ne(this,Fu,null);ne(this,ji,null);ne(this,pc,null);ne(this,Rv,"");ne(this,Bu,!1);ne(this,oo,null);ne(this,Iv,!1);ne(this,Vu,!1);ne(this,Ki,!1);ne(this,ei,null);ne(this,th,0);ne(this,nh,0);ne(this,No,null);ne(this,zu,null);Vt(this,"_editToolbar",null);Vt(this,"_initialOptions",Object.create(null));Vt(this,"_initialData",null);Vt(this,"_isVisible",!0);Vt(this,"_uiManager",null);Vt(this,"_focusEventsAllowed",!0);ne(this,Lv,!1);ne(this,H1,on._zIndex++);this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null,this._uiManager=t.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null;const{rotation:n,rawDims:{pageWidth:s,pageHeight:a,pageX:o,pageY:r}}=this.parent.viewport;this.rotation=n,this.pageRotation=(360+n-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[s,a],this.pageTranslation=[o,r];const[i,l]=this.parentDimensions;this.x=t.x/i,this.y=t.y/l,this.isAttachedToDOM=!1,this.deleted=!1}static get _resizerKeyboardManager(){const t=on.prototype._resizeWithKeyboard,n=Kd.TRANSLATE_SMALL,s=Kd.TRANSLATE_BIG;return cn(this,"_resizerKeyboardManager",new p2([[["ArrowLeft","mac+ArrowLeft"],t,{args:[-n,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t,{args:[-s,0]}],[["ArrowRight","mac+ArrowRight"],t,{args:[n,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t,{args:[s,0]}],[["ArrowUp","mac+ArrowUp"],t,{args:[0,-n]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t,{args:[0,-s]}],[["ArrowDown","mac+ArrowDown"],t,{args:[0,n]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t,{args:[0,s]}],[["Escape","mac+Escape"],on.prototype._stopResizingWithKeyboard]]))}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get isDrawer(){return!1}static get _defaultLineColor(){return cn(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){const n=new Dbe({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});n.annotationElementId=t.annotationElementId,n.deleted=!0,n._uiManager.addToAnnotationStorage(n)}static initialize(t,n){if(on._l10n??(on._l10n=t),on._l10nResizer||(on._l10nResizer=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"})),on._borderLineWidth!==-1)return;const s=getComputedStyle(document.documentElement);on._borderLineWidth=parseFloat(s.getPropertyValue("--outline-width"))||0}static updateDefaultParams(t,n){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,n){Dn("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return y(this,Lv)}set _isDraggable(t){var n;U(this,Lv,t),(n=this.div)==null||n.classList.toggle("draggable",t)}get isEnterHandled(){return!0}center(){const[t,n]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*n/(t*2),this.y+=this.width*t/(n*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*n/(t*2),this.y-=this.width*t/(n*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=y(this,H1)}setParent(t){t!==null?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):oe(this,zt,J0).call(this),this.parent=t}focusin(t){this._focusEventsAllowed&&(y(this,Bu)?U(this,Bu,!1):this.parent.setSelected(this))}focusout(t){var s;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const n=t.relatedTarget;n!=null&&n.closest(`#${this.id}`)||(t.preventDefault(),(s=this.parent)!=null&&s.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(t,n,s,a){const[o,r]=this.parentDimensions;[s,a]=this.screenToPageTranslation(s,a),this.x=(t+s)/o,this.y=(n+a)/r,this.fixAndSetPosition()}translate(t,n){oe(this,zt,q3).call(this,this.parentDimensions,t,n)}translateInPage(t,n){y(this,oo)||U(this,oo,[this.x,this.y,this.width,this.height]),oe(this,zt,q3).call(this,this.pageDimensions,t,n),this.div.scrollIntoView({block:"nearest"})}drag(t,n){y(this,oo)||U(this,oo,[this.x,this.y,this.width,this.height]);const{div:s,parentDimensions:[a,o]}=this;if(this.x+=t/a,this.y+=n/o,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:d,y:h}=this.div.getBoundingClientRect();this.parent.findNewParent(this,d,h)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:r,y:i}=this;const[l,c]=this.getBaseTranslation();r+=l,i+=c;const{style:u}=s;u.left=`${(100*r).toFixed(2)}%`,u.top=`${(100*i).toFixed(2)}%`,this._onTranslating(r,i),s.scrollIntoView({block:"nearest"})}_onTranslating(t,n){}_onTranslated(t,n){}get _hasBeenMoved(){return!!y(this,oo)&&(y(this,oo)[0]!==this.x||y(this,oo)[1]!==this.y)}get _hasBeenResized(){return!!y(this,oo)&&(y(this,oo)[2]!==this.width||y(this,oo)[3]!==this.height)}getBaseTranslation(){const[t,n]=this.parentDimensions,{_borderLineWidth:s}=on,a=s/t,o=s/n;switch(this.rotation){case 90:return[-a,o];case 180:return[a,o];case 270:return[a,-o];default:return[-a,-o]}}get _mustFixPosition(){return!0}fixAndSetPosition(t=this.rotation){const{div:{style:n},pageDimensions:[s,a]}=this;let{x:o,y:r,width:i,height:l}=this;if(i*=s,l*=a,o*=s,r*=a,this._mustFixPosition)switch(t){case 0:o=Math.max(0,Math.min(s-i,o)),r=Math.max(0,Math.min(a-l,r));break;case 90:o=Math.max(0,Math.min(s-l,o)),r=Math.min(a,Math.max(i,r));break;case 180:o=Math.min(s,Math.max(i,o)),r=Math.min(a,Math.max(l,r));break;case 270:o=Math.min(s,Math.max(l,o)),r=Math.max(0,Math.min(a-i,r));break}this.x=o/=s,this.y=r/=a;const[c,u]=this.getBaseTranslation();o+=c,r+=u,n.left=`${(100*o).toFixed(2)}%`,n.top=`${(100*r).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(t,n){var s;return oe(s=on,Ov,G3).call(s,t,n,this.parentRotation)}pageTranslationToScreen(t,n){var s;return oe(s=on,Ov,G3).call(s,t,n,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:t,pageDimensions:[n,s]}=this;return[n*t,s*t]}setDims(t,n){const[s,a]=this.parentDimensions,{style:o}=this.div;o.width=`${(100*t/s).toFixed(2)}%`,y(this,Du)||(o.height=`${(100*n/a).toFixed(2)}%`)}fixDims(){const{style:t}=this.div,{height:n,width:s}=t,a=s.endsWith("%"),o=!y(this,Du)&&n.endsWith("%");if(a&&o)return;const[r,i]=this.parentDimensions;a||(t.width=`${(100*parseFloat(s)/r).toFixed(2)}%`),!y(this,Du)&&!o&&(t.height=`${(100*parseFloat(n)/i).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}_onResized(){}static _round(t){return Math.round(t*1e4)/1e4}_onResizing(){}altTextFinish(){var t;(t=y(this,Wn))==null||t.finish()}async addEditToolbar(){return this._editToolbar||y(this,Vu)?this._editToolbar:(this._editToolbar=new $3(this),this.div.append(this._editToolbar.render()),y(this,Wn)&&await this._editToolbar.addAltText(y(this,Wn)),this._editToolbar)}removeEditToolbar(){var t;this._editToolbar&&(this._editToolbar.remove(),this._editToolbar=null,(t=y(this,Wn))==null||t.destroy())}addContainer(t){var s;const n=(s=this._editToolbar)==null?void 0:s.div;n?n.before(t):this.div.append(t)}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){y(this,Wn)||(R1.initialize(on._l10n),U(this,Wn,new R1(this)),y(this,$u)&&(y(this,Wn).data=y(this,$u),U(this,$u,null)),await this.addEditToolbar())}get altTextData(){var t;return(t=y(this,Wn))==null?void 0:t.data}set altTextData(t){y(this,Wn)&&(y(this,Wn).data=t)}get guessedAltText(){var t;return(t=y(this,Wn))==null?void 0:t.guessedText}async setGuessedAltText(t){var n;await((n=y(this,Wn))==null?void 0:n.setGuessedText(t))}serializeAltText(t){var n;return(n=y(this,Wn))==null?void 0:n.serialize(t)}hasAltText(){return!!y(this,Wn)&&!y(this,Wn).isEmpty()}hasAltTextData(){var t;return((t=y(this,Wn))==null?void 0:t.hasData())??!1}render(){var o;this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=y(this,eh)?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground(),oe(this,zt,Z3).call(this);const[t,n]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*n/t).toFixed(2)}%`,this.div.style.maxHeight=`${(100*t/n).toFixed(2)}%`);const[s,a]=this.getInitialTranslation();return this.translate(s,a),P1(this,this.div,["pointerdown"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(y(this,zu)||U(this,zu,new I1({container:this.div,isPinchingDisabled:()=>!this.isSelected,onPinchStart:oe(this,zt,qP).bind(this),onPinching:oe(this,zt,GP).bind(this),onPinchEnd:oe(this,zt,YP).bind(this),signal:this._uiManager._signal}))),(o=this._uiManager._editorUndoBar)==null||o.hide(),this.div}pointerdown(t){const{isMac:n}=Ra.platform;if(t.button!==0||t.ctrlKey&&n){t.preventDefault();return}if(U(this,Bu,!0),this._isDraggable){oe(this,zt,XP).call(this,t);return}oe(this,zt,J3).call(this,t)}get isSelected(){return this._uiManager.isSelected(this)}_onStartDragging(){}_onStopDragging(){}moveInDOM(){y(this,ei)&&clearTimeout(y(this,ei)),U(this,ei,setTimeout(()=>{var t;U(this,ei,null),(t=this.parent)==null||t.moveEditorInDOM(this)},0))}_setParentAndPosition(t,n,s){t.changeParent(this),this.x=n,this.y=s,this.fixAndSetPosition(),this._onTranslated()}getRect(t,n,s=this.rotation){const a=this.parentScale,[o,r]=this.pageDimensions,[i,l]=this.pageTranslation,c=t/a,u=n/a,d=this.x*o,h=this.y*r,p=this.width*o,v=this.height*r;switch(s){case 0:return[d+c+i,r-h-u-v+l,d+c+p+i,r-h-u+l];case 90:return[d+u+i,r-h+c+l,d+u+v+i,r-h+c+p+l];case 180:return[d-c-p+i,r-h+u+l,d-c+i,r-h+u+v+l];case 270:return[d-u-v+i,r-h-c-p+l,d-u+i,r-h-c+l];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(t,n){const[s,a,o,r]=t,i=o-s,l=r-a;switch(this.rotation){case 0:return[s,n-r,i,l];case 90:return[s,n-a,l,i];case 180:return[o,n-a,i,l];case 270:return[o,n-r,l,i];default:throw new Error("Invalid rotation")}}onceAdded(t){}isEmpty(){return!1}enableEditMode(){U(this,Vu,!0)}disableEditMode(){U(this,Vu,!1)}isInEditMode(){return y(this,Vu)}shouldGetKeyboardEvents(){return y(this,Ki)}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){const{top:t,left:n,bottom:s,right:a}=this.getClientDimensions(),{innerHeight:o,innerWidth:r}=window;return n<r&&a>0&&t<o&&s>0}rebuild(){oe(this,zt,Z3).call(this)}rotate(t){}resize(){}serializeDeleted(){var t;return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:((t=this._initialData)==null?void 0:t.popupRef)||""}}serialize(t=!1,n=null){Dn("An editor must be serializable")}static async deserialize(t,n,s){const a=new this.prototype.constructor({parent:n,id:n.getNextId(),uiManager:s});a.rotation=t.rotation,U(a,$u,t.accessibilityData);const[o,r]=a.pageDimensions,[i,l,c,u]=a.getRectInCurrentCoords(t.rect,r);return a.x=i/o,a.y=l/r,a.width=c/o,a.height=u/r,a}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){var t,n;if((t=y(this,pc))==null||t.abort(),U(this,pc,null),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),y(this,ei)&&(clearTimeout(y(this,ei)),U(this,ei,null)),oe(this,zt,J0).call(this),this.removeEditToolbar(),y(this,No)){for(const s of y(this,No).values())clearTimeout(s);U(this,No,null)}this.parent=null,(n=y(this,zu))==null||n.destroy(),U(this,zu,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(oe(this,zt,KP).call(this),y(this,Ws).classList.remove("hidden"),P1(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(t){if(!this.isResizable||t.target!==this.div||t.key!=="Enter")return;this._uiManager.setSelected(this),U(this,ji,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const n=y(this,Ws).children;if(!y(this,ar)){U(this,ar,Array.from(n));const r=oe(this,zt,JP).bind(this),i=oe(this,zt,ZP).bind(this),l=this._uiManager._signal;for(const c of y(this,ar)){const u=c.getAttribute("data-resizer-name");c.setAttribute("role","spinbutton"),c.addEventListener("keydown",r,{signal:l}),c.addEventListener("blur",i,{signal:l}),c.addEventListener("focus",oe(this,zt,QP).bind(this,u),{signal:l}),c.setAttribute("data-l10n-id",on._l10nResizer[u])}}const s=y(this,ar)[0];let a=0;for(const r of n){if(r===s)break;a++}const o=(360-this.rotation+this.parentRotation)%360/90*(y(this,ar).length/4);if(o!==a){if(o<a)for(let i=0;i<a-o;i++)y(this,Ws).append(y(this,Ws).firstChild);else if(o>a)for(let i=0;i<o-a;i++)y(this,Ws).firstChild.before(y(this,Ws).lastChild);let r=0;for(const i of n){const c=y(this,ar)[r++].getAttribute("data-resizer-name");i.setAttribute("data-l10n-id",on._l10nResizer[c])}}oe(this,zt,Q3).call(this,0),U(this,Ki,!0),y(this,Ws).firstChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}_resizeWithKeyboard(t,n){y(this,Ki)&&oe(this,zt,X3).call(this,y(this,Rv),{deltaX:t,deltaY:n,fromKeyboard:!0})}_stopResizingWithKeyboard(){oe(this,zt,J0).call(this),this.div.focus()}select(){var t,n,s;if(this.makeResizable(),(t=this.div)==null||t.classList.add("selectedEditor"),!this._editToolbar){this.addEditToolbar().then(()=>{var a,o;(a=this.div)!=null&&a.classList.contains("selectedEditor")&&((o=this._editToolbar)==null||o.show())});return}(n=this._editToolbar)==null||n.show(),(s=y(this,Wn))==null||s.toggleAltTextBadge(!1)}unselect(){var t,n,s,a,o;(t=y(this,Ws))==null||t.classList.add("hidden"),(n=this.div)==null||n.classList.remove("selectedEditor"),(s=this.div)!=null&&s.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),(a=this._editToolbar)==null||a.hide(),(o=y(this,Wn))==null||o.toggleAltTextBadge(!0)}updateParams(t,n){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return y(this,Iv)}set isEditing(t){U(this,Iv,t),this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(t,n){U(this,Du,!0);const s=t/n,{style:a}=this.div;a.aspectRatio=s,a.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(t,n=!1){if(n){y(this,No)||U(this,No,new Map);const{action:s}=t;let a=y(this,No).get(s);a&&clearTimeout(a),a=setTimeout(()=>{this._reportTelemetry(t),y(this,No).delete(s),y(this,No).size===0&&U(this,No,null)},on._telemetryTimeout),y(this,No).set(s,a);return}t.type||(t.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:t}})}show(t=this._isVisible){this.div.classList.toggle("hidden",!t),this._isVisible=t}enable(){this.div&&(this.div.tabIndex=0),U(this,eh,!1)}disable(){this.div&&(this.div.tabIndex=-1),U(this,eh,!0)}renderAnnotationElement(t){let n=t.container.querySelector(".annotationContent");if(!n)n=document.createElement("div"),n.classList.add("annotationContent",this.editorType),t.container.prepend(n);else if(n.nodeName==="CANVAS"){const s=n;n=document.createElement("div"),n.classList.add("annotationContent",this.editorType),s.before(n)}return n}resetAnnotationElement(t){const{firstChild:n}=t.container;(n==null?void 0:n.nodeName)==="DIV"&&n.classList.contains("annotationContent")&&n.remove()}};$u=new WeakMap,ar=new WeakMap,Wn=new WeakMap,eh=new WeakMap,hc=new WeakMap,Pv=new WeakMap,Du=new WeakMap,Ws=new WeakMap,Fu=new WeakMap,ji=new WeakMap,pc=new WeakMap,Rv=new WeakMap,Bu=new WeakMap,oo=new WeakMap,Iv=new WeakMap,Vu=new WeakMap,Ki=new WeakMap,ei=new WeakMap,th=new WeakMap,nh=new WeakMap,No=new WeakMap,zu=new WeakMap,Lv=new WeakMap,H1=new WeakMap,zt=new WeakSet,q3=function([t,n],s,a){[s,a]=this.screenToPageTranslation(s,a),this.x+=s/t,this.y+=a/n,this._onTranslating(this.x,this.y),this.fixAndSetPosition()},Ov=new WeakSet,G3=function(t,n,s){switch(s){case 90:return[n,-t];case 180:return[-t,-n];case 270:return[-n,t];default:return[t,n]}},bg=function(t){switch(t){case 90:{const[n,s]=this.pageDimensions;return[0,-n/s,s/n,0]}case 180:return[-1,0,0,-1];case 270:{const[n,s]=this.pageDimensions;return[0,n/s,-s/n,0]}default:return[1,0,0,1]}},KP=function(){if(y(this,Ws))return;U(this,Ws,document.createElement("div")),y(this,Ws).classList.add("resizers");const t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],n=this._uiManager._signal;for(const s of t){const a=document.createElement("div");y(this,Ws).append(a),a.classList.add("resizer",s),a.setAttribute("data-resizer-name",s),a.addEventListener("pointerdown",oe(this,zt,UP).bind(this,s),{signal:n}),a.addEventListener("contextmenu",Tr,{signal:n}),a.tabIndex=-1}this.div.prepend(y(this,Ws))},UP=function(t,n){var u;n.preventDefault();const{isMac:s}=Ra.platform;if(n.button!==0||n.ctrlKey&&s)return;(u=y(this,Wn))==null||u.toggle(!1);const a=this._isDraggable;this._isDraggable=!1,U(this,Fu,[n.screenX,n.screenY]);const o=new AbortController,r=this._uiManager.combinedSignal(o);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",oe(this,zt,X3).bind(this,t),{passive:!0,capture:!0,signal:r}),window.addEventListener("touchmove",yo,{passive:!1,signal:r}),window.addEventListener("contextmenu",Tr,{signal:r}),U(this,ji,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const i=this.parent.div.style.cursor,l=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(n.target).cursor;const c=()=>{var d;o.abort(),this.parent.togglePointerEvents(!0),(d=y(this,Wn))==null||d.toggle(!0),this._isDraggable=a,this.parent.div.style.cursor=i,this.div.style.cursor=l,oe(this,zt,yg).call(this)};window.addEventListener("pointerup",c,{signal:r}),window.addEventListener("blur",c,{signal:r})},Y3=function(t,n,s,a){this.width=s,this.height=a,this.x=t,this.y=n;const[o,r]=this.parentDimensions;this.setDims(o*s,r*a),this.fixAndSetPosition(),this._onResized()},yg=function(){if(!y(this,ji))return;const{savedX:t,savedY:n,savedWidth:s,savedHeight:a}=y(this,ji);U(this,ji,null);const o=this.x,r=this.y,i=this.width,l=this.height;o===t&&r===n&&i===s&&l===a||this.addCommands({cmd:oe(this,zt,Y3).bind(this,o,r,i,l),undo:oe(this,zt,Y3).bind(this,t,n,s,a),mustExec:!0})},X3=function(t,n){const[s,a]=this.parentDimensions,o=this.x,r=this.y,i=this.width,l=this.height,c=on.MIN_SIZE/s,u=on.MIN_SIZE/a,d=oe(this,zt,bg).call(this,this.rotation),h=(Y,O)=>[d[0]*Y+d[2]*O,d[1]*Y+d[3]*O],p=oe(this,zt,bg).call(this,360-this.rotation),v=(Y,O)=>[p[0]*Y+p[2]*O,p[1]*Y+p[3]*O];let m,g,b=!1,C=!1;switch(t){case"topLeft":b=!0,m=(Y,O)=>[0,0],g=(Y,O)=>[Y,O];break;case"topMiddle":m=(Y,O)=>[Y/2,0],g=(Y,O)=>[Y/2,O];break;case"topRight":b=!0,m=(Y,O)=>[Y,0],g=(Y,O)=>[0,O];break;case"middleRight":C=!0,m=(Y,O)=>[Y,O/2],g=(Y,O)=>[0,O/2];break;case"bottomRight":b=!0,m=(Y,O)=>[Y,O],g=(Y,O)=>[0,0];break;case"bottomMiddle":m=(Y,O)=>[Y/2,O],g=(Y,O)=>[Y/2,0];break;case"bottomLeft":b=!0,m=(Y,O)=>[0,O],g=(Y,O)=>[Y,0];break;case"middleLeft":C=!0,m=(Y,O)=>[0,O/2],g=(Y,O)=>[Y,O/2];break}const w=m(i,l),_=g(i,l);let x=h(..._);const E=on._round(o+x[0]),T=on._round(r+x[1]);let R=1,I=1,M,$;if(n.fromKeyboard)({deltaX:M,deltaY:$}=n);else{const{screenX:Y,screenY:O}=n,[N,V]=y(this,Fu);[M,$]=this.screenToPageTranslation(Y-N,O-V),y(this,Fu)[0]=Y,y(this,Fu)[1]=O}if([M,$]=v(M/s,$/a),b){const Y=Math.hypot(i,l);R=I=Math.max(Math.min(Math.hypot(_[0]-w[0]-M,_[1]-w[1]-$)/Y,1/i,1/l),c/i,u/l)}else C?R=Math.max(c,Math.min(1,Math.abs(_[0]-w[0]-M)))/i:I=Math.max(u,Math.min(1,Math.abs(_[1]-w[1]-$)))/l;const L=on._round(i*R),B=on._round(l*I);x=h(...g(L,B));const q=E-x[0],J=T-x[1];y(this,oo)||U(this,oo,[this.x,this.y,this.width,this.height]),this.width=L,this.height=B,this.x=q,this.y=J,this.setDims(s*L,a*B),this.fixAndSetPosition(),this._onResizing()},qP=function(){var t;U(this,ji,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height}),(t=y(this,Wn))==null||t.toggle(!1),this.parent.togglePointerEvents(!1)},GP=function(t,n,s){let o=.7*(s/n)+1-.7;if(o===1)return;const r=oe(this,zt,bg).call(this,this.rotation),i=(E,T)=>[r[0]*E+r[2]*T,r[1]*E+r[3]*T],[l,c]=this.parentDimensions,u=this.x,d=this.y,h=this.width,p=this.height,v=on.MIN_SIZE/l,m=on.MIN_SIZE/c;o=Math.max(Math.min(o,1/h,1/p),v/h,m/p);const g=on._round(h*o),b=on._round(p*o);if(g===h&&b===p)return;y(this,oo)||U(this,oo,[u,d,h,p]);const C=i(h/2,p/2),w=on._round(u+C[0]),_=on._round(d+C[1]),x=i(g/2,b/2);this.x=w-x[0],this.y=_-x[1],this.width=g,this.height=b,this.setDims(l*g,c*b),this.fixAndSetPosition(),this._onResizing()},YP=function(){var t;(t=y(this,Wn))==null||t.toggle(!0),this.parent.togglePointerEvents(!0),oe(this,zt,yg).call(this)},J3=function(t){const{isMac:n}=Ra.platform;t.ctrlKey&&!n||t.shiftKey||t.metaKey&&n?this.parent.toggleSelected(this):this.parent.setSelected(this)},XP=function(t){const{isSelected:n}=this;this._uiManager.setUpDragSession();let s=!1;const a=new AbortController,o=this._uiManager.combinedSignal(a),r={capture:!0,passive:!1,signal:o},i=c=>{a.abort(),U(this,hc,null),U(this,Bu,!1),this._uiManager.endDragSession()||oe(this,zt,J3).call(this,c),s&&this._onStopDragging()};n&&(U(this,th,t.clientX),U(this,nh,t.clientY),U(this,hc,t.pointerId),U(this,Pv,t.pointerType),window.addEventListener("pointermove",c=>{s||(s=!0,this._onStartDragging());const{clientX:u,clientY:d,pointerId:h}=c;if(h!==y(this,hc)){yo(c);return}const[p,v]=this.screenToPageTranslation(u-y(this,th),d-y(this,nh));U(this,th,u),U(this,nh,d),this._uiManager.dragSelectedEditors(p,v)},r),window.addEventListener("touchmove",yo,r),window.addEventListener("pointerdown",c=>{c.pointerType===y(this,Pv)&&(y(this,zu)||c.isPrimary)&&i(c),yo(c)},r));const l=c=>{if(!y(this,hc)||y(this,hc)===c.pointerId){i(c);return}yo(c)};window.addEventListener("pointerup",l,{signal:o}),window.addEventListener("blur",l,{signal:o})},Z3=function(){if(y(this,pc)||!this.div)return;U(this,pc,new AbortController);const t=this._uiManager.combinedSignal(y(this,pc));this.div.addEventListener("focusin",this.focusin.bind(this),{signal:t}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:t})},JP=function(t){on._resizerKeyboardManager.exec(this,t)},ZP=function(t){var n;y(this,Ki)&&((n=t.relatedTarget)==null?void 0:n.parentNode)!==y(this,Ws)&&oe(this,zt,J0).call(this)},QP=function(t){U(this,Rv,y(this,Ki)?t:"")},Q3=function(t){if(y(this,ar))for(const n of y(this,ar))n.tabIndex=t},J0=function(){U(this,Ki,!1),oe(this,zt,Q3).call(this,-1),oe(this,zt,yg).call(this)},ne(on,Ov),Vt(on,"_l10n",null),Vt(on,"_l10nResizer",null),Vt(on,"_borderLineWidth",-1),Vt(on,"_colorManager",new B3),Vt(on,"_zIndex",1),Vt(on,"_telemetryTimeout",1e3);let es=on;class Dbe extends es{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}}const kx=3285377520,Io=4294901760,zr=65535;class eR{constructor(t){this.h1=t?t&4294967295:kx,this.h2=t?t&4294967295:kx}update(t){let n,s;if(typeof t=="string"){n=new Uint8Array(t.length*2),s=0;for(let m=0,g=t.length;m<g;m++){const b=t.charCodeAt(m);b<=255?n[s++]=b:(n[s++]=b>>>8,n[s++]=b&255)}}else if(ArrayBuffer.isView(t))n=t.slice(),s=n.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const a=s>>2,o=s-a*4,r=new Uint32Array(n.buffer,0,a);let i=0,l=0,c=this.h1,u=this.h2;const d=3432918353,h=461845907,p=d&zr,v=h&zr;for(let m=0;m<a;m++)m&1?(i=r[m],i=i*d&Io|i*p&zr,i=i<<15|i>>>17,i=i*h&Io|i*v&zr,c^=i,c=c<<13|c>>>19,c=c*5+3864292196):(l=r[m],l=l*d&Io|l*p&zr,l=l<<15|l>>>17,l=l*h&Io|l*v&zr,u^=l,u=u<<13|u>>>19,u=u*5+3864292196);switch(i=0,o){case 3:i^=n[a*4+2]<<16;case 2:i^=n[a*4+1]<<8;case 1:i^=n[a*4],i=i*d&Io|i*p&zr,i=i<<15|i>>>17,i=i*h&Io|i*v&zr,a&1?c^=i:u^=i}this.h1=c,this.h2=u}hexdigest(){let t=this.h1,n=this.h2;return t^=n>>>1,t=t*3981806797&Io|t*36045&zr,n=n*4283543511&Io|((n<<16|t>>>16)*2950163797&Io)>>>16,t^=n>>>1,t=t*444984403&Io|t*60499&zr,n=n*3301882366&Io|((n<<16|t>>>16)*3120437893&Io)>>>16,t^=n>>>1,(t>>>0).toString(16).padStart(8,"0")+(n>>>0).toString(16).padStart(8,"0")}}const e6=Object.freeze({map:null,hash:"",transfer:void 0});var Hu,Wu,Ls,W1,tR;class g_{constructor(){ne(this,W1);ne(this,Hu,!1);ne(this,Wu,null);ne(this,Ls,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(t,n){const s=y(this,Ls).get(t);return s===void 0?n:Object.assign(n,s)}getRawValue(t){return y(this,Ls).get(t)}remove(t){if(y(this,Ls).delete(t),y(this,Ls).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const n of y(this,Ls).values())if(n instanceof es)return;this.onAnnotationEditor(null)}}setValue(t,n){const s=y(this,Ls).get(t);let a=!1;if(s!==void 0)for(const[o,r]of Object.entries(n))s[o]!==r&&(a=!0,s[o]=r);else a=!0,y(this,Ls).set(t,n);a&&oe(this,W1,tR).call(this),n instanceof es&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(n.constructor._type)}has(t){return y(this,Ls).has(t)}getAll(){return y(this,Ls).size>0?d_(y(this,Ls)):null}setAll(t){for(const[n,s]of Object.entries(t))this.setValue(n,s)}get size(){return y(this,Ls).size}resetModified(){y(this,Hu)&&(U(this,Hu,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new nR(this)}get serializable(){if(y(this,Ls).size===0)return e6;const t=new Map,n=new eR,s=[],a=Object.create(null);let o=!1;for(const[r,i]of y(this,Ls)){const l=i instanceof es?i.serialize(!1,a):i;l&&(t.set(r,l),n.update(`${r}:${JSON.stringify(l)}`),o||(o=!!l.bitmap))}if(o)for(const r of t.values())r.bitmap&&s.push(r.bitmap);return t.size>0?{map:t,hash:n.hexdigest(),transfer:s}:e6}get editorStats(){let t=null;const n=new Map;for(const s of y(this,Ls).values()){if(!(s instanceof es))continue;const a=s.telemetryFinalData;if(!a)continue;const{type:o}=a;n.has(o)||n.set(o,Object.getPrototypeOf(s).constructor),t||(t=Object.create(null));const r=t[o]||(t[o]=new Map);for(const[i,l]of Object.entries(a)){if(i==="type")continue;let c=r.get(i);c||(c=new Map,r.set(i,c));const u=c.get(l)??0;c.set(l,u+1)}}for(const[s,a]of n)t[s]=a.computeTelemetryFinalData(t[s]);return t}resetModifiedIds(){U(this,Wu,null)}get modifiedIds(){if(y(this,Wu))return y(this,Wu);const t=[];for(const n of y(this,Ls).values())!(n instanceof es)||!n.annotationElementId||!n.serialize()||t.push(n.annotationElementId);return U(this,Wu,{ids:new Set(t),hash:t.join(",")})}}Hu=new WeakMap,Wu=new WeakMap,Ls=new WeakMap,W1=new WeakSet,tR=function(){y(this,Hu)||(U(this,Hu,!0),typeof this.onSetModified=="function"&&this.onSetModified())};var Nv;class nR extends g_{constructor(n){super();ne(this,Nv);const{map:s,hash:a,transfer:o}=n.serializable,r=structuredClone(s,o?{transfer:o}:null);U(this,Nv,{map:r,hash:a,transfer:o})}get print(){Dn("Should not call PrintAnnotationStorage.print")}get serializable(){return y(this,Nv)}get modifiedIds(){return cn(this,"modifiedIds",{ids:new Set,hash:""})}}Nv=new WeakMap;var sh;class Fbe{constructor({ownerDocument:t=globalThis.document,styleElement:n=null}){ne(this,sh,new Set);this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}insertRule(t){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const n=this.styleElement.sheet;n.insertRule(t,n.cssRules.length)}clear(){for(const t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.clear(),y(this,sh).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:t,_inspectFont:n}){if(!(!t||y(this,sh).has(t.loadedName))){if(hs(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:s,src:a,style:o}=t,r=new FontFace(s,a,o);this.addNativeFontFace(r);try{await r.load(),y(this,sh).add(s),n==null||n(t)}catch{sn(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(r)}return}Dn("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo){await this.loadSystemFont(t);return}if(this.isFontLoadingAPISupported){const s=t.createNativeFontFace();if(s){this.addNativeFontFace(s);try{await s.loaded}catch(a){throw sn(`Failed to load font '${s.family}': '${a}'.`),t.disableFontFace=!0,a}}return}const n=t.createFontFaceRule();if(n){if(this.insertRule(n),this.isSyncFontLoadingSupported)return;await new Promise(s=>{const a=this._queueLoadingCallback(s);this._prepareFontLoadEvent(t,a)})}}get isFontLoadingAPISupported(){var n;const t=!!((n=this._document)!=null&&n.fonts);return cn(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let t=!1;return(ma||typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.userAgent)=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(t=!0),cn(this,"isSyncFontLoadingSupported",t)}_queueLoadingCallback(t){function n(){for(hs(!a.done,"completeRequest() cannot be called twice."),a.done=!0;s.length>0&&s[0].done;){const o=s.shift();setTimeout(o.callback,0)}}const{loadingRequests:s}=this,a={done:!1,complete:n,callback:t};return s.push(a),a}get _loadTestFont(){const t=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return cn(this,"_loadTestFont",t)}_prepareFontLoadEvent(t,n){function s(_,x){return _.charCodeAt(x)<<24|_.charCodeAt(x+1)<<16|_.charCodeAt(x+2)<<8|_.charCodeAt(x+3)&255}function a(_,x,E,T){const R=_.substring(0,x),I=_.substring(x+E);return R+T+I}let o,r;const i=this._document.createElement("canvas");i.width=1,i.height=1;const l=i.getContext("2d");let c=0;function u(_,x){if(++c>30){sn("Load test font never loaded."),x();return}if(l.font="30px "+_,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0){x();return}setTimeout(u.bind(null,_,x))}const d=`lt${Date.now()}${this.loadTestFontId++}`;let h=this._loadTestFont;h=a(h,976,d.length,d);const v=16,m=1482184792;let g=s(h,v);for(o=0,r=d.length-3;o<r;o+=4)g=g-m+s(d,o)|0;o<d.length&&(g=g-m+s(d+"XXX",o)|0),h=a(h,v,4,Sbe(g));const b=`url(data:font/opentype;base64,${btoa(h)});`,C=`@font-face {font-family:"${d}";src:${b}}`;this.insertRule(C);const w=this._document.createElement("div");w.style.visibility="hidden",w.style.width=w.style.height="10px",w.style.position="absolute",w.style.top=w.style.left="0px";for(const _ of[t.loadedName,d]){const x=this._document.createElement("span");x.textContent="Hi",x.style.fontFamily=_,w.append(x)}this._document.body.append(w),u(d,()=>{w.remove(),n.complete()})}}sh=new WeakMap;class Bbe{constructor(t,{disableFontFace:n=!1,fontExtraProperties:s=!1,inspectFont:a=null}){this.compiledGlyphs=Object.create(null);for(const o in t)this[o]=t[o];this.disableFontFace=n===!0,this.fontExtraProperties=s===!0,this._inspectFont=a}createNativeFontFace(){var n;if(!this.data||this.disableFontFace)return null;let t;if(!this.cssFontInfo)t=new FontFace(this.loadedName,this.data,{});else{const s={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(s.style=`oblique ${this.cssFontInfo.italicAngle}deg`),t=new FontFace(this.cssFontInfo.fontFamily,this.data,s)}return(n=this._inspectFont)==null||n.call(this,this),t}createFontFaceRule(){var s;if(!this.data||this.disableFontFace)return null;const t=`url(data:${this.mimetype};base64,${Mbe(this.data)});`;let n;if(!this.cssFontInfo)n=`@font-face {font-family:"${this.loadedName}";src:${t}}`;else{let a=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(a+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${a}src:${t}}`}return(s=this._inspectFont)==null||s.call(this,this,t),n}getPathGenerator(t,n){if(this.compiledGlyphs[n]!==void 0)return this.compiledGlyphs[n];const s=this.loadedName+"_path_"+n;let a;try{a=t.get(s)}catch(r){sn(`getPathGenerator - ignoring character: "${r}".`)}const o=new Path2D(a||"");return this.fontExtraProperties||t.delete(s),this.compiledGlyphs[n]=o}}const V2={DATA:1,ERROR:2},ds={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function Ax(){}function Wa(e){if(e instanceof Uc||e instanceof L3||e instanceof rv||e instanceof Sx||e instanceof M1||e instanceof ny)return e;switch(e instanceof Error||typeof e=="object"&&e!==null||Dn('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new Uc(e.message);case"InvalidPDFException":return new L3(e.message);case"MissingPDFException":return new rv(e.message);case"PasswordException":return new Sx(e.message,e.code);case"UnexpectedResponseException":return new M1(e.message,e.status);case"UnknownErrorException":return new ny(e.message,e.details)}return new ny(e.message,e.toString())}var ah,Uo,sR,aR,oR,wg;class Z0{constructor(t,n,s){ne(this,Uo);ne(this,ah,new AbortController);this.sourceName=t,this.targetName=n,this.comObj=s,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),s.addEventListener("message",oe(this,Uo,sR).bind(this),{signal:y(this,ah).signal})}on(t,n){const s=this.actionHandler;if(s[t])throw new Error(`There is already an actionName called "${t}"`);s[t]=n}send(t,n,s){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:n},s)}sendWithPromise(t,n,s){const a=this.callbackId++,o=Promise.withResolvers();this.callbackCapabilities[a]=o;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:a,data:n},s)}catch(r){o.reject(r)}return o.promise}sendWithStream(t,n,s,a){const o=this.streamId++,r=this.sourceName,i=this.targetName,l=this.comObj;return new ReadableStream({start:c=>{const u=Promise.withResolvers();return this.streamControllers[o]={controller:c,startCall:u,pullCall:null,cancelCall:null,isClosed:!1},l.postMessage({sourceName:r,targetName:i,action:t,streamId:o,data:n,desiredSize:c.desiredSize},a),u.promise},pull:c=>{const u=Promise.withResolvers();return this.streamControllers[o].pullCall=u,l.postMessage({sourceName:r,targetName:i,stream:ds.PULL,streamId:o,desiredSize:c.desiredSize}),u.promise},cancel:c=>{hs(c instanceof Error,"cancel must have a valid reason");const u=Promise.withResolvers();return this.streamControllers[o].cancelCall=u,this.streamControllers[o].isClosed=!0,l.postMessage({sourceName:r,targetName:i,stream:ds.CANCEL,streamId:o,reason:Wa(c)}),u.promise}},s)}destroy(){var t;(t=y(this,ah))==null||t.abort(),U(this,ah,null)}}ah=new WeakMap,Uo=new WeakSet,sR=function({data:t}){if(t.targetName!==this.sourceName)return;if(t.stream){oe(this,Uo,oR).call(this,t);return}if(t.callback){const s=t.callbackId,a=this.callbackCapabilities[s];if(!a)throw new Error(`Cannot resolve callback ${s}`);if(delete this.callbackCapabilities[s],t.callback===V2.DATA)a.resolve(t.data);else if(t.callback===V2.ERROR)a.reject(Wa(t.reason));else throw new Error("Unexpected callback case");return}const n=this.actionHandler[t.action];if(!n)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const s=this.sourceName,a=t.sourceName,o=this.comObj;Promise.try(n,t.data).then(function(r){o.postMessage({sourceName:s,targetName:a,callback:V2.DATA,callbackId:t.callbackId,data:r})},function(r){o.postMessage({sourceName:s,targetName:a,callback:V2.ERROR,callbackId:t.callbackId,reason:Wa(r)})});return}if(t.streamId){oe(this,Uo,aR).call(this,t);return}n(t.data)},aR=function(t){const n=t.streamId,s=this.sourceName,a=t.sourceName,o=this.comObj,r=this,i=this.actionHandler[t.action],l={enqueue(c,u=1,d){if(this.isCancelled)return;const h=this.desiredSize;this.desiredSize-=u,h>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),o.postMessage({sourceName:s,targetName:a,stream:ds.ENQUEUE,streamId:n,chunk:c},d)},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:s,targetName:a,stream:ds.CLOSE,streamId:n}),delete r.streamSinks[n])},error(c){hs(c instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,o.postMessage({sourceName:s,targetName:a,stream:ds.ERROR,streamId:n,reason:Wa(c)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[n]=l,Promise.try(i,t.data,l).then(function(){o.postMessage({sourceName:s,targetName:a,stream:ds.START_COMPLETE,streamId:n,success:!0})},function(c){o.postMessage({sourceName:s,targetName:a,stream:ds.START_COMPLETE,streamId:n,reason:Wa(c)})})},oR=function(t){const n=t.streamId,s=this.sourceName,a=t.sourceName,o=this.comObj,r=this.streamControllers[n],i=this.streamSinks[n];switch(t.stream){case ds.START_COMPLETE:t.success?r.startCall.resolve():r.startCall.reject(Wa(t.reason));break;case ds.PULL_COMPLETE:t.success?r.pullCall.resolve():r.pullCall.reject(Wa(t.reason));break;case ds.PULL:if(!i){o.postMessage({sourceName:s,targetName:a,stream:ds.PULL_COMPLETE,streamId:n,success:!0});break}i.desiredSize<=0&&t.desiredSize>0&&i.sinkCapability.resolve(),i.desiredSize=t.desiredSize,Promise.try(i.onPull||Ax).then(function(){o.postMessage({sourceName:s,targetName:a,stream:ds.PULL_COMPLETE,streamId:n,success:!0})},function(c){o.postMessage({sourceName:s,targetName:a,stream:ds.PULL_COMPLETE,streamId:n,reason:Wa(c)})});break;case ds.ENQUEUE:if(hs(r,"enqueue should have stream controller"),r.isClosed)break;r.controller.enqueue(t.chunk);break;case ds.CLOSE:if(hs(r,"close should have stream controller"),r.isClosed)break;r.isClosed=!0,r.controller.close(),oe(this,Uo,wg).call(this,r,n);break;case ds.ERROR:hs(r,"error should have stream controller"),r.controller.error(Wa(t.reason)),oe(this,Uo,wg).call(this,r,n);break;case ds.CANCEL_COMPLETE:t.success?r.cancelCall.resolve():r.cancelCall.reject(Wa(t.reason)),oe(this,Uo,wg).call(this,r,n);break;case ds.CANCEL:if(!i)break;const l=Wa(t.reason);Promise.try(i.onCancel||Ax,l).then(function(){o.postMessage({sourceName:s,targetName:a,stream:ds.CANCEL_COMPLETE,streamId:n,success:!0})},function(c){o.postMessage({sourceName:s,targetName:a,stream:ds.CANCEL_COMPLETE,streamId:n,reason:Wa(c)})}),i.sinkCapability.reject(l),i.isCancelled=!0,delete this.streamSinks[n];break;default:throw new Error("Unexpected stream case")}},wg=async function(t,n){var s,a,o;await Promise.allSettled([(s=t.startCall)==null?void 0:s.promise,(a=t.pullCall)==null?void 0:a.promise,(o=t.cancelCall)==null?void 0:o.promise]),delete this.streamControllers[n]};var $v;class rR{constructor({enableHWA:t=!1}){ne(this,$v,!1);U(this,$v,t)}create(t,n){if(t<=0||n<=0)throw new Error("Invalid canvas size");const s=this._createCanvas(t,n);return{canvas:s,context:s.getContext("2d",{willReadFrequently:!y(this,$v)})}}reset(t,n,s){if(!t.canvas)throw new Error("Canvas is not specified");if(n<=0||s<=0)throw new Error("Invalid canvas size");t.canvas.width=n,t.canvas.height=s}destroy(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}_createCanvas(t,n){Dn("Abstract method `_createCanvas` called.")}}$v=new WeakMap;class Vbe extends rR{constructor({ownerDocument:t=globalThis.document,enableHWA:n=!1}){super({enableHWA:n}),this._document=t}_createCanvas(t,n){const s=this._document.createElement("canvas");return s.width=t,s.height=n,s}}class iR{constructor({baseUrl:t=null,isCompressed:n=!0}){this.baseUrl=t,this.isCompressed=n}async fetch({name:t}){if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!t)throw new Error("CMap name must be specified.");const n=this.baseUrl+t+(this.isCompressed?".bcmap":"");return this._fetch(n).then(s=>({cMapData:s,isCompressed:this.isCompressed})).catch(s=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${n}`)})}async _fetch(t){Dn("Abstract method `_fetch` called.")}}class lR extends iR{async _fetch(t){const n=await e4(t,this.isCompressed?"arraybuffer":"text");return n instanceof ArrayBuffer?new Uint8Array(n):Qb(n)}}class cR{addFilter(t){return"none"}addHCMFilter(t,n){return"none"}addAlphaFilter(t){return"none"}addLuminosityFilter(t){return"none"}addHighlightHCMFilter(t,n,s,a,o){return"none"}destroy(t=!1){}}var ju,oh,Ui,qi,oa,Ku,Uu,xt,na,Q0,mf,_g,gf,uR,t6,bf,ep,tp,n6,np;class zbe extends cR{constructor({docId:n,ownerDocument:s=globalThis.document}){super();ne(this,xt);ne(this,ju);ne(this,oh);ne(this,Ui);ne(this,qi);ne(this,oa);ne(this,Ku);ne(this,Uu,0);U(this,qi,n),U(this,oa,s)}addFilter(n){if(!n)return"none";let s=y(this,xt,na).get(n);if(s)return s;const[a,o,r]=oe(this,xt,_g).call(this,n),i=n.length===1?a:`${a}${o}${r}`;if(s=y(this,xt,na).get(i),s)return y(this,xt,na).set(n,s),s;const l=`g_${y(this,qi)}_transfer_map_${wa(this,Uu)._++}`,c=oe(this,xt,gf).call(this,l);y(this,xt,na).set(n,c),y(this,xt,na).set(i,c);const u=oe(this,xt,bf).call(this,l);return oe(this,xt,tp).call(this,a,o,r,u),c}addHCMFilter(n,s){var v;const a=`${n}-${s}`,o="base";let r=y(this,xt,Q0).get(o);if((r==null?void 0:r.key)===a||(r?((v=r.filter)==null||v.remove(),r.key=a,r.url="none",r.filter=null):(r={key:a,url:"none",filter:null},y(this,xt,Q0).set(o,r)),!n||!s))return r.url;const i=oe(this,xt,np).call(this,n);n=Nt.makeHexColor(...i);const l=oe(this,xt,np).call(this,s);if(s=Nt.makeHexColor(...l),y(this,xt,mf).style.color="",n==="#000000"&&s==="#ffffff"||n===s)return r.url;const c=new Array(256);for(let m=0;m<=255;m++){const g=m/255;c[m]=g<=.03928?g/12.92:((g+.055)/1.055)**2.4}const u=c.join(","),d=`g_${y(this,qi)}_hcm_filter`,h=r.filter=oe(this,xt,bf).call(this,d);oe(this,xt,tp).call(this,u,u,u,h),oe(this,xt,t6).call(this,h);const p=(m,g)=>{const b=i[m]/255,C=l[m]/255,w=new Array(g+1);for(let _=0;_<=g;_++)w[_]=b+_/g*(C-b);return w.join(",")};return oe(this,xt,tp).call(this,p(0,5),p(1,5),p(2,5),h),r.url=oe(this,xt,gf).call(this,d),r.url}addAlphaFilter(n){let s=y(this,xt,na).get(n);if(s)return s;const[a]=oe(this,xt,_g).call(this,[n]),o=`alpha_${a}`;if(s=y(this,xt,na).get(o),s)return y(this,xt,na).set(n,s),s;const r=`g_${y(this,qi)}_alpha_map_${wa(this,Uu)._++}`,i=oe(this,xt,gf).call(this,r);y(this,xt,na).set(n,i),y(this,xt,na).set(o,i);const l=oe(this,xt,bf).call(this,r);return oe(this,xt,n6).call(this,a,l),i}addLuminosityFilter(n){let s=y(this,xt,na).get(n||"luminosity");if(s)return s;let a,o;if(n?([a]=oe(this,xt,_g).call(this,[n]),o=`luminosity_${a}`):o="luminosity",s=y(this,xt,na).get(o),s)return y(this,xt,na).set(n,s),s;const r=`g_${y(this,qi)}_luminosity_map_${wa(this,Uu)._++}`,i=oe(this,xt,gf).call(this,r);y(this,xt,na).set(n,i),y(this,xt,na).set(o,i);const l=oe(this,xt,bf).call(this,r);return oe(this,xt,uR).call(this,l),n&&oe(this,xt,n6).call(this,a,l),i}addHighlightHCMFilter(n,s,a,o,r){var C;const i=`${s}-${a}-${o}-${r}`;let l=y(this,xt,Q0).get(n);if((l==null?void 0:l.key)===i||(l?((C=l.filter)==null||C.remove(),l.key=i,l.url="none",l.filter=null):(l={key:i,url:"none",filter:null},y(this,xt,Q0).set(n,l)),!s||!a))return l.url;const[c,u]=[s,a].map(oe(this,xt,np).bind(this));let d=Math.round(.2126*c[0]+.7152*c[1]+.0722*c[2]),h=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),[p,v]=[o,r].map(oe(this,xt,np).bind(this));h<d&&([d,h,p,v]=[h,d,v,p]),y(this,xt,mf).style.color="";const m=(w,_,x)=>{const E=new Array(256),T=(h-d)/x,R=w/255,I=(_-w)/(255*x);let M=0;for(let $=0;$<=x;$++){const L=Math.round(d+$*T),B=R+$*I;for(let q=M;q<=L;q++)E[q]=B;M=L+1}for(let $=M;$<256;$++)E[$]=E[M-1];return E.join(",")},g=`g_${y(this,qi)}_hcm_${n}_filter`,b=l.filter=oe(this,xt,bf).call(this,g);return oe(this,xt,t6).call(this,b),oe(this,xt,tp).call(this,m(p[0],v[0],5),m(p[1],v[1],5),m(p[2],v[2],5),b),l.url=oe(this,xt,gf).call(this,g),l.url}destroy(n=!1){var s,a,o,r;n&&((s=y(this,Ku))!=null&&s.size)||((a=y(this,Ui))==null||a.parentNode.parentNode.remove(),U(this,Ui,null),(o=y(this,oh))==null||o.clear(),U(this,oh,null),(r=y(this,Ku))==null||r.clear(),U(this,Ku,null),U(this,Uu,0))}}ju=new WeakMap,oh=new WeakMap,Ui=new WeakMap,qi=new WeakMap,oa=new WeakMap,Ku=new WeakMap,Uu=new WeakMap,xt=new WeakSet,na=function(){return y(this,oh)||U(this,oh,new Map)},Q0=function(){return y(this,Ku)||U(this,Ku,new Map)},mf=function(){if(!y(this,Ui)){const n=y(this,oa).createElement("div"),{style:s}=n;s.visibility="hidden",s.contain="strict",s.width=s.height=0,s.position="absolute",s.top=s.left=0,s.zIndex=-1;const a=y(this,oa).createElementNS(Ri,"svg");a.setAttribute("width",0),a.setAttribute("height",0),U(this,Ui,y(this,oa).createElementNS(Ri,"defs")),n.append(a),a.append(y(this,Ui)),y(this,oa).body.append(n)}return y(this,Ui)},_g=function(n){if(n.length===1){const c=n[0],u=new Array(256);for(let h=0;h<256;h++)u[h]=c[h]/255;const d=u.join(",");return[d,d,d]}const[s,a,o]=n,r=new Array(256),i=new Array(256),l=new Array(256);for(let c=0;c<256;c++)r[c]=s[c]/255,i[c]=a[c]/255,l[c]=o[c]/255;return[r.join(","),i.join(","),l.join(",")]},gf=function(n){if(y(this,ju)===void 0){U(this,ju,"");const s=y(this,oa).URL;s!==y(this,oa).baseURI&&(t4(s)?sn('#createUrl: ignore "data:"-URL for performance reasons.'):U(this,ju,s.split("#",1)[0]))}return`url(${y(this,ju)}#${n})`},uR=function(n){const s=y(this,oa).createElementNS(Ri,"feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),n.append(s)},t6=function(n){const s=y(this,oa).createElementNS(Ri,"feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),n.append(s)},bf=function(n){const s=y(this,oa).createElementNS(Ri,"filter");return s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("id",n),y(this,xt,mf).append(s),s},ep=function(n,s,a){const o=y(this,oa).createElementNS(Ri,s);o.setAttribute("type","discrete"),o.setAttribute("tableValues",a),n.append(o)},tp=function(n,s,a,o){const r=y(this,oa).createElementNS(Ri,"feComponentTransfer");o.append(r),oe(this,xt,ep).call(this,r,"feFuncR",n),oe(this,xt,ep).call(this,r,"feFuncG",s),oe(this,xt,ep).call(this,r,"feFuncB",a)},n6=function(n,s){const a=y(this,oa).createElementNS(Ri,"feComponentTransfer");s.append(a),oe(this,xt,ep).call(this,a,"feFuncA",n)},np=function(n){return y(this,xt,mf).style.color=n,m_(getComputedStyle(y(this,xt,mf)).getPropertyValue("color"))};class dR{constructor({baseUrl:t=null}){this.baseUrl=t}async fetch({filename:t}){if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!t)throw new Error("Font filename must be specified.");const n=`${this.baseUrl}${t}`;return this._fetch(n).catch(s=>{throw new Error(`Unable to load font data at: ${n}`)})}async _fetch(t){Dn("Abstract method `_fetch` called.")}}class fR extends dR{async _fetch(t){const n=await e4(t,"arraybuffer");return new Uint8Array(n)}}ma&&sn("Please use the `legacy` build in Node.js environments.");async function hR(e){const n=await process.getBuiltinModule("fs").promises.readFile(e);return new Uint8Array(n)}class Hbe extends cR{}class Wbe extends rR{_createCanvas(t,n){return process.getBuiltinModule("module").createRequire(import.meta.url)("@napi-rs/canvas").createCanvas(t,n)}}class jbe extends iR{async _fetch(t){return hR(t)}}class Kbe extends dR{async _fetch(t){return hR(t)}}const fa={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function s6(e,t){if(!t)return;const n=t[2]-t[0],s=t[3]-t[1],a=new Path2D;a.rect(t[0],t[1],n,s),e.clip(a)}class b_{getPattern(){Dn("Abstract method `getPattern` called.")}}class Ube extends b_{constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7],this.matrix=null}_createGradient(t){let n;this._type==="axial"?n=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(n=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const s of this._colorStops)n.addColorStop(s[0],s[1]);return n}getPattern(t,n,s,a){let o;if(a===fa.STROKE||a===fa.FILL){const r=n.current.getClippedPathBoundingBox(a,Gn(t))||[0,0,0,0],i=Math.ceil(r[2]-r[0])||1,l=Math.ceil(r[3]-r[1])||1,c=n.cachedCanvases.getCanvas("pattern",i,l),u=c.context;u.clearRect(0,0,u.canvas.width,u.canvas.height),u.beginPath(),u.rect(0,0,u.canvas.width,u.canvas.height),u.translate(-r[0],-r[1]),s=Nt.transform(s,[1,0,0,1,r[0],r[1]]),u.transform(...n.baseTransform),this.matrix&&u.transform(...this.matrix),s6(u,this._bbox),u.fillStyle=this._createGradient(u),u.fill(),o=t.createPattern(c.canvas,"no-repeat");const d=new DOMMatrix(s);o.setTransform(d)}else s6(t,this._bbox),o=this._createGradient(t);return o}}function oy(e,t,n,s,a,o,r,i){const l=t.coords,c=t.colors,u=e.data,d=e.width*4;let h;l[n+1]>l[s+1]&&(h=n,n=s,s=h,h=o,o=r,r=h),l[s+1]>l[a+1]&&(h=s,s=a,a=h,h=r,r=i,i=h),l[n+1]>l[s+1]&&(h=n,n=s,s=h,h=o,o=r,r=h);const p=(l[n]+t.offsetX)*t.scaleX,v=(l[n+1]+t.offsetY)*t.scaleY,m=(l[s]+t.offsetX)*t.scaleX,g=(l[s+1]+t.offsetY)*t.scaleY,b=(l[a]+t.offsetX)*t.scaleX,C=(l[a+1]+t.offsetY)*t.scaleY;if(v>=C)return;const w=c[o],_=c[o+1],x=c[o+2],E=c[r],T=c[r+1],R=c[r+2],I=c[i],M=c[i+1],$=c[i+2],L=Math.round(v),B=Math.round(C);let q,J,Y,O,N,V,z,G;for(let Q=L;Q<=B;Q++){if(Q<g){const te=Q<v?0:(v-Q)/(v-g);q=p-(p-m)*te,J=w-(w-E)*te,Y=_-(_-T)*te,O=x-(x-R)*te}else{let te;Q>C?te=1:g===C?te=0:te=(g-Q)/(g-C),q=m-(m-b)*te,J=E-(E-I)*te,Y=T-(T-M)*te,O=R-(R-$)*te}let K;Q<v?K=0:Q>C?K=1:K=(v-Q)/(v-C),N=p-(p-b)*K,V=w-(w-I)*K,z=_-(_-M)*K,G=x-(x-$)*K;const ee=Math.round(Math.min(q,N)),se=Math.round(Math.max(q,N));let he=d*Q+ee*4;for(let te=ee;te<=se;te++)K=(q-te)/(q-N),K<0?K=0:K>1&&(K=1),u[he++]=J-(J-V)*K|0,u[he++]=Y-(Y-z)*K|0,u[he++]=O-(O-G)*K|0,u[he++]=255}}function qbe(e,t,n){const s=t.coords,a=t.colors;let o,r;switch(t.type){case"lattice":const i=t.verticesPerRow,l=Math.floor(s.length/i)-1,c=i-1;for(o=0;o<l;o++){let u=o*i;for(let d=0;d<c;d++,u++)oy(e,n,s[u],s[u+1],s[u+i],a[u],a[u+1],a[u+i]),oy(e,n,s[u+i+1],s[u+1],s[u+i],a[u+i+1],a[u+1],a[u+i])}break;case"triangles":for(o=0,r=s.length;o<r;o+=3)oy(e,n,s[o],s[o+1],s[o+2],a[o],a[o+1],a[o+2]);break;default:throw new Error("illegal figure")}}class Gbe extends b_{constructor(t){super(),this._coords=t[2],this._colors=t[3],this._figures=t[4],this._bounds=t[5],this._bbox=t[7],this._background=t[8],this.matrix=null}_createMeshCanvas(t,n,s){const i=Math.floor(this._bounds[0]),l=Math.floor(this._bounds[1]),c=Math.ceil(this._bounds[2])-i,u=Math.ceil(this._bounds[3])-l,d=Math.min(Math.ceil(Math.abs(c*t[0]*1.1)),3e3),h=Math.min(Math.ceil(Math.abs(u*t[1]*1.1)),3e3),p=c/d,v=u/h,m={coords:this._coords,colors:this._colors,offsetX:-i,offsetY:-l,scaleX:1/p,scaleY:1/v},g=d+2*2,b=h+2*2,C=s.getCanvas("mesh",g,b),w=C.context,_=w.createImageData(d,h);if(n){const E=_.data;for(let T=0,R=E.length;T<R;T+=4)E[T]=n[0],E[T+1]=n[1],E[T+2]=n[2],E[T+3]=255}for(const E of this._figures)qbe(_,E,m);return w.putImageData(_,2,2),{canvas:C.canvas,offsetX:i-2*p,offsetY:l-2*v,scaleX:p,scaleY:v}}getPattern(t,n,s,a){s6(t,this._bbox);let o;if(a===fa.SHADING)o=Nt.singularValueDecompose2dScale(Gn(t));else if(o=Nt.singularValueDecompose2dScale(n.baseTransform),this.matrix){const i=Nt.singularValueDecompose2dScale(this.matrix);o=[o[0]*i[0],o[1]*i[1]]}const r=this._createMeshCanvas(o,a===fa.SHADING?null:this._background,n.cachedCanvases);return a!==fa.SHADING&&(t.setTransform(...n.baseTransform),this.matrix&&t.transform(...this.matrix)),t.translate(r.offsetX,r.offsetY),t.scale(r.scaleX,r.scaleY),t.createPattern(r.canvas,"no-repeat")}}class Ybe extends b_{getPattern(){return"hotpink"}}function Xbe(e){switch(e[0]){case"RadialAxial":return new Ube(e);case"Mesh":return new Gbe(e);case"Dummy":return new Ybe}throw new Error(`Unknown IR type: ${e[0]}`)}const Tx={COLORED:1,UNCOLORED:2},j1=class j1{constructor(t,n,s,a,o){this.operatorList=t[2],this.matrix=t[3],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=n,this.ctx=s,this.canvasGraphicsFactory=a,this.baseTransform=o}createPatternCanvas(t){const{bbox:n,operatorList:s,paintType:a,tilingType:o,color:r,canvasGraphicsFactory:i}=this;let{xstep:l,ystep:c}=this;l=Math.abs(l),c=Math.abs(c),Zb("TilingType: "+o);const u=n[0],d=n[1],h=n[2],p=n[3],v=h-u,m=p-d,g=Nt.singularValueDecompose2dScale(this.matrix),b=Nt.singularValueDecompose2dScale(this.baseTransform),C=g[0]*b[0],w=g[1]*b[1];let _=v,x=m,E=!1,T=!1;const R=Math.ceil(l*C),I=Math.ceil(c*w),M=Math.ceil(v*C),$=Math.ceil(m*w);R>=M?_=l:E=!0,I>=$?x=c:T=!0;const L=this.getSizeAndScale(_,this.ctx.canvas.width,C),B=this.getSizeAndScale(x,this.ctx.canvas.height,w),q=t.cachedCanvases.getCanvas("pattern",L.size,B.size),J=q.context,Y=i.createCanvasGraphics(J);if(Y.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(Y,a,r),J.translate(-L.scale*u,-B.scale*d),Y.transform(L.scale,0,0,B.scale,0,0),J.save(),this.clipBbox(Y,u,d,h,p),Y.baseTransform=Gn(Y.ctx),Y.executeOperatorList(s),Y.endDrawing(),J.restore(),E||T){const O=q.canvas;E&&(_=l),T&&(x=c);const N=this.getSizeAndScale(_,this.ctx.canvas.width,C),V=this.getSizeAndScale(x,this.ctx.canvas.height,w),z=N.size,G=V.size,Q=t.cachedCanvases.getCanvas("pattern-workaround",z,G),K=Q.context,ee=E?Math.floor(v/l):0,se=T?Math.floor(m/c):0;for(let he=0;he<=ee;he++)for(let te=0;te<=se;te++)K.drawImage(O,z*he,G*te,z,G,0,0,z,G);return{canvas:Q.canvas,scaleX:N.scale,scaleY:V.scale,offsetX:u,offsetY:d}}return{canvas:q.canvas,scaleX:L.scale,scaleY:B.scale,offsetX:u,offsetY:d}}getSizeAndScale(t,n,s){const a=Math.max(j1.MAX_PATTERN_SIZE,n);let o=Math.ceil(t*s);return o>=a?o=a:s=o/t,{scale:s,size:o}}clipBbox(t,n,s,a,o){const r=a-n,i=o-s;t.ctx.rect(n,s,r,i),t.current.updateRectMinMax(Gn(t.ctx),[n,s,a,o]),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,n,s){const a=t.ctx,o=t.current;switch(n){case Tx.COLORED:const r=this.ctx;a.fillStyle=r.fillStyle,a.strokeStyle=r.strokeStyle,o.fillColor=r.fillStyle,o.strokeColor=r.strokeStyle;break;case Tx.UNCOLORED:const i=Nt.makeHexColor(s[0],s[1],s[2]);a.fillStyle=i,a.strokeStyle=i,o.fillColor=i,o.strokeColor=i;break;default:throw new Cbe(`Unsupported paint type: ${n}`)}}getPattern(t,n,s,a){let o=s;a!==fa.SHADING&&(o=Nt.transform(o,n.baseTransform),this.matrix&&(o=Nt.transform(o,this.matrix)));const r=this.createPatternCanvas(n);let i=new DOMMatrix(o);i=i.translate(r.offsetX,r.offsetY),i=i.scale(1/r.scaleX,1/r.scaleY);const l=t.createPattern(r.canvas,"repeat");return l.setTransform(i),l}};Vt(j1,"MAX_PATTERN_SIZE",3e3);let a6=j1;function Jbe({src:e,srcPos:t=0,dest:n,width:s,height:a,nonBlackColor:o=4294967295,inverseDecode:r=!1}){const i=Ra.isLittleEndian?4278190080:255,[l,c]=r?[o,i]:[i,o],u=s>>3,d=s&7,h=e.length;n=new Uint32Array(n.buffer);let p=0;for(let v=0;v<a;v++){for(const g=t+u;t<g;t++){const b=t<h?e[t]:255;n[p++]=b&128?c:l,n[p++]=b&64?c:l,n[p++]=b&32?c:l,n[p++]=b&16?c:l,n[p++]=b&8?c:l,n[p++]=b&4?c:l,n[p++]=b&2?c:l,n[p++]=b&1?c:l}if(d===0)continue;const m=t<h?e[t++]:255;for(let g=0;g<d;g++)n[p++]=m&1<<7-g?c:l}return{srcPos:t,destPos:p}}const Mx=16,Px=100,Zbe=15,Rx=10,Ix=1e3,Ga=16;function Qbe(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(s,a){t.translate(s,a),this.__originalTranslate(s,a)},e.scale=function(s,a){t.scale(s,a),this.__originalScale(s,a)},e.transform=function(s,a,o,r,i,l){t.transform(s,a,o,r,i,l),this.__originalTransform(s,a,o,r,i,l)},e.setTransform=function(s,a,o,r,i,l){t.setTransform(s,a,o,r,i,l),this.__originalSetTransform(s,a,o,r,i,l)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(s){t.rotate(s),this.__originalRotate(s)},e.clip=function(s){t.clip(s),this.__originalClip(s)},e.moveTo=function(n,s){t.moveTo(n,s),this.__originalMoveTo(n,s)},e.lineTo=function(n,s){t.lineTo(n,s),this.__originalLineTo(n,s)},e.bezierCurveTo=function(n,s,a,o,r,i){t.bezierCurveTo(n,s,a,o,r,i),this.__originalBezierCurveTo(n,s,a,o,r,i)},e.rect=function(n,s,a,o){t.rect(n,s,a,o),this.__originalRect(n,s,a,o)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}class e4e{constructor(t){this.canvasFactory=t,this.cache=Object.create(null)}getCanvas(t,n,s){let a;return this.cache[t]!==void 0?(a=this.cache[t],this.canvasFactory.reset(a,n,s)):(a=this.canvasFactory.create(n,s),this.cache[t]=a),a}delete(t){delete this.cache[t]}clear(){for(const t in this.cache){const n=this.cache[t];this.canvasFactory.destroy(n),delete this.cache[t]}}}function z2(e,t,n,s,a,o,r,i,l,c){const[u,d,h,p,v,m]=Gn(e);if(d===0&&h===0){const C=r*u+v,w=Math.round(C),_=i*p+m,x=Math.round(_),E=(r+l)*u+v,T=Math.abs(Math.round(E)-w)||1,R=(i+c)*p+m,I=Math.abs(Math.round(R)-x)||1;return e.setTransform(Math.sign(u),0,0,Math.sign(p),w,x),e.drawImage(t,n,s,a,o,0,0,T,I),e.setTransform(u,d,h,p,v,m),[T,I]}if(u===0&&p===0){const C=i*h+v,w=Math.round(C),_=r*d+m,x=Math.round(_),E=(i+c)*h+v,T=Math.abs(Math.round(E)-w)||1,R=(r+l)*d+m,I=Math.abs(Math.round(R)-x)||1;return e.setTransform(0,Math.sign(d),Math.sign(h),0,w,x),e.drawImage(t,n,s,a,o,0,0,I,T),e.setTransform(u,d,h,p,v,m),[I,T]}e.drawImage(t,n,s,a,o,r,i,l,c);const g=Math.hypot(u,d),b=Math.hypot(h,p);return[g*l,b*c]}function t4e(e){const{width:t,height:n}=e;if(t>Ix||n>Ix)return null;const s=1e3,a=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),o=t+1;let r=new Uint8Array(o*(n+1)),i,l,c;const u=t+7&-8;let d=new Uint8Array(u*n),h=0;for(const b of e.data){let C=128;for(;C>0;)d[h++]=b&C?0:255,C>>=1}let p=0;for(h=0,d[h]!==0&&(r[0]=1,++p),l=1;l<t;l++)d[h]!==d[h+1]&&(r[l]=d[h]?2:1,++p),h++;for(d[h]!==0&&(r[l]=2,++p),i=1;i<n;i++){h=i*u,c=i*o,d[h-u]!==d[h]&&(r[c]=d[h]?1:8,++p);let b=(d[h]?4:0)+(d[h-u]?8:0);for(l=1;l<t;l++)b=(b>>2)+(d[h+1]?4:0)+(d[h-u+1]?8:0),a[b]&&(r[c+l]=a[b],++p),h++;if(d[h-u]!==d[h]&&(r[c+l]=d[h]?2:4,++p),p>s)return null}for(h=u*(n-1),c=i*o,d[h]!==0&&(r[c]=8,++p),l=1;l<t;l++)d[h]!==d[h+1]&&(r[c+l]=d[h]?4:8,++p),h++;if(d[h]!==0&&(r[c+l]=4,++p),p>s)return null;const v=new Int32Array([0,o,-1,0,-o,0,0,0,1]),m=new Path2D;for(i=0;p&&i<=n;i++){let b=i*o;const C=b+t;for(;b<C&&!r[b];)b++;if(b===C)continue;m.moveTo(b%o,i);const w=b;let _=r[b];do{const x=v[_];do b+=x;while(!r[b]);const E=r[b];E!==5&&E!==10?(_=E,r[b]=0):(_=E&51*_>>4,r[b]&=_>>2|_<<2),m.lineTo(b%o,b/o|0),r[b]||--p}while(w!==b);--i}return d=null,r=null,function(b){b.save(),b.scale(1/t,-1/n),b.translate(0,-n),b.fill(m),b.beginPath(),b.restore()}}class Lx{constructor(t,n){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=SP,this.textMatrixScale=1,this.fontMatrix=I3,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=ta.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.patternStroke=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,t,n])}clone(){const t=Object.create(this);return t.clipBox=this.clipBox.slice(),t}setCurrentPoint(t,n){this.x=t,this.y=n}updatePathMinMax(t,n,s){[n,s]=Nt.applyTransform([n,s],t),this.minX=Math.min(this.minX,n),this.minY=Math.min(this.minY,s),this.maxX=Math.max(this.maxX,n),this.maxY=Math.max(this.maxY,s)}updateRectMinMax(t,n){const s=Nt.applyTransform(n,t),a=Nt.applyTransform(n.slice(2),t),o=Nt.applyTransform([n[0],n[3]],t),r=Nt.applyTransform([n[2],n[1]],t);this.minX=Math.min(this.minX,s[0],a[0],o[0],r[0]),this.minY=Math.min(this.minY,s[1],a[1],o[1],r[1]),this.maxX=Math.max(this.maxX,s[0],a[0],o[0],r[0]),this.maxY=Math.max(this.maxY,s[1],a[1],o[1],r[1])}updateScalingPathMinMax(t,n){Nt.scaleMinMax(t,n),this.minX=Math.min(this.minX,n[0]),this.minY=Math.min(this.minY,n[1]),this.maxX=Math.max(this.maxX,n[2]),this.maxY=Math.max(this.maxY,n[3])}updateCurvePathMinMax(t,n,s,a,o,r,i,l,c,u){const d=Nt.bezierBoundingBox(n,s,a,o,r,i,l,c,u);u||this.updateRectMinMax(t,d)}getPathBoundingBox(t=fa.FILL,n=null){const s=[this.minX,this.minY,this.maxX,this.maxY];if(t===fa.STROKE){n||Dn("Stroke bounding box must include transform.");const a=Nt.singularValueDecompose2dScale(n),o=a[0]*this.lineWidth/2,r=a[1]*this.lineWidth/2;s[0]-=o,s[1]-=r,s[2]+=o,s[3]+=r}return s}updateClipFromPath(){const t=Nt.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(t){this.clipBox=t,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(t=fa.FILL,n=null){return Nt.intersect(this.clipBox,this.getPathBoundingBox(t,n))}}function Ox(e,t){if(t instanceof ImageData){e.putImageData(t,0,0);return}const n=t.height,s=t.width,a=n%Ga,o=(n-a)/Ga,r=a===0?o:o+1,i=e.createImageData(s,Ga);let l=0,c;const u=t.data,d=i.data;let h,p,v,m;if(t.kind===dg.GRAYSCALE_1BPP){const g=u.byteLength,b=new Uint32Array(d.buffer,0,d.byteLength>>2),C=b.length,w=s+7>>3,_=4294967295,x=Ra.isLittleEndian?4278190080:255;for(h=0;h<r;h++){for(v=h<o?Ga:a,c=0,p=0;p<v;p++){const E=g-l;let T=0;const R=E>w?s:E*8-7,I=R&-8;let M=0,$=0;for(;T<I;T+=8)$=u[l++],b[c++]=$&128?_:x,b[c++]=$&64?_:x,b[c++]=$&32?_:x,b[c++]=$&16?_:x,b[c++]=$&8?_:x,b[c++]=$&4?_:x,b[c++]=$&2?_:x,b[c++]=$&1?_:x;for(;T<R;T++)M===0&&($=u[l++],M=128),b[c++]=$&M?_:x,M>>=1}for(;c<C;)b[c++]=0;e.putImageData(i,0,h*Ga)}}else if(t.kind===dg.RGBA_32BPP){for(p=0,m=s*Ga*4,h=0;h<o;h++)d.set(u.subarray(l,l+m)),l+=m,e.putImageData(i,0,p),p+=Ga;h<r&&(m=s*a*4,d.set(u.subarray(l,l+m)),e.putImageData(i,0,p))}else if(t.kind===dg.RGB_24BPP)for(v=Ga,m=s*v,h=0;h<r;h++){for(h>=o&&(v=a,m=s*v),c=0,p=m;p--;)d[c++]=u[l++],d[c++]=u[l++],d[c++]=u[l++],d[c++]=255;e.putImageData(i,0,h*Ga)}else throw new Error(`bad image kind: ${t.kind}`)}function Nx(e,t){if(t.bitmap){e.drawImage(t.bitmap,0,0);return}const n=t.height,s=t.width,a=n%Ga,o=(n-a)/Ga,r=a===0?o:o+1,i=e.createImageData(s,Ga);let l=0;const c=t.data,u=i.data;for(let d=0;d<r;d++){const h=d<o?Ga:a;({srcPos:l}=Jbe({src:c,srcPos:l,dest:u,width:s,height:h,nonBlackColor:0})),e.putImageData(i,0,d*Ga)}}function B0(e,t){const n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const s of n)e[s]!==void 0&&(t[s]=e[s]);e.setLineDash!==void 0&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function H2(e){if(e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",e.setLineDash!==void 0&&(e.setLineDash([]),e.lineDashOffset=0),!ma){const{filter:t}=e;t!=="none"&&t!==""&&(e.filter="none")}}function $x(e,t){if(t)return!0;const n=Nt.singularValueDecompose2dScale(e);n[0]=Math.fround(n[0]),n[1]=Math.fround(n[1]);const s=Math.fround((globalThis.devicePixelRatio||1)*qc.PDF_TO_CSS_UNITS);return n[0]<=s&&n[1]<=s}const n4e=["butt","round","square"],s4e=["miter","round","bevel"],a4e={},Dx={};var Mr,o6,r6,i6;const S_=class S_{constructor(t,n,s,a,o,{optionalContentConfig:r,markedContentStack:i=null},l,c){ne(this,Mr);this.ctx=t,this.current=new Lx(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=n,this.objs=s,this.canvasFactory=a,this.filterFactory=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=i||[],this.optionalContentConfig=r,this.cachedCanvases=new e4e(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=l,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=c,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(t,n=null){return typeof t=="string"?t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t):n}beginDrawing({transform:t,viewport:n,transparency:s=!1,background:a=null}){const o=this.ctx.canvas.width,r=this.ctx.canvas.height,i=this.ctx.fillStyle;if(this.ctx.fillStyle=a||"#ffffff",this.ctx.fillRect(0,0,o,r),this.ctx.fillStyle=i,s){const l=this.cachedCanvases.getCanvas("transparent",o,r);this.compositeCtx=this.ctx,this.transparentCanvas=l.canvas,this.ctx=l.context,this.ctx.save(),this.ctx.transform(...Gn(this.compositeCtx))}this.ctx.save(),H2(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...n.transform),this.viewportScale=n.scale,this.baseTransform=Gn(this.ctx)}executeOperatorList(t,n,s,a){const o=t.argsArray,r=t.fnArray;let i=n||0;const l=o.length;if(l===i)return i;const c=l-i>Rx&&typeof s=="function",u=c?Date.now()+Zbe:0;let d=0;const h=this.commonObjs,p=this.objs;let v;for(;;){if(a!==void 0&&i===a.nextBreakPoint)return a.breakIt(i,s),i;if(v=r[i],v!==er.dependency)this[v].apply(this,o[i]);else for(const m of o[i]){const g=m.startsWith("g_")?h:p;if(!g.has(m))return g.get(m,s),i}if(i++,i===l)return i;if(c&&++d>Rx){if(Date.now()>u)return s(),i;d=0}}}endDrawing(){oe(this,Mr,o6).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const t of this._cachedBitmapsMap.values()){for(const n of t.values())typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement&&(n.width=n.height=0);t.clear()}this._cachedBitmapsMap.clear(),oe(this,Mr,r6).call(this)}_scaleImage(t,n){const s=t.width??t.displayWidth,a=t.height??t.displayHeight;let o=Math.max(Math.hypot(n[0],n[1]),1),r=Math.max(Math.hypot(n[2],n[3]),1),i=s,l=a,c="prescale1",u,d;for(;o>2&&i>1||r>2&&l>1;){let h=i,p=l;o>2&&i>1&&(h=i>=16384?Math.floor(i/2)-1||1:Math.ceil(i/2),o/=i/h),r>2&&l>1&&(p=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l)/2,r/=l/p),u=this.cachedCanvases.getCanvas(c,h,p),d=u.context,d.clearRect(0,0,h,p),d.drawImage(t,0,0,i,l,0,0,h,p),t=u.canvas,i=h,l=p,c=c==="prescale1"?"prescale2":"prescale1"}return{img:t,paintWidth:i,paintHeight:l}}_createMaskCanvas(t){const n=this.ctx,{width:s,height:a}=t,o=this.current.fillColor,r=this.current.patternFill,i=Gn(n);let l,c,u,d;if((t.bitmap||t.data)&&t.count>1){const R=t.bitmap||t.data.buffer;c=JSON.stringify(r?i:[i.slice(0,4),o]),l=this._cachedBitmapsMap.get(R),l||(l=new Map,this._cachedBitmapsMap.set(R,l));const I=l.get(c);if(I&&!r){const M=Math.round(Math.min(i[0],i[2])+i[4]),$=Math.round(Math.min(i[1],i[3])+i[5]);return{canvas:I,offsetX:M,offsetY:$}}u=I}u||(d=this.cachedCanvases.getCanvas("maskCanvas",s,a),Nx(d.context,t));let h=Nt.transform(i,[1/s,0,0,-1/a,0,0]);h=Nt.transform(h,[1,0,0,1,0,-a]);const[p,v,m,g]=Nt.getAxialAlignedBoundingBox([0,0,s,a],h),b=Math.round(m-p)||1,C=Math.round(g-v)||1,w=this.cachedCanvases.getCanvas("fillCanvas",b,C),_=w.context,x=p,E=v;_.translate(-x,-E),_.transform(...h),u||(u=this._scaleImage(d.canvas,Vr(_)),u=u.img,l&&r&&l.set(c,u)),_.imageSmoothingEnabled=$x(Gn(_),t.interpolate),z2(_,u,0,0,u.width,u.height,0,0,s,a),_.globalCompositeOperation="source-in";const T=Nt.transform(Vr(_),[1,0,0,1,-x,-E]);return _.fillStyle=r?o.getPattern(n,this,T,fa.FILL):o,_.fillRect(0,0,s,a),l&&!r&&(this.cachedCanvases.delete("fillCanvas"),l.set(c,w.canvas)),{canvas:w.canvas,offsetX:Math.round(x),offsetY:Math.round(E)}}setLineWidth(t){t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(t){this.ctx.lineCap=n4e[t]}setLineJoin(t){this.ctx.lineJoin=s4e[t]}setMiterLimit(t){this.ctx.miterLimit=t}setDash(t,n){const s=this.ctx;s.setLineDash!==void 0&&(s.setLineDash(t),s.lineDashOffset=n)}setRenderingIntent(t){}setFlatness(t){}setGState(t){for(const[n,s]of t)switch(n){case"LW":this.setLineWidth(s);break;case"LC":this.setLineCap(s);break;case"LJ":this.setLineJoin(s);break;case"ML":this.setMiterLimit(s);break;case"D":this.setDash(s[0],s[1]);break;case"RI":this.setRenderingIntent(s);break;case"FL":this.setFlatness(s);break;case"Font":this.setFont(s[0],s[1]);break;case"CA":this.current.strokeAlpha=s;break;case"ca":this.current.fillAlpha=s,this.ctx.globalAlpha=s;break;case"BM":this.ctx.globalCompositeOperation=s;break;case"SMask":this.current.activeSMask=s?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(s);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const t=this.ctx.canvas.width,n=this.ctx.canvas.height,s="smaskGroupAt"+this.groupLevel,a=this.cachedCanvases.getCanvas(s,t,n);this.suspendedCtx=this.ctx,this.ctx=a.context;const o=this.ctx;o.setTransform(...Gn(this.suspendedCtx)),B0(this.suspendedCtx,o),Qbe(o,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),B0(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(t){if(!this.current.activeSMask)return;t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const n=this.current.activeSMask,s=this.suspendedCtx;this.composeSMask(s,n,this.ctx,t),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(t,n,s,a){const o=a[0],r=a[1],i=a[2]-o,l=a[3]-r;i===0||l===0||(this.genericComposeSMask(n.context,s,i,l,n.subtype,n.backdrop,n.transferMap,o,r,n.offsetX,n.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(s.canvas,0,0),t.restore())}genericComposeSMask(t,n,s,a,o,r,i,l,c,u,d){let h=t.canvas,p=l-u,v=c-d;if(r){const g=Nt.makeHexColor(...r);if(p<0||v<0||p+s>h.width||v+a>h.height){const b=this.cachedCanvases.getCanvas("maskExtension",s,a),C=b.context;C.drawImage(h,-p,-v),C.globalCompositeOperation="destination-atop",C.fillStyle=g,C.fillRect(0,0,s,a),C.globalCompositeOperation="source-over",h=b.canvas,p=v=0}else{t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);const b=new Path2D;b.rect(p,v,s,a),t.clip(b),t.globalCompositeOperation="destination-atop",t.fillStyle=g,t.fillRect(p,v,s,a),t.restore()}}n.save(),n.globalAlpha=1,n.setTransform(1,0,0,1,0,0),o==="Alpha"&&i?n.filter=this.filterFactory.addAlphaFilter(i):o==="Luminosity"&&(n.filter=this.filterFactory.addLuminosityFilter(i));const m=new Path2D;m.rect(l,c,s,a),n.clip(m),n.globalCompositeOperation="destination-in",n.drawImage(h,p,v,s,a,l,c,s,a),n.restore()}save(){this.inSMaskMode?(B0(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const t=this.current;this.stateStack.push(t),this.current=t.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),B0(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(t,n,s,a,o,r){this.ctx.transform(t,n,s,a,o,r),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(t,n,s){const a=this.ctx,o=this.current;let r=o.x,i=o.y,l,c;const u=Gn(a),d=u[0]===0&&u[3]===0||u[1]===0&&u[2]===0,h=d?s.slice(0):null;for(let p=0,v=0,m=t.length;p<m;p++)switch(t[p]|0){case er.rectangle:r=n[v++],i=n[v++];const g=n[v++],b=n[v++],C=r+g,w=i+b;a.moveTo(r,i),g===0||b===0?a.lineTo(C,w):(a.lineTo(C,i),a.lineTo(C,w),a.lineTo(r,w)),d||o.updateRectMinMax(u,[r,i,C,w]),a.closePath();break;case er.moveTo:r=n[v++],i=n[v++],a.moveTo(r,i),d||o.updatePathMinMax(u,r,i);break;case er.lineTo:r=n[v++],i=n[v++],a.lineTo(r,i),d||o.updatePathMinMax(u,r,i);break;case er.curveTo:l=r,c=i,r=n[v+4],i=n[v+5],a.bezierCurveTo(n[v],n[v+1],n[v+2],n[v+3],r,i),o.updateCurvePathMinMax(u,l,c,n[v],n[v+1],n[v+2],n[v+3],r,i,h),v+=6;break;case er.curveTo2:l=r,c=i,a.bezierCurveTo(r,i,n[v],n[v+1],n[v+2],n[v+3]),o.updateCurvePathMinMax(u,l,c,r,i,n[v],n[v+1],n[v+2],n[v+3],h),r=n[v+2],i=n[v+3],v+=4;break;case er.curveTo3:l=r,c=i,r=n[v+2],i=n[v+3],a.bezierCurveTo(n[v],n[v+1],r,i,r,i),o.updateCurvePathMinMax(u,l,c,n[v],n[v+1],r,i,r,i,h),v+=4;break;case er.closePath:a.closePath();break}d&&o.updateScalingPathMinMax(u,h),o.setCurrentPoint(r,i)}closePath(){this.ctx.closePath()}stroke(t=!0){const n=this.ctx,s=this.current.strokeColor;n.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof s=="object"&&(s!=null&&s.getPattern)?(n.save(),n.strokeStyle=s.getPattern(n,this,Vr(n),fa.STROKE),this.rescaleAndStroke(!1),n.restore()):this.rescaleAndStroke(!0)),t&&this.consumePath(this.current.getClippedPathBoundingBox()),n.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(t=!0){const n=this.ctx,s=this.current.fillColor,a=this.current.patternFill;let o=!1;a&&(n.save(),n.fillStyle=s.getPattern(n,this,Vr(n),fa.FILL),o=!0);const r=this.current.getClippedPathBoundingBox();this.contentVisible&&r!==null&&(this.pendingEOFill?(n.fill("evenodd"),this.pendingEOFill=!1):n.fill()),o&&n.restore(),t&&this.consumePath(r)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=a4e}eoClip(){this.pendingClip=Dx}beginText(){this.current.textMatrix=SP,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const t=this.pendingTextPaths,n=this.ctx;if(t===void 0){n.beginPath();return}const s=new Path2D,a=n.getTransform().invertSelf();for(const{transform:o,x:r,y:i,fontSize:l,path:c}of t)s.addPath(c,new DOMMatrix(o).preMultiplySelf(a).translate(r,i).scale(l,-l));n.clip(s),n.beginPath(),delete this.pendingTextPaths}setCharSpacing(t){this.current.charSpacing=t}setWordSpacing(t){this.current.wordSpacing=t}setHScale(t){this.current.textHScale=t/100}setLeading(t){this.current.leading=-t}setFont(t,n){var u;const s=this.commonObjs.get(t),a=this.current;if(!s)throw new Error(`Can't find font for ${t}`);if(a.fontMatrix=s.fontMatrix||I3,(a.fontMatrix[0]===0||a.fontMatrix[3]===0)&&sn("Invalid font matrix for font "+t),n<0?(n=-n,a.fontDirection=-1):a.fontDirection=1,this.current.font=s,this.current.fontSize=n,s.isType3Font)return;const o=s.loadedName||"sans-serif",r=((u=s.systemFontInfo)==null?void 0:u.css)||`"${o}", ${s.fallbackName}`;let i="normal";s.black?i="900":s.bold&&(i="bold");const l=s.italic?"italic":"normal";let c=n;n<Mx?c=Mx:n>Px&&(c=Px),this.current.fontSizeScale=n/c,this.ctx.font=`${l} ${i} ${c}px ${r}`}setTextRenderingMode(t){this.current.textRenderingMode=t}setTextRise(t){this.current.textRise=t}moveText(t,n){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=n}setLeadingMoveText(t,n){this.setLeading(-n),this.moveText(t,n)}setTextMatrix(t,n,s,a,o,r){this.current.textMatrix=[t,n,s,a,o,r],this.current.textMatrixScale=Math.hypot(t,n),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(t,n,s,a,o){const r=this.ctx,i=this.current,l=i.font,c=i.textRenderingMode,u=i.fontSize/i.fontSizeScale,d=c&ta.FILL_STROKE_MASK,h=!!(c&ta.ADD_TO_PATH_FLAG),p=i.patternFill&&!l.missingFile,v=i.patternStroke&&!l.missingFile;let m;if((l.disableFontFace||h||p||v)&&(m=l.getPathGenerator(this.commonObjs,t)),l.disableFontFace||p||v){if(r.save(),r.translate(n,s),r.scale(u,-u),d===ta.FILL||d===ta.FILL_STROKE)if(a){const g=r.getTransform();r.setTransform(...a),r.fill(oe(this,Mr,i6).call(this,m,g,a))}else r.fill(m);if(d===ta.STROKE||d===ta.FILL_STROKE)if(o){const g=r.getTransform();r.setTransform(...o),r.stroke(oe(this,Mr,i6).call(this,m,g,o))}else r.lineWidth/=u,r.stroke(m);r.restore()}else(d===ta.FILL||d===ta.FILL_STROKE)&&r.fillText(t,n,s),(d===ta.STROKE||d===ta.FILL_STROKE)&&r.strokeText(t,n,s);h&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:Gn(r),x:n,y:s,fontSize:u,path:m})}get isFontSubpixelAAEnabled(){const{context:t}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);t.scale(1.5,1),t.fillText("I",0,10);const n=t.getImageData(0,0,10,10).data;let s=!1;for(let a=3;a<n.length;a+=4)if(n[a]>0&&n[a]<255){s=!0;break}return cn(this,"isFontSubpixelAAEnabled",s)}showText(t){const n=this.current,s=n.font;if(s.isType3Font)return this.showType3Text(t);const a=n.fontSize;if(a===0)return;const o=this.ctx,r=n.fontSizeScale,i=n.charSpacing,l=n.wordSpacing,c=n.fontDirection,u=n.textHScale*c,d=t.length,h=s.vertical,p=h?1:-1,v=s.defaultVMetrics,m=a*n.fontMatrix[0],g=n.textRenderingMode===ta.FILL&&!s.disableFontFace&&!n.patternFill;o.save(),o.transform(...n.textMatrix),o.translate(n.x,n.y+n.textRise),c>0?o.scale(u,-1):o.scale(u,1);let b,C;if(n.patternFill){o.save();const T=n.fillColor.getPattern(o,this,Vr(o),fa.FILL);b=Gn(o),o.restore(),o.fillStyle=T}if(n.patternStroke){o.save();const T=n.strokeColor.getPattern(o,this,Vr(o),fa.STROKE);C=Gn(o),o.restore(),o.strokeStyle=T}let w=n.lineWidth;const _=n.textMatrixScale;if(_===0||w===0){const T=n.textRenderingMode&ta.FILL_STROKE_MASK;(T===ta.STROKE||T===ta.FILL_STROKE)&&(w=this.getSinglePixelWidth())}else w/=_;if(r!==1&&(o.scale(r,r),w/=r),o.lineWidth=w,s.isInvalidPDFjsFont){const T=[];let R=0;for(const I of t)T.push(I.unicode),R+=I.width;o.fillText(T.join(""),0,0),n.x+=R*m*u,o.restore(),this.compose();return}let x=0,E;for(E=0;E<d;++E){const T=t[E];if(typeof T=="number"){x+=p*T*a/1e3;continue}let R=!1;const I=(T.isSpace?l:0)+i,M=T.fontChar,$=T.accent;let L,B,q=T.width;if(h){const Y=T.vmetric||v,O=-(T.vmetric?Y[1]:q*.5)*m,N=Y[2]*m;q=Y?-Y[0]:q,L=O/r,B=(x+N)/r}else L=x/r,B=0;if(s.remeasure&&q>0){const Y=o.measureText(M).width*1e3/a*r;if(q<Y&&this.isFontSubpixelAAEnabled){const O=q/Y;R=!0,o.save(),o.scale(O,1),L/=O}else q!==Y&&(L+=(q-Y)/2e3*a/r)}if(this.contentVisible&&(T.isInFont||s.missingFile)){if(g&&!$)o.fillText(M,L,B);else if(this.paintChar(M,L,B,b,C),$){const Y=L+a*$.offset.x/r,O=B-a*$.offset.y/r;this.paintChar($.fontChar,Y,O,b,C)}}const J=h?q*m-I*c:q*m+I*c;x+=J,R&&o.restore()}h?n.y-=x:n.x+=x*u,o.restore(),this.compose()}showType3Text(t){const n=this.ctx,s=this.current,a=s.font,o=s.fontSize,r=s.fontDirection,i=a.vertical?1:-1,l=s.charSpacing,c=s.wordSpacing,u=s.textHScale*r,d=s.fontMatrix||I3,h=t.length,p=s.textRenderingMode===ta.INVISIBLE;let v,m,g,b;if(!(p||o===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,n.save(),n.transform(...s.textMatrix),n.translate(s.x,s.y),n.scale(u,r),v=0;v<h;++v){if(m=t[v],typeof m=="number"){b=i*m*o/1e3,this.ctx.translate(b,0),s.x+=b*u;continue}const C=(m.isSpace?c:0)+l,w=a.charProcOperatorList[m.operatorListId];if(!w){sn(`Type3 character "${m.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=m,this.save(),n.scale(o,o),n.transform(...d),this.executeOperatorList(w),this.restore()),g=Nt.applyTransform([m.width,0],d)[0]*o+C,n.translate(g,0),s.x+=g*u}n.restore(),this.processingType3=null}}setCharWidth(t,n){}setCharWidthAndBounds(t,n,s,a,o,r){this.ctx.rect(s,a,o-s,r-a),this.ctx.clip(),this.endPath()}getColorN_Pattern(t){let n;if(t[0]==="TilingPattern"){const s=t[1],a=this.baseTransform||Gn(this.ctx),o={createCanvasGraphics:r=>new S_(r,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};n=new a6(t,s,this.ctx,o,a)}else n=this._getPattern(t[1],t[2]);return n}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments),this.current.patternStroke=!0}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(t,n,s){this.ctx.strokeStyle=this.current.strokeColor=Nt.makeHexColor(t,n,s),this.current.patternStroke=!1}setStrokeTransparent(){this.ctx.strokeStyle=this.current.strokeColor="transparent",this.current.patternStroke=!1}setFillRGBColor(t,n,s){this.ctx.fillStyle=this.current.fillColor=Nt.makeHexColor(t,n,s),this.current.patternFill=!1}setFillTransparent(){this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(t,n=null){let s;return this.cachedPatterns.has(t)?s=this.cachedPatterns.get(t):(s=Xbe(this.getObject(t)),this.cachedPatterns.set(t,s)),n&&(s.matrix=n),s}shadingFill(t){if(!this.contentVisible)return;const n=this.ctx;this.save();const s=this._getPattern(t);n.fillStyle=s.getPattern(n,this,Vr(n),fa.SHADING);const a=Vr(n);if(a){const{width:o,height:r}=n.canvas,[i,l,c,u]=Nt.getAxialAlignedBoundingBox([0,0,o,r],a);this.ctx.fillRect(i,l,c-i,u-l)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){Dn("Should not call beginInlineImage")}beginImageData(){Dn("Should not call beginImageData")}paintFormXObjectBegin(t,n){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),t&&this.transform(...t),this.baseTransform=Gn(this.ctx),n)){const s=n[2]-n[0],a=n[3]-n[1];this.ctx.rect(n[0],n[1],s,a),this.current.updateRectMinMax(Gn(this.ctx),n),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(t){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const n=this.ctx;t.isolated||Zb("TODO: Support non-isolated groups."),t.knockout&&sn("Knockout groups not supported.");const s=Gn(n);if(t.matrix&&n.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let a=Nt.getAxialAlignedBoundingBox(t.bbox,Gn(n));const o=[0,0,n.canvas.width,n.canvas.height];a=Nt.intersect(a,o)||[0,0,0,0];const r=Math.floor(a[0]),i=Math.floor(a[1]),l=Math.max(Math.ceil(a[2])-r,1),c=Math.max(Math.ceil(a[3])-i,1);this.current.startNewPathAndClipBox([0,0,l,c]);let u="groupAt"+this.groupLevel;t.smask&&(u+="_smask_"+this.smaskCounter++%2);const d=this.cachedCanvases.getCanvas(u,l,c),h=d.context;h.translate(-r,-i),h.transform(...s),t.smask?this.smaskStack.push({canvas:d.canvas,context:h,offsetX:r,offsetY:i,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(n.setTransform(1,0,0,1,0,0),n.translate(r,i),n.save()),B0(n,h),this.ctx=h,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(n),this.groupLevel++}endGroup(t){if(!this.contentVisible)return;this.groupLevel--;const n=this.ctx,s=this.groupStack.pop();if(this.ctx=s,this.ctx.imageSmoothingEnabled=!1,t.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const a=Gn(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...a);const o=Nt.getAxialAlignedBoundingBox([0,0,n.canvas.width,n.canvas.height],a);this.ctx.drawImage(n.canvas,0,0),this.ctx.restore(),this.compose(o)}}beginAnnotation(t,n,s,a,o){if(oe(this,Mr,o6).call(this),H2(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),n){const r=n[2]-n[0],i=n[3]-n[1];if(o&&this.annotationCanvasMap){s=s.slice(),s[4]-=n[0],s[5]-=n[1],n=n.slice(),n[0]=n[1]=0,n[2]=r,n[3]=i;const[l,c]=Nt.singularValueDecompose2dScale(Gn(this.ctx)),{viewportScale:u}=this,d=Math.ceil(r*this.outputScaleX*u),h=Math.ceil(i*this.outputScaleY*u);this.annotationCanvas=this.canvasFactory.create(d,h);const{canvas:p,context:v}=this.annotationCanvas;this.annotationCanvasMap.set(t,p),this.annotationCanvas.savedCtx=this.ctx,this.ctx=v,this.ctx.save(),this.ctx.setTransform(l,0,0,-c,0,i*c),H2(this.ctx)}else H2(this.ctx),this.endPath(),this.ctx.rect(n[0],n[1],r,i),this.ctx.clip(),this.ctx.beginPath()}this.current=new Lx(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...s),this.transform(...a)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),oe(this,Mr,r6).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(t){if(!this.contentVisible)return;const n=t.count;t=this.getObject(t.data,t),t.count=n;const s=this.ctx,a=this.processingType3;if(a&&(a.compiled===void 0&&(a.compiled=t4e(t)),a.compiled)){a.compiled(s);return}const o=this._createMaskCanvas(t),r=o.canvas;s.save(),s.setTransform(1,0,0,1,0,0),s.drawImage(r,o.offsetX,o.offsetY),s.restore(),this.compose()}paintImageMaskXObjectRepeat(t,n,s=0,a=0,o,r){if(!this.contentVisible)return;t=this.getObject(t.data,t);const i=this.ctx;i.save();const l=Gn(i);i.transform(n,s,a,o,0,0);const c=this._createMaskCanvas(t);i.setTransform(1,0,0,1,c.offsetX-l[4],c.offsetY-l[5]);for(let u=0,d=r.length;u<d;u+=2){const h=Nt.transform(l,[n,s,a,o,r[u],r[u+1]]),[p,v]=Nt.applyTransform([0,0],h);i.drawImage(c.canvas,p,v)}i.restore(),this.compose()}paintImageMaskXObjectGroup(t){if(!this.contentVisible)return;const n=this.ctx,s=this.current.fillColor,a=this.current.patternFill;for(const o of t){const{data:r,width:i,height:l,transform:c}=o,u=this.cachedCanvases.getCanvas("maskCanvas",i,l),d=u.context;d.save();const h=this.getObject(r,o);Nx(d,h),d.globalCompositeOperation="source-in",d.fillStyle=a?s.getPattern(d,this,Vr(n),fa.FILL):s,d.fillRect(0,0,i,l),d.restore(),n.save(),n.transform(...c),n.scale(1,-1),z2(n,u.canvas,0,0,i,l,0,-1,1,1),n.restore()}this.compose()}paintImageXObject(t){if(!this.contentVisible)return;const n=this.getObject(t);if(!n){sn("Dependent image isn't ready yet");return}this.paintInlineImageXObject(n)}paintImageXObjectRepeat(t,n,s,a){if(!this.contentVisible)return;const o=this.getObject(t);if(!o){sn("Dependent image isn't ready yet");return}const r=o.width,i=o.height,l=[];for(let c=0,u=a.length;c<u;c+=2)l.push({transform:[n,0,0,s,a[c],a[c+1]],x:0,y:0,w:r,h:i});this.paintInlineImageXObjectGroup(o,l)}applyTransferMapsToCanvas(t){return this.current.transferMaps!=="none"&&(t.filter=this.current.transferMaps,t.drawImage(t.canvas,0,0),t.filter="none"),t.canvas}applyTransferMapsToBitmap(t){if(this.current.transferMaps==="none")return t.bitmap;const{bitmap:n,width:s,height:a}=t,o=this.cachedCanvases.getCanvas("inlineImage",s,a),r=o.context;return r.filter=this.current.transferMaps,r.drawImage(n,0,0),r.filter="none",o.canvas}paintInlineImageXObject(t){if(!this.contentVisible)return;const n=t.width,s=t.height,a=this.ctx;if(this.save(),!ma){const{filter:i}=a;i!=="none"&&i!==""&&(a.filter="none")}a.scale(1/n,-1/s);let o;if(t.bitmap)o=this.applyTransferMapsToBitmap(t);else if(typeof HTMLElement=="function"&&t instanceof HTMLElement||!t.data)o=t;else{const l=this.cachedCanvases.getCanvas("inlineImage",n,s).context;Ox(l,t),o=this.applyTransferMapsToCanvas(l)}const r=this._scaleImage(o,Vr(a));a.imageSmoothingEnabled=$x(Gn(a),t.interpolate),z2(a,r.img,0,0,r.paintWidth,r.paintHeight,0,-s,n,s),this.compose(),this.restore()}paintInlineImageXObjectGroup(t,n){if(!this.contentVisible)return;const s=this.ctx;let a;if(t.bitmap)a=t.bitmap;else{const o=t.width,r=t.height,l=this.cachedCanvases.getCanvas("inlineImage",o,r).context;Ox(l,t),a=this.applyTransferMapsToCanvas(l)}for(const o of n)s.save(),s.transform(...o.transform),s.scale(1,-1),z2(s,a,o.x,o.y,o.w,o.h,0,-1,1,1),s.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(t){}markPointProps(t,n){}beginMarkedContent(t){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(t,n){t==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(n)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(t){const n=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(t);const s=this.ctx;this.pendingClip&&(n||(this.pendingClip===Dx?s.clip("evenodd"):s.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),s.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const t=Gn(this.ctx);if(t[1]===0&&t[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(t[0]),Math.abs(t[3]));else{const n=Math.abs(t[0]*t[3]-t[2]*t[1]),s=Math.hypot(t[0],t[2]),a=Math.hypot(t[1],t[3]);this._cachedGetSinglePixelWidth=Math.max(s,a)/n}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:t}=this.current,{a:n,b:s,c:a,d:o}=this.ctx.getTransform();let r,i;if(s===0&&a===0){const l=Math.abs(n),c=Math.abs(o);if(l===c)if(t===0)r=i=1/l;else{const u=l*t;r=i=u<1?1/u:1}else if(t===0)r=1/l,i=1/c;else{const u=l*t,d=c*t;r=u<1?1/u:1,i=d<1?1/d:1}}else{const l=Math.abs(n*o-s*a),c=Math.hypot(n,s),u=Math.hypot(a,o);if(t===0)r=u/l,i=c/l;else{const d=t*l;r=u>d?u/d:1,i=c>d?c/d:1}}this._cachedScaleForStroking[0]=r,this._cachedScaleForStroking[1]=i}return this._cachedScaleForStroking}rescaleAndStroke(t){const{ctx:n}=this,{lineWidth:s}=this.current,[a,o]=this.getScaleForStroking();if(n.lineWidth=s||1,a===1&&o===1){n.stroke();return}const r=n.getLineDash();if(t&&n.save(),n.scale(a,o),r.length>0){const i=Math.max(a,o);n.setLineDash(r.map(l=>l/i)),n.lineDashOffset/=i}n.stroke(),t&&n.restore()}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}};Mr=new WeakSet,o6=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},r6=function(){if(this.pageColors){const t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(t!=="none"){const n=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=n}}},i6=function(t,n,s){const a=new Path2D;return a.addPath(t,new DOMMatrix(s).invertSelf().multiplySelf(n)),a};let zf=S_;for(const e in er)zf.prototype[e]!==void 0&&(zf.prototype[er[e]]=zf.prototype[e]);var Dv,Fv;class pl{static get workerPort(){return y(this,Dv)}static set workerPort(t){if(!(typeof Worker<"u"&&t instanceof Worker)&&t!==null)throw new Error("Invalid `workerPort` type.");U(this,Dv,t)}static get workerSrc(){return y(this,Fv)}static set workerSrc(t){if(typeof t!="string")throw new Error("Invalid `workerSrc` type.");U(this,Fv,t)}}Dv=new WeakMap,Fv=new WeakMap,ne(pl,Dv,null),ne(pl,Fv,"");var qu,Bv;class o4e{constructor({parsedData:t,rawData:n}){ne(this,qu);ne(this,Bv);U(this,qu,t),U(this,Bv,n)}getRaw(){return y(this,Bv)}get(t){return y(this,qu).get(t)??null}getAll(){return d_(y(this,qu))}has(t){return y(this,qu).has(t)}}qu=new WeakMap,Bv=new WeakMap;const yf=Symbol("INTERNAL");var Vv,zv,Hv,rh;class r4e{constructor(t,{name:n,intent:s,usage:a,rbGroups:o}){ne(this,Vv,!1);ne(this,zv,!1);ne(this,Hv,!1);ne(this,rh,!0);U(this,Vv,!!(t&mo.DISPLAY)),U(this,zv,!!(t&mo.PRINT)),this.name=n,this.intent=s,this.usage=a,this.rbGroups=o}get visible(){if(y(this,Hv))return y(this,rh);if(!y(this,rh))return!1;const{print:t,view:n}=this.usage;return y(this,Vv)?(n==null?void 0:n.viewState)!=="OFF":y(this,zv)?(t==null?void 0:t.printState)!=="OFF":!0}_setVisible(t,n,s=!1){t!==yf&&Dn("Internal method `_setVisible` called."),U(this,Hv,s),U(this,rh,n)}}Vv=new WeakMap,zv=new WeakMap,Hv=new WeakMap,rh=new WeakMap;var vc,An,ih,lh,Wv,l6;class i4e{constructor(t,n=mo.DISPLAY){ne(this,Wv);ne(this,vc,null);ne(this,An,new Map);ne(this,ih,null);ne(this,lh,null);if(this.renderingIntent=n,this.name=null,this.creator=null,t!==null){this.name=t.name,this.creator=t.creator,U(this,lh,t.order);for(const s of t.groups)y(this,An).set(s.id,new r4e(n,s));if(t.baseState==="OFF")for(const s of y(this,An).values())s._setVisible(yf,!1);for(const s of t.on)y(this,An).get(s)._setVisible(yf,!0);for(const s of t.off)y(this,An).get(s)._setVisible(yf,!1);U(this,ih,this.getHash())}}isVisible(t){if(y(this,An).size===0)return!0;if(!t)return Zb("Optional content group not defined."),!0;if(t.type==="OCG")return y(this,An).has(t.id)?y(this,An).get(t.id).visible:(sn(`Optional content group not found: ${t.id}`),!0);if(t.type==="OCMD"){if(t.expression)return oe(this,Wv,l6).call(this,t.expression);if(!t.policy||t.policy==="AnyOn"){for(const n of t.ids){if(!y(this,An).has(n))return sn(`Optional content group not found: ${n}`),!0;if(y(this,An).get(n).visible)return!0}return!1}else if(t.policy==="AllOn"){for(const n of t.ids){if(!y(this,An).has(n))return sn(`Optional content group not found: ${n}`),!0;if(!y(this,An).get(n).visible)return!1}return!0}else if(t.policy==="AnyOff"){for(const n of t.ids){if(!y(this,An).has(n))return sn(`Optional content group not found: ${n}`),!0;if(!y(this,An).get(n).visible)return!0}return!1}else if(t.policy==="AllOff"){for(const n of t.ids){if(!y(this,An).has(n))return sn(`Optional content group not found: ${n}`),!0;if(y(this,An).get(n).visible)return!1}return!0}return sn(`Unknown optional content policy ${t.policy}.`),!0}return sn(`Unknown group type ${t.type}.`),!0}setVisibility(t,n=!0,s=!0){var o;const a=y(this,An).get(t);if(!a){sn(`Optional content group not found: ${t}`);return}if(s&&n&&a.rbGroups.length)for(const r of a.rbGroups)for(const i of r)i!==t&&((o=y(this,An).get(i))==null||o._setVisible(yf,!1,!0));a._setVisible(yf,!!n,!0),U(this,vc,null)}setOCGState({state:t,preserveRB:n}){let s;for(const a of t){switch(a){case"ON":case"OFF":case"Toggle":s=a;continue}const o=y(this,An).get(a);if(o)switch(s){case"ON":this.setVisibility(a,!0,n);break;case"OFF":this.setVisibility(a,!1,n);break;case"Toggle":this.setVisibility(a,!o.visible,n);break}}U(this,vc,null)}get hasInitialVisibility(){return y(this,ih)===null||this.getHash()===y(this,ih)}getOrder(){return y(this,An).size?y(this,lh)?y(this,lh).slice():[...y(this,An).keys()]:null}getGroups(){return y(this,An).size>0?d_(y(this,An)):null}getGroup(t){return y(this,An).get(t)||null}getHash(){if(y(this,vc)!==null)return y(this,vc);const t=new eR;for(const[n,s]of y(this,An))t.update(`${n}:${s.visible}`);return U(this,vc,t.hexdigest())}}vc=new WeakMap,An=new WeakMap,ih=new WeakMap,lh=new WeakMap,Wv=new WeakSet,l6=function(t){const n=t.length;if(n<2)return!0;const s=t[0];for(let a=1;a<n;a++){const o=t[a];let r;if(Array.isArray(o))r=oe(this,Wv,l6).call(this,o);else if(y(this,An).has(o))r=y(this,An).get(o).visible;else return sn(`Optional content group not found: ${o}`),!0;switch(s){case"And":if(!r)return!1;break;case"Or":if(r)return!0;break;case"Not":return!r;default:return!0}}return s==="And"};class l4e{constructor(t,{disableRange:n=!1,disableStream:s=!1}){hs(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:a,initialData:o,progressiveDone:r,contentDispositionFilename:i}=t;if(this._queuedChunks=[],this._progressiveDone=r,this._contentDispositionFilename=i,(o==null?void 0:o.length)>0){const l=o instanceof Uint8Array&&o.byteLength===o.buffer.byteLength?o.buffer:new Uint8Array(o).buffer;this._queuedChunks.push(l)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!s,this._isRangeSupported=!n,this._contentLength=a,this._fullRequestReader=null,this._rangeReaders=[],t.addRangeListener((l,c)=>{this._onReceiveData({begin:l,chunk:c})}),t.addProgressListener((l,c)=>{this._onProgress({loaded:l,total:c})}),t.addProgressiveReadListener(l=>{this._onReceiveData({chunk:l})}),t.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),t.transportReady()}_onReceiveData({begin:t,chunk:n}){const s=n instanceof Uint8Array&&n.byteLength===n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer;if(t===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(s):this._queuedChunks.push(s);else{const a=this._rangeReaders.some(function(o){return o._begin!==t?!1:(o._enqueue(s),!0)});hs(a,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var t;return((t=this._fullRequestReader)==null?void 0:t._loaded)??0}_onProgress(t){var n,s,a,o;t.total===void 0?(s=(n=this._rangeReaders[0])==null?void 0:n.onProgress)==null||s.call(n,{loaded:t.loaded}):(o=(a=this._fullRequestReader)==null?void 0:a.onProgress)==null||o.call(a,{loaded:t.loaded,total:t.total})}_onProgressiveDone(){var t;(t=this._fullRequestReader)==null||t.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(t){const n=this._rangeReaders.indexOf(t);n>=0&&this._rangeReaders.splice(n,1)}getFullReader(){hs(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const t=this._queuedChunks;return this._queuedChunks=null,new c4e(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,n){if(n<=this._progressiveDataLength)return null;const s=new u4e(this,t,n);return this._pdfDataRangeTransport.requestDataRange(t,n),this._rangeReaders.push(s),s}cancelAllRequests(t){var n;(n=this._fullRequestReader)==null||n.cancel(t);for(const s of this._rangeReaders.slice(0))s.cancel(t);this._pdfDataRangeTransport.abort()}}class c4e{constructor(t,n,s=!1,a=null){this._stream=t,this._done=s||!1,this._filename=p_(a)?a:null,this._queuedChunks=n||[],this._loaded=0;for(const o of this._queuedChunks)this._loaded+=o.byteLength;this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}_enqueue(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class u4e{constructor(t,n,s){this._stream=t,this._begin=n,this._end=s,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(t){if(!this._done){if(this._requests.length===0)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1});for(const s of this._requests)s.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const n=this._queuedChunk;return this._queuedChunk=null,{value:n,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function d4e(e){let t=!0,n=s("filename\\*","i").exec(e);if(n){n=n[1];let u=i(n);return u=unescape(u),u=l(u),u=c(u),o(u)}if(n=r(e),n){const u=c(n);return o(u)}if(n=s("filename","i").exec(e),n){n=n[1];let u=i(n);return u=c(u),o(u)}function s(u,d){return new RegExp("(?:^|;)\\s*"+u+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',d)}function a(u,d){if(u){if(!/^[\x00-\xFF]+$/.test(d))return d;try{const h=new TextDecoder(u,{fatal:!0}),p=Qb(d);d=h.decode(p),t=!1}catch{}}return d}function o(u){return t&&/[\x80-\xff]/.test(u)&&(u=a("utf-8",u),t&&(u=a("iso-8859-1",u))),u}function r(u){const d=[];let h;const p=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(h=p.exec(u))!==null;){let[,m,g,b]=h;if(m=parseInt(m,10),m in d){if(m===0)break;continue}d[m]=[g,b]}const v=[];for(let m=0;m<d.length&&m in d;++m){let[g,b]=d[m];b=i(b),g&&(b=unescape(b),m===0&&(b=l(b))),v.push(b)}return v.join("")}function i(u){if(u.startsWith('"')){const d=u.slice(1).split('\\"');for(let h=0;h<d.length;++h){const p=d[h].indexOf('"');p!==-1&&(d[h]=d[h].slice(0,p),d.length=h+1),d[h]=d[h].replaceAll(/\\(.)/g,"$1")}u=d.join('"')}return u}function l(u){const d=u.indexOf("'");if(d===-1)return u;const h=u.slice(0,d),v=u.slice(d+1).replace(/^[^']*'/,"");return a(h,v)}function c(u){return!u.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(u)?u:u.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(d,h,p,v){if(p==="q"||p==="Q")return v=v.replaceAll("_"," "),v=v.replaceAll(/=([0-9a-fA-F]{2})/g,function(m,g){return String.fromCharCode(parseInt(g,16))}),a(h,v);try{v=atob(v)}catch{}return a(h,v)})}return""}function pR(e,t){const n=new Headers;if(!e||!t||typeof t!="object")return n;for(const s in t){const a=t[s];a!==void 0&&n.append(s,a)}return n}function n4(e){try{return new URL(e).origin}catch{}return null}function vR({responseHeaders:e,isHttp:t,rangeChunkSize:n,disableRange:s}){const a={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(e.get("Content-Length"),10);return!Number.isInteger(o)||(a.suggestedLength=o,o<=2*n)||s||!t||e.get("Accept-Ranges")!=="bytes"||(e.get("Content-Encoding")||"identity")!=="identity"||(a.allowRangeRequests=!0),a}function mR(e){const t=e.get("Content-Disposition");if(t){let n=d4e(t);if(n.includes("%"))try{n=decodeURIComponent(n)}catch{}if(p_(n))return n}return null}function s4(e,t){return e===404||e===0&&t.startsWith("file:")?new rv('Missing PDF "'+t+'".'):new M1(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)}function gR(e){return e===200||e===206}function bR(e,t,n){return{method:"GET",headers:e,signal:n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function yR(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:(sn(`getArrayBuffer - unexpected data format: ${e}`),new Uint8Array(e).buffer)}class Fx{constructor(t){Vt(this,"_responseOrigin",null);this.source=t,this.isHttp=/^https?:/i.test(t.url),this.headers=pR(this.isHttp,t.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var t;return((t=this._fullRequestReader)==null?void 0:t._loaded)??0}getFullReader(){return hs(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new f4e(this),this._fullRequestReader}getRangeReader(t,n){if(n<=this._progressiveDataLength)return null;const s=new h4e(this,t,n);return this._rangeRequestReaders.push(s),s}cancelAllRequests(t){var n;(n=this._fullRequestReader)==null||n.cancel(t);for(const s of this._rangeRequestReaders.slice(0))s.cancel(t)}}class f4e{constructor(t){this._stream=t,this._reader=null,this._loaded=0,this._filename=null;const n=t.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=Promise.withResolvers(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange;const s=new Headers(t.headers),a=n.url;fetch(a,bR(s,this._withCredentials,this._abortController)).then(o=>{if(t._responseOrigin=n4(o.url),!gR(o.status))throw s4(o.status,a);this._reader=o.body.getReader(),this._headersCapability.resolve();const r=o.headers,{allowRangeRequests:i,suggestedLength:l}=vR({responseHeaders:r,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=i,this._contentLength=l||this._contentLength,this._filename=mR(r),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new Uc("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;await this._headersCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded,total:this._contentLength}),{value:yR(t),done:!1})}cancel(t){var n;(n=this._reader)==null||n.cancel(t),this._abortController.abort()}}class h4e{constructor(t,n,s){this._stream=t,this._reader=null,this._loaded=0;const a=t.source;this._withCredentials=a.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!a.disableStream,this._abortController=new AbortController;const o=new Headers(t.headers);o.append("Range",`bytes=${n}-${s-1}`);const r=a.url;fetch(r,bR(o,this._withCredentials,this._abortController)).then(i=>{const l=n4(i.url);if(l!==t._responseOrigin)throw new Error(`Expected range response-origin "${l}" to match "${t._responseOrigin}".`);if(!gR(i.status))throw s4(i.status,r);this._readCapability.resolve(),this._reader=i.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;await this._readCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded}),{value:yR(t),done:!1})}cancel(t){var n;(n=this._reader)==null||n.cancel(t),this._abortController.abort()}}const ry=200,iy=206;function p4e(e){const t=e.response;return typeof t!="string"?t:Qb(t).buffer}class v4e{constructor({url:t,httpHeaders:n,withCredentials:s}){Vt(this,"_responseOrigin",null);this.url=t,this.isHttp=/^https?:/i.test(t),this.headers=pR(this.isHttp,n),this.withCredentials=s||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}request(t){const n=new XMLHttpRequest,s=this.currXhrId++,a=this.pendingRequests[s]={xhr:n};n.open("GET",this.url),n.withCredentials=this.withCredentials;for(const[o,r]of this.headers)n.setRequestHeader(o,r);return this.isHttp&&"begin"in t&&"end"in t?(n.setRequestHeader("Range",`bytes=${t.begin}-${t.end-1}`),a.expectedStatus=iy):a.expectedStatus=ry,n.responseType="arraybuffer",hs(t.onError,"Expected `onError` callback to be provided."),n.onerror=()=>{t.onError(n.status)},n.onreadystatechange=this.onStateChange.bind(this,s),n.onprogress=this.onProgress.bind(this,s),a.onHeadersReceived=t.onHeadersReceived,a.onDone=t.onDone,a.onError=t.onError,a.onProgress=t.onProgress,n.send(null),s}onProgress(t,n){var a;const s=this.pendingRequests[t];s&&((a=s.onProgress)==null||a.call(s,n))}onStateChange(t,n){const s=this.pendingRequests[t];if(!s)return;const a=s.xhr;if(a.readyState>=2&&s.onHeadersReceived&&(s.onHeadersReceived(),delete s.onHeadersReceived),a.readyState!==4||!(t in this.pendingRequests))return;if(delete this.pendingRequests[t],a.status===0&&this.isHttp){s.onError(a.status);return}const o=a.status||ry;if(!(o===ry&&s.expectedStatus===iy)&&o!==s.expectedStatus){s.onError(a.status);return}const i=p4e(a);if(o===iy){const l=a.getResponseHeader("Content-Range"),c=/bytes (\d+)-(\d+)\/(\d+)/.exec(l);c?s.onDone({begin:parseInt(c[1],10),chunk:i}):(sn('Missing or invalid "Content-Range" header.'),s.onError(0))}else i?s.onDone({begin:0,chunk:i}):s.onError(a.status)}getRequestXhr(t){return this.pendingRequests[t].xhr}isPendingRequest(t){return t in this.pendingRequests}abortRequest(t){const n=this.pendingRequests[t].xhr;delete this.pendingRequests[t],n.abort()}}class m4e{constructor(t){this._source=t,this._manager=new v4e(t),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(t){const n=this._rangeRequestReaders.indexOf(t);n>=0&&this._rangeRequestReaders.splice(n,1)}getFullReader(){return hs(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new g4e(this._manager,this._source),this._fullRequestReader}getRangeReader(t,n){const s=new b4e(this._manager,t,n);return s.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(s),s}cancelAllRequests(t){var n;(n=this._fullRequestReader)==null||n.cancel(t);for(const s of this._rangeRequestReaders.slice(0))s.cancel(t)}}class g4e{constructor(t,n){this._manager=t,this._url=n.url,this._fullRequestId=t.request({onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._headersCapability=Promise.withResolvers(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const t=this._fullRequestId,n=this._manager.getRequestXhr(t);this._manager._responseOrigin=n4(n.responseURL);const s=n.getAllResponseHeaders(),a=new Headers(s?s.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map(i=>{const[l,...c]=i.split(": ");return[l,c.join(": ")]}):[]),{allowRangeRequests:o,suggestedLength:r}=vR({responseHeaders:a,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});o&&(this._isRangeSupported=!0),this._contentLength=r||this._contentLength,this._filename=mR(a),this._isRangeSupported&&this._manager.abortRequest(t),this._headersCapability.resolve()}_onDone(t){if(t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(t){this._storedError=s4(t,this._url),this._headersCapability.reject(this._storedError);for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(t){var n;(n=this.onProgress)==null||n.call(this,{loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersCapability.promise}async read(){if(await this._headersCapability.promise,this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._headersCapability.reject(t);for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class b4e{constructor(t,n,s){this._manager=t,this._url=t.url,this._requestId=t.request({begin:n,end:s,onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_onHeadersReceived(){var n;const t=n4((n=this._manager.getRequestXhr(this._requestId))==null?void 0:n.responseURL);t!==this._manager._responseOrigin&&(this._storedError=new Error(`Expected range response-origin "${t}" to match "${this._manager._responseOrigin}".`),this._onError(0))}_close(){var t;(t=this.onClosed)==null||t.call(this,this)}_onDone(t){const n=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:n,done:!1}):this._queuedChunk=n,this._done=!0;for(const s of this._requests)s.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(t){this._storedError??(this._storedError=s4(t,this._url));for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(t){var n;this.isStreamingSupported||(n=this.onProgress)==null||n.call(this,{loaded:t.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const n=this._queuedChunk;return this._queuedChunk=null,{value:n,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const y4e=/^[a-z][a-z0-9\-+.]+:/i;function w4e(e){if(y4e.test(e))return new URL(e);const t=process.getBuiltinModule("url");return new URL(t.pathToFileURL(e))}class _4e{constructor(t){this.source=t,this.url=w4e(t.url),hs(this.url.protocol==="file:","PDFNodeStream only supports file:// URLs."),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var t;return((t=this._fullRequestReader)==null?void 0:t._loaded)??0}getFullReader(){return hs(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new C4e(this),this._fullRequestReader}getRangeReader(t,n){if(n<=this._progressiveDataLength)return null;const s=new S4e(this,t,n);return this._rangeRequestReaders.push(s),s}cancelAllRequests(t){var n;(n=this._fullRequestReader)==null||n.cancel(t);for(const s of this._rangeRequestReaders.slice(0))s.cancel(t)}}class C4e{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;const n=t.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers();const s=process.getBuiltinModule("fs");s.promises.lstat(this._url).then(a=>{this._contentLength=a.size,this._setReadableStream(s.createReadStream(this._url)),this._headersCapability.resolve()},a=>{a.code==="ENOENT"&&(a=new rv(`Missing PDF "${this._url}".`)),this._storedError=a,this._headersCapability.reject(a)})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",n=>{this._error(n)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new Uc("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class S4e{constructor(t,n,s){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const a=t.source;this._isStreamingSupported=!a.disableStream;const o=process.getBuiltinModule("fs");this._setReadableStream(o.createReadStream(this._url,{start:n,end:s-1}))}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",n=>{this._error(n)}),this._storedError&&this._readableStream.destroy(this._storedError)}}const x4e=1e5,Ha=30,E4e=.8;var Hx,mc,Ua,jv,Kv,Gu,Gi,Uv,qv,Yu,ch,uh,gc,dh,Gv,fh,Xu,Yv,Xv,Ju,Zu,Jv,bc,hh,Il,wR,_R,c6,ko,Cg,u6,CR,SR;const Cs=class Cs{constructor({textContentSource:t,container:n,viewport:s}){ne(this,Il);ne(this,mc,Promise.withResolvers());ne(this,Ua,null);ne(this,jv,!1);ne(this,Kv,!!((Hx=globalThis.FontInspector)!=null&&Hx.enabled));ne(this,Gu,null);ne(this,Gi,null);ne(this,Uv,0);ne(this,qv,0);ne(this,Yu,null);ne(this,ch,null);ne(this,uh,0);ne(this,gc,0);ne(this,dh,Object.create(null));ne(this,Gv,[]);ne(this,fh,null);ne(this,Xu,[]);ne(this,Yv,new WeakMap);ne(this,Xv,null);var l;if(t instanceof ReadableStream)U(this,fh,t);else if(typeof t=="object")U(this,fh,new ReadableStream({start(c){c.enqueue(t),c.close()}}));else throw new Error('No "textContentSource" parameter specified.');U(this,Ua,U(this,ch,n)),U(this,gc,s.scale*(globalThis.devicePixelRatio||1)),U(this,uh,s.rotation),U(this,Gi,{div:null,properties:null,ctx:null});const{pageWidth:a,pageHeight:o,pageX:r,pageY:i}=s.rawDims;U(this,Xv,[1,0,0,-1,-r,i+o]),U(this,qv,a),U(this,Uv,o),oe(l=Cs,ko,CR).call(l),jd(n,s),y(this,mc).promise.finally(()=>{y(Cs,hh).delete(this),U(this,Gi,null),U(this,dh,null)}).catch(()=>{})}static get fontFamilyMap(){const{isWindows:t,isFirefox:n}=Ra.platform;return cn(this,"fontFamilyMap",new Map([["sans-serif",`${t&&n?"Calibri, ":""}sans-serif`],["monospace",`${t&&n?"Lucida Console, ":""}monospace`]]))}render(){const t=()=>{y(this,Yu).read().then(({value:n,done:s})=>{if(s){y(this,mc).resolve();return}y(this,Gu)??U(this,Gu,n.lang),Object.assign(y(this,dh),n.styles),oe(this,Il,wR).call(this,n.items),t()},y(this,mc).reject)};return U(this,Yu,y(this,fh).getReader()),y(Cs,hh).add(this),t(),y(this,mc).promise}update({viewport:t,onBefore:n=null}){var o;const s=t.scale*(globalThis.devicePixelRatio||1),a=t.rotation;if(a!==y(this,uh)&&(n==null||n(),U(this,uh,a),jd(y(this,ch),{rotation:a})),s!==y(this,gc)){n==null||n(),U(this,gc,s);const r={div:null,properties:null,ctx:oe(o=Cs,ko,Cg).call(o,y(this,Gu))};for(const i of y(this,Xu))r.properties=y(this,Yv).get(i),r.div=i,oe(this,Il,c6).call(this,r)}}cancel(){var n;const t=new Uc("TextLayer task cancelled.");(n=y(this,Yu))==null||n.cancel(t).catch(()=>{}),U(this,Yu,null),y(this,mc).reject(t)}get textDivs(){return y(this,Xu)}get textContentItemsStr(){return y(this,Gv)}static cleanup(){if(!(y(this,hh).size>0)){y(this,Ju).clear();for(const{canvas:t}of y(this,Zu).values())t.remove();y(this,Zu).clear()}}};mc=new WeakMap,Ua=new WeakMap,jv=new WeakMap,Kv=new WeakMap,Gu=new WeakMap,Gi=new WeakMap,Uv=new WeakMap,qv=new WeakMap,Yu=new WeakMap,ch=new WeakMap,uh=new WeakMap,gc=new WeakMap,dh=new WeakMap,Gv=new WeakMap,fh=new WeakMap,Xu=new WeakMap,Yv=new WeakMap,Xv=new WeakMap,Ju=new WeakMap,Zu=new WeakMap,Jv=new WeakMap,bc=new WeakMap,hh=new WeakMap,Il=new WeakSet,wR=function(t){var a,o;if(y(this,jv))return;(o=y(this,Gi)).ctx??(o.ctx=oe(a=Cs,ko,Cg).call(a,y(this,Gu)));const n=y(this,Xu),s=y(this,Gv);for(const r of t){if(n.length>x4e){sn("Ignoring additional textDivs for performance reasons."),U(this,jv,!0);return}if(r.str===void 0){if(r.type==="beginMarkedContentProps"||r.type==="beginMarkedContent"){const i=y(this,Ua);U(this,Ua,document.createElement("span")),y(this,Ua).classList.add("markedContent"),r.id!==null&&y(this,Ua).setAttribute("id",`${r.id}`),i.append(y(this,Ua))}else r.type==="endMarkedContent"&&U(this,Ua,y(this,Ua).parentNode);continue}s.push(r.str),oe(this,Il,_R).call(this,r)}},_R=function(t){var m;const n=document.createElement("span"),s={angle:0,canvasWidth:0,hasText:t.str!=="",hasEOL:t.hasEOL,fontSize:0};y(this,Xu).push(n);const a=Nt.transform(y(this,Xv),t.transform);let o=Math.atan2(a[1],a[0]);const r=y(this,dh)[t.fontName];r.vertical&&(o+=Math.PI/2);let i=y(this,Kv)&&r.fontSubstitution||r.fontFamily;i=Cs.fontFamilyMap.get(i)||i;const l=Math.hypot(a[2],a[3]),c=l*oe(m=Cs,ko,SR).call(m,i,y(this,Gu));let u,d;o===0?(u=a[4],d=a[5]-c):(u=a[4]+c*Math.sin(o),d=a[5]-c*Math.cos(o));const h="calc(var(--scale-factor)*",p=n.style;y(this,Ua)===y(this,ch)?(p.left=`${(100*u/y(this,qv)).toFixed(2)}%`,p.top=`${(100*d/y(this,Uv)).toFixed(2)}%`):(p.left=`${h}${u.toFixed(2)}px)`,p.top=`${h}${d.toFixed(2)}px)`),p.fontSize=`${h}${(y(Cs,bc)*l).toFixed(2)}px)`,p.fontFamily=i,s.fontSize=l,n.setAttribute("role","presentation"),n.textContent=t.str,n.dir=t.dir,y(this,Kv)&&(n.dataset.fontName=r.fontSubstitutionLoadedName||t.fontName),o!==0&&(s.angle=o*(180/Math.PI));let v=!1;if(t.str.length>1)v=!0;else if(t.str!==" "&&t.transform[0]!==t.transform[3]){const g=Math.abs(t.transform[0]),b=Math.abs(t.transform[3]);g!==b&&Math.max(g,b)/Math.min(g,b)>1.5&&(v=!0)}if(v&&(s.canvasWidth=r.vertical?t.height:t.width),y(this,Yv).set(n,s),y(this,Gi).div=n,y(this,Gi).properties=s,oe(this,Il,c6).call(this,y(this,Gi)),s.hasText&&y(this,Ua).append(n),s.hasEOL){const g=document.createElement("br");g.setAttribute("role","presentation"),y(this,Ua).append(g)}},c6=function(t){var i;const{div:n,properties:s,ctx:a}=t,{style:o}=n;let r="";if(y(Cs,bc)>1&&(r=`scale(${1/y(Cs,bc)})`),s.canvasWidth!==0&&s.hasText){const{fontFamily:l}=o,{canvasWidth:c,fontSize:u}=s;oe(i=Cs,ko,u6).call(i,a,u*y(this,gc),l);const{width:d}=a.measureText(n.textContent);d>0&&(r=`scaleX(${c*y(this,gc)/d}) ${r}`)}s.angle!==0&&(r=`rotate(${s.angle}deg) ${r}`),r.length>0&&(o.transform=r)},ko=new WeakSet,Cg=function(t=null){let n=y(this,Zu).get(t||(t=""));if(!n){const s=document.createElement("canvas");s.className="hiddenCanvasElement",s.lang=t,document.body.append(s),n=s.getContext("2d",{alpha:!1,willReadFrequently:!0}),y(this,Zu).set(t,n),y(this,Jv).set(n,{size:0,family:""})}return n},u6=function(t,n,s){const a=y(this,Jv).get(t);n===a.size&&s===a.family||(t.font=`${n}px ${s}`,a.size=n,a.family=s)},CR=function(){if(y(this,bc)!==null)return;const t=document.createElement("div");t.style.opacity=0,t.style.lineHeight=1,t.style.fontSize="1px",t.style.position="absolute",t.textContent="X",document.body.append(t),U(this,bc,t.getBoundingClientRect().height),t.remove()},SR=function(t,n){const s=y(this,Ju).get(t);if(s)return s;const a=oe(this,ko,Cg).call(this,n);a.canvas.width=a.canvas.height=Ha,oe(this,ko,u6).call(this,a,Ha,t);const o=a.measureText("");let r=o.fontBoundingBoxAscent,i=Math.abs(o.fontBoundingBoxDescent);if(r){const u=r/(r+i);return y(this,Ju).set(t,u),a.canvas.width=a.canvas.height=0,u}a.strokeStyle="red",a.clearRect(0,0,Ha,Ha),a.strokeText("g",0,0);let l=a.getImageData(0,0,Ha,Ha).data;i=0;for(let u=l.length-1-3;u>=0;u-=4)if(l[u]>0){i=Math.ceil(u/4/Ha);break}a.clearRect(0,0,Ha,Ha),a.strokeText("A",0,Ha),l=a.getImageData(0,0,Ha,Ha).data,r=0;for(let u=0,d=l.length;u<d;u+=4)if(l[u]>0){r=Ha-Math.floor(u/4/Ha);break}a.canvas.width=a.canvas.height=0;const c=r?r/(r+i):E4e;return y(this,Ju).set(t,c),c},ne(Cs,ko),ne(Cs,Ju,new Map),ne(Cs,Zu,new Map),ne(Cs,Jv,new WeakMap),ne(Cs,bc,null),ne(Cs,hh,new Set);let iv=Cs;class lv{static textContent(t){const n=[],s={items:n,styles:Object.create(null)};function a(o){var l;if(!o)return;let r=null;const i=o.name;if(i==="#text")r=o.value;else if(lv.shouldBuildText(i))(l=o==null?void 0:o.attributes)!=null&&l.textContent?r=o.attributes.textContent:o.value&&(r=o.value);else return;if(r!==null&&n.push({str:r}),!!o.children)for(const c of o.children)a(c)}return a(t),s}static shouldBuildText(t){return!(t==="textarea"||t==="input"||t==="option"||t==="select")}}const k4e=65536,A4e=100,T4e=5e3,M4e=ma?Wbe:Vbe,P4e=ma?jbe:lR,R4e=ma?Hbe:zbe,I4e=ma?Kbe:fR;function L4e(e={}){typeof e=="string"||e instanceof URL?e={url:e}:(e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&(e={data:e});const t=new d6,{docId:n}=t,s=e.url?O4e(e.url):null,a=e.data?N4e(e.data):null,o=e.httpHeaders||null,r=e.withCredentials===!0,i=e.password??null,l=e.range instanceof xR?e.range:null,c=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:k4e;let u=e.worker instanceof Hf?e.worker:null;const d=e.verbosity,h=typeof e.docBaseUrl=="string"&&!t4(e.docBaseUrl)?e.docBaseUrl:null,p=typeof e.cMapUrl=="string"?e.cMapUrl:null,v=e.cMapPacked!==!1,m=e.CMapReaderFactory||P4e,g=typeof e.standardFontDataUrl=="string"?e.standardFontDataUrl:null,b=e.StandardFontDataFactory||I4e,C=e.stopAtErrors!==!0,w=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,_=e.isEvalSupported!==!1,x=typeof e.isOffscreenCanvasSupported=="boolean"?e.isOffscreenCanvasSupported:!ma,E=typeof e.isImageDecoderSupported=="boolean"?e.isImageDecoderSupported:!ma&&(Ra.platform.isFirefox||!globalThis.chrome),T=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,R=typeof e.disableFontFace=="boolean"?e.disableFontFace:ma,I=e.fontExtraProperties===!0,M=e.enableXfa===!0,$=e.ownerDocument||globalThis.document,L=e.disableRange===!0,B=e.disableStream===!0,q=e.disableAutoFetch===!0,J=e.pdfBug===!0,Y=e.CanvasFactory||M4e,O=e.FilterFactory||R4e,N=e.enableHWA===!0,V=l?l.length:e.length??NaN,z=typeof e.useSystemFonts=="boolean"?e.useSystemFonts:!ma&&!R,G=typeof e.useWorkerFetch=="boolean"?e.useWorkerFetch:m===lR&&b===fR&&p&&g&&G0(p,document.baseURI)&&G0(g,document.baseURI),Q=null;bbe(d);const K={canvasFactory:new Y({ownerDocument:$,enableHWA:N}),filterFactory:new O({docId:n,ownerDocument:$}),cMapReaderFactory:G?null:new m({baseUrl:p,isCompressed:v}),standardFontDataFactory:G?null:new b({baseUrl:g})};if(!u){const he={verbosity:d,port:pl.workerPort};u=he.port?Hf.fromPort(he):new Hf(he),t._worker=u}const ee={docId:n,apiVersion:"4.10.38",data:a,password:i,disableAutoFetch:q,rangeChunkSize:c,length:V,docBaseUrl:h,enableXfa:M,evaluatorOptions:{maxImageSize:w,disableFontFace:R,ignoreErrors:C,isEvalSupported:_,isOffscreenCanvasSupported:x,isImageDecoderSupported:E,canvasMaxAreaInBytes:T,fontExtraProperties:I,useSystemFonts:z,cMapUrl:G?p:null,standardFontDataUrl:G?g:null}},se={disableFontFace:R,fontExtraProperties:I,ownerDocument:$,pdfBug:J,styleElement:Q,loadingParams:{disableAutoFetch:q,enableXfa:M}};return u.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");if(u.destroyed)throw new Error("Worker was destroyed");const he=u.messageHandler.sendWithPromise("GetDocRequest",ee,a?[a.buffer]:null);let te;if(l)te=new l4e(l,{disableRange:L,disableStream:B});else if(!a){if(!s)throw new Error("getDocument - no `url` parameter provided.");let pe;if(ma)if(G0(s)){if(typeof fetch>"u"||typeof Response>"u"||!("body"in Response.prototype))throw new Error("getDocument - the Fetch API was disabled in Node.js, see `--no-experimental-fetch`.");pe=Fx}else pe=_4e;else pe=G0(s)?Fx:m4e;te=new pe({url:s,length:V,httpHeaders:o,withCredentials:r,rangeChunkSize:c,disableRange:L,disableStream:B})}return he.then(pe=>{if(t.destroyed)throw new Error("Loading aborted");if(u.destroyed)throw new Error("Worker was destroyed");const fe=new Z0(n,pe,u.port),le=new B4e(fe,t,te,se,K);t._transport=le,fe.send("Ready",null)})}).catch(t._capability.reject),t}function O4e(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch{if(ma&&typeof e=="string")return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function N4e(e){if(ma&&typeof Buffer<"u"&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if(typeof e=="string")return Qb(e);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof e=="object"&&!isNaN(e==null?void 0:e.length))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function Bx(e){return typeof e=="object"&&Number.isInteger(e==null?void 0:e.num)&&e.num>=0&&Number.isInteger(e==null?void 0:e.gen)&&e.gen>=0}var K1;const U1=class U1{constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=`d${wa(U1,K1)._++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var t,n,s,a;this.destroyed=!0;try{(t=this._worker)!=null&&t.port&&(this._worker._pendingDestroy=!0),await((n=this._transport)==null?void 0:n.destroy())}catch(o){throw(s=this._worker)!=null&&s.port&&delete this._worker._pendingDestroy,o}this._transport=null,(a=this._worker)==null||a.destroy(),this._worker=null}};K1=new WeakMap,ne(U1,K1,0);let d6=U1;class xR{constructor(t,n,s=!1,a=null){this.length=t,this.initialData=n,this.progressiveDone=s,this.contentDispositionFilename=a,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(t){this._rangeListeners.push(t)}addProgressListener(t){this._progressListeners.push(t)}addProgressiveReadListener(t){this._progressiveReadListeners.push(t)}addProgressiveDoneListener(t){this._progressiveDoneListeners.push(t)}onDataRange(t,n){for(const s of this._rangeListeners)s(t,n)}onDataProgress(t,n){this._readyCapability.promise.then(()=>{for(const s of this._progressListeners)s(t,n)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(const n of this._progressiveReadListeners)n(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,n){Dn("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}class $4e{constructor(t,n){this._pdfInfo=t,this._transport=n}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return cn(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:t="display"}={}){const{renderingIntent:n}=this._transport.getRenderingIntent(t);return this._transport.getOptionalContentConfig(n)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}var yc,Yi,zo,wf,Sg;class D4e{constructor(t,n,s,a=!1){ne(this,zo);ne(this,yc,null);ne(this,Yi,!1);this._pageIndex=t,this._pageInfo=n,this._transport=s,this._stats=a?new Ex:null,this._pdfBug=a,this.commonObjs=s.commonObjs,this.objs=new ER,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:t,rotation:n=this.rotate,offsetX:s=0,offsetY:a=0,dontFlip:o=!1}={}){return new h2({viewBox:this.view,userUnit:this.userUnit,scale:t,rotation:n,offsetX:s,offsetY:a,dontFlip:o})}getAnnotations({intent:t="display"}={}){const{renderingIntent:n}=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,n)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return cn(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var t;return((t=this._transport._htmlForXfa)==null?void 0:t.children[this._pageIndex])||null}render({canvasContext:t,viewport:n,intent:s="display",annotationMode:a=nc.ENABLE,transform:o=null,background:r=null,optionalContentConfigPromise:i=null,annotationCanvasMap:l=null,pageColors:c=null,printAnnotationStorage:u=null,isEditing:d=!1}){var _,x;(_=this._stats)==null||_.time("Overall");const h=this._transport.getRenderingIntent(s,a,u,d),{renderingIntent:p,cacheKey:v}=h;U(this,Yi,!1),oe(this,zo,Sg).call(this),i||(i=this._transport.getOptionalContentConfig(p));let m=this._intentStates.get(v);m||(m=Object.create(null),this._intentStates.set(v,m)),m.streamReaderCancelTimeout&&(clearTimeout(m.streamReaderCancelTimeout),m.streamReaderCancelTimeout=null);const g=!!(p&mo.PRINT);m.displayReadyCapability||(m.displayReadyCapability=Promise.withResolvers(),m.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(x=this._stats)==null||x.time("Page Request"),this._pumpOperatorList(h));const b=E=>{var T;m.renderTasks.delete(C),(this._maybeCleanupAfterRender||g)&&U(this,Yi,!0),oe(this,zo,wf).call(this,!g),E?(C.capability.reject(E),this._abortOperatorList({intentState:m,reason:E instanceof Error?E:new Error(E)})):C.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),(T=globalThis.Stats)!=null&&T.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},C=new h6({callback:b,params:{canvasContext:t,viewport:n,transform:o,background:r},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:l,operatorList:m.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!g,pdfBug:this._pdfBug,pageColors:c});(m.renderTasks||(m.renderTasks=new Set)).add(C);const w=C.task;return Promise.all([m.displayReadyCapability.promise,i]).then(([E,T])=>{var R;if(this.destroyed){b();return}if((R=this._stats)==null||R.time("Rendering"),!(T.renderingIntent&p))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");C.initializeGraphics({transparency:E,optionalContentConfig:T}),C.operatorListChanged()}).catch(b),w}getOperatorList({intent:t="display",annotationMode:n=nc.ENABLE,printAnnotationStorage:s=null,isEditing:a=!1}={}){var c;function o(){i.operatorList.lastChunk&&(i.opListReadCapability.resolve(i.operatorList),i.renderTasks.delete(l))}const r=this._transport.getRenderingIntent(t,n,s,a,!0);let i=this._intentStates.get(r.cacheKey);i||(i=Object.create(null),this._intentStates.set(r.cacheKey,i));let l;return i.opListReadCapability||(l=Object.create(null),l.operatorListChanged=o,i.opListReadCapability=Promise.withResolvers(),(i.renderTasks||(i.renderTasks=new Set)).add(l),i.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(c=this._stats)==null||c.time("Page Request"),this._pumpOperatorList(r)),i.opListReadCapability.promise}streamTextContent({includeMarkedContent:t=!1,disableNormalization:n=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:t===!0,disableNormalization:n===!0},{highWaterMark:100,size(a){return a.items.length}})}getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then(s=>lv.textContent(s));const n=this.streamTextContent(t);return new Promise(function(s,a){function o(){r.read().then(function({value:l,done:c}){if(c){s(i);return}i.lang??(i.lang=l.lang),Object.assign(i.styles,l.styles),i.items.push(...l.items),o()},a)}const r=n.getReader(),i={items:[],styles:Object.create(null),lang:null};o()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const t=[];for(const n of this._intentStates.values())if(this._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),!n.opListReadCapability)for(const s of n.renderTasks)t.push(s.completed),s.cancel();return this.objs.clear(),U(this,Yi,!1),oe(this,zo,Sg).call(this),Promise.all(t)}cleanup(t=!1){U(this,Yi,!0);const n=oe(this,zo,wf).call(this,!1);return t&&n&&this._stats&&(this._stats=new Ex),n}_startRenderPage(t,n){var a,o;const s=this._intentStates.get(n);s&&((a=this._stats)==null||a.timeEnd("Page Request"),(o=s.displayReadyCapability)==null||o.resolve(t))}_renderPageChunk(t,n){for(let s=0,a=t.length;s<a;s++)n.operatorList.fnArray.push(t.fnArray[s]),n.operatorList.argsArray.push(t.argsArray[s]);n.operatorList.lastChunk=t.lastChunk,n.operatorList.separateAnnots=t.separateAnnots;for(const s of n.renderTasks)s.operatorListChanged();t.lastChunk&&oe(this,zo,wf).call(this,!0)}_pumpOperatorList({renderingIntent:t,cacheKey:n,annotationStorageSerializable:s,modifiedIds:a}){const{map:o,transfer:r}=s,l=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:n,annotationStorage:o,modifiedIds:a},r).getReader(),c=this._intentStates.get(n);c.streamReader=l;const u=()=>{l.read().then(({value:d,done:h})=>{if(h){c.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(d,c),u())},d=>{if(c.streamReader=null,!this._transport.destroyed){if(c.operatorList){c.operatorList.lastChunk=!0;for(const h of c.renderTasks)h.operatorListChanged();oe(this,zo,wf).call(this,!0)}if(c.displayReadyCapability)c.displayReadyCapability.reject(d);else if(c.opListReadCapability)c.opListReadCapability.reject(d);else throw d}})};u()}_abortOperatorList({intentState:t,reason:n,force:s=!1}){if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!s){if(t.renderTasks.size>0)return;if(n instanceof h_){let a=A4e;n.extraDelay>0&&n.extraDelay<1e3&&(a+=n.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:n,force:!0})},a);return}}if(t.streamReader.cancel(new Uc(n.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(const[a,o]of this._intentStates)if(o===t){this._intentStates.delete(a);break}this.cleanup()}}}get stats(){return this._stats}}yc=new WeakMap,Yi=new WeakMap,zo=new WeakSet,wf=function(t=!1){if(oe(this,zo,Sg).call(this),!y(this,Yi)||this.destroyed)return!1;if(t)return U(this,yc,setTimeout(()=>{U(this,yc,null),oe(this,zo,wf).call(this,!1)},T4e)),!1;for(const{renderTasks:n,operatorList:s}of this._intentStates.values())if(n.size>0||!s.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),U(this,Yi,!1),!0},Sg=function(){y(this,yc)&&(clearTimeout(y(this,yc)),U(this,yc,null))};var Xi,q1;class F4e{constructor(){ne(this,Xi,new Map);ne(this,q1,Promise.resolve())}postMessage(t,n){const s={data:structuredClone(t,n?{transfer:n}:null)};y(this,q1).then(()=>{for(const[a]of y(this,Xi))a.call(this,s)})}addEventListener(t,n,s=null){let a=null;if((s==null?void 0:s.signal)instanceof AbortSignal){const{signal:o}=s;if(o.aborted){sn("LoopbackPort - cannot use an `aborted` signal.");return}const r=()=>this.removeEventListener(t,n);a=()=>o.removeEventListener("abort",r),o.addEventListener("abort",r)}y(this,Xi).set(n,a)}removeEventListener(t,n){const s=y(this,Xi).get(n);s==null||s(),y(this,Xi).delete(n)}terminate(){for(const[,t]of y(this,Xi))t==null||t();y(this,Xi).clear()}}Xi=new WeakMap,q1=new WeakMap;var G1,Qu,ed,ph,xg,vh,Eg;const qn=class qn{constructor({name:t=null,port:n=null,verbosity:s=ybe()}={}){ne(this,ph);var a;if(this.name=t,this.destroyed=!1,this.verbosity=s,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,n){if((a=y(qn,ed))!=null&&a.has(n))throw new Error("Cannot use more than one PDFWorker per port.");(y(qn,ed)||U(qn,ed,new WeakMap)).set(n,this),this._initializeFromPort(n);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(t){this._port=t,this._messageHandler=new Z0("main","worker",t),this._messageHandler.on("ready",function(){}),oe(this,ph,xg).call(this)}_initialize(){if(y(qn,Qu)||y(qn,vh,Eg)){this._setupFakeWorker();return}let{workerSrc:t}=qn;try{qn._isSameOrigin(window.location.href,t)||(t=qn._createCDNWrapper(new URL(t,window.location).href));const n=new Worker(t,{type:"module"}),s=new Z0("main","worker",n),a=()=>{o.abort(),s.destroy(),n.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},o=new AbortController;n.addEventListener("error",()=>{this._webWorker||a()},{signal:o.signal}),s.on("test",i=>{if(o.abort(),this.destroyed||!i){a();return}this._messageHandler=s,this._port=n,this._webWorker=n,oe(this,ph,xg).call(this)}),s.on("ready",i=>{if(o.abort(),this.destroyed){a();return}try{r()}catch{this._setupFakeWorker()}});const r=()=>{const i=new Uint8Array;s.send("test",i,[i.buffer])};r();return}catch{Zb("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){y(qn,Qu)||(sn("Setting up fake worker."),U(qn,Qu,!0)),qn._setupFakeWorkerGlobal.then(t=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const n=new F4e;this._port=n;const s=`fake${wa(qn,G1)._++}`,a=new Z0(s+"_worker",s,n);t.setup(a,n),this._messageHandler=new Z0(s,s+"_worker",n),oe(this,ph,xg).call(this)}).catch(t=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${t.message}".`))})}destroy(){var t,n,s;this.destroyed=!0,(t=this._webWorker)==null||t.terminate(),this._webWorker=null,(n=y(qn,ed))==null||n.delete(this._port),this._port=null,(s=this._messageHandler)==null||s.destroy(),this._messageHandler=null}static fromPort(t){var s;if(!(t!=null&&t.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const n=(s=y(this,ed))==null?void 0:s.get(t.port);if(n){if(n._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return n}return new qn(t)}static get workerSrc(){if(pl.workerSrc)return pl.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return cn(this,"_setupFakeWorkerGlobal",(async()=>y(this,vh,Eg)?y(this,vh,Eg):(await import(this.workerSrc)).WorkerMessageHandler)())}};G1=new WeakMap,Qu=new WeakMap,ed=new WeakMap,ph=new WeakSet,xg=function(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})},vh=new WeakSet,Eg=function(){var t;try{return((t=globalThis.pdfjsWorker)==null?void 0:t.WorkerMessageHandler)||null}catch{return null}},ne(qn,vh),ne(qn,G1,0),ne(qn,Qu,!1),ne(qn,ed),ma&&(U(qn,Qu,!0),pl.workerSrc||(pl.workerSrc="./pdf.worker.mjs")),qn._isSameOrigin=(t,n)=>{let s;try{if(s=new URL(t),!s.origin||s.origin==="null")return!1}catch{return!1}const a=new URL(n,s);return s.origin===a.origin},qn._createCDNWrapper=t=>{const n=`await import("${t}");`;return URL.createObjectURL(new Blob([n],{type:"text/javascript"}))};let Hf=qn;var Ji,ti,mh,gh,Zi,td,sp;class B4e{constructor(t,n,s,a,o){ne(this,td);ne(this,Ji,new Map);ne(this,ti,new Map);ne(this,mh,new Map);ne(this,gh,new Map);ne(this,Zi,null);this.messageHandler=t,this.loadingTask=n,this.commonObjs=new ER,this.fontLoader=new Fbe({ownerDocument:a.ownerDocument,styleElement:a.styleElement}),this.loadingParams=a.loadingParams,this._params=a,this.canvasFactory=o.canvasFactory,this.filterFactory=o.filterFactory,this.cMapReaderFactory=o.cMapReaderFactory,this.standardFontDataFactory=o.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=s,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}get annotationStorage(){return cn(this,"annotationStorage",new g_)}getRenderingIntent(t,n=nc.ENABLE,s=null,a=!1,o=!1){let r=mo.DISPLAY,i=e6;switch(t){case"any":r=mo.ANY;break;case"display":break;case"print":r=mo.PRINT;break;default:sn(`getRenderingIntent - invalid intent: ${t}`)}const l=r&mo.PRINT&&s instanceof nR?s:this.annotationStorage;switch(n){case nc.DISABLE:r+=mo.ANNOTATIONS_DISABLE;break;case nc.ENABLE:break;case nc.ENABLE_FORMS:r+=mo.ANNOTATIONS_FORMS;break;case nc.ENABLE_STORAGE:r+=mo.ANNOTATIONS_STORAGE,i=l.serializable;break;default:sn(`getRenderingIntent - invalid annotationMode: ${n}`)}a&&(r+=mo.IS_EDITING),o&&(r+=mo.OPLIST);const{ids:c,hash:u}=l.modifiedIds,d=[r,i.hash,u];return{renderingIntent:r,cacheKey:d.join("_"),annotationStorageSerializable:i,modifiedIds:c}}destroy(){var s;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),(s=y(this,Zi))==null||s.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const a of y(this,ti).values())t.push(a._destroy());y(this,ti).clear(),y(this,mh).clear(),y(this,gh).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then(()=>{var a,o;this.commonObjs.clear(),this.fontLoader.clear(),y(this,Ji).clear(),this.filterFactory.destroy(),iv.cleanup(),(a=this._networkStream)==null||a.cancelAllRequests(new Uc("Worker was terminated.")),(o=this.messageHandler)==null||o.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:t,loadingTask:n}=this;t.on("GetReader",(s,a)=>{hs(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=o=>{this._lastProgress={loaded:o.loaded,total:o.total}},a.onPull=()=>{this._fullReader.read().then(function({value:o,done:r}){if(r){a.close();return}hs(o instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),a.enqueue(new Uint8Array(o),1,[o])}).catch(o=>{a.error(o)})},a.onCancel=o=>{this._fullReader.cancel(o),a.ready.catch(r=>{if(!this.destroyed)throw r})}}),t.on("ReaderHeadersReady",async s=>{var i;await this._fullReader.headersReady;const{isStreamingSupported:a,isRangeSupported:o,contentLength:r}=this._fullReader;return(!a||!o)&&(this._lastProgress&&((i=n.onProgress)==null||i.call(n,this._lastProgress)),this._fullReader.onProgress=l=>{var c;(c=n.onProgress)==null||c.call(n,{loaded:l.loaded,total:l.total})}),{isStreamingSupported:a,isRangeSupported:o,contentLength:r}}),t.on("GetRangeReader",(s,a)=>{hs(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const o=this._networkStream.getRangeReader(s.begin,s.end);if(!o){a.close();return}a.onPull=()=>{o.read().then(function({value:r,done:i}){if(i){a.close();return}hs(r instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),a.enqueue(new Uint8Array(r),1,[r])}).catch(r=>{a.error(r)})},a.onCancel=r=>{o.cancel(r),a.ready.catch(i=>{if(!this.destroyed)throw i})}}),t.on("GetDoc",({pdfInfo:s})=>{this._numPages=s.numPages,this._htmlForXfa=s.htmlForXfa,delete s.htmlForXfa,n._capability.resolve(new $4e(s,this))}),t.on("DocException",s=>{n._capability.reject(Wa(s))}),t.on("PasswordRequest",s=>{U(this,Zi,Promise.withResolvers());try{if(!n.onPassword)throw Wa(s);const a=o=>{o instanceof Error?y(this,Zi).reject(o):y(this,Zi).resolve({password:o})};n.onPassword(a,s.code)}catch(a){y(this,Zi).reject(a)}return y(this,Zi).promise}),t.on("DataLoaded",s=>{var a;(a=n.onProgress)==null||a.call(n,{loaded:s.length,total:s.length}),this.downloadInfoCapability.resolve(s)}),t.on("StartRenderPage",s=>{if(this.destroyed)return;y(this,ti).get(s.pageIndex)._startRenderPage(s.transparency,s.cacheKey)}),t.on("commonobj",([s,a,o])=>{var r;if(this.destroyed||this.commonObjs.has(s))return null;switch(a){case"Font":const{disableFontFace:i,fontExtraProperties:l,pdfBug:c}=this._params;if("error"in o){const p=o.error;sn(`Error during font loading: ${p}`),this.commonObjs.resolve(s,p);break}const u=c&&((r=globalThis.FontInspector)!=null&&r.enabled)?(p,v)=>globalThis.FontInspector.fontAdded(p,v):null,d=new Bbe(o,{disableFontFace:i,fontExtraProperties:l,inspectFont:u});this.fontLoader.bind(d).catch(()=>t.sendWithPromise("FontFallback",{id:s})).finally(()=>{!l&&d.data&&(d.data=null),this.commonObjs.resolve(s,d)});break;case"CopyLocalImage":const{imageRef:h}=o;hs(h,"The imageRef must be defined.");for(const p of y(this,ti).values())for(const[,v]of p.objs)if((v==null?void 0:v.ref)===h)return v.dataLen?(this.commonObjs.resolve(s,structuredClone(v)),v.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(s,o);break;default:throw new Error(`Got unknown common object type ${a}`)}return null}),t.on("obj",([s,a,o,r])=>{var l;if(this.destroyed)return;const i=y(this,ti).get(a);if(!i.objs.has(s)){if(i._intentStates.size===0){(l=r==null?void 0:r.bitmap)==null||l.close();return}switch(o){case"Image":i.objs.resolve(s,r),(r==null?void 0:r.dataLen)>pbe&&(i._maybeCleanupAfterRender=!0);break;case"Pattern":i.objs.resolve(s,r);break;default:throw new Error(`Got unknown object type ${o}`)}}}),t.on("DocProgress",s=>{var a;this.destroyed||(a=n.onProgress)==null||a.call(n,{loaded:s.loaded,total:s.total})}),t.on("FetchBuiltInCMap",async s=>{if(this.destroyed)throw new Error("Worker was destroyed.");if(!this.cMapReaderFactory)throw new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.");return this.cMapReaderFactory.fetch(s)}),t.on("FetchStandardFontData",async s=>{if(this.destroyed)throw new Error("Worker was destroyed.");if(!this.standardFontDataFactory)throw new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.");return this.standardFontDataFactory.fetch(s)})}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var s;this.annotationStorage.size<=0&&sn("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:t,transfer:n}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:t,filename:((s=this._fullReader)==null?void 0:s.filename)??null},n).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));const n=t-1,s=y(this,mh).get(n);if(s)return s;const a=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(o=>{if(this.destroyed)throw new Error("Transport destroyed");o.refStr&&y(this,gh).set(o.refStr,t);const r=new D4e(n,o,this,this._params.pdfBug);return y(this,ti).set(n,r),r});return y(this,mh).set(n,a),a}getPageIndex(t){return Bx(t)?this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(t,n){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:n})}getFieldObjects(){return oe(this,td,sp).call(this,"GetFieldObjects")}hasJSActions(){return oe(this,td,sp).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return oe(this,td,sp).call(this,"GetDocJSActions")}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(t){return oe(this,td,sp).call(this,"GetOptionalContentConfig").then(n=>new i4e(n,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const t="GetMetadata",n=y(this,Ji).get(t);if(n)return n;const s=this.messageHandler.sendWithPromise(t,null).then(a=>{var o,r;return{info:a[0],metadata:a[1]?new o4e(a[1]):null,contentDispositionFilename:((o=this._fullReader)==null?void 0:o.filename)??null,contentLength:((r=this._fullReader)==null?void 0:r.contentLength)??null}});return y(this,Ji).set(t,s),s}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const n of y(this,ti).values())if(!n.cleanup())throw new Error(`startCleanup: Page ${n.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),y(this,Ji).clear(),this.filterFactory.destroy(!0),iv.cleanup()}}cachedPageNumber(t){if(!Bx(t))return null;const n=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`;return y(this,gh).get(n)??null}}Ji=new WeakMap,ti=new WeakMap,mh=new WeakMap,gh=new WeakMap,Zi=new WeakMap,td=new WeakSet,sp=function(t,n=null){const s=y(this,Ji).get(t);if(s)return s;const a=this.messageHandler.sendWithPromise(t,n);return y(this,Ji).set(t,a),a};const V0=Symbol("INITIAL_DATA");var ro,Zv,f6;class ER{constructor(){ne(this,Zv);ne(this,ro,Object.create(null))}get(t,n=null){if(n){const a=oe(this,Zv,f6).call(this,t);return a.promise.then(()=>n(a.data)),null}const s=y(this,ro)[t];if(!s||s.data===V0)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return s.data}has(t){const n=y(this,ro)[t];return!!n&&n.data!==V0}delete(t){const n=y(this,ro)[t];return!n||n.data===V0?!1:(delete y(this,ro)[t],!0)}resolve(t,n=null){const s=oe(this,Zv,f6).call(this,t);s.data=n,s.resolve()}clear(){var t;for(const n in y(this,ro)){const{data:s}=y(this,ro)[n];(t=s==null?void 0:s.bitmap)==null||t.close()}U(this,ro,Object.create(null))}*[Symbol.iterator](){for(const t in y(this,ro)){const{data:n}=y(this,ro)[t];n!==V0&&(yield[t,n])}}}ro=new WeakMap,Zv=new WeakSet,f6=function(t){var n;return(n=y(this,ro))[t]||(n[t]={...Promise.withResolvers(),data:V0})};var wc;class V4e{constructor(t){ne(this,wc,null);U(this,wc,t),this.onContinue=null}get promise(){return y(this,wc).capability.promise}cancel(t=0){y(this,wc).cancel(null,t)}get separateAnnots(){const{separateAnnots:t}=y(this,wc).operatorList;if(!t)return!1;const{annotationCanvasMap:n}=y(this,wc);return t.form||t.canvas&&(n==null?void 0:n.size)>0}}wc=new WeakMap;var _c,nd;const vu=class vu{constructor({callback:t,params:n,objs:s,commonObjs:a,annotationCanvasMap:o,operatorList:r,pageIndex:i,canvasFactory:l,filterFactory:c,useRequestAnimationFrame:u=!1,pdfBug:d=!1,pageColors:h=null}){ne(this,_c,null);this.callback=t,this.params=n,this.objs=s,this.commonObjs=a,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=r,this._pageIndex=i,this.canvasFactory=l,this.filterFactory=c,this._pdfBug=d,this.pageColors=h,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=u===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new V4e(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:n}){var i,l;if(this.cancelled)return;if(this._canvas){if(y(vu,nd).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");y(vu,nd).add(this._canvas)}this._pdfBug&&((i=globalThis.StepperManager)!=null&&i.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:s,viewport:a,transform:o,background:r}=this.params;this.gfx=new zf(s,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:n},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:o,viewport:a,transparency:t,background:r}),this.operatorListIdx=0,this.graphicsReady=!0,(l=this.graphicsReadyCallback)==null||l.call(this)}cancel(t=null,n=0){var s;this.running=!1,this.cancelled=!0,(s=this.gfx)==null||s.endDrawing(),y(this,_c)&&(window.cancelAnimationFrame(y(this,_c)),U(this,_c,null)),y(vu,nd).delete(this._canvas),this.callback(t||new h_(`Rendering cancelled, page ${this._pageIndex+1}`,n))}operatorListChanged(){var t;if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}(t=this.stepper)==null||t.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?U(this,_c,window.requestAnimationFrame(()=>{U(this,_c,null),this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),y(vu,nd).delete(this._canvas),this.callback())))}};_c=new WeakMap,nd=new WeakMap,ne(vu,nd,new WeakSet);let h6=vu;const z4e="4.10.38",H4e="f9bea397f";function Vx(e){return Math.floor(Math.max(0,Math.min(1,e))*255).toString(16).padStart(2,"0")}function z0(e){return Math.max(0,Math.min(255,255*e))}class zx{static CMYK_G([t,n,s,a]){return["G",1-Math.min(1,.3*t+.59*s+.11*n+a)]}static G_CMYK([t]){return["CMYK",0,0,0,1-t]}static G_RGB([t]){return["RGB",t,t,t]}static G_rgb([t]){return t=z0(t),[t,t,t]}static G_HTML([t]){const n=Vx(t);return`#${n}${n}${n}`}static RGB_G([t,n,s]){return["G",.3*t+.59*n+.11*s]}static RGB_rgb(t){return t.map(z0)}static RGB_HTML(t){return`#${t.map(Vx).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([t,n,s,a]){return["RGB",1-Math.min(1,t+a),1-Math.min(1,s+a),1-Math.min(1,n+a)]}static CMYK_rgb([t,n,s,a]){return[z0(1-Math.min(1,t+a)),z0(1-Math.min(1,s+a)),z0(1-Math.min(1,n+a))]}static CMYK_HTML(t){const n=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(n)}static RGB_CMYK([t,n,s]){const a=1-t,o=1-n,r=1-s,i=Math.min(a,o,r);return["CMYK",a,o,r,i]}}class W4e{create(t,n,s=!1){if(t<=0||n<=0)throw new Error("Invalid SVG dimensions");const a=this._createSVG("svg:svg");return a.setAttribute("version","1.1"),s||(a.setAttribute("width",`${t}px`),a.setAttribute("height",`${n}px`)),a.setAttribute("preserveAspectRatio","none"),a.setAttribute("viewBox",`0 0 ${t} ${n}`),a}createElement(t){if(typeof t!="string")throw new Error("Invalid SVG element type");return this._createSVG(t)}_createSVG(t){Dn("Abstract method `_createSVG` called.")}}class y_ extends W4e{_createSVG(t){return document.createElementNS(Ri,t)}}class kR{static setupStorage(t,n,s,a,o){const r=a.getValue(n,{value:null});switch(s.name){case"textarea":if(r.value!==null&&(t.textContent=r.value),o==="print")break;t.addEventListener("input",i=>{a.setValue(n,{value:i.target.value})});break;case"input":if(s.attributes.type==="radio"||s.attributes.type==="checkbox"){if(r.value===s.attributes.xfaOn?t.setAttribute("checked",!0):r.value===s.attributes.xfaOff&&t.removeAttribute("checked"),o==="print")break;t.addEventListener("change",i=>{a.setValue(n,{value:i.target.checked?i.target.getAttribute("xfaOn"):i.target.getAttribute("xfaOff")})})}else{if(r.value!==null&&t.setAttribute("value",r.value),o==="print")break;t.addEventListener("input",i=>{a.setValue(n,{value:i.target.value})})}break;case"select":if(r.value!==null){t.setAttribute("value",r.value);for(const i of s.children)i.attributes.value===r.value?i.attributes.selected=!0:i.attributes.hasOwnProperty("selected")&&delete i.attributes.selected}t.addEventListener("input",i=>{const l=i.target.options,c=l.selectedIndex===-1?"":l[l.selectedIndex].value;a.setValue(n,{value:c})});break}}static setAttributes({html:t,element:n,storage:s=null,intent:a,linkService:o}){const{attributes:r}=n,i=t instanceof HTMLAnchorElement;r.type==="radio"&&(r.name=`${r.name}-${a}`);for(const[l,c]of Object.entries(r))if(c!=null)switch(l){case"class":c.length&&t.setAttribute(l,c.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",c);break;case"style":Object.assign(t.style,c);break;case"textContent":t.textContent=c;break;default:(!i||l!=="href"&&l!=="newWindow")&&t.setAttribute(l,c)}i&&o.addLinkAttributes(t,r.href,r.newWindow),s&&r.dataId&&this.setupStorage(t,r.dataId,n,s)}static render(t){var d,h;const n=t.annotationStorage,s=t.linkService,a=t.xfaHtml,o=t.intent||"display",r=document.createElement(a.name);a.attributes&&this.setAttributes({html:r,element:a,intent:o,linkService:s});const i=o!=="richText",l=t.div;if(l.append(r),t.viewport){const p=`matrix(${t.viewport.transform.join(",")})`;l.style.transform=p}i&&l.setAttribute("class","xfaLayer xfaFont");const c=[];if(a.children.length===0){if(a.value){const p=document.createTextNode(a.value);r.append(p),i&&lv.shouldBuildText(a.name)&&c.push(p)}return{textDivs:c}}const u=[[a,-1,r]];for(;u.length>0;){const[p,v,m]=u.at(-1);if(v+1===p.children.length){u.pop();continue}const g=p.children[++u.at(-1)[1]];if(g===null)continue;const{name:b}=g;if(b==="#text"){const w=document.createTextNode(g.value);c.push(w),m.append(w);continue}const C=(d=g==null?void 0:g.attributes)!=null&&d.xmlns?document.createElementNS(g.attributes.xmlns,b):document.createElement(b);if(m.append(C),g.attributes&&this.setAttributes({html:C,element:g,storage:n,intent:o,linkService:s}),((h=g.children)==null?void 0:h.length)>0)u.push([g,-1,C]);else if(g.value){const w=document.createTextNode(g.value);i&&lv.shouldBuildText(b)&&c.push(w),C.append(w)}}for(const p of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))p.setAttribute("readOnly",!0);return{textDivs:c}}static update(t){const n=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=n,t.div.hidden=!1}}const v2=1e3,j4e=9,Ud=new WeakSet;function Bc(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class K4e{static create(t){switch(t.data.annotationType){case _s.LINK:return new AR(t);case _s.TEXT:return new U4e(t);case _s.WIDGET:switch(t.data.fieldType){case"Tx":return new q4e(t);case"Btn":return t.data.radioButton?new PR(t):t.data.checkBox?new Y4e(t):new X4e(t);case"Ch":return new J4e(t);case"Sig":return new G4e(t)}return new tf(t);case _s.POPUP:return new v6(t);case _s.FREETEXT:return new NR(t);case _s.LINE:return new Q4e(t);case _s.SQUARE:return new eye(t);case _s.CIRCLE:return new tye(t);case _s.POLYLINE:return new $R(t);case _s.CARET:return new sye(t);case _s.INK:return new w_(t);case _s.POLYGON:return new nye(t);case _s.HIGHLIGHT:return new DR(t);case _s.UNDERLINE:return new aye(t);case _s.SQUIGGLY:return new oye(t);case _s.STRIKEOUT:return new rye(t);case _s.STAMP:return new FR(t);case _s.FILEATTACHMENT:return new iye(t);default:return new us(t)}}}var sd,bh,yh,Qv,p6;const x_=class x_{constructor(t,{isRenderable:n=!1,ignoreBorder:s=!1,createQuadrilaterals:a=!1}={}){ne(this,Qv);ne(this,sd,null);ne(this,bh,!1);ne(this,yh,null);this.isRenderable=n,this.data=t.data,this.layer=t.layer,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,n&&(this.container=this._createContainer(s)),a&&this._createQuadrilaterals()}static _hasPopupData({titleObj:t,contentsObj:n,richText:s}){return!!(t!=null&&t.str||n!=null&&n.str||s!=null&&s.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return x_._hasPopupData(this.data)}updateEdited(t){var s;if(!this.container)return;y(this,sd)||U(this,sd,{rect:this.data.rect.slice(0)});const{rect:n}=t;n&&oe(this,Qv,p6).call(this,n),(s=y(this,yh))==null||s.popup.updateEdited(t)}resetEdited(){var t;y(this,sd)&&(oe(this,Qv,p6).call(this,y(this,sd).rect),(t=y(this,yh))==null||t.popup.resetEdited(),U(this,sd,null))}_createContainer(t){const{data:n,parent:{page:s,viewport:a}}=this,o=document.createElement("section");o.setAttribute("data-annotation-id",n.id),this instanceof tf||(o.tabIndex=v2);const{style:r}=o;if(r.zIndex=this.parent.zIndex++,n.alternativeText&&(o.title=n.alternativeText),n.noRotate&&o.classList.add("norotate"),!n.rect||this instanceof v6){const{rotation:m}=n;return!n.hasOwnCanvas&&m!==0&&this.setRotation(m,o),o}const{width:i,height:l}=Bc(n.rect);if(!t&&n.borderStyle.width>0){r.borderWidth=`${n.borderStyle.width}px`;const m=n.borderStyle.horizontalCornerRadius,g=n.borderStyle.verticalCornerRadius;if(m>0||g>0){const C=`calc(${m}px * var(--scale-factor)) / calc(${g}px * var(--scale-factor))`;r.borderRadius=C}else if(this instanceof PR){const C=`calc(${i}px * var(--scale-factor)) / calc(${l}px * var(--scale-factor))`;r.borderRadius=C}switch(n.borderStyle.style){case F0.SOLID:r.borderStyle="solid";break;case F0.DASHED:r.borderStyle="dashed";break;case F0.BEVELED:sn("Unimplemented border style: beveled");break;case F0.INSET:sn("Unimplemented border style: inset");break;case F0.UNDERLINE:r.borderBottomStyle="solid";break}const b=n.borderColor||null;b?(U(this,bh,!0),r.borderColor=Nt.makeHexColor(b[0]|0,b[1]|0,b[2]|0)):r.borderWidth=0}const c=Nt.normalizeRect([n.rect[0],s.view[3]-n.rect[1]+s.view[1],n.rect[2],s.view[3]-n.rect[3]+s.view[1]]),{pageWidth:u,pageHeight:d,pageX:h,pageY:p}=a.rawDims;r.left=`${100*(c[0]-h)/u}%`,r.top=`${100*(c[1]-p)/d}%`;const{rotation:v}=n;return n.hasOwnCanvas||v===0?(r.width=`${100*i/u}%`,r.height=`${100*l/d}%`):this.setRotation(v,o),o}setRotation(t,n=this.container){if(!this.data.rect)return;const{pageWidth:s,pageHeight:a}=this.parent.viewport.rawDims,{width:o,height:r}=Bc(this.data.rect);let i,l;t%180===0?(i=100*o/s,l=100*r/a):(i=100*r/s,l=100*o/a),n.style.width=`${i}%`,n.style.height=`${l}%`,n.setAttribute("data-main-rotation",(360-t)%360)}get _commonActions(){const t=(n,s,a)=>{const o=a.detail[n],r=o[0],i=o.slice(1);a.target.style[s]=zx[`${r}_HTML`](i),this.annotationStorage.setValue(this.data.id,{[s]:zx[`${r}_rgb`](i)})};return cn(this,"_commonActions",{display:n=>{const{display:s}=n.detail,a=s%2===1;this.container.style.visibility=a?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:a,noPrint:s===1||s===2})},print:n=>{this.annotationStorage.setValue(this.data.id,{noPrint:!n.detail.print})},hidden:n=>{const{hidden:s}=n.detail;this.container.style.visibility=s?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:s,noView:s})},focus:n=>{setTimeout(()=>n.target.focus({preventScroll:!1}),0)},userName:n=>{n.target.title=n.detail.userName},readonly:n=>{n.target.disabled=n.detail.readonly},required:n=>{this._setRequired(n.target,n.detail.required)},bgColor:n=>{t("bgColor","backgroundColor",n)},fillColor:n=>{t("fillColor","backgroundColor",n)},fgColor:n=>{t("fgColor","color",n)},textColor:n=>{t("textColor","color",n)},borderColor:n=>{t("borderColor","borderColor",n)},strokeColor:n=>{t("strokeColor","borderColor",n)},rotation:n=>{const s=n.detail.rotation;this.setRotation(s),this.annotationStorage.setValue(this.data.id,{rotation:s})}})}_dispatchEventFromSandbox(t,n){const s=this._commonActions;for(const a of Object.keys(n.detail)){const o=t[a]||s[a];o==null||o(n)}}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;const n=this.annotationStorage.getRawValue(this.data.id);if(!n)return;const s=this._commonActions;for(const[a,o]of Object.entries(n)){const r=s[a];if(r){const i={detail:{[a]:o},target:t};r(i),delete n[a]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:t}=this.data;if(!t)return;const[n,s,a,o]=this.data.rect.map(m=>Math.fround(m));if(t.length===8){const[m,g,b,C]=t.subarray(2,6);if(a===m&&o===g&&n===b&&s===C)return}const{style:r}=this.container;let i;if(y(this,bh)){const{borderColor:m,borderWidth:g}=r;r.borderWidth=0,i=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${m}" stroke-width="${g}">`],this.container.classList.add("hasBorder")}const l=a-n,c=o-s,{svgFactory:u}=this,d=u.createElement("svg");d.classList.add("quadrilateralsContainer"),d.setAttribute("width",0),d.setAttribute("height",0);const h=u.createElement("defs");d.append(h);const p=u.createElement("clipPath"),v=`clippath_${this.data.id}`;p.setAttribute("id",v),p.setAttribute("clipPathUnits","objectBoundingBox"),h.append(p);for(let m=2,g=t.length;m<g;m+=8){const b=t[m],C=t[m+1],w=t[m+2],_=t[m+3],x=u.createElement("rect"),E=(w-n)/l,T=(o-C)/c,R=(b-w)/l,I=(C-_)/c;x.setAttribute("x",E),x.setAttribute("y",T),x.setAttribute("width",R),x.setAttribute("height",I),p.append(x),i==null||i.push(`<rect vector-effect="non-scaling-stroke" x="${E}" y="${T}" width="${R}" height="${I}"/>`)}y(this,bh)&&(i.push("</g></svg>')"),r.backgroundImage=i.join("")),this.container.append(d),this.container.style.clipPath=`url(#${v})`}_createPopup(){const{data:t}=this,n=U(this,yh,new v6({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:`popup_${t.id}`,rotation:t.rotation},parent:this.parent,elements:[this]}));this.parent.div.append(n.render())}render(){Dn("Abstract method `AnnotationElement.render` called")}_getElementsByName(t,n=null){const s=[];if(this._fieldObjects){const a=this._fieldObjects[t];if(a)for(const{page:o,id:r,exportValues:i}of a){if(o===-1||r===n)continue;const l=typeof i=="string"?i:null,c=document.querySelector(`[data-element-id="${r}"]`);if(c&&!Ud.has(c)){sn(`_getElementsByName - element not allowed: ${r}`);continue}s.push({id:r,exportValue:l,domElement:c})}return s}for(const a of document.getElementsByName(t)){const{exportValue:o}=a,r=a.getAttribute("data-element-id");r!==n&&Ud.has(a)&&s.push({id:r,exportValue:o,domElement:a})}return s}show(){var t;this.container&&(this.container.hidden=!1),(t=this.popup)==null||t.maybeShow()}hide(){var t;this.container&&(this.container.hidden=!0),(t=this.popup)==null||t.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const t=this.getElementsToTriggerPopup();if(Array.isArray(t))for(const n of t)n.classList.add("highlightArea");else t.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:t,data:{id:n}}=this;this.container.addEventListener("dblclick",()=>{var s;(s=this.linkService.eventBus)==null||s.dispatch("switchannotationeditormode",{source:this,mode:t,editId:n})})}};sd=new WeakMap,bh=new WeakMap,yh=new WeakMap,Qv=new WeakSet,p6=function(t){const{container:{style:n},data:{rect:s,rotation:a},parent:{viewport:{rawDims:{pageWidth:o,pageHeight:r,pageX:i,pageY:l}}}}=this;s==null||s.splice(0,4,...t);const{width:c,height:u}=Bc(t);n.left=`${100*(t[0]-i)/o}%`,n.top=`${100*(r-t[3]+l)/r}%`,a===0?(n.width=`${100*c/o}%`,n.height=`${100*u/r}%`):this.setRotation(a)};let us=x_;var bo,iu,TR,MR;class AR extends us{constructor(n,s=null){super(n,{isRenderable:!0,ignoreBorder:!!(s!=null&&s.ignoreBorder),createQuadrilaterals:!0});ne(this,bo);this.isTooltipOnly=n.data.isTooltipOnly}render(){const{data:n,linkService:s}=this,a=document.createElement("a");a.setAttribute("data-element-id",n.id);let o=!1;return n.url?(s.addLinkAttributes(a,n.url,n.newWindow),o=!0):n.action?(this._bindNamedAction(a,n.action),o=!0):n.attachment?(oe(this,bo,TR).call(this,a,n.attachment,n.attachmentDest),o=!0):n.setOCGState?(oe(this,bo,MR).call(this,a,n.setOCGState),o=!0):n.dest?(this._bindLink(a,n.dest),o=!0):(n.actions&&(n.actions.Action||n.actions["Mouse Up"]||n.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(a,n),o=!0),n.resetForm?(this._bindResetFormAction(a,n.resetForm),o=!0):this.isTooltipOnly&&!o&&(this._bindLink(a,""),o=!0)),this.container.classList.add("linkAnnotation"),o&&this.container.append(a),this.container}_bindLink(n,s){n.href=this.linkService.getDestinationHash(s),n.onclick=()=>(s&&this.linkService.goToDestination(s),!1),(s||s==="")&&oe(this,bo,iu).call(this)}_bindNamedAction(n,s){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeNamedAction(s),!1),oe(this,bo,iu).call(this)}_bindJSAction(n,s){n.href=this.linkService.getAnchorUrl("");const a=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const o of Object.keys(s.actions)){const r=a.get(o);r&&(n[r]=()=>{var i;return(i=this.linkService.eventBus)==null||i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:s.id,name:o}}),!1})}n.onclick||(n.onclick=()=>!1),oe(this,bo,iu).call(this)}_bindResetFormAction(n,s){const a=n.onclick;if(a||(n.href=this.linkService.getAnchorUrl("")),oe(this,bo,iu).call(this),!this._fieldObjects){sn('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),a||(n.onclick=()=>!1);return}n.onclick=()=>{var d;a==null||a();const{fields:o,refs:r,include:i}=s,l=[];if(o.length!==0||r.length!==0){const h=new Set(r);for(const p of o){const v=this._fieldObjects[p]||[];for(const{id:m}of v)h.add(m)}for(const p of Object.values(this._fieldObjects))for(const v of p)h.has(v.id)===i&&l.push(v)}else for(const h of Object.values(this._fieldObjects))l.push(...h);const c=this.annotationStorage,u=[];for(const h of l){const{id:p}=h;switch(u.push(p),h.type){case"text":{const m=h.defaultValue||"";c.setValue(p,{value:m});break}case"checkbox":case"radiobutton":{const m=h.defaultValue===h.exportValues;c.setValue(p,{value:m});break}case"combobox":case"listbox":{const m=h.defaultValue||"";c.setValue(p,{value:m});break}default:continue}const v=document.querySelector(`[data-element-id="${p}"]`);if(v){if(!Ud.has(v)){sn(`_bindResetFormAction - element not allowed: ${p}`);continue}}else continue;v.dispatchEvent(new Event("resetform"))}return this.enableScripting&&((d=this.linkService.eventBus)==null||d.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}})),!1}}}bo=new WeakSet,iu=function(){this.container.setAttribute("data-internal-link","")},TR=function(n,s,a=null){n.href=this.linkService.getAnchorUrl(""),s.description&&(n.title=s.description),n.onclick=()=>{var o;return(o=this.downloadManager)==null||o.openOrDownloadData(s.content,s.filename,a),!1},oe(this,bo,iu).call(this)},MR=function(n,s){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeSetOCGState(s),!1),oe(this,bo,iu).call(this)};class U4e extends us{constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}class tf extends us{render(){return this.container}showElementAndHideCanvas(t){var n;this.data.hasOwnCanvas&&(((n=t.previousSibling)==null?void 0:n.nodeName)==="CANVAS"&&(t.previousSibling.hidden=!0),t.hidden=!1)}_getKeyModifier(t){return Ra.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,n,s,a,o){s.includes("mouse")?t.addEventListener(s,r=>{var i;(i=this.linkService.eventBus)==null||i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:a,value:o(r),shift:r.shiftKey,modifier:this._getKeyModifier(r)}})}):t.addEventListener(s,r=>{var i;if(s==="blur"){if(!n.focused||!r.relatedTarget)return;n.focused=!1}else if(s==="focus"){if(n.focused)return;n.focused=!0}o&&((i=this.linkService.eventBus)==null||i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:a,value:o(r)}}))})}_setEventListeners(t,n,s,a){var o,r,i;for(const[l,c]of s)(c==="Action"||(o=this.data.actions)!=null&&o[c])&&((c==="Focus"||c==="Blur")&&(n||(n={focused:!1})),this._setEventListener(t,n,l,c,a),c==="Focus"&&!((r=this.data.actions)!=null&&r.Blur)?this._setEventListener(t,n,"blur","Blur",null):c==="Blur"&&!((i=this.data.actions)!=null&&i.Focus)&&this._setEventListener(t,n,"focus","Focus",null))}_setBackgroundColor(t){const n=this.data.backgroundColor||null;t.style.backgroundColor=n===null?"transparent":Nt.makeHexColor(n[0],n[1],n[2])}_setTextStyle(t){const n=["left","center","right"],{fontColor:s}=this.data.defaultAppearanceData,a=this.data.defaultAppearanceData.fontSize||j4e,o=t.style;let r;const i=2,l=c=>Math.round(10*c)/10;if(this.data.multiLine){const c=Math.abs(this.data.rect[3]-this.data.rect[1]-i),u=Math.round(c/(ty*a))||1,d=c/u;r=Math.min(a,l(d/ty))}else{const c=Math.abs(this.data.rect[3]-this.data.rect[1]-i);r=Math.min(a,l(c/ty))}o.fontSize=`calc(${r}px * var(--scale-factor))`,o.color=Nt.makeHexColor(s[0],s[1],s[2]),this.data.textAlignment!==null&&(o.textAlign=n[this.data.textAlignment])}_setRequired(t,n){n?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",n)}}class q4e extends tf{constructor(t){const n=t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue;super(t,{isRenderable:n})}setPropertyOnSiblings(t,n,s,a){const o=this.annotationStorage;for(const r of this._getElementsByName(t.name,t.id))r.domElement&&(r.domElement[n]=s),o.setValue(r.id,{[a]:s})}render(){var a,o;const t=this.annotationStorage,n=this.data.id;this.container.classList.add("textWidgetAnnotation");let s=null;if(this.renderForms){const r=t.getValue(n,{value:this.data.fieldValue});let i=r.value||"";const l=t.getValue(n,{charLimit:this.data.maxLen}).charLimit;l&&i.length>l&&(i=i.slice(0,l));let c=r.formattedValue||((a=this.data.textContent)==null?void 0:a.join(`
`))||null;c&&this.data.comb&&(c=c.replaceAll(/\s+/g,""));const u={userValue:i,formattedValue:c,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(s=document.createElement("textarea"),s.textContent=c??i,this.data.doNotScroll&&(s.style.overflowY="hidden")):(s=document.createElement("input"),s.type="text",s.setAttribute("value",c??i),this.data.doNotScroll&&(s.style.overflowX="hidden")),this.data.hasOwnCanvas&&(s.hidden=!0),Ud.add(s),s.setAttribute("data-element-id",n),s.disabled=this.data.readOnly,s.name=this.data.fieldName,s.tabIndex=v2,this._setRequired(s,this.data.required),l&&(s.maxLength=l),s.addEventListener("input",h=>{t.setValue(n,{value:h.target.value}),this.setPropertyOnSiblings(s,"value",h.target.value,"value"),u.formattedValue=null}),s.addEventListener("resetform",h=>{const p=this.data.defaultFieldValue??"";s.value=u.userValue=p,u.formattedValue=null});let d=h=>{const{formattedValue:p}=u;p!=null&&(h.target.value=p),h.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){s.addEventListener("focus",p=>{var m;if(u.focused)return;const{target:v}=p;u.userValue&&(v.value=u.userValue),u.lastCommittedValue=v.value,u.commitKey=1,(m=this.data.actions)!=null&&m.Focus||(u.focused=!0)}),s.addEventListener("updatefromsandbox",p=>{this.showElementAndHideCanvas(p.target);const v={value(m){u.userValue=m.detail.value??"",t.setValue(n,{value:u.userValue.toString()}),m.target.value=u.userValue},formattedValue(m){const{formattedValue:g}=m.detail;u.formattedValue=g,g!=null&&m.target!==document.activeElement&&(m.target.value=g),t.setValue(n,{formattedValue:g})},selRange(m){m.target.setSelectionRange(...m.detail.selRange)},charLimit:m=>{var w;const{charLimit:g}=m.detail,{target:b}=m;if(g===0){b.removeAttribute("maxLength");return}b.setAttribute("maxLength",g);let C=u.userValue;!C||C.length<=g||(C=C.slice(0,g),b.value=u.userValue=C,t.setValue(n,{value:C}),(w=this.linkService.eventBus)==null||w.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:C,willCommit:!0,commitKey:1,selStart:b.selectionStart,selEnd:b.selectionEnd}}))}};this._dispatchEventFromSandbox(v,p)}),s.addEventListener("keydown",p=>{var g;u.commitKey=1;let v=-1;if(p.key==="Escape"?v=0:p.key==="Enter"&&!this.data.multiLine?v=2:p.key==="Tab"&&(u.commitKey=3),v===-1)return;const{value:m}=p.target;u.lastCommittedValue!==m&&(u.lastCommittedValue=m,u.userValue=m,(g=this.linkService.eventBus)==null||g.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:m,willCommit:!0,commitKey:v,selStart:p.target.selectionStart,selEnd:p.target.selectionEnd}}))});const h=d;d=null,s.addEventListener("blur",p=>{var m,g;if(!u.focused||!p.relatedTarget)return;(m=this.data.actions)!=null&&m.Blur||(u.focused=!1);const{value:v}=p.target;u.userValue=v,u.lastCommittedValue!==v&&((g=this.linkService.eventBus)==null||g.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:v,willCommit:!0,commitKey:u.commitKey,selStart:p.target.selectionStart,selEnd:p.target.selectionEnd}})),h(p)}),(o=this.data.actions)!=null&&o.Keystroke&&s.addEventListener("beforeinput",p=>{var x;u.lastCommittedValue=null;const{data:v,target:m}=p,{value:g,selectionStart:b,selectionEnd:C}=m;let w=b,_=C;switch(p.inputType){case"deleteWordBackward":{const E=g.substring(0,b).match(/\w*[^\w]*$/);E&&(w-=E[0].length);break}case"deleteWordForward":{const E=g.substring(b).match(/^[^\w]*\w*/);E&&(_+=E[0].length);break}case"deleteContentBackward":b===C&&(w-=1);break;case"deleteContentForward":b===C&&(_+=1);break}p.preventDefault(),(x=this.linkService.eventBus)==null||x.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:g,change:v||"",willCommit:!1,selStart:w,selEnd:_}})}),this._setEventListeners(s,u,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],p=>p.target.value)}if(d&&s.addEventListener("blur",d),this.data.comb){const p=(this.data.rect[2]-this.data.rect[0])/l;s.classList.add("comb"),s.style.letterSpacing=`calc(${p}px * var(--scale-factor) - 1ch)`}}else s=document.createElement("div"),s.textContent=this.data.fieldValue,s.style.verticalAlign="middle",s.style.display="table-cell",this.data.hasOwnCanvas&&(s.hidden=!0);return this._setTextStyle(s),this._setBackgroundColor(s),this._setDefaultPropertiesFromJS(s),this.container.append(s),this.container}}class G4e extends tf{constructor(t){super(t,{isRenderable:!!t.data.hasOwnCanvas})}}class Y4e extends tf{constructor(t){super(t,{isRenderable:t.renderForms})}render(){const t=this.annotationStorage,n=this.data,s=n.id;let a=t.getValue(s,{value:n.exportValue===n.fieldValue}).value;typeof a=="string"&&(a=a!=="Off",t.setValue(s,{value:a})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const o=document.createElement("input");return Ud.add(o),o.setAttribute("data-element-id",s),o.disabled=n.readOnly,this._setRequired(o,this.data.required),o.type="checkbox",o.name=n.fieldName,a&&o.setAttribute("checked",!0),o.setAttribute("exportValue",n.exportValue),o.tabIndex=v2,o.addEventListener("change",r=>{const{name:i,checked:l}=r.target;for(const c of this._getElementsByName(i,s)){const u=l&&c.exportValue===n.exportValue;c.domElement&&(c.domElement.checked=u),t.setValue(c.id,{value:u})}t.setValue(s,{value:l})}),o.addEventListener("resetform",r=>{const i=n.defaultFieldValue||"Off";r.target.checked=i===n.exportValue}),this.enableScripting&&this.hasJSActions&&(o.addEventListener("updatefromsandbox",r=>{const i={value(l){l.target.checked=l.detail.value!=="Off",t.setValue(s,{value:l.target.checked})}};this._dispatchEventFromSandbox(i,r)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],r=>r.target.checked)),this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class PR extends tf{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const t=this.annotationStorage,n=this.data,s=n.id;let a=t.getValue(s,{value:n.fieldValue===n.buttonValue}).value;if(typeof a=="string"&&(a=a!==n.buttonValue,t.setValue(s,{value:a})),a)for(const r of this._getElementsByName(n.fieldName,s))t.setValue(r.id,{value:!1});const o=document.createElement("input");if(Ud.add(o),o.setAttribute("data-element-id",s),o.disabled=n.readOnly,this._setRequired(o,this.data.required),o.type="radio",o.name=n.fieldName,a&&o.setAttribute("checked",!0),o.tabIndex=v2,o.addEventListener("change",r=>{const{name:i,checked:l}=r.target;for(const c of this._getElementsByName(i,s))t.setValue(c.id,{value:!1});t.setValue(s,{value:l})}),o.addEventListener("resetform",r=>{const i=n.defaultFieldValue;r.target.checked=i!=null&&i===n.buttonValue}),this.enableScripting&&this.hasJSActions){const r=n.buttonValue;o.addEventListener("updatefromsandbox",i=>{const l={value:c=>{const u=r===c.detail.value;for(const d of this._getElementsByName(c.target.name)){const h=u&&d.id===s;d.domElement&&(d.domElement.checked=h),t.setValue(d.id,{value:h})}}};this._dispatchEventFromSandbox(l,i)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],i=>i.target.checked)}return this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class X4e extends AR{constructor(t){super(t,{ignoreBorder:t.data.hasAppearance})}render(){const t=super.render();t.classList.add("buttonWidgetAnnotation","pushButton");const n=t.lastChild;return this.enableScripting&&this.hasJSActions&&n&&(this._setDefaultPropertiesFromJS(n),n.addEventListener("updatefromsandbox",s=>{this._dispatchEventFromSandbox({},s)})),t}}class J4e extends tf{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const t=this.annotationStorage,n=this.data.id,s=t.getValue(n,{value:this.data.fieldValue}),a=document.createElement("select");Ud.add(a),a.setAttribute("data-element-id",n),a.disabled=this.data.readOnly,this._setRequired(a,this.data.required),a.name=this.data.fieldName,a.tabIndex=v2;let o=this.data.combo&&this.data.options.length>0;this.data.combo||(a.size=this.data.options.length,this.data.multiSelect&&(a.multiple=!0)),a.addEventListener("resetform",u=>{const d=this.data.defaultFieldValue;for(const h of a.options)h.selected=h.value===d});for(const u of this.data.options){const d=document.createElement("option");d.textContent=u.displayValue,d.value=u.exportValue,s.value.includes(u.exportValue)&&(d.setAttribute("selected",!0),o=!1),a.append(d)}let r=null;if(o){const u=document.createElement("option");u.value=" ",u.setAttribute("hidden",!0),u.setAttribute("selected",!0),a.prepend(u),r=()=>{u.remove(),a.removeEventListener("input",r),r=null},a.addEventListener("input",r)}const i=u=>{const d=u?"value":"textContent",{options:h,multiple:p}=a;return p?Array.prototype.filter.call(h,v=>v.selected).map(v=>v[d]):h.selectedIndex===-1?null:h[h.selectedIndex][d]};let l=i(!1);const c=u=>{const d=u.target.options;return Array.prototype.map.call(d,h=>({displayValue:h.textContent,exportValue:h.value}))};return this.enableScripting&&this.hasJSActions?(a.addEventListener("updatefromsandbox",u=>{const d={value(h){r==null||r();const p=h.detail.value,v=new Set(Array.isArray(p)?p:[p]);for(const m of a.options)m.selected=v.has(m.value);t.setValue(n,{value:i(!0)}),l=i(!1)},multipleSelection(h){a.multiple=!0},remove(h){const p=a.options,v=h.detail.remove;p[v].selected=!1,a.remove(v),p.length>0&&Array.prototype.findIndex.call(p,g=>g.selected)===-1&&(p[0].selected=!0),t.setValue(n,{value:i(!0),items:c(h)}),l=i(!1)},clear(h){for(;a.length!==0;)a.remove(0);t.setValue(n,{value:null,items:[]}),l=i(!1)},insert(h){const{index:p,displayValue:v,exportValue:m}=h.detail.insert,g=a.children[p],b=document.createElement("option");b.textContent=v,b.value=m,g?g.before(b):a.append(b),t.setValue(n,{value:i(!0),items:c(h)}),l=i(!1)},items(h){const{items:p}=h.detail;for(;a.length!==0;)a.remove(0);for(const v of p){const{displayValue:m,exportValue:g}=v,b=document.createElement("option");b.textContent=m,b.value=g,a.append(b)}a.options.length>0&&(a.options[0].selected=!0),t.setValue(n,{value:i(!0),items:c(h)}),l=i(!1)},indices(h){const p=new Set(h.detail.indices);for(const v of h.target.options)v.selected=p.has(v.index);t.setValue(n,{value:i(!0)}),l=i(!1)},editable(h){h.target.disabled=!h.detail.editable}};this._dispatchEventFromSandbox(d,u)}),a.addEventListener("input",u=>{var p;const d=i(!0),h=i(!1);t.setValue(n,{value:d}),u.preventDefault(),(p=this.linkService.eventBus)==null||p.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:l,change:h,changeEx:d,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(a,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],u=>u.target.value)):a.addEventListener("input",function(u){t.setValue(n,{value:i(!0)})}),this.data.combo&&this._setTextStyle(a),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}class v6 extends us{constructor(t){const{data:n,elements:s}=t;super(t,{isRenderable:us._hasPopupData(n)}),this.elements=s,this.popup=null}render(){this.container.classList.add("popupAnnotation");const t=this.popup=new Z4e({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),n=[];for(const s of this.elements)s.popup=t,s.container.ariaHasPopup="dialog",n.push(s.data.id),s.addHighlightArea();return this.container.setAttribute("aria-controls",n.map(s=>`${f_}${s}`).join(",")),this.container}}var wh,Y1,X1,_h,ad,ss,Qi,Ch,em,tm,Sh,el,or,tl,nm,nl,sm,od,rd,Nn,kg,m6,RR,IR,LR,OR,Ag,Tg,g6;class Z4e{constructor({container:t,color:n,elements:s,titleObj:a,modificationDate:o,contentsObj:r,richText:i,parent:l,rect:c,parentRect:u,open:d}){ne(this,Nn);ne(this,wh,oe(this,Nn,LR).bind(this));ne(this,Y1,oe(this,Nn,g6).bind(this));ne(this,X1,oe(this,Nn,Tg).bind(this));ne(this,_h,oe(this,Nn,Ag).bind(this));ne(this,ad,null);ne(this,ss,null);ne(this,Qi,null);ne(this,Ch,null);ne(this,em,null);ne(this,tm,null);ne(this,Sh,null);ne(this,el,!1);ne(this,or,null);ne(this,tl,null);ne(this,nm,null);ne(this,nl,null);ne(this,sm,null);ne(this,od,null);ne(this,rd,!1);var h;U(this,ss,t),U(this,sm,a),U(this,Qi,r),U(this,nl,i),U(this,tm,l),U(this,ad,n),U(this,nm,c),U(this,Sh,u),U(this,em,s),U(this,Ch,v_.toDateObject(o)),this.trigger=s.flatMap(p=>p.getElementsToTriggerPopup());for(const p of this.trigger)p.addEventListener("click",y(this,_h)),p.addEventListener("mouseenter",y(this,X1)),p.addEventListener("mouseleave",y(this,Y1)),p.classList.add("popupTriggerArea");for(const p of s)(h=p.container)==null||h.addEventListener("keydown",y(this,wh));y(this,ss).hidden=!0,d&&oe(this,Nn,Ag).call(this)}render(){if(y(this,or))return;const t=U(this,or,document.createElement("div"));if(t.className="popup",y(this,ad)){const o=t.style.outlineColor=Nt.makeHexColor(...y(this,ad));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?t.style.backgroundColor=`color-mix(in srgb, ${o} 30%, white)`:t.style.backgroundColor=Nt.makeHexColor(...y(this,ad).map(i=>Math.floor(.7*(255-i)+i)))}const n=document.createElement("span");n.className="header";const s=document.createElement("h1");if(n.append(s),{dir:s.dir,str:s.textContent}=y(this,sm),t.append(n),y(this,Ch)){const o=document.createElement("span");o.classList.add("popupDate"),o.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),o.setAttribute("data-l10n-args",JSON.stringify({dateObj:y(this,Ch).valueOf()})),n.append(o)}const a=y(this,Nn,kg);if(a)kR.render({xfaHtml:a,intent:"richText",div:t}),t.lastChild.classList.add("richText","popupContent");else{const o=this._formatContents(y(this,Qi));t.append(o)}y(this,ss).append(t)}_formatContents({str:t,dir:n}){const s=document.createElement("p");s.classList.add("popupContent"),s.dir=n;const a=t.split(/(?:\r\n?|\n)/);for(let o=0,r=a.length;o<r;++o){const i=a[o];s.append(document.createTextNode(i)),o<r-1&&s.append(document.createElement("br"))}return s}updateEdited({rect:t,popupContent:n}){var s;y(this,od)||U(this,od,{contentsObj:y(this,Qi),richText:y(this,nl)}),t&&U(this,tl,null),n&&(U(this,nl,oe(this,Nn,IR).call(this,n)),U(this,Qi,null)),(s=y(this,or))==null||s.remove(),U(this,or,null)}resetEdited(){var t;y(this,od)&&({contentsObj:wa(this,Qi)._,richText:wa(this,nl)._}=y(this,od),U(this,od,null),(t=y(this,or))==null||t.remove(),U(this,or,null),U(this,tl,null))}forceHide(){U(this,rd,this.isVisible),y(this,rd)&&(y(this,ss).hidden=!0)}maybeShow(){y(this,rd)&&(y(this,or)||oe(this,Nn,Tg).call(this),U(this,rd,!1),y(this,ss).hidden=!1)}get isVisible(){return y(this,ss).hidden===!1}}wh=new WeakMap,Y1=new WeakMap,X1=new WeakMap,_h=new WeakMap,ad=new WeakMap,ss=new WeakMap,Qi=new WeakMap,Ch=new WeakMap,em=new WeakMap,tm=new WeakMap,Sh=new WeakMap,el=new WeakMap,or=new WeakMap,tl=new WeakMap,nm=new WeakMap,nl=new WeakMap,sm=new WeakMap,od=new WeakMap,rd=new WeakMap,Nn=new WeakSet,kg=function(){const t=y(this,nl),n=y(this,Qi);return t!=null&&t.str&&(!(n!=null&&n.str)||n.str===t.str)&&y(this,nl).html||null},m6=function(){var t,n,s;return((s=(n=(t=y(this,Nn,kg))==null?void 0:t.attributes)==null?void 0:n.style)==null?void 0:s.fontSize)||0},RR=function(){var t,n,s;return((s=(n=(t=y(this,Nn,kg))==null?void 0:t.attributes)==null?void 0:n.style)==null?void 0:s.color)||null},IR=function(t){const n=[],s={str:t,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:n}]}},a={style:{color:y(this,Nn,RR),fontSize:y(this,Nn,m6)?`calc(${y(this,Nn,m6)}px * var(--scale-factor))`:""}};for(const o of t.split(`
`))n.push({name:"span",value:o,attributes:a});return s},LR=function(t){t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||(t.key==="Enter"||t.key==="Escape"&&y(this,el))&&oe(this,Nn,Ag).call(this)},OR=function(){if(y(this,tl)!==null)return;const{page:{view:t},viewport:{rawDims:{pageWidth:n,pageHeight:s,pageX:a,pageY:o}}}=y(this,tm);let r=!!y(this,Sh),i=r?y(this,Sh):y(this,nm);for(const v of y(this,em))if(!i||Nt.intersect(v.data.rect,i)!==null){i=v.data.rect,r=!0;break}const l=Nt.normalizeRect([i[0],t[3]-i[1]+t[1],i[2],t[3]-i[3]+t[1]]),u=r?i[2]-i[0]+5:0,d=l[0]+u,h=l[1];U(this,tl,[100*(d-a)/n,100*(h-o)/s]);const{style:p}=y(this,ss);p.left=`${y(this,tl)[0]}%`,p.top=`${y(this,tl)[1]}%`},Ag=function(){U(this,el,!y(this,el)),y(this,el)?(oe(this,Nn,Tg).call(this),y(this,ss).addEventListener("click",y(this,_h)),y(this,ss).addEventListener("keydown",y(this,wh))):(oe(this,Nn,g6).call(this),y(this,ss).removeEventListener("click",y(this,_h)),y(this,ss).removeEventListener("keydown",y(this,wh)))},Tg=function(){y(this,or)||this.render(),this.isVisible?y(this,el)&&y(this,ss).classList.add("focused"):(oe(this,Nn,OR).call(this),y(this,ss).hidden=!1,y(this,ss).style.zIndex=parseInt(y(this,ss).style.zIndex)+1e3)},g6=function(){y(this,ss).classList.remove("focused"),!(y(this,el)||!this.isVisible)&&(y(this,ss).hidden=!0,y(this,ss).style.zIndex=parseInt(y(this,ss).style.zIndex)-1e3)};class NR extends us{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.textContent=t.data.textContent,this.textPosition=t.data.textPosition,this.annotationEditorType=nn.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const t=document.createElement("div");t.classList.add("annotationTextContent"),t.setAttribute("role","comment");for(const n of this.textContent){const s=document.createElement("span");s.textContent=n,t.append(s)}this.container.append(t)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}var am;class Q4e extends us{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ne(this,am,null)}render(){this.container.classList.add("lineAnnotation");const n=this.data,{width:s,height:a}=Bc(n.rect),o=this.svgFactory.create(s,a,!0),r=U(this,am,this.svgFactory.createElement("svg:line"));return r.setAttribute("x1",n.rect[2]-n.lineCoordinates[0]),r.setAttribute("y1",n.rect[3]-n.lineCoordinates[1]),r.setAttribute("x2",n.rect[2]-n.lineCoordinates[2]),r.setAttribute("y2",n.rect[3]-n.lineCoordinates[3]),r.setAttribute("stroke-width",n.borderStyle.width||1),r.setAttribute("stroke","transparent"),r.setAttribute("fill","transparent"),o.append(r),this.container.append(o),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return y(this,am)}addHighlightArea(){this.container.classList.add("highlightArea")}}am=new WeakMap;var om;class eye extends us{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ne(this,om,null)}render(){this.container.classList.add("squareAnnotation");const n=this.data,{width:s,height:a}=Bc(n.rect),o=this.svgFactory.create(s,a,!0),r=n.borderStyle.width,i=U(this,om,this.svgFactory.createElement("svg:rect"));return i.setAttribute("x",r/2),i.setAttribute("y",r/2),i.setAttribute("width",s-r),i.setAttribute("height",a-r),i.setAttribute("stroke-width",r||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),o.append(i),this.container.append(o),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return y(this,om)}addHighlightArea(){this.container.classList.add("highlightArea")}}om=new WeakMap;var rm;class tye extends us{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ne(this,rm,null)}render(){this.container.classList.add("circleAnnotation");const n=this.data,{width:s,height:a}=Bc(n.rect),o=this.svgFactory.create(s,a,!0),r=n.borderStyle.width,i=U(this,rm,this.svgFactory.createElement("svg:ellipse"));return i.setAttribute("cx",s/2),i.setAttribute("cy",a/2),i.setAttribute("rx",s/2-r/2),i.setAttribute("ry",a/2-r/2),i.setAttribute("stroke-width",r||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),o.append(i),this.container.append(o),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return y(this,rm)}addHighlightArea(){this.container.classList.add("highlightArea")}}rm=new WeakMap;var im;class $R extends us{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ne(this,im,null);this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:n,vertices:s,borderStyle:a,popupRef:o}}=this;if(!s)return this.container;const{width:r,height:i}=Bc(n),l=this.svgFactory.create(r,i,!0);let c=[];for(let d=0,h=s.length;d<h;d+=2){const p=s[d]-n[0],v=n[3]-s[d+1];c.push(`${p},${v}`)}c=c.join(" ");const u=U(this,im,this.svgFactory.createElement(this.svgElementName));return u.setAttribute("points",c),u.setAttribute("stroke-width",a.width||1),u.setAttribute("stroke","transparent"),u.setAttribute("fill","transparent"),l.append(u),this.container.append(l),!o&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return y(this,im)}addHighlightArea(){this.container.classList.add("highlightArea")}}im=new WeakMap;class nye extends $R{constructor(t){super(t),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class sye extends us{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}var lm,id,cm,b6;class w_ extends us{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ne(this,cm);ne(this,lm,null);ne(this,id,[]);this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=this.data.it==="InkHighlight"?nn.HIGHLIGHT:nn.INK}render(){this.container.classList.add(this.containerClassName);const{data:{rect:n,rotation:s,inkLists:a,borderStyle:o,popupRef:r}}=this,{transform:i,width:l,height:c}=oe(this,cm,b6).call(this,s,n),u=this.svgFactory.create(l,c,!0),d=U(this,lm,this.svgFactory.createElement("svg:g"));u.append(d),d.setAttribute("stroke-width",o.width||1),d.setAttribute("stroke-linecap","round"),d.setAttribute("stroke-linejoin","round"),d.setAttribute("stroke-miterlimit",10),d.setAttribute("stroke","transparent"),d.setAttribute("fill","transparent"),d.setAttribute("transform",i);for(let h=0,p=a.length;h<p;h++){const v=this.svgFactory.createElement(this.svgElementName);y(this,id).push(v),v.setAttribute("points",a[h].join(",")),d.append(v)}return!r&&this.hasPopupData&&this._createPopup(),this.container.append(u),this._editOnDoubleClick(),this.container}updateEdited(n){super.updateEdited(n);const{thickness:s,points:a,rect:o}=n,r=y(this,lm);if(s>=0&&r.setAttribute("stroke-width",s||1),a)for(let i=0,l=y(this,id).length;i<l;i++)y(this,id)[i].setAttribute("points",a[i].join(","));if(o){const{transform:i,width:l,height:c}=oe(this,cm,b6).call(this,this.data.rotation,o);r.parentElement.setAttribute("viewBox",`0 0 ${l} ${c}`),r.setAttribute("transform",i)}}getElementsToTriggerPopup(){return y(this,id)}addHighlightArea(){this.container.classList.add("highlightArea")}}lm=new WeakMap,id=new WeakMap,cm=new WeakSet,b6=function(n,s){switch(n){case 90:return{transform:`rotate(90) translate(${-s[0]},${s[1]}) scale(1,-1)`,width:s[3]-s[1],height:s[2]-s[0]};case 180:return{transform:`rotate(180) translate(${-s[2]},${s[1]}) scale(1,-1)`,width:s[2]-s[0],height:s[3]-s[1]};case 270:return{transform:`rotate(270) translate(${-s[2]},${s[3]}) scale(1,-1)`,width:s[3]-s[1],height:s[2]-s[0]};default:return{transform:`translate(${-s[0]},${s[3]}) scale(1,-1)`,width:s[2]-s[0],height:s[3]-s[1]}}};class DR extends us{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=nn.HIGHLIGHT}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this._editOnDoubleClick(),this.container}}class aye extends us{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}class oye extends us{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}class rye extends us{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}class FR extends us{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=nn.STAMP}render(){return this.container.classList.add("stampAnnotation"),this.container.setAttribute("role","img"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}var um,dm,y6;class iye extends us{constructor(n){var a;super(n,{isRenderable:!0});ne(this,dm);ne(this,um,null);const{file:s}=this.data;this.filename=s.filename,this.content=s.content,(a=this.linkService.eventBus)==null||a.dispatch("fileattachmentannotation",{source:this,...s})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:n,data:s}=this;let a;s.hasAppearance||s.fillAlpha===0?a=document.createElement("div"):(a=document.createElement("img"),a.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(s.name)?"paperclip":"pushpin"}.svg`,s.fillAlpha&&s.fillAlpha<1&&(a.style=`filter: opacity(${Math.round(s.fillAlpha*100)}%);`)),a.addEventListener("dblclick",oe(this,dm,y6).bind(this)),U(this,um,a);const{isMac:o}=Ra.platform;return n.addEventListener("keydown",r=>{r.key==="Enter"&&(o?r.metaKey:r.ctrlKey)&&oe(this,dm,y6).call(this)}),!s.popupRef&&this.hasPopupData?this._createPopup():a.classList.add("popupTriggerArea"),n.append(a),n}getElementsToTriggerPopup(){return y(this,um)}addHighlightArea(){this.container.classList.add("highlightArea")}}um=new WeakMap,dm=new WeakSet,y6=function(){var n;(n=this.downloadManager)==null||n.openOrDownloadData(this.content,this.filename)};var fm,ld,cd,hm,qd,BR,w6;class lye{constructor({div:t,accessibilityManager:n,annotationCanvasMap:s,annotationEditorUIManager:a,page:o,viewport:r,structTreeLayer:i}){ne(this,qd);ne(this,fm,null);ne(this,ld,null);ne(this,cd,new Map);ne(this,hm,null);this.div=t,U(this,fm,n),U(this,ld,s),U(this,hm,i||null),this.page=o,this.viewport=r,this.zIndex=0,this._annotationEditorUIManager=a}hasEditableAnnotations(){return y(this,cd).size>0}async render(t){var r;const{annotations:n}=t,s=this.div;jd(s,this.viewport);const a=new Map,o={data:null,layer:s,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderForms:t.renderForms!==!1,svgFactory:new y_,annotationStorage:t.annotationStorage||new g_,enableScripting:t.enableScripting===!0,hasJSActions:t.hasJSActions,fieldObjects:t.fieldObjects,parent:this,elements:null};for(const i of n){if(i.noHTML)continue;const l=i.annotationType===_s.POPUP;if(l){const d=a.get(i.id);if(!d)continue;o.elements=d}else{const{width:d,height:h}=Bc(i.rect);if(d<=0||h<=0)continue}o.data=i;const c=K4e.create(o);if(!c.isRenderable)continue;if(!l&&i.popupRef){const d=a.get(i.popupRef);d?d.push(c):a.set(i.popupRef,[c])}const u=c.render();i.hidden&&(u.style.visibility="hidden"),await oe(this,qd,BR).call(this,u,i.id),c._isEditable&&(y(this,cd).set(c.data.id,c),(r=this._annotationEditorUIManager)==null||r.renderAnnotationElement(c))}oe(this,qd,w6).call(this)}update({viewport:t}){const n=this.div;this.viewport=t,jd(n,{rotation:t.rotation}),oe(this,qd,w6).call(this),n.hidden=!1}getEditableAnnotations(){return Array.from(y(this,cd).values())}getEditableAnnotation(t){return y(this,cd).get(t)}}fm=new WeakMap,ld=new WeakMap,cd=new WeakMap,hm=new WeakMap,qd=new WeakSet,BR=async function(t,n){var r,i;const s=t.firstChild||t,a=s.id=`${f_}${n}`,o=await((r=y(this,hm))==null?void 0:r.getAriaAttributes(a));if(o)for(const[l,c]of o)s.setAttribute(l,c);this.div.append(t),(i=y(this,fm))==null||i.moveElementInDOM(this.div,t,s,!1)},w6=function(){if(!y(this,ld))return;const t=this.div;for(const[n,s]of y(this,ld)){const a=t.querySelector(`[data-annotation-id="${n}"]`);if(!a)continue;s.className="annotationContent";const{firstChild:o}=a;o?o.nodeName==="CANVAS"?o.replaceWith(s):o.classList.contains("annotationContent")?o.after(s):o.before(s):a.append(s)}y(this,ld).clear()};const W2=/\r\n?|\n/g;var rr,io,pm,ud,lo,vs,VR,zR,HR,Mg,_l,Pg,Rg,WR,C6,jR;const Bn=class Bn extends es{constructor(n){super({...n,name:"freeTextEditor"});ne(this,vs);ne(this,rr);ne(this,io,"");ne(this,pm,`${this.id}-editor`);ne(this,ud,null);ne(this,lo);U(this,rr,n.color||Bn._defaultColor||es._defaultLineColor),U(this,lo,n.fontSize||Bn._defaultFontSize)}static get _keyboardManager(){const n=Bn.prototype,s=r=>r.isEmpty(),a=Kd.TRANSLATE_SMALL,o=Kd.TRANSLATE_BIG;return cn(this,"_keyboardManager",new p2([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],n.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],n.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],n._translateEmpty,{args:[-a,0],checker:s}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],n._translateEmpty,{args:[-o,0],checker:s}],[["ArrowRight","mac+ArrowRight"],n._translateEmpty,{args:[a,0],checker:s}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],n._translateEmpty,{args:[o,0],checker:s}],[["ArrowUp","mac+ArrowUp"],n._translateEmpty,{args:[0,-a],checker:s}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],n._translateEmpty,{args:[0,-o],checker:s}],[["ArrowDown","mac+ArrowDown"],n._translateEmpty,{args:[0,a],checker:s}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],n._translateEmpty,{args:[0,o],checker:s}]]))}static initialize(n,s){es.initialize(n,s);const a=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(a.getPropertyValue("--freetext-padding"))}static updateDefaultParams(n,s){switch(n){case pn.FREETEXT_SIZE:Bn._defaultFontSize=s;break;case pn.FREETEXT_COLOR:Bn._defaultColor=s;break}}updateParams(n,s){switch(n){case pn.FREETEXT_SIZE:oe(this,vs,VR).call(this,s);break;case pn.FREETEXT_COLOR:oe(this,vs,zR).call(this,s);break}}static get defaultPropertiesToUpdate(){return[[pn.FREETEXT_SIZE,Bn._defaultFontSize],[pn.FREETEXT_COLOR,Bn._defaultColor||es._defaultLineColor]]}get propertiesToUpdate(){return[[pn.FREETEXT_SIZE,y(this,lo)],[pn.FREETEXT_COLOR,y(this,rr)]]}_translateEmpty(n,s){this._uiManager.translateSelectedEditors(n,s,!0)}getInitialTranslation(){const n=this.parentScale;return[-Bn._internalPadding*n,-(Bn._internalPadding+y(this,lo))*n]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(this.isInEditMode())return;this.parent.setEditingState(!1),this.parent.updateToolbar(nn.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),U(this,ud,new AbortController);const n=this._uiManager.combinedSignal(y(this,ud));this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:n}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:n}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:n}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:n}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:n})}disableEditMode(){var n;this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",y(this,pm)),this._isDraggable=!0,(n=y(this,ud))==null||n.abort(),U(this,ud,null),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"))}focusin(n){this._focusEventsAllowed&&(super.focusin(n),n.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(n){var s;this.width||(this.enableEditMode(),n&&this.editorDiv.focus(),(s=this._initialOptions)!=null&&s.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const n=y(this,io),s=U(this,io,oe(this,vs,HR).call(this).trimEnd());if(n===s)return;const a=o=>{if(U(this,io,o),!o){this.remove();return}oe(this,vs,Rg).call(this),this._uiManager.rebuild(this),oe(this,vs,Mg).call(this)};this.addCommands({cmd:()=>{a(s)},undo:()=>{a(n)},mustExec:!1}),oe(this,vs,Mg).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(n){this.enterInEditMode()}keydown(n){n.target===this.div&&n.key==="Enter"&&(this.enterInEditMode(),n.preventDefault())}editorDivKeydown(n){Bn._keyboardManager.exec(this,n)}editorDivFocus(n){this.isEditing=!0}editorDivBlur(n){this.isEditing=!1}editorDivInput(n){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let n,s;this.width&&(n=this.x,s=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",y(this,pm)),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text2"),this.editorDiv.setAttribute("data-l10n-attrs","default-content"),this.enableEditing(),this.editorDiv.contentEditable=!0;const{style:a}=this.editorDiv;if(a.fontSize=`calc(${y(this,lo)}px * var(--scale-factor))`,a.color=y(this,rr),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),P1(this,this.div,["dblclick","keydown"]),this.width){const[o,r]=this.parentDimensions;if(this.annotationElementId){const{position:i}=this._initialData;let[l,c]=this.getInitialTranslation();[l,c]=this.pageTranslationToScreen(l,c);const[u,d]=this.pageDimensions,[h,p]=this.pageTranslation;let v,m;switch(this.rotation){case 0:v=n+(i[0]-h)/u,m=s+this.height-(i[1]-p)/d;break;case 90:v=n+(i[0]-h)/u,m=s-(i[1]-p)/d,[l,c]=[c,-l];break;case 180:v=n-this.width+(i[0]-h)/u,m=s-(i[1]-p)/d,[l,c]=[-l,-c];break;case 270:v=n+(i[0]-h-this.height*d)/u,m=s+(i[1]-p-this.width*u)/d,[l,c]=[-c,l];break}this.setAt(v*o,m*r,l,c)}else this.setAt(n*o,s*r,this.width*o,this.height*r);oe(this,vs,Rg).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}editorDivPaste(n){var v,m,g;const s=n.clipboardData||window.clipboardData,{types:a}=s;if(a.length===1&&a[0]==="text/plain")return;n.preventDefault();const o=oe(v=Bn,_l,C6).call(v,s.getData("text")||"").replaceAll(W2,`
`);if(!o)return;const r=window.getSelection();if(!r.rangeCount)return;this.editorDiv.normalize(),r.deleteFromDocument();const i=r.getRangeAt(0);if(!o.includes(`
`)){i.insertNode(document.createTextNode(o)),this.editorDiv.normalize(),r.collapseToStart();return}const{startContainer:l,startOffset:c}=i,u=[],d=[];if(l.nodeType===Node.TEXT_NODE){const b=l.parentElement;if(d.push(l.nodeValue.slice(c).replaceAll(W2,"")),b!==this.editorDiv){let C=u;for(const w of this.editorDiv.childNodes){if(w===b){C=d;continue}C.push(oe(m=Bn,_l,Pg).call(m,w))}}u.push(l.nodeValue.slice(0,c).replaceAll(W2,""))}else if(l===this.editorDiv){let b=u,C=0;for(const w of this.editorDiv.childNodes)C++===c&&(b=d),b.push(oe(g=Bn,_l,Pg).call(g,w))}U(this,io,`${u.join(`
`)}${o}${d.join(`
`)}`),oe(this,vs,Rg).call(this);const h=new Range;let p=u.reduce((b,C)=>b+C.length,0);for(const{firstChild:b}of this.editorDiv.childNodes)if(b.nodeType===Node.TEXT_NODE){const C=b.nodeValue.length;if(p<=C){h.setStart(b,p),h.setEnd(b,p);break}p-=C}r.removeAllRanges(),r.addRange(h)}get contentDiv(){return this.editorDiv}static async deserialize(n,s,a){var i;let o=null;if(n instanceof NR){const{data:{defaultAppearanceData:{fontSize:l,fontColor:c},rect:u,rotation:d,id:h,popupRef:p},textContent:v,textPosition:m,parent:{page:{pageNumber:g}}}=n;if(!v||v.length===0)return null;o=n={annotationType:nn.FREETEXT,color:Array.from(c),fontSize:l,value:v.join(`
`),position:m,pageIndex:g-1,rect:u.slice(0),rotation:d,id:h,deleted:!1,popupRef:p}}const r=await super.deserialize(n,s,a);return U(r,lo,n.fontSize),U(r,rr,Nt.makeHexColor(...n.color)),U(r,io,oe(i=Bn,_l,C6).call(i,n.value)),r.annotationElementId=n.id||null,r._initialData=o,r}serialize(n=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const s=Bn._internalPadding*this.parentScale,a=this.getRect(s,s),o=es._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:y(this,rr)),r={annotationType:nn.FREETEXT,color:o,fontSize:y(this,lo),value:oe(this,vs,WR).call(this),pageIndex:this.pageIndex,rect:a,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return n?r:this.annotationElementId&&!oe(this,vs,jR).call(this,r)?null:(r.id=this.annotationElementId,r)}renderAnnotationElement(n){const s=super.renderAnnotationElement(n);if(this.deleted)return s;const{style:a}=s;a.fontSize=`calc(${y(this,lo)}px * var(--scale-factor))`,a.color=y(this,rr),s.replaceChildren();for(const r of y(this,io).split(`
`)){const i=document.createElement("div");i.append(r?document.createTextNode(r):document.createElement("br")),s.append(i)}const o=Bn._internalPadding*this.parentScale;return n.updateEdited({rect:this.getRect(o,o),popupContent:y(this,io)}),s}resetAnnotationElement(n){super.resetAnnotationElement(n),n.resetEdited()}};rr=new WeakMap,io=new WeakMap,pm=new WeakMap,ud=new WeakMap,lo=new WeakMap,vs=new WeakSet,VR=function(n){const s=o=>{this.editorDiv.style.fontSize=`calc(${o}px * var(--scale-factor))`,this.translate(0,-(o-y(this,lo))*this.parentScale),U(this,lo,o),oe(this,vs,Mg).call(this)},a=y(this,lo);this.addCommands({cmd:s.bind(this,n),undo:s.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:pn.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},zR=function(n){const s=o=>{U(this,rr,this.editorDiv.style.color=o)},a=y(this,rr);this.addCommands({cmd:s.bind(this,n),undo:s.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:pn.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},HR=function(){var a;const n=[];this.editorDiv.normalize();let s=null;for(const o of this.editorDiv.childNodes)(s==null?void 0:s.nodeType)===Node.TEXT_NODE&&o.nodeName==="BR"||(n.push(oe(a=Bn,_l,Pg).call(a,o)),s=o);return n.join(`
`)},Mg=function(){const[n,s]=this.parentDimensions;let a;if(this.isAttachedToDOM)a=this.div.getBoundingClientRect();else{const{currentLayer:o,div:r}=this,i=r.style.display,l=r.classList.contains("hidden");r.classList.remove("hidden"),r.style.display="hidden",o.div.append(this.div),a=r.getBoundingClientRect(),r.remove(),r.style.display=i,r.classList.toggle("hidden",l)}this.rotation%180===this.parentRotation%180?(this.width=a.width/n,this.height=a.height/s):(this.width=a.height/n,this.height=a.width/s),this.fixAndSetPosition()},_l=new WeakSet,Pg=function(n){return(n.nodeType===Node.TEXT_NODE?n.nodeValue:n.innerText).replaceAll(W2,"")},Rg=function(){if(this.editorDiv.replaceChildren(),!!y(this,io))for(const n of y(this,io).split(`
`)){const s=document.createElement("div");s.append(n?document.createTextNode(n):document.createElement("br")),this.editorDiv.append(s)}},WR=function(){return y(this,io).replaceAll(" "," ")},C6=function(n){return n.replaceAll(" "," ")},jR=function(n){const{value:s,fontSize:a,color:o,pageIndex:r}=this._initialData;return this._hasBeenMoved||n.value!==s||n.fontSize!==a||n.color.some((i,l)=>i!==o[l])||n.pageIndex!==r},ne(Bn,_l),Vt(Bn,"_freeTextDefaultContent",""),Vt(Bn,"_internalPadding",0),Vt(Bn,"_defaultColor",null),Vt(Bn,"_defaultFontSize",10),Vt(Bn,"_type","freetext"),Vt(Bn,"_editorType",nn.FREETEXT);let _6=Bn;class At{toSVGPath(){Dn("Abstract method `toSVGPath` must be implemented.")}get box(){Dn("Abstract getter `box` must be implemented.")}serialize(t,n){Dn("Abstract method `serialize` must be implemented.")}static _rescale(t,n,s,a,o,r){r||(r=new Float32Array(t.length));for(let i=0,l=t.length;i<l;i+=2)r[i]=n+t[i]*a,r[i+1]=s+t[i+1]*o;return r}static _rescaleAndSwap(t,n,s,a,o,r){r||(r=new Float32Array(t.length));for(let i=0,l=t.length;i<l;i+=2)r[i]=n+t[i+1]*a,r[i+1]=s+t[i]*o;return r}static _translate(t,n,s,a){a||(a=new Float32Array(t.length));for(let o=0,r=t.length;o<r;o+=2)a[o]=n+t[o],a[o+1]=s+t[o+1];return a}static svgRound(t){return Math.round(t*1e4)}static _normalizePoint(t,n,s,a,o){switch(o){case 90:return[1-n/s,t/a];case 180:return[1-t/s,1-n/a];case 270:return[n/s,1-t/a];default:return[t/s,n/a]}}static _normalizePagePoint(t,n,s){switch(s){case 90:return[1-n,t];case 180:return[1-t,1-n];case 270:return[n,1-t];default:return[t,n]}}static createBezierPoints(t,n,s,a,o,r){return[(t+5*s)/6,(n+5*a)/6,(5*s+o)/6,(5*a+r)/6,(s+o)/2,(a+r)/2]}}Vt(At,"PRECISION",1e-4);var co,ir,xh,Eh,ni,ln,dd,fd,vm,mm,kh,Ah,Cc,gm,J1,Z1,ks,ap,KR,UR,qR,GR,YR,XR;const $i=class $i{constructor({x:t,y:n},s,a,o,r,i=0){ne(this,ks);ne(this,co);ne(this,ir,[]);ne(this,xh);ne(this,Eh);ne(this,ni,[]);ne(this,ln,new Float32Array(18));ne(this,dd);ne(this,fd);ne(this,vm);ne(this,mm);ne(this,kh);ne(this,Ah);ne(this,Cc,[]);U(this,co,s),U(this,Ah,o*a),U(this,Eh,r),y(this,ln).set([NaN,NaN,NaN,NaN,t,n],6),U(this,xh,i),U(this,mm,y($i,gm)*a),U(this,vm,y($i,Z1)*a),U(this,kh,a),y(this,Cc).push(t,n)}isEmpty(){return isNaN(y(this,ln)[8])}add({x:t,y:n}){var I;U(this,dd,t),U(this,fd,n);const[s,a,o,r]=y(this,co);let[i,l,c,u]=y(this,ln).subarray(8,12);const d=t-c,h=n-u,p=Math.hypot(d,h);if(p<y(this,vm))return!1;const v=p-y(this,mm),m=v/p,g=m*d,b=m*h;let C=i,w=l;i=c,l=u,c+=g,u+=b,(I=y(this,Cc))==null||I.push(t,n);const _=-b/v,x=g/v,E=_*y(this,Ah),T=x*y(this,Ah);return y(this,ln).set(y(this,ln).subarray(2,8),0),y(this,ln).set([c+E,u+T],4),y(this,ln).set(y(this,ln).subarray(14,18),12),y(this,ln).set([c-E,u-T],16),isNaN(y(this,ln)[6])?(y(this,ni).length===0&&(y(this,ln).set([i+E,l+T],2),y(this,ni).push(NaN,NaN,NaN,NaN,(i+E-s)/o,(l+T-a)/r),y(this,ln).set([i-E,l-T],14),y(this,ir).push(NaN,NaN,NaN,NaN,(i-E-s)/o,(l-T-a)/r)),y(this,ln).set([C,w,i,l,c,u],6),!this.isEmpty()):(y(this,ln).set([C,w,i,l,c,u],6),Math.abs(Math.atan2(w-l,C-i)-Math.atan2(b,g))<Math.PI/2?([i,l,c,u]=y(this,ln).subarray(2,6),y(this,ni).push(NaN,NaN,NaN,NaN,((i+c)/2-s)/o,((l+u)/2-a)/r),[i,l,C,w]=y(this,ln).subarray(14,18),y(this,ir).push(NaN,NaN,NaN,NaN,((C+i)/2-s)/o,((w+l)/2-a)/r),!0):([C,w,i,l,c,u]=y(this,ln).subarray(0,6),y(this,ni).push(((C+5*i)/6-s)/o,((w+5*l)/6-a)/r,((5*i+c)/6-s)/o,((5*l+u)/6-a)/r,((i+c)/2-s)/o,((l+u)/2-a)/r),[c,u,i,l,C,w]=y(this,ln).subarray(12,18),y(this,ir).push(((C+5*i)/6-s)/o,((w+5*l)/6-a)/r,((5*i+c)/6-s)/o,((5*l+u)/6-a)/r,((i+c)/2-s)/o,((l+u)/2-a)/r),!0))}toSVGPath(){if(this.isEmpty())return"";const t=y(this,ni),n=y(this,ir);if(isNaN(y(this,ln)[6])&&!this.isEmpty())return oe(this,ks,KR).call(this);const s=[];s.push(`M${t[4]} ${t[5]}`);for(let a=6;a<t.length;a+=6)isNaN(t[a])?s.push(`L${t[a+4]} ${t[a+5]}`):s.push(`C${t[a]} ${t[a+1]} ${t[a+2]} ${t[a+3]} ${t[a+4]} ${t[a+5]}`);oe(this,ks,qR).call(this,s);for(let a=n.length-6;a>=6;a-=6)isNaN(n[a])?s.push(`L${n[a+4]} ${n[a+5]}`):s.push(`C${n[a]} ${n[a+1]} ${n[a+2]} ${n[a+3]} ${n[a+4]} ${n[a+5]}`);return oe(this,ks,UR).call(this,s),s.join(" ")}newFreeDrawOutline(t,n,s,a,o,r){return new JR(t,n,s,a,o,r)}getOutlines(){var d;const t=y(this,ni),n=y(this,ir),s=y(this,ln),[a,o,r,i]=y(this,co),l=new Float32Array((((d=y(this,Cc))==null?void 0:d.length)??0)+2);for(let h=0,p=l.length-2;h<p;h+=2)l[h]=(y(this,Cc)[h]-a)/r,l[h+1]=(y(this,Cc)[h+1]-o)/i;if(l[l.length-2]=(y(this,dd)-a)/r,l[l.length-1]=(y(this,fd)-o)/i,isNaN(s[6])&&!this.isEmpty())return oe(this,ks,GR).call(this,l);const c=new Float32Array(y(this,ni).length+24+y(this,ir).length);let u=t.length;for(let h=0;h<u;h+=2){if(isNaN(t[h])){c[h]=c[h+1]=NaN;continue}c[h]=t[h],c[h+1]=t[h+1]}u=oe(this,ks,XR).call(this,c,u);for(let h=n.length-6;h>=6;h-=6)for(let p=0;p<6;p+=2){if(isNaN(n[h+p])){c[u]=c[u+1]=NaN,u+=2;continue}c[u]=n[h+p],c[u+1]=n[h+p+1],u+=2}return oe(this,ks,YR).call(this,c,u),this.newFreeDrawOutline(c,l,y(this,co),y(this,kh),y(this,xh),y(this,Eh))}};co=new WeakMap,ir=new WeakMap,xh=new WeakMap,Eh=new WeakMap,ni=new WeakMap,ln=new WeakMap,dd=new WeakMap,fd=new WeakMap,vm=new WeakMap,mm=new WeakMap,kh=new WeakMap,Ah=new WeakMap,Cc=new WeakMap,gm=new WeakMap,J1=new WeakMap,Z1=new WeakMap,ks=new WeakSet,ap=function(){const t=y(this,ln).subarray(4,6),n=y(this,ln).subarray(16,18),[s,a,o,r]=y(this,co);return[(y(this,dd)+(t[0]-n[0])/2-s)/o,(y(this,fd)+(t[1]-n[1])/2-a)/r,(y(this,dd)+(n[0]-t[0])/2-s)/o,(y(this,fd)+(n[1]-t[1])/2-a)/r]},KR=function(){const[t,n,s,a]=y(this,co),[o,r,i,l]=oe(this,ks,ap).call(this);return`M${(y(this,ln)[2]-t)/s} ${(y(this,ln)[3]-n)/a} L${(y(this,ln)[4]-t)/s} ${(y(this,ln)[5]-n)/a} L${o} ${r} L${i} ${l} L${(y(this,ln)[16]-t)/s} ${(y(this,ln)[17]-n)/a} L${(y(this,ln)[14]-t)/s} ${(y(this,ln)[15]-n)/a} Z`},UR=function(t){const n=y(this,ir);t.push(`L${n[4]} ${n[5]} Z`)},qR=function(t){const[n,s,a,o]=y(this,co),r=y(this,ln).subarray(4,6),i=y(this,ln).subarray(16,18),[l,c,u,d]=oe(this,ks,ap).call(this);t.push(`L${(r[0]-n)/a} ${(r[1]-s)/o} L${l} ${c} L${u} ${d} L${(i[0]-n)/a} ${(i[1]-s)/o}`)},GR=function(t){const n=y(this,ln),[s,a,o,r]=y(this,co),[i,l,c,u]=oe(this,ks,ap).call(this),d=new Float32Array(36);return d.set([NaN,NaN,NaN,NaN,(n[2]-s)/o,(n[3]-a)/r,NaN,NaN,NaN,NaN,(n[4]-s)/o,(n[5]-a)/r,NaN,NaN,NaN,NaN,i,l,NaN,NaN,NaN,NaN,c,u,NaN,NaN,NaN,NaN,(n[16]-s)/o,(n[17]-a)/r,NaN,NaN,NaN,NaN,(n[14]-s)/o,(n[15]-a)/r],0),this.newFreeDrawOutline(d,t,y(this,co),y(this,kh),y(this,xh),y(this,Eh))},YR=function(t,n){const s=y(this,ir);return t.set([NaN,NaN,NaN,NaN,s[4],s[5]],n),n+=6},XR=function(t,n){const s=y(this,ln).subarray(4,6),a=y(this,ln).subarray(16,18),[o,r,i,l]=y(this,co),[c,u,d,h]=oe(this,ks,ap).call(this);return t.set([NaN,NaN,NaN,NaN,(s[0]-o)/i,(s[1]-r)/l,NaN,NaN,NaN,NaN,c,u,NaN,NaN,NaN,NaN,d,h,NaN,NaN,NaN,NaN,(a[0]-o)/i,(a[1]-r)/l],n),n+=24},ne($i,gm,8),ne($i,J1,2),ne($i,Z1,y($i,gm)+y($i,J1));let L1=$i;var Th,hd,sl,bm,uo,ym,cs,Q1,ZR;class JR extends At{constructor(n,s,a,o,r,i){super();ne(this,Q1);ne(this,Th);ne(this,hd,new Float32Array(4));ne(this,sl);ne(this,bm);ne(this,uo);ne(this,ym);ne(this,cs);U(this,cs,n),U(this,uo,s),U(this,Th,a),U(this,ym,o),U(this,sl,r),U(this,bm,i),this.lastPoint=[NaN,NaN],oe(this,Q1,ZR).call(this,i);const[l,c,u,d]=y(this,hd);for(let h=0,p=n.length;h<p;h+=2)n[h]=(n[h]-l)/u,n[h+1]=(n[h+1]-c)/d;for(let h=0,p=s.length;h<p;h+=2)s[h]=(s[h]-l)/u,s[h+1]=(s[h+1]-c)/d}toSVGPath(){const n=[`M${y(this,cs)[4]} ${y(this,cs)[5]}`];for(let s=6,a=y(this,cs).length;s<a;s+=6){if(isNaN(y(this,cs)[s])){n.push(`L${y(this,cs)[s+4]} ${y(this,cs)[s+5]}`);continue}n.push(`C${y(this,cs)[s]} ${y(this,cs)[s+1]} ${y(this,cs)[s+2]} ${y(this,cs)[s+3]} ${y(this,cs)[s+4]} ${y(this,cs)[s+5]}`)}return n.push("Z"),n.join(" ")}serialize([n,s,a,o],r){const i=a-n,l=o-s;let c,u;switch(r){case 0:c=At._rescale(y(this,cs),n,o,i,-l),u=At._rescale(y(this,uo),n,o,i,-l);break;case 90:c=At._rescaleAndSwap(y(this,cs),n,s,i,l),u=At._rescaleAndSwap(y(this,uo),n,s,i,l);break;case 180:c=At._rescale(y(this,cs),a,s,-i,l),u=At._rescale(y(this,uo),a,s,-i,l);break;case 270:c=At._rescaleAndSwap(y(this,cs),a,o,-i,-l),u=At._rescaleAndSwap(y(this,uo),a,o,-i,-l);break}return{outline:Array.from(c),points:[Array.from(u)]}}get box(){return y(this,hd)}newOutliner(n,s,a,o,r,i=0){return new L1(n,s,a,o,r,i)}getNewOutline(n,s){const[a,o,r,i]=y(this,hd),[l,c,u,d]=y(this,Th),h=r*u,p=i*d,v=a*u+l,m=o*d+c,g=this.newOutliner({x:y(this,uo)[0]*h+v,y:y(this,uo)[1]*p+m},y(this,Th),y(this,ym),n,y(this,bm),s??y(this,sl));for(let b=2;b<y(this,uo).length;b+=2)g.add({x:y(this,uo)[b]*h+v,y:y(this,uo)[b+1]*p+m});return g.getOutlines()}}Th=new WeakMap,hd=new WeakMap,sl=new WeakMap,bm=new WeakMap,uo=new WeakMap,ym=new WeakMap,cs=new WeakMap,Q1=new WeakSet,ZR=function(n){const s=y(this,cs);let a=s[4],o=s[5],r=a,i=o,l=a,c=o,u=a,d=o;const h=n?Math.max:Math.min;for(let v=6,m=s.length;v<m;v+=6){if(isNaN(s[v]))r=Math.min(r,s[v+4]),i=Math.min(i,s[v+5]),l=Math.max(l,s[v+4]),c=Math.max(c,s[v+5]),d<s[v+5]?(u=s[v+4],d=s[v+5]):d===s[v+5]&&(u=h(u,s[v+4]));else{const g=Nt.bezierBoundingBox(a,o,...s.slice(v,v+6));r=Math.min(r,g[0]),i=Math.min(i,g[1]),l=Math.max(l,g[2]),c=Math.max(c,g[3]),d<g[3]?(u=g[2],d=g[3]):d===g[3]&&(u=h(u,g[2]))}a=s[v+4],o=s[v+5]}const p=y(this,hd);p[0]=r-y(this,sl),p[1]=i-y(this,sl),p[2]=l-r+2*y(this,sl),p[3]=c-i+2*y(this,sl),this.lastPoint=[u,d]};var wm,_m,Sc,lr,La,QR,Ig,eI,tI,x6;class S6{constructor(t,n=0,s=0,a=!0){ne(this,La);ne(this,wm);ne(this,_m);ne(this,Sc,[]);ne(this,lr,[]);let o=1/0,r=-1/0,i=1/0,l=-1/0;const c=10**-4;for(const{x:g,y:b,width:C,height:w}of t){const _=Math.floor((g-n)/c)*c,x=Math.ceil((g+C+n)/c)*c,E=Math.floor((b-n)/c)*c,T=Math.ceil((b+w+n)/c)*c,R=[_,E,T,!0],I=[x,E,T,!1];y(this,Sc).push(R,I),o=Math.min(o,_),r=Math.max(r,x),i=Math.min(i,E),l=Math.max(l,T)}const u=r-o+2*s,d=l-i+2*s,h=o-s,p=i-s,v=y(this,Sc).at(a?-1:-2),m=[v[0],v[2]];for(const g of y(this,Sc)){const[b,C,w]=g;g[0]=(b-h)/u,g[1]=(C-p)/d,g[2]=(w-p)/d}U(this,wm,new Float32Array([h,p,u,d])),U(this,_m,m)}getOutlines(){y(this,Sc).sort((n,s)=>n[0]-s[0]||n[1]-s[1]||n[2]-s[2]);const t=[];for(const n of y(this,Sc))n[3]?(t.push(...oe(this,La,x6).call(this,n)),oe(this,La,eI).call(this,n)):(oe(this,La,tI).call(this,n),t.push(...oe(this,La,x6).call(this,n)));return oe(this,La,QR).call(this,t)}}wm=new WeakMap,_m=new WeakMap,Sc=new WeakMap,lr=new WeakMap,La=new WeakSet,QR=function(t){const n=[],s=new Set;for(const r of t){const[i,l,c]=r;n.push([i,l,r],[i,c,r])}n.sort((r,i)=>r[1]-i[1]||r[0]-i[0]);for(let r=0,i=n.length;r<i;r+=2){const l=n[r][2],c=n[r+1][2];l.push(c),c.push(l),s.add(l),s.add(c)}const a=[];let o;for(;s.size>0;){const r=s.values().next().value;let[i,l,c,u,d]=r;s.delete(r);let h=i,p=l;for(o=[i,c],a.push(o);;){let v;if(s.has(u))v=u;else if(s.has(d))v=d;else break;s.delete(v),[i,l,c,u,d]=v,h!==i&&(o.push(h,p,i,p===l?l:c),h=i),p=p===l?c:l}o.push(h,p)}return new cye(a,y(this,wm),y(this,_m))},Ig=function(t){const n=y(this,lr);let s=0,a=n.length-1;for(;s<=a;){const o=s+a>>1,r=n[o][0];if(r===t)return o;r<t?s=o+1:a=o-1}return a+1},eI=function([,t,n]){const s=oe(this,La,Ig).call(this,t);y(this,lr).splice(s,0,[t,n])},tI=function([,t,n]){const s=oe(this,La,Ig).call(this,t);for(let a=s;a<y(this,lr).length;a++){const[o,r]=y(this,lr)[a];if(o!==t)break;if(o===t&&r===n){y(this,lr).splice(a,1);return}}for(let a=s-1;a>=0;a--){const[o,r]=y(this,lr)[a];if(o!==t)break;if(o===t&&r===n){y(this,lr).splice(a,1);return}}},x6=function(t){const[n,s,a]=t,o=[[n,s,a]],r=oe(this,La,Ig).call(this,a);for(let i=0;i<r;i++){const[l,c]=y(this,lr)[i];for(let u=0,d=o.length;u<d;u++){const[,h,p]=o[u];if(!(c<=h||p<=l)){if(h>=l){if(p>c)o[u][1]=c;else{if(d===1)return[];o.splice(u,1),u--,d--}continue}o[u][2]=l,p>c&&o.push([n,c,p])}}}return o};var Cm,Mh;class cye extends At{constructor(n,s,a){super();ne(this,Cm);ne(this,Mh);U(this,Mh,n),U(this,Cm,s),this.lastPoint=a}toSVGPath(){const n=[];for(const s of y(this,Mh)){let[a,o]=s;n.push(`M${a} ${o}`);for(let r=2;r<s.length;r+=2){const i=s[r],l=s[r+1];i===a?(n.push(`V${l}`),o=l):l===o&&(n.push(`H${i}`),a=i)}n.push("Z")}return n.join(" ")}serialize([n,s,a,o],r){const i=[],l=a-n,c=o-s;for(const u of y(this,Mh)){const d=new Array(u.length);for(let h=0;h<u.length;h+=2)d[h]=n+u[h]*l,d[h+1]=o-u[h+1]*c;i.push(d)}return i}get box(){return y(this,Cm)}get classNamesForOutlining(){return["highlightOutline"]}}Cm=new WeakMap,Mh=new WeakMap;class E6 extends L1{newFreeDrawOutline(t,n,s,a,o,r){return new uye(t,n,s,a,o,r)}}class uye extends JR{newOutliner(t,n,s,a,o,r=0){return new E6(t,n,s,a,o,r)}}var cr,pd,Ph,xs,Sm,Rh,xm,Em,xc,ur,Ih,km,In,k6,A6,T6,lu,nI,Yl;const ja=class ja{constructor({editor:t=null,uiManager:n=null}){ne(this,In);ne(this,cr,null);ne(this,pd,null);ne(this,Ph);ne(this,xs,null);ne(this,Sm,!1);ne(this,Rh,!1);ne(this,xm,null);ne(this,Em);ne(this,xc,null);ne(this,ur,null);ne(this,Ih);var s;t?(U(this,Rh,!1),U(this,Ih,pn.HIGHLIGHT_COLOR),U(this,xm,t)):(U(this,Rh,!0),U(this,Ih,pn.HIGHLIGHT_DEFAULT_COLOR)),U(this,ur,(t==null?void 0:t._uiManager)||n),U(this,Em,y(this,ur)._eventBus),U(this,Ph,(t==null?void 0:t.color)||((s=y(this,ur))==null?void 0:s.highlightColors.values().next().value)||"#FFFF98"),y(ja,km)||U(ja,km,Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"}))}static get _keyboardManager(){return cn(this,"_keyboardManager",new p2([[["Escape","mac+Escape"],ja.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],ja.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],ja.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],ja.prototype._moveToPrevious],[["Home","mac+Home"],ja.prototype._moveToBeginning],[["End","mac+End"],ja.prototype._moveToEnd]]))}renderButton(){const t=U(this,cr,document.createElement("button"));t.className="colorPicker",t.tabIndex="0",t.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),t.setAttribute("aria-haspopup",!0);const n=y(this,ur)._signal;t.addEventListener("click",oe(this,In,lu).bind(this),{signal:n}),t.addEventListener("keydown",oe(this,In,T6).bind(this),{signal:n});const s=U(this,pd,document.createElement("span"));return s.className="swatch",s.setAttribute("aria-hidden",!0),s.style.backgroundColor=y(this,Ph),t.append(s),t}renderMainDropdown(){const t=U(this,xs,oe(this,In,k6).call(this));return t.setAttribute("aria-orientation","horizontal"),t.setAttribute("aria-labelledby","highlightColorPickerLabel"),t}_colorSelectFromKeyboard(t){if(t.target===y(this,cr)){oe(this,In,lu).call(this,t);return}const n=t.target.getAttribute("data-color");n&&oe(this,In,A6).call(this,n,t)}_moveToNext(t){var n,s;if(!y(this,In,Yl)){oe(this,In,lu).call(this,t);return}if(t.target===y(this,cr)){(n=y(this,xs).firstChild)==null||n.focus();return}(s=t.target.nextSibling)==null||s.focus()}_moveToPrevious(t){var n,s;if(t.target===((n=y(this,xs))==null?void 0:n.firstChild)||t.target===y(this,cr)){y(this,In,Yl)&&this._hideDropdownFromKeyboard();return}y(this,In,Yl)||oe(this,In,lu).call(this,t),(s=t.target.previousSibling)==null||s.focus()}_moveToBeginning(t){var n;if(!y(this,In,Yl)){oe(this,In,lu).call(this,t);return}(n=y(this,xs).firstChild)==null||n.focus()}_moveToEnd(t){var n;if(!y(this,In,Yl)){oe(this,In,lu).call(this,t);return}(n=y(this,xs).lastChild)==null||n.focus()}hideDropdown(){var t,n;(t=y(this,xs))==null||t.classList.add("hidden"),(n=y(this,xc))==null||n.abort(),U(this,xc,null)}_hideDropdownFromKeyboard(){var t;if(!y(this,Rh)){if(!y(this,In,Yl)){(t=y(this,xm))==null||t.unselect();return}this.hideDropdown(),y(this,cr).focus({preventScroll:!0,focusVisible:y(this,Sm)})}}updateColor(t){if(y(this,pd)&&(y(this,pd).style.backgroundColor=t),!y(this,xs))return;const n=y(this,ur).highlightColors.values();for(const s of y(this,xs).children)s.setAttribute("aria-selected",n.next().value===t)}destroy(){var t,n;(t=y(this,cr))==null||t.remove(),U(this,cr,null),U(this,pd,null),(n=y(this,xs))==null||n.remove(),U(this,xs,null)}};cr=new WeakMap,pd=new WeakMap,Ph=new WeakMap,xs=new WeakMap,Sm=new WeakMap,Rh=new WeakMap,xm=new WeakMap,Em=new WeakMap,xc=new WeakMap,ur=new WeakMap,Ih=new WeakMap,km=new WeakMap,In=new WeakSet,k6=function(){const t=document.createElement("div"),n=y(this,ur)._signal;t.addEventListener("contextmenu",Tr,{signal:n}),t.className="dropdown",t.role="listbox",t.setAttribute("aria-multiselectable",!1),t.setAttribute("aria-orientation","vertical"),t.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown");for(const[s,a]of y(this,ur).highlightColors){const o=document.createElement("button");o.tabIndex="0",o.role="option",o.setAttribute("data-color",a),o.title=s,o.setAttribute("data-l10n-id",y(ja,km)[s]);const r=document.createElement("span");o.append(r),r.className="swatch",r.style.backgroundColor=a,o.setAttribute("aria-selected",a===y(this,Ph)),o.addEventListener("click",oe(this,In,A6).bind(this,a),{signal:n}),t.append(o)}return t.addEventListener("keydown",oe(this,In,T6).bind(this),{signal:n}),t},A6=function(t,n){n.stopPropagation(),y(this,Em).dispatch("switchannotationeditorparams",{source:this,type:y(this,Ih),value:t})},T6=function(t){ja._keyboardManager.exec(this,t)},lu=function(t){if(y(this,In,Yl)){this.hideDropdown();return}if(U(this,Sm,t.detail===0),y(this,xc)||(U(this,xc,new AbortController),window.addEventListener("pointerdown",oe(this,In,nI).bind(this),{signal:y(this,ur).combinedSignal(y(this,xc))})),y(this,xs)){y(this,xs).classList.remove("hidden");return}const n=U(this,xs,oe(this,In,k6).call(this));y(this,cr).append(n)},nI=function(t){var n;(n=y(this,xs))!=null&&n.contains(t.target)||this.hideDropdown()},Yl=function(){return y(this,xs)&&!y(this,xs).classList.contains("hidden")},ne(ja,km,null);let O1=ja;var Lh,Am,al,vd,Oh,qa,Tm,Mm,md,$o,fo,js,Nh,ol,ra,$h,Do,Pm,tn,M6,Lg,sI,aI,oI,P6,cu,Ho,_f,rI,Og,op,iI,lI,cI,uI,dI;const Sn=class Sn extends es{constructor(n){super({...n,name:"highlightEditor"});ne(this,tn);ne(this,Lh,null);ne(this,Am,0);ne(this,al);ne(this,vd,null);ne(this,Oh,null);ne(this,qa,null);ne(this,Tm,null);ne(this,Mm,0);ne(this,md,null);ne(this,$o,null);ne(this,fo,null);ne(this,js,!1);ne(this,Nh,null);ne(this,ol);ne(this,ra,null);ne(this,$h,"");ne(this,Do);ne(this,Pm,"");this.color=n.color||Sn._defaultColor,U(this,Do,n.thickness||Sn._defaultThickness),U(this,ol,n.opacity||Sn._defaultOpacity),U(this,al,n.boxes||null),U(this,Pm,n.methodOfCreation||""),U(this,$h,n.text||""),this._isDraggable=!1,n.highlightId>-1?(U(this,js,!0),oe(this,tn,Lg).call(this,n),oe(this,tn,cu).call(this)):y(this,al)&&(U(this,Lh,n.anchorNode),U(this,Am,n.anchorOffset),U(this,Tm,n.focusNode),U(this,Mm,n.focusOffset),oe(this,tn,M6).call(this),oe(this,tn,cu).call(this),this.rotate(this.rotation))}static get _keyboardManager(){const n=Sn.prototype;return cn(this,"_keyboardManager",new p2([[["ArrowLeft","mac+ArrowLeft"],n._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],n._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],n._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],n._moveCaret,{args:[3]}]]))}get telemetryInitialData(){return{action:"added",type:y(this,js)?"free_highlight":"highlight",color:this._uiManager.highlightColorNames.get(this.color),thickness:y(this,Do),methodOfCreation:y(this,Pm)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.highlightColorNames.get(this.color)}}static computeTelemetryFinalData(n){return{numberOfColors:n.get("color").size}}static initialize(n,s){var a;es.initialize(n,s),Sn._defaultColor||(Sn._defaultColor=((a=s.highlightColors)==null?void 0:a.values().next().value)||"#fff066")}static updateDefaultParams(n,s){switch(n){case pn.HIGHLIGHT_DEFAULT_COLOR:Sn._defaultColor=s;break;case pn.HIGHLIGHT_THICKNESS:Sn._defaultThickness=s;break}}translateInPage(n,s){}get toolbarPosition(){return y(this,Nh)}updateParams(n,s){switch(n){case pn.HIGHLIGHT_COLOR:oe(this,tn,sI).call(this,s);break;case pn.HIGHLIGHT_THICKNESS:oe(this,tn,aI).call(this,s);break}}static get defaultPropertiesToUpdate(){return[[pn.HIGHLIGHT_DEFAULT_COLOR,Sn._defaultColor],[pn.HIGHLIGHT_THICKNESS,Sn._defaultThickness]]}get propertiesToUpdate(){return[[pn.HIGHLIGHT_COLOR,this.color||Sn._defaultColor],[pn.HIGHLIGHT_THICKNESS,y(this,Do)||Sn._defaultThickness],[pn.HIGHLIGHT_FREE,y(this,js)]]}async addEditToolbar(){const n=await super.addEditToolbar();return n?(this._uiManager.highlightColors&&(U(this,Oh,new O1({editor:this})),n.addColorPicker(y(this,Oh))),n):null}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(oe(this,tn,op).call(this))}getBaseTranslation(){return[0,0]}getRect(n,s){return super.getRect(n,s,oe(this,tn,op).call(this))}onceAdded(n){this.annotationElementId||this.parent.addUndoableEditor(this),n&&this.div.focus()}remove(){oe(this,tn,P6).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(oe(this,tn,cu).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(n){var a;let s=!1;this.parent&&!n?oe(this,tn,P6).call(this):n&&(oe(this,tn,cu).call(this,n),s=!this.parent&&((a=this.div)==null?void 0:a.classList.contains("selectedEditor"))),super.setParent(n),this.show(this._isVisible),s&&this.select()}rotate(n){var o,r,i;const{drawLayer:s}=this.parent;let a;y(this,js)?(n=(n-this.rotation+360)%360,a=oe(o=Sn,Ho,_f).call(o,y(this,$o).box,n)):a=oe(r=Sn,Ho,_f).call(r,[this.x,this.y,this.width,this.height],n),s.updateProperties(y(this,fo),{bbox:a,root:{"data-main-rotation":n}}),s.updateProperties(y(this,ra),{bbox:oe(i=Sn,Ho,_f).call(i,y(this,qa).box,n),root:{"data-main-rotation":n}})}render(){if(this.div)return this.div;const n=super.render();y(this,$h)&&(n.setAttribute("aria-label",y(this,$h)),n.setAttribute("role","mark")),y(this,js)?n.classList.add("free"):this.div.addEventListener("keydown",oe(this,tn,rI).bind(this),{signal:this._uiManager._signal});const s=U(this,md,document.createElement("div"));n.append(s),s.setAttribute("aria-hidden","true"),s.className="internal",s.style.clipPath=y(this,vd);const[a,o]=this.parentDimensions;return this.setDims(this.width*a,this.height*o),P1(this,y(this,md),["pointerover","pointerleave"]),this.enableEditing(),n}pointerover(){var n;this.isSelected||(n=this.parent)==null||n.drawLayer.updateProperties(y(this,ra),{rootClass:{hovered:!0}})}pointerleave(){var n;this.isSelected||(n=this.parent)==null||n.drawLayer.updateProperties(y(this,ra),{rootClass:{hovered:!1}})}_moveCaret(n){switch(this.parent.unselect(this),n){case 0:case 2:oe(this,tn,Og).call(this,!0);break;case 1:case 3:oe(this,tn,Og).call(this,!1);break}}select(){var n;super.select(),y(this,ra)&&((n=this.parent)==null||n.drawLayer.updateProperties(y(this,ra),{rootClass:{hovered:!1,selected:!0}}))}unselect(){var n;super.unselect(),y(this,ra)&&((n=this.parent)==null||n.drawLayer.updateProperties(y(this,ra),{rootClass:{selected:!1}}),y(this,js)||oe(this,tn,Og).call(this,!1))}get _mustFixPosition(){return!y(this,js)}show(n=this._isVisible){super.show(n),this.parent&&(this.parent.drawLayer.updateProperties(y(this,fo),{rootClass:{hidden:!n}}),this.parent.drawLayer.updateProperties(y(this,ra),{rootClass:{hidden:!n}}))}static startHighlighting(n,s,{target:a,x:o,y:r}){const{x:i,y:l,width:c,height:u}=a.getBoundingClientRect(),d=new AbortController,h=n.combinedSignal(d),p=v=>{d.abort(),oe(this,Ho,uI).call(this,n,v)};window.addEventListener("blur",p,{signal:h}),window.addEventListener("pointerup",p,{signal:h}),window.addEventListener("pointerdown",yo,{capture:!0,passive:!1,signal:h}),window.addEventListener("contextmenu",Tr,{signal:h}),a.addEventListener("pointermove",oe(this,Ho,cI).bind(this,n),{signal:h}),this._freeHighlight=new E6({x:o,y:r},[i,l,c,u],n.scale,this._defaultThickness/2,s,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=n.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0)}static async deserialize(n,s,a){var m,g,b,C;let o=null;if(n instanceof DR){const{data:{quadPoints:w,rect:_,rotation:x,id:E,color:T,opacity:R,popupRef:I},parent:{page:{pageNumber:M}}}=n;o=n={annotationType:nn.HIGHLIGHT,color:Array.from(T),opacity:R,quadPoints:w,boxes:null,pageIndex:M-1,rect:_.slice(0),rotation:x,id:E,deleted:!1,popupRef:I}}else if(n instanceof w_){const{data:{inkLists:w,rect:_,rotation:x,id:E,color:T,borderStyle:{rawWidth:R},popupRef:I},parent:{page:{pageNumber:M}}}=n;o=n={annotationType:nn.HIGHLIGHT,color:Array.from(T),thickness:R,inkLists:w,boxes:null,pageIndex:M-1,rect:_.slice(0),rotation:x,id:E,deleted:!1,popupRef:I}}const{color:r,quadPoints:i,inkLists:l,opacity:c}=n,u=await super.deserialize(n,s,a);u.color=Nt.makeHexColor(...r),U(u,ol,c||1),l&&U(u,Do,n.thickness),u.annotationElementId=n.id||null,u._initialData=o;const[d,h]=u.pageDimensions,[p,v]=u.pageTranslation;if(i){const w=U(u,al,[]);for(let _=0;_<i.length;_+=8)w.push({x:(i[_]-p)/d,y:1-(i[_+1]-v)/h,width:(i[_+2]-i[_])/d,height:(i[_+1]-i[_+5])/h});oe(m=u,tn,M6).call(m),oe(g=u,tn,cu).call(g),u.rotate(u.rotation)}else if(l){U(u,js,!0);const w=l[0],_={x:w[0]-p,y:h-(w[1]-v)},x=new E6(_,[0,0,d,h],1,y(u,Do)/2,!0,.001);for(let R=0,I=w.length;R<I;R+=2)_.x=w[R]-p,_.y=h-(w[R+1]-v),x.add(_);const{id:E,clipPathId:T}=s.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:u.color,"fill-opacity":u._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:x.toSVGPath()}},!0,!0);oe(b=u,tn,Lg).call(b,{highlightOutlines:x.getOutlines(),highlightId:E,clipPathId:T}),oe(C=u,tn,cu).call(C)}return u}serialize(n=!1){if(this.isEmpty()||n)return null;if(this.deleted)return this.serializeDeleted();const s=this.getRect(0,0),a=es._colorManager.convert(this.color),o={annotationType:nn.HIGHLIGHT,color:a,opacity:y(this,ol),thickness:y(this,Do),quadPoints:oe(this,tn,iI).call(this),outlines:oe(this,tn,lI).call(this,s),pageIndex:this.pageIndex,rect:s,rotation:oe(this,tn,op).call(this),structTreeParentId:this._structTreeParentId};return this.annotationElementId&&!oe(this,tn,dI).call(this,o)?null:(o.id=this.annotationElementId,o)}renderAnnotationElement(n){return n.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}};Lh=new WeakMap,Am=new WeakMap,al=new WeakMap,vd=new WeakMap,Oh=new WeakMap,qa=new WeakMap,Tm=new WeakMap,Mm=new WeakMap,md=new WeakMap,$o=new WeakMap,fo=new WeakMap,js=new WeakMap,Nh=new WeakMap,ol=new WeakMap,ra=new WeakMap,$h=new WeakMap,Do=new WeakMap,Pm=new WeakMap,tn=new WeakSet,M6=function(){const n=new S6(y(this,al),.001);U(this,$o,n.getOutlines()),[this.x,this.y,this.width,this.height]=y(this,$o).box;const s=new S6(y(this,al),.0025,.001,this._uiManager.direction==="ltr");U(this,qa,s.getOutlines());const{lastPoint:a}=y(this,qa);U(this,Nh,[(a[0]-this.x)/this.width,(a[1]-this.y)/this.height])},Lg=function({highlightOutlines:n,highlightId:s,clipPathId:a}){var d,h;if(U(this,$o,n),U(this,qa,n.getNewOutline(y(this,Do)/2+1.5,.0025)),s>=0)U(this,fo,s),U(this,vd,a),this.parent.drawLayer.finalizeDraw(s,{bbox:n.box,path:{d:n.toSVGPath()}}),U(this,ra,this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:y(this,qa).box,path:{d:y(this,qa).toSVGPath()}},!0));else if(this.parent){const p=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(y(this,fo),{bbox:oe(d=Sn,Ho,_f).call(d,y(this,$o).box,(p-this.rotation+360)%360),path:{d:n.toSVGPath()}}),this.parent.drawLayer.updateProperties(y(this,ra),{bbox:oe(h=Sn,Ho,_f).call(h,y(this,qa).box,p),path:{d:y(this,qa).toSVGPath()}})}const[r,i,l,c]=n.box;switch(this.rotation){case 0:this.x=r,this.y=i,this.width=l,this.height=c;break;case 90:{const[p,v]=this.parentDimensions;this.x=i,this.y=1-r,this.width=l*v/p,this.height=c*p/v;break}case 180:this.x=1-r,this.y=1-i,this.width=l,this.height=c;break;case 270:{const[p,v]=this.parentDimensions;this.x=1-i,this.y=r,this.width=l*v/p,this.height=c*p/v;break}}const{lastPoint:u}=y(this,qa);U(this,Nh,[(u[0]-r)/l,(u[1]-i)/c])},sI=function(n){const s=(r,i)=>{var l,c;this.color=r,U(this,ol,i),(l=this.parent)==null||l.drawLayer.updateProperties(y(this,fo),{root:{fill:r,"fill-opacity":i}}),(c=y(this,Oh))==null||c.updateColor(r)},a=this.color,o=y(this,ol);this.addCommands({cmd:s.bind(this,n,Sn._defaultOpacity),undo:s.bind(this,a,o),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:pn.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.highlightColorNames.get(n)},!0)},aI=function(n){const s=y(this,Do),a=o=>{U(this,Do,o),oe(this,tn,oI).call(this,o)};this.addCommands({cmd:a.bind(this,n),undo:a.bind(this,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:pn.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:n},!0)},oI=function(n){if(!y(this,js))return;oe(this,tn,Lg).call(this,{highlightOutlines:y(this,$o).getNewOutline(n/2)}),this.fixAndSetPosition();const[s,a]=this.parentDimensions;this.setDims(this.width*s,this.height*a)},P6=function(){y(this,fo)===null||!this.parent||(this.parent.drawLayer.remove(y(this,fo)),U(this,fo,null),this.parent.drawLayer.remove(y(this,ra)),U(this,ra,null))},cu=function(n=this.parent){y(this,fo)===null&&({id:wa(this,fo)._,clipPathId:wa(this,vd)._}=n.drawLayer.draw({bbox:y(this,$o).box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":y(this,ol)},rootClass:{highlight:!0,free:y(this,js)},path:{d:y(this,$o).toSVGPath()}},!1,!0),U(this,ra,n.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:y(this,js)},bbox:y(this,qa).box,path:{d:y(this,qa).toSVGPath()}},y(this,js))),y(this,md)&&(y(this,md).style.clipPath=y(this,vd)))},Ho=new WeakSet,_f=function([n,s,a,o],r){switch(r){case 90:return[1-s-o,n,o,a];case 180:return[1-n-a,1-s-o,a,o];case 270:return[s,1-n-a,o,a]}return[n,s,a,o]},rI=function(n){Sn._keyboardManager.exec(this,n)},Og=function(n){if(!y(this,Lh))return;const s=window.getSelection();n?s.setPosition(y(this,Lh),y(this,Am)):s.setPosition(y(this,Tm),y(this,Mm))},op=function(){return y(this,js)?this.rotation:0},iI=function(){if(y(this,js))return null;const[n,s]=this.pageDimensions,[a,o]=this.pageTranslation,r=y(this,al),i=new Float32Array(r.length*8);let l=0;for(const{x:c,y:u,width:d,height:h}of r){const p=c*n+a,v=(1-u)*s+o;i[l]=i[l+4]=p,i[l+1]=i[l+3]=v,i[l+2]=i[l+6]=p+d*n,i[l+5]=i[l+7]=v-h*s,l+=8}return i},lI=function(n){return y(this,$o).serialize(n,oe(this,tn,op).call(this))},cI=function(n,s){this._freeHighlight.add(s)&&n.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})},uI=function(n,s){this._freeHighlight.isEmpty()?n.drawLayer.remove(this._freeHighlightId):n.createAndAddNewEditor(s,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""},dI=function(n){const{color:s}=this._initialData;return n.color.some((a,o)=>a!==s[o])},ne(Sn,Ho),Vt(Sn,"_defaultColor",null),Vt(Sn,"_defaultOpacity",1),Vt(Sn,"_defaultThickness",12),Vt(Sn,"_type","highlight"),Vt(Sn,"_editorType",nn.HIGHLIGHT),Vt(Sn,"_freeHighlightId",-1),Vt(Sn,"_freeHighlight",null),Vt(Sn,"_freeHighlightClipId","");let N1=Sn;var gd;class dye{constructor(){ne(this,gd,Object.create(null))}updateProperty(t,n){this[t]=n,this.updateSVGProperty(t,n)}updateProperties(t){if(t)for(const[n,s]of Object.entries(t))this.updateProperty(n,s)}updateSVGProperty(t,n){y(this,gd)[t]=n}toSVGProperties(){const t=y(this,gd);return U(this,gd,Object.create(null)),{root:t}}reset(){U(this,gd,Object.create(null))}updateAll(t=this){this.updateProperties(t)}clone(){Dn("Not implemented")}}gd=new WeakMap;var ho,Dh,Os,bd,yd,Ec,kc,Ac,wd,mn,I6,L6,O6,rp,fI,Ng,ip,Cf;const Tt=class Tt extends es{constructor(n){super(n);ne(this,mn);ne(this,ho,null);ne(this,Dh);Vt(this,"_drawId",null);U(this,Dh,n.mustBeCommitted||!1),n.drawOutlines&&(oe(this,mn,I6).call(this,n),oe(this,mn,rp).call(this))}static _mergeSVGProperties(n,s){const a=new Set(Object.keys(n));for(const[o,r]of Object.entries(s))a.has(o)?Object.assign(n[o],r):n[o]=r;return n}static getDefaultDrawingOptions(n){Dn("Not implemented")}static get typesMap(){Dn("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(n,s){const a=this.typesMap.get(n);a&&this._defaultDrawingOptions.updateProperty(a,s),this._currentParent&&(y(Tt,Os).updateProperty(a,s),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(n,s){const a=this.constructor.typesMap.get(n);a&&this._updateProperty(n,a,s)}static get defaultPropertiesToUpdate(){const n=[],s=this._defaultDrawingOptions;for(const[a,o]of this.typesMap)n.push([a,s[o]]);return n}get propertiesToUpdate(){const n=[],{_drawingOptions:s}=this;for(const[a,o]of this.constructor.typesMap)n.push([a,s[o]]);return n}_updateProperty(n,s,a){const o=this._drawingOptions,r=o[s],i=l=>{var u;o.updateProperty(s,l);const c=y(this,ho).updateProperty(s,l);c&&oe(this,mn,ip).call(this,c),(u=this.parent)==null||u.drawLayer.updateProperties(this._drawId,o.toSVGProperties())};this.addCommands({cmd:i.bind(this,a),undo:i.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:n,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,Tt._mergeSVGProperties(y(this,ho).getPathResizingSVGProperties(oe(this,mn,Ng).call(this)),{bbox:oe(this,mn,Cf).call(this)}))}_onResized(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,Tt._mergeSVGProperties(y(this,ho).getPathResizedSVGProperties(oe(this,mn,Ng).call(this)),{bbox:oe(this,mn,Cf).call(this)}))}_onTranslating(n,s){var a;(a=this.parent)==null||a.drawLayer.updateProperties(this._drawId,{bbox:oe(this,mn,Cf).call(this,n,s)})}_onTranslated(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,Tt._mergeSVGProperties(y(this,ho).getPathTranslatedSVGProperties(oe(this,mn,Ng).call(this),this.parentDimensions),{bbox:oe(this,mn,Cf).call(this)}))}_onStartDragging(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(n){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,y(this,Dh)&&(U(this,Dh,!1),this.commit(),this.parent.setSelected(this),n&&this.isOnScreen&&this.div.focus())}remove(){oe(this,mn,O6).call(this),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(oe(this,mn,rp).call(this),oe(this,mn,ip).call(this,y(this,ho).box),this.isAttachedToDOM||this.parent.add(this)))}setParent(n){var a;let s=!1;this.parent&&!n?(this._uiManager.removeShouldRescale(this),oe(this,mn,O6).call(this)):n&&(this._uiManager.addShouldRescale(this),oe(this,mn,rp).call(this,n),s=!this.parent&&((a=this.div)==null?void 0:a.classList.contains("selectedEditor"))),super.setParent(n),s&&this.select()}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,Tt._mergeSVGProperties({bbox:oe(this,mn,Cf).call(this)},y(this,ho).updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&oe(this,mn,ip).call(this,y(this,ho).updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;const n=super.render();n.classList.add("draw");const s=document.createElement("div");n.append(s),s.setAttribute("aria-hidden","true"),s.className="internal";const[a,o]=this.parentDimensions;return this.setDims(this.width*a,this.height*o),this._uiManager.addShouldRescale(this),this.disableEditing(),n}static createDrawerInstance(n,s,a,o,r){Dn("Not implemented")}static startDrawing(n,s,a,o){var g;const{target:r,offsetX:i,offsetY:l,pointerId:c,pointerType:u}=o;if(y(Tt,kc)&&y(Tt,kc)!==u)return;const{viewport:{rotation:d}}=n,{width:h,height:p}=r.getBoundingClientRect(),v=U(Tt,bd,new AbortController),m=n.combinedSignal(v);if(y(Tt,Ec)||U(Tt,Ec,c),y(Tt,kc)??U(Tt,kc,u),window.addEventListener("pointerup",b=>{var C;y(Tt,Ec)===b.pointerId?this._endDraw(b):(C=y(Tt,Ac))==null||C.delete(b.pointerId)},{signal:m}),window.addEventListener("pointercancel",b=>{var C;y(Tt,Ec)===b.pointerId?this._currentParent.endDrawingSession():(C=y(Tt,Ac))==null||C.delete(b.pointerId)},{signal:m}),window.addEventListener("pointerdown",b=>{y(Tt,kc)===b.pointerType&&((y(Tt,Ac)||U(Tt,Ac,new Set)).add(b.pointerId),y(Tt,Os).isCancellable()&&(y(Tt,Os).removeLastElement(),y(Tt,Os).isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:m}),window.addEventListener("contextmenu",Tr,{signal:m}),r.addEventListener("pointermove",this._drawMove.bind(this),{signal:m}),r.addEventListener("touchmove",b=>{b.timeStamp===y(Tt,wd)&&yo(b)},{signal:m}),n.toggleDrawing(),(g=s._editorUndoBar)==null||g.hide(),y(Tt,Os)){n.drawLayer.updateProperties(this._currentDrawId,y(Tt,Os).startNew(i,l,h,p,d));return}s.updateUIForDefaultProperties(this),U(Tt,Os,this.createDrawerInstance(i,l,h,p,d)),U(Tt,yd,this.getDefaultDrawingOptions()),this._currentParent=n,{id:this._currentDrawId}=n.drawLayer.draw(this._mergeSVGProperties(y(Tt,yd).toSVGProperties(),y(Tt,Os).defaultSVGProperties),!0,!1)}static _drawMove(n){var r;if(U(Tt,wd,-1),!y(Tt,Os))return;const{offsetX:s,offsetY:a,pointerId:o}=n;if(y(Tt,Ec)===o){if(((r=y(Tt,Ac))==null?void 0:r.size)>=1){this._endDraw(n);return}this._currentParent.drawLayer.updateProperties(this._currentDrawId,y(Tt,Os).add(s,a)),U(Tt,wd,n.timeStamp),yo(n)}}static _cleanup(n){n&&(this._currentDrawId=-1,this._currentParent=null,U(Tt,Os,null),U(Tt,yd,null),U(Tt,kc,null),U(Tt,wd,NaN)),y(Tt,bd)&&(y(Tt,bd).abort(),U(Tt,bd,null),U(Tt,Ec,NaN),U(Tt,Ac,null))}static _endDraw(n){const s=this._currentParent;if(s){if(s.toggleDrawing(!0),this._cleanup(!1),n&&s.drawLayer.updateProperties(this._currentDrawId,y(Tt,Os).end(n.offsetX,n.offsetY)),this.supportMultipleDrawings){const a=y(Tt,Os),o=this._currentDrawId,r=a.getLastElement();s.addCommands({cmd:()=>{s.drawLayer.updateProperties(o,a.setLastElement(r))},undo:()=>{s.drawLayer.updateProperties(o,a.removeLastElement())},mustExec:!1,type:pn.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(n){const s=this._currentParent;if(!s)return null;if(s.toggleDrawing(!0),s.cleanUndoStack(pn.DRAW_STEP),!y(Tt,Os).isEmpty()){const{pageDimensions:[a,o],scale:r}=s,i=s.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:y(Tt,Os).getOutlines(a*r,o*r,r,this._INNER_MARGIN),drawingOptions:y(Tt,yd),mustBeCommitted:!n});return this._cleanup(!0),i}return s.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(n){}static deserializeDraw(n,s,a,o,r,i){Dn("Not implemented")}static async deserialize(n,s,a){var d,h;const{rawDims:{pageWidth:o,pageHeight:r,pageX:i,pageY:l}}=s.viewport,c=this.deserializeDraw(i,l,o,r,this._INNER_MARGIN,n),u=await super.deserialize(n,s,a);return u.createDrawingOptions(n),oe(d=u,mn,I6).call(d,{drawOutlines:c}),oe(h=u,mn,rp).call(h),u.onScaleChanging(),u.rotate(),u}serializeDraw(n){const[s,a]=this.pageTranslation,[o,r]=this.pageDimensions;return y(this,ho).serialize([s,a,o,r],n)}renderAnnotationElement(n){return n.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}};ho=new WeakMap,Dh=new WeakMap,Os=new WeakMap,bd=new WeakMap,yd=new WeakMap,Ec=new WeakMap,kc=new WeakMap,Ac=new WeakMap,wd=new WeakMap,mn=new WeakSet,I6=function({drawOutlines:n,drawId:s,drawingOptions:a}){U(this,ho,n),this._drawingOptions||(this._drawingOptions=a),s>=0?(this._drawId=s,this.parent.drawLayer.finalizeDraw(s,n.defaultProperties)):this._drawId=oe(this,mn,L6).call(this,n,this.parent),oe(this,mn,ip).call(this,n.box)},L6=function(n,s){const{id:a}=s.drawLayer.draw(Tt._mergeSVGProperties(this._drawingOptions.toSVGProperties(),n.defaultSVGProperties),!1,!1);return a},O6=function(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())},rp=function(n=this.parent){if(!(this._drawId!==null&&this.parent===n)){if(this._drawId!==null){this.parent.drawLayer.updateParent(this._drawId,n.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=oe(this,mn,L6).call(this,y(this,ho),n)}},fI=function([n,s,a,o]){const{parentDimensions:[r,i],rotation:l}=this;switch(l){case 90:return[s,1-n,a*(i/r),o*(r/i)];case 180:return[1-n,1-s,a,o];case 270:return[1-s,n,a*(i/r),o*(r/i)];default:return[n,s,a,o]}},Ng=function(){const{x:n,y:s,width:a,height:o,parentDimensions:[r,i],rotation:l}=this;switch(l){case 90:return[1-s,n,a*(r/i),o*(i/r)];case 180:return[1-n,1-s,a,o];case 270:return[s,1-n,a*(r/i),o*(i/r)];default:return[n,s,a,o]}},ip=function(n){if([this.x,this.y,this.width,this.height]=oe(this,mn,fI).call(this,n),this.div){this.fixAndSetPosition();const[s,a]=this.parentDimensions;this.setDims(this.width*s,this.height*a)}this._onResized()},Cf=function(){const{x:n,y:s,width:a,height:o,rotation:r,parentRotation:i,parentDimensions:[l,c]}=this;switch((r*4+i)/90){case 1:return[1-s-o,n,o,a];case 2:return[1-n-a,1-s-o,a,o];case 3:return[s,1-n-a,o,a];case 4:return[n,s-a*(l/c),o*(c/l),a*(l/c)];case 5:return[1-s,n,a*(l/c),o*(c/l)];case 6:return[1-n-o*(c/l),1-s,o*(c/l),a*(l/c)];case 7:return[s-a*(l/c),1-n-o*(c/l),a*(l/c),o*(c/l)];case 8:return[n-a,s-o,a,o];case 9:return[1-s,n-a,o,a];case 10:return[1-n,1-s,a,o];case 11:return[s-o,1-n,o,a];case 12:return[n-o*(c/l),s,o*(c/l),a*(l/c)];case 13:return[1-s-a*(l/c),n-o*(c/l),a*(l/c),o*(c/l)];case 14:return[1-n,1-s-a*(l/c),o*(c/l),a*(l/c)];case 15:return[s,1-n,a*(l/c),o*(c/l)];default:return[n,s,a,o]}},Vt(Tt,"_currentDrawId",-1),Vt(Tt,"_currentParent",null),ne(Tt,Os,null),ne(Tt,bd,null),ne(Tt,yd,null),ne(Tt,Ec,NaN),ne(Tt,kc,null),ne(Tt,Ac,null),ne(Tt,wd,NaN),Vt(Tt,"_INNER_MARGIN",3);let R6=Tt;var si,Ns,$s,_d,Fh,Ea,Ks,Fo,Cd,Sd,xd,Bh,$g;class fye{constructor(t,n,s,a,o,r){ne(this,Bh);ne(this,si,new Float64Array(6));ne(this,Ns);ne(this,$s);ne(this,_d);ne(this,Fh);ne(this,Ea);ne(this,Ks,"");ne(this,Fo,0);ne(this,Cd,new $1);ne(this,Sd);ne(this,xd);U(this,Sd,s),U(this,xd,a),U(this,_d,o),U(this,Fh,r),[t,n]=oe(this,Bh,$g).call(this,t,n);const i=U(this,Ns,[NaN,NaN,NaN,NaN,t,n]);U(this,Ea,[t,n]),U(this,$s,[{line:i,points:y(this,Ea)}]),y(this,si).set(i,0)}updateProperty(t,n){t==="stroke-width"&&U(this,Fh,n)}isEmpty(){return!y(this,$s)||y(this,$s).length===0}isCancellable(){return y(this,Ea).length<=10}add(t,n){[t,n]=oe(this,Bh,$g).call(this,t,n);const[s,a,o,r]=y(this,si).subarray(2,6),i=t-o,l=n-r;return Math.hypot(y(this,Sd)*i,y(this,xd)*l)<=2?null:(y(this,Ea).push(t,n),isNaN(s)?(y(this,si).set([o,r,t,n],2),y(this,Ns).push(NaN,NaN,NaN,NaN,t,n),{path:{d:this.toSVGPath()}}):(isNaN(y(this,si)[0])&&y(this,Ns).splice(6,6),y(this,si).set([s,a,o,r,t,n],0),y(this,Ns).push(...At.createBezierPoints(s,a,o,r,t,n)),{path:{d:this.toSVGPath()}}))}end(t,n){const s=this.add(t,n);return s||(y(this,Ea).length===2?{path:{d:this.toSVGPath()}}:null)}startNew(t,n,s,a,o){U(this,Sd,s),U(this,xd,a),U(this,_d,o),[t,n]=oe(this,Bh,$g).call(this,t,n);const r=U(this,Ns,[NaN,NaN,NaN,NaN,t,n]);U(this,Ea,[t,n]);const i=y(this,$s).at(-1);return i&&(i.line=new Float32Array(i.line),i.points=new Float32Array(i.points)),y(this,$s).push({line:r,points:y(this,Ea)}),y(this,si).set(r,0),U(this,Fo,0),this.toSVGPath(),null}getLastElement(){return y(this,$s).at(-1)}setLastElement(t){return y(this,$s)?(y(this,$s).push(t),U(this,Ns,t.line),U(this,Ea,t.points),U(this,Fo,0),{path:{d:this.toSVGPath()}}):y(this,Cd).setLastElement(t)}removeLastElement(){if(!y(this,$s))return y(this,Cd).removeLastElement();y(this,$s).pop(),U(this,Ks,"");for(let t=0,n=y(this,$s).length;t<n;t++){const{line:s,points:a}=y(this,$s)[t];U(this,Ns,s),U(this,Ea,a),U(this,Fo,0),this.toSVGPath()}return{path:{d:y(this,Ks)}}}toSVGPath(){const t=At.svgRound(y(this,Ns)[4]),n=At.svgRound(y(this,Ns)[5]);if(y(this,Ea).length===2)return U(this,Ks,`${y(this,Ks)} M ${t} ${n} Z`),y(this,Ks);if(y(this,Ea).length<=6){const a=y(this,Ks).lastIndexOf("M");U(this,Ks,`${y(this,Ks).slice(0,a)} M ${t} ${n}`),U(this,Fo,6)}if(y(this,Ea).length===4){const a=At.svgRound(y(this,Ns)[10]),o=At.svgRound(y(this,Ns)[11]);return U(this,Ks,`${y(this,Ks)} L ${a} ${o}`),U(this,Fo,12),y(this,Ks)}const s=[];y(this,Fo)===0&&(s.push(`M ${t} ${n}`),U(this,Fo,6));for(let a=y(this,Fo),o=y(this,Ns).length;a<o;a+=6){const[r,i,l,c,u,d]=y(this,Ns).slice(a,a+6).map(At.svgRound);s.push(`C${r} ${i} ${l} ${c} ${u} ${d}`)}return U(this,Ks,y(this,Ks)+s.join(" ")),U(this,Fo,y(this,Ns).length),y(this,Ks)}getOutlines(t,n,s,a){const o=y(this,$s).at(-1);return o.line=new Float32Array(o.line),o.points=new Float32Array(o.points),y(this,Cd).build(y(this,$s),t,n,s,y(this,_d),y(this,Fh),a),U(this,si,null),U(this,Ns,null),U(this,$s,null),U(this,Ks,null),y(this,Cd)}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}si=new WeakMap,Ns=new WeakMap,$s=new WeakMap,_d=new WeakMap,Fh=new WeakMap,Ea=new WeakMap,Ks=new WeakMap,Fo=new WeakMap,Cd=new WeakMap,Sd=new WeakMap,xd=new WeakMap,Bh=new WeakSet,$g=function(t,n){return At._normalizePoint(t,n,y(this,Sd),y(this,xd),y(this,_d))};var ka,Rm,Im,po,ai,oi,Vh,zh,Hh,qs,Li,hI,pI,vI;const E_=class E_ extends At{constructor(){super(...arguments);ne(this,qs);ne(this,ka);ne(this,Rm,0);ne(this,Im);ne(this,po);ne(this,ai);ne(this,oi);ne(this,Vh);ne(this,zh);ne(this,Hh)}build(n,s,a,o,r,i,l){U(this,ai,s),U(this,oi,a),U(this,Vh,o),U(this,zh,r),U(this,Hh,i),U(this,Im,l??0),U(this,po,n),oe(this,qs,pI).call(this)}setLastElement(n){return y(this,po).push(n),{path:{d:this.toSVGPath()}}}removeLastElement(){return y(this,po).pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){const n=[];for(const{line:s}of y(this,po)){if(n.push(`M${At.svgRound(s[4])} ${At.svgRound(s[5])}`),s.length===6){n.push("Z");continue}if(s.length===12){n.push(`L${At.svgRound(s[10])} ${At.svgRound(s[11])}`);continue}for(let a=6,o=s.length;a<o;a+=6){const[r,i,l,c,u,d]=s.subarray(a,a+6).map(At.svgRound);n.push(`C${r} ${i} ${l} ${c} ${u} ${d}`)}}return n.join("")}serialize([n,s,a,o],r){const i=[],l=[],[c,u,d,h]=oe(this,qs,hI).call(this);let p,v,m,g,b,C,w,_,x;switch(y(this,zh)){case 0:x=At._rescale,p=n,v=s+o,m=a,g=-o,b=n+c*a,C=s+(1-u-h)*o,w=n+(c+d)*a,_=s+(1-u)*o;break;case 90:x=At._rescaleAndSwap,p=n,v=s,m=a,g=o,b=n+u*a,C=s+c*o,w=n+(u+h)*a,_=s+(c+d)*o;break;case 180:x=At._rescale,p=n+a,v=s,m=-a,g=o,b=n+(1-c-d)*a,C=s+u*o,w=n+(1-c)*a,_=s+(u+h)*o;break;case 270:x=At._rescaleAndSwap,p=n+a,v=s+o,m=-a,g=-o,b=n+(1-u-h)*a,C=s+(1-c-d)*o,w=n+(1-u)*a,_=s+(1-c)*o;break}for(const{line:E,points:T}of y(this,po))i.push(x(E,p,v,m,g,r?new Array(E.length):null)),l.push(x(T,p,v,m,g,r?new Array(T.length):null));return{lines:i,points:l,rect:[b,C,w,_]}}static deserialize(n,s,a,o,r,{paths:{lines:i,points:l},rotation:c,thickness:u}){const d=[];let h,p,v,m,g;switch(c){case 0:g=At._rescale,h=-n/a,p=s/o+1,v=1/a,m=-1/o;break;case 90:g=At._rescaleAndSwap,h=-s/o,p=-n/a,v=1/o,m=1/a;break;case 180:g=At._rescale,h=n/a+1,p=-s/o,v=-1/a,m=1/o;break;case 270:g=At._rescaleAndSwap,h=s/o+1,p=n/a+1,v=-1/o,m=-1/a;break}if(!i){i=[];for(const C of l){const w=C.length;if(w===2){i.push(new Float32Array([NaN,NaN,NaN,NaN,C[0],C[1]]));continue}if(w===4){i.push(new Float32Array([NaN,NaN,NaN,NaN,C[0],C[1],NaN,NaN,NaN,NaN,C[2],C[3]]));continue}const _=new Float32Array(3*(w-2));i.push(_);let[x,E,T,R]=C.subarray(0,4);_.set([NaN,NaN,NaN,NaN,x,E],0);for(let I=4;I<w;I+=2){const M=C[I],$=C[I+1];_.set(At.createBezierPoints(x,E,T,R,M,$),(I-2)*3),[x,E,T,R]=[T,R,M,$]}}}for(let C=0,w=i.length;C<w;C++)d.push({line:g(i[C].map(_=>_??NaN),h,p,v,m),points:g(l[C].map(_=>_??NaN),h,p,v,m)});const b=new E_;return b.build(d,a,o,1,c,u,r),b}get box(){return y(this,ka)}updateProperty(n,s){return n==="stroke-width"?oe(this,qs,vI).call(this,s):null}updateParentDimensions([n,s],a){const[o,r]=oe(this,qs,Li).call(this);U(this,ai,n),U(this,oi,s),U(this,Vh,a);const[i,l]=oe(this,qs,Li).call(this),c=i-o,u=l-r,d=y(this,ka);return d[0]-=c,d[1]-=u,d[2]+=2*c,d[3]+=2*u,d}updateRotation(n){return U(this,Rm,n),{path:{transform:this.rotationTransform}}}get viewBox(){return y(this,ka).map(At.svgRound).join(" ")}get defaultProperties(){const[n,s]=y(this,ka);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${At.svgRound(n)} ${At.svgRound(s)}`}}}get rotationTransform(){const[,,n,s]=y(this,ka);let a=0,o=0,r=0,i=0,l=0,c=0;switch(y(this,Rm)){case 90:o=s/n,r=-n/s,l=n;break;case 180:a=-1,i=-1,l=n,c=s;break;case 270:o=-s/n,r=n/s,c=s;break;default:return""}return`matrix(${a} ${o} ${r} ${i} ${At.svgRound(l)} ${At.svgRound(c)})`}getPathResizingSVGProperties([n,s,a,o]){const[r,i]=oe(this,qs,Li).call(this),[l,c,u,d]=y(this,ka);if(Math.abs(u-r)<=At.PRECISION||Math.abs(d-i)<=At.PRECISION){const g=n+a/2-(l+u/2),b=s+o/2-(c+d/2);return{path:{"transform-origin":`${At.svgRound(n)} ${At.svgRound(s)}`,transform:`${this.rotationTransform} translate(${g} ${b})`}}}const h=(a-2*r)/(u-2*r),p=(o-2*i)/(d-2*i),v=u/a,m=d/o;return{path:{"transform-origin":`${At.svgRound(l)} ${At.svgRound(c)}`,transform:`${this.rotationTransform} scale(${v} ${m}) translate(${At.svgRound(r)} ${At.svgRound(i)}) scale(${h} ${p}) translate(${At.svgRound(-r)} ${At.svgRound(-i)})`}}}getPathResizedSVGProperties([n,s,a,o]){const[r,i]=oe(this,qs,Li).call(this),l=y(this,ka),[c,u,d,h]=l;if(l[0]=n,l[1]=s,l[2]=a,l[3]=o,Math.abs(d-r)<=At.PRECISION||Math.abs(h-i)<=At.PRECISION){const b=n+a/2-(c+d/2),C=s+o/2-(u+h/2);for(const{line:w,points:_}of y(this,po))At._translate(w,b,C,w),At._translate(_,b,C,_);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${At.svgRound(n)} ${At.svgRound(s)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}const p=(a-2*r)/(d-2*r),v=(o-2*i)/(h-2*i),m=-p*(c+r)+n+r,g=-v*(u+i)+s+i;if(p!==1||v!==1||m!==0||g!==0)for(const{line:b,points:C}of y(this,po))At._rescale(b,m,g,p,v,b),At._rescale(C,m,g,p,v,C);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${At.svgRound(n)} ${At.svgRound(s)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([n,s],a){const[o,r]=a,i=y(this,ka),l=n-i[0],c=s-i[1];if(y(this,ai)===o&&y(this,oi)===r)for(const{line:u,points:d}of y(this,po))At._translate(u,l,c,u),At._translate(d,l,c,d);else{const u=y(this,ai)/o,d=y(this,oi)/r;U(this,ai,o),U(this,oi,r);for(const{line:h,points:p}of y(this,po))At._rescale(h,l,c,u,d,h),At._rescale(p,l,c,u,d,p);i[2]*=u,i[3]*=d}return i[0]=n,i[1]=s,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${At.svgRound(n)} ${At.svgRound(s)}`}}}get defaultSVGProperties(){const n=y(this,ka);return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${At.svgRound(n[0])} ${At.svgRound(n[1])}`,transform:this.rotationTransform||null},bbox:n}}};ka=new WeakMap,Rm=new WeakMap,Im=new WeakMap,po=new WeakMap,ai=new WeakMap,oi=new WeakMap,Vh=new WeakMap,zh=new WeakMap,Hh=new WeakMap,qs=new WeakSet,Li=function(n=y(this,Hh)){const s=y(this,Im)+n/2*y(this,Vh);return y(this,zh)%180===0?[s/y(this,ai),s/y(this,oi)]:[s/y(this,oi),s/y(this,ai)]},hI=function(){const[n,s,a,o]=y(this,ka),[r,i]=oe(this,qs,Li).call(this,0);return[n+r,s+i,a-2*r,o-2*i]},pI=function(){const n=U(this,ka,new Float32Array([1/0,1/0,-1/0,-1/0]));for(const{line:o}of y(this,po)){if(o.length<=12){for(let l=4,c=o.length;l<c;l+=6){const[u,d]=o.subarray(l,l+2);n[0]=Math.min(n[0],u),n[1]=Math.min(n[1],d),n[2]=Math.max(n[2],u),n[3]=Math.max(n[3],d)}continue}let r=o[4],i=o[5];for(let l=6,c=o.length;l<c;l+=6){const[u,d,h,p,v,m]=o.subarray(l,l+6);Nt.bezierBoundingBox(r,i,u,d,h,p,v,m,n),r=v,i=m}}const[s,a]=oe(this,qs,Li).call(this);n[0]=Math.min(1,Math.max(0,n[0]-s)),n[1]=Math.min(1,Math.max(0,n[1]-a)),n[2]=Math.min(1,Math.max(0,n[2]+s)),n[3]=Math.min(1,Math.max(0,n[3]+a)),n[2]-=n[0],n[3]-=n[1]},vI=function(n){const[s,a]=oe(this,qs,Li).call(this);U(this,Hh,n);const[o,r]=oe(this,qs,Li).call(this),[i,l]=[o-s,r-a],c=y(this,ka);return c[0]-=i,c[1]-=l,c[2]+=2*i,c[3]+=2*l,c};let $1=E_;var Wh;const k_=class k_ extends dye{constructor(n){super();ne(this,Wh);U(this,Wh,n),super.updateProperties({fill:"none",stroke:es._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(n,s){n==="stroke-width"&&(s??(s=this["stroke-width"]),s*=y(this,Wh).realScale),super.updateSVGProperty(n,s)}clone(){const n=new k_(y(this,Wh));return n.updateAll(this),n}};Wh=new WeakMap;let N6=k_;var eb,mI;const Af=class Af extends R6{constructor(n){super({...n,name:"inkEditor"});ne(this,eb);this._willKeepAspectRatio=!0}static initialize(n,s){es.initialize(n,s),this._defaultDrawingOptions=new N6(s.viewParameters)}static getDefaultDrawingOptions(n){const s=this._defaultDrawingOptions.clone();return s.updateProperties(n),s}static get supportMultipleDrawings(){return!0}static get typesMap(){return cn(this,"typesMap",new Map([[pn.INK_THICKNESS,"stroke-width"],[pn.INK_COLOR,"stroke"],[pn.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(n,s,a,o,r){return new fye(n,s,a,o,r,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(n,s,a,o,r,i){return $1.deserialize(n,s,a,o,r,i)}static async deserialize(n,s,a){let o=null;if(n instanceof w_){const{data:{inkLists:i,rect:l,rotation:c,id:u,color:d,opacity:h,borderStyle:{rawWidth:p},popupRef:v},parent:{page:{pageNumber:m}}}=n;o=n={annotationType:nn.INK,color:Array.from(d),thickness:p,opacity:h,paths:{points:i},boxes:null,pageIndex:m-1,rect:l.slice(0),rotation:c,id:u,deleted:!1,popupRef:v}}const r=await super.deserialize(n,s,a);return r.annotationElementId=n.id||null,r._initialData=o,r}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();const{_drawId:n,_drawingOptions:s,parent:a}=this;s.updateSVGProperty("stroke-width"),a.drawLayer.updateProperties(n,s.toSVGProperties())}static onScaleChangingWhenDrawing(){const n=this._currentParent;n&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),n.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:n,thickness:s,opacity:a}){this._drawingOptions=Af.getDefaultDrawingOptions({stroke:Nt.makeHexColor(...n),"stroke-width":s,"stroke-opacity":a})}serialize(n=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const{lines:s,points:a,rect:o}=this.serializeDraw(n),{_drawingOptions:{stroke:r,"stroke-opacity":i,"stroke-width":l}}=this,c={annotationType:nn.INK,color:es._colorManager.convert(r),opacity:i,thickness:l,paths:{lines:s,points:a},pageIndex:this.pageIndex,rect:o,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return n?c:this.annotationElementId&&!oe(this,eb,mI).call(this,c)?null:(c.id=this.annotationElementId,c)}renderAnnotationElement(n){const{points:s,rect:a}=this.serializeDraw(!1);return n.updateEdited({rect:a,thickness:this._drawingOptions["stroke-width"],points:s}),null}};eb=new WeakSet,mI=function(n){const{color:s,thickness:a,opacity:o,pageIndex:r}=this._initialData;return this._hasBeenMoved||this._hasBeenResized||n.color.some((i,l)=>i!==s[l])||n.thickness!==a||n.opacity!==o||n.pageIndex!==r},Vt(Af,"_type","ink"),Vt(Af,"_editorType",nn.INK),Vt(Af,"_defaultDrawingOptions",null);let $6=Af;var Qn,Us,Tc,rl,Mc,jh,ri,ii,vo,Kh,_n,lp,cp,Dg,F6,Fg,B6,Bg,gI;const Ap=class Ap extends es{constructor(n){super({...n,name:"stampEditor"});ne(this,_n);ne(this,Qn,null);ne(this,Us,null);ne(this,Tc,null);ne(this,rl,null);ne(this,Mc,null);ne(this,jh,"");ne(this,ri,null);ne(this,ii,null);ne(this,vo,!1);ne(this,Kh,!1);U(this,rl,n.bitmapUrl),U(this,Mc,n.bitmapFile)}static initialize(n,s){es.initialize(n,s)}static get supportedTypes(){return cn(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map(s=>`image/${s}`))}static get supportedTypesStr(){return cn(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(n){return this.supportedTypes.includes(n)}static paste(n,s){s.pasteEditor(nn.STAMP,{bitmapFile:n.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){var n;return{type:"stamp",hasAltText:!!((n=this.altTextData)!=null&&n.altText)}}static computeTelemetryFinalData(n){const s=n.get("hasAltText");return{hasAltText:s.get(!0)??0,hasNoAltText:s.get(!1)??0}}async mlGuessAltText(n=null,s=!0){if(this.hasAltTextData())return null;const{mlManager:a}=this._uiManager;if(!a)throw new Error("No ML.");if(!await a.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:o,width:r,height:i}=n||this.copyCanvas(null,null,!0).imageData,l=await a.guess({name:"altText",request:{data:o,width:r,height:i,channels:o.length/(r*i)}});if(!l)throw new Error("No response from the AI service.");if(l.error)throw new Error("Error from the AI service.");if(l.cancel)return null;if(!l.output)throw new Error("No valid response from the AI service.");const c=l.output;return await this.setGuessedAltText(c),s&&!this.hasAltTextData()&&(this.altTextData={alt:c,decorative:!1}),c}remove(){var n;y(this,Us)&&(U(this,Qn,null),this._uiManager.imageManager.deleteId(y(this,Us)),(n=y(this,ri))==null||n.remove(),U(this,ri,null),y(this,ii)&&(clearTimeout(y(this,ii)),U(this,ii,null))),super.remove()}rebuild(){if(!this.parent){y(this,Us)&&oe(this,_n,Dg).call(this);return}super.rebuild(),this.div!==null&&(y(this,Us)&&y(this,ri)===null&&oe(this,_n,Dg).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(n){this._isDraggable=!0,n&&this.div.focus()}isEmpty(){return!(y(this,Tc)||y(this,Qn)||y(this,rl)||y(this,Mc)||y(this,Us))}get isResizable(){return!0}render(){if(this.div)return this.div;let n,s;if(this.width&&(n=this.x,s=this.y),super.render(),this.div.hidden=!0,this.div.setAttribute("role","figure"),this.addAltTextButton(),y(this,Qn)?oe(this,_n,F6).call(this):oe(this,_n,Dg).call(this),this.width&&!this.annotationElementId){const[a,o]=this.parentDimensions;this.setAt(n*a,s*o,this.width*a,this.height*o)}return this._uiManager.addShouldRescale(this),this.div}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;y(this,ii)!==null&&clearTimeout(y(this,ii)),U(this,ii,setTimeout(()=>{U(this,ii,null),oe(this,_n,B6).call(this)},200))}copyCanvas(n,s,a=!1){var p;n||(n=224);const{width:o,height:r}=y(this,Qn),i=new N3;let l=y(this,Qn),c=o,u=r,d=null;if(s){if(o>s||r>s){const R=Math.min(s/o,s/r);c=Math.floor(o*R),u=Math.floor(r*R)}d=document.createElement("canvas");const v=d.width=Math.ceil(c*i.sx),m=d.height=Math.ceil(u*i.sy);y(this,vo)||(l=oe(this,_n,Fg).call(this,v,m));const g=d.getContext("2d");g.filter=this._uiManager.hcmFilter;let b="white",C="#cfcfd8";this._uiManager.hcmFilter!=="none"?C="black":(p=window.matchMedia)!=null&&p.call(window,"(prefers-color-scheme: dark)").matches&&(b="#8f8f9d",C="#42414d");const w=15,_=w*i.sx,x=w*i.sy,E=new OffscreenCanvas(_*2,x*2),T=E.getContext("2d");T.fillStyle=b,T.fillRect(0,0,_*2,x*2),T.fillStyle=C,T.fillRect(0,0,_,x),T.fillRect(_,x,_,x),g.fillStyle=g.createPattern(E,"repeat"),g.fillRect(0,0,v,m),g.drawImage(l,0,0,l.width,l.height,0,0,v,m)}let h=null;if(a){let v,m;if(i.symmetric&&l.width<n&&l.height<n)v=l.width,m=l.height;else if(l=y(this,Qn),o>n||r>n){const C=Math.min(n/o,n/r);v=Math.floor(o*C),m=Math.floor(r*C),y(this,vo)||(l=oe(this,_n,Fg).call(this,v,m))}const b=new OffscreenCanvas(v,m).getContext("2d",{willReadFrequently:!0});b.drawImage(l,0,0,l.width,l.height,0,0,v,m),h={width:v,height:m,data:b.getImageData(0,0,v,m).data}}return{canvas:d,width:c,height:u,imageData:h}}getImageForAltText(){return y(this,ri)}static async deserialize(n,s,a){var m;let o=null;if(n instanceof FR){const{data:{rect:g,rotation:b,id:C,structParent:w,popupRef:_},container:x,parent:{page:{pageNumber:E}}}=n,T=x.querySelector("canvas"),R=a.imageManager.getFromCanvas(x.id,T);T.remove();const I=((m=await s._structTree.getAriaAttributes(`${f_}${C}`))==null?void 0:m.get("aria-label"))||"";o=n={annotationType:nn.STAMP,bitmapId:R.id,bitmap:R.bitmap,pageIndex:E-1,rect:g.slice(0),rotation:b,id:C,deleted:!1,accessibilityData:{decorative:!1,altText:I},isSvg:!1,structParent:w,popupRef:_}}const r=await super.deserialize(n,s,a),{rect:i,bitmap:l,bitmapUrl:c,bitmapId:u,isSvg:d,accessibilityData:h}=n;u&&a.imageManager.isValidId(u)?(U(r,Us,u),l&&U(r,Qn,l)):U(r,rl,c),U(r,vo,d);const[p,v]=r.pageDimensions;return r.width=(i[2]-i[0])/p,r.height=(i[3]-i[1])/v,r.annotationElementId=n.id||null,h&&(r.altTextData=h),r._initialData=o,U(r,Kh,!!o),r}serialize(n=!1,s=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const a={annotationType:nn.STAMP,bitmapId:y(this,Us),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:y(this,vo),structTreeParentId:this._structTreeParentId};if(n)return a.bitmapUrl=oe(this,_n,Bg).call(this,!0),a.accessibilityData=this.serializeAltText(!0),a;const{decorative:o,altText:r}=this.serializeAltText(!1);if(!o&&r&&(a.accessibilityData={type:"Figure",alt:r}),this.annotationElementId){const l=oe(this,_n,gI).call(this,a);if(l.isSame)return null;l.isSameAltText?delete a.accessibilityData:a.accessibilityData.structParent=this._initialData.structParent??-1}if(a.id=this.annotationElementId,s===null)return a;s.stamps||(s.stamps=new Map);const i=y(this,vo)?(a.rect[2]-a.rect[0])*(a.rect[3]-a.rect[1]):null;if(!s.stamps.has(y(this,Us)))s.stamps.set(y(this,Us),{area:i,serialized:a}),a.bitmap=oe(this,_n,Bg).call(this,!1);else if(y(this,vo)){const l=s.stamps.get(y(this,Us));i>l.area&&(l.area=i,l.serialized.bitmap.close(),l.serialized.bitmap=oe(this,_n,Bg).call(this,!1))}return a}renderAnnotationElement(n){return n.updateEdited({rect:this.getRect(0,0)}),null}};Qn=new WeakMap,Us=new WeakMap,Tc=new WeakMap,rl=new WeakMap,Mc=new WeakMap,jh=new WeakMap,ri=new WeakMap,ii=new WeakMap,vo=new WeakMap,Kh=new WeakMap,_n=new WeakSet,lp=function(n,s=!1){if(!n){this.remove();return}U(this,Qn,n.bitmap),s||(U(this,Us,n.id),U(this,vo,n.isSvg)),n.file&&U(this,jh,n.file.name),oe(this,_n,F6).call(this)},cp=function(){if(U(this,Tc,null),this._uiManager.enableWaiting(!1),!!y(this,ri)){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&y(this,Qn)){this._editToolbar.hide(),this._uiManager.editAltText(this,!0);return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&y(this,Qn)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}},Dg=function(){if(y(this,Us)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(y(this,Us)).then(a=>oe(this,_n,lp).call(this,a,!0)).finally(()=>oe(this,_n,cp).call(this));return}if(y(this,rl)){const a=y(this,rl);U(this,rl,null),this._uiManager.enableWaiting(!0),U(this,Tc,this._uiManager.imageManager.getFromUrl(a).then(o=>oe(this,_n,lp).call(this,o)).finally(()=>oe(this,_n,cp).call(this)));return}if(y(this,Mc)){const a=y(this,Mc);U(this,Mc,null),this._uiManager.enableWaiting(!0),U(this,Tc,this._uiManager.imageManager.getFromFile(a).then(o=>oe(this,_n,lp).call(this,o)).finally(()=>oe(this,_n,cp).call(this)));return}const n=document.createElement("input");n.type="file",n.accept=Ap.supportedTypesStr;const s=this._uiManager._signal;U(this,Tc,new Promise(a=>{n.addEventListener("change",async()=>{if(!n.files||n.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const o=await this._uiManager.imageManager.getFromFile(n.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),oe(this,_n,lp).call(this,o)}a()},{signal:s}),n.addEventListener("cancel",()=>{this.remove(),a()},{signal:s})}).finally(()=>oe(this,_n,cp).call(this))),n.click()},F6=function(){var d;const{div:n}=this;let{width:s,height:a}=y(this,Qn);const[o,r]=this.pageDimensions,i=.75;if(this.width)s=this.width*o,a=this.height*r;else if(s>i*o||a>i*r){const h=Math.min(i*o/s,i*r/a);s*=h,a*=h}const[l,c]=this.parentDimensions;this.setDims(s*l/o,a*c/r),this._uiManager.enableWaiting(!1);const u=U(this,ri,document.createElement("canvas"));u.setAttribute("role","img"),this.addContainer(u),this.width=s/o,this.height=a/r,(d=this._initialOptions)!=null&&d.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(n.hidden=!1),oe(this,_n,B6).call(this),y(this,Kh)||(this.parent.addUndoableEditor(this),U(this,Kh,!0)),this._reportTelemetry({action:"inserted_image"}),y(this,jh)&&u.setAttribute("aria-label",y(this,jh))},Fg=function(n,s){const{width:a,height:o}=y(this,Qn);let r=a,i=o,l=y(this,Qn);for(;r>2*n||i>2*s;){const c=r,u=i;r>2*n&&(r=r>=16384?Math.floor(r/2)-1:Math.ceil(r/2)),i>2*s&&(i=i>=16384?Math.floor(i/2)-1:Math.ceil(i/2));const d=new OffscreenCanvas(r,i);d.getContext("2d").drawImage(l,0,0,c,u,0,0,r,i),l=d.transferToImageBitmap()}return l},B6=function(){const[n,s]=this.parentDimensions,{width:a,height:o}=this,r=new N3,i=Math.ceil(a*n*r.sx),l=Math.ceil(o*s*r.sy),c=y(this,ri);if(!c||c.width===i&&c.height===l)return;c.width=i,c.height=l;const u=y(this,vo)?y(this,Qn):oe(this,_n,Fg).call(this,i,l),d=c.getContext("2d");d.filter=this._uiManager.hcmFilter,d.drawImage(u,0,0,u.width,u.height,0,0,i,l)},Bg=function(n){if(n){if(y(this,vo)){const o=this._uiManager.imageManager.getSvgUrl(y(this,Us));if(o)return o}const s=document.createElement("canvas");return{width:s.width,height:s.height}=y(this,Qn),s.getContext("2d").drawImage(y(this,Qn),0,0),s.toDataURL()}if(y(this,vo)){const[s,a]=this.pageDimensions,o=Math.round(this.width*s*qc.PDF_TO_CSS_UNITS),r=Math.round(this.height*a*qc.PDF_TO_CSS_UNITS),i=new OffscreenCanvas(o,r);return i.getContext("2d").drawImage(y(this,Qn),0,0,y(this,Qn).width,y(this,Qn).height,0,0,o,r),i.transferToImageBitmap()}return structuredClone(y(this,Qn))},gI=function(n){var i;const{pageIndex:s,accessibilityData:{altText:a}}=this._initialData,o=n.pageIndex===s,r=(((i=n.accessibilityData)==null?void 0:i.alt)||"")===a;return{isSame:!this._hasBeenMoved&&!this._hasBeenResized&&o&&r,isSameAltText:r}},Vt(Ap,"_type","stamp"),Vt(Ap,"_editorType",nn.STAMP);let D6=Ap;var Ed,Uh,li,Pc,il,Bo,Rc,qh,kd,dr,ll,ia,cl,Ot,Ic,Yn,bI,Wr,z6,H6,Vg;const Qo=class Qo{constructor({uiManager:t,pageIndex:n,div:s,structTreeLayer:a,accessibilityManager:o,annotationLayer:r,drawLayer:i,textLayer:l,viewport:c,l10n:u}){ne(this,Yn);ne(this,Ed);ne(this,Uh,!1);ne(this,li,null);ne(this,Pc,null);ne(this,il,null);ne(this,Bo,new Map);ne(this,Rc,!1);ne(this,qh,!1);ne(this,kd,!1);ne(this,dr,null);ne(this,ll,null);ne(this,ia,null);ne(this,cl,null);ne(this,Ot);const d=[...y(Qo,Ic).values()];if(!Qo._initialized){Qo._initialized=!0;for(const h of d)h.initialize(u,t)}t.registerEditorTypes(d),U(this,Ot,t),this.pageIndex=n,this.div=s,U(this,Ed,o),U(this,li,r),this.viewport=c,U(this,ia,l),this.drawLayer=i,this._structTree=a,y(this,Ot).addLayer(this)}get isEmpty(){return y(this,Bo).size===0}get isInvisible(){return this.isEmpty&&y(this,Ot).getMode()===nn.NONE}updateToolbar(t){y(this,Ot).updateToolbar(t)}updateMode(t=y(this,Ot).getMode()){switch(oe(this,Yn,Vg).call(this),t){case nn.NONE:this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case nn.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case nn.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:n}=this.div;for(const s of y(Qo,Ic).values())n.toggle(`${s._type}Editing`,t===s._editorType);this.div.hidden=!1}hasTextLayer(t){var n;return t===((n=y(this,ia))==null?void 0:n.div)}setEditingState(t){y(this,Ot).setEditingState(t)}addCommands(t){y(this,Ot).addCommands(t)}cleanUndoStack(t){y(this,Ot).cleanUndoStack(t)}toggleDrawing(t=!1){this.div.classList.toggle("drawing",!t)}togglePointerEvents(t=!1){this.div.classList.toggle("disabled",!t)}toggleAnnotationLayerPointerEvents(t=!1){var n;(n=y(this,li))==null||n.div.classList.toggle("disabled",!t)}async enable(){U(this,kd,!0),this.div.tabIndex=0,this.togglePointerEvents(!0);const t=new Set;for(const s of y(this,Bo).values())s.enableEditing(),s.show(!0),s.annotationElementId&&(y(this,Ot).removeChangedExistingAnnotation(s),t.add(s.annotationElementId));if(!y(this,li)){U(this,kd,!1);return}const n=y(this,li).getEditableAnnotations();for(const s of n){if(s.hide(),y(this,Ot).isDeletedAnnotationElement(s.data.id)||t.has(s.data.id))continue;const a=await this.deserialize(s);a&&(this.addOrRebuild(a),a.enableEditing())}U(this,kd,!1)}disable(){var a;U(this,qh,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1);const t=new Map,n=new Map;for(const o of y(this,Bo).values())if(o.disableEditing(),!!o.annotationElementId){if(o.serialize()!==null){t.set(o.annotationElementId,o);continue}else n.set(o.annotationElementId,o);(a=this.getEditableAnnotation(o.annotationElementId))==null||a.show(),o.remove()}if(y(this,li)){const o=y(this,li).getEditableAnnotations();for(const r of o){const{id:i}=r.data;if(y(this,Ot).isDeletedAnnotationElement(i))continue;let l=n.get(i);if(l){l.resetAnnotationElement(r),l.show(!1),r.show();continue}l=t.get(i),l&&(y(this,Ot).addChangedExistingAnnotation(l),l.renderAnnotationElement(r)&&l.show(!1)),r.show()}}oe(this,Yn,Vg).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:s}=this.div;for(const o of y(Qo,Ic).values())s.remove(`${o._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),U(this,qh,!1)}getEditableAnnotation(t){var n;return((n=y(this,li))==null?void 0:n.getEditableAnnotation(t))||null}setActiveEditor(t){y(this,Ot).getActive()!==t&&y(this,Ot).setActiveEditor(t)}enableTextSelection(){var t;if(this.div.tabIndex=-1,(t=y(this,ia))!=null&&t.div&&!y(this,cl)){U(this,cl,new AbortController);const n=y(this,Ot).combinedSignal(y(this,cl));y(this,ia).div.addEventListener("pointerdown",oe(this,Yn,bI).bind(this),{signal:n}),y(this,ia).div.classList.add("highlighting")}}disableTextSelection(){var t;this.div.tabIndex=0,(t=y(this,ia))!=null&&t.div&&y(this,cl)&&(y(this,cl).abort(),U(this,cl,null),y(this,ia).div.classList.remove("highlighting"))}enableClick(){if(y(this,Pc))return;U(this,Pc,new AbortController);const t=y(this,Ot).combinedSignal(y(this,Pc));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:t});const n=this.pointerup.bind(this);this.div.addEventListener("pointerup",n,{signal:t}),this.div.addEventListener("pointercancel",n,{signal:t})}disableClick(){var t;(t=y(this,Pc))==null||t.abort(),U(this,Pc,null)}attach(t){y(this,Bo).set(t.id,t);const{annotationElementId:n}=t;n&&y(this,Ot).isDeletedAnnotationElement(n)&&y(this,Ot).removeDeletedAnnotationElement(t)}detach(t){var n;y(this,Bo).delete(t.id),(n=y(this,Ed))==null||n.removePointerInTextLayer(t.contentDiv),!y(this,qh)&&t.annotationElementId&&y(this,Ot).addDeletedAnnotationElement(t)}remove(t){this.detach(t),y(this,Ot).removeEditor(t),t.div.remove(),t.isAttachedToDOM=!1}changeParent(t){var n;t.parent!==this&&(t.parent&&t.annotationElementId&&(y(this,Ot).addDeletedAnnotationElement(t.annotationElementId),es.deleteAnnotationElement(t),t.annotationElementId=null),this.attach(t),(n=t.parent)==null||n.detach(t),t.setParent(this),t.div&&t.isAttachedToDOM&&(t.div.remove(),this.div.append(t.div)))}add(t){if(!(t.parent===this&&t.isAttachedToDOM)){if(this.changeParent(t),y(this,Ot).addEditor(t),this.attach(t),!t.isAttachedToDOM){const n=t.render();this.div.append(n),t.isAttachedToDOM=!0}t.fixAndSetPosition(),t.onceAdded(!y(this,kd)),y(this,Ot).addToAnnotationStorage(t),t._reportTelemetry(t.telemetryInitialData)}}moveEditorInDOM(t){var s;if(!t.isAttachedToDOM)return;const{activeElement:n}=document;t.div.contains(n)&&!y(this,il)&&(t._focusEventsAllowed=!1,U(this,il,setTimeout(()=>{U(this,il,null),t.div.contains(document.activeElement)?t._focusEventsAllowed=!0:(t.div.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:y(this,Ot)._signal}),n.focus())},0))),t._structTreeParentId=(s=y(this,Ed))==null?void 0:s.moveElementInDOM(this.div,t.div,t.contentDiv,!0)}addOrRebuild(t){t.needsToBeRebuilt()?(t.parent||(t.parent=this),t.rebuild(),t.show()):this.add(t)}addUndoableEditor(t){const n=()=>t._uiManager.rebuild(t),s=()=>{t.remove()};this.addCommands({cmd:n,undo:s,mustExec:!1})}getNextId(){return y(this,Ot).getId()}combinedSignal(t){return y(this,Ot).combinedSignal(t)}canCreateNewEmptyEditor(){var t;return(t=y(this,Yn,Wr))==null?void 0:t.canCreateNewEmptyEditor()}pasteEditor(t,n){y(this,Ot).updateToolbar(t),y(this,Ot).updateMode(t);const{offsetX:s,offsetY:a}=oe(this,Yn,H6).call(this),o=this.getNextId(),r=oe(this,Yn,z6).call(this,{parent:this,id:o,x:s,y:a,uiManager:y(this,Ot),isCentered:!0,...n});r&&this.add(r)}async deserialize(t){var n;return await((n=y(Qo,Ic).get(t.annotationType??t.annotationEditorType))==null?void 0:n.deserialize(t,this,y(this,Ot)))||null}createAndAddNewEditor(t,n,s={}){const a=this.getNextId(),o=oe(this,Yn,z6).call(this,{parent:this,id:a,x:t.offsetX,y:t.offsetY,uiManager:y(this,Ot),isCentered:n,...s});return o&&this.add(o),o}addNewEditor(){this.createAndAddNewEditor(oe(this,Yn,H6).call(this),!0)}setSelected(t){y(this,Ot).setSelected(t)}toggleSelected(t){y(this,Ot).toggleSelected(t)}unselect(t){y(this,Ot).unselect(t)}pointerup(t){var s;const{isMac:n}=Ra.platform;if(!(t.button!==0||t.ctrlKey&&n)&&t.target===this.div&&y(this,Rc)&&(U(this,Rc,!1),!((s=y(this,Yn,Wr))!=null&&s.isDrawer&&y(this,Yn,Wr).supportMultipleDrawings))){if(!y(this,Uh)){U(this,Uh,!0);return}if(y(this,Ot).getMode()===nn.STAMP){y(this,Ot).unselectAll();return}this.createAndAddNewEditor(t,!1)}}pointerdown(t){var a;if(y(this,Ot).getMode()===nn.HIGHLIGHT&&this.enableTextSelection(),y(this,Rc)){U(this,Rc,!1);return}const{isMac:n}=Ra.platform;if(t.button!==0||t.ctrlKey&&n||t.target!==this.div)return;if(U(this,Rc,!0),(a=y(this,Yn,Wr))!=null&&a.isDrawer){this.startDrawingSession(t);return}const s=y(this,Ot).getActive();U(this,Uh,!s||s.isEmpty())}startDrawingSession(t){if(this.div.focus(),y(this,dr)){y(this,Yn,Wr).startDrawing(this,y(this,Ot),!1,t);return}y(this,Ot).setCurrentDrawingSession(this),U(this,dr,new AbortController);const n=y(this,Ot).combinedSignal(y(this,dr));this.div.addEventListener("blur",({relatedTarget:s})=>{s&&!this.div.contains(s)&&(U(this,ll,null),this.commitOrRemove())},{signal:n}),y(this,Yn,Wr).startDrawing(this,y(this,Ot),!1,t)}pause(t){if(t){const{activeElement:n}=document;this.div.contains(n)&&U(this,ll,n);return}y(this,ll)&&setTimeout(()=>{var n;(n=y(this,ll))==null||n.focus(),U(this,ll,null)},0)}endDrawingSession(t=!1){return y(this,dr)?(y(this,Ot).setCurrentDrawingSession(null),y(this,dr).abort(),U(this,dr,null),U(this,ll,null),y(this,Yn,Wr).endDrawing(t)):null}findNewParent(t,n,s){const a=y(this,Ot).findParent(n,s);return a===null||a===this?!1:(a.changeParent(t),!0)}commitOrRemove(){return y(this,dr)?(this.endDrawingSession(),!0):!1}onScaleChanging(){y(this,dr)&&y(this,Yn,Wr).onScaleChangingWhenDrawing(this)}destroy(){var t,n;this.commitOrRemove(),((t=y(this,Ot).getActive())==null?void 0:t.parent)===this&&(y(this,Ot).commitOrRemove(),y(this,Ot).setActiveEditor(null)),y(this,il)&&(clearTimeout(y(this,il)),U(this,il,null));for(const s of y(this,Bo).values())(n=y(this,Ed))==null||n.removePointerInTextLayer(s.contentDiv),s.setParent(null),s.isAttachedToDOM=!1,s.div.remove();this.div=null,y(this,Bo).clear(),y(this,Ot).removeLayer(this)}render({viewport:t}){this.viewport=t,jd(this.div,t);for(const n of y(this,Ot).getEditors(this.pageIndex))this.add(n),n.rebuild();this.updateMode()}update({viewport:t}){y(this,Ot).commitOrRemove(),oe(this,Yn,Vg).call(this);const n=this.viewport.rotation,s=t.rotation;if(this.viewport=t,jd(this.div,{rotation:s}),n!==s)for(const a of y(this,Bo).values())a.rotate(s)}get pageDimensions(){const{pageWidth:t,pageHeight:n}=this.viewport.rawDims;return[t,n]}get scale(){return y(this,Ot).viewParameters.realScale}};Ed=new WeakMap,Uh=new WeakMap,li=new WeakMap,Pc=new WeakMap,il=new WeakMap,Bo=new WeakMap,Rc=new WeakMap,qh=new WeakMap,kd=new WeakMap,dr=new WeakMap,ll=new WeakMap,ia=new WeakMap,cl=new WeakMap,Ot=new WeakMap,Ic=new WeakMap,Yn=new WeakSet,bI=function(t){y(this,Ot).unselectAll();const{target:n}=t;if(n===y(this,ia).div||(n.getAttribute("role")==="img"||n.classList.contains("endOfContent"))&&y(this,ia).div.contains(n)){const{isMac:s}=Ra.platform;if(t.button!==0||t.ctrlKey&&s)return;y(this,Ot).showAllEditors("highlight",!0,!0),y(this,ia).div.classList.add("free"),this.toggleDrawing(),N1.startHighlighting(this,y(this,Ot).direction==="ltr",{target:y(this,ia).div,x:t.x,y:t.y}),y(this,ia).div.addEventListener("pointerup",()=>{y(this,ia).div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:y(this,Ot)._signal}),t.preventDefault()}},Wr=function(){return y(Qo,Ic).get(y(this,Ot).getMode())},z6=function(t){const n=y(this,Yn,Wr);return n?new n.prototype.constructor(t):null},H6=function(){const{x:t,y:n,width:s,height:a}=this.div.getBoundingClientRect(),o=Math.max(0,t),r=Math.max(0,n),i=Math.min(window.innerWidth,t+s),l=Math.min(window.innerHeight,n+a),c=(o+i)/2-t,u=(r+l)/2-n,[d,h]=this.viewport.rotation%180===0?[c,u]:[u,c];return{offsetX:d,offsetY:h}},Vg=function(){for(const t of y(this,Bo).values())t.isEmpty()&&t.remove()},Vt(Qo,"_initialized",!1),ne(Qo,Ic,new Map([_6,$6,D6,N1].map(t=>[t._editorType,t])));let V6=Qo;var fr,Lm,Aa,Ad,tb,yI,xi,j6,wI,K6;const sa=class sa{constructor({pageIndex:t}){ne(this,xi);ne(this,fr,null);ne(this,Lm,0);ne(this,Aa,new Map);ne(this,Ad,new Map);this.pageIndex=t}setParent(t){if(!y(this,fr)){U(this,fr,t);return}if(y(this,fr)!==t){if(y(this,Aa).size>0)for(const n of y(this,Aa).values())n.remove(),t.append(n);U(this,fr,t)}}static get _svgFactory(){return cn(this,"_svgFactory",new y_)}draw(t,n=!1,s=!1){const a=wa(this,Lm)._++,o=oe(this,xi,j6).call(this),r=sa._svgFactory.createElement("defs");o.append(r);const i=sa._svgFactory.createElement("path");r.append(i);const l=`path_p${this.pageIndex}_${a}`;i.setAttribute("id",l),i.setAttribute("vector-effect","non-scaling-stroke"),n&&y(this,Ad).set(a,i);const c=s?oe(this,xi,wI).call(this,r,l):null,u=sa._svgFactory.createElement("use");return o.append(u),u.setAttribute("href",`#${l}`),this.updateProperties(o,t),y(this,Aa).set(a,o),{id:a,clipPathId:`url(#${c})`}}drawOutline(t,n){const s=wa(this,Lm)._++,a=oe(this,xi,j6).call(this),o=sa._svgFactory.createElement("defs");a.append(o);const r=sa._svgFactory.createElement("path");o.append(r);const i=`path_p${this.pageIndex}_${s}`;r.setAttribute("id",i),r.setAttribute("vector-effect","non-scaling-stroke");let l;if(n){const d=sa._svgFactory.createElement("mask");o.append(d),l=`mask_p${this.pageIndex}_${s}`,d.setAttribute("id",l),d.setAttribute("maskUnits","objectBoundingBox");const h=sa._svgFactory.createElement("rect");d.append(h),h.setAttribute("width","1"),h.setAttribute("height","1"),h.setAttribute("fill","white");const p=sa._svgFactory.createElement("use");d.append(p),p.setAttribute("href",`#${i}`),p.setAttribute("stroke","none"),p.setAttribute("fill","black"),p.setAttribute("fill-rule","nonzero"),p.classList.add("mask")}const c=sa._svgFactory.createElement("use");a.append(c),c.setAttribute("href",`#${i}`),l&&c.setAttribute("mask",`url(#${l})`);const u=c.cloneNode();return a.append(u),c.classList.add("mainOutline"),u.classList.add("secondaryOutline"),this.updateProperties(a,t),y(this,Aa).set(s,a),s}finalizeDraw(t,n){y(this,Ad).delete(t),this.updateProperties(t,n)}updateProperties(t,n){var l;if(!n)return;const{root:s,bbox:a,rootClass:o,path:r}=n,i=typeof t=="number"?y(this,Aa).get(t):t;if(i){if(s&&oe(this,xi,K6).call(this,i,s),a&&oe(l=sa,tb,yI).call(l,i,a),o){const{classList:c}=i;for(const[u,d]of Object.entries(o))c.toggle(u,d)}if(r){const u=i.firstChild.firstChild;oe(this,xi,K6).call(this,u,r)}}}updateParent(t,n){if(n===this)return;const s=y(this,Aa).get(t);s&&(y(n,fr).append(s),y(this,Aa).delete(t),y(n,Aa).set(t,s))}remove(t){y(this,Ad).delete(t),y(this,fr)!==null&&(y(this,Aa).get(t).remove(),y(this,Aa).delete(t))}destroy(){U(this,fr,null);for(const t of y(this,Aa).values())t.remove();y(this,Aa).clear(),y(this,Ad).clear()}};fr=new WeakMap,Lm=new WeakMap,Aa=new WeakMap,Ad=new WeakMap,tb=new WeakSet,yI=function(t,[n,s,a,o]){const{style:r}=t;r.top=`${100*s}%`,r.left=`${100*n}%`,r.width=`${100*a}%`,r.height=`${100*o}%`},xi=new WeakSet,j6=function(){const t=sa._svgFactory.create(1,1,!0);return y(this,fr).append(t),t.setAttribute("aria-hidden",!0),t},wI=function(t,n){const s=sa._svgFactory.createElement("clipPath");t.append(s);const a=`clip_${n}`;s.setAttribute("id",a),s.setAttribute("clipPathUnits","objectBoundingBox");const o=sa._svgFactory.createElement("use");return s.append(o),o.setAttribute("href",`#${n}`),o.classList.add("clip"),a},K6=function(t,n){for(const[s,a]of Object.entries(n))a===null?t.removeAttribute(s):t.setAttribute(s,a)},ne(sa,tb);let W6=sa;globalThis.pdfjsTestingUtils={HighlightOutliner:S6};Gt.AbortException;Gt.AnnotationEditorLayer;Gt.AnnotationEditorParamsType;Gt.AnnotationEditorType;Gt.AnnotationEditorUIManager;Gt.AnnotationLayer;Gt.AnnotationMode;Gt.ColorPicker;Gt.DOMSVGFactory;Gt.DrawLayer;Gt.FeatureTest;var hye=Gt.GlobalWorkerOptions;Gt.ImageKind;Gt.InvalidPDFException;Gt.MissingPDFException;Gt.OPS;Gt.OutputScale;Gt.PDFDataRangeTransport;Gt.PDFDateString;Gt.PDFWorker;Gt.PasswordResponses;Gt.PermissionFlag;Gt.PixelsPerInch;Gt.RenderingCancelledException;Gt.TextLayer;Gt.TouchManager;Gt.UnexpectedResponseException;Gt.Util;Gt.VerbosityLevel;Gt.XfaLayer;Gt.build;Gt.createValidAbsoluteUrl;Gt.fetchData;var pye=Gt.getDocument;Gt.getFilenameFromUrl;Gt.getPdfFilenameFromUrl;Gt.getXfaPageViewport;Gt.isDataScheme;Gt.isPdfFile;Gt.noContextMenu;Gt.normalizeUnicode;Gt.setLayerDimensions;Gt.shadow;Gt.stopEvent;Gt.version;const vye="/assets/pdf.worker.min-yatZIOMy.mjs",mye={class:"manual-wrap"},gye={class:"sidebar"},bye={class:"es-text",style:{display:"none"}},yye={class:"sb-section"},wye={class:"sb-title"},_ye={key:0,class:"sb-section"},Cye={class:"sb-title"},Sye={class:"region-type-btns"},xye=["onClick"],Eye={class:"rt-badge"},kye={key:1,class:"sb-section sb-regions"},Aye={class:"sb-title"},Tye={class:"region-list"},Mye=["onClick"],Pye={class:"ri-top"},Rye={class:"ri-badge"},Iye={class:"ri-label"},Lye={class:"ri-page"},Oye={class:"ri-status"},Nye={key:0,class:"ri-tokens"},$ye={key:0,class:"ri-preview"},Dye={key:2,class:"sb-section sb-actions"},Fye={key:0,class:"vl-progress-wrap"},Bye={class:"vl-progress-label"},Vye={key:0},zye={key:1,class:"vl-done"},Hye={key:3,class:"sb-section sb-export"},Wye={class:"sb-title"},jye={style:{display:"flex",gap:"8px"}},Kye={class:"sb-footer"},Uye={class:"viewer"},qye={key:0,class:"viewer-nav"},Gye={class:"nav-label"},Yye={class:"nav-type-indicator"},Xye={class:"zoom-bar"},Jye={class:"zoom-pct"},Zye={key:1,class:"viewer-empty"},Qye={class:"img-inner"},e3e={key:0,class:"page-loading"},t3e=["data-mode"],n3e={key:0,class:"result-panel"},s3e={class:"rp-header"},a3e={class:"rp-title"},o3e={key:0,class:"rp-tokens"},r3e={class:"rp-text"},i3e={__name:"ManualOCR",setup(e){hye.workerSrc=vye;const t=CP(),n=[{key:"A",label:"材料区域",color:"#2563eb"},{key:"B",label:"管线号",color:"#d97706"},{key:"C",label:"其他",color:"#059669"}],s=ve=>{var me;return((me=n.find(Ze=>Ze.key===ve))==null?void 0:me.color)??"#6b7280"},a=ve=>{var me;return((me=n.find(Ze=>Ze.key===ve))==null?void 0:me.label)??ve},o=F("file"),r=F(null),i=F(""),l=F(!1),c=F(""),u=F(0),d=F(0),h=F(!1),p=fn(null),v=F(!1);let m=null;const g=F("A"),b=F([]),C=F(null),w=F(!1),_=F(""),x=F(!1),E=F(0),T=F(0),R=F(null),I=F(null),M=F(null),$=F(null),L=[.25,.5,.75,1,1.25,1.5,2,3],B=F(1);function q(){const ve=L.find(me=>me>B.value+.01);ve&&(B.value=ve)}function J(){const ve=[...L].reverse().find(me=>me<B.value-.01);ve&&(B.value=ve)}function Y(){B.value=1}const O=F("loading"),N=F(""),V=F(!1),z=F(0),G=F(0),Q=F(0),K=F(0),ee=F("draw"),se=F(!1),he=F(0),te=F(0),pe=k(()=>o.value==="file"?!!r.value:i.value.startsWith("http")),fe=k(()=>b.value.filter(ve=>ve.status==="pending").length),le=k(()=>b.value.filter(ve=>ve.type==="A"&&ve.status==="pending").length),Z=k(()=>b.value.filter(ve=>ve.status==="done")),H=k(()=>b.value.find(ve=>ve.id===C.value)||null),ae=k(()=>E.value>0?Math.round(T.value/E.value*100):0);let de=null;St(async()=>{try{const Ze=await(await fetch("/api/manual/engine-info")).json();O.value=Ze.status==="ready"?"ready":"error",N.value=Ze.error||Ze.engine||""}catch(me){O.value="error",N.value=me.message}const ve=document.getElementById("hdpdfurl2");if(ve&&ve.value&&ve.value.trim()&&(i.value=ve.value.trim(),o.value="url",await _e()),ve){let me=ve.value;de=setInterval(async()=>{const Ze=ve.value?ve.value.trim():"";Ze&&Ze!==me&&(me=Ze,i.value=Ze,o.value="url",await _e())},2e3)}});async function ye(ve){r.value=ve.raw,await _e(),$.value&&$.value.clearFiles()}async function _e(){l.value=!0;try{let ve,me=null;if(o.value==="file"){me=await r.value.arrayBuffer();const Je=new FormData;Je.append("file",r.value),ve=await fetch("/api/manual/upload",{method:"POST",body:Je})}else ve=await fetch("/api/manual/upload-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:i.value.trim()})});if(!ve.ok){const Je=await ve.json().catch(()=>({}));throw new Error(Je.detail||`HTTP ${ve.status}`)}const Ze=await ve.json();if(c.value&&fetch(`/api/manual/session/${c.value}`,{method:"DELETE"}).catch(()=>{}),c.value=Ze.session_id,u.value=Ze.total_pages,d.value=0,b.value=[],C.value=null,h.value=!0,B.value=1,!me){const Je=await fetch(`/api/manual/pdf/${Ze.session_id}`);if(!Je.ok)throw new Error(`获取 PDF 字节失败 HTTP ${Je.status}`);me=await Je.arrayBuffer()}await Ne(me),zs.success(`PDF 加载成功,共 ${Ze.total_pages} 页`)}catch(ve){zs.error(`加载失败:${ve.message}`)}finally{l.value=!1}}function Se(ve){ve<0||ve>=u.value||(d.value=ve)}be(d,ve=>{Ht(),Fe(ve)}),be(ee,ve=>{ve==="draw"&&I.value&&(I.value.style.cursor="")}),be(B,()=>{h.value&&p.value&&Fe(d.value)});async function Ne(ve){try{const me=pye({data:ve,cMapUrl:"/pdfjs-cmaps/",cMapPacked:!0});p.value=await me.promise,Fe(0)}catch(me){zs.error(`PDF.js 加载失败:${me.message}`)}}async function Fe(ve){if(p.value){m&&(m.cancel(),m=null),v.value=!0;try{const me=await p.value.getPage(ve+1),Ze=window.devicePixelRatio||1,Je=me.getViewport({scale:B.value*Ze}),Ae=M.value;Ae.width=Je.width,Ae.height=Je.height,Ae.style.width=Je.width/Ze+"px",Ae.style.height=Je.height/Ze+"px";const $e=Ae.getContext("2d");m=me.render({canvasContext:$e,viewport:Je}),await m.promise,m=null,Ce()}catch(me){(me==null?void 0:me.name)!=="RenderingCancelledException"&&zs.error(`页面渲染失败:${me.message}`)}finally{v.value=!1}}}let Oe=null;function Ce(){const ve=M.value,me=I.value;if(!ve||!me)return;const Ze=ve.offsetWidth,Je=ve.offsetHeight;Ze===0||Je===0||((me.width!==Ze||me.height!==Je)&&(me.width=Ze,me.height=Je),at(),Oe||(Oe=new ResizeObserver(()=>Ce())),Oe.disconnect(),Oe.observe(ve))}window.addEventListener("resize",()=>{h.value&&Ce()});function Ie(ve){const me=I.value.getBoundingClientRect();return{x:ve.clientX-me.left,y:ve.clientY-me.top}}function Pe(ve){se.value&&(R.value.scrollLeft=he.value-ve.clientX,R.value.scrollTop=te.value-ve.clientY)}function He(){se.value&&(se.value=!1,I.value&&(I.value.style.cursor=""),window.removeEventListener("mousemove",Pe),window.removeEventListener("mouseup",He))}function Qe(ve){if(!V.value)return;const{x:me,y:Ze}=Ie(ve);Q.value=me,K.value=Ze,at()}function rt(ve){if(!V.value)return;const{x:me,y:Ze}=Ie(ve);V.value=!1,window.removeEventListener("mousemove",Qe),window.removeEventListener("mouseup",rt);const Je=I.value,Ae=Je.width,$e=Je.height,lt=Qc=>Math.max(0,Math.min(Ae,Qc)),yn=Qc=>Math.max(0,Math.min($e,Qc)),rn=lt(me),Rn=yn(Ze),Js=lt(z.value),It=yn(G.value),to=Math.min(Js,rn),Fa=Math.min(It,Rn),Jc=Math.abs(rn-Js),Zc=Math.abs(Rn-It);Jc>8&&Zc>8&&b.value.push({id:crypto.randomUUID(),type:g.value,page:d.value,xr:to/Ae,yr:Fa/$e,wr:Jc/Ae,hr:Zc/$e,cx:to,cy:Fa,cw:Jc,ch:Zc,status:"pending",text:"",boxes:[],tokens:null}),Ht(),at()}function De(ve){ve.preventDefault();const{x:me,y:Ze}=Ie(ve);ee.value==="draw"?(V.value=!0,z.value=me,G.value=Ze,Q.value=me,K.value=Ze,window.addEventListener("mousemove",Qe),window.addEventListener("mouseup",rt)):ee.value==="pan"&&(se.value=!0,he.value=ve.clientX+R.value.scrollLeft,te.value=ve.clientY+R.value.scrollTop,I.value.style.cursor="grabbing",window.addEventListener("mousemove",Pe),window.addEventListener("mouseup",He))}function Ke(ve){}function et(ve){}function Ft(){}function Ht(){V.value=!1,z.value=0,G.value=0,Q.value=0,K.value=0}function at(){const ve=I.value;if(!ve)return;const me=ve.getContext("2d");me.clearRect(0,0,ve.width,ve.height);const Ze=ve.width,Je=ve.height;for(const Ae of b.value){if(Ae.page!==d.value)continue;const $e=Ae.xr*Ze,lt=Ae.yr*Je,yn=Ae.wr*Ze,rn=Ae.hr*Je,Rn=s(Ae.type),Js=Ae.id===C.value;me.strokeStyle=Rn,me.lineWidth=Js?3:2,me.setLineDash(Ae.status==="pending"?[5,3]:[]),me.strokeRect($e,lt,yn,rn),me.fillStyle=Rn+"18",me.fillRect($e,lt,yn,rn);const It=`${Ae.type} ${a(Ae.type)}`;me.font="bold 12px sans-serif";const to=me.measureText(It).width+10;me.fillStyle=Rn,me.fillRect($e,lt-18,to,18),me.fillStyle="#fff",me.fillText(It,$e+5,lt-4)}if(V.value){const Ae=Math.min(z.value,Q.value),$e=Math.min(G.value,K.value),lt=Math.abs(Q.value-z.value),yn=Math.abs(K.value-G.value),rn=s(g.value);me.strokeStyle=rn,me.lineWidth=2,me.setLineDash([4,3]),me.strokeRect(Ae,$e,lt,yn),me.fillStyle=rn+"15",me.fillRect(Ae,$e,lt,yn)}}function vt(ve){C.value=ve.id,ve.page!==d.value?Se(ve.page):at()}function Et(ve){b.value=b.value.filter(me=>me.id!==ve),C.value===ve&&(C.value=null),at()}function xe(){b.value=[],C.value=null,at()}async function Ue(){var Je;const ve=b.value.find(Ae=>Ae.type==="A");if(!ve)return;b.value.filter(Ae=>Ae.type==="A"&&Ae.status==="pending").forEach(Ae=>{Ae.status="recognizing"}),x.value=!0,E.value=u.value,T.value=0;const me=Math.max(800,Math.round(3500*Math.ceil(u.value/10)/u.value)),Ze=setInterval(()=>{T.value<E.value-1&&T.value++},me);try{const Ae=await fetch("/api/manual/ocr-all-pages-vl",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:c.value,x_ratio:ve.xr,y_ratio:ve.yr,w_ratio:ve.wr,h_ratio:ve.hr,concurrency:10})});if(clearInterval(Ze),!Ae.ok){const rn=await Ae.json().catch(()=>({}));throw new Error(rn.detail||`HTTP ${Ae.status}`)}const $e=await Ae.json();T.value=E.value;const lt=(Je=$e.usage)!=null&&Je.total_tokens?Math.round($e.usage.total_tokens/($e.total_pages||1)):null;for(const rn of $e.results){let Rn=b.value.find(It=>It.type==="A"&&It.page===rn.page_index);Rn||(Rn={id:crypto.randomUUID(),type:"A",page:rn.page_index,xr:ve.xr,yr:ve.yr,wr:ve.wr,hr:ve.hr,cx:ve.cx,cy:ve.cy,cw:ve.cw,ch:ve.ch,status:"pending",text:"",boxes:[],tokens:null,rows:[]},b.value.push(Rn));const Js=rn.rows||[];Rn.rows=Js,Rn.tokens=lt,Rn.text=Js.length?Js.map(It=>[It.seq_no??"",It.category??"",It.description??"",It.nominal_dia_mm??"",It.qty??""].filter(Fa=>Fa!=="").join(" | ")).join(`
`):"(该页无材料明细行)",Rn.status=rn._validation_failed?"error":"done"}const yn=$e.results.filter(rn=>rn._validation_failed).length;yn>0?zs.warning(`VL 识别完成,${$e.total_pages} 页中 ${yn} 页校验未通过(内容可能为空)`):zs.success(`VL 识别完成,共 ${$e.total_pages} 页`)}catch(Ae){clearInterval(Ze),b.value.filter($e=>$e.type==="A").forEach($e=>{$e.status==="recognizing"&&($e.status="error")}),zs.error(`VL 识别失败:${Ae.message}`)}finally{x.value=!1}}async function we(ve){var me;ve.status="recognizing";try{const Ze=await fetch("/api/manual/ocr",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:c.value,page_index:ve.page,x_ratio:ve.xr,y_ratio:ve.yr,w_ratio:ve.wr,h_ratio:ve.hr,region_type:ve.type})});if(!Ze.ok){const Ae=await Ze.json().catch(()=>({}));throw new Error(Ae.detail||`HTTP ${Ze.status}`)}const Je=await Ze.json();ve.text=Je.text,ve.boxes=Je.boxes||[],ve.tokens=((me=Je.token_usage)==null?void 0:me.total_tokens)??null,ve.status="done",C.value=ve.id,at()}catch(Ze){ve.status="error",zs.error(`区域 ${ve.type} 识别失败:${Ze.message}`)}}async function Ge(){const ve=b.value.find(me=>me.type==="B");if(ve){b.value.filter(me=>me.type==="B"&&me.status==="pending").forEach(me=>{me.status="recognizing"});try{const me=await fetch("/api/manual/ocr-all-pages-vl-b",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:c.value,x_ratio:ve.xr,y_ratio:ve.yr,w_ratio:ve.wr,h_ratio:ve.hr,concurrency:5})});if(!me.ok){const Je=await me.json().catch(()=>({}));throw new Error(Je.detail||`HTTP ${me.status}`)}const Ze=await me.json();for(const Je of Ze.results){let Ae=b.value.find($e=>$e.type==="B"&&$e.page===Je.page_index);Ae||(Ae={id:crypto.randomUUID(),type:"B",page:Je.page_index,xr:ve.xr,yr:ve.yr,wr:ve.wr,hr:ve.hr,cx:ve.cx,cy:ve.cy,cw:ve.cw,ch:ve.ch,status:"pending",text:"",boxes:[],tokens:null},b.value.push(Ae)),Ae.text=Je.pipeline_no||"",Ae.status=Je.parse_error?"error":"done"}}catch(me){b.value.filter(Ze=>Ze.type==="B"&&Ze.status==="recognizing").forEach(Ze=>{Ze.status="error"}),zs.error(`管线号 VL 识别失败:${me.message}`)}}}function wt(){var ve,me;for(const Ze of b.value.filter(Je=>Je.type==="B"&&Je.status==="done")){const Je=(ve=Ze.text)==null?void 0:ve.trim();if(!Je)continue;const Ae=b.value.find($e=>$e.type==="A"&&$e.page===Ze.page);(me=Ae==null?void 0:Ae.rows)!=null&&me.length&&(Ae.rows=Ae.rows.map($e=>({...$e,pipe_no:Je})))}}async function Ut(){if(!b.value.filter($e=>$e.status==="pending").length)return;const me=le.value>0,Ze=b.value.some($e=>$e.type==="B"),Je=[];me&&Je.push(Ue()),Ze&&Je.push(Ge()),Je.length&&await Promise.all(Je),me&&Ze&&wt();const Ae=b.value.filter($e=>$e.type==="C"&&$e.status==="pending");if(Ae.length){w.value=!0;for(const $e of Ae)await we($e);w.value=!1}zs.success("全部识别完成"),await ze(),await gn()}async function gn(){const ve=Z.value;if(ve.length)try{const me=await fetch("/api/manual/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({regions:ve.map(Ae=>({id:Ae.id,region_type:Ae.type,page_index:Ae.page,text:Ae.text,boxes:Ae.boxes||[],rows:Ae.rows||[]})),format:"json"})});if(!me.ok)return;const Ze=await me.text(),Je=document.getElementById("resultdata");Je&&(Je.value=Ze)}catch{}}async function bn(ve){const me=Z.value;if(me.length){_.value=ve;try{const Ze=await fetch("/api/manual/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({regions:me.map(lt=>({id:lt.id,region_type:lt.type,page_index:lt.page,text:lt.text,boxes:lt.boxes||[],rows:lt.rows||[]})),format:ve})});if(!Ze.ok){const lt=await Ze.json().catch(()=>({}));throw new Error(lt.detail||`HTTP ${Ze.status}`)}const Je=await Ze.blob(),Ae=URL.createObjectURL(Je),$e=document.createElement("a");$e.href=Ae,$e.download=ve==="excel"?"manual_ocr_result.xlsx":"manual_ocr_result.json",$e.click(),URL.revokeObjectURL(Ae),zs.success("导出成功")}catch(Ze){zs.error(`导出失败:${Ze.message}`)}finally{_.value=""}}}async function Be(ve){try{await navigator.clipboard.writeText(ve),zs.success("已复制")}catch{zs.warning("请手动复制")}}return Gd(()=>{de&&clearInterval(de),Oe&&Oe.disconnect(),window.removeEventListener("mousemove",Qe),window.removeEventListener("mouseup",rt),window.removeEventListener("mousemove",Pe),window.removeEventListener("mouseup",He),c.value&&fetch(`/api/manual/session/${c.value}`,{method:"DELETE"}).catch(()=>{})}),(ve,me)=>{const Ze=qe("el-icon"),Je=qe("el-button"),Ae=qe("el-upload"),$e=qe("el-tab-pane"),lt=qe("el-input"),yn=qe("el-tabs"),rn=qe("el-tag"),Rn=qe("el-progress"),Js=qe("el-button-group");return S(),P("div",mye,[A("div",gye,[A("div",{class:D(["engine-badge","es-"+O.value])},[me[12]||(me[12]=A("span",{class:"es-dot"},null,-1)),A("span",bye,[me[11]||(me[11]=We(" OCR  ",-1)),O.value==="loading"?(S(),P(Ve,{key:0},[We("引擎加载中…")],64)):O.value==="ready"?(S(),P(Ve,{key:1},[We("引擎就绪")],64)):(S(),P(Ve,{key:2},[We("引擎异常")],64))])],2),A("div",yye,[A("div",wye,[W(Ze,null,{default:X(()=>[W(f(o1))]),_:1}),me[13]||(me[13]=We(" 加载 PDF ",-1))]),W(yn,{modelValue:o.value,"onUpdate:modelValue":me[1]||(me[1]=It=>o.value=It),class:"src-tabs",size:"small"},{default:X(()=>[W($e,{label:"本地文件",name:"file"},{default:X(()=>[W(Ae,{ref_key:"uploadRef",ref:$,"auto-upload":!1,accept:".pdf","show-file-list":!1,"on-change":ye},{default:X(()=>[W(Je,{size:"small",plain:"",style:{width:"100%"},loading:l.value&&o.value==="file"},{default:X(()=>[W(Ze,null,{default:X(()=>[W(f(Gk))]),_:1}),We(" "+ge(r.value?r.value.name:"选择 PDF自动加载…"),1)]),_:1},8,["loading"])]),_:1},512)]),_:1}),W($e,{label:"网络 URL",name:"url"},{default:X(()=>[W(lt,{modelValue:i.value,"onUpdate:modelValue":me[0]||(me[0]=It=>i.value=It),placeholder:"https://…/file.pdf",clearable:"",size:"small"},null,8,["modelValue"]),W(Je,{type:"primary",size:"small",style:{width:"100%","margin-top":"6px"},loading:l.value,disabled:!pe.value,onClick:_e},{default:X(()=>[W(Ze,null,{default:X(()=>[W(f(H8))]),_:1}),me[14]||(me[14]=We(" 加载 / 渲染 ",-1))]),_:1},8,["loading","disabled"])]),_:1})]),_:1},8,["modelValue"])]),h.value?(S(),P("div",_ye,[A("div",Cye,[W(Ze,null,{default:X(()=>[W(f(s1))]),_:1}),me[15]||(me[15]=We(" 当前区域类型 ",-1)),me[16]||(me[16]=A("span",{class:"sb-hint"},"拖拽在右侧图像上框选",-1))]),A("div",Sye,[(S(),P(Ve,null,yt(n,It=>A("button",{key:It.key,class:D(["rt-btn",{active:g.value===It.key}]),style:tt({"--rt-color":It.color}),onClick:to=>g.value=It.key},[A("span",Eye,ge(It.key),1),We(" "+ge(It.label),1)],14,xye)),64))])])):ie("",!0),b.value.length?(S(),P("div",kye,[A("div",Aye,[W(Ze,null,{default:X(()=>[W(f(Nk))]),_:1}),We(" 已标注区域 ("+ge(b.value.length)+") ",1),W(Je,{link:"",type:"danger",size:"small",onClick:xe},{default:X(()=>[...me[17]||(me[17]=[We("清空",-1)])]),_:1})]),A("div",Tye,[(S(!0),P(Ve,null,yt(b.value,It=>(S(),P("div",{key:It.id,class:D(["region-item",{active:C.value===It.id}]),style:tt({"--rt-color":s(It.type)}),onClick:to=>vt(It)},[A("div",Pye,[A("span",Rye,ge(It.type),1),A("span",Iye,ge(a(It.type)),1),A("span",Lye,"P"+ge(It.page+1),1),W(Ze,{class:"ri-del",onClick:it(to=>Et(It.id),["stop"])},{default:X(()=>[W(f(eo))]),_:1},8,["onClick"])]),A("div",Oye,[It.status==="pending"?(S(),ce(rn,{key:0,size:"small",type:"info"},{default:X(()=>[...me[18]||(me[18]=[We("待识别",-1)])]),_:1})):It.status==="recognizing"?(S(),ce(rn,{key:1,size:"small",type:"warning"},{default:X(()=>[...me[19]||(me[19]=[We("识别中…",-1)])]),_:1})):It.status==="done"?(S(),P(Ve,{key:2},[W(rn,{size:"small",type:"success"},{default:X(()=>[...me[20]||(me[20]=[We("已完成",-1)])]),_:1}),It.tokens?(S(),P("span",Nye,ge(It.tokens)+"tk",1)):ie("",!0)],64)):It.status==="error"?(S(),ce(rn,{key:3,size:"small",type:"danger"},{default:X(()=>[...me[21]||(me[21]=[We("失败",-1)])]),_:1})):ie("",!0)]),It.text?(S(),P("pre",$ye,ge(It.text.slice(0,120))+ge(It.text.length>120?"…":""),1)):ie("",!0)],14,Mye))),128))])])):ie("",!0),h.value&&b.value.length?(S(),P("div",Dye,[W(Je,{type:"primary",size:"small",style:{width:"100%"},loading:w.value||x.value,disabled:fe.value===0||x.value,onClick:Ut},{default:X(()=>[W(Ze,null,{default:X(()=>[W(f(Ik))]),_:1}),We(" 识别所有未处理区域 ("+ge(fe.value)+") ",1)]),_:1},8,["loading","disabled"]),W(bs,{name:"vl-fade"},{default:X(()=>[x.value||T.value>0&&T.value===E.value?(S(),P("div",Fye,[A("div",Bye,[x.value?(S(),P("span",Vye,[me[22]||(me[22]=A("span",{class:"vl-spin"},"⟳",-1)),We(" VL 识别中… "+ge(T.value)+"/"+ge(E.value)+" 页 ",1)])):(S(),P("span",zye,"✓ 完成 "+ge(E.value)+" 页",1))]),W(Rn,{percentage:ae.value,striped:x.value,"striped-flow":x.value,duration:8,"stroke-width":6,"show-text":!1,status:x.value?"":"success",style:{"margin-top":"4px"}},null,8,["percentage","striped","striped-flow","status"])])):ie("",!0)]),_:1})])):ie("",!0),Z.value.length?(S(),P("div",Hye,[A("div",Wye,[W(Ze,null,{default:X(()=>[W(f(bl))]),_:1}),me[23]||(me[23]=We(" 导出结果 ",-1))]),A("div",jye,[W(Je,{size:"small",style:{flex:"1"},loading:_.value==="excel",onClick:me[2]||(me[2]=It=>bn("excel"))},{default:X(()=>[W(Ze,null,{default:X(()=>[W(f(Lk))]),_:1}),me[24]||(me[24]=We(" Excel ",-1))]),_:1},8,["loading"]),W(Je,{size:"small",style:{flex:"1"},loading:_.value==="json",onClick:me[3]||(me[3]=It=>bn("json"))},{default:X(()=>[W(Ze,null,{default:X(()=>[W(f(a1))]),_:1}),me[25]||(me[25]=We(" JSON ",-1))]),_:1},8,["loading"])])])):ie("",!0),A("div",Kye,[W(Je,{plain:"",size:"small",style:{width:"100%"},onClick:me[4]||(me[4]=It=>f(t).push("/"))},{default:X(()=>[W(Ze,null,{default:X(()=>[W(f(Go))]),_:1}),me[26]||(me[26]=We(" 返回主页 ",-1))]),_:1})])]),A("div",Uye,[h.value?(S(),P("div",qye,[W(Js,null,{default:X(()=>[W(Je,{size:"small",disabled:d.value===0,onClick:me[5]||(me[5]=It=>Se(d.value-1))},{default:X(()=>[W(Ze,null,{default:X(()=>[W(f(Go))]),_:1})]),_:1},8,["disabled"]),W(Je,{size:"small",disabled:d.value===u.value-1,onClick:me[6]||(me[6]=It=>Se(d.value+1))},{default:X(()=>[W(Ze,null,{default:X(()=>[W(f(Ds))]),_:1})]),_:1},8,["disabled"])]),_:1}),A("span",Gye,"第 "+ge(d.value+1)+" / "+ge(u.value)+" 页",1),A("div",Yye,[A("span",{class:"nt-dot",style:tt({background:s(g.value)})},null,4),We(" "+ge(g.value)+" — "+ge(a(g.value)),1)]),W(Js,{size:"small"},{default:X(()=>[W(Je,{type:ee.value==="draw"?"primary":"",onClick:me[7]||(me[7]=It=>ee.value="draw")},{default:X(()=>[W(Ze,null,{default:X(()=>[W(f(s1))]),_:1}),me[27]||(me[27]=We(" 框选 ",-1))]),_:1},8,["type"]),W(Je,{type:ee.value==="pan"?"primary":"",onClick:me[8]||(me[8]=It=>ee.value="pan")},{default:X(()=>[W(Ze,null,{default:X(()=>[W(f(zk))]),_:1}),me[28]||(me[28]=We(" 拖动 ",-1))]),_:1},8,["type"])]),_:1}),A("div",Xye,[W(Je,{size:"small",plain:"",icon:f(W8),onClick:J,disabled:B.value<=.25},null,8,["icon","disabled"]),A("span",Jye,ge(Math.round(B.value*100))+"%",1),W(Je,{size:"small",plain:"",icon:f(Tb),onClick:q,disabled:B.value>=3},null,8,["icon","disabled"]),W(Je,{size:"small",plain:"",icon:f(B8),title:"适应宽度",onClick:Y},null,8,["icon"])])])):ie("",!0),h.value?ie("",!0):(S(),P("div",Zye,[W(Ze,{size:"64",style:{color:"#d1d5db"}},{default:X(()=>[W(f(a1))]),_:1}),me[29]||(me[29]=A("p",null,"请在左侧加载 PDF 文件",-1))])),gt(A("div",{class:"img-wrap",ref_key:"wrapRef",ref:R},[A("div",Qye,[A("canvas",{ref_key:"pdfCanvasRef",ref:M,class:"pdf-canvas"},null,512),v.value?(S(),P("div",e3e,[W(Ze,{class:"spin"},{default:X(()=>[W(f(Ao))]),_:1}),me[30]||(me[30]=We(" 渲染页面中… ",-1))])):ie("",!0),A("canvas",{ref_key:"canvasRef",ref:I,class:"overlay-canvas","data-mode":ee.value,onMousedown:De,onMousemove:Ke,onMouseup:et,onMouseleave:Ft},null,40,t3e)])],512),[[Bt,h.value]]),W(bs,{name:"fade"},{default:X(()=>[H.value&&H.value.text?(S(),P("div",n3e,[A("div",s3e,[A("span",{class:"rp-badge",style:tt({background:s(H.value.type)})},ge(H.value.type),5),A("span",a3e,ge(a(H.value.type))+" — 第 "+ge(H.value.page+1)+" 页",1),H.value.tokens?(S(),P("span",o3e,ge(H.value.tokens)+" tokens",1)):ie("",!0),W(Je,{link:"",size:"small",onClick:me[9]||(me[9]=It=>Be(H.value.text))},{default:X(()=>[...me[31]||(me[31]=[We("复制",-1)])]),_:1}),W(Je,{link:"",size:"small",onClick:me[10]||(me[10]=It=>C.value=null)},{default:X(()=>[...me[32]||(me[32]=[We("×",-1)])]),_:1})]),A("pre",r3e,ge(H.value.text),1)])):ie("",!0)]),_:1})])])}}},l3e=zl(i3e,[["__scopeId","data-v-647d89a7"]]),c3e=[{path:"/",component:hbe},{path:"/Manual",component:l3e}],u3e=Xge({history:Tge(),routes:c3e}),a4=bE(j2e);a4.use(l_);a4.use(u3e);for(const[e,t]of Object.entries(tJ))a4.component(e,t);a4.mount("#app");