diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..587e5be --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +socrates-soil.net \ No newline at end of file diff --git a/assets/index-27ba94c0.js b/assets/index-27ba94c0.js new file mode 100644 index 0000000..d88032c --- /dev/null +++ b/assets/index-27ba94c0.js @@ -0,0 +1,96 @@ +var XL=Object.defineProperty;var JL=(e,t,n)=>t in e?XL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Re=(e,t,n)=>(JL(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function um(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const Jt={},wa=[],Cn=()=>{},ZL=()=>!1,QL=/^on[^a-z]/,bd=e=>QL.test(e),cm=e=>e.startsWith("onUpdate:"),mn=Object.assign,fm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},eI=Object.prototype.hasOwnProperty,wt=(e,t)=>eI.call(e,t),ze=Array.isArray,xa=e=>Lu(e)==="[object Map]",yd=e=>Lu(e)==="[object Set]",by=e=>Lu(e)==="[object Date]",Xe=e=>typeof e=="function",mt=e=>typeof e=="string",ru=e=>typeof e=="symbol",yt=e=>e!==null&&typeof e=="object",Ax=e=>yt(e)&&Xe(e.then)&&Xe(e.catch),Px=Object.prototype.toString,Lu=e=>Px.call(e),vf=e=>Lu(e).slice(8,-1),Rx=e=>Lu(e)==="[object Object]",dm=e=>mt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bf=um(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_d=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},tI=/-(\w)/g,oi=_d(e=>e.replace(tI,(t,n)=>n?n.toUpperCase():"")),nI=/\B([A-Z])/g,Uo=_d(e=>e.replace(nI,"-$1").toLowerCase()),wd=_d(e=>e.charAt(0).toUpperCase()+e.slice(1)),yf=_d(e=>e?`on${wd(e)}`:""),iu=(e,t)=>!Object.is(e,t),_f=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Gp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},rI=e=>{const t=mt(e)?Number(e):NaN;return isNaN(t)?e:t};let yy;const Xp=()=>yy||(yy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function jt(e){if(ze(e)){const t={};for(let n=0;n{if(n){const r=n.split(sI);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function he(e){let t="";if(mt(e))t=e;else if(ze(e))for(let n=0;nxd(n,t))}const pt=e=>mt(e)?e:e==null?"":ze(e)||yt(e)&&(e.toString===Px||!Xe(e.toString))?JSON.stringify(e,Ix,2):String(e),Ix=(e,t)=>t&&t.__v_isRef?Ix(e,t.value):xa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:yd(t)?{[`Set(${t.size})`]:[...t.values()]}:yt(t)&&!ze(t)&&!Rx(t)?String(t):t;let xr;class $x{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=xr,!t&&xr&&(this.index=(xr.scopes||(xr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=xr;try{return xr=this,t()}finally{xr=n}}}on(){xr=this}off(){xr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Dx=e=>(e.w&Hs)>0,Nx=e=>(e.n&Hs)>0,dI=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=u)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":ze(e)?dm(n)&&a.push(o.get("length")):(a.push(o.get(Lo)),xa(e)&&a.push(o.get(Zp)));break;case"delete":ze(e)||(a.push(o.get(Lo)),xa(e)&&a.push(o.get(Zp)));break;case"set":xa(e)&&a.push(o.get(Lo));break}if(a.length===1)a[0]&&Qp(a[0]);else{const u=[];for(const c of a)c&&u.push(...c);Qp(gm(u))}}function Qp(e,t){const n=ze(e)?e:[...e];for(const r of n)r.computed&&wy(r);for(const r of n)r.computed||wy(r)}function wy(e,t){(e!==ei||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function pI(e,t){var n;return(n=Uf.get(e))==null?void 0:n.get(t)}const gI=um("__proto__,__v_isRef,__isVue"),Hx=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ru)),mI=vm(),vI=vm(!1,!0),bI=vm(!0),xy=yI();function yI(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ut(this);for(let s=0,o=this.length;s{e[t]=function(...n){Ua();const r=ut(this)[t].apply(this,n);return Ka(),r}}),e}function _I(e){const t=ut(this);return cr(t,"has",e),t.hasOwnProperty(e)}function vm(e=!1,t=!1){return function(r,i,s){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&s===(e?t?FI:Kx:t?Ux:Vx).get(r))return r;const o=ze(r);if(!e){if(o&&wt(xy,i))return Reflect.get(xy,i,s);if(i==="hasOwnProperty")return _I}const a=Reflect.get(r,i,s);return(ru(i)?Hx.has(i):gI(i))||(e||cr(r,"get",i),t)?a:Nt(a)?o&&dm(i)?a:a.value:yt(a)?e?Iu(a):vn(a):a}}const wI=Wx(),xI=Wx(!0);function Wx(e=!1){return function(n,r,i,s){let o=n[r];if(Ea(o)&&Nt(o)&&!Nt(i))return!1;if(!e&&(!Kf(i)&&!Ea(i)&&(o=ut(o),i=ut(i)),!ze(n)&&Nt(o)&&!Nt(i)))return o.value=i,!0;const a=ze(n)&&dm(r)?Number(r)e,Cd=e=>Reflect.getPrototypeOf(e);function Dc(e,t,n=!1,r=!1){e=e.__v_raw;const i=ut(e),s=ut(t);n||(t!==s&&cr(i,"get",t),cr(i,"get",s));const{has:o}=Cd(i),a=r?bm:n?wm:su;if(o.call(i,t))return a(e.get(t));if(o.call(i,s))return a(e.get(s));e!==i&&e.get(t)}function Nc(e,t=!1){const n=this.__v_raw,r=ut(n),i=ut(e);return t||(e!==i&&cr(r,"has",e),cr(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Bc(e,t=!1){return e=e.__v_raw,!t&&cr(ut(e),"iterate",Lo),Reflect.get(e,"size",e)}function Cy(e){e=ut(e);const t=ut(this);return Cd(t).has.call(t,e)||(t.add(e),Ji(t,"add",e,e)),this}function Sy(e,t){t=ut(t);const n=ut(this),{has:r,get:i}=Cd(n);let s=r.call(n,e);s||(e=ut(e),s=r.call(n,e));const o=i.call(n,e);return n.set(e,t),s?iu(t,o)&&Ji(n,"set",e,t):Ji(n,"add",e,t),this}function Oy(e){const t=ut(this),{has:n,get:r}=Cd(t);let i=n.call(t,e);i||(e=ut(e),i=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return i&&Ji(t,"delete",e,void 0),s}function Ey(){const e=ut(this),t=e.size!==0,n=e.clear();return t&&Ji(e,"clear",void 0,void 0),n}function zc(e,t){return function(r,i){const s=this,o=s.__v_raw,a=ut(o),u=t?bm:e?wm:su;return!e&&cr(a,"iterate",Lo),o.forEach((c,d)=>r.call(i,u(c),u(d),s))}}function Hc(e,t,n){return function(...r){const i=this.__v_raw,s=ut(i),o=xa(s),a=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,c=i[e](...r),d=n?bm:t?wm:su;return!t&&cr(s,"iterate",u?Zp:Lo),{next(){const{value:h,done:g}=c.next();return g?{value:h,done:g}:{value:a?[d(h[0]),d(h[1])]:d(h),done:g}},[Symbol.iterator](){return this}}}}function vs(e){return function(...t){return e==="delete"?!1:this}}function TI(){const e={get(s){return Dc(this,s)},get size(){return Bc(this)},has:Nc,add:Cy,set:Sy,delete:Oy,clear:Ey,forEach:zc(!1,!1)},t={get(s){return Dc(this,s,!1,!0)},get size(){return Bc(this)},has:Nc,add:Cy,set:Sy,delete:Oy,clear:Ey,forEach:zc(!1,!0)},n={get(s){return Dc(this,s,!0)},get size(){return Bc(this,!0)},has(s){return Nc.call(this,s,!0)},add:vs("add"),set:vs("set"),delete:vs("delete"),clear:vs("clear"),forEach:zc(!0,!1)},r={get(s){return Dc(this,s,!0,!0)},get size(){return Bc(this,!0)},has(s){return Nc.call(this,s,!0)},add:vs("add"),set:vs("set"),delete:vs("delete"),clear:vs("clear"),forEach:zc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Hc(s,!1,!1),n[s]=Hc(s,!0,!1),t[s]=Hc(s,!1,!0),r[s]=Hc(s,!0,!0)}),[e,n,t,r]}const[AI,PI,RI,kI]=TI();function ym(e,t){const n=t?e?kI:RI:e?PI:AI;return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(wt(n,i)&&i in r?n:r,i,s)}const LI={get:ym(!1,!1)},II={get:ym(!1,!0)},$I={get:ym(!0,!1)},Vx=new WeakMap,Ux=new WeakMap,Kx=new WeakMap,FI=new WeakMap;function DI(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function NI(e){return e.__v_skip||!Object.isExtensible(e)?0:DI(vf(e))}function vn(e){return Ea(e)?e:_m(e,!1,jx,LI,Vx)}function BI(e){return _m(e,!1,MI,II,Ux)}function Iu(e){return _m(e,!0,EI,$I,Kx)}function _m(e,t,n,r,i){if(!yt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=NI(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return i.set(e,a),a}function $s(e){return Ea(e)?$s(e.__v_raw):!!(e&&e.__v_isReactive)}function Ea(e){return!!(e&&e.__v_isReadonly)}function Kf(e){return!!(e&&e.__v_isShallow)}function qx(e){return $s(e)||Ea(e)}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function Sd(e){return Vf(e,"__v_skip",!0),e}const su=e=>yt(e)?vn(e):e,wm=e=>yt(e)?Iu(e):e;function Yx(e){Is&&ei&&(e=ut(e),zx(e.dep||(e.dep=gm())))}function xm(e,t){e=ut(e);const n=e.dep;n&&Qp(n)}function Nt(e){return!!(e&&e.__v_isRef===!0)}function X(e){return Gx(e,!1)}function Fs(e){return Gx(e,!0)}function Gx(e,t){return Nt(e)?e:new zI(e,t)}class zI{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ut(t),this._value=n?t:su(t)}get value(){return Yx(this),this._value}set value(t){const n=this.__v_isShallow||Kf(t)||Ea(t);t=n?t:ut(t),iu(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:su(t),xm(this))}}function bl(e){xm(e)}function S(e){return Nt(e)?e.value:e}const HI={get:(e,t,n)=>S(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Nt(i)&&!Nt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Xx(e){return $s(e)?e:new Proxy(e,HI)}function Gs(e){const t=ze(e)?new Array(e.length):{};for(const n in e)t[n]=Jx(e,n);return t}class WI{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return pI(ut(this._object),this._key)}}class jI{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Nr(e,t,n){return Nt(e)?e:Xe(e)?new jI(e):yt(e)&&arguments.length>1?Jx(e,t,n):X(e)}function Jx(e,t,n){const r=e[t];return Nt(r)?r:new WI(e,t,n)}class VI{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new mm(t,()=>{this._dirty||(this._dirty=!0,xm(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=ut(this);return Yx(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Zx(e,t,n=!1){let r,i;const s=Xe(e);return s?(r=e,i=Cn):(r=e.get,i=e.set),new VI(r,i,s||!i,n)}function UI(e,...t){}function Ds(e,t,n,r){let i;try{i=r?e(...r):e()}catch(s){Od(s,t,n)}return i}function Br(e,t,n,r){if(Xe(e)){const s=Ds(e,t,n,r);return s&&Ax(s)&&s.catch(o=>{Od(o,t,n)}),s}const i=[];for(let s=0;s>>1;au(Wn[r])yi&&Wn.splice(t,1)}function GI(e){ze(e)?Ca.push(...e):(!Ui||!Ui.includes(e,e.allowRecurse?wo+1:wo))&&Ca.push(e),eC()}function My(e,t=ou?yi+1:0){for(;tau(n)-au(r)),wo=0;woe.id==null?1/0:e.id,XI=(e,t)=>{const n=au(e)-au(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function nC(e){eg=!1,ou=!0,Wn.sort(XI);const t=Cn;try{for(yi=0;yimt(m)?m.trim():m)),h&&(i=n.map(Gp))}let a,u=r[a=yf(t)]||r[a=yf(oi(t))];!u&&s&&(u=r[a=yf(Uo(t))]),u&&Br(u,e,6,i);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Br(c,e,6,i)}}function rC(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let o={},a=!1;if(!Xe(e)){const u=c=>{const d=rC(c,t,!0);d&&(a=!0,mn(o,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!s&&!a?(yt(e)&&r.set(e,null),null):(ze(s)?s.forEach(u=>o[u]=null):mn(o,s),yt(e)&&r.set(e,o),o)}function Ed(e,t){return!e||!bd(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,Uo(t))||wt(e,t))}let Mn=null,iC=null;function qf(e){const t=Mn;return Mn=e,iC=e&&e.type.__scopeId||null,t}function B(e,t=Mn,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&zy(-1);const s=qf(t);let o;try{o=e(...i)}finally{qf(s),r._d&&zy(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function fp(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[o],slots:a,attrs:u,emit:c,render:d,renderCache:h,data:g,setupState:m,ctx:b,inheritAttrs:v}=e;let w,y;const C=qf(e);try{if(n.shapeFlag&4){const _=i||r;w=vi(d.call(_,_,h,s,m,g,b)),y=u}else{const _=t;w=vi(_.length>1?_(s,{attrs:u,slots:a,emit:c}):_(s,null)),y=t.props?u:ZI(u)}}catch(_){Wl.length=0,Od(_,e,1),w=H(ar)}let O=w;if(y&&v!==!1){const _=Object.keys(y),{shapeFlag:E}=O;_.length&&E&7&&(o&&_.some(cm)&&(y=QI(y,o)),O=Zi(O,y))}return n.dirs&&(O=Zi(O),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),w=O,qf(C),w}const ZI=e=>{let t;for(const n in e)(n==="class"||n==="style"||bd(n))&&((t||(t={}))[n]=e[n]);return t},QI=(e,t)=>{const n={};for(const r in e)(!cm(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function e$(e,t,n){const{props:r,children:i,component:s}=e,{props:o,children:a,patchFlag:u}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?Ty(r,o,c):!!o;if(u&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense;function r$(e,t){t&&t.pendingBranch?ze(e)?t.effects.push(...e):t.effects.push(e):GI(e)}function Ns(e,t){return Om(e,null,t)}const Wc={};function Ie(e,t,n){return Om(e,t,n)}function Om(e,t,{immediate:n,deep:r,flush:i,onTrack:s,onTrigger:o}=Jt){var a;const u=hm()===((a=_n)==null?void 0:a.scope)?_n:null;let c,d=!1,h=!1;if(Nt(e)?(c=()=>e.value,d=Kf(e)):$s(e)?(c=()=>e,r=!0):ze(e)?(h=!0,d=e.some(_=>$s(_)||Kf(_)),c=()=>e.map(_=>{if(Nt(_))return _.value;if($s(_))return Mo(_);if(Xe(_))return Ds(_,u,2)})):Xe(e)?t?c=()=>Ds(e,u,2):c=()=>{if(!(u&&u.isUnmounted))return g&&g(),Br(e,u,3,[m])}:c=Cn,t&&r){const _=c;c=()=>Mo(_())}let g,m=_=>{g=C.onStop=()=>{Ds(_,u,4)}},b;if(du)if(m=Cn,t?n&&Br(t,u,3,[c(),h?[]:void 0,m]):c(),i==="sync"){const _=G$();b=_.__watcherHandles||(_.__watcherHandles=[])}else return Cn;let v=h?new Array(e.length).fill(Wc):Wc;const w=()=>{if(C.active)if(t){const _=C.run();(r||d||(h?_.some((E,T)=>iu(E,v[T])):iu(_,v)))&&(g&&g(),Br(t,u,3,[_,v===Wc?void 0:h&&v[0]===Wc?[]:v,m]),v=_)}else C.run()};w.allowRecurse=!!t;let y;i==="sync"?y=w:i==="post"?y=()=>sr(w,u&&u.suspense):(w.pre=!0,u&&(w.id=u.uid),y=()=>Sm(w));const C=new mm(c,y);t?n?w():v=C.run():i==="post"?sr(C.run.bind(C),u&&u.suspense):C.run();const O=()=>{C.stop(),u&&u.scope&&fm(u.scope.effects,C)};return b&&b.push(O),O}function i$(e,t,n){const r=this.proxy,i=mt(e)?e.includes(".")?sC(r,e):()=>r[e]:e.bind(r,r);let s;Xe(t)?s=t:(s=t.handler,n=t);const o=_n;Ta(this);const a=Om(i,s.bind(r),n);return o?Ta(o):Io(),a}function sC(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{Mo(n,t)});else if(Rx(e))for(const n in e)Mo(e[n],t);return e}function gn(e,t){const n=Mn;if(n===null)return e;const r=Pd(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),An(()=>{e.isUnmounting=!0}),e}const Fr=[Function,Array],aC={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Fr,onEnter:Fr,onAfterEnter:Fr,onEnterCancelled:Fr,onBeforeLeave:Fr,onLeave:Fr,onAfterLeave:Fr,onLeaveCancelled:Fr,onBeforeAppear:Fr,onAppear:Fr,onAfterAppear:Fr,onAppearCancelled:Fr},s$={name:"BaseTransition",props:aC,setup(e,{slots:t}){const n=kt(),r=oC();let i;return()=>{const s=t.default&&Em(t.default(),!0);if(!s||!s.length)return;let o=s[0];if(s.length>1){for(const v of s)if(v.type!==ar){o=v;break}}const a=ut(e),{mode:u}=a;if(r.isLeaving)return dp(o);const c=Ay(o);if(!c)return dp(o);const d=lu(c,a,r,n);uu(c,d);const h=n.subTree,g=h&&Ay(h);let m=!1;const{getTransitionKey:b}=c.type;if(b){const v=b();i===void 0?i=v:v!==i&&(i=v,m=!0)}if(g&&g.type!==ar&&(!xo(c,g)||m)){const v=lu(g,a,r,n);if(uu(g,v),u==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},dp(o);u==="in-out"&&c.type!==ar&&(v.delayLeave=(w,y,C)=>{const O=lC(r,g);O[String(g.key)]=g,w._leaveCb=()=>{y(),w._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=C})}return o}}},o$=s$;function lC(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function lu(e,t,n,r){const{appear:i,mode:s,persisted:o=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:g,onAfterLeave:m,onLeaveCancelled:b,onBeforeAppear:v,onAppear:w,onAfterAppear:y,onAppearCancelled:C}=t,O=String(e.key),_=lC(n,e),E=(R,$)=>{R&&Br(R,r,9,$)},T=(R,$)=>{const D=$[1];E(R,$),ze(R)?R.every(j=>j.length<=1)&&D():R.length<=1&&D()},P={mode:s,persisted:o,beforeEnter(R){let $=a;if(!n.isMounted)if(i)$=v||a;else return;R._leaveCb&&R._leaveCb(!0);const D=_[O];D&&xo(e,D)&&D.el._leaveCb&&D.el._leaveCb(),E($,[R])},enter(R){let $=u,D=c,j=d;if(!n.isMounted)if(i)$=w||u,D=y||c,j=C||d;else return;let A=!1;const U=R._enterCb=ue=>{A||(A=!0,ue?E(j,[R]):E(D,[R]),P.delayedLeave&&P.delayedLeave(),R._enterCb=void 0)};$?T($,[R,U]):U()},leave(R,$){const D=String(e.key);if(R._enterCb&&R._enterCb(!0),n.isUnmounting)return $();E(h,[R]);let j=!1;const A=R._leaveCb=U=>{j||(j=!0,$(),U?E(b,[R]):E(m,[R]),R._leaveCb=void 0,_[D]===e&&delete _[D])};_[D]=e,g?T(g,[R,A]):A()},clone(R){return lu(R,t,n,r)}};return P}function dp(e){if(Md(e))return e=Zi(e),e.children=null,e}function Ay(e){return Md(e)?e.children?e.children[0]:void 0:e}function uu(e,t){e.shapeFlag&6&&e.component?uu(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 Em(e,t=!1,n){let r=[],i=0;for(let s=0;s1)for(let s=0;smn({name:e.name},t,{setup:e}))():e}const Bl=e=>!!e.type.__asyncLoader,Md=e=>e.type.__isKeepAlive;function a$(e,t){cC(e,"a",t)}function uC(e,t){cC(e,"da",t)}function cC(e,t,n=_n){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Td(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Md(i.parent.vnode)&&l$(r,t,n,i),i=i.parent}}function l$(e,t,n,r){const i=Td(t,e,r,!0);Ya(()=>{fm(r[t],i)},n)}function Td(e,t,n=_n,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Ua(),Ta(n);const a=Br(t,n,e,o);return Io(),Ka(),a});return r?i.unshift(s):i.push(s),s}}const rs=e=>(t,n=_n)=>(!du||e==="sp")&&Td(e,(...r)=>t(...r),n),qa=rs("bm"),Lt=rs("m"),u$=rs("bu"),Xs=rs("u"),An=rs("bum"),Ya=rs("um"),c$=rs("sp"),f$=rs("rtg"),d$=rs("rtc");function h$(e,t=_n){Td("ec",e,t)}const Mm="components",p$="directives";function Yt(e,t){return Am(Mm,e,!0,t)||e}const fC=Symbol.for("v-ndc");function $n(e){return mt(e)?Am(Mm,e,!1)||e:e||fC}function Tm(e){return Am(p$,e)}function Am(e,t,n=!0,r=!1){const i=Mn||_n;if(i){const s=i.type;if(e===Mm){const a=K$(s,!1);if(a&&(a===t||a===oi(t)||a===wd(oi(t))))return s}const o=Py(i[e]||s[e],t)||Py(i.appContext[e],t);return!o&&r?s:o}}function Py(e,t){return e&&(e[t]||e[oi(t)]||e[wd(oi(t))])}function En(e,t,n,r){let i;const s=n&&n[r];if(ze(e)||mt(e)){i=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,s&&s[a]));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,u=o.length;a{const s=r.fn(...i);return s&&(s.key=r.key),s}:r.fn)}return e}function He(e,t,n={},r,i){if(Mn.isCE||Mn.parent&&Bl(Mn.parent)&&Mn.parent.isCE)return t!=="default"&&(n.name=t),H("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),K();const o=s&&hC(s(n)),a=Te(it,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function hC(e){return e.some(t=>Ma(t)?!(t.type===ar||t.type===it&&!hC(t.children)):!0)?e:null}function g$(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:yf(r)]=e[r];return n}const tg=e=>e?OC(e)?Pd(e)||e.proxy:tg(e.parent):null,zl=mn(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=>tg(e.parent),$root:e=>tg(e.root),$emit:e=>e.emit,$options:e=>Pm(e),$forceUpdate:e=>e.f||(e.f=()=>Sm(e.update)),$nextTick:e=>e.n||(e.n=bt.bind(e.proxy)),$watch:e=>i$.bind(e)}),hp=(e,t)=>e!==Jt&&!e.__isScriptSetup&&wt(e,t),m$={get({_:e},t){const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:u}=e;let c;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(hp(r,t))return o[t]=1,r[t];if(i!==Jt&&wt(i,t))return o[t]=2,i[t];if((c=e.propsOptions[0])&&wt(c,t))return o[t]=3,s[t];if(n!==Jt&&wt(n,t))return o[t]=4,n[t];ng&&(o[t]=0)}}const d=zl[t];let h,g;if(d)return t==="$attrs"&&cr(e,"get",t),d(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Jt&&wt(n,t))return o[t]=4,n[t];if(g=u.config.globalProperties,wt(g,t))return g[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return hp(i,t)?(i[t]=n,!0):r!==Jt&&wt(r,t)?(r[t]=n,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!n[o]||e!==Jt&&wt(e,o)||hp(t,o)||(a=s[0])&&wt(a,o)||wt(r,o)||wt(zl,o)||wt(i.config.globalProperties,o)},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 Ko(){return pC().slots}function v$(){return pC().attrs}function pC(){const e=kt();return e.setupContext||(e.setupContext=MC(e))}function Ry(e){return ze(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ng=!0;function b$(e){const t=Pm(e),n=e.proxy,r=e.ctx;ng=!1,t.beforeCreate&&ky(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:a,provide:u,inject:c,created:d,beforeMount:h,mounted:g,beforeUpdate:m,updated:b,activated:v,deactivated:w,beforeDestroy:y,beforeUnmount:C,destroyed:O,unmounted:_,render:E,renderTracked:T,renderTriggered:P,errorCaptured:R,serverPrefetch:$,expose:D,inheritAttrs:j,components:A,directives:U,filters:ue}=t;if(c&&y$(c,r,null),o)for(const Q in o){const ie=o[Q];Xe(ie)&&(r[Q]=ie.bind(n))}if(i){const Q=i.call(n,n);yt(Q)&&(e.data=vn(Q))}if(ng=!0,s)for(const Q in s){const ie=s[Q],ee=Xe(ie)?ie.bind(n,n):Xe(ie.get)?ie.get.bind(n,n):Cn,_e=!Xe(ie)&&Xe(ie.set)?ie.set.bind(n):Cn,Ee=z({get:ee,set:_e});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>Ee.value,set:Z=>Ee.value=Z})}if(a)for(const Q in a)gC(a[Q],r,n,Q);if(u){const Q=Xe(u)?u.call(n):u;Reflect.ownKeys(Q).forEach(ie=>{sn(ie,Q[ie])})}d&&ky(d,e,"c");function ne(Q,ie){ze(ie)?ie.forEach(ee=>Q(ee.bind(n))):ie&&Q(ie.bind(n))}if(ne(qa,h),ne(Lt,g),ne(u$,m),ne(Xs,b),ne(a$,v),ne(uC,w),ne(h$,R),ne(d$,T),ne(f$,P),ne(An,C),ne(Ya,_),ne(c$,$),ze(D))if(D.length){const Q=e.exposed||(e.exposed={});D.forEach(ie=>{Object.defineProperty(Q,ie,{get:()=>n[ie],set:ee=>n[ie]=ee})})}else e.exposed||(e.exposed={});E&&e.render===Cn&&(e.render=E),j!=null&&(e.inheritAttrs=j),A&&(e.components=A),U&&(e.directives=U)}function y$(e,t,n=Cn){ze(e)&&(e=rg(e));for(const r in e){const i=e[r];let s;yt(i)?"default"in i?s=Ke(i.from||r,i.default,!0):s=Ke(i.from||r):s=Ke(i),Nt(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function ky(e,t,n){Br(ze(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function gC(e,t,n,r){const i=r.includes(".")?sC(n,r):()=>n[r];if(mt(e)){const s=t[e];Xe(s)&&Ie(i,s)}else if(Xe(e))Ie(i,e.bind(n));else if(yt(e))if(ze(e))e.forEach(s=>gC(s,t,n,r));else{const s=Xe(e.handler)?e.handler.bind(n):t[e.handler];Xe(s)&&Ie(i,s,e)}}function Pm(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let u;return a?u=a:!i.length&&!n&&!r?u=t:(u={},i.length&&i.forEach(c=>Yf(u,c,o,!0)),Yf(u,t,o)),yt(t)&&s.set(t,u),u}function Yf(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&Yf(e,s,n,!0),i&&i.forEach(o=>Yf(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=_$[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const _$={data:Ly,props:Iy,emits:Iy,methods:Pl,computed:Pl,beforeCreate:Xn,created:Xn,beforeMount:Xn,mounted:Xn,beforeUpdate:Xn,updated:Xn,beforeDestroy:Xn,beforeUnmount:Xn,destroyed:Xn,unmounted:Xn,activated:Xn,deactivated:Xn,errorCaptured:Xn,serverPrefetch:Xn,components:Pl,directives:Pl,watch:x$,provide:Ly,inject:w$};function Ly(e,t){return t?e?function(){return mn(Xe(e)?e.call(this,this):e,Xe(t)?t.call(this,this):t)}:t:e}function w$(e,t){return Pl(rg(e),rg(t))}function rg(e){if(ze(e)){const t={};for(let n=0;n1)return n&&Xe(t)?t.call(r&&r.proxy):t}}function O$(){return!!(_n||Mn||cu)}function E$(e,t,n,r=!1){const i={},s={};Vf(s,Ad,1),e.propsDefaults=Object.create(null),vC(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:BI(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function M$(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,a=ut(i),[u]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let h=0;h{u=!0;const[g,m]=bC(h,t,!0);mn(o,g),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!u)return yt(e)&&r.set(e,wa),wa;if(ze(s))for(let d=0;d-1,m[1]=v<0||b-1||wt(m,"default"))&&a.push(h)}}}const c=[o,a];return yt(e)&&r.set(e,c),c}function $y(e){return e[0]!=="$"}function Fy(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Dy(e,t){return Fy(e)===Fy(t)}function Ny(e,t){return ze(t)?t.findIndex(n=>Dy(n,e)):Xe(t)&&Dy(t,e)?0:-1}const yC=e=>e[0]==="_"||e==="$stable",Rm=e=>ze(e)?e.map(vi):[vi(e)],T$=(e,t,n)=>{if(t._n)return t;const r=B((...i)=>Rm(t(...i)),n);return r._c=!1,r},_C=(e,t,n)=>{const r=e._ctx;for(const i in e){if(yC(i))continue;const s=e[i];if(Xe(s))t[i]=T$(i,s,r);else if(s!=null){const o=Rm(s);t[i]=()=>o}}},wC=(e,t)=>{const n=Rm(t);e.slots.default=()=>n},A$=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ut(t),Vf(t,"_",n)):_C(t,e.slots={})}else e.slots={},t&&wC(e,t);Vf(e.slots,Ad,1)},P$=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,o=Jt;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(mn(i,t),!n&&a===1&&delete i._):(s=!t.$stable,_C(t,i)),o=t}else t&&(wC(e,t),o={default:1});if(s)for(const a in i)!yC(a)&&!(a in o)&&delete i[a]};function sg(e,t,n,r,i=!1){if(ze(e)){e.forEach((g,m)=>sg(g,t&&(ze(t)?t[m]:t),n,r,i));return}if(Bl(r)&&!i)return;const s=r.shapeFlag&4?Pd(r.component)||r.component.proxy:r.el,o=i?null:s,{i:a,r:u}=e,c=t&&t.r,d=a.refs===Jt?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==u&&(mt(c)?(d[c]=null,wt(h,c)&&(h[c]=null)):Nt(c)&&(c.value=null)),Xe(u))Ds(u,a,12,[o,d]);else{const g=mt(u),m=Nt(u);if(g||m){const b=()=>{if(e.f){const v=g?wt(h,u)?h[u]:d[u]:u.value;i?ze(v)&&fm(v,s):ze(v)?v.includes(s)||v.push(s):g?(d[u]=[s],wt(h,u)&&(h[u]=d[u])):(u.value=[s],e.k&&(d[e.k]=u.value))}else g?(d[u]=o,wt(h,u)&&(h[u]=o)):m&&(u.value=o,e.k&&(d[e.k]=o))};o?(b.id=-1,sr(b,n)):b()}}}const sr=r$;function R$(e){return k$(e)}function k$(e,t){const n=Xp();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:u,setText:c,setElementText:d,parentNode:h,nextSibling:g,setScopeId:m=Cn,insertStaticContent:b}=e,v=(F,W,q,se=null,pe=null,me=null,Ae=!1,Se=null,Ce=!!W.dynamicChildren)=>{if(F===W)return;F&&!xo(F,W)&&(se=Y(F),Z(F,pe,me,!0),F=null),W.patchFlag===-2&&(Ce=!1,W.dynamicChildren=null);const{type:ge,ref:Ne,shapeFlag:Pe}=W;switch(ge){case Ga:w(F,W,q,se);break;case ar:y(F,W,q,se);break;case pp:F==null&&C(W,q,se,Ae);break;case it:A(F,W,q,se,pe,me,Ae,Se,Ce);break;default:Pe&1?E(F,W,q,se,pe,me,Ae,Se,Ce):Pe&6?U(F,W,q,se,pe,me,Ae,Se,Ce):(Pe&64||Pe&128)&&ge.process(F,W,q,se,pe,me,Ae,Se,Ce,de)}Ne!=null&&pe&&sg(Ne,F&&F.ref,me,W||F,!W)},w=(F,W,q,se)=>{if(F==null)r(W.el=a(W.children),q,se);else{const pe=W.el=F.el;W.children!==F.children&&c(pe,W.children)}},y=(F,W,q,se)=>{F==null?r(W.el=u(W.children||""),q,se):W.el=F.el},C=(F,W,q,se)=>{[F.el,F.anchor]=b(F.children,W,q,se,F.el,F.anchor)},O=({el:F,anchor:W},q,se)=>{let pe;for(;F&&F!==W;)pe=g(F),r(F,q,se),F=pe;r(W,q,se)},_=({el:F,anchor:W})=>{let q;for(;F&&F!==W;)q=g(F),i(F),F=q;i(W)},E=(F,W,q,se,pe,me,Ae,Se,Ce)=>{Ae=Ae||W.type==="svg",F==null?T(W,q,se,pe,me,Ae,Se,Ce):$(F,W,pe,me,Ae,Se,Ce)},T=(F,W,q,se,pe,me,Ae,Se)=>{let Ce,ge;const{type:Ne,props:Pe,shapeFlag:re,transition:Me,dirs:Ve}=F;if(Ce=F.el=o(F.type,me,Pe&&Pe.is,Pe),re&8?d(Ce,F.children):re&16&&R(F.children,Ce,null,se,pe,me&&Ne!=="foreignObject",Ae,Se),Ve&&lo(F,null,se,"created"),P(Ce,F,F.scopeId,Ae,se),Pe){for(const ot in Pe)ot!=="value"&&!bf(ot)&&s(Ce,ot,null,Pe[ot],me,F.children,se,pe,Je);"value"in Pe&&s(Ce,"value",null,Pe.value),(ge=Pe.onVnodeBeforeMount)&&pi(ge,se,F)}Ve&&lo(F,null,se,"beforeMount");const at=(!pe||pe&&!pe.pendingBranch)&&Me&&!Me.persisted;at&&Me.beforeEnter(Ce),r(Ce,W,q),((ge=Pe&&Pe.onVnodeMounted)||at||Ve)&&sr(()=>{ge&&pi(ge,se,F),at&&Me.enter(Ce),Ve&&lo(F,null,se,"mounted")},pe)},P=(F,W,q,se,pe)=>{if(q&&m(F,q),se)for(let me=0;me{for(let ge=Ce;ge{const Se=W.el=F.el;let{patchFlag:Ce,dynamicChildren:ge,dirs:Ne}=W;Ce|=F.patchFlag&16;const Pe=F.props||Jt,re=W.props||Jt;let Me;q&&uo(q,!1),(Me=re.onVnodeBeforeUpdate)&&pi(Me,q,W,F),Ne&&lo(W,F,q,"beforeUpdate"),q&&uo(q,!0);const Ve=pe&&W.type!=="foreignObject";if(ge?D(F.dynamicChildren,ge,Se,q,se,Ve,me):Ae||ie(F,W,Se,null,q,se,Ve,me,!1),Ce>0){if(Ce&16)j(Se,W,Pe,re,q,se,pe);else if(Ce&2&&Pe.class!==re.class&&s(Se,"class",null,re.class,pe),Ce&4&&s(Se,"style",Pe.style,re.style,pe),Ce&8){const at=W.dynamicProps;for(let ot=0;ot{Me&&pi(Me,q,W,F),Ne&&lo(W,F,q,"updated")},se)},D=(F,W,q,se,pe,me,Ae)=>{for(let Se=0;Se{if(q!==se){if(q!==Jt)for(const Se in q)!bf(Se)&&!(Se in se)&&s(F,Se,q[Se],null,Ae,W.children,pe,me,Je);for(const Se in se){if(bf(Se))continue;const Ce=se[Se],ge=q[Se];Ce!==ge&&Se!=="value"&&s(F,Se,ge,Ce,Ae,W.children,pe,me,Je)}"value"in se&&s(F,"value",q.value,se.value)}},A=(F,W,q,se,pe,me,Ae,Se,Ce)=>{const ge=W.el=F?F.el:a(""),Ne=W.anchor=F?F.anchor:a("");let{patchFlag:Pe,dynamicChildren:re,slotScopeIds:Me}=W;Me&&(Se=Se?Se.concat(Me):Me),F==null?(r(ge,q,se),r(Ne,q,se),R(W.children,q,Ne,pe,me,Ae,Se,Ce)):Pe>0&&Pe&64&&re&&F.dynamicChildren?(D(F.dynamicChildren,re,q,pe,me,Ae,Se),(W.key!=null||pe&&W===pe.subTree)&&km(F,W,!0)):ie(F,W,q,Ne,pe,me,Ae,Se,Ce)},U=(F,W,q,se,pe,me,Ae,Se,Ce)=>{W.slotScopeIds=Se,F==null?W.shapeFlag&512?pe.ctx.activate(W,q,se,Ae,Ce):ue(W,q,se,pe,me,Ae,Ce):ce(F,W,Ce)},ue=(F,W,q,se,pe,me,Ae)=>{const Se=F.component=W$(F,se,pe);if(Md(F)&&(Se.ctx.renderer=de),j$(Se),Se.asyncDep){if(pe&&pe.registerDep(Se,ne),!F.el){const Ce=Se.subTree=H(ar);y(null,Ce,W,q)}return}ne(Se,F,W,q,pe,me,Ae)},ce=(F,W,q)=>{const se=W.component=F.component;if(e$(F,W,q))if(se.asyncDep&&!se.asyncResolved){Q(se,W,q);return}else se.next=W,YI(se.update),se.update();else W.el=F.el,se.vnode=W},ne=(F,W,q,se,pe,me,Ae)=>{const Se=()=>{if(F.isMounted){let{next:Ne,bu:Pe,u:re,parent:Me,vnode:Ve}=F,at=Ne,ot;uo(F,!1),Ne?(Ne.el=Ve.el,Q(F,Ne,Ae)):Ne=Ve,Pe&&_f(Pe),(ot=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&pi(ot,Me,Ne,Ve),uo(F,!0);const Bt=fp(F),Le=F.subTree;F.subTree=Bt,v(Le,Bt,h(Le.el),Y(Le),F,pe,me),Ne.el=Bt.el,at===null&&t$(F,Bt.el),re&&sr(re,pe),(ot=Ne.props&&Ne.props.onVnodeUpdated)&&sr(()=>pi(ot,Me,Ne,Ve),pe)}else{let Ne;const{el:Pe,props:re}=W,{bm:Me,m:Ve,parent:at}=F,ot=Bl(W);if(uo(F,!1),Me&&_f(Me),!ot&&(Ne=re&&re.onVnodeBeforeMount)&&pi(Ne,at,W),uo(F,!0),Pe&&We){const Bt=()=>{F.subTree=fp(F),We(Pe,F.subTree,F,pe,null)};ot?W.type.__asyncLoader().then(()=>!F.isUnmounted&&Bt()):Bt()}else{const Bt=F.subTree=fp(F);v(null,Bt,q,se,F,pe,me),W.el=Bt.el}if(Ve&&sr(Ve,pe),!ot&&(Ne=re&&re.onVnodeMounted)){const Bt=W;sr(()=>pi(Ne,at,Bt),pe)}(W.shapeFlag&256||at&&Bl(at.vnode)&&at.vnode.shapeFlag&256)&&F.a&&sr(F.a,pe),F.isMounted=!0,W=q=se=null}},Ce=F.effect=new mm(Se,()=>Sm(ge),F.scope),ge=F.update=()=>Ce.run();ge.id=F.uid,uo(F,!0),ge()},Q=(F,W,q)=>{W.component=F;const se=F.vnode.props;F.vnode=W,F.next=null,M$(F,W.props,se,q),P$(F,W.children,q),Ua(),My(),Ka()},ie=(F,W,q,se,pe,me,Ae,Se,Ce=!1)=>{const ge=F&&F.children,Ne=F?F.shapeFlag:0,Pe=W.children,{patchFlag:re,shapeFlag:Me}=W;if(re>0){if(re&128){_e(ge,Pe,q,se,pe,me,Ae,Se,Ce);return}else if(re&256){ee(ge,Pe,q,se,pe,me,Ae,Se,Ce);return}}Me&8?(Ne&16&&Je(ge,pe,me),Pe!==ge&&d(q,Pe)):Ne&16?Me&16?_e(ge,Pe,q,se,pe,me,Ae,Se,Ce):Je(ge,pe,me,!0):(Ne&8&&d(q,""),Me&16&&R(Pe,q,se,pe,me,Ae,Se,Ce))},ee=(F,W,q,se,pe,me,Ae,Se,Ce)=>{F=F||wa,W=W||wa;const ge=F.length,Ne=W.length,Pe=Math.min(ge,Ne);let re;for(re=0;reNe?Je(F,pe,me,!0,!1,Pe):R(W,q,se,pe,me,Ae,Se,Ce,Pe)},_e=(F,W,q,se,pe,me,Ae,Se,Ce)=>{let ge=0;const Ne=W.length;let Pe=F.length-1,re=Ne-1;for(;ge<=Pe&&ge<=re;){const Me=F[ge],Ve=W[ge]=Ce?Os(W[ge]):vi(W[ge]);if(xo(Me,Ve))v(Me,Ve,q,null,pe,me,Ae,Se,Ce);else break;ge++}for(;ge<=Pe&&ge<=re;){const Me=F[Pe],Ve=W[re]=Ce?Os(W[re]):vi(W[re]);if(xo(Me,Ve))v(Me,Ve,q,null,pe,me,Ae,Se,Ce);else break;Pe--,re--}if(ge>Pe){if(ge<=re){const Me=re+1,Ve=Mere)for(;ge<=Pe;)Z(F[ge],pe,me,!0),ge++;else{const Me=ge,Ve=ge,at=new Map;for(ge=Ve;ge<=re;ge++){const St=W[ge]=Ce?Os(W[ge]):vi(W[ge]);St.key!=null&&at.set(St.key,ge)}let ot,Bt=0;const Le=re-Ve+1;let Ue=!1,ct=0;const et=new Array(Le);for(ge=0;ge=Le){Z(St,pe,me,!0);continue}let Ft;if(St.key!=null)Ft=at.get(St.key);else for(ot=Ve;ot<=re;ot++)if(et[ot-Ve]===0&&xo(St,W[ot])){Ft=ot;break}Ft===void 0?Z(St,pe,me,!0):(et[Ft-Ve]=ge+1,Ft>=ct?ct=Ft:Ue=!0,v(St,W[Ft],q,null,pe,me,Ae,Se,Ce),Bt++)}const xt=Ue?L$(et):wa;for(ot=xt.length-1,ge=Le-1;ge>=0;ge--){const St=Ve+ge,Ft=W[St],te=St+1{const{el:me,type:Ae,transition:Se,children:Ce,shapeFlag:ge}=F;if(ge&6){Ee(F.component.subTree,W,q,se);return}if(ge&128){F.suspense.move(W,q,se);return}if(ge&64){Ae.move(F,W,q,de);return}if(Ae===it){r(me,W,q);for(let Pe=0;PeSe.enter(me),pe);else{const{leave:Pe,delayLeave:re,afterLeave:Me}=Se,Ve=()=>r(me,W,q),at=()=>{Pe(me,()=>{Ve(),Me&&Me()})};re?re(me,Ve,at):at()}else r(me,W,q)},Z=(F,W,q,se=!1,pe=!1)=>{const{type:me,props:Ae,ref:Se,children:Ce,dynamicChildren:ge,shapeFlag:Ne,patchFlag:Pe,dirs:re}=F;if(Se!=null&&sg(Se,null,q,F,!0),Ne&256){W.ctx.deactivate(F);return}const Me=Ne&1&&re,Ve=!Bl(F);let at;if(Ve&&(at=Ae&&Ae.onVnodeBeforeUnmount)&&pi(at,W,F),Ne&6)Ze(F.component,q,se);else{if(Ne&128){F.suspense.unmount(q,se);return}Me&&lo(F,null,W,"beforeUnmount"),Ne&64?F.type.remove(F,W,q,pe,de,se):ge&&(me!==it||Pe>0&&Pe&64)?Je(ge,W,q,!1,!0):(me===it&&Pe&384||!pe&&Ne&16)&&Je(Ce,W,q),se&&Ge(F)}(Ve&&(at=Ae&&Ae.onVnodeUnmounted)||Me)&&sr(()=>{at&&pi(at,W,F),Me&&lo(F,null,W,"unmounted")},q)},Ge=F=>{const{type:W,el:q,anchor:se,transition:pe}=F;if(W===it){De(q,se);return}if(W===pp){_(F);return}const me=()=>{i(q),pe&&!pe.persisted&&pe.afterLeave&&pe.afterLeave()};if(F.shapeFlag&1&&pe&&!pe.persisted){const{leave:Ae,delayLeave:Se}=pe,Ce=()=>Ae(q,me);Se?Se(F.el,me,Ce):Ce()}else me()},De=(F,W)=>{let q;for(;F!==W;)q=g(F),i(F),F=q;i(W)},Ze=(F,W,q)=>{const{bum:se,scope:pe,update:me,subTree:Ae,um:Se}=F;se&&_f(se),pe.stop(),me&&(me.active=!1,Z(Ae,F,W,q)),Se&&sr(Se,W),sr(()=>{F.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&F.asyncDep&&!F.asyncResolved&&F.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},Je=(F,W,q,se=!1,pe=!1,me=0)=>{for(let Ae=me;AeF.shapeFlag&6?Y(F.component.subTree):F.shapeFlag&128?F.suspense.next():g(F.anchor||F.el),oe=(F,W,q)=>{F==null?W._vnode&&Z(W._vnode,null,null,!0):v(W._vnode||null,F,W,null,null,null,q),My(),tC(),W._vnode=F},de={p:v,um:Z,m:Ee,r:Ge,mt:ue,mc:R,pc:ie,pbc:D,n:Y,o:e};let Oe,We;return t&&([Oe,We]=t(de)),{render:oe,hydrate:Oe,createApp:S$(oe,Oe)}}function uo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function km(e,t,n=!1){const r=e.children,i=t.children;if(ze(r)&&ze(i))for(let s=0;s>1,e[n[a]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}const I$=e=>e.__isTeleport,Hl=e=>e&&(e.disabled||e.disabled===""),By=e=>typeof SVGElement<"u"&&e instanceof SVGElement,og=(e,t)=>{const n=e&&e.to;return mt(n)?t?t(n):null:n},$$={__isTeleport:!0,process(e,t,n,r,i,s,o,a,u,c){const{mc:d,pc:h,pbc:g,o:{insert:m,querySelector:b,createText:v,createComment:w}}=c,y=Hl(t.props);let{shapeFlag:C,children:O,dynamicChildren:_}=t;if(e==null){const E=t.el=v(""),T=t.anchor=v("");m(E,n,r),m(T,n,r);const P=t.target=og(t.props,b),R=t.targetAnchor=v("");P&&(m(R,P),o=o||By(P));const $=(D,j)=>{C&16&&d(O,D,j,i,s,o,a,u)};y?$(n,T):P&&$(P,R)}else{t.el=e.el;const E=t.anchor=e.anchor,T=t.target=e.target,P=t.targetAnchor=e.targetAnchor,R=Hl(e.props),$=R?n:T,D=R?E:P;if(o=o||By(T),_?(g(e.dynamicChildren,_,$,i,s,o,a),km(e,t,!0)):u||h(e,t,$,D,i,s,o,a,!1),y)R||jc(t,n,E,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=og(t.props,b);j&&jc(t,j,null,c,0)}else R&&jc(t,T,P,c,1)}xC(t)},remove(e,t,n,r,{um:i,o:{remove:s}},o){const{shapeFlag:a,children:u,anchor:c,targetAnchor:d,target:h,props:g}=e;if(h&&s(d),(o||!Hl(g))&&(s(c),a&16))for(let m=0;m0?ti||wa:null,D$(),fu>0&&ti&&ti.push(e),e}function ve(e,t,n,r,i,s){return CC(I(e,t,n,r,i,s,!0))}function Te(e,t,n,r,i){return CC(H(e,t,n,r,i,!0))}function Ma(e){return e?e.__v_isVNode===!0:!1}function xo(e,t){return e.type===t.type&&e.key===t.key}const Ad="__vInternal",SC=({key:e})=>e??null,wf=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?mt(e)||Nt(e)||Xe(e)?{i:Mn,r:e,k:t,f:!!n}:e:null);function I(e,t=null,n=null,r=0,i=null,s=e===it?0:1,o=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&SC(t),ref:t&&wf(t),scopeId:iC,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Mn};return a?(Im(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=mt(n)?8:16),fu>0&&!o&&ti&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&ti.push(u),u}const H=N$;function N$(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===fC)&&(e=ar),Ma(e)){const a=Zi(e,t,!0);return n&&Im(a,n),fu>0&&!s&&ti&&(a.shapeFlag&6?ti[ti.indexOf(e)]=a:ti.push(a)),a.patchFlag|=-2,a}if(q$(e)&&(e=e.__vccOpts),t){t=B$(t);let{class:a,style:u}=t;a&&!mt(a)&&(t.class=he(a)),yt(u)&&(qx(u)&&!ze(u)&&(u=mn({},u)),t.style=jt(u))}const o=mt(e)?1:n$(e)?128:I$(e)?64:yt(e)?4:Xe(e)?2:0;return I(e,t,n,r,i,o,s,!0)}function B$(e){return e?qx(e)||Ad in e?mn({},e):e:null}function Zi(e,t,n=!1){const{props:r,ref:i,patchFlag:s,children:o}=e,a=t?Mr(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&SC(a),ref:t&&t.ref?n&&i?ze(i)?i.concat(wf(t)):[i,wf(t)]:wf(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==it?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zi(e.ssContent),ssFallback:e.ssFallback&&Zi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function le(e=" ",t=0){return H(Ga,null,e,t)}function ke(e="",t=!1){return t?(K(),Te(ar,null,e)):H(ar,null,e)}function vi(e){return e==null||typeof e=="boolean"?H(ar):ze(e)?H(it,null,e.slice()):typeof e=="object"?Os(e):H(Ga,null,String(e))}function Os(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zi(e)}function Im(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ze(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Im(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Ad in t)?t._ctx=Mn:i===3&&Mn&&(Mn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Xe(t)?(t={default:t,_ctx:Mn},n=32):(t=String(t),r&64?(n=16,t=[le(t)]):n=8);e.children=t,e.shapeFlag|=n}function Mr(...e){const t={};for(let n=0;n_n||Mn;let $m,da,Hy="__VUE_INSTANCE_SETTERS__";(da=Xp()[Hy])||(da=Xp()[Hy]=[]),da.push(e=>_n=e),$m=e=>{da.length>1?da.forEach(t=>t(e)):da[0](e)};const Ta=e=>{$m(e),e.scope.on()},Io=()=>{_n&&_n.scope.off(),$m(null)};function OC(e){return e.vnode.shapeFlag&4}let du=!1;function j$(e,t=!1){du=t;const{props:n,children:r}=e.vnode,i=OC(e);E$(e,n,i,t),A$(e,r);const s=i?V$(e,t):void 0;return du=!1,s}function V$(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Sd(new Proxy(e.ctx,m$));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?MC(e):null;Ta(e),Ua();const s=Ds(r,e,0,[e.props,i]);if(Ka(),Io(),Ax(s)){if(s.then(Io,Io),t)return s.then(o=>{Wy(e,o,t)}).catch(o=>{Od(o,e,0)});e.asyncDep=s}else Wy(e,s,t)}else EC(e,t)}function Wy(e,t,n){Xe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:yt(t)&&(e.setupState=Xx(t)),EC(e,n)}let jy;function EC(e,t,n){const r=e.type;if(!e.render){if(!t&&jy&&!r.render){const i=r.template||Pm(e).template;if(i){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:u}=r,c=mn(mn({isCustomElement:s,delimiters:a},o),u);r.render=jy(i,c)}}e.render=r.render||Cn}Ta(e),Ua(),b$(e),Ka(),Io()}function U$(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return cr(e,"get","$attrs"),t[n]}}))}function MC(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return U$(e)},slots:e.slots,emit:e.emit,expose:t}}function Pd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Xx(Sd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in zl)return zl[n](e)},has(t,n){return n in t||n in zl}}))}function K$(e,t=!0){return Xe(e)?e.displayName||e.name:e.name||t&&e.__name}function q$(e){return Xe(e)&&"__vccOpts"in e}const z=(e,t)=>Zx(e,t,du);function qe(e,t,n){const r=arguments.length;return r===2?yt(t)&&!ze(t)?Ma(t)?H(e,null,[t]):H(e,t):H(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ma(n)&&(n=[n]),H(e,t,n))}const Y$=Symbol.for("v-scx"),G$=()=>Ke(Y$),X$="3.3.4",J$="http://www.w3.org/2000/svg",Co=typeof document<"u"?document:null,Vy=Co&&Co.createElement("template"),Z$={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?Co.createElementNS(J$,e):Co.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Co.createTextNode(e),createComment:e=>Co.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Co.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const o=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{Vy.innerHTML=r?`${e}`:e;const a=Vy.content;if(r){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Q$(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function eF(e,t,n){const r=e.style,i=mt(n);if(n&&!i){if(t&&!mt(t))for(const s in t)n[s]==null&&ag(r,s,"");for(const s in n)ag(r,s,n[s])}else{const s=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}const Uy=/\s*!important$/;function ag(e,t,n){if(ze(n))n.forEach(r=>ag(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=tF(e,t);Uy.test(n)?e.setProperty(Uo(r),n.replace(Uy,""),"important"):e[r]=n}}const Ky=["Webkit","Moz","ms"],gp={};function tF(e,t){const n=gp[t];if(n)return n;let r=oi(t);if(r!=="filter"&&r in e)return gp[t]=r;r=wd(r);for(let i=0;imp||(aF.then(()=>mp=0),mp=Date.now());function uF(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Br(cF(r,n.value),t,5,[r])};return n.value=e,n.attached=lF(),n}function cF(e,t){if(ze(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Gy=/^on[a-z]/,fF=(e,t,n,r,i=!1,s,o,a,u)=>{t==="class"?Q$(e,r,i):t==="style"?eF(e,n,r):bd(t)?cm(t)||sF(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):dF(e,t,r,i))?rF(e,t,r,s,o,a,u):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),nF(e,t,r,i))};function dF(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Gy.test(t)&&Xe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Gy.test(t)&&mt(n)?!1:t in e}const bs="transition",yl="animation",Hr=(e,{slots:t})=>qe(o$,AC(e),t);Hr.displayName="Transition";const TC={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},hF=Hr.props=mn({},aC,TC),co=(e,t=[])=>{ze(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xy=e=>e?ze(e)?e.some(t=>t.length>1):e.length>1:!1;function AC(e){const t={};for(const A in e)A in TC||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:u=s,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,b=pF(i),v=b&&b[0],w=b&&b[1],{onBeforeEnter:y,onEnter:C,onEnterCancelled:O,onLeave:_,onLeaveCancelled:E,onBeforeAppear:T=y,onAppear:P=C,onAppearCancelled:R=O}=t,$=(A,U,ue)=>{ws(A,U?d:a),ws(A,U?c:o),ue&&ue()},D=(A,U)=>{A._isLeaving=!1,ws(A,h),ws(A,m),ws(A,g),U&&U()},j=A=>(U,ue)=>{const ce=A?P:C,ne=()=>$(U,A,ue);co(ce,[U,ne]),Jy(()=>{ws(U,A?u:s),Hi(U,A?d:a),Xy(ce)||Zy(U,r,v,ne)})};return mn(t,{onBeforeEnter(A){co(y,[A]),Hi(A,s),Hi(A,o)},onBeforeAppear(A){co(T,[A]),Hi(A,u),Hi(A,c)},onEnter:j(!1),onAppear:j(!0),onLeave(A,U){A._isLeaving=!0;const ue=()=>D(A,U);Hi(A,h),RC(),Hi(A,g),Jy(()=>{A._isLeaving&&(ws(A,h),Hi(A,m),Xy(_)||Zy(A,r,w,ue))}),co(_,[A,ue])},onEnterCancelled(A){$(A,!1),co(O,[A])},onAppearCancelled(A){$(A,!0),co(R,[A])},onLeaveCancelled(A){D(A),co(E,[A])}})}function pF(e){if(e==null)return null;if(yt(e))return[vp(e.enter),vp(e.leave)];{const t=vp(e);return[t,t]}}function vp(e){return rI(e)}function Hi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ws(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Jy(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gF=0;function Zy(e,t,n,r){const i=e._endId=++gF,s=()=>{i===e._endId&&r()};if(n)return setTimeout(s,n);const{type:o,timeout:a,propCount:u}=PC(e,t);if(!o)return r();const c=o+"end";let d=0;const h=()=>{e.removeEventListener(c,g),s()},g=m=>{m.target===e&&++d>=u&&h()};setTimeout(()=>{d(n[b]||"").split(", "),i=r(`${bs}Delay`),s=r(`${bs}Duration`),o=Qy(i,s),a=r(`${yl}Delay`),u=r(`${yl}Duration`),c=Qy(a,u);let d=null,h=0,g=0;t===bs?o>0&&(d=bs,h=o,g=s.length):t===yl?c>0&&(d=yl,h=c,g=u.length):(h=Math.max(o,c),d=h>0?o>c?bs:yl:null,g=d?d===bs?s.length:u.length:0);const m=d===bs&&/\b(transform|all)(,|$)/.test(r(`${bs}Property`).toString());return{type:d,timeout:h,propCount:g,hasTransform:m}}function Qy(e,t){for(;e.lengthe_(n)+e_(e[r])))}function e_(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function RC(){return document.body.offsetHeight}const kC=new WeakMap,LC=new WeakMap,IC={name:"TransitionGroup",props:mn({},hF,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=kt(),r=oC();let i,s;return Xs(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!wF(i[0].el,n.vnode.el,o))return;i.forEach(bF),i.forEach(yF);const a=i.filter(_F);RC(),a.forEach(u=>{const c=u.el,d=c.style;Hi(c,o),d.transform=d.webkitTransform=d.transitionDuration="";const h=c._moveCb=g=>{g&&g.target!==c||(!g||/transform$/.test(g.propertyName))&&(c.removeEventListener("transitionend",h),c._moveCb=null,ws(c,o))};c.addEventListener("transitionend",h)})}),()=>{const o=ut(e),a=AC(o);let u=o.tag||it;i=s,s=t.default?Em(t.default()):[];for(let c=0;cdelete e.mode;IC.props;const vF=IC;function bF(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function yF(e){LC.set(e,e.el.getBoundingClientRect())}function _F(e){const t=kC.get(e),n=LC.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${i}px)`,s.transitionDuration="0s",e}}function wF(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:s}=PC(r);return i.removeChild(r),s}const Gf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ze(t)?n=>_f(t,n):t};function xF(e){e.target.composing=!0}function t_(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const CF={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=Gf(i);const s=r||i.props&&i.props.type==="number";So(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=Gp(a)),e._assign(a)}),n&&So(e,"change",()=>{e.value=e.value.trim()}),t||(So(e,"compositionstart",xF),So(e,"compositionend",t_),So(e,"change",t_))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},s){if(e._assign=Gf(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&Gp(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},Xf={deep:!0,created(e,t,n){e._assign=Gf(n),So(e,"change",()=>{const r=e._modelValue,i=SF(e),s=e.checked,o=e._assign;if(ze(r)){const a=Lx(r,i),u=a!==-1;if(s&&!u)o(r.concat(i));else if(!s&&u){const c=[...r];c.splice(a,1),o(c)}}else if(yd(r)){const a=new Set(r);s?a.add(i):a.delete(i),o(a)}else o($C(e,s))})},mounted:n_,beforeUpdate(e,t,n){e._assign=Gf(n),n_(e,t,n)}};function n_(e,{value:t,oldValue:n},r){e._modelValue=t,ze(t)?e.checked=Lx(t,r.props.value)>-1:yd(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=xd(t,$C(e,!0)))}function SF(e){return"_value"in e?e._value:e.value}function $C(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const OF=["ctrl","shift","alt","meta"],EF={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)=>OF.some(n=>e[`${n}Key`]&&!t.includes(n))},Cr=(e,t)=>(n,...r)=>{for(let i=0;in=>{if(!("key"in n))return;const r=Uo(n.key);if(t.some(i=>i===r||MF[i]===r))return e(n)},Wr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_l(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),_l(e,!0),r.enter(e)):r.leave(e,()=>{_l(e,!1)}):_l(e,t))},beforeUnmount(e,{value:t}){_l(e,t)}};function _l(e,t){e.style.display=t?e._vod:"none"}const TF=mn({patchProp:fF},Z$);let r_;function AF(){return r_||(r_=R$(TF))}const PF=(...e)=>{const t=AF().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=RF(r);if(!i)return;const s=t._component;!Xe(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function RF(e){return mt(e)?document.querySelector(e):e}const xf=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const i=document.createEvent(r);return i.initEvent(t,...n),e.dispatchEvent(i),e},Ki=(e,t,{checkForDefaultPrevented:n=!0}={})=>i=>{const s=e==null?void 0:e(i);if(n===!1||!s)return t==null?void 0:t(i)};var i_;const tn=typeof window<"u",kF=e=>typeof e=="function",LF=e=>typeof e=="string",Jf=()=>{},FC=tn&&((i_=window==null?void 0:window.navigator)==null?void 0:i_.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ws(e){return typeof e=="function"?e():S(e)}function DC(e,t){function n(...r){return new Promise((i,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(s)})}return n}const NC=e=>e();function IF(e,t={}){let n,r,i=Jf;const s=a=>{clearTimeout(a),i(),i=Jf};return a=>{const u=Ws(e),c=Ws(t.maxWait);return n&&s(n),u<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((d,h)=>{i=t.rejectOnCancel?h:d,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,d(a())},c)),n=setTimeout(()=>{r&&s(r),r=null,d(a())},u)})}}function $F(e=NC){const t=X(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...s)=>{t.value&&e(...s)};return{isActive:Iu(t),pause:n,resume:r,eventFilter:i}}function FF(e){return e}function $u(e){return hm()?(pm(e),!0):!1}function DF(e,t=200,n={}){return DC(IF(t,n),e)}function NF(e,t=200,n={}){const r=X(e.value),i=DF(()=>{r.value=e.value},t,n);return Ie(e,()=>i()),r}function BF(e){return typeof e=="function"?z(e):X(e)}function BC(e,t=!0){kt()?Lt(e):t?e():bt(e)}function Zf(e,t,n={}){const{immediate:r=!0}=n,i=X(!1);let s=null;function o(){s&&(clearTimeout(s),s=null)}function a(){i.value=!1,o()}function u(...c){o(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=null,e(...c)},Ws(t))}return r&&(i.value=!0,tn&&u()),$u(a),{isPending:Iu(i),start:u,stop:a}}function zF(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,i=Nt(e),s=X(e);function o(a){if(arguments.length)return s.value=a,s.value;{const u=Ws(n);return s.value=s.value===u?Ws(r):u,s.value}}return i?o:[s,o]}var s_=Object.getOwnPropertySymbols,HF=Object.prototype.hasOwnProperty,WF=Object.prototype.propertyIsEnumerable,jF=(e,t)=>{var n={};for(var r in e)HF.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&s_)for(var r of s_(e))t.indexOf(r)<0&&WF.call(e,r)&&(n[r]=e[r]);return n};function VF(e,t,n={}){const r=n,{eventFilter:i=NC}=r,s=jF(r,["eventFilter"]);return Ie(e,DC(i,t),s)}var UF=Object.defineProperty,KF=Object.defineProperties,qF=Object.getOwnPropertyDescriptors,Qf=Object.getOwnPropertySymbols,zC=Object.prototype.hasOwnProperty,HC=Object.prototype.propertyIsEnumerable,o_=(e,t,n)=>t in e?UF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,YF=(e,t)=>{for(var n in t||(t={}))zC.call(t,n)&&o_(e,n,t[n]);if(Qf)for(var n of Qf(t))HC.call(t,n)&&o_(e,n,t[n]);return e},GF=(e,t)=>KF(e,qF(t)),XF=(e,t)=>{var n={};for(var r in e)zC.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Qf)for(var r of Qf(e))t.indexOf(r)<0&&HC.call(e,r)&&(n[r]=e[r]);return n};function JF(e,t,n={}){const r=n,{eventFilter:i}=r,s=XF(r,["eventFilter"]),{eventFilter:o,pause:a,resume:u,isActive:c}=$F(i);return{stop:VF(e,t,GF(YF({},s),{eventFilter:o})),pause:a,resume:u,isActive:c}}function Ms(e){var t;const n=Ws(e);return(t=n==null?void 0:n.$el)!=null?t:n}const js=tn?window:void 0;function _i(...e){let t,n,r,i;if(LF(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=js):[t,n,r,i]=e,!t)return Jf;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],o=()=>{s.forEach(d=>d()),s.length=0},a=(d,h,g,m)=>(d.addEventListener(h,g,m),()=>d.removeEventListener(h,g,m)),u=Ie(()=>[Ms(t),Ws(i)],([d,h])=>{o(),d&&s.push(...n.flatMap(g=>r.map(m=>a(d,g,m,h))))},{immediate:!0,flush:"post"}),c=()=>{u(),o()};return $u(c),c}let a_=!1;function ZF(e,t,n={}){const{window:r=js,ignore:i=[],capture:s=!0,detectIframe:o=!1}=n;if(!r)return;FC&&!a_&&(a_=!0,Array.from(r.document.body.children).forEach(g=>g.addEventListener("click",Jf)));let a=!0;const u=g=>i.some(m=>{if(typeof m=="string")return Array.from(r.document.querySelectorAll(m)).some(b=>b===g.target||g.composedPath().includes(b));{const b=Ms(m);return b&&(g.target===b||g.composedPath().includes(b))}}),d=[_i(r,"click",g=>{const m=Ms(e);if(!(!m||m===g.target||g.composedPath().includes(m))){if(g.detail===0&&(a=!u(g)),!a){a=!0;return}t(g)}},{passive:!0,capture:s}),_i(r,"pointerdown",g=>{const m=Ms(e);m&&(a=!g.composedPath().includes(m)&&!u(g))},{passive:!0}),o&&_i(r,"blur",g=>{var m;const b=Ms(e);((m=r.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(b!=null&&b.contains(r.document.activeElement))&&t(g)})].filter(Boolean);return()=>d.forEach(g=>g())}function WC(e,t=!1){const n=X(),r=()=>n.value=!!e();return r(),BC(r,t),n}function QF(e,t={}){const{window:n=js}=t,r=WC(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const s=X(!1),o=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},a=()=>{r.value&&(o(),i=n.matchMedia(BF(e).value),s.value=i.matches,"addEventListener"in i?i.addEventListener("change",a):i.addListener(a))};return Ns(a),$u(()=>o()),s}const lg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ug="__vueuse_ssr_handlers__";lg[ug]=lg[ug]||{};const e4=lg[ug];function jC(e,t){return e4[e]||t}function t4(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var n4=Object.defineProperty,l_=Object.getOwnPropertySymbols,r4=Object.prototype.hasOwnProperty,i4=Object.prototype.propertyIsEnumerable,u_=(e,t,n)=>t in e?n4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c_=(e,t)=>{for(var n in t||(t={}))r4.call(t,n)&&u_(e,n,t[n]);if(l_)for(var n of l_(t))i4.call(t,n)&&u_(e,n,t[n]);return e};const s4={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},f_="vueuse-storage";function o4(e,t,n,r={}){var i;const{flush:s="pre",deep:o=!0,listenToStorageChanges:a=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:d,window:h=js,eventFilter:g,onError:m=R=>{console.error(R)}}=r,b=(d?Fs:X)(t);if(!n)try{n=jC("getDefaultStorage",()=>{var R;return(R=js)==null?void 0:R.localStorage})()}catch(R){m(R)}if(!n)return b;const v=Ws(t),w=t4(v),y=(i=r.serializer)!=null?i:s4[w],{pause:C,resume:O}=JF(b,()=>_(b.value),{flush:s,deep:o,eventFilter:g});return h&&a&&(_i(h,"storage",P),_i(h,f_,T)),P(),b;function _(R){try{if(R==null)n.removeItem(e);else{const $=y.write(R),D=n.getItem(e);D!==$&&(n.setItem(e,$),h&&h.dispatchEvent(new CustomEvent(f_,{detail:{key:e,oldValue:D,newValue:$,storageArea:n}})))}}catch($){m($)}}function E(R){const $=R?R.newValue:n.getItem(e);if($==null)return u&&v!==null&&n.setItem(e,y.write(v)),v;if(!R&&c){const D=y.read($);return kF(c)?c(D,v):w==="object"&&!Array.isArray(D)?c_(c_({},v),D):D}else return typeof $!="string"?$:y.read($)}function T(R){P(R.detail)}function P(R){if(!(R&&R.storageArea!==n)){if(R&&R.key==null){b.value=v;return}if(!(R&&R.key!==e)){C();try{b.value=E(R)}catch($){m($)}finally{R?bt(O):O()}}}}}function VC(e){return QF("(prefers-color-scheme: dark)",e)}var a4=Object.defineProperty,d_=Object.getOwnPropertySymbols,l4=Object.prototype.hasOwnProperty,u4=Object.prototype.propertyIsEnumerable,h_=(e,t,n)=>t in e?a4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c4=(e,t)=>{for(var n in t||(t={}))l4.call(t,n)&&h_(e,n,t[n]);if(d_)for(var n of d_(t))u4.call(t,n)&&h_(e,n,t[n]);return e};function f4(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=js,storage:s,storageKey:o="vueuse-color-scheme",listenToStorageChanges:a=!0,storageRef:u,emitAuto:c}=e,d=c4({auto:"",light:"light",dark:"dark"},e.modes||{}),h=VC({window:i}),g=z(()=>h.value?"dark":"light"),m=u||(o==null?X(r):o4(o,r,s,{window:i,listenToStorageChanges:a})),b=z({get(){return m.value==="auto"&&!c?g.value:m.value},set(C){m.value=C}}),v=jC("updateHTMLAttrs",(C,O,_)=>{const E=i==null?void 0:i.document.querySelector(C);if(E)if(O==="class"){const T=_.split(/\s/g);Object.values(d).flatMap(P=>(P||"").split(/\s/g)).filter(Boolean).forEach(P=>{T.includes(P)?E.classList.add(P):E.classList.remove(P)})}else E.setAttribute(O,_)});function w(C){var O;const _=C==="auto"?g.value:C;v(t,n,(O=d[_])!=null?O:_)}function y(C){e.onChanged?e.onChanged(C,w):w(C)}return Ie(b,y,{flush:"post",immediate:!0}),c&&Ie(g,()=>y(b.value),{flush:"post"}),BC(()=>y(b.value)),b}var d4=Object.defineProperty,h4=Object.defineProperties,p4=Object.getOwnPropertyDescriptors,p_=Object.getOwnPropertySymbols,g4=Object.prototype.hasOwnProperty,m4=Object.prototype.propertyIsEnumerable,g_=(e,t,n)=>t in e?d4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v4=(e,t)=>{for(var n in t||(t={}))g4.call(t,n)&&g_(e,n,t[n]);if(p_)for(var n of p_(t))m4.call(t,n)&&g_(e,n,t[n]);return e},b4=(e,t)=>h4(e,p4(t));function y4(e={}){const{valueDark:t="dark",valueLight:n="",window:r=js}=e,i=f4(b4(v4({},e),{onChanged:(a,u)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,a==="dark"):u(a)},modes:{dark:t,light:n}})),s=VC({window:r});return z({get(){return i.value==="dark"},set(a){a===s.value?i.value="auto":i.value=a?"dark":"light"}})}var m_=Object.getOwnPropertySymbols,_4=Object.prototype.hasOwnProperty,w4=Object.prototype.propertyIsEnumerable,x4=(e,t)=>{var n={};for(var r in e)_4.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&m_)for(var r of m_(e))t.indexOf(r)<0&&w4.call(e,r)&&(n[r]=e[r]);return n};function Vs(e,t,n={}){const r=n,{window:i=js}=r,s=x4(r,["window"]);let o;const a=WC(()=>i&&"ResizeObserver"in i),u=()=>{o&&(o.disconnect(),o=void 0)},c=Ie(()=>Ms(e),h=>{u(),a.value&&i&&h&&(o=new ResizeObserver(t),o.observe(h,s))},{immediate:!0,flush:"post"}),d=()=>{u(),c()};return $u(d),{isSupported:a,stop:d}}var v_;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(v_||(v_={}));var C4=Object.defineProperty,b_=Object.getOwnPropertySymbols,S4=Object.prototype.hasOwnProperty,O4=Object.prototype.propertyIsEnumerable,y_=(e,t,n)=>t in e?C4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E4=(e,t)=>{for(var n in t||(t={}))S4.call(t,n)&&y_(e,n,t[n]);if(b_)for(var n of b_(t))O4.call(t,n)&&y_(e,n,t[n]);return e};const M4={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};E4({linear:FF},M4);const T4=()=>tn&&/firefox/i.test(window.navigator.userAgent);var A4=typeof global=="object"&&global&&global.Object===Object&&global;const UC=A4;var P4=typeof self=="object"&&self&&self.Object===Object&&self,R4=UC||P4||Function("return this")();const li=R4;var k4=li.Symbol;const jr=k4;var KC=Object.prototype,L4=KC.hasOwnProperty,I4=KC.toString,wl=jr?jr.toStringTag:void 0;function $4(e){var t=L4.call(e,wl),n=e[wl];try{e[wl]=void 0;var r=!0}catch{}var i=I4.call(e);return r&&(t?e[wl]=n:delete e[wl]),i}var F4=Object.prototype,D4=F4.toString;function N4(e){return D4.call(e)}var B4="[object Null]",z4="[object Undefined]",__=jr?jr.toStringTag:void 0;function qo(e){return e==null?e===void 0?z4:B4:__&&__ in Object(e)?$4(e):N4(e)}function Ci(e){return e!=null&&typeof e=="object"}var H4="[object Symbol]";function Rd(e){return typeof e=="symbol"||Ci(e)&&qo(e)==H4}function qC(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n0){if(++t>=yD)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function CD(e){return function(){return e}}var SD=function(){try{var e=Go(Object,"defineProperty");return e({},"",{}),e}catch{}}();const ed=SD;var OD=ed?function(e,t){return ed(e,"toString",{configurable:!0,enumerable:!1,value:CD(t),writable:!0})}:Fm;const ED=OD;var MD=xD(ED);const XC=MD;function TD(e,t){for(var n=-1,r=e==null?0:e.length;++n-1&&e%1==0&&e-1&&e%1==0&&e<=ID}function Xa(e){return e!=null&&zm(e.length)&&!Dm(e)}function $D(e,t,n){if(!fr(n))return!1;var r=typeof t;return(r=="number"?Xa(n)&&kd(t,n.length):r=="string"&&t in n)?Fu(n[t],e):!1}function FD(e){return LD(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&$D(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++r-1}function Z3(e,t){var n=this.__data__,r=Ld(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function is(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(a)?t>1?Ym(a,t-1,n,r,i):qm(i,a):r||(i[i.length]=a)}return i}function mN(e){var t=e==null?0:e.length;return t?Ym(e,1):[]}function vN(e){return XC(JC(e,void 0,mN),e+"")}var bN=nS(Object.getPrototypeOf,Object);const Gm=bN;var yN="[object Object]",_N=Function.prototype,wN=Object.prototype,rS=_N.toString,xN=wN.hasOwnProperty,CN=rS.call(Object);function SN(e){if(!Ci(e)||qo(e)!=yN)return!1;var t=Gm(e);if(t===null)return!0;var n=xN.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&rS.call(n)==CN}function fg(){if(!arguments.length)return[];var e=arguments[0];return Jn(e)?e:[e]}function ON(){this.__data__=new is,this.size=0}function EN(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function MN(e){return this.__data__.get(e)}function TN(e){return this.__data__.has(e)}var AN=200;function PN(e,t){var n=this.__data__;if(n instanceof is){var r=n.__data__;if(!mu||r.lengtha))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var h=-1,g=!0,m=n&hB?new nd:void 0;for(s.set(e,t),s.set(t,e);++h=t||P<0||h&&R>=s}function y(){var T=wp();if(w(T))return C(T);a=setTimeout(y,v(T))}function C(T){return a=void 0,g&&r?m(T):(r=i=void 0,o)}function O(){a!==void 0&&clearTimeout(a),c=0,r=u=i=a=void 0}function _(){return a===void 0?o:C(wp())}function E(){var T=wp(),P=w(T);if(r=arguments,i=this,u=T,P){if(a===void 0)return b(u);if(h)return clearTimeout(a),a=setTimeout(y,t),m(u)}return a===void 0&&(a=setTimeout(y,t)),o}return E.cancel=O,E.flush=_,E}function mg(e,t,n){(n!==void 0&&!Fu(e[t],n)||n===void 0&&!(t in e))&&Nm(e,t,n)}function a5(e){return Ci(e)&&Xa(e)}function vg(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function l5(e){return Du(e,Bu(e))}function u5(e,t,n,r,i,s,o){var a=vg(e,n),u=vg(t,n),c=o.get(u);if(c){mg(e,n,c);return}var d=s?s(a,u,n+"",e,t,o):void 0,h=d===void 0;if(h){var g=Jn(u),m=!g&&pu(u),b=!g&&!m&&jm(u);d=u,g||m||b?Jn(a)?d=a:a5(a)?d=GC(a):m?(h=!1,d=sS(u,!0)):b?(h=!1,d=uS(u,!0)):d=[]:SN(u)||hu(u)?(d=a,hu(a)?d=l5(a):(!fr(a)||Dm(a))&&(d=cS(u))):h=!1}h&&(o.set(u,d),i(d,u,r,s,o),o.delete(u)),mg(e,n,d)}function yS(e,t,n,r,i){e!==t&&bS(t,function(s,o){if(i||(i=new ii),fr(s))u5(e,t,o,n,yS,r,i);else{var a=r?r(vg(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),mg(e,o,a)}},Bu)}function c5(e,t){var n=-1,r=Xa(e)?Array(e.length):[];return n5(e,function(i,s,o){r[++n]=t(i,s,o)}),r}function f5(e,t){var n=Jn(e)?qC:c5;return n(e,XB(t))}function d5(e,t){return Ym(f5(e,t),1)}function rd(e){for(var t=-1,n=e==null?0:e.length,r={};++te===void 0,Qi=e=>typeof e=="boolean",Vn=e=>typeof e=="number",ka=e=>typeof Element>"u"?!1:e instanceof Element,_5=e=>mt(e)?!Number.isNaN(Number(e)):!1,w5=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),yg=e=>Object.keys(e),Sf=(e,t,n)=>({get value(){return Hn(e,t,n)},set value(r){y5(e,t,r)}});class x5 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Us(e,t){throw new x5(`[${e}] ${t}`)}const xS=(e="")=>e.split(" ").filter(t=>!!t.trim()),$o=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},To=(e,t)=>{!e||!t.trim()||e.classList.add(...xS(t))},Fo=(e,t)=>{!e||!t.trim()||e.classList.remove(...xS(t))},_g=(e,t)=>{var n;if(!tn||!e||!t)return"";let r=oi(t);r==="float"&&(r="cssFloat");try{const i=e.style[r];if(i)return i;const s=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return s?s[r]:""}catch{return e.style[r]}};function es(e,t="px"){if(!e)return"";if(Vn(e)||_5(e))return`${e}${t}`;if(mt(e))return e}let Uc;const C5=e=>{var t;if(!tn)return 0;if(Uc!==void 0)return Uc;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 r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const s=i.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Uc=r-s,Uc};function S5(e,t){if(!tn)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const i=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),s=i+t.offsetHeight,o=e.scrollTop,a=o+e.clientHeight;ia&&(e.scrollTop=s-e.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var dr=(e,t)=>{let n=e.__vccOpts||e;for(let[r,i]of t)n[r]=i;return n},O5={name:"ArrowDown"},E5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},M5=I("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),T5=[M5];function A5(e,t,n,r,i,s){return K(),ve("svg",E5,T5)}var Zm=dr(O5,[["render",A5],["__file","arrow-down.vue"]]),P5={name:"ArrowRight"},R5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},k5=I("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),L5=[k5];function I5(e,t,n,r,i,s){return K(),ve("svg",R5,L5)}var Qm=dr(P5,[["render",I5],["__file","arrow-right.vue"]]),$5={name:"ArrowUp"},F5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},D5=I("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),N5=[D5];function B5(e,t,n,r,i,s){return K(),ve("svg",F5,N5)}var z5=dr($5,[["render",B5],["__file","arrow-up.vue"]]),H5={name:"CircleCheck"},W5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},j5=I("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),V5=I("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),U5=[j5,V5];function K5(e,t,n,r,i,s){return K(),ve("svg",W5,U5)}var q5=dr(H5,[["render",K5],["__file","circle-check.vue"]]),Y5={name:"CircleCloseFilled"},G5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},X5=I("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),J5=[X5];function Z5(e,t,n,r,i,s){return K(),ve("svg",G5,J5)}var CS=dr(Y5,[["render",Z5],["__file","circle-close-filled.vue"]]),Q5={name:"CircleClose"},e6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},t6=I("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),n6=I("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),r6=[t6,n6];function i6(e,t,n,r,i,s){return K(),ve("svg",e6,r6)}var ev=dr(Q5,[["render",i6],["__file","circle-close.vue"]]),s6={name:"Close"},o6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},a6=I("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),l6=[a6];function u6(e,t,n,r,i,s){return K(),ve("svg",o6,l6)}var bu=dr(s6,[["render",u6],["__file","close.vue"]]),c6={name:"Hide"},f6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},d6=I("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),h6=I("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),p6=[d6,h6];function g6(e,t,n,r,i,s){return K(),ve("svg",f6,p6)}var m6=dr(c6,[["render",g6],["__file","hide.vue"]]),v6={name:"InfoFilled"},b6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},y6=I("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),_6=[y6];function w6(e,t,n,r,i,s){return K(),ve("svg",b6,_6)}var SS=dr(v6,[["render",w6],["__file","info-filled.vue"]]),x6={name:"Loading"},C6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},S6=I("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),O6=[S6];function E6(e,t,n,r,i,s){return K(),ve("svg",C6,O6)}var tv=dr(x6,[["render",E6],["__file","loading.vue"]]),M6={name:"More"},T6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},A6=I("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),P6=[A6];function R6(e,t,n,r,i,s){return K(),ve("svg",T6,P6)}var k6=dr(M6,[["render",R6],["__file","more.vue"]]),L6={name:"SuccessFilled"},I6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$6=I("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),F6=[$6];function D6(e,t,n,r,i,s){return K(),ve("svg",I6,F6)}var OS=dr(L6,[["render",D6],["__file","success-filled.vue"]]),N6={name:"View"},B6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},z6=I("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),H6=[z6];function W6(e,t,n,r,i,s){return K(),ve("svg",B6,H6)}var j6=dr(N6,[["render",W6],["__file","view.vue"]]),V6={name:"WarningFilled"},U6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},K6=I("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),q6=[K6];function Y6(e,t,n,r,i,s){return K(),ve("svg",U6,q6)}var ES=dr(V6,[["render",Y6],["__file","warning-filled.vue"]]);const MS="__epPropKey",st=e=>e,G6=e=>yt(e)&&!!e[MS],Dd=(e,t)=>{if(!yt(e)||G6(e))return e;const{values:n,required:r,default:i,type:s,validator:o}=e,u={type:s,required:!!r,validator:n||o?c=>{let d=!1,h=[];if(n&&(h=Array.from(n),wt(e,"default")&&h.push(i),d||(d=h.includes(c))),o&&(d||(d=o(c))),!d&&h.length>0){const g=[...new Set(h)].map(m=>JSON.stringify(m)).join(", ");UI(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${g}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[MS]:!0};return wt(e,"default")&&(u.default=i),u},$t=e=>rd(Object.entries(e).map(([t,n])=>[t,Dd(n,t)])),ni=st([String,Object,Function]),X6={Close:bu},J6={Close:bu,SuccessFilled:OS,InfoFilled:SS,WarningFilled:ES,CircleCloseFilled:CS},TS={success:OS,warning:ES,error:CS,info:SS},Z6={validating:tv,success:q5,error:ev},Pn=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},Oi=e=>(e.install=Cn,e),Q6=(...e)=>t=>{e.forEach(n=>{Xe(n)?n(t):n.value=t})},jn={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"},Ln="update:modelValue",AS="change",Hu=["","default","small","large"],ez={large:40,default:32,small:24},tz=e=>ez[e||"default"],nz=e=>["",...Hu].includes(e);var Of=(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))(Of||{});const Ef=e=>{const t=ze(e)?e:[e],n=[];return t.forEach(r=>{var i;ze(r)?n.push(...Ef(r)):Ma(r)&&ze(r.children)?n.push(...Ef(r.children)):(n.push(r),Ma(r)&&((i=r.component)!=null&&i.subTree)&&n.push(...Ef(r.component.subTree)))}),n},PS=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Oo=e=>e,rz=["class","style"],iz=/^on[A-Z]/,sz=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=z(()=>((n==null?void 0:n.value)||[]).concat(rz)),i=kt();return z(i?()=>{var s;return rd(Object.entries((s=i.proxy)==null?void 0:s.$attrs).filter(([o])=>!r.value.includes(o)&&!(t&&iz.test(o))))}:()=>({}))},Ho=({from:e,replacement:t,scope:n,version:r,ref:i,type:s="API"},o)=>{Ie(()=>S(o),a=>{},{immediate:!0})},oz=(e,t,n)=>{let r={offsetX:0,offsetY:0};const i=a=>{const u=a.clientX,c=a.clientY,{offsetX:d,offsetY:h}=r,g=e.value.getBoundingClientRect(),m=g.left,b=g.top,v=g.width,w=g.height,y=document.documentElement.clientWidth,C=document.documentElement.clientHeight,O=-m+d,_=-b+h,E=y-m-v+d,T=C-b-w+h,P=$=>{const D=Math.min(Math.max(d+$.clientX-u,O),E),j=Math.min(Math.max(h+$.clientY-c,_),T);r={offsetX:D,offsetY:j},e.value.style.transform=`translate(${es(D)}, ${es(j)})`},R=()=>{document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",R)};document.addEventListener("mousemove",P),document.addEventListener("mouseup",R)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};Lt(()=>{Ns(()=>{n.value?s():o()})}),An(()=>{o()})},az=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var lz={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const uz=e=>(t,n)=>cz(t,n,S(e)),cz=(e,t,n)=>Hn(n,e,e).replace(/\{(\w+)\}/g,(r,i)=>{var s;return`${(s=t==null?void 0:t[i])!=null?s:`{${i}}`}`}),fz=e=>{const t=z(()=>S(e).name),n=Nt(e)?e:X(e);return{lang:t,locale:n,t:uz(e)}},RS=Symbol("localeContextKey"),Xo=e=>{const t=e||Ke(RS,X());return fz(z(()=>t.value||lz))},wg="el",dz="is-",fo=(e,t,n,r,i)=>{let s=`${e}-${t}`;return n&&(s+=`-${n}`),r&&(s+=`__${r}`),i&&(s+=`--${i}`),s},kS=Symbol("namespaceContextKey"),nv=e=>{const t=e||Ke(kS,X(wg));return z(()=>S(t)||wg)},Qe=(e,t)=>{const n=nv(t);return{namespace:n,b:(v="")=>fo(n.value,e,v,"",""),e:v=>v?fo(n.value,e,"",v,""):"",m:v=>v?fo(n.value,e,"","",v):"",be:(v,w)=>v&&w?fo(n.value,e,v,w,""):"",em:(v,w)=>v&&w?fo(n.value,e,"",v,w):"",bm:(v,w)=>v&&w?fo(n.value,e,v,"",w):"",bem:(v,w,y)=>v&&w&&y?fo(n.value,e,v,w,y):"",is:(v,...w)=>{const y=w.length>=1?w[0]:!0;return v&&y?`${dz}${v}`:""},cssVar:v=>{const w={};for(const y in v)v[y]&&(w[`--${n.value}-${y}`]=v[y]);return w},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const w={};for(const y in v)v[y]&&(w[`--${n.value}-${e}-${y}`]=v[y]);return w},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}},hz=(e,t={})=>{Nt(e)||Us("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Qe("popup"),r=Zx(()=>n.bm("parent","hidden"));if(!tn||$o(document.body,r.value))return;let i=0,s=!1,o="0";const a=()=>{setTimeout(()=>{Fo(document==null?void 0:document.body,r.value),s&&document&&(document.body.style.width=o)},200)};Ie(e,u=>{if(!u){a();return}s=!$o(document.body,r.value),s&&(o=document.body.style.width),i=C5(n.namespace.value);const c=document.documentElement.clientHeight0&&(c||d==="scroll")&&s&&(document.body.style.width=`calc(100% - ${i}px)`),To(document.body,r.value)}),pm(()=>a())},pz=Dd({type:st(Boolean),default:null}),gz=Dd({type:st(Function)}),LS=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],i={[e]:pz,[n]:gz};return{useModelToggle:({indicator:o,toggleReason:a,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:h})=>{const g=kt(),{emit:m}=g,b=g.props,v=z(()=>Xe(b[n])),w=z(()=>b[e]===null),y=P=>{o.value!==!0&&(o.value=!0,a&&(a.value=P),Xe(d)&&d(P))},C=P=>{o.value!==!1&&(o.value=!1,a&&(a.value=P),Xe(h)&&h(P))},O=P=>{if(b.disabled===!0||Xe(c)&&!c())return;const R=v.value&&tn;R&&m(t,!0),(w.value||!R)&&y(P)},_=P=>{if(b.disabled===!0||!tn)return;const R=v.value&&tn;R&&m(t,!1),(w.value||!R)&&C(P)},E=P=>{Qi(P)&&(b.disabled&&P?v.value&&m(t,!1):o.value!==P&&(P?y():C()))},T=()=>{o.value?_():O()};return Ie(()=>b[e],E),u&&g.appContext.config.globalProperties.$route!==void 0&&Ie(()=>({...g.proxy.$route}),()=>{u.value&&o.value&&_()}),Lt(()=>{E(b[e])}),{hide:_,show:O,toggle:T,hasUpdateHandler:v}},useModelToggleProps:i,useModelToggleEmits:r}};LS("modelValue");const IS=e=>{const t=kt();return z(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var lr="top",Vr="bottom",Ur="right",ur="left",rv="auto",Wu=[lr,Vr,Ur,ur],La="start",yu="end",mz="clippingParents",$S="viewport",xl="popper",vz="reference",J_=Wu.reduce(function(e,t){return e.concat([t+"-"+La,t+"-"+yu])},[]),Nd=[].concat(Wu,[rv]).reduce(function(e,t){return e.concat([t,t+"-"+La,t+"-"+yu])},[]),bz="beforeRead",yz="read",_z="afterRead",wz="beforeMain",xz="main",Cz="afterMain",Sz="beforeWrite",Oz="write",Ez="afterWrite",Mz=[bz,yz,_z,wz,xz,Cz,Sz,Oz,Ez];function Si(e){return e?(e.nodeName||"").toLowerCase():null}function ui(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ia(e){var t=ui(e).Element;return e instanceof t||e instanceof Element}function zr(e){var t=ui(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function iv(e){if(typeof ShadowRoot>"u")return!1;var t=ui(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Tz(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!zr(s)||!Si(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function Az(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(r){var i=t.elements[r],s=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(u,c){return u[c]="",u},{});!zr(i)||!Si(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(u){i.removeAttribute(u)}))})}}var FS={name:"applyStyles",enabled:!0,phase:"write",fn:Tz,effect:Az,requires:["computeStyles"]};function wi(e){return e.split("-")[0]}var Do=Math.max,sd=Math.min,$a=Math.round;function Fa(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(zr(e)&&t){var s=e.offsetHeight,o=e.offsetWidth;o>0&&(r=$a(n.width)/o||1),s>0&&(i=$a(n.height)/s||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function sv(e){var t=Fa(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function DS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&iv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ts(e){return ui(e).getComputedStyle(e)}function Pz(e){return["table","td","th"].indexOf(Si(e))>=0}function Js(e){return((Ia(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bd(e){return Si(e)==="html"?e:e.assignedSlot||e.parentNode||(iv(e)?e.host:null)||Js(e)}function Z_(e){return!zr(e)||ts(e).position==="fixed"?null:e.offsetParent}function Rz(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&zr(e)){var r=ts(e);if(r.position==="fixed")return null}var i=Bd(e);for(iv(i)&&(i=i.host);zr(i)&&["html","body"].indexOf(Si(i))<0;){var s=ts(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function ju(e){for(var t=ui(e),n=Z_(e);n&&Pz(n)&&ts(n).position==="static";)n=Z_(n);return n&&(Si(n)==="html"||Si(n)==="body"&&ts(n).position==="static")?t:n||Rz(e)||t}function ov(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vl(e,t,n){return Do(e,sd(t,n))}function kz(e,t,n){var r=Vl(e,t,n);return r>n?n:r}function NS(){return{top:0,right:0,bottom:0,left:0}}function BS(e){return Object.assign({},NS(),e)}function zS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Lz=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,BS(typeof e!="number"?e:zS(e,Wu))};function Iz(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=wi(n.placement),u=ov(a),c=[ur,Ur].indexOf(a)>=0,d=c?"height":"width";if(!(!s||!o)){var h=Lz(i.padding,n),g=sv(s),m=u==="y"?lr:ur,b=u==="y"?Vr:Ur,v=n.rects.reference[d]+n.rects.reference[u]-o[u]-n.rects.popper[d],w=o[u]-n.rects.reference[u],y=ju(s),C=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,O=v/2-w/2,_=h[m],E=C-g[d]-h[b],T=C/2-g[d]/2+O,P=Vl(_,T,E),R=u;n.modifiersData[r]=(t={},t[R]=P,t.centerOffset=P-T,t)}}function $z(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!DS(t.elements.popper,i)||(t.elements.arrow=i))}var Fz={name:"arrow",enabled:!0,phase:"main",fn:Iz,effect:$z,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Da(e){return e.split("-")[1]}var Dz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nz(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:$a(t*i)/i||0,y:$a(n*i)/i||0}}function Q_(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,o=e.offsets,a=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,g=o.x,m=g===void 0?0:g,b=o.y,v=b===void 0?0:b,w=typeof d=="function"?d({x:m,y:v}):{x:m,y:v};m=w.x,v=w.y;var y=o.hasOwnProperty("x"),C=o.hasOwnProperty("y"),O=ur,_=lr,E=window;if(c){var T=ju(n),P="clientHeight",R="clientWidth";if(T===ui(n)&&(T=Js(n),ts(T).position!=="static"&&a==="absolute"&&(P="scrollHeight",R="scrollWidth")),T=T,i===lr||(i===ur||i===Ur)&&s===yu){_=Vr;var $=h&&T===E&&E.visualViewport?E.visualViewport.height:T[P];v-=$-r.height,v*=u?1:-1}if(i===ur||(i===lr||i===Vr)&&s===yu){O=Ur;var D=h&&T===E&&E.visualViewport?E.visualViewport.width:T[R];m-=D-r.width,m*=u?1:-1}}var j=Object.assign({position:a},c&&Dz),A=d===!0?Nz({x:m,y:v}):{x:m,y:v};if(m=A.x,v=A.y,u){var U;return Object.assign({},j,(U={},U[_]=C?"0":"",U[O]=y?"0":"",U.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",U))}return Object.assign({},j,(t={},t[_]=C?v+"px":"",t[O]=y?m+"px":"",t.transform="",t))}function Bz(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,u=a===void 0?!0:a,c={placement:wi(t.placement),variation:Da(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Q_(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q_(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var HS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Bz,data:{}},Kc={passive:!0};function zz(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,u=ui(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",n.update,Kc)}),a&&u.addEventListener("resize",n.update,Kc),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Kc)}),a&&u.removeEventListener("resize",n.update,Kc)}}var WS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zz,data:{}},Hz={left:"right",right:"left",bottom:"top",top:"bottom"};function Mf(e){return e.replace(/left|right|bottom|top/g,function(t){return Hz[t]})}var Wz={start:"end",end:"start"};function e1(e){return e.replace(/start|end/g,function(t){return Wz[t]})}function av(e){var t=ui(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function lv(e){return Fa(Js(e)).left+av(e).scrollLeft}function jz(e){var t=ui(e),n=Js(e),r=t.visualViewport,i=n.clientWidth,s=n.clientHeight,o=0,a=0;return r&&(i=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,a=r.offsetTop)),{width:i,height:s,x:o+lv(e),y:a}}function Vz(e){var t,n=Js(e),r=av(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Do(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Do(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+lv(e),u=-r.scrollTop;return ts(i||n).direction==="rtl"&&(a+=Do(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:u}}function uv(e){var t=ts(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function jS(e){return["html","body","#document"].indexOf(Si(e))>=0?e.ownerDocument.body:zr(e)&&uv(e)?e:jS(Bd(e))}function Ul(e,t){var n;t===void 0&&(t=[]);var r=jS(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=ui(r),o=i?[s].concat(s.visualViewport||[],uv(r)?r:[]):r,a=t.concat(o);return i?a:a.concat(Ul(Bd(o)))}function xg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Uz(e){var t=Fa(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function t1(e,t){return t===$S?xg(jz(e)):Ia(t)?Uz(t):xg(Vz(Js(e)))}function Kz(e){var t=Ul(Bd(e)),n=["absolute","fixed"].indexOf(ts(e).position)>=0,r=n&&zr(e)?ju(e):e;return Ia(r)?t.filter(function(i){return Ia(i)&&DS(i,r)&&Si(i)!=="body"}):[]}function qz(e,t,n){var r=t==="clippingParents"?Kz(e):[].concat(t),i=[].concat(r,[n]),s=i[0],o=i.reduce(function(a,u){var c=t1(e,u);return a.top=Do(c.top,a.top),a.right=sd(c.right,a.right),a.bottom=sd(c.bottom,a.bottom),a.left=Do(c.left,a.left),a},t1(e,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function VS(e){var t=e.reference,n=e.element,r=e.placement,i=r?wi(r):null,s=r?Da(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,u;switch(i){case lr:u={x:o,y:t.y-n.height};break;case Vr:u={x:o,y:t.y+t.height};break;case Ur:u={x:t.x+t.width,y:a};break;case ur:u={x:t.x-n.width,y:a};break;default:u={x:t.x,y:t.y}}var c=i?ov(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case La:u[c]=u[c]-(t[d]/2-n[d]/2);break;case yu:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function _u(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.boundary,o=s===void 0?mz:s,a=n.rootBoundary,u=a===void 0?$S:a,c=n.elementContext,d=c===void 0?xl:c,h=n.altBoundary,g=h===void 0?!1:h,m=n.padding,b=m===void 0?0:m,v=BS(typeof b!="number"?b:zS(b,Wu)),w=d===xl?vz:xl,y=e.rects.popper,C=e.elements[g?w:d],O=qz(Ia(C)?C:C.contextElement||Js(e.elements.popper),o,u),_=Fa(e.elements.reference),E=VS({reference:_,element:y,strategy:"absolute",placement:i}),T=xg(Object.assign({},y,E)),P=d===xl?T:_,R={top:O.top-P.top+v.top,bottom:P.bottom-O.bottom+v.bottom,left:O.left-P.left+v.left,right:P.right-O.right+v.right},$=e.modifiersData.offset;if(d===xl&&$){var D=$[i];Object.keys(R).forEach(function(j){var A=[Ur,Vr].indexOf(j)>=0?1:-1,U=[lr,Vr].indexOf(j)>=0?"y":"x";R[j]+=D[U]*A})}return R}function Yz(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Nd:u,d=Da(r),h=d?a?J_:J_.filter(function(b){return Da(b)===d}):Wu,g=h.filter(function(b){return c.indexOf(b)>=0});g.length===0&&(g=h);var m=g.reduce(function(b,v){return b[v]=_u(e,{placement:v,boundary:i,rootBoundary:s,padding:o})[wi(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function Gz(e){if(wi(e)===rv)return[];var t=Mf(e);return[e1(e),t,e1(t)]}function Xz(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,u=n.fallbackPlacements,c=n.padding,d=n.boundary,h=n.rootBoundary,g=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,w=t.options.placement,y=wi(w),C=y===w,O=u||(C||!b?[Mf(w)]:Gz(w)),_=[w].concat(O).reduce(function(De,Ze){return De.concat(wi(Ze)===rv?Yz(t,{placement:Ze,boundary:d,rootBoundary:h,padding:c,flipVariations:b,allowedAutoPlacements:v}):Ze)},[]),E=t.rects.reference,T=t.rects.popper,P=new Map,R=!0,$=_[0],D=0;D<_.length;D++){var j=_[D],A=wi(j),U=Da(j)===La,ue=[lr,Vr].indexOf(A)>=0,ce=ue?"width":"height",ne=_u(t,{placement:j,boundary:d,rootBoundary:h,altBoundary:g,padding:c}),Q=ue?U?Ur:ur:U?Vr:lr;E[ce]>T[ce]&&(Q=Mf(Q));var ie=Mf(Q),ee=[];if(s&&ee.push(ne[A]<=0),a&&ee.push(ne[Q]<=0,ne[ie]<=0),ee.every(function(De){return De})){$=j,R=!1;break}P.set(j,ee)}if(R)for(var _e=b?3:1,Ee=function(De){var Ze=_.find(function(Je){var Y=P.get(Je);if(Y)return Y.slice(0,De).every(function(oe){return oe})});if(Ze)return $=Ze,"break"},Z=_e;Z>0;Z--){var Ge=Ee(Z);if(Ge==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}var Jz={name:"flip",enabled:!0,phase:"main",fn:Xz,requiresIfExists:["offset"],data:{_skip:!1}};function n1(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 r1(e){return[lr,Ur,Vr,ur].some(function(t){return e[t]>=0})}function Zz(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=_u(t,{elementContext:"reference"}),a=_u(t,{altBoundary:!0}),u=n1(o,r),c=n1(a,i,s),d=r1(u),h=r1(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}var Qz={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zz};function eH(e,t,n){var r=wi(e),i=[ur,lr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[ur,Ur].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function tH(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,o=Nd.reduce(function(d,h){return d[h]=eH(h,t.rects,s),d},{}),a=o[t.placement],u=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}var nH={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tH};function rH(e){var t=e.state,n=e.name;t.modifiersData[n]=VS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var US={name:"popperOffsets",enabled:!0,phase:"read",fn:rH,data:{}};function iH(e){return e==="x"?"y":"x"}function sH(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,h=n.padding,g=n.tether,m=g===void 0?!0:g,b=n.tetherOffset,v=b===void 0?0:b,w=_u(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:d}),y=wi(t.placement),C=Da(t.placement),O=!C,_=ov(y),E=iH(_),T=t.modifiersData.popperOffsets,P=t.rects.reference,R=t.rects.popper,$=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,D=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(T){if(s){var U,ue=_==="y"?lr:ur,ce=_==="y"?Vr:Ur,ne=_==="y"?"height":"width",Q=T[_],ie=Q+w[ue],ee=Q-w[ce],_e=m?-R[ne]/2:0,Ee=C===La?P[ne]:R[ne],Z=C===La?-R[ne]:-P[ne],Ge=t.elements.arrow,De=m&&Ge?sv(Ge):{width:0,height:0},Ze=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:NS(),Je=Ze[ue],Y=Ze[ce],oe=Vl(0,P[ne],De[ne]),de=O?P[ne]/2-_e-oe-Je-D.mainAxis:Ee-oe-Je-D.mainAxis,Oe=O?-P[ne]/2+_e+oe+Y+D.mainAxis:Z+oe+Y+D.mainAxis,We=t.elements.arrow&&ju(t.elements.arrow),F=We?_==="y"?We.clientTop||0:We.clientLeft||0:0,W=(U=j==null?void 0:j[_])!=null?U:0,q=Q+de-W-F,se=Q+Oe-W,pe=Vl(m?sd(ie,q):ie,Q,m?Do(ee,se):ee);T[_]=pe,A[_]=pe-Q}if(a){var me,Ae=_==="x"?lr:ur,Se=_==="x"?Vr:Ur,Ce=T[E],ge=E==="y"?"height":"width",Ne=Ce+w[Ae],Pe=Ce-w[Se],re=[lr,ur].indexOf(y)!==-1,Me=(me=j==null?void 0:j[E])!=null?me:0,Ve=re?Ne:Ce-P[ge]-R[ge]-Me+D.altAxis,at=re?Ce+P[ge]+R[ge]-Me-D.altAxis:Pe,ot=m&&re?kz(Ve,Ce,at):Vl(m?Ve:Ne,Ce,m?at:Pe);T[E]=ot,A[E]=ot-Ce}t.modifiersData[r]=A}}var oH={name:"preventOverflow",enabled:!0,phase:"main",fn:sH,requiresIfExists:["offset"]};function aH(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lH(e){return e===ui(e)||!zr(e)?av(e):aH(e)}function uH(e){var t=e.getBoundingClientRect(),n=$a(t.width)/e.offsetWidth||1,r=$a(t.height)/e.offsetHeight||1;return n!==1||r!==1}function cH(e,t,n){n===void 0&&(n=!1);var r=zr(t),i=zr(t)&&uH(t),s=Js(t),o=Fa(e,i),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Si(t)!=="body"||uv(s))&&(a=lH(t)),zr(t)?(u=Fa(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=lv(s))),{x:o.left+a.scrollLeft-u.x,y:o.top+a.scrollTop-u.y,width:o.width,height:o.height}}function fH(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var u=t.get(a);u&&i(u)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function dH(e){var t=fH(e);return Mz.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function hH(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function pH(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var i1={placement:"bottom",modifiers:[],strategy:"absolute"};function s1(){for(var e=arguments.length,t=new Array(e),n=0;n{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=bH(u);Object.assign(o.value,c)},requires:["computeStyles"]},i=z(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:h}=S(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...h||[],r,{name:"applyStyles",enabled:!1}]}}),s=Fs(),o=X({styles:{popper:{position:S(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return Ie(i,u=>{const c=S(s);c&&c.setOptions(u)},{deep:!0}),Ie([e,t],([u,c])=>{a(),!(!u||!c)&&(s.value=KS(u,c,S(i)))}),An(()=>{a()}),{state:z(()=>{var u;return{...((u=S(s))==null?void 0:u.state)||{}}}),styles:z(()=>S(o).styles),attributes:z(()=>S(o).attributes),update:()=>{var u;return(u=S(s))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=S(s))==null?void 0:u.forceUpdate()},instanceRef:z(()=>S(s))}};function bH(e){const t=Object.keys(e.elements),n=rd(t.map(i=>[i,e.styles[i]||{}])),r=rd(t.map(i=>[i,e.attributes[i]]));return{styles:n,attributes:r}}const qS=e=>{if(!e)return{onClick:Cn,onMousedown:Cn,onMouseup:Cn};let t=!1,n=!1;return{onClick:o=>{t&&n&&e(o),t=n=!1},onMousedown:o=>{t=o.target===o.currentTarget},onMouseup:o=>{n=o.target===o.currentTarget}}};function o1(){let e;const t=(r,i)=>{n(),e=window.setTimeout(r,i)},n=()=>window.clearTimeout(e);return $u(()=>n()),{registerTimeout:t,cancelTimeout:n}}const a1={prefix:Math.floor(Math.random()*1e4),current:0},yH=Symbol("elIdInjection"),YS=()=>kt()?Ke(yH,a1):a1,wu=e=>{const t=YS(),n=nv();return z(()=>S(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let ba=[];const l1=e=>{const t=e;t.key===jn.esc&&ba.forEach(n=>n(t))},_H=e=>{Lt(()=>{ba.length===0&&document.addEventListener("keydown",l1),tn&&ba.push(e)}),An(()=>{ba=ba.filter(t=>t!==e),ba.length===0&&tn&&document.removeEventListener("keydown",l1)})};let u1;const GS=()=>{const e=nv(),t=YS(),n=z(()=>`${e.value}-popper-container-${t.prefix}`),r=z(()=>`#${n.value}`);return{id:n,selector:r}},wH=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},xH=()=>{const{id:e,selector:t}=GS();return qa(()=>{tn&&!u1&&!document.body.querySelector(t.value)&&(u1=wH(e.value))}),{id:e,selector:t}},CH=$t({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),XS=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:i})=>{const{registerTimeout:s}=o1(),{registerTimeout:o,cancelTimeout:a}=o1();return{onOpen:d=>{s(()=>{r(d);const h=S(n);Vn(h)&&h>0&&o(()=>{i(d)},h)},S(e))},onClose:d=>{a(),s(()=>{i(d)},S(t))}}},JS=Symbol("elForwardRef"),SH=e=>{sn(JS,{setForwardRef:n=>{e.value=n}})},OH=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),c1=X(0),EH=2e3,ZS=Symbol("zIndexContextKey"),fv=e=>{const t=e||Ke(ZS,void 0),n=z(()=>{const s=S(t);return Vn(s)?s:EH}),r=z(()=>n.value+c1.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(c1.value++,r.value)}};function MH(e){const t=X();function n(){if(e.value==null)return;const{selectionStart:i,selectionEnd:s,value:o}=e.value;if(i==null||s==null)return;const a=o.slice(0,Math.max(0,i)),u=o.slice(Math.max(0,s));t.value={selectionStart:i,selectionEnd:s,value:o,beforeTxt:a,afterTxt:u}}function r(){if(e.value==null||t.value==null)return;const{value:i}=e.value,{beforeTxt:s,afterTxt:o,selectionStart:a}=t.value;if(s==null||o==null||a==null)return;let u=i.length;if(i.endsWith(o))u=i.length-o.length;else if(i.startsWith(s))u=s.length;else{const c=s[a-1],d=i.indexOf(c,a-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,r]}const Ja=Dd({type:String,values:Hu,required:!1}),QS=Symbol("size"),TH=()=>{const e=Ke(QS,{});return z(()=>S(e.size)||"")},e2=Symbol(),od=X();function dv(e,t=void 0){const n=kt()?Ke(e2,od):od;return e?z(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[e])!=null?i:t}):n}const AH=(e,t,n=!1)=>{var r;const i=!!kt(),s=i?dv():void 0,o=(r=t==null?void 0:t.provide)!=null?r:i?sn:void 0;if(!o)return;const a=z(()=>{const u=S(e);return s!=null&&s.value?PH(s.value,u):u});return o(e2,a),o(RS,z(()=>a.value.locale)),o(kS,z(()=>a.value.namespace)),o(ZS,z(()=>a.value.zIndex)),o(QS,{size:z(()=>a.value.size||"")}),(n||!od.value)&&(od.value=a.value),a},PH=(e,t)=>{var n;const r=[...new Set([...yg(e),...yg(t)])],i={};for(const s of r)i[s]=(n=t[s])!=null?n:e[s];return i},RH=$t({a11y:{type:Boolean,default:!0},locale:{type:st(Object)},size:Ja,button:{type:st(Object)},experimentalFeatures:{type:st(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:st(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),kH={},LH=Fe({name:"ElConfigProvider",props:RH,setup(e,{slots:t}){Ie(()=>e.message,r=>{Object.assign(kH,r??{})},{immediate:!0,deep:!0});const n=AH(e);return()=>He(t,"default",{config:n==null?void 0:n.value})}}),IH=Pn(LH);var Et=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const $H=$t({size:{type:st([Number,String])},color:{type:String}}),FH=Fe({name:"ElIcon",inheritAttrs:!1}),DH=Fe({...FH,props:$H,setup(e){const t=e,n=Qe("icon"),r=z(()=>{const{size:i,color:s}=t;return!i&&!s?{}:{fontSize:id(i)?void 0:es(i),"--color":s}});return(i,s)=>(K(),ve("i",Mr({class:S(n).b(),style:S(r)},i.$attrs),[He(i.$slots,"default")],16))}});var NH=Et(DH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const wn=Pn(NH),BH=["light","dark"],zH=$t({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:yg(TS),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:BH,default:"light"}}),HH={close:e=>e instanceof MouseEvent},WH=Fe({name:"ElAlert"}),jH=Fe({...WH,props:zH,emits:HH,setup(e,{emit:t}){const n=e,{Close:r}=J6,i=Ko(),s=Qe("alert"),o=X(!0),a=z(()=>TS[n.type]),u=z(()=>[s.e("icon"),{[s.is("big")]:!!n.description||!!i.default}]),c=z(()=>({[s.is("bold")]:n.description||i.default})),d=h=>{o.value=!1,t("close",h)};return(h,g)=>(K(),Te(Hr,{name:S(s).b("fade"),persisted:""},{default:B(()=>[gn(I("div",{class:he([S(s).b(),S(s).m(h.type),S(s).is("center",h.center),S(s).is(h.effect)]),role:"alert"},[h.showIcon&&S(a)?(K(),Te(S(wn),{key:0,class:he(S(u))},{default:B(()=>[(K(),Te($n(S(a))))]),_:1},8,["class"])):ke("v-if",!0),I("div",{class:he(S(s).e("content"))},[h.title||h.$slots.title?(K(),ve("span",{key:0,class:he([S(s).e("title"),S(c)])},[He(h.$slots,"title",{},()=>[le(pt(h.title),1)])],2)):ke("v-if",!0),h.$slots.default||h.description?(K(),ve("p",{key:1,class:he(S(s).e("description"))},[He(h.$slots,"default",{},()=>[le(pt(h.description),1)])],2)):ke("v-if",!0),h.closable?(K(),ve(it,{key:2},[h.closeText?(K(),ve("div",{key:0,class:he([S(s).e("close-btn"),S(s).is("customed")]),onClick:d},pt(h.closeText),3)):(K(),Te(S(wn),{key:1,class:he(S(s).e("close-btn")),onClick:d},{default:B(()=>[H(S(r))]),_:1},8,["class"]))],64)):ke("v-if",!0)],2)],2),[[Wr,o.value]])]),_:3},8,["name"]))}});var VH=Et(jH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const t2=Pn(VH),Za=Symbol("formContextKey"),Wo=Symbol("formItemContextKey"),ns=(e,t={})=>{const n=X(void 0),r=t.prop?n:IS("size"),i=t.global?n:TH(),s=t.form?{size:void 0}:Ke(Za,void 0),o=t.formItem?{size:void 0}:Ke(Wo,void 0);return z(()=>r.value||S(e)||(o==null?void 0:o.size)||(s==null?void 0:s.size)||i.value||"")},zd=e=>{const t=IS("disabled"),n=Ke(Za,void 0);return z(()=>t.value||S(e)||(n==null?void 0:n.disabled)||!1)},Qa=()=>{const e=Ke(Za,void 0),t=Ke(Wo,void 0);return{form:e,formItem:t}},hv=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=X(!1)),r||(r=X(!1));const i=X();let s;const o=z(()=>{var a;return!!(!e.label&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return Lt(()=>{s=Ie([Nr(e,"id"),n],([a,u])=>{const c=a??(u?void 0:wu().value);c!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(r!=null&&r.value)&&!u&&c&&t.addInputId(c)),i.value=c)},{immediate:!0})}),Ya(()=>{s&&s(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:o,inputId:i}},UH=$t({size:{type:String,values:Hu},disabled:Boolean}),KH=$t({...UH,model:Object,rules:{type:st(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),qH={validate:(e,t,n)=>(ze(e)||mt(e))&&Qi(t)&&mt(n)};function YH(){const e=X([]),t=z(()=>{if(!e.value.length)return"0";const s=Math.max(...e.value);return s?`${s}px`:""});function n(s){const o=e.value.indexOf(s);return o===-1&&t.value,o}function r(s,o){if(s&&o){const a=n(o);e.value.splice(a,1,s)}else s&&e.value.push(s)}function i(s){const o=n(s);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:i}}const qc=(e,t)=>{const n=fg(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},GH="ElForm",XH=Fe({name:GH}),JH=Fe({...XH,props:KH,emits:qH,setup(e,{expose:t,emit:n}){const r=e,i=[],s=ns(),o=Qe("form"),a=z(()=>{const{labelPosition:C,inline:O}=r;return[o.b(),o.m(s.value||"default"),{[o.m(`label-${C}`)]:C,[o.m("inline")]:O}]}),u=C=>{i.push(C)},c=C=>{C.prop&&i.splice(i.indexOf(C),1)},d=(C=[])=>{r.model&&qc(i,C).forEach(O=>O.resetField())},h=(C=[])=>{qc(i,C).forEach(O=>O.clearValidate())},g=z(()=>!!r.model),m=C=>{if(i.length===0)return[];const O=qc(i,C);return O.length?O:[]},b=async C=>w(void 0,C),v=async(C=[])=>{if(!g.value)return!1;const O=m(C);if(O.length===0)return!0;let _={};for(const E of O)try{await E.validate("")}catch(T){_={..._,...T}}return Object.keys(_).length===0?!0:Promise.reject(_)},w=async(C=[],O)=>{const _=!Xe(O);try{const E=await v(C);return E===!0&&(O==null||O(E)),E}catch(E){if(E instanceof Error)throw E;const T=E;return r.scrollToError&&y(Object.keys(T)[0]),O==null||O(!1,T),_&&Promise.reject(T)}},y=C=>{var O;const _=qc(i,C)[0];_&&((O=_.$el)==null||O.scrollIntoView(r.scrollIntoViewOptions))};return Ie(()=>r.rules,()=>{r.validateOnRuleChange&&b().catch(C=>void 0)},{deep:!0}),sn(Za,vn({...Gs(r),emit:n,resetFields:d,clearValidate:h,validateField:w,addField:u,removeField:c,...YH()})),t({validate:b,validateField:w,resetFields:d,clearValidate:h,scrollToField:y}),(C,O)=>(K(),ve("form",{class:he(S(a))},[He(C.$slots,"default")],2))}});var ZH=Et(JH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tf(e,t,n){return eW()?Tf=Reflect.construct.bind():Tf=function(i,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(i,a),c=new u;return o&&xu(c,o.prototype),c},Tf.apply(null,arguments)}function tW(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Sg(e){var t=typeof Map=="function"?new Map:void 0;return Sg=function(r){if(r===null||!tW(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Tf(r,arguments,Cg(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),xu(i,r)},Sg(e)}var nW=/%[sdj%]/g,rW=function(){};typeof process<"u"&&process.env;function Og(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Or(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=s)return a;switch(a){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return a}});return o}return e}function iW(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Sn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||iW(t)&&typeof e=="string"&&!e)}function sW(e,t,n){var r=[],i=0,s=e.length;function o(a){r.push.apply(r,a||[]),i++,i===s&&n(r)}e.forEach(function(a){t(a,o)})}function f1(e,t,n){var r=0,i=e.length;function s(o){if(o&&o.length){n(o);return}var a=r;r=r+1,a()\[\]\\.,;:\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},Rl={integer:function(t){return Rl.number(t)&&parseInt(t,10)===t},float:function(t){return Rl.number(t)&&!Rl.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"&&!Rl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(g1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(fW())},hex:function(t){return typeof t=="string"&&!!t.match(g1.hex)}},dW=function(t,n,r,i,s){if(t.required&&n===void 0){n2(t,n,r,i,s);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;o.indexOf(a)>-1?Rl[a](n)||i.push(Or(s.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&i.push(Or(s.messages.types[a],t.fullField,t.type))},hW=function(t,n,r,i,s){var o=typeof t.len=="number",a=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,h=null,g=typeof n=="number",m=typeof n=="string",b=Array.isArray(n);if(g?h="number":m?h="string":b&&(h="array"),!h)return!1;b&&(d=n.length),m&&(d=n.replace(c,"_").length),o?d!==t.len&&i.push(Or(s.messages[h].len,t.fullField,t.len)):a&&!u&&dt.max?i.push(Or(s.messages[h].max,t.fullField,t.max)):a&&u&&(dt.max)&&i.push(Or(s.messages[h].range,t.fullField,t.min,t.max))},ha="enum",pW=function(t,n,r,i,s){t[ha]=Array.isArray(t[ha])?t[ha]:[],t[ha].indexOf(n)===-1&&i.push(Or(s.messages[ha],t.fullField,t[ha].join(", ")))},gW=function(t,n,r,i,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Or(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(n)||i.push(Or(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Tt={required:n2,whitespace:cW,type:dW,range:hW,enum:pW,pattern:gW},mW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n,"string")&&!t.required)return r();Tt.required(t,n,i,o,s,"string"),Sn(n,"string")||(Tt.type(t,n,i,o,s),Tt.range(t,n,i,o,s),Tt.pattern(t,n,i,o,s),t.whitespace===!0&&Tt.whitespace(t,n,i,o,s))}r(o)},vW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),n!==void 0&&Tt.type(t,n,i,o,s)}r(o)},bW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),n!==void 0&&(Tt.type(t,n,i,o,s),Tt.range(t,n,i,o,s))}r(o)},yW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),n!==void 0&&Tt.type(t,n,i,o,s)}r(o)},_W=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),Sn(n)||Tt.type(t,n,i,o,s)}r(o)},wW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),n!==void 0&&(Tt.type(t,n,i,o,s),Tt.range(t,n,i,o,s))}r(o)},xW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),n!==void 0&&(Tt.type(t,n,i,o,s),Tt.range(t,n,i,o,s))}r(o)},CW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return r();Tt.required(t,n,i,o,s,"array"),n!=null&&(Tt.type(t,n,i,o,s),Tt.range(t,n,i,o,s))}r(o)},SW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),n!==void 0&&Tt.type(t,n,i,o,s)}r(o)},OW="enum",EW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),n!==void 0&&Tt[OW](t,n,i,o,s)}r(o)},MW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n,"string")&&!t.required)return r();Tt.required(t,n,i,o,s),Sn(n,"string")||Tt.pattern(t,n,i,o,s)}r(o)},TW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n,"date")&&!t.required)return r();if(Tt.required(t,n,i,o,s),!Sn(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Tt.type(t,u,i,o,s),u&&Tt.range(t,u.getTime(),i,o,s)}}r(o)},AW=function(t,n,r,i,s){var o=[],a=Array.isArray(n)?"array":typeof n;Tt.required(t,n,i,o,s,a),r(o)},xp=function(t,n,r,i,s){var o=t.type,a=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Sn(n,o)&&!t.required)return r();Tt.required(t,n,i,a,s,o),Sn(n,o)||Tt.type(t,n,i,a,s)}r(a)},PW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s)}r(o)},Kl={string:mW,method:vW,number:bW,boolean:yW,regexp:_W,integer:wW,float:xW,array:CW,object:SW,enum:EW,pattern:MW,date:TW,url:xp,hex:xp,email:xp,required:AW,any:PW};function Eg(){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 Mg=Eg(),Vu=function(){function e(n){this.rules=null,this._messages=Mg,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(s){var o=r[s];i.rules[s]=Array.isArray(o)?o:[o]})},t.messages=function(r){return r&&(this._messages=p1(Eg(),r)),this._messages},t.validate=function(r,i,s){var o=this;i===void 0&&(i={}),s===void 0&&(s=function(){});var a=r,u=i,c=s;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function d(v){var w=[],y={};function C(_){if(Array.isArray(_)){var E;w=(E=w).concat.apply(E,_)}else w.push(_)}for(var O=0;O");const i=Qe("form"),s=X(),o=X(0),a=()=>{var d;if((d=s.value)!=null&&d.firstElementChild){const h=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(h))}else return 0},u=(d="update")=>{bt(()=>{t.default&&e.isAutoWidth&&(d==="update"?o.value=a():d==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},c=()=>u("update");return Lt(()=>{c()}),An(()=>{u("remove")}),Xs(()=>c()),Ie(o,(d,h)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,h))}),Vs(z(()=>{var d,h;return(h=(d=s.value)==null?void 0:d.firstElementChild)!=null?h:null}),c),()=>{var d,h;if(!t)return null;const{isAutoWidth:g}=e;if(g){const m=n==null?void 0:n.autoLabelWidth,b=r==null?void 0:r.hasLabel,v={};if(b&&m&&m!=="auto"){const w=Math.max(0,Number.parseInt(m,10)-o.value),y=n.labelPosition==="left"?"marginRight":"marginLeft";w&&(v[y]=`${w}px`)}return H("div",{ref:s,class:[i.be("item","label-wrap")],style:v},[(d=t.default)==null?void 0:d.call(t)])}else return H(it,{ref:s},[(h=t.default)==null?void 0:h.call(t)])}}});const IW=["role","aria-labelledby"],$W=Fe({name:"ElFormItem"}),FW=Fe({...$W,props:kW,setup(e,{expose:t}){const n=e,r=Ko(),i=Ke(Za,void 0),s=Ke(Wo,void 0),o=ns(void 0,{formItem:!1}),a=Qe("form-item"),u=wu().value,c=X([]),d=X(""),h=NF(d,100),g=X(""),m=X();let b,v=!1;const w=z(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const Y=es(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return Y?{width:Y}:{}}),y=z(()=>{if((i==null?void 0:i.labelPosition)==="top"||i!=null&&i.inline)return{};if(!n.label&&!n.labelWidth&&$)return{};const Y=es(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return!n.label&&!r.label?{marginLeft:Y}:{}}),C=z(()=>[a.b(),a.m(o.value),a.is("error",d.value==="error"),a.is("validating",d.value==="validating"),a.is("success",d.value==="success"),a.is("required",ue.value||n.required),a.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[a.m("feedback")]:i==null?void 0:i.statusIcon}]),O=z(()=>Qi(n.inlineMessage)?n.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),_=z(()=>[a.e("error"),{[a.em("error","inline")]:O.value}]),E=z(()=>n.prop?mt(n.prop)?n.prop:n.prop.join("."):""),T=z(()=>!!(n.label||r.label)),P=z(()=>n.for||c.value.length===1?c.value[0]:void 0),R=z(()=>!P.value&&T.value),$=!!s,D=z(()=>{const Y=i==null?void 0:i.model;if(!(!Y||!n.prop))return Sf(Y,n.prop).value}),j=z(()=>{const{required:Y}=n,oe=[];n.rules&&oe.push(...fg(n.rules));const de=i==null?void 0:i.rules;if(de&&n.prop){const Oe=Sf(de,n.prop).value;Oe&&oe.push(...fg(Oe))}if(Y!==void 0){const Oe=oe.map((We,F)=>[We,F]).filter(([We])=>Object.keys(We).includes("required"));if(Oe.length>0)for(const[We,F]of Oe)We.required!==Y&&(oe[F]={...We,required:Y});else oe.push({required:Y})}return oe}),A=z(()=>j.value.length>0),U=Y=>j.value.filter(de=>!de.trigger||!Y?!0:Array.isArray(de.trigger)?de.trigger.includes(Y):de.trigger===Y).map(({trigger:de,...Oe})=>Oe),ue=z(()=>j.value.some(Y=>Y.required)),ce=z(()=>{var Y;return h.value==="error"&&n.showMessage&&((Y=i==null?void 0:i.showMessage)!=null?Y:!0)}),ne=z(()=>`${n.label||""}${(i==null?void 0:i.labelSuffix)||""}`),Q=Y=>{d.value=Y},ie=Y=>{var oe,de;const{errors:Oe,fields:We}=Y;(!Oe||!We)&&console.error(Y),Q("error"),g.value=Oe?(de=(oe=Oe==null?void 0:Oe[0])==null?void 0:oe.message)!=null?de:`${n.prop} is required`:"",i==null||i.emit("validate",n.prop,!1,g.value)},ee=()=>{Q("success"),i==null||i.emit("validate",n.prop,!0,"")},_e=async Y=>{const oe=E.value;return new Vu({[oe]:Y}).validate({[oe]:D.value},{firstFields:!0}).then(()=>(ee(),!0)).catch(Oe=>(ie(Oe),Promise.reject(Oe)))},Ee=async(Y,oe)=>{if(v||!n.prop)return!1;const de=Xe(oe);if(!A.value)return oe==null||oe(!1),!1;const Oe=U(Y);return Oe.length===0?(oe==null||oe(!0),!0):(Q("validating"),_e(Oe).then(()=>(oe==null||oe(!0),!0)).catch(We=>{const{fields:F}=We;return oe==null||oe(!1,F),de?!1:Promise.reject(F)}))},Z=()=>{Q(""),g.value="",v=!1},Ge=async()=>{const Y=i==null?void 0:i.model;if(!Y||!n.prop)return;const oe=Sf(Y,n.prop);v=!0,oe.value=K_(b),await bt(),Z(),v=!1},De=Y=>{c.value.includes(Y)||c.value.push(Y)},Ze=Y=>{c.value=c.value.filter(oe=>oe!==Y)};Ie(()=>n.error,Y=>{g.value=Y||"",Q(Y?"error":"")},{immediate:!0}),Ie(()=>n.validateStatus,Y=>Q(Y||""));const Je=vn({...Gs(n),$el:m,size:o,validateState:d,labelId:u,inputIds:c,isGroup:R,hasLabel:T,addInputId:De,removeInputId:Ze,resetField:Ge,clearValidate:Z,validate:Ee});return sn(Wo,Je),Lt(()=>{n.prop&&(i==null||i.addField(Je),b=K_(D.value))}),An(()=>{i==null||i.removeField(Je)}),t({size:o,validateMessage:g,validateState:d,validate:Ee,clearValidate:Z,resetField:Ge}),(Y,oe)=>{var de;return K(),ve("div",{ref_key:"formItemRef",ref:m,class:he(S(C)),role:S(R)?"group":void 0,"aria-labelledby":S(R)?S(u):void 0},[H(S(LW),{"is-auto-width":S(w).width==="auto","update-all":((de=S(i))==null?void 0:de.labelWidth)==="auto"},{default:B(()=>[S(T)?(K(),Te($n(S(P)?"label":"div"),{key:0,id:S(u),for:S(P),class:he(S(a).e("label")),style:jt(S(w))},{default:B(()=>[He(Y.$slots,"label",{label:S(ne)},()=>[le(pt(S(ne)),1)])]),_:3},8,["id","for","class","style"])):ke("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),I("div",{class:he(S(a).e("content")),style:jt(S(y))},[He(Y.$slots,"default"),H(vF,{name:`${S(a).namespace.value}-zoom-in-top`},{default:B(()=>[S(ce)?He(Y.$slots,"error",{key:0,error:g.value},()=>[I("div",{class:he(S(_))},pt(g.value),3)]):ke("v-if",!0)]),_:3},8,["name"])],6)],10,IW)}}});var r2=Et(FW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const DW=Pn(ZH,{FormItem:r2});Oi(r2);let Zr;const NW=` + height:0 !important; + visibility:hidden !important; + ${T4()?"":"overflow:hidden !important;"} + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; +`,BW=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function zW(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:BW.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function v1(e,t=1,n){var r;Zr||(Zr=document.createElement("textarea"),document.body.appendChild(Zr));const{paddingSize:i,borderSize:s,boxSizing:o,contextStyle:a}=zW(e);Zr.setAttribute("style",`${a};${NW}`),Zr.value=e.value||e.placeholder||"";let u=Zr.scrollHeight;const c={};o==="border-box"?u=u+s:o==="content-box"&&(u=u-i),Zr.value="";const d=Zr.scrollHeight-i;if(Vn(t)){let h=d*t;o==="border-box"&&(h=h+i+s),u=Math.max(h,u),c.minHeight=`${h}px`}if(Vn(n)){let h=d*n;o==="border-box"&&(h=h+i+s),u=Math.min(h,u)}return c.height=`${u}px`,(r=Zr.parentNode)==null||r.removeChild(Zr),Zr=void 0,c}const HW=$t({id:{type:String,default:void 0},size:Ja,disabled:Boolean,modelValue:{type:st([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:st([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:ni},prefixIcon:{type:ni},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:st([Object,Array,String]),default:()=>Oo({})}}),WW={[Ln]:e=>mt(e),input:e=>mt(e),change:e=>mt(e),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},jW=["role"],VW=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],UW=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],KW=Fe({name:"ElInput",inheritAttrs:!1}),qW=Fe({...KW,props:HW,emits:WW,setup(e,{expose:t,emit:n}){const r=e,i=v$(),s=Ko(),o=z(()=>{const re={};return r.containerRole==="combobox"&&(re["aria-haspopup"]=i["aria-haspopup"],re["aria-owns"]=i["aria-owns"],re["aria-expanded"]=i["aria-expanded"]),re}),a=z(()=>[r.type==="textarea"?w.b():v.b(),v.m(m.value),v.is("disabled",b.value),v.is("exceed",Ee.value),{[v.b("group")]:s.prepend||s.append,[v.bm("group","append")]:s.append,[v.bm("group","prepend")]:s.prepend,[v.m("prefix")]:s.prefix||r.prefixIcon,[v.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:Q.value&&ie.value},i.class]),u=z(()=>[v.e("wrapper"),v.is("focus",O.value)]),c=sz({excludeKeys:z(()=>Object.keys(o.value))}),{form:d,formItem:h}=Qa(),{inputId:g}=hv(r,{formItemContext:h}),m=ns(),b=zd(),v=Qe("input"),w=Qe("textarea"),y=Fs(),C=Fs(),O=X(!1),_=X(!1),E=X(!1),T=X(!1),P=X(),R=Fs(r.inputStyle),$=z(()=>y.value||C.value),D=z(()=>{var re;return(re=d==null?void 0:d.statusIcon)!=null?re:!1}),j=z(()=>(h==null?void 0:h.validateState)||""),A=z(()=>j.value&&Z6[j.value]),U=z(()=>T.value?j6:m6),ue=z(()=>[i.style,r.inputStyle]),ce=z(()=>[r.inputStyle,R.value,{resize:r.resize}]),ne=z(()=>Ra(r.modelValue)?"":String(r.modelValue)),Q=z(()=>r.clearable&&!b.value&&!r.readonly&&!!ne.value&&(O.value||_.value)),ie=z(()=>r.showPassword&&!b.value&&!r.readonly&&!!ne.value&&(!!ne.value||O.value)),ee=z(()=>r.showWordLimit&&!!c.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!b.value&&!r.readonly&&!r.showPassword),_e=z(()=>ne.value.length),Ee=z(()=>!!ee.value&&_e.value>Number(c.value.maxlength)),Z=z(()=>!!s.suffix||!!r.suffixIcon||Q.value||r.showPassword||ee.value||!!j.value&&D.value),[Ge,De]=MH(y);Vs(C,re=>{if(Y(),!ee.value||r.resize!=="both")return;const Me=re[0],{width:Ve}=Me.contentRect;P.value={right:`calc(100% - ${Ve+15+6}px)`}});const Ze=()=>{const{type:re,autosize:Me}=r;if(!(!tn||re!=="textarea"||!C.value))if(Me){const Ve=yt(Me)?Me.minRows:void 0,at=yt(Me)?Me.maxRows:void 0,ot=v1(C.value,Ve,at);R.value={overflowY:"hidden",...ot},bt(()=>{C.value.offsetHeight,R.value=ot})}else R.value={minHeight:v1(C.value).minHeight}},Y=(re=>{let Me=!1;return()=>{var Ve;if(Me||!r.autosize)return;((Ve=C.value)==null?void 0:Ve.offsetParent)===null||(re(),Me=!0)}})(Ze),oe=()=>{const re=$.value;!re||re.value===ne.value||(re.value=ne.value)},de=async re=>{Ge();let{value:Me}=re.target;if(r.formatter&&(Me=r.parser?r.parser(Me):Me,Me=r.formatter(Me)),!E.value){if(Me===ne.value){oe();return}n(Ln,Me),n("input",Me),await bt(),oe(),De()}},Oe=re=>{n("change",re.target.value)},We=re=>{n("compositionstart",re),E.value=!0},F=re=>{var Me;n("compositionupdate",re);const Ve=(Me=re.target)==null?void 0:Me.value,at=Ve[Ve.length-1]||"";E.value=!PS(at)},W=re=>{n("compositionend",re),E.value&&(E.value=!1,de(re))},q=()=>{T.value=!T.value,se()},se=async()=>{var re;await bt(),(re=$.value)==null||re.focus()},pe=()=>{var re;return(re=$.value)==null?void 0:re.blur()},me=re=>{O.value=!0,n("focus",re)},Ae=re=>{var Me;O.value=!1,n("blur",re),r.validateEvent&&((Me=h==null?void 0:h.validate)==null||Me.call(h,"blur").catch(Ve=>void 0))},Se=re=>{_.value=!1,n("mouseleave",re)},Ce=re=>{_.value=!0,n("mouseenter",re)},ge=re=>{n("keydown",re)},Ne=()=>{var re;(re=$.value)==null||re.select()},Pe=()=>{n(Ln,""),n("change",""),n("clear"),n("input","")};return Ie(()=>r.modelValue,()=>{var re;bt(()=>Ze()),r.validateEvent&&((re=h==null?void 0:h.validate)==null||re.call(h,"change").catch(Me=>void 0))}),Ie(ne,()=>oe()),Ie(()=>r.type,async()=>{await bt(),oe(),Ze()}),Lt(()=>{!r.formatter&&r.parser,oe(),bt(Ze)}),t({input:y,textarea:C,ref:$,textareaStyle:ce,autosize:Nr(r,"autosize"),focus:se,blur:pe,select:Ne,clear:Pe,resizeTextarea:Ze}),(re,Me)=>gn((K(),ve("div",Mr(S(o),{class:S(a),style:S(ue),role:re.containerRole,onMouseenter:Ce,onMouseleave:Se}),[ke(" input "),re.type!=="textarea"?(K(),ve(it,{key:0},[ke(" prepend slot "),re.$slots.prepend?(K(),ve("div",{key:0,class:he(S(v).be("group","prepend"))},[He(re.$slots,"prepend")],2)):ke("v-if",!0),I("div",{class:he(S(u))},[ke(" prefix slot "),re.$slots.prefix||re.prefixIcon?(K(),ve("span",{key:0,class:he(S(v).e("prefix"))},[I("span",{class:he(S(v).e("prefix-inner")),onClick:se},[He(re.$slots,"prefix"),re.prefixIcon?(K(),Te(S(wn),{key:0,class:he(S(v).e("icon"))},{default:B(()=>[(K(),Te($n(re.prefixIcon)))]),_:1},8,["class"])):ke("v-if",!0)],2)],2)):ke("v-if",!0),I("input",Mr({id:S(g),ref_key:"input",ref:y,class:S(v).e("inner")},S(c),{type:re.showPassword?T.value?"text":"password":re.type,disabled:S(b),formatter:re.formatter,parser:re.parser,readonly:re.readonly,autocomplete:re.autocomplete,tabindex:re.tabindex,"aria-label":re.label,placeholder:re.placeholder,style:re.inputStyle,form:r.form,onCompositionstart:We,onCompositionupdate:F,onCompositionend:W,onInput:de,onFocus:me,onBlur:Ae,onChange:Oe,onKeydown:ge}),null,16,VW),ke(" suffix slot "),S(Z)?(K(),ve("span",{key:1,class:he(S(v).e("suffix"))},[I("span",{class:he(S(v).e("suffix-inner")),onClick:se},[!S(Q)||!S(ie)||!S(ee)?(K(),ve(it,{key:0},[He(re.$slots,"suffix"),re.suffixIcon?(K(),Te(S(wn),{key:0,class:he(S(v).e("icon"))},{default:B(()=>[(K(),Te($n(re.suffixIcon)))]),_:1},8,["class"])):ke("v-if",!0)],64)):ke("v-if",!0),S(Q)?(K(),Te(S(wn),{key:1,class:he([S(v).e("icon"),S(v).e("clear")]),onMousedown:Cr(S(Cn),["prevent"]),onClick:Pe},{default:B(()=>[H(S(ev))]),_:1},8,["class","onMousedown"])):ke("v-if",!0),S(ie)?(K(),Te(S(wn),{key:2,class:he([S(v).e("icon"),S(v).e("password")]),onClick:q},{default:B(()=>[(K(),Te($n(S(U))))]),_:1},8,["class"])):ke("v-if",!0),S(ee)?(K(),ve("span",{key:3,class:he(S(v).e("count"))},[I("span",{class:he(S(v).e("count-inner"))},pt(S(_e))+" / "+pt(S(c).maxlength),3)],2)):ke("v-if",!0),S(j)&&S(A)&&S(D)?(K(),Te(S(wn),{key:4,class:he([S(v).e("icon"),S(v).e("validateIcon"),S(v).is("loading",S(j)==="validating")])},{default:B(()=>[(K(),Te($n(S(A))))]),_:1},8,["class"])):ke("v-if",!0)],2)],2)):ke("v-if",!0)],2),ke(" append slot "),re.$slots.append?(K(),ve("div",{key:1,class:he(S(v).be("group","append"))},[He(re.$slots,"append")],2)):ke("v-if",!0)],64)):(K(),ve(it,{key:1},[ke(" textarea "),I("textarea",Mr({id:S(g),ref_key:"textarea",ref:C,class:S(w).e("inner")},S(c),{tabindex:re.tabindex,disabled:S(b),readonly:re.readonly,autocomplete:re.autocomplete,style:S(ce),"aria-label":re.label,placeholder:re.placeholder,form:r.form,onCompositionstart:We,onCompositionupdate:F,onCompositionend:W,onInput:de,onFocus:me,onBlur:Ae,onChange:Oe,onKeydown:ge}),null,16,UW),S(ee)?(K(),ve("span",{key:0,style:jt(P.value),class:he(S(v).e("count"))},pt(S(_e))+" / "+pt(S(c).maxlength),7)):ke("v-if",!0)],64))],16,jW)),[[Wr,re.type!=="hidden"]])}});var YW=Et(qW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const el=Pn(YW),_a=4,GW={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"}},XW=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),i2=Symbol("scrollbarContextKey"),JW=$t({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),ZW="Thumb",QW=Fe({__name:"thumb",props:JW,setup(e){const t=e,n=Ke(i2),r=Qe("scrollbar");n||Us(ZW,"can not inject scrollbar context");const i=X(),s=X(),o=X({}),a=X(!1);let u=!1,c=!1,d=tn?document.onselectstart:null;const h=z(()=>GW[t.vertical?"vertical":"horizontal"]),g=z(()=>XW({size:t.size,move:t.move,bar:h.value})),m=z(()=>i.value[h.value.offset]**2/n.wrapElement[h.value.scrollSize]/t.ratio/s.value[h.value.offset]),b=T=>{var P;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(P=window.getSelection())==null||P.removeAllRanges(),w(T);const R=T.currentTarget;R&&(o.value[h.value.axis]=R[h.value.offset]-(T[h.value.client]-R.getBoundingClientRect()[h.value.direction]))},v=T=>{if(!s.value||!i.value||!n.wrapElement)return;const P=Math.abs(T.target.getBoundingClientRect()[h.value.direction]-T[h.value.client]),R=s.value[h.value.offset]/2,$=(P-R)*100*m.value/i.value[h.value.offset];n.wrapElement[h.value.scroll]=$*n.wrapElement[h.value.scrollSize]/100},w=T=>{T.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),d=document.onselectstart,document.onselectstart=()=>!1},y=T=>{if(!i.value||!s.value||u===!1)return;const P=o.value[h.value.axis];if(!P)return;const R=(i.value.getBoundingClientRect()[h.value.direction]-T[h.value.client])*-1,$=s.value[h.value.offset]-P,D=(R-$)*100*m.value/i.value[h.value.offset];n.wrapElement[h.value.scroll]=D*n.wrapElement[h.value.scrollSize]/100},C=()=>{u=!1,o.value[h.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",C),E(),c&&(a.value=!1)},O=()=>{c=!1,a.value=!!t.size},_=()=>{c=!0,a.value=u};An(()=>{E(),document.removeEventListener("mouseup",C)});const E=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return _i(Nr(n,"scrollbarElement"),"mousemove",O),_i(Nr(n,"scrollbarElement"),"mouseleave",_),(T,P)=>(K(),Te(Hr,{name:S(r).b("fade"),persisted:""},{default:B(()=>[gn(I("div",{ref_key:"instance",ref:i,class:he([S(r).e("bar"),S(r).is(S(h).key)]),onMousedown:v},[I("div",{ref_key:"thumb",ref:s,class:he(S(r).e("thumb")),style:jt(S(g)),onMousedown:b},null,38)],34),[[Wr,T.always||a.value]])]),_:1},8,["name"]))}});var b1=Et(QW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const ej=$t({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),tj=Fe({__name:"bar",props:ej,setup(e,{expose:t}){const n=e,r=X(0),i=X(0);return t({handleScroll:o=>{if(o){const a=o.offsetHeight-_a,u=o.offsetWidth-_a;i.value=o.scrollTop*100/a*n.ratioY,r.value=o.scrollLeft*100/u*n.ratioX}}}),(o,a)=>(K(),ve(it,null,[H(b1,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),H(b1,{move:i.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var nj=Et(tj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const rj=$t({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:st([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}}),ij={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Vn)},sj="ElScrollbar",oj=Fe({name:sj}),aj=Fe({...oj,props:rj,emits:ij,setup(e,{expose:t,emit:n}){const r=e,i=Qe("scrollbar");let s,o;const a=X(),u=X(),c=X(),d=X("0"),h=X("0"),g=X(),m=X(1),b=X(1),v=z(()=>{const P={};return r.height&&(P.height=es(r.height)),r.maxHeight&&(P.maxHeight=es(r.maxHeight)),[r.wrapStyle,P]}),w=z(()=>[r.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!r.native}]),y=z(()=>[i.e("view"),r.viewClass]),C=()=>{var P;u.value&&((P=g.value)==null||P.handleScroll(u.value),n("scroll",{scrollTop:u.value.scrollTop,scrollLeft:u.value.scrollLeft}))};function O(P,R){yt(P)?u.value.scrollTo(P):Vn(P)&&Vn(R)&&u.value.scrollTo(P,R)}const _=P=>{Vn(P)&&(u.value.scrollTop=P)},E=P=>{Vn(P)&&(u.value.scrollLeft=P)},T=()=>{if(!u.value)return;const P=u.value.offsetHeight-_a,R=u.value.offsetWidth-_a,$=P**2/u.value.scrollHeight,D=R**2/u.value.scrollWidth,j=Math.max($,r.minSize),A=Math.max(D,r.minSize);m.value=$/(P-$)/(j/(P-j)),b.value=D/(R-D)/(A/(R-A)),h.value=j+_ar.noresize,P=>{P?(s==null||s(),o==null||o()):({stop:s}=Vs(c,T),o=_i("resize",T))},{immediate:!0}),Ie(()=>[r.maxHeight,r.height],()=>{r.native||bt(()=>{var P;T(),u.value&&((P=g.value)==null||P.handleScroll(u.value))})}),sn(i2,vn({scrollbarElement:a,wrapElement:u})),Lt(()=>{r.native||bt(()=>{T()})}),Xs(()=>T()),t({wrapRef:u,update:T,scrollTo:O,setScrollTop:_,setScrollLeft:E,handleScroll:C}),(P,R)=>(K(),ve("div",{ref_key:"scrollbarRef",ref:a,class:he(S(i).b())},[I("div",{ref_key:"wrapRef",ref:u,class:he(S(w)),style:jt(S(v)),onScroll:C},[(K(),Te($n(P.tag),{ref_key:"resizeRef",ref:c,class:he(S(y)),style:jt(P.viewStyle)},{default:B(()=>[He(P.$slots,"default")]),_:3},8,["class","style"]))],38),P.native?ke("v-if",!0):(K(),Te(nj,{key:0,ref_key:"barRef",ref:g,height:h.value,width:d.value,always:P.always,"ratio-x":b.value,"ratio-y":m.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var lj=Et(aj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const pv=Pn(lj),gv=Symbol("popper"),s2=Symbol("popperContent"),uj=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],o2=$t({role:{type:String,values:uj,default:"tooltip"}}),cj=Fe({name:"ElPopper",inheritAttrs:!1}),fj=Fe({...cj,props:o2,setup(e,{expose:t}){const n=e,r=X(),i=X(),s=X(),o=X(),a=z(()=>n.role),u={triggerRef:r,popperInstanceRef:i,contentRef:s,referenceRef:o,role:a};return t(u),sn(gv,u),(c,d)=>He(c.$slots,"default")}});var dj=Et(fj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const a2=$t({arrowOffset:{type:Number,default:5}}),hj=Fe({name:"ElPopperArrow",inheritAttrs:!1}),pj=Fe({...hj,props:a2,setup(e,{expose:t}){const n=e,r=Qe("popper"),{arrowOffset:i,arrowRef:s,arrowStyle:o}=Ke(s2,void 0);return Ie(()=>n.arrowOffset,a=>{i.value=a}),An(()=>{s.value=void 0}),t({arrowRef:s}),(a,u)=>(K(),ve("span",{ref_key:"arrowRef",ref:s,class:he(S(r).e("arrow")),style:jt(S(o)),"data-popper-arrow":""},null,6))}});var gj=Et(pj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const mj="ElOnlyChild",vj=Fe({name:mj,setup(e,{slots:t,attrs:n}){var r;const i=Ke(JS),s=OH((r=i==null?void 0:i.setForwardRef)!=null?r:Cn);return()=>{var o;const a=(o=t.default)==null?void 0:o.call(t,n);if(!a||a.length>1)return null;const u=l2(a);return u?gn(Zi(u,n),[[s]]):null}}});function l2(e){if(!e)return null;const t=e;for(const n of t){if(yt(n))switch(n.type){case ar:continue;case Ga:case"svg":return y1(n);case it:return l2(n.children);default:return n}return y1(n)}return null}function y1(e){const t=Qe("only-child");return H("span",{class:t.e("content")},[e])}const u2=$t({virtualRef:{type:st(Object)},virtualTriggering:Boolean,onMouseenter:{type:st(Function)},onMouseleave:{type:st(Function)},onClick:{type:st(Function)},onKeydown:{type:st(Function)},onFocus:{type:st(Function)},onBlur:{type:st(Function)},onContextmenu:{type:st(Function)},id:String,open:Boolean}),bj=Fe({name:"ElPopperTrigger",inheritAttrs:!1}),yj=Fe({...bj,props:u2,setup(e,{expose:t}){const n=e,{role:r,triggerRef:i}=Ke(gv,void 0);SH(i);const s=z(()=>a.value?n.id:void 0),o=z(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),a=z(()=>{if(r&&r.value!=="tooltip")return r.value}),u=z(()=>a.value?`${n.open}`:void 0);let c;return Lt(()=>{Ie(()=>n.virtualRef,d=>{d&&(i.value=Ms(d))},{immediate:!0}),Ie(i,(d,h)=>{c==null||c(),c=void 0,ka(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(g=>{var m;const b=n[g];b&&(d.addEventListener(g.slice(2).toLowerCase(),b),(m=h==null?void 0:h.removeEventListener)==null||m.call(h,g.slice(2).toLowerCase(),b))}),c=Ie([s,o,a,u],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,b)=>{Ra(g[b])?d.removeAttribute(m):d.setAttribute(m,g[b])})},{immediate:!0})),ka(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>h.removeAttribute(g))},{immediate:!0})}),An(()=>{c==null||c(),c=void 0}),t({triggerRef:i}),(d,h)=>d.virtualTriggering?ke("v-if",!0):(K(),Te(S(vj),Mr({key:0},d.$attrs,{"aria-controls":S(s),"aria-describedby":S(o),"aria-expanded":S(u),"aria-haspopup":S(a)}),{default:B(()=>[He(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var _j=Et(yj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Cp="focus-trap.focus-after-trapped",Sp="focus-trap.focus-after-released",wj="focus-trap.focusout-prevented",_1={cancelable:!0,bubbles:!1},xj={cancelable:!0,bubbles:!1},w1="focusAfterTrapped",x1="focusAfterReleased",c2=Symbol("elFocusTrap"),mv=X(),Hd=X(0),vv=X(0);let Gc=0;const f2=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},C1=(e,t)=>{for(const n of e)if(!Cj(n,t))return n},Cj=(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},Sj=e=>{const t=f2(e),n=C1(t,e),r=C1(t.reverse(),e);return[n,r]},Oj=e=>e instanceof HTMLInputElement&&"select"in e,xs=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),vv.value=window.performance.now(),e!==n&&Oj(e)&&t&&e.select()}};function S1(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const Ej=()=>{let e=[];return{push:r=>{const i=e[0];i&&r!==i&&i.pause(),e=S1(e,r),e.unshift(r)},remove:r=>{var i,s;e=S1(e,r),(s=(i=e[0])==null?void 0:i.resume)==null||s.call(i)}}},Mj=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(xs(r,t),document.activeElement!==n)return},O1=Ej(),Tj=()=>Hd.value>vv.value,Xc=()=>{mv.value="pointer",Hd.value=window.performance.now()},E1=()=>{mv.value="keyboard",Hd.value=window.performance.now()},Aj=()=>(Lt(()=>{Gc===0&&(document.addEventListener("mousedown",Xc),document.addEventListener("touchstart",Xc),document.addEventListener("keydown",E1)),Gc++}),An(()=>{Gc--,Gc<=0&&(document.removeEventListener("mousedown",Xc),document.removeEventListener("touchstart",Xc),document.removeEventListener("keydown",E1))}),{focusReason:mv,lastUserFocusTimestamp:Hd,lastAutomatedFocusTimestamp:vv}),Jc=e=>new CustomEvent(wj,{...xj,detail:e}),Pj=Fe({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[w1,x1,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=X();let r,i;const{focusReason:s}=Aj();_H(b=>{e.trapped&&!o.paused&&t("release-requested",b)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=b=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:v,altKey:w,ctrlKey:y,metaKey:C,currentTarget:O,shiftKey:_}=b,{loop:E}=e,T=v===jn.tab&&!w&&!y&&!C,P=document.activeElement;if(T&&P){const R=O,[$,D]=Sj(R);if($&&D){if(!_&&P===D){const A=Jc({focusReason:s.value});t("focusout-prevented",A),A.defaultPrevented||(b.preventDefault(),E&&xs($,!0))}else if(_&&[$,R].includes(P)){const A=Jc({focusReason:s.value});t("focusout-prevented",A),A.defaultPrevented||(b.preventDefault(),E&&xs(D,!0))}}else if(P===R){const A=Jc({focusReason:s.value});t("focusout-prevented",A),A.defaultPrevented||b.preventDefault()}}};sn(c2,{focusTrapRef:n,onKeydown:a}),Ie(()=>e.focusTrapEl,b=>{b&&(n.value=b)},{immediate:!0}),Ie([n],([b],[v])=>{b&&(b.addEventListener("keydown",a),b.addEventListener("focusin",d),b.addEventListener("focusout",h)),v&&(v.removeEventListener("keydown",a),v.removeEventListener("focusin",d),v.removeEventListener("focusout",h))});const u=b=>{t(w1,b)},c=b=>t(x1,b),d=b=>{const v=S(n);if(!v)return;const w=b.target,y=b.relatedTarget,C=w&&v.contains(w);e.trapped||y&&v.contains(y)||(r=y),C&&t("focusin",b),!o.paused&&e.trapped&&(C?i=w:xs(i,!0))},h=b=>{const v=S(n);if(!(o.paused||!v))if(e.trapped){const w=b.relatedTarget;!Ra(w)&&!v.contains(w)&&setTimeout(()=>{if(!o.paused&&e.trapped){const y=Jc({focusReason:s.value});t("focusout-prevented",y),y.defaultPrevented||xs(i,!0)}},0)}else{const w=b.target;w&&v.contains(w)||t("focusout",b)}};async function g(){await bt();const b=S(n);if(b){O1.push(o);const v=b.contains(document.activeElement)?r:document.activeElement;if(r=v,!b.contains(v)){const y=new Event(Cp,_1);b.addEventListener(Cp,u),b.dispatchEvent(y),y.defaultPrevented||bt(()=>{let C=e.focusStartEl;mt(C)||(xs(C),document.activeElement!==C&&(C="first")),C==="first"&&Mj(f2(b),!0),(document.activeElement===v||C==="container")&&xs(b)})}}}function m(){const b=S(n);if(b){b.removeEventListener(Cp,u);const v=new CustomEvent(Sp,{..._1,detail:{focusReason:s.value}});b.addEventListener(Sp,c),b.dispatchEvent(v),!v.defaultPrevented&&(s.value=="keyboard"||!Tj()||b.contains(document.activeElement))&&xs(r??document.body),b.removeEventListener(Sp,u),O1.remove(o)}}return Lt(()=>{e.trapped&&g(),Ie(()=>e.trapped,b=>{b?g():m()})}),An(()=>{e.trapped&&m()}),{onKeydown:a}}});function Rj(e,t,n,r,i,s){return He(e.$slots,"default",{handleKeydown:e.onKeydown})}var bv=Et(Pj,[["render",Rj],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const kj=["fixed","absolute"],Lj=$t({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:st(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Nd,default:"bottom"},popperOptions:{type:st(Object),default:()=>({})},strategy:{type:String,values:kj,default:"absolute"}}),d2=$t({...Lj,id:String,style:{type:st([String,Array,Object])},className:{type:st([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:st([String,Array,Object])},popperStyle:{type:st([String,Array,Object])},referenceEl:{type:st(Object)},triggerTargetEl:{type:st(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Ij={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},$j=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:i}=e,s={placement:n,strategy:r,...i,modifiers:[...Dj(e),...t]};return Nj(s,i==null?void 0:i.modifiers),s},Fj=e=>{if(tn)return Ms(e)};function Dj(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Nj(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Bj=0,zj=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:i}=Ke(gv,void 0),s=X(),o=X(),a=z(()=>({name:"eventListeners",enabled:!!e.visible})),u=z(()=>{var y;const C=S(s),O=(y=S(o))!=null?y:Bj;return{name:"arrow",enabled:!h5(C),options:{element:C,padding:O}}}),c=z(()=>({onFirstUpdate:()=>{b()},...$j(e,[S(u),S(a)])})),d=z(()=>Fj(e.referenceEl)||S(r)),{attributes:h,state:g,styles:m,update:b,forceUpdate:v,instanceRef:w}=vH(d,n,c);return Ie(w,y=>t.value=y),Lt(()=>{Ie(()=>{var y;return(y=S(d))==null?void 0:y.getBoundingClientRect()},()=>{b()})}),{attributes:h,arrowRef:s,contentRef:n,instanceRef:w,state:g,styles:m,role:i,forceUpdate:v,update:b}},Hj=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:i}=fv(),s=Qe("popper"),o=z(()=>S(t).popper),a=X(e.zIndex||i()),u=z(()=>[s.b(),s.is("pure",e.pure),s.is(e.effect),e.popperClass]),c=z(()=>[{zIndex:S(a)},e.popperStyle||{},S(n).popper]),d=z(()=>r.value==="dialog"?"false":void 0),h=z(()=>S(n).arrow||{});return{ariaModal:d,arrowStyle:h,contentAttrs:o,contentClass:u,contentStyle:c,contentZIndex:a,updateZIndex:()=>{a.value=e.zIndex||i()}}},Wj=(e,t)=>{const n=X(!1),r=X();return{focusStartRef:r,trapped:n,onFocusAfterReleased:c=>{var d;((d=c.detail)==null?void 0:d.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:c=>{e.visible&&!n.value&&(c.target&&(r.value=c.target),n.value=!0)},onFocusoutPrevented:c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},jj=Fe({name:"ElPopperContent"}),Vj=Fe({...jj,props:d2,emits:Ij,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:i,trapped:s,onFocusAfterReleased:o,onFocusAfterTrapped:a,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:d}=Wj(r,n),{attributes:h,arrowRef:g,contentRef:m,styles:b,instanceRef:v,role:w,update:y}=zj(r),{ariaModal:C,arrowStyle:O,contentAttrs:_,contentClass:E,contentStyle:T,updateZIndex:P}=Hj(r,{styles:b,attributes:h,role:w}),R=Ke(Wo,void 0),$=X();sn(s2,{arrowStyle:O,arrowRef:g,arrowOffset:$}),R&&(R.addInputId||R.removeInputId)&&sn(Wo,{...R,addInputId:Cn,removeInputId:Cn});let D;const j=(U=!0)=>{y(),U&&P()},A=()=>{j(!1),r.visible&&r.focusOnShow?s.value=!0:r.visible===!1&&(s.value=!1)};return Lt(()=>{Ie(()=>r.triggerTargetEl,(U,ue)=>{D==null||D(),D=void 0;const ce=S(U||m.value),ne=S(ue||m.value);ka(ce)&&(D=Ie([w,()=>r.ariaLabel,C,()=>r.id],Q=>{["role","aria-label","aria-modal","id"].forEach((ie,ee)=>{Ra(Q[ee])?ce.removeAttribute(ie):ce.setAttribute(ie,Q[ee])})},{immediate:!0})),ne!==ce&&ka(ne)&&["role","aria-label","aria-modal","id"].forEach(Q=>{ne.removeAttribute(Q)})},{immediate:!0}),Ie(()=>r.visible,A,{immediate:!0})}),An(()=>{D==null||D(),D=void 0}),t({popperContentRef:m,popperInstanceRef:v,updatePopper:j,contentStyle:T}),(U,ue)=>(K(),ve("div",Mr({ref_key:"contentRef",ref:m},S(_),{style:S(T),class:S(E),tabindex:"-1",onMouseenter:ue[0]||(ue[0]=ce=>U.$emit("mouseenter",ce)),onMouseleave:ue[1]||(ue[1]=ce=>U.$emit("mouseleave",ce))}),[H(S(bv),{trapped:S(s),"trap-on-focus-in":!0,"focus-trap-el":S(m),"focus-start-el":S(i),onFocusAfterTrapped:S(a),onFocusAfterReleased:S(o),onFocusin:S(u),onFocusoutPrevented:S(c),onReleaseRequested:S(d)},{default:B(()=>[He(U.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Uj=Et(Vj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Kj=Pn(dj),yv=Symbol("elTooltip"),_v=$t({...CH,...d2,appendTo:{type:st([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:st(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),h2=$t({...u2,disabled:Boolean,trigger:{type:st([String,Array]),default:"hover"},triggerKeys:{type:st(Array),default:()=>[jn.enter,jn.space]}}),{useModelToggleProps:qj,useModelToggleEmits:Yj,useModelToggle:Gj}=LS("visible"),Xj=$t({...o2,...qj,..._v,...h2,...a2,showArrow:{type:Boolean,default:!0}}),Jj=[...Yj,"before-show","before-hide","show","hide","open","close"],Zj=(e,t)=>ze(e)?e.includes(t):e===t,pa=(e,t,n)=>r=>{Zj(S(e),t)&&n(r)},Qj=Fe({name:"ElTooltipTrigger"}),eV=Fe({...Qj,props:h2,setup(e,{expose:t}){const n=e,r=Qe("tooltip"),{controlled:i,id:s,open:o,onOpen:a,onClose:u,onToggle:c}=Ke(yv,void 0),d=X(null),h=()=>{if(S(i)||n.disabled)return!0},g=Nr(n,"trigger"),m=Ki(h,pa(g,"hover",a)),b=Ki(h,pa(g,"hover",u)),v=Ki(h,pa(g,"click",_=>{_.button===0&&c(_)})),w=Ki(h,pa(g,"focus",a)),y=Ki(h,pa(g,"focus",u)),C=Ki(h,pa(g,"contextmenu",_=>{_.preventDefault(),c(_)})),O=Ki(h,_=>{const{code:E}=_;n.triggerKeys.includes(E)&&(_.preventDefault(),c(_))});return t({triggerRef:d}),(_,E)=>(K(),Te(S(_j),{id:S(s),"virtual-ref":_.virtualRef,open:S(o),"virtual-triggering":_.virtualTriggering,class:he(S(r).e("trigger")),onBlur:S(y),onClick:S(v),onContextmenu:S(C),onFocus:S(w),onMouseenter:S(m),onMouseleave:S(b),onKeydown:S(O)},{default:B(()=>[He(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var tV=Et(eV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const nV=Fe({name:"ElTooltipContent",inheritAttrs:!1}),rV=Fe({...nV,props:_v,setup(e,{expose:t}){const n=e,{selector:r}=GS(),i=Qe("tooltip"),s=X(null),o=X(!1),{controlled:a,id:u,open:c,trigger:d,onClose:h,onOpen:g,onShow:m,onHide:b,onBeforeShow:v,onBeforeHide:w}=Ke(yv,void 0),y=z(()=>n.transition||`${i.namespace.value}-fade-in-linear`),C=z(()=>n.persistent);An(()=>{o.value=!0});const O=z(()=>S(C)?!0:S(c)),_=z(()=>n.disabled?!1:S(c)),E=z(()=>n.appendTo||r.value),T=z(()=>{var Q;return(Q=n.style)!=null?Q:{}}),P=z(()=>!S(c)),R=()=>{b()},$=()=>{if(S(a))return!0},D=Ki($,()=>{n.enterable&&S(d)==="hover"&&g()}),j=Ki($,()=>{S(d)==="hover"&&h()}),A=()=>{var Q,ie;(ie=(Q=s.value)==null?void 0:Q.updatePopper)==null||ie.call(Q),v==null||v()},U=()=>{w==null||w()},ue=()=>{m(),ne=ZF(z(()=>{var Q;return(Q=s.value)==null?void 0:Q.popperContentRef}),()=>{if(S(a))return;S(d)!=="hover"&&h()})},ce=()=>{n.virtualTriggering||h()};let ne;return Ie(()=>S(c),Q=>{Q||ne==null||ne()},{flush:"post"}),Ie(()=>n.content,()=>{var Q,ie;(ie=(Q=s.value)==null?void 0:Q.updatePopper)==null||ie.call(Q)}),t({contentRef:s}),(Q,ie)=>(K(),Te(Lm,{disabled:!Q.teleported,to:S(E)},[H(Hr,{name:S(y),onAfterLeave:R,onBeforeEnter:A,onAfterEnter:ue,onBeforeLeave:U},{default:B(()=>[S(O)?gn((K(),Te(S(Uj),Mr({key:0,id:S(u),ref_key:"contentRef",ref:s},Q.$attrs,{"aria-label":Q.ariaLabel,"aria-hidden":S(P),"boundaries-padding":Q.boundariesPadding,"fallback-placements":Q.fallbackPlacements,"gpu-acceleration":Q.gpuAcceleration,offset:Q.offset,placement:Q.placement,"popper-options":Q.popperOptions,strategy:Q.strategy,effect:Q.effect,enterable:Q.enterable,pure:Q.pure,"popper-class":Q.popperClass,"popper-style":[Q.popperStyle,S(T)],"reference-el":Q.referenceEl,"trigger-target-el":Q.triggerTargetEl,visible:S(_),"z-index":Q.zIndex,onMouseenter:S(D),onMouseleave:S(j),onBlur:ce,onClose:S(h)}),{default:B(()=>[o.value?ke("v-if",!0):He(Q.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Wr,S(_)]]):ke("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var iV=Et(rV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const sV=["innerHTML"],oV={key:1},aV=Fe({name:"ElTooltip"}),lV=Fe({...aV,props:Xj,emits:Jj,setup(e,{expose:t,emit:n}){const r=e;xH();const i=wu(),s=X(),o=X(),a=()=>{var y;const C=S(s);C&&((y=C.popperInstanceRef)==null||y.update())},u=X(!1),c=X(),{show:d,hide:h,hasUpdateHandler:g}=Gj({indicator:u,toggleReason:c}),{onOpen:m,onClose:b}=XS({showAfter:Nr(r,"showAfter"),hideAfter:Nr(r,"hideAfter"),autoClose:Nr(r,"autoClose"),open:d,close:h}),v=z(()=>Qi(r.visible)&&!g.value);sn(yv,{controlled:v,id:i,open:Iu(u),trigger:Nr(r,"trigger"),onOpen:y=>{m(y)},onClose:y=>{b(y)},onToggle:y=>{S(u)?b(y):m(y)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:a}),Ie(()=>r.disabled,y=>{y&&u.value&&(u.value=!1)});const w=()=>{var y,C;const O=(C=(y=o.value)==null?void 0:y.contentRef)==null?void 0:C.popperContentRef;return O&&O.contains(document.activeElement)};return uC(()=>u.value&&h()),t({popperRef:s,contentRef:o,isFocusInsideContent:w,updatePopper:a,onOpen:m,onClose:b,hide:h}),(y,C)=>(K(),Te(S(Kj),{ref_key:"popperRef",ref:s,role:y.role},{default:B(()=>[H(tV,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:B(()=>[y.$slots.default?He(y.$slots,"default",{key:0}):ke("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),H(iV,{ref_key:"contentRef",ref:o,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:B(()=>[He(y.$slots,"content",{},()=>[y.rawContent?(K(),ve("span",{key:0,innerHTML:y.content},null,8,sV)):(K(),ve("span",oV,pt(y.content),1))]),y.showArrow?(K(),Te(S(gj),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):ke("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var uV=Et(lV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Wd=Pn(uV),p2=Symbol("buttonGroupContextKey"),cV=(e,t)=>{Ho({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},z(()=>e.type==="text"));const n=Ke(p2,void 0),r=dv("button"),{form:i}=Qa(),s=ns(z(()=>n==null?void 0:n.size)),o=zd(),a=X(),u=Ko(),c=z(()=>e.type||(n==null?void 0:n.type)||""),d=z(()=>{var b,v,w;return(w=(v=e.autoInsertSpace)!=null?v:(b=r.value)==null?void 0:b.autoInsertSpace)!=null?w:!1}),h=z(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),g=z(()=>{var b;const v=(b=u.default)==null?void 0:b.call(u);if(d.value&&(v==null?void 0:v.length)===1){const w=v[0];if((w==null?void 0:w.type)===Ga){const y=w.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1});return{_disabled:o,_size:s,_type:c,_ref:a,_props:h,shouldAddSpace:g,handleClick:b=>{e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",b)}}},fV=["default","primary","success","warning","info","danger","text",""],dV=["button","submit","reset"],Tg=$t({size:Ja,disabled:Boolean,type:{type:String,values:fV,default:""},icon:{type:ni},nativeType:{type:String,values:dV,default:"button"},loading:Boolean,loadingIcon:{type:ni,default:()=>tv},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:st([String,Object]),default:"button"}}),hV={click:e=>e instanceof MouseEvent};function Fn(e,t){pV(e)&&(e="100%");var n=gV(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 Zc(e){return Math.min(1,Math.max(0,e))}function pV(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function gV(e){return typeof e=="string"&&e.indexOf("%")!==-1}function g2(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Qc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Po(e){return e.length===1?"0"+e:String(e)}function mV(e,t,n){return{r:Fn(e,255)*255,g:Fn(t,255)*255,b:Fn(n,255)*255}}function M1(e,t,n){e=Fn(e,255),t=Fn(t,255),n=Fn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),s=0,o=0,a=(r+i)/2;if(r===i)o=0,s=0;else{var u=r-i;switch(o=a>.5?u/(2-r-i):u/(r+i),r){case e:s=(t-n)/u+(t1&&(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 vV(e,t,n){var r,i,s;if(e=Fn(e,360),t=Fn(t,100),n=Fn(n,100),t===0)i=n,s=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,a=2*n-o;r=Op(a,o,e+1/3),i=Op(a,o,e),s=Op(a,o,e-1/3)}return{r:r*255,g:i*255,b:s*255}}function T1(e,t,n){e=Fn(e,255),t=Fn(t,255),n=Fn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),s=0,o=r,a=r-i,u=r===0?0:a/r;if(r===i)s=0;else{switch(r){case e:s=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var Ag={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 xV(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,s=null,o=!1,a=!1;return typeof e=="string"&&(e=OV(e)),typeof e=="object"&&(Di(e.r)&&Di(e.g)&&Di(e.b)?(t=mV(e.r,e.g,e.b),o=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Di(e.h)&&Di(e.s)&&Di(e.v)?(r=Qc(e.s),i=Qc(e.v),t=bV(e.h,r,i),o=!0,a="hsv"):Di(e.h)&&Di(e.s)&&Di(e.l)&&(r=Qc(e.s),s=Qc(e.l),t=vV(e.h,r,s),o=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=g2(n),{ok:o,format:e.format||a,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 CV="[-\\+]?\\d+%?",SV="[-\\+]?\\d*\\.\\d+%?",Ts="(?:".concat(SV,")|(?:").concat(CV,")"),Ep="[\\s|\\(]+(".concat(Ts,")[,|\\s]+(").concat(Ts,")[,|\\s]+(").concat(Ts,")\\s*\\)?"),Mp="[\\s|\\(]+(".concat(Ts,")[,|\\s]+(").concat(Ts,")[,|\\s]+(").concat(Ts,")[,|\\s]+(").concat(Ts,")\\s*\\)?"),Qr={CSS_UNIT:new RegExp(Ts),rgb:new RegExp("rgb"+Ep),rgba:new RegExp("rgba"+Mp),hsl:new RegExp("hsl"+Ep),hsla:new RegExp("hsla"+Mp),hsv:new RegExp("hsv"+Ep),hsva:new RegExp("hsva"+Mp),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 OV(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ag[e])e=Ag[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Qr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Qr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Qr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Qr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Qr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Qr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Qr.hex8.exec(e),n?{r:_r(n[1]),g:_r(n[2]),b:_r(n[3]),a:P1(n[4]),format:t?"name":"hex8"}:(n=Qr.hex6.exec(e),n?{r:_r(n[1]),g:_r(n[2]),b:_r(n[3]),format:t?"name":"hex"}:(n=Qr.hex4.exec(e),n?{r:_r(n[1]+n[1]),g:_r(n[2]+n[2]),b:_r(n[3]+n[3]),a:P1(n[4]+n[4]),format:t?"name":"hex8"}:(n=Qr.hex3.exec(e),n?{r:_r(n[1]+n[1]),g:_r(n[2]+n[2]),b:_r(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Di(e){return!!Qr.CSS_UNIT.exec(String(e))}var m2=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=wV(t)),this.originalInput=t;var i=xV(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.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=i.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,r,i,s=t.r/255,o=t.g/255,a=t.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=g2(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=T1(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=T1(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=M1(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=M1(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),A1(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),yV(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),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Fn(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(Fn(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="#"+A1(this.r,this.g,this.b,!1),n=0,r=Object.entries(Ag);n=0,s=!n&&i&&(t.startsWith("hex")||t==="name");return s?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||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=Zc(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=Zc(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=Zc(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=Zc(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),s=n/100,o={r:(i.r-r.r)*s+r.r,g:(i.g-r.g)*s+r.g,b:(i.b-r.b)*s+r.b,a:(i.a-r.a)*s+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,s=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,s.push(new e(r));return s},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(),r=n.h,i=n.s,s=n.v,o=[],a=1/t;t--;)o.push(new e({h:r,s:i,v:s})),s=(s+a)%1;return o},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(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},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(),r=n.h,i=[this],s=360/t,o=1;o{let r={};const i=e.color;if(i){const s=new m2(i),o=e.dark?s.tint(20).toString():ys(s,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?ys(s,90):s.tint(90).toString(),"text-color":i,"border-color":e.dark?ys(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":o,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?ys(s,90):s.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?ys(s,50):s.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?ys(s,80):s.tint(80).toString());else{const a=e.dark?ys(s,30):s.tint(30).toString(),u=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":u,"border-color":i,"hover-bg-color":a,"hover-text-color":u,"hover-border-color":a,"active-bg-color":o,"active-border-color":o}),t.value){const c=e.dark?ys(s,50):s.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=c,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=c}}}return r})}const MV=Fe({name:"ElButton"}),TV=Fe({...MV,props:Tg,emits:hV,setup(e,{expose:t,emit:n}){const r=e,i=EV(r),s=Qe("button"),{_ref:o,_size:a,_type:u,_disabled:c,_props:d,shouldAddSpace:h,handleClick:g}=cV(r,n);return t({ref:o,size:a,type:u,disabled:c,shouldAddSpace:h}),(m,b)=>(K(),Te($n(m.tag),Mr({ref_key:"_ref",ref:o},S(d),{class:[S(s).b(),S(s).m(S(u)),S(s).m(S(a)),S(s).is("disabled",S(c)),S(s).is("loading",m.loading),S(s).is("plain",m.plain),S(s).is("round",m.round),S(s).is("circle",m.circle),S(s).is("text",m.text),S(s).is("link",m.link),S(s).is("has-bg",m.bg)],style:S(i),onClick:S(g)}),{default:B(()=>[m.loading?(K(),ve(it,{key:0},[m.$slots.loading?He(m.$slots,"loading",{key:0}):(K(),Te(S(wn),{key:1,class:he(S(s).is("loading"))},{default:B(()=>[(K(),Te($n(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(K(),Te(S(wn),{key:1},{default:B(()=>[m.icon?(K(),Te($n(m.icon),{key:0})):He(m.$slots,"icon",{key:1})]),_:3})):ke("v-if",!0),m.$slots.default?(K(),ve("span",{key:2,class:he({[S(s).em("text","expand")]:S(h)})},[He(m.$slots,"default")],2)):ke("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var AV=Et(TV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const PV={size:Tg.size,type:Tg.type},RV=Fe({name:"ElButtonGroup"}),kV=Fe({...RV,props:PV,setup(e){const t=e;sn(p2,vn({size:Nr(t,"size"),type:Nr(t,"type")}));const n=Qe("button");return(r,i)=>(K(),ve("div",{class:he(`${S(n).b("group")}`)},[He(r.$slots,"default")],2))}});var v2=Et(kV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const b2=Pn(AV,{ButtonGroup:v2});Oi(v2);var Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function LV(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const Cs=new Map;let R1;tn&&(document.addEventListener("mousedown",e=>R1=e),document.addEventListener("mouseup",e=>{for(const t of Cs.values())for(const{documentHandler:n}of t)n(e,R1)}));function k1(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:ka(t.arg)&&n.push(t.arg),function(r,i){const s=t.instance.popperRef,o=r.target,a=i==null?void 0:i.target,u=!t||!t.instance,c=!o||!a,d=e.contains(o)||e.contains(a),h=e===o,g=n.length&&n.some(b=>b==null?void 0:b.contains(o))||n.length&&n.includes(a),m=s&&(s.contains(o)||s.contains(a));u||c||d||h||g||m||t.value(r,i)}}const y2={beforeMount(e,t){Cs.has(e)||Cs.set(e,[]),Cs.get(e).push({documentHandler:k1(e,t),bindingFn:t.value})},updated(e,t){Cs.has(e)||Cs.set(e,[]);const n=Cs.get(e),r=n.findIndex(s=>s.bindingFn===t.oldValue),i={documentHandler:k1(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){Cs.delete(e)}};var L1=!1,Eo,Pg,Rg,Af,Pf,_2,Rf,kg,Lg,Ig,w2,$g,Fg,x2,C2;function rr(){if(!L1){L1=!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($g=/\b(iPhone|iP[ao]d)/.exec(e),Fg=/\b(iP[ao]d)/.exec(e),Ig=/Android/i.exec(e),x2=/FBAN\/\w+;/i.exec(e),C2=/Mobile/i.exec(e),w2=!!/Win64/.exec(e),t){Eo=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Eo&&document&&document.documentMode&&(Eo=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);_2=r?parseFloat(r[1])+4:Eo,Pg=t[2]?parseFloat(t[2]):NaN,Rg=t[3]?parseFloat(t[3]):NaN,Af=t[4]?parseFloat(t[4]):NaN,Af?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Pf=t&&t[1]?parseFloat(t[1]):NaN):Pf=NaN}else Eo=Pg=Rg=Pf=Af=NaN;if(n){if(n[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Rf=i?parseFloat(i[1].replace("_",".")):!0}else Rf=!1;kg=!!n[2],Lg=!!n[3]}else Rf=kg=Lg=!1}}var Dg={ie:function(){return rr()||Eo},ieCompatibilityMode:function(){return rr()||_2>Eo},ie64:function(){return Dg.ie()&&w2},firefox:function(){return rr()||Pg},opera:function(){return rr()||Rg},webkit:function(){return rr()||Af},safari:function(){return Dg.webkit()},chrome:function(){return rr()||Pf},windows:function(){return rr()||kg},osx:function(){return rr()||Rf},linux:function(){return rr()||Lg},iphone:function(){return rr()||$g},mobile:function(){return rr()||$g||Fg||Ig||C2},nativeApp:function(){return rr()||x2},android:function(){return rr()||Ig},ipad:function(){return rr()||Fg}},IV=Dg,ef=!!(typeof window<"u"&&window.document&&window.document.createElement),$V={canUseDOM:ef,canUseWorkers:typeof Worker<"u",canUseEventListeners:ef&&!!(window.addEventListener||window.attachEvent),canUseViewport:ef&&!!window.screen,isInWorker:!ef},S2=$V,O2;S2.canUseDOM&&(O2=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function FV(e,t){if(!S2.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return!r&&O2&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var DV=FV,I1=10,$1=40,F1=800;function E2(e){var t=0,n=0,r=0,i=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),r=t*I1,i=n*I1,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(e.deltaMode==1?(r*=$1,i*=$1):(r*=F1,i*=F1)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}E2.getEventType=function(){return IV.firefox()?"DOMMouseScroll":DV("wheel")?"wheel":"mousewheel"};var NV=E2;/** +* 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 BV=function(e,t){if(e&&e.addEventListener){const n=function(r){const i=NV(r);t&&Reflect.apply(t,this,[r,i])};e.addEventListener("wheel",n,{passive:!0})}},zV={beforeMount(e,t){BV(e,t.value)}},M2={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Ja,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},T2={[Ln]:e=>mt(e)||Vn(e)||Qi(e),change:e=>mt(e)||Vn(e)||Qi(e)},tl=Symbol("checkboxGroupContextKey"),HV=({model:e,isChecked:t})=>{const n=Ke(tl,void 0),r=z(()=>{var s,o;const a=(s=n==null?void 0:n.max)==null?void 0:s.value,u=(o=n==null?void 0:n.min)==null?void 0:o.value;return!id(a)&&e.value.length>=a&&!t.value||!id(u)&&e.value.length<=u&&t.value});return{isDisabled:zd(z(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},WV=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:i,isLabeledByFormItem:s})=>{const o=Ke(tl,void 0),{formItem:a}=Qa(),{emit:u}=kt();function c(b){var v,w;return b===e.trueLabel||b===!0?(v=e.trueLabel)!=null?v:!0:(w=e.falseLabel)!=null?w:!1}function d(b,v){u("change",c(b),v)}function h(b){if(n.value)return;const v=b.target;u("change",c(v.checked),b)}async function g(b){n.value||!r.value&&!i.value&&s.value&&(b.composedPath().some(y=>y.tagName==="LABEL")||(t.value=c([!1,e.falseLabel].includes(t.value)),await bt(),d(t.value,b)))}const m=z(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return Ie(()=>e.modelValue,()=>{m.value&&(a==null||a.validate("change").catch(b=>void 0))}),{handleChange:h,onClickRoot:g}},jV=e=>{const t=X(!1),{emit:n}=kt(),r=Ke(tl,void 0),i=z(()=>id(r)===!1),s=X(!1);return{model:z({get(){var a,u;return i.value?(a=r==null?void 0:r.modelValue)==null?void 0:a.value:(u=e.modelValue)!=null?u:t.value},set(a){var u,c;i.value&&ze(a)?(s.value=((u=r==null?void 0:r.max)==null?void 0:u.value)!==void 0&&a.length>(r==null?void 0:r.max.value),s.value===!1&&((c=r==null?void 0:r.changeEvent)==null||c.call(r,a))):(n(Ln,a),t.value=a)}}),isGroup:i,isLimitExceeded:s}},VV=(e,t,{model:n})=>{const r=Ke(tl,void 0),i=X(!1),s=z(()=>{const c=n.value;return Qi(c)?c:ze(c)?yt(e.label)?c.map(ut).some(d=>bg(d,e.label)):c.map(ut).includes(e.label):c!=null?c===e.trueLabel:!!c}),o=ns(z(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value}),{prop:!0}),a=ns(z(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value})),u=z(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:s,isFocused:i,checkboxSize:a,hasOwnLabel:u}},UV=(e,{model:t})=>{function n(){ze(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},A2=(e,t)=>{const{formItem:n}=Qa(),{model:r,isGroup:i,isLimitExceeded:s}=jV(e),{isFocused:o,isChecked:a,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d}=VV(e,t,{model:r}),{isDisabled:h}=HV({model:r,isChecked:a}),{inputId:g,isLabeledByFormItem:m}=hv(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:i}),{handleChange:b,onClickRoot:v}=WV(e,{model:r,isLimitExceeded:s,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:m});return UV(e,{model:r}),{inputId:g,isLabeledByFormItem:m,isChecked:a,isDisabled:h,isFocused:o,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:r,handleChange:b,onClickRoot:v}},KV=["tabindex","role","aria-checked"],qV=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],YV=["id","aria-hidden","disabled","value","name","tabindex"],GV=Fe({name:"ElCheckbox"}),XV=Fe({...GV,props:M2,emits:T2,setup(e){const t=e,n=Ko(),{inputId:r,isLabeledByFormItem:i,isChecked:s,isDisabled:o,isFocused:a,checkboxSize:u,hasOwnLabel:c,model:d,handleChange:h,onClickRoot:g}=A2(t,n),m=Qe("checkbox"),b=z(()=>[m.b(),m.m(u.value),m.is("disabled",o.value),m.is("bordered",t.border),m.is("checked",s.value)]),v=z(()=>[m.e("input"),m.is("disabled",o.value),m.is("checked",s.value),m.is("indeterminate",t.indeterminate),m.is("focus",a.value)]);return(w,y)=>(K(),Te($n(!S(c)&&S(i)?"span":"label"),{class:he(S(b)),"aria-controls":w.indeterminate?w.controls:null,onClick:S(g)},{default:B(()=>[I("span",{class:he(S(v)),tabindex:w.indeterminate?0:void 0,role:w.indeterminate?"checkbox":void 0,"aria-checked":w.indeterminate?"mixed":void 0},[w.trueLabel||w.falseLabel?gn((K(),ve("input",{key:0,id:S(r),"onUpdate:modelValue":y[0]||(y[0]=C=>Nt(d)?d.value=C:null),class:he(S(m).e("original")),type:"checkbox","aria-hidden":w.indeterminate?"true":"false",name:w.name,tabindex:w.tabindex,disabled:S(o),"true-value":w.trueLabel,"false-value":w.falseLabel,onChange:y[1]||(y[1]=(...C)=>S(h)&&S(h)(...C)),onFocus:y[2]||(y[2]=C=>a.value=!0),onBlur:y[3]||(y[3]=C=>a.value=!1)},null,42,qV)),[[Xf,S(d)]]):gn((K(),ve("input",{key:1,id:S(r),"onUpdate:modelValue":y[4]||(y[4]=C=>Nt(d)?d.value=C:null),class:he(S(m).e("original")),type:"checkbox","aria-hidden":w.indeterminate?"true":"false",disabled:S(o),value:w.label,name:w.name,tabindex:w.tabindex,onChange:y[5]||(y[5]=(...C)=>S(h)&&S(h)(...C)),onFocus:y[6]||(y[6]=C=>a.value=!0),onBlur:y[7]||(y[7]=C=>a.value=!1)},null,42,YV)),[[Xf,S(d)]]),I("span",{class:he(S(m).e("inner"))},null,2)],10,KV),S(c)?(K(),ve("span",{key:0,class:he(S(m).e("label"))},[He(w.$slots,"default"),w.$slots.default?ke("v-if",!0):(K(),ve(it,{key:0},[le(pt(w.label),1)],64))],2)):ke("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var JV=Et(XV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const ZV=["name","tabindex","disabled","true-value","false-value"],QV=["name","tabindex","disabled","value"],e9=Fe({name:"ElCheckboxButton"}),t9=Fe({...e9,props:M2,emits:T2,setup(e){const t=e,n=Ko(),{isFocused:r,isChecked:i,isDisabled:s,checkboxButtonSize:o,model:a,handleChange:u}=A2(t,n),c=Ke(tl,void 0),d=Qe("checkbox"),h=z(()=>{var m,b,v,w;const y=(b=(m=c==null?void 0:c.fill)==null?void 0:m.value)!=null?b:"";return{backgroundColor:y,borderColor:y,color:(w=(v=c==null?void 0:c.textColor)==null?void 0:v.value)!=null?w:"",boxShadow:y?`-1px 0 0 0 ${y}`:void 0}}),g=z(()=>[d.b("button"),d.bm("button",o.value),d.is("disabled",s.value),d.is("checked",i.value),d.is("focus",r.value)]);return(m,b)=>(K(),ve("label",{class:he(S(g))},[m.trueLabel||m.falseLabel?gn((K(),ve("input",{key:0,"onUpdate:modelValue":b[0]||(b[0]=v=>Nt(a)?a.value=v:null),class:he(S(d).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:S(s),"true-value":m.trueLabel,"false-value":m.falseLabel,onChange:b[1]||(b[1]=(...v)=>S(u)&&S(u)(...v)),onFocus:b[2]||(b[2]=v=>r.value=!0),onBlur:b[3]||(b[3]=v=>r.value=!1)},null,42,ZV)),[[Xf,S(a)]]):gn((K(),ve("input",{key:1,"onUpdate:modelValue":b[4]||(b[4]=v=>Nt(a)?a.value=v:null),class:he(S(d).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:S(s),value:m.label,onChange:b[5]||(b[5]=(...v)=>S(u)&&S(u)(...v)),onFocus:b[6]||(b[6]=v=>r.value=!0),onBlur:b[7]||(b[7]=v=>r.value=!1)},null,42,QV)),[[Xf,S(a)]]),m.$slots.default||m.label?(K(),ve("span",{key:2,class:he(S(d).be("button","inner")),style:jt(S(i)?S(h):void 0)},[He(m.$slots,"default",{},()=>[le(pt(m.label),1)])],6)):ke("v-if",!0)],2))}});var P2=Et(t9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const n9=$t({modelValue:{type:st(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Ja,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),r9={[Ln]:e=>ze(e),change:e=>ze(e)},i9=Fe({name:"ElCheckboxGroup"}),s9=Fe({...i9,props:n9,emits:r9,setup(e,{emit:t}){const n=e,r=Qe("checkbox"),{formItem:i}=Qa(),{inputId:s,isLabeledByFormItem:o}=hv(n,{formItemContext:i}),a=async c=>{t(Ln,c),await bt(),t("change",c)},u=z({get(){return n.modelValue},set(c){a(c)}});return sn(tl,{...b5(Gs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:u,changeEvent:a}),Ie(()=>n.modelValue,()=>{n.validateEvent&&(i==null||i.validate("change").catch(c=>void 0))}),(c,d)=>{var h;return K(),Te($n(c.tag),{id:S(s),class:he(S(r).b("group")),role:"group","aria-label":S(o)?void 0:c.label||"checkbox-group","aria-labelledby":S(o)?(h=S(i))==null?void 0:h.labelId:void 0},{default:B(()=>[He(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var R2=Et(s9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Na=Pn(JV,{CheckboxButton:P2,CheckboxGroup:R2});Oi(P2);Oi(R2);const k2=$t({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:Hu,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),o9={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},a9=Fe({name:"ElTag"}),l9=Fe({...a9,props:k2,emits:o9,setup(e,{emit:t}){const n=e,r=ns(),i=Qe("tag"),s=z(()=>{const{type:u,hit:c,effect:d,closable:h,round:g}=n;return[i.b(),i.is("closable",h),i.m(u),i.m(r.value),i.m(d),i.is("hit",c),i.is("round",g)]}),o=u=>{t("close",u)},a=u=>{t("click",u)};return(u,c)=>u.disableTransitions?(K(),ve("span",{key:0,class:he(S(s)),style:jt({backgroundColor:u.color}),onClick:a},[I("span",{class:he(S(i).e("content"))},[He(u.$slots,"default")],2),u.closable?(K(),Te(S(wn),{key:0,class:he(S(i).e("close")),onClick:Cr(o,["stop"])},{default:B(()=>[H(S(bu))]),_:1},8,["class","onClick"])):ke("v-if",!0)],6)):(K(),Te(Hr,{key:1,name:`${S(i).namespace.value}-zoom-in-center`,appear:""},{default:B(()=>[I("span",{class:he(S(s)),style:jt({backgroundColor:u.color}),onClick:a},[I("span",{class:he(S(i).e("content"))},[He(u.$slots,"default")],2),u.closable?(K(),Te(S(wn),{key:0,class:he(S(i).e("close")),onClick:Cr(o,["stop"])},{default:B(()=>[H(S(bu))]),_:1},8,["class","onClick"])):ke("v-if",!0)],6)]),_:3},8,["name"]))}});var u9=Et(l9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const c9=Pn(u9),L2=Symbol("rowContextKey"),f9=["start","center","end","space-around","space-between","space-evenly"],d9=["top","middle","bottom"],h9=$t({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:f9,default:"start"},align:{type:String,values:d9,default:"top"}}),p9=Fe({name:"ElRow"}),g9=Fe({...p9,props:h9,setup(e){const t=e,n=Qe("row"),r=z(()=>t.gutter);sn(L2,{gutter:r});const i=z(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),s=z(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,t.align!=="top")]);return(o,a)=>(K(),Te($n(o.tag),{class:he(S(s)),style:jt(S(i))},{default:B(()=>[He(o.$slots,"default")]),_:3},8,["class","style"]))}});var m9=Et(g9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const ci=Pn(m9),v9=$t({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:st([Number,Object]),default:()=>Oo({})},sm:{type:st([Number,Object]),default:()=>Oo({})},md:{type:st([Number,Object]),default:()=>Oo({})},lg:{type:st([Number,Object]),default:()=>Oo({})},xl:{type:st([Number,Object]),default:()=>Oo({})}}),b9=Fe({name:"ElCol"}),y9=Fe({...b9,props:v9,setup(e){const t=e,{gutter:n}=Ke(L2,{gutter:z(()=>0)}),r=Qe("col"),i=z(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),s=z(()=>{const o=[];return["span","offset","pull","push"].forEach(c=>{const d=t[c];Vn(d)&&(c==="span"?o.push(r.b(`${t[c]}`)):d>0&&o.push(r.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{Vn(t[c])?o.push(r.b(`${c}-${t[c]}`)):yt(t[c])&&Object.entries(t[c]).forEach(([d,h])=>{o.push(d!=="span"?r.b(`${c}-${d}-${h}`):r.b(`${c}-${h}`))})}),n.value&&o.push(r.is("guttered")),[r.b(),o]});return(o,a)=>(K(),Te($n(o.tag),{class:he(S(s)),style:jt(S(i))},{default:B(()=>[He(o.$slots,"default")]),_:3},8,["class","style"]))}});var _9=Et(y9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const os=Pn(_9),w9=Fe({name:"ElCollapseTransition"}),x9=Fe({...w9,setup(e){const t=Qe("collapse-transition"),n={beforeEnter(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0},enter(r){r.dataset.oldOverflow=r.style.overflow,r.scrollHeight!==0?(r.style.maxHeight=`${r.scrollHeight}px`,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom):(r.style.maxHeight=0,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom),r.style.overflow="hidden"},afterEnter(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow},beforeLeave(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.dataset.oldOverflow=r.style.overflow,r.style.maxHeight=`${r.scrollHeight}px`,r.style.overflow="hidden"},leave(r){r.scrollHeight!==0&&(r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0)},afterLeave(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom}};return(r,i)=>(K(),Te(Hr,Mr({name:S(t).b()},g$(n)),{default:B(()=>[He(r.$slots,"default")]),_:3},16,["name"]))}});var kf=Et(x9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);kf.install=e=>{e.component(kf.name,kf)};const C9=kf,S9=$t({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:st([String,Array,Object])},zIndex:{type:st([String,Number])}}),O9={click:e=>e instanceof MouseEvent},E9="overlay";var M9=Fe({name:"ElOverlay",props:S9,emits:O9,setup(e,{slots:t,emit:n}){const r=Qe(E9),i=u=>{n("click",u)},{onClick:s,onMousedown:o,onMouseup:a}=qS(e.customMaskEvent?void 0:i);return()=>e.mask?H("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:s,onMousedown:o,onMouseup:a},[He(t,"default")],Of.STYLE|Of.CLASS|Of.PROPS,["onClick","onMouseup","onMousedown"]):qe("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[He(t,"default")])}});const I2=M9,$2=Symbol("dialogInjectionKey"),F2=$t({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:ni},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),T9={close:()=>!0},A9=["aria-label"],P9=["id"],R9=Fe({name:"ElDialogContent"}),k9=Fe({...R9,props:F2,emits:T9,setup(e){const t=e,{t:n}=Xo(),{Close:r}=X6,{dialogRef:i,headerRef:s,bodyId:o,ns:a,style:u}=Ke($2),{focusTrapRef:c}=Ke(c2),d=Q6(c,i),h=z(()=>t.draggable);return oz(i,s,h),(g,m)=>(K(),ve("div",{ref:S(d),class:he([S(a).b(),S(a).is("fullscreen",g.fullscreen),S(a).is("draggable",S(h)),S(a).is("align-center",g.alignCenter),{[S(a).m("center")]:g.center},g.customClass]),style:jt(S(u)),tabindex:"-1"},[I("header",{ref_key:"headerRef",ref:s,class:he(S(a).e("header"))},[He(g.$slots,"header",{},()=>[I("span",{role:"heading",class:he(S(a).e("title"))},pt(g.title),3)]),g.showClose?(K(),ve("button",{key:0,"aria-label":S(n)("el.dialog.close"),class:he(S(a).e("headerbtn")),type:"button",onClick:m[0]||(m[0]=b=>g.$emit("close"))},[H(S(wn),{class:he(S(a).e("close"))},{default:B(()=>[(K(),Te($n(g.closeIcon||S(r))))]),_:1},8,["class"])],10,A9)):ke("v-if",!0)],2),I("div",{id:S(o),class:he(S(a).e("body"))},[He(g.$slots,"default")],10,P9),g.$slots.footer?(K(),ve("footer",{key:0,class:he(S(a).e("footer"))},[He(g.$slots,"footer")],2)):ke("v-if",!0)],6))}});var L9=Et(k9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const D2=$t({...F2,appendToBody:{type:Boolean,default:!1},beforeClose:{type:st(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),N2={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Ln]:e=>Qi(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},B2=(e,t)=>{const r=kt().emit,{nextZIndex:i}=fv();let s="";const o=wu(),a=wu(),u=X(!1),c=X(!1),d=X(!1),h=X(e.zIndex||i());let g,m;const b=dv("namespace",wg),v=z(()=>{const ue={},ce=`--${b.value}-dialog`;return e.fullscreen||(e.top&&(ue[`${ce}-margin-top`]=e.top),e.width&&(ue[`${ce}-width`]=es(e.width))),ue}),w=z(()=>e.alignCenter?{display:"flex"}:{});function y(){r("opened")}function C(){r("closed"),r(Ln,!1),e.destroyOnClose&&(d.value=!1)}function O(){r("close")}function _(){m==null||m(),g==null||g(),e.openDelay&&e.openDelay>0?{stop:g}=Zf(()=>R(),e.openDelay):R()}function E(){g==null||g(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=Zf(()=>$(),e.closeDelay):$()}function T(){function ue(ce){ce||(c.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(ue):E()}function P(){e.closeOnClickModal&&T()}function R(){tn&&(u.value=!0)}function $(){u.value=!1}function D(){r("openAutoFocus")}function j(){r("closeAutoFocus")}function A(ue){var ce;((ce=ue.detail)==null?void 0:ce.focusReason)==="pointer"&&ue.preventDefault()}e.lockScroll&&hz(u);function U(){e.closeOnPressEscape&&T()}return Ie(()=>e.modelValue,ue=>{ue?(c.value=!1,_(),d.value=!0,h.value=e.zIndex?h.value++:i(),bt(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):u.value&&E()}),Ie(()=>e.fullscreen,ue=>{t.value&&(ue?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),Lt(()=>{e.modelValue&&(u.value=!0,d.value=!0,_())}),{afterEnter:y,afterLeave:C,beforeLeave:O,handleClose:T,onModalClick:P,close:E,doClose:$,onOpenAutoFocus:D,onCloseAutoFocus:j,onCloseRequested:U,onFocusoutPrevented:A,titleId:o,bodyId:a,closed:c,style:v,overlayDialogStyle:w,rendered:d,visible:u,zIndex:h}},I9=["aria-label","aria-labelledby","aria-describedby"],$9=Fe({name:"ElDialog",inheritAttrs:!1}),F9=Fe({...$9,props:D2,emits:N2,setup(e,{expose:t}){const n=e,r=Ko();Ho({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"},z(()=>!!r.title)),Ho({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},z(()=>!!n.customClass));const i=Qe("dialog"),s=X(),o=X(),a=X(),{visible:u,titleId:c,bodyId:d,style:h,overlayDialogStyle:g,rendered:m,zIndex:b,afterEnter:v,afterLeave:w,beforeLeave:y,handleClose:C,onModalClick:O,onOpenAutoFocus:_,onCloseAutoFocus:E,onCloseRequested:T,onFocusoutPrevented:P}=B2(n,s);sn($2,{dialogRef:s,headerRef:o,bodyId:d,ns:i,rendered:m,style:h});const R=qS(O),$=z(()=>n.draggable&&!n.fullscreen);return t({visible:u,dialogContentRef:a}),(D,j)=>(K(),Te(Lm,{to:"body",disabled:!D.appendToBody},[H(Hr,{name:"dialog-fade",onAfterEnter:S(v),onAfterLeave:S(w),onBeforeLeave:S(y),persisted:""},{default:B(()=>[gn(H(S(I2),{"custom-mask-event":"",mask:D.modal,"overlay-class":D.modalClass,"z-index":S(b)},{default:B(()=>[I("div",{role:"dialog","aria-modal":"true","aria-label":D.title||void 0,"aria-labelledby":D.title?void 0:S(c),"aria-describedby":S(d),class:he(`${S(i).namespace.value}-overlay-dialog`),style:jt(S(g)),onClick:j[0]||(j[0]=(...A)=>S(R).onClick&&S(R).onClick(...A)),onMousedown:j[1]||(j[1]=(...A)=>S(R).onMousedown&&S(R).onMousedown(...A)),onMouseup:j[2]||(j[2]=(...A)=>S(R).onMouseup&&S(R).onMouseup(...A))},[H(S(bv),{loop:"",trapped:S(u),"focus-start-el":"container",onFocusAfterTrapped:S(_),onFocusAfterReleased:S(E),onFocusoutPrevented:S(P),onReleaseRequested:S(T)},{default:B(()=>[S(m)?(K(),Te(L9,Mr({key:0,ref_key:"dialogContentRef",ref:a},D.$attrs,{"custom-class":D.customClass,center:D.center,"align-center":D.alignCenter,"close-icon":D.closeIcon,draggable:S($),fullscreen:D.fullscreen,"show-close":D.showClose,title:D.title,onClose:S(C)}),dC({header:B(()=>[D.$slots.title?He(D.$slots,"title",{key:1}):He(D.$slots,"header",{key:0,close:S(C),titleId:S(c),titleClass:S(i).e("title")})]),default:B(()=>[He(D.$slots,"default")]),_:2},[D.$slots.footer?{name:"footer",fn:B(()=>[He(D.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):ke("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,I9)]),_:3},8,["mask","overlay-class","z-index"]),[[Wr,S(u)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var D9=Et(F9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const N9=Pn(D9),B9=$t({...D2,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),z9=N2,H9=Fe({name:"ElDrawer",components:{ElOverlay:I2,ElFocusTrap:bv,ElIcon:wn,Close:bu},inheritAttrs:!1,props:B9,emits:z9,setup(e,{slots:t}){Ho({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"},z(()=>!!t.title)),Ho({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},z(()=>!!e.customClass));const n=X(),r=X(),i=Qe("drawer"),{t:s}=Xo(),o=z(()=>e.direction==="rtl"||e.direction==="ltr"),a=z(()=>es(e.size));return{...B2(e,n),drawerRef:n,focusStartRef:r,isHorizontal:o,drawerSize:a,ns:i,t:s}}}),W9=["aria-label","aria-labelledby","aria-describedby"],j9=["id"],V9=["aria-label"],U9=["id"];function K9(e,t,n,r,i,s){const o=Yt("close"),a=Yt("el-icon"),u=Yt("el-focus-trap"),c=Yt("el-overlay");return K(),Te(Lm,{to:"body",disabled:!e.appendToBody},[H(Hr,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:B(()=>[gn(H(c,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:B(()=>[H(u,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:B(()=>[I("div",Mr({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=Cr(()=>{},["stop"]))}),[I("span",{ref:"focusStartRef",class:he(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(K(),ve("header",{key:0,class:he(e.ns.e("header"))},[e.$slots.title?He(e.$slots,"title",{key:1},()=>[ke(" DEPRECATED SLOT ")]):He(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?ke("v-if",!0):(K(),ve("span",{key:0,id:e.titleId,role:"heading",class:he(e.ns.e("title"))},pt(e.title),11,j9))]),e.showClose?(K(),ve("button",{key:2,"aria-label":e.t("el.drawer.close"),class:he(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...d)=>e.handleClose&&e.handleClose(...d))},[H(a,{class:he(e.ns.e("close"))},{default:B(()=>[H(o)]),_:1},8,["class"])],10,V9)):ke("v-if",!0)],2)):ke("v-if",!0),e.rendered?(K(),ve("div",{key:1,id:e.bodyId,class:he(e.ns.e("body"))},[He(e.$slots,"default")],10,U9)):ke("v-if",!0),e.$slots.footer?(K(),ve("div",{key:2,class:he(e.ns.e("footer"))},[He(e.$slots,"footer")],2)):ke("v-if",!0)],16,W9)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Wr,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var q9=Et(H9,[["render",K9],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const Y9=Pn(q9);let G9=class{constructor(t,n){this.parent=t,this.domNode=n,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",r=>{let i=!1;switch(r.code){case jn.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case jn.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case jn.tab:{xf(t,"mouseleave");break}case jn.enter:case jn.space:{i=!0,r.currentTarget.click();break}}return i&&(r.preventDefault(),r.stopPropagation()),!1})})}},X9=class{constructor(t,n){this.domNode=t,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 G9(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case jn.down:{xf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case jn.up:{xf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case jn.tab:{xf(t.currentTarget,"mouseleave");break}case jn.enter:case jn.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},J9=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new X9(r,t)})}};const Z9=Fe({name:"ElMenuCollapseTransition",setup(){const e=Qe("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){To(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){Fo(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),$o(n,e.m("collapse"))?(Fo(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),To(n,e.m("collapse"))):(To(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Fo(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){To(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function Q9(e,t,n,r,i,s){return K(),Te(Hr,Mr({mode:"out-in"},e.listeners),{default:B(()=>[He(e.$slots,"default")]),_:3},16)}var eU=Et(Z9,[["render",Q9],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function z2(e,t){const n=z(()=>{let i=e.parent;const s=[t.value];for(;i.type.name!=="ElMenu";)i.props.index&&s.unshift(i.props.index),i=i.parent;return s});return{parentMenu:z(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:n}}function tU(e){return z(()=>{const n=e.backgroundColor;return n?new m2(n).shade(20).toString():""})}const H2=(e,t)=>{const n=Qe("menu");return z(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":tU(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},nU=$t({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:ni},expandOpenIcon:{type:ni},collapseCloseIcon:{type:ni},collapseOpenIcon:{type:ni}}),tf="ElSubMenu";var wv=Fe({name:tf,props:nU,setup(e,{slots:t,expose:n}){Ho({from:"popper-append-to-body",replacement:"teleported",scope:tf,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},z(()=>e.popperAppendToBody!==void 0));const r=kt(),{indexPath:i,parentMenu:s}=z2(r,z(()=>e.index)),o=Qe("menu"),a=Qe("sub-menu"),u=Ke("rootMenu");u||Us(tf,"can not inject root menu");const c=Ke(`subMenu:${s.value.uid}`);c||Us(tf,"can not inject sub menu");const d=X({}),h=X({});let g;const m=X(!1),b=X(),v=X(null),w=z(()=>j.value==="horizontal"&&C.value?"bottom-start":"right-start"),y=z(()=>j.value==="horizontal"&&C.value||j.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?T.value?e.expandOpenIcon:e.expandCloseIcon:Zm:e.collapseCloseIcon&&e.collapseOpenIcon?T.value?e.collapseOpenIcon:e.collapseCloseIcon:Qm),C=z(()=>c.level===0),O=z(()=>{var _e;const Ee=(_e=e.teleported)!=null?_e:e.popperAppendToBody;return Ee===void 0?C.value:Ee}),_=z(()=>u.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),E=z(()=>j.value==="horizontal"&&C.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),T=z(()=>u.openedMenus.includes(e.index)),P=z(()=>{let _e=!1;return Object.values(d.value).forEach(Ee=>{Ee.active&&(_e=!0)}),Object.values(h.value).forEach(Ee=>{Ee.active&&(_e=!0)}),_e}),R=z(()=>u.props.backgroundColor||""),$=z(()=>u.props.activeTextColor||""),D=z(()=>u.props.textColor||""),j=z(()=>u.props.mode),A=vn({index:e.index,indexPath:i,active:P}),U=H2(u.props,c.level+1),ue=z(()=>j.value!=="horizontal"?{color:D.value}:{borderBottomColor:P.value?u.props.activeTextColor?$.value:"":"transparent",color:P.value?$.value:D.value}),ce=()=>{var _e,Ee,Z;return(Z=(Ee=(_e=v.value)==null?void 0:_e.popperRef)==null?void 0:Ee.popperInstanceRef)==null?void 0:Z.destroy()},ne=_e=>{_e||ce()},Q=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:i.value,active:P.value})},ie=(_e,Ee=e.showTimeout)=>{var Z;_e.type!=="focus"&&(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled||(c.mouseInChild.value=!0,g==null||g(),{stop:g}=Zf(()=>{u.openMenu(e.index,i.value)},Ee),O.value&&((Z=s.value.vnode.el)==null||Z.dispatchEvent(new MouseEvent("mouseenter")))))},ee=(_e=!1)=>{var Ee,Z;u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||(g==null||g(),c.mouseInChild.value=!1,{stop:g}=Zf(()=>!m.value&&u.closeMenu(e.index,i.value),e.hideTimeout),O.value&&_e&&((Ee=r.parent)==null?void 0:Ee.type.name)==="ElSubMenu"&&((Z=c.handleMouseleave)==null||Z.call(c,!0)))};Ie(()=>u.props.collapse,_e=>ne(!!_e));{const _e=Z=>{h.value[Z.index]=Z},Ee=Z=>{delete h.value[Z.index]};sn(`subMenu:${r.uid}`,{addSubMenu:_e,removeSubMenu:Ee,handleMouseleave:ee,mouseInChild:m,level:c.level+1})}return n({opened:T}),Lt(()=>{u.addSubMenu(A),c.addSubMenu(A)}),An(()=>{c.removeSubMenu(A),u.removeSubMenu(A)}),()=>{var _e;const Ee=[(_e=t.title)==null?void 0:_e.call(t),qe(wn,{class:a.e("icon-arrow"),style:{transform:T.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>mt(y.value)?qe(r.appContext.components[y.value]):qe(y.value)})],Z=u.isMenuPopup?qe(Wd,{ref:v,visible:T.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:w.value,teleported:O.value,fallbackPlacements:E.value,transition:_.value,gpuAcceleration:!1},{content:()=>{var Ge;return qe("div",{class:[o.m(j.value),o.m("popup-container"),e.popperClass],onMouseenter:De=>ie(De,100),onMouseleave:()=>ee(!0),onFocus:De=>ie(De,100)},[qe("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${w.value}`)],style:U.value},[(Ge=t.default)==null?void 0:Ge.call(t)])])},default:()=>qe("div",{class:a.e("title"),style:[ue.value,{backgroundColor:R.value}],onClick:Q},Ee)}):qe(it,{},[qe("div",{class:a.e("title"),style:[ue.value,{backgroundColor:R.value}],ref:b,onClick:Q},Ee),qe(C9,{},{default:()=>{var Ge;return gn(qe("ul",{role:"menu",class:[o.b(),o.m("inline")],style:U.value},[(Ge=t.default)==null?void 0:Ge.call(t)]),[[Wr,T.value]])}})]);return qe("li",{class:[a.b(),a.is("active",P.value),a.is("opened",T.value),a.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:T.value,onMouseenter:ie,onMouseleave:()=>ee(!0),onFocus:ie},[Z])}}});const rU=$t({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:st(Array),default:()=>Oo([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),Tp=e=>Array.isArray(e)&&e.every(t=>mt(t)),iU={close:(e,t)=>mt(e)&&Tp(t),open:(e,t)=>mt(e)&&Tp(t),select:(e,t,n,r)=>mt(e)&&Tp(t)&&yt(n)&&(r===void 0||r instanceof Promise)};var sU=Fe({name:"ElMenu",props:rU,emits:iU,setup(e,{emit:t,slots:n,expose:r}){const i=kt(),s=i.appContext.config.globalProperties.$router,o=X(),a=Qe("menu"),u=Qe("sub-menu"),c=X(-1),d=X(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),h=X(e.defaultActive),g=X({}),m=X({}),b=z(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),v=()=>{const j=h.value&&g.value[h.value];if(!j||e.mode==="horizontal"||e.collapse)return;j.indexPath.forEach(U=>{const ue=m.value[U];ue&&w(U,ue.indexPath)})},w=(j,A)=>{d.value.includes(j)||(e.uniqueOpened&&(d.value=d.value.filter(U=>A.includes(U))),d.value.push(j),t("open",j,A))},y=j=>{const A=d.value.indexOf(j);A!==-1&&d.value.splice(A,1)},C=(j,A)=>{y(j),t("close",j,A)},O=({index:j,indexPath:A})=>{d.value.includes(j)?C(j,A):w(j,A)},_=j=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:A,indexPath:U}=j;if(!(Ra(A)||Ra(U)))if(e.router&&s){const ue=j.route||A,ce=s.push(ue).then(ne=>(ne||(h.value=A),ne));t("select",A,U,{index:A,indexPath:U,route:ue},ce)}else h.value=A,t("select",A,U,{index:A,indexPath:U})},E=j=>{const A=g.value,U=A[j]||h.value&&A[h.value]||A[e.defaultActive];U?h.value=U.index:h.value=j},T=()=>{var j,A;if(!o.value)return-1;const U=Array.from((A=(j=o.value)==null?void 0:j.childNodes)!=null?A:[]).filter(_e=>_e.nodeName!=="#comment"&&(_e.nodeName!=="#text"||_e.nodeValue)),ue=64,ce=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),ne=Number.parseInt(getComputedStyle(o.value).paddingRight,10),Q=o.value.clientWidth-ce-ne;let ie=0,ee=0;return U.forEach((_e,Ee)=>{ie+=_e.offsetWidth||0,ie<=Q-ue&&(ee=Ee+1)}),ee===U.length?-1:ee},P=(j,A=33.34)=>{let U;return()=>{U&&clearTimeout(U),U=setTimeout(()=>{j()},A)}};let R=!0;const $=()=>{const j=()=>{c.value=-1,bt(()=>{c.value=T()})};R?j():P(j)(),R=!1};Ie(()=>e.defaultActive,j=>{g.value[j]||(h.value=""),E(j)}),Ie(()=>e.collapse,j=>{j&&(d.value=[])}),Ie(g.value,v);let D;Ns(()=>{e.mode==="horizontal"&&e.ellipsis?D=Vs(o,$).stop:D==null||D()});{const j=ce=>{m.value[ce.index]=ce},A=ce=>{delete m.value[ce.index]};sn("rootMenu",vn({props:e,openedMenus:d,items:g,subMenus:m,activeIndex:h,isMenuPopup:b,addMenuItem:ce=>{g.value[ce.index]=ce},removeMenuItem:ce=>{delete g.value[ce.index]},addSubMenu:j,removeSubMenu:A,openMenu:w,closeMenu:C,handleMenuItemClick:_,handleSubMenuClick:O})),sn(`subMenu:${i.uid}`,{addSubMenu:j,removeSubMenu:A,mouseInChild:X(!1),level:0})}return Lt(()=>{e.mode==="horizontal"&&new J9(i.vnode.el,a.namespace.value)}),r({open:A=>{const{indexPath:U}=m.value[A];U.forEach(ue=>w(ue,U))},close:y,handleResize:$}),()=>{var j,A;let U=(A=(j=n.default)==null?void 0:j.call(n))!=null?A:[];const ue=[];if(e.mode==="horizontal"&&o.value){const Q=Ef(U),ie=c.value===-1?Q:Q.slice(0,c.value),ee=c.value===-1?[]:Q.slice(c.value);ee!=null&&ee.length&&e.ellipsis&&(U=ie,ue.push(qe(wv,{index:"sub-menu-more",class:u.e("hide-arrow")},{title:()=>qe(wn,{class:u.e("icon-more")},{default:()=>qe(k6)}),default:()=>ee})))}const ce=H2(e,0),ne=qe("ul",{key:String(e.collapse),role:"menubar",ref:o,style:ce.value,class:{[a.b()]:!0,[a.m(e.mode)]:!0,[a.m("collapse")]:e.collapse}},[...U,...ue]);return e.collapseTransition&&e.mode==="vertical"?qe(eU,()=>ne):ne}}});const oU=$t({index:{type:st([String,null]),default:null},route:{type:st([String,Object])},disabled:Boolean}),aU={click:e=>mt(e.index)&&Array.isArray(e.indexPath)},Ap="ElMenuItem",lU=Fe({name:Ap,components:{ElTooltip:Wd},props:oU,emits:aU,setup(e,{emit:t}){const n=kt(),r=Ke("rootMenu"),i=Qe("menu"),s=Qe("menu-item");r||Us(Ap,"can not inject root menu");const{parentMenu:o,indexPath:a}=z2(n,Nr(e,"index")),u=Ke(`subMenu:${o.value.uid}`);u||Us(Ap,"can not inject sub menu");const c=z(()=>e.index===r.activeIndex),d=vn({index:e.index,indexPath:a,active:c}),h=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:a.value,route:e.route}),t("click",d))};return Lt(()=>{u.addSubMenu(d),r.addMenuItem(d)}),An(()=>{u.removeSubMenu(d),r.removeMenuItem(d)}),{parentMenu:o,rootMenu:r,active:c,nsMenu:i,nsMenuItem:s,handleClick:h}}});function uU(e,t,n,r,i,s){const o=Yt("el-tooltip");return K(),ve("li",{class:he([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(K(),Te(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:B(()=>[He(e.$slots,"title")]),default:B(()=>[I("div",{class:he(e.nsMenu.be("tooltip","trigger"))},[He(e.$slots,"default")],2)]),_:3},8,["effect"])):(K(),ve(it,{key:1},[He(e.$slots,"default"),He(e.$slots,"title")],64))],2)}var W2=Et(lU,[["render",uU],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const cU={title:String},fU="ElMenuItemGroup",dU=Fe({name:fU,props:cU,setup(){return{ns:Qe("menu-item-group")}}});function hU(e,t,n,r,i,s){return K(),ve("li",{class:he(e.ns.b())},[I("div",{class:he(e.ns.e("title"))},[e.$slots.title?He(e.$slots,"title",{key:1}):(K(),ve(it,{key:0},[le(pt(e.title),1)],64))],2),I("ul",null,[He(e.$slots,"default")])],2)}var j2=Et(dU,[["render",hU],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const pU=Pn(sU,{MenuItem:W2,MenuItemGroup:j2,SubMenu:wv}),gU=Oi(W2);Oi(j2);Oi(wv);const V2=Symbol("ElSelectGroup"),jd=Symbol("ElSelect");function mU(e,t){const n=Ke(jd),r=Ke(V2,{disabled:!1}),i=z(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),s=z(()=>n.props.multiple?h(n.props.modelValue,e.value):g(e.value,n.props.modelValue)),o=z(()=>{if(n.props.multiple){const v=n.props.modelValue||[];return!s.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=z(()=>e.label||(i.value?"":e.value)),u=z(()=>e.value||e.label||""),c=z(()=>e.disabled||t.groupDisabled||o.value),d=kt(),h=(v=[],w)=>{if(i.value){const y=n.props.valueKey;return v&&v.some(C=>ut(Hn(C,y))===Hn(w,y))}else return v&&v.includes(w)},g=(v,w)=>{if(i.value){const{valueKey:y}=n.props;return Hn(v,y)===Hn(w,y)}else return v===w},m=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(d.proxy))};Ie(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Ie(()=>e.value,(v,w)=>{const{remote:y,valueKey:C}=n.props;if(Object.is(v,w)||(n.onOptionDestroy(w,d.proxy),n.onOptionCreate(d.proxy)),!e.created&&!y){if(C&&typeof v=="object"&&typeof w=="object"&&v[C]===w[C])return;n.setSelected()}}),Ie(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:b}=ut(n);return Ie(b,v=>{const{query:w}=S(v),y=new RegExp(w5(w),"i");t.visible=y.test(a.value)||e.created,t.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:a,currentValue:u,itemSelected:s,isDisabled:c,hoverItem:m}}const vU=Fe({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=Qe("select"),n=vn({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:i,isDisabled:s,select:o,hoverItem:a}=mU(e,n),{visible:u,hover:c}=Gs(n),d=kt().proxy;o.onOptionCreate(d),An(()=>{const g=d.value,{selected:m}=o,v=(o.props.multiple?m:[m]).some(w=>w.value===d.value);bt(()=>{o.cachedOptions.get(g)===d&&!v&&o.cachedOptions.delete(g)}),o.onOptionDestroy(g,d)});function h(){e.disabled!==!0&&n.groupDisabled!==!0&&o.handleOptionSelect(d,!0)}return{ns:t,currentLabel:r,itemSelected:i,isDisabled:s,select:o,hoverItem:a,visible:u,hover:c,selectOptionClick:h,states:n}}});function bU(e,t,n,r,i,s){return gn((K(),ve("li",{class:he([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=Cr((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[He(e.$slots,"default",{},()=>[I("span",null,pt(e.currentLabel),1)])],34)),[[Wr,e.visible]])}var xv=Et(vU,[["render",bU],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const yU=Fe({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ke(jd),t=Qe("select"),n=z(()=>e.props.popperClass),r=z(()=>e.props.multiple),i=z(()=>e.props.fitInputWidth),s=X("");function o(){var a;s.value=`${(a=e.selectWrapper)==null?void 0:a.offsetWidth}px`}return Lt(()=>{o(),Vs(e.selectWrapper,o)}),{ns:t,minWidth:s,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function _U(e,t,n,r,i,s){return K(),ve("div",{class:he([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:jt({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[He(e.$slots,"default")],6)}var wU=Et(yU,[["render",_U],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function xU(e){const{t}=Xo();return vn({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}const CU=(e,t,n)=>{const{t:r}=Xo(),i=Qe("select");Ho({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},z(()=>e.suffixTransition===!1));const s=X(null),o=X(null),a=X(null),u=X(null),c=X(null),d=X(null),h=X(null),g=X(-1),m=Fs({query:""}),b=Fs(""),v=X([]);let w=0;const{form:y,formItem:C}=Qa(),O=z(()=>!e.filterable||e.multiple||!t.visible),_=z(()=>e.disabled||(y==null?void 0:y.disabled)),E=z(()=>{const te=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!_.value&&t.inputHovering&&te}),T=z(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),P=z(()=>i.is("reverse",T.value&&t.visible&&e.suffixTransition)),R=z(()=>e.remote?300:0),$=z(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),D=z(()=>{const te=Array.from(t.options.values()),we=[];return v.value.forEach(Ye=>{const ft=te.findIndex(nn=>nn.currentLabel===Ye);ft>-1&&we.push(te[ft])}),we.length?we:te}),j=z(()=>Array.from(t.cachedOptions.values())),A=z(()=>{const te=D.value.filter(we=>!we.created).some(we=>we.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!te}),U=ns(),ue=z(()=>["small"].includes(U.value)?"small":"default"),ce=z({get(){return t.visible&&$.value!==!1},set(te){t.visible=te}});Ie([()=>_.value,()=>U.value,()=>y==null?void 0:y.size],()=>{bt(()=>{ne()})}),Ie(()=>e.placeholder,te=>{t.cachedPlaceHolder=t.currentPlaceholder=te,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),Ie(()=>e.modelValue,(te,we)=>{e.multiple&&(ne(),te&&te.length>0||o.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",Q(t.query))),_e(),e.filterable&&!e.multiple&&(t.inputLength=20),!bg(te,we)&&e.validateEvent&&(C==null||C.validate("change").catch(Ye=>void 0))},{flush:"post",deep:!0}),Ie(()=>t.visible,te=>{var we,Ye,ft,nn,an;te?((Ye=(we=u.value)==null?void 0:we.updatePopper)==null||Ye.call(we),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(nn=(ft=a.value)==null?void 0:ft.focus)==null||nn.call(ft),e.multiple?(an=o.value)==null||an.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),Q(t.query),!e.multiple&&!e.remote&&(m.value.query="",bl(m),bl(b)))):(e.filterable&&(Xe(e.filterMethod)&&e.filterMethod(""),Xe(e.remoteMethod)&&e.remoteMethod("")),o.value&&o.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,Z(),bt(()=>{o.value&&o.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",te)}),Ie(()=>t.options.entries(),()=>{var te,we,Ye;if(!tn)return;(we=(te=u.value)==null?void 0:te.updatePopper)==null||we.call(te),e.multiple&&ne();const ft=((Ye=d.value)==null?void 0:Ye.querySelectorAll("input"))||[];Array.from(ft).includes(document.activeElement)||_e(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&ee()},{flush:"post"}),Ie(()=>t.hoverIndex,te=>{Vn(te)&&te>-1?g.value=D.value[te]||{}:g.value={},D.value.forEach(we=>{we.hover=g.value===we})});const ne=()=>{bt(()=>{var te,we;if(!s.value)return;const Ye=s.value.$el.querySelector("input");w=w||(Ye.clientHeight>0?Ye.clientHeight+2:0);const ft=c.value,nn=tz(U.value||(y==null?void 0:y.size)),an=U.value||nn===w||w<=0?nn:w;!(Ye.offsetParent===null)&&(Ye.style.height=`${(t.selected.length===0?an:Math.max(ft?ft.clientHeight+(ft.clientHeight>an?6:0):0,an))-2}px`),t.tagInMultiLine=Number.parseFloat(Ye.style.height)>=an,t.visible&&$.value!==!1&&((we=(te=u.value)==null?void 0:te.updatePopper)==null||we.call(te))})},Q=async te=>{if(!(t.previousQuery===te||t.isOnComposition)){if(t.previousQuery===null&&(Xe(e.filterMethod)||Xe(e.remoteMethod))){t.previousQuery=te;return}t.previousQuery=te,bt(()=>{var we,Ye;t.visible&&((Ye=(we=u.value)==null?void 0:we.updatePopper)==null||Ye.call(we))}),t.hoverIndex=-1,e.multiple&&e.filterable&&bt(()=>{const we=o.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,we):we,ie(),ne()}),e.remote&&Xe(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(te)):Xe(e.filterMethod)?(e.filterMethod(te),bl(b)):(t.filteredOptionsCount=t.optionsCount,m.value.query=te,bl(m),bl(b)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await bt(),ee())}},ie=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=o.value.value?"":t.cachedPlaceHolder)},ee=()=>{const te=D.value.filter(ft=>ft.visible&&!ft.disabled&&!ft.states.groupDisabled),we=te.find(ft=>ft.created),Ye=te[0];t.hoverIndex=W(D.value,we||Ye)},_e=()=>{var te;if(e.multiple)t.selectedLabel="";else{const Ye=Ee(e.modelValue);(te=Ye.props)!=null&&te.created?(t.createdLabel=Ye.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Ye.currentLabel,t.selected=Ye,e.filterable&&(t.query=t.selectedLabel);return}const we=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Ye=>{we.push(Ee(Ye))}),t.selected=we,bt(()=>{ne()})},Ee=te=>{let we;const Ye=vf(te).toLowerCase()==="object",ft=vf(te).toLowerCase()==="null",nn=vf(te).toLowerCase()==="undefined";for(let Kr=t.cachedOptions.size-1;Kr>=0;Kr--){const Zn=j.value[Kr];if(Ye?Hn(Zn.value,e.valueKey)===Hn(te,e.valueKey):Zn.value===te){we={value:te,currentLabel:Zn.currentLabel,isDisabled:Zn.isDisabled};break}}if(we)return we;const an=Ye?te.label:!ft&&!nn?te:"",hr={value:te,currentLabel:an};return e.multiple&&(hr.hitState=!1),hr},Z=()=>{setTimeout(()=>{const te=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(we=>D.value.findIndex(Ye=>Hn(Ye,te)===Hn(we,te)))):t.hoverIndex=-1:t.hoverIndex=D.value.findIndex(we=>Le(we)===Le(t.selected))},300)},Ge=()=>{var te,we;De(),(we=(te=u.value)==null?void 0:te.updatePopper)==null||we.call(te),e.multiple&&ne()},De=()=>{var te;t.inputWidth=(te=s.value)==null?void 0:te.$el.offsetWidth},Ze=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,Q(t.query))},Je=Pa(()=>{Ze()},R.value),Y=Pa(te=>{Q(te.target.value)},R.value),oe=te=>{bg(e.modelValue,te)||n.emit(AS,te)},de=te=>{if(te.code!==jn.delete){if(te.target.value.length<=0&&!Se()){const we=e.modelValue.slice();we.pop(),n.emit(Ln,we),oe(we)}te.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},Oe=(te,we)=>{const Ye=t.selected.indexOf(we);if(Ye>-1&&!_.value){const ft=e.modelValue.slice();ft.splice(Ye,1),n.emit(Ln,ft),oe(ft),n.emit("remove-tag",we.value)}te.stopPropagation()},We=te=>{te.stopPropagation();const we=e.multiple?[]:"";if(!mt(we))for(const Ye of t.selected)Ye.isDisabled&&we.push(Ye.value);n.emit(Ln,we),oe(we),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},F=(te,we)=>{var Ye;if(e.multiple){const ft=(e.modelValue||[]).slice(),nn=W(ft,te.value);nn>-1?ft.splice(nn,1):(e.multipleLimit<=0||ft.length{se(te)})},W=(te=[],we)=>{if(!yt(we))return te.indexOf(we);const Ye=e.valueKey;let ft=-1;return te.some((nn,an)=>ut(Hn(nn,Ye))===Hn(we,Ye)?(ft=an,!0):!1),ft},q=()=>{t.softFocus=!0;const te=o.value||s.value;te&&(te==null||te.focus())},se=te=>{var we,Ye,ft,nn,an;const hr=Array.isArray(te)?te[0]:te;let Kr=null;if(hr!=null&&hr.value){const Zn=D.value.filter(nl=>nl.value===hr.value);Zn.length>0&&(Kr=Zn[0].$el)}if(u.value&&Kr){const Zn=(nn=(ft=(Ye=(we=u.value)==null?void 0:we.popperRef)==null?void 0:Ye.contentRef)==null?void 0:ft.querySelector)==null?void 0:nn.call(ft,`.${i.be("dropdown","wrap")}`);Zn&&S5(Zn,Kr)}(an=h.value)==null||an.handleScroll()},pe=te=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(te.value,te),t.cachedOptions.set(te.value,te)},me=(te,we)=>{t.options.get(te)===we&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(te))},Ae=te=>{te.code!==jn.backspace&&Se(!1),t.inputLength=o.value.value.length*15+20,ne()},Se=te=>{if(!Array.isArray(t.selected))return;const we=t.selected[t.selected.length-1];if(we)return te===!0||te===!1?(we.hitState=te,te):(we.hitState=!we.hitState,we.hitState)},Ce=te=>{const we=te.target.value;if(te.type==="compositionend")t.isOnComposition=!1,bt(()=>Q(we));else{const Ye=we[we.length-1]||"";t.isOnComposition=!PS(Ye)}},ge=()=>{bt(()=>se(t.selected))},Ne=te=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",te))},Pe=()=>{var te,we,Ye;t.visible=!1,(te=s.value)==null||te.blur(),(Ye=(we=a.value)==null?void 0:we.blur)==null||Ye.call(we)},re=te=>{bt(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",te)}),t.softFocus=!1},Me=te=>{We(te)},Ve=()=>{t.visible=!1},at=te=>{t.visible&&(te.preventDefault(),te.stopPropagation(),t.visible=!1)},ot=te=>{var we;te&&!t.mouseEnter||_.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!u.value||!u.value.isFocusInsideContent())&&(t.visible=!t.visible),t.visible&&((we=o.value||s.value)==null||we.focus()))},Bt=()=>{t.visible?D.value[t.hoverIndex]&&F(D.value[t.hoverIndex],void 0):ot()},Le=te=>yt(te.value)?Hn(te.value,e.valueKey):te.value,Ue=z(()=>D.value.filter(te=>te.visible).every(te=>te.disabled)),ct=z(()=>t.selected.slice(0,e.maxCollapseTags)),et=z(()=>t.selected.slice(e.maxCollapseTags)),xt=te=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!Ue.value){te==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):te==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const we=D.value[t.hoverIndex];(we.disabled===!0||we.states.groupDisabled===!0||!we.visible)&&xt(te),bt(()=>se(g.value))}};return{optionList:v,optionsArray:D,selectSize:U,handleResize:Ge,debouncedOnInputChange:Je,debouncedQueryChange:Y,deletePrevTag:de,deleteTag:Oe,deleteSelected:We,handleOptionSelect:F,scrollToOption:se,readonly:O,resetInputHeight:ne,showClose:E,iconComponent:T,iconReverse:P,showNewOption:A,collapseTagSize:ue,setSelected:_e,managePlaceholder:ie,selectDisabled:_,emptyText:$,toggleLastOptionHitState:Se,resetInputState:Ae,handleComposition:Ce,onOptionCreate:pe,onOptionDestroy:me,handleMenuEnter:ge,handleFocus:Ne,blur:Pe,handleBlur:re,handleClearClick:Me,handleClose:Ve,handleKeydownEscape:at,toggleMenu:ot,selectOption:Bt,getValueKey:Le,navigateOptions:xt,dropMenuVisible:ce,queryChange:m,groupQueryChange:b,showTagList:ct,collapseTagList:et,reference:s,input:o,iOSInput:a,tooltipRef:u,tags:c,selectWrapper:d,scrollbar:h,handleMouseEnter:()=>{t.mouseEnter=!0},handleMouseLeave:()=>{t.mouseEnter=!1}}};var SU=Fe({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let r=[];function i(s,o){if(s.length!==o.length)return!1;for(const[a]of s.entries())if(s[a]!=o[a])return!1;return!0}return()=>{var s,o;const a=(s=t.default)==null?void 0:s.call(t),u=[];function c(d){Array.isArray(d)&&d.forEach(h=>{var g,m,b,v;const w=(g=(h==null?void 0:h.type)||{})==null?void 0:g.name;w==="ElOptionGroup"?c(!mt(h.children)&&!Array.isArray(h.children)&&Xe((m=h.children)==null?void 0:m.default)?(b=h.children)==null?void 0:b.default():h.children):w==="ElOption"?u.push((v=h.props)==null?void 0:v.label):Array.isArray(h.children)&&c(h.children)})}return a.length&&c((o=a[0])==null?void 0:o.children),i(u,r)||(r=u,n("update-options",u)),a}}});const D1="ElSelect",OU=Fe({name:D1,componentName:D1,components:{ElInput:el,ElSelectMenu:wU,ElOption:xv,ElOptions:SU,ElTag:c9,ElScrollbar:pv,ElTooltip:Wd,ElIcon:wn},directives:{ClickOutside:y2},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:nz},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:_v.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:ni,default:ev},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:ni,default:Zm},tagType:{...k2.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Nd,default:"bottom-start"}},emits:[Ln,AS,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Qe("select"),r=Qe("input"),{t:i}=Xo(),s=xU(e),{optionList:o,optionsArray:a,selectSize:u,readonly:c,handleResize:d,collapseTagSize:h,debouncedOnInputChange:g,debouncedQueryChange:m,deletePrevTag:b,deleteTag:v,deleteSelected:w,handleOptionSelect:y,scrollToOption:C,setSelected:O,resetInputHeight:_,managePlaceholder:E,showClose:T,selectDisabled:P,iconComponent:R,iconReverse:$,showNewOption:D,emptyText:j,toggleLastOptionHitState:A,resetInputState:U,handleComposition:ue,onOptionCreate:ce,onOptionDestroy:ne,handleMenuEnter:Q,handleFocus:ie,blur:ee,handleBlur:_e,handleClearClick:Ee,handleClose:Z,handleKeydownEscape:Ge,toggleMenu:De,selectOption:Ze,getValueKey:Je,navigateOptions:Y,dropMenuVisible:oe,reference:de,input:Oe,iOSInput:We,tooltipRef:F,tags:W,selectWrapper:q,scrollbar:se,queryChange:pe,groupQueryChange:me,handleMouseEnter:Ae,handleMouseLeave:Se,showTagList:Ce,collapseTagList:ge}=CU(e,s,t),{focus:Ne}=az(de),{inputWidth:Pe,selected:re,inputLength:Me,filteredOptionsCount:Ve,visible:at,softFocus:ot,selectedLabel:Bt,hoverIndex:Le,query:Ue,inputHovering:ct,currentPlaceholder:et,menuVisibleOnFocus:xt,isOnComposition:St,isSilentBlur:Ft,options:te,cachedOptions:we,optionsCount:Ye,prefixWidth:ft,tagInMultiLine:nn}=Gs(s),an=z(()=>{const Dn=[n.b()],Mi=S(u);return Mi&&Dn.push(n.m(Mi)),e.disabled&&Dn.push(n.m("disabled")),Dn}),hr=z(()=>({maxWidth:`${S(Pe)-32}px`,width:"100%"})),Kr=z(()=>({maxWidth:`${S(Pe)>123?S(Pe)-123:S(Pe)-75}px`}));sn(jd,vn({props:e,options:te,optionsArray:a,cachedOptions:we,optionsCount:Ye,filteredOptionsCount:Ve,hoverIndex:Le,handleOptionSelect:y,onOptionCreate:ce,onOptionDestroy:ne,selectWrapper:q,selected:re,setSelected:O,queryChange:pe,groupQueryChange:me})),Lt(()=>{s.cachedPlaceHolder=et.value=e.placeholder||(()=>i("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(et.value=""),Vs(q,d),e.remote&&e.multiple&&_(),bt(()=>{const Dn=de.value&&de.value.$el;if(Dn&&(Pe.value=Dn.getBoundingClientRect().width,t.slots.prefix)){const Mi=Dn.querySelector(`.${r.e("prefix")}`);ft.value=Math.max(Mi.getBoundingClientRect().width+5,30)}}),O()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Ln,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Ln,"");const Zn=z(()=>{var Dn,Mi;return(Mi=(Dn=F.value)==null?void 0:Dn.popperRef)==null?void 0:Mi.contentRef});return{isIOS:FC,onOptionsRendered:Dn=>{o.value=Dn},tagInMultiLine:nn,prefixWidth:ft,selectSize:u,readonly:c,handleResize:d,collapseTagSize:h,debouncedOnInputChange:g,debouncedQueryChange:m,deletePrevTag:b,deleteTag:v,deleteSelected:w,handleOptionSelect:y,scrollToOption:C,inputWidth:Pe,selected:re,inputLength:Me,filteredOptionsCount:Ve,visible:at,softFocus:ot,selectedLabel:Bt,hoverIndex:Le,query:Ue,inputHovering:ct,currentPlaceholder:et,menuVisibleOnFocus:xt,isOnComposition:St,isSilentBlur:Ft,options:te,resetInputHeight:_,managePlaceholder:E,showClose:T,selectDisabled:P,iconComponent:R,iconReverse:$,showNewOption:D,emptyText:j,toggleLastOptionHitState:A,resetInputState:U,handleComposition:ue,handleMenuEnter:Q,handleFocus:ie,blur:ee,handleBlur:_e,handleClearClick:Ee,handleClose:Z,handleKeydownEscape:Ge,toggleMenu:De,selectOption:Ze,getValueKey:Je,navigateOptions:Y,dropMenuVisible:oe,focus:Ne,reference:de,input:Oe,iOSInput:We,tooltipRef:F,popperPaneRef:Zn,tags:W,selectWrapper:q,scrollbar:se,wrapperKls:an,selectTagsStyle:hr,nsSelect:n,tagTextStyle:Kr,handleMouseEnter:Ae,handleMouseLeave:Se,showTagList:Ce,collapseTagList:ge}}}),EU=["disabled","autocomplete"],MU=["disabled"],TU={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function AU(e,t,n,r,i,s){const o=Yt("el-tag"),a=Yt("el-tooltip"),u=Yt("el-icon"),c=Yt("el-input"),d=Yt("el-option"),h=Yt("el-options"),g=Yt("el-scrollbar"),m=Yt("el-select-menu"),b=Tm("click-outside");return gn((K(),ve("div",{ref:"selectWrapper",class:he(e.wrapperKls),onMouseenter:t[21]||(t[21]=(...v)=>e.handleMouseEnter&&e.handleMouseEnter(...v)),onMouseleave:t[22]||(t[22]=(...v)=>e.handleMouseLeave&&e.handleMouseLeave(...v)),onClick:t[23]||(t[23]=Cr((...v)=>e.toggleMenu&&e.toggleMenu(...v),["stop"]))},[H(a,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],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,onShow:e.handleMenuEnter},{default:B(()=>[I("div",{class:"select-trigger",onMouseenter:t[19]||(t[19]=v=>e.inputHovering=!0),onMouseleave:t[20]||(t[20]=v=>e.inputHovering=!1)},[e.multiple?(K(),ve("div",{key:0,ref:"tags",class:he([e.nsSelect.e("tags"),e.nsSelect.is("disabled",e.selectDisabled)]),style:jt(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(K(),Te(Hr,{key:0,onAfterLeave:e.resetInputHeight},{default:B(()=>[I("span",{class:he([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(K(!0),ve(it,null,En(e.showTagList,v=>(K(),Te(o,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:w=>e.deleteTag(w,v)},{default:B(()=>[I("span",{class:he(e.nsSelect.e("tags-text")),style:jt(e.tagTextStyle)},pt(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(K(),Te(o,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:B(()=>[e.collapseTagsTooltip?(K(),Te(a,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:B(()=>[I("span",{class:he(e.nsSelect.e("tags-text"))},"+ "+pt(e.selected.length-e.maxCollapseTags),3)]),content:B(()=>[I("div",{class:he(e.nsSelect.e("collapse-tags"))},[(K(!0),ve(it,null,En(e.collapseTagList,v=>(K(),ve("div",{key:e.getValueKey(v),class:he(e.nsSelect.e("collapse-tag"))},[H(o,{class:"in-tooltip",closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:w=>e.deleteTag(w,v)},{default:B(()=>[I("span",{class:he(e.nsSelect.e("tags-text")),style:jt({maxWidth:e.inputWidth-75+"px"})},pt(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(K(),ve("span",{key:1,class:he(e.nsSelect.e("tags-text"))},"+ "+pt(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):ke("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):ke("v-if",!0),e.collapseTags?ke("v-if",!0):(K(),Te(Hr,{key:1,onAfterLeave:e.resetInputHeight},{default:B(()=>[I("span",{class:he([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(K(!0),ve(it,null,En(e.selected,v=>(K(),Te(o,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:w=>e.deleteTag(w,v)},{default:B(()=>[I("span",{class:he(e.nsSelect.e("tags-text")),style:jt({maxWidth:e.inputWidth-75+"px"})},pt(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),e.filterable?gn((K(),ve("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=v=>e.query=v),type:"text",class:he([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.is("disabled",e.selectDisabled)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:jt({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[1]||(t[1]=(...v)=>e.handleFocus&&e.handleFocus(...v)),onBlur:t[2]||(t[2]=(...v)=>e.handleBlur&&e.handleBlur(...v)),onKeyup:t[3]||(t[3]=(...v)=>e.managePlaceholder&&e.managePlaceholder(...v)),onKeydown:[t[4]||(t[4]=(...v)=>e.resetInputState&&e.resetInputState(...v)),t[5]||(t[5]=Jr(Cr(v=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=Jr(Cr(v=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=Jr((...v)=>e.handleKeydownEscape&&e.handleKeydownEscape(...v),["esc"])),t[8]||(t[8]=Jr(Cr((...v)=>e.selectOption&&e.selectOption(...v),["stop","prevent"]),["enter"])),t[9]||(t[9]=Jr((...v)=>e.deletePrevTag&&e.deletePrevTag(...v),["delete"])),t[10]||(t[10]=Jr(v=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionupdate:t[12]||(t[12]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionend:t[13]||(t[13]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onInput:t[14]||(t[14]=(...v)=>e.debouncedQueryChange&&e.debouncedQueryChange(...v))},null,46,EU)),[[CF,e.query]]):ke("v-if",!0)],6)):ke("v-if",!0),ke(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(K(),ve("input",{key:1,ref:"iOSInput",class:he([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.em("input","iOS")]),disabled:e.selectDisabled,type:"text"},null,10,MU)):ke("v-if",!0),H(c,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[15]||(t[15]=v=>e.selectedLabel=v),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:he([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[16]||(t[16]=Jr(Cr(v=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[17]||(t[17]=Jr(Cr(v=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Jr(Cr(e.selectOption,["stop","prevent"]),["enter"]),Jr(e.handleKeydownEscape,["esc"]),t[18]||(t[18]=Jr(v=>e.visible=!1,["tab"]))]},dC({suffix:B(()=>[e.iconComponent&&!e.showClose?(K(),Te(u,{key:0,class:he([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:B(()=>[(K(),Te($n(e.iconComponent)))]),_:1},8,["class"])):ke("v-if",!0),e.showClose&&e.clearIcon?(K(),Te(u,{key:1,class:he([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:B(()=>[(K(),Te($n(e.clearIcon)))]),_:1},8,["class","onClick"])):ke("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:B(()=>[I("div",TU,[He(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:B(()=>[H(m,null,{default:B(()=>[gn(H(g,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:he([e.nsSelect.is("empty",!e.allowCreate&&!!e.query&&e.filteredOptionsCount===0)])},{default:B(()=>[e.showNewOption?(K(),Te(d,{key:0,value:e.query,created:!0},null,8,["value"])):ke("v-if",!0),H(h,{onUpdateOptions:e.onOptionsRendered},{default:B(()=>[He(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[Wr,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(K(),ve(it,{key:0},[e.$slots.empty?He(e.$slots,"empty",{key:0}):(K(),ve("p",{key:1,class:he(e.nsSelect.be("dropdown","empty"))},pt(e.emptyText),3))],64)):ke("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[b,e.handleClose,e.popperPaneRef]])}var PU=Et(OU,[["render",AU],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const RU=Fe({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=Qe("select"),n=X(!0),r=kt(),i=X([]);sn(V2,vn({...Gs(e)}));const s=Ke(jd);Lt(()=>{i.value=o(r.subTree)});const o=u=>{const c=[];return Array.isArray(u.children)&&u.children.forEach(d=>{var h;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?c.push(d.component.proxy):(h=d.children)!=null&&h.length&&c.push(...o(d))}),c},{groupQueryChange:a}=ut(s);return Ie(a,()=>{n.value=i.value.some(u=>u.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function kU(e,t,n,r,i,s){return gn((K(),ve("ul",{class:he(e.ns.be("group","wrap"))},[I("li",{class:he(e.ns.be("group","title"))},pt(e.label),3),I("li",null,[I("ul",{class:he(e.ns.b("group"))},[He(e.$slots,"default")],2)])],2)),[[Wr,e.visible]])}var U2=Et(RU,[["render",kU],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const LU=Pn(PU,{Option:xv,OptionGroup:U2}),IU=Oi(xv);Oi(U2);/*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + */var $U=/["'&<>]/,FU=DU;function DU(e){var t=""+e,n=$U.exec(t);if(!n)return t;var r,i="",s=0,o=0;for(s=n.index;stypeof c=="string"?Hn(a,c):c(a,u,e))):(t!=="$key"&&yt(a)&&"$value"in a&&(a=a.$value),[yt(a)?Hn(a,t):a])},o=function(a,u){if(r)return r(a.value,u.value);for(let c=0,d=a.key.length;cu.key[c])return 1}return 0};return e.map((a,u)=>({value:a,index:u,key:s?s(a,u):null})).sort((a,u)=>{let c=o(a,u);return c||(c=a.index-u.index),c*+n}).map(a=>a.value)},K2=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},zU=function(e,t){let n=null;for(let r=0;r{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const i of n)r=r[i];return`${r}`}else if(typeof t=="function")return t.call(null,e)},Ro=function(e,t){const n={};return(e||[]).forEach((r,i)=>{n[In(r,t)]={row:r,index:i}}),n};function HU(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(wt(t,r)){const i=t[r];typeof i<"u"&&(n[r]=i)}return n}function Cv(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function q2(e){return e===""||e!==void 0&&(e=Cv(e),Number.isNaN(e)&&(e=80)),e}function WU(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function jU(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function ql(e,t,n){let r=!1;const i=e.indexOf(t),s=i!==-1,o=a=>{a==="add"?e.push(t):e.splice(i,1),r=!0,ze(t.children)&&t.children.forEach(u=>{ql(e,u,n??!s)})};return Qi(n)?n&&!s?o("add"):!n&&s&&o("remove"):o(s?"remove":"add"),r}function VU(e,t,n="children",r="hasChildren"){const i=o=>!(Array.isArray(o)&&o.length);function s(o,a,u){t(o,a,u),a.forEach(c=>{if(c[r]){t(c,null,u+1);return}const d=c[n];i(d)||s(c,d,u+1)})}e.forEach(o=>{if(o[r]){t(o,null,0);return}const a=o[n];i(a)||s(o,a,0)})}let Wi;function UU(e,t,n,r,i){i=_S({enterable:!0,showArrow:!0},i);const s=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${s}-scrollbar__wrap`);function a(){const w=i.effect==="light",y=document.createElement("div");return y.className=[`${s}-popper`,w?"is-light":"is-dark",i.popperClass||""].join(" "),n=NU(n),y.innerHTML=n,y.style.zIndex=String(r()),e==null||e.appendChild(y),y}function u(){const w=document.createElement("div");return w.className=`${s}-popper__arrow`,w}function c(){d&&d.update()}Wi==null||Wi(),Wi=()=>{try{d&&d.destroy(),m&&(e==null||e.removeChild(m)),t.removeEventListener("mouseenter",h),t.removeEventListener("mouseleave",g),o==null||o.removeEventListener("scroll",Wi),Wi=void 0}catch{}};let d=null,h=c,g=Wi;i.enterable&&({onOpen:h,onClose:g}=XS({showAfter:i.showAfter,hideAfter:i.hideAfter,open:c,close:Wi}));const m=a();m.onmouseenter=h,m.onmouseleave=g;const b=[];if(i.offset&&b.push({name:"offset",options:{offset:[0,i.offset]}}),i.showArrow){const w=m.appendChild(u());b.push({name:"arrow",options:{element:w,padding:10}})}const v=i.popperOptions||{};return d=KS(t,m,{placement:i.placement||"top",strategy:"fixed",...v,modifiers:v.modifiers?b.concat(v.modifiers):b}),t.addEventListener("mouseenter",h),t.addEventListener("mouseleave",g),o==null||o.addEventListener("scroll",Wi),d}function Y2(e){return e.children?d5(e.children,Y2):[e]}function B1(e,t){return e+t.colSpan}const G2=(e,t,n,r)=>{let i=0,s=e;const o=n.states.columns.value;if(r){const u=Y2(r[e]);i=o.slice(0,o.indexOf(u[0])).reduce(B1,0),s=i+u.reduce(B1,0)-1}else i=e;let a;switch(t){case"left":s=o.length-n.states.rightFixedLeafColumnsLength.value&&(a="right");break;default:s=o.length-n.states.rightFixedLeafColumnsLength.value&&(a="right")}return a?{direction:a,start:i,after:s}:{}},Sv=(e,t,n,r,i,s=0)=>{const o=[],{direction:a,start:u,after:c}=G2(t,n,r,i);if(a){const d=a==="left";o.push(`${e}-fixed-column--${a}`),d&&c+s===r.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!d&&u-s===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function z1(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Ov=(e,t,n,r)=>{const{direction:i,start:s=0,after:o=0}=G2(e,t,n,r);if(!i)return;const a={},u=i==="left",c=n.states.columns.value;return u?a.left=c.slice(0,s).reduce(z1,0):a.right=c.slice(o+1).reverse().reduce(z1,0),a},Ba=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function KU(e){const t=kt(),n=X(!1),r=X([]);return{updateExpandRows:()=>{const u=e.data.value||[],c=e.rowKey.value;if(n.value)r.value=u.slice();else if(c){const d=Ro(r.value,c);r.value=u.reduce((h,g)=>{const m=In(g,c);return d[m]&&h.push(g),h},[])}else r.value=[]},toggleRowExpansion:(u,c)=>{ql(r.value,u,c)&&t.emit("expand-change",u,r.value.slice())},setExpandRowKeys:u=>{t.store.assertRowKey();const c=e.data.value||[],d=e.rowKey.value,h=Ro(c,d);r.value=u.reduce((g,m)=>{const b=h[m];return b&&g.push(b.row),g},[])},isRowExpanded:u=>{const c=e.rowKey.value;return c?!!Ro(r.value,c)[In(u,c)]:r.value.includes(u)},states:{expandRows:r,defaultExpandAll:n}}}function qU(e){const t=kt(),n=X(null),r=X(null),i=c=>{t.store.assertRowKey(),n.value=c,o(c)},s=()=>{n.value=null},o=c=>{const{data:d,rowKey:h}=e;let g=null;h.value&&(g=(S(d)||[]).find(m=>In(m,h.value)===c)),r.value=g,t.emit("current-change",r.value,null)};return{setCurrentRowKey:i,restoreCurrentRowKey:s,setCurrentRowByKey:o,updateCurrentRow:c=>{const d=r.value;if(c&&c!==d){r.value=c,t.emit("current-change",r.value,d);return}!c&&d&&(r.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],h=r.value;if(!d.includes(h)&&h){if(c){const g=In(h,c);o(g)}else r.value=null;r.value===null&&t.emit("current-change",null,h)}else n.value&&(o(n.value),s())},states:{_currentRowKey:n,currentRow:r}}}function YU(e){const t=X([]),n=X({}),r=X(16),i=X(!1),s=X({}),o=X("hasChildren"),a=X("children"),u=kt(),c=z(()=>{if(!e.rowKey.value)return{};const y=e.data.value||[];return h(y)}),d=z(()=>{const y=e.rowKey.value,C=Object.keys(s.value),O={};return C.length&&C.forEach(_=>{if(s.value[_].length){const E={children:[]};s.value[_].forEach(T=>{const P=In(T,y);E.children.push(P),T[o.value]&&!O[P]&&(O[P]={children:[]})}),O[_]=E}}),O}),h=y=>{const C=e.rowKey.value,O={};return VU(y,(_,E,T)=>{const P=In(_,C);Array.isArray(E)?O[P]={children:E.map(R=>In(R,C)),level:T}:i.value&&(O[P]={children:[],lazy:!0,level:T})},a.value,o.value),O},g=(y=!1,C=(O=>(O=u.store)==null?void 0:O.states.defaultExpandAll.value)())=>{var O;const _=c.value,E=d.value,T=Object.keys(_),P={};if(T.length){const R=S(n),$=[],D=(A,U)=>{if(y)return t.value?C||t.value.includes(U):!!(C||A!=null&&A.expanded);{const ue=C||t.value&&t.value.includes(U);return!!(A!=null&&A.expanded||ue)}};T.forEach(A=>{const U=R[A],ue={..._[A]};if(ue.expanded=D(U,A),ue.lazy){const{loaded:ce=!1,loading:ne=!1}=U||{};ue.loaded=!!ce,ue.loading=!!ne,$.push(A)}P[A]=ue});const j=Object.keys(E);i.value&&j.length&&$.length&&j.forEach(A=>{const U=R[A],ue=E[A].children;if($.includes(A)){if(P[A].children.length!==0)throw new Error("[ElTable]children must be an empty array.");P[A].children=ue}else{const{loaded:ce=!1,loading:ne=!1}=U||{};P[A]={lazy:!0,loaded:!!ce,loading:!!ne,expanded:D(U,A),children:ue,level:""}}})}n.value=P,(O=u.store)==null||O.updateTableScrollY()};Ie(()=>t.value,()=>{g(!0)}),Ie(()=>c.value,()=>{g()}),Ie(()=>d.value,()=>{g()});const m=y=>{t.value=y,g()},b=(y,C)=>{u.store.assertRowKey();const O=e.rowKey.value,_=In(y,O),E=_&&n.value[_];if(_&&E&&"expanded"in E){const T=E.expanded;C=typeof C>"u"?!E.expanded:C,n.value[_].expanded=C,T!==C&&u.emit("expand-change",y,C),u.store.updateTableScrollY()}},v=y=>{u.store.assertRowKey();const C=e.rowKey.value,O=In(y,C),_=n.value[O];i.value&&_&&"loaded"in _&&!_.loaded?w(y,O,_):b(y,void 0)},w=(y,C,O)=>{const{load:_}=u.props;_&&!n.value[C].loaded&&(n.value[C].loading=!0,_(y,O,E=>{if(!Array.isArray(E))throw new TypeError("[ElTable] data must be an array");n.value[C].loading=!1,n.value[C].loaded=!0,n.value[C].expanded=!0,E.length&&(s.value[C]=E),u.emit("expand-change",y,!0)}))};return{loadData:w,loadOrToggle:v,toggleTreeExpansion:b,updateTreeExpandKeys:m,updateTreeData:g,normalize:h,states:{expandRowKeys:t,treeData:n,indent:r,lazy:i,lazyTreeNodeMap:s,lazyColumnIdentifier:o,childrenColumnName:a}}}const GU=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:BU(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Lf=e=>{const t=[];return e.forEach(n=>{n.children?t.push.apply(t,Lf(n.children)):t.push(n)}),t};function XU(){var e;const t=kt(),{size:n}=Gs((e=t.proxy)==null?void 0:e.$props),r=X(null),i=X([]),s=X([]),o=X(!1),a=X([]),u=X([]),c=X([]),d=X([]),h=X([]),g=X([]),m=X([]),b=X([]),v=[],w=X(0),y=X(0),C=X(0),O=X(!1),_=X([]),E=X(!1),T=X(!1),P=X(null),R=X({}),$=X(null),D=X(null),j=X(null),A=X(null),U=X(null);Ie(i,()=>t.state&&Q(!1),{deep:!0});const ue=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},ce=Le=>{var Ue;(Ue=Le.children)==null||Ue.forEach(ct=>{ct.fixed=Le.fixed,ce(ct)})},ne=()=>{a.value.forEach(xt=>{ce(xt)}),d.value=a.value.filter(xt=>xt.fixed===!0||xt.fixed==="left"),h.value=a.value.filter(xt=>xt.fixed==="right"),d.value.length>0&&a.value[0]&&a.value[0].type==="selection"&&!a.value[0].fixed&&(a.value[0].fixed=!0,d.value.unshift(a.value[0]));const Le=a.value.filter(xt=>!xt.fixed);u.value=[].concat(d.value).concat(Le).concat(h.value);const Ue=Lf(Le),ct=Lf(d.value),et=Lf(h.value);w.value=Ue.length,y.value=ct.length,C.value=et.length,c.value=[].concat(ct).concat(Ue).concat(et),o.value=d.value.length>0||h.value.length>0},Q=(Le,Ue=!1)=>{Le&&ne(),Ue?t.state.doLayout():t.state.debouncedUpdateLayout()},ie=Le=>_.value.includes(Le),ee=()=>{O.value=!1,_.value.length&&(_.value=[],t.emit("selection-change",[]))},_e=()=>{let Le;if(r.value){Le=[];const Ue=Ro(_.value,r.value),ct=Ro(i.value,r.value);for(const et in Ue)wt(Ue,et)&&!ct[et]&&Le.push(Ue[et].row)}else Le=_.value.filter(Ue=>!i.value.includes(Ue));if(Le.length){const Ue=_.value.filter(ct=>!Le.includes(ct));_.value=Ue,t.emit("selection-change",Ue.slice())}},Ee=()=>(_.value||[]).slice(),Z=(Le,Ue=void 0,ct=!0)=>{if(ql(_.value,Le,Ue)){const xt=(_.value||[]).slice();ct&&t.emit("select",xt,Le),t.emit("selection-change",xt)}},Ge=()=>{var Le,Ue;const ct=T.value?!O.value:!(O.value||_.value.length);O.value=ct;let et=!1,xt=0;const St=(Ue=(Le=t==null?void 0:t.store)==null?void 0:Le.states)==null?void 0:Ue.rowKey.value;i.value.forEach((Ft,te)=>{const we=te+xt;P.value?P.value.call(null,Ft,we)&&ql(_.value,Ft,ct)&&(et=!0):ql(_.value,Ft,ct)&&(et=!0),xt+=Je(In(Ft,St))}),et&&t.emit("selection-change",_.value?_.value.slice():[]),t.emit("select-all",_.value)},De=()=>{const Le=Ro(_.value,r.value);i.value.forEach(Ue=>{const ct=In(Ue,r.value),et=Le[ct];et&&(_.value[et.index]=Ue)})},Ze=()=>{var Le,Ue,ct;if(((Le=i.value)==null?void 0:Le.length)===0){O.value=!1;return}let et;r.value&&(et=Ro(_.value,r.value));const xt=function(we){return et?!!et[In(we,r.value)]:_.value.includes(we)};let St=!0,Ft=0,te=0;for(let we=0,Ye=(i.value||[]).length;we{var Ue;if(!t||!t.store)return 0;const{treeData:ct}=t.store.states;let et=0;const xt=(Ue=ct.value[Le])==null?void 0:Ue.children;return xt&&(et+=xt.length,xt.forEach(St=>{et+=Je(St)})),et},Y=(Le,Ue)=>{Array.isArray(Le)||(Le=[Le]);const ct={};return Le.forEach(et=>{R.value[et.id]=Ue,ct[et.columnKey||et.id]=Ue}),ct},oe=(Le,Ue,ct)=>{D.value&&D.value!==Le&&(D.value.order=null),D.value=Le,j.value=Ue,A.value=ct},de=()=>{let Le=S(s);Object.keys(R.value).forEach(Ue=>{const ct=R.value[Ue];if(!ct||ct.length===0)return;const et=K2({columns:c.value},Ue);et&&et.filterMethod&&(Le=Le.filter(xt=>ct.some(St=>et.filterMethod.call(null,St,xt,et))))}),$.value=Le},Oe=()=>{i.value=GU($.value,{sortingColumn:D.value,sortProp:j.value,sortOrder:A.value})},We=(Le=void 0)=>{Le&&Le.filter||de(),Oe()},F=Le=>{const{tableHeaderRef:Ue}=t.refs;if(!Ue)return;const ct=Object.assign({},Ue.filterPanels),et=Object.keys(ct);if(et.length)if(typeof Le=="string"&&(Le=[Le]),Array.isArray(Le)){const xt=Le.map(St=>zU({columns:c.value},St));et.forEach(St=>{const Ft=xt.find(te=>te.id===St);Ft&&(Ft.filteredValue=[])}),t.store.commit("filterChange",{column:xt,values:[],silent:!0,multi:!0})}else et.forEach(xt=>{const St=c.value.find(Ft=>Ft.id===xt);St&&(St.filteredValue=[])}),R.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},W=()=>{D.value&&(oe(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:q,toggleRowExpansion:se,updateExpandRows:pe,states:me,isRowExpanded:Ae}=KU({data:i,rowKey:r}),{updateTreeExpandKeys:Se,toggleTreeExpansion:Ce,updateTreeData:ge,loadOrToggle:Ne,states:Pe}=YU({data:i,rowKey:r}),{updateCurrentRowData:re,updateCurrentRow:Me,setCurrentRowKey:Ve,states:at}=qU({data:i,rowKey:r});return{assertRowKey:ue,updateColumns:ne,scheduleLayout:Q,isSelected:ie,clearSelection:ee,cleanSelection:_e,getSelectionRows:Ee,toggleRowSelection:Z,_toggleAllSelection:Ge,toggleAllSelection:null,updateSelectionByRowKey:De,updateAllSelected:Ze,updateFilters:Y,updateCurrentRow:Me,updateSort:oe,execFilter:de,execSort:Oe,execQuery:We,clearFilter:F,clearSort:W,toggleRowExpansion:se,setExpandRowKeysAdapter:Le=>{q(Le),Se(Le)},setCurrentRowKey:Ve,toggleRowExpansionAdapter:(Le,Ue)=>{c.value.some(({type:et})=>et==="expand")?se(Le,Ue):Ce(Le,Ue)},isRowExpanded:Ae,updateExpandRows:pe,updateCurrentRowData:re,loadOrToggle:Ne,updateTreeData:ge,states:{tableSize:n,rowKey:r,data:i,_data:s,isComplex:o,_columns:a,originColumns:u,columns:c,fixedColumns:d,rightFixedColumns:h,leafColumns:g,fixedLeafColumns:m,rightFixedLeafColumns:b,updateOrderFns:v,leafColumnsLength:w,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:C,isAllSelected:O,selection:_,reserveSelection:E,selectOnIndeterminate:T,selectable:P,filters:R,filteredData:$,sortingColumn:D,sortProp:j,sortOrder:A,hoverRow:U,...me,...Pe,...at}}}function Ng(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=Ng(n.children,t)),n)})}function Bg(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&Bg(t.children)}),e.sort((t,n)=>t.no-n.no)}function JU(){const e=kt(),t=XU();return{ns:Qe("table"),...t,mutations:{setData(o,a){const u=S(o._data)!==a;o.data.value=a,o._data.value=a,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),S(o.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):u?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(o,a,u,c){const d=S(o._columns);let h=[];u?(u&&!u.children&&(u.children=[]),u.children.push(a),h=Ng(d,u)):(d.push(a),h=d),Bg(h),o._columns.value=h,o.updateOrderFns.push(c),a.type==="selection"&&(o.selectable.value=a.selectable,o.reserveSelection.value=a.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(o,a){var u;((u=a.getColumnIndex)==null?void 0:u.call(a))!==a.no&&(Bg(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,a,u,c){const d=S(o._columns)||[];if(u)u.children.splice(u.children.findIndex(g=>g.id===a.id),1),bt(()=>{var g;((g=u.children)==null?void 0:g.length)===0&&delete u.children}),o._columns.value=Ng(d,u);else{const g=d.indexOf(a);g>-1&&(d.splice(g,1),o._columns.value=d)}const h=o.updateOrderFns.indexOf(c);h>-1&&o.updateOrderFns.splice(h,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,a){const{prop:u,order:c,init:d}=a;if(u){const h=S(o.columns).find(g=>g.property===u);h&&(h.order=c,e.store.updateSort(h,u,c),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(o,a){const{sortingColumn:u,sortProp:c,sortOrder:d}=o,h=S(u),g=S(c),m=S(d);m===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const b={filter:!0};e.store.execQuery(b),(!a||!(a.silent||a.init))&&e.emit("sort-change",{column:h,prop:g,order:m}),e.store.updateTableScrollY()},filterChange(o,a){const{column:u,values:c,silent:d}=a,h=e.store.updateFilters(u,c);e.store.execQuery(),d||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,a){e.store.toggleRowSelection(a),e.store.updateAllSelected()},setHoverRow(o,a){o.hoverRow.value=a},setCurrentRow(o,a){e.store.updateCurrentRow(a)}},commit:function(o,...a){const u=e.store.mutations;if(u[o])u[o].apply(e,[e.store.states].concat(a));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){bt(()=>e.layout.updateScrollY.apply(e.layout))}}}const Yl={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function ZU(e,t){if(!e)throw new Error("Table is required.");const n=JU();return n.toggleAllSelection=Pa(n._toggleAllSelection,10),Object.keys(Yl).forEach(r=>{X2(J2(t,r),r,n)}),QU(n,t),n}function QU(e,t){Object.keys(Yl).forEach(n=>{Ie(()=>J2(t,n),r=>{X2(r,n,e)})})}function X2(e,t,n){let r=e,i=Yl[t];typeof Yl[t]=="object"&&(i=i.key,r=r||Yl[t].default),n.states[i].value=r}function J2(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(i=>{r=r[i]}),r}else return e[t]}class e7{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=X(null),this.scrollX=X(!1),this.scrollY=X(!1),this.bodyWidth=X(null),this.fixedWidth=X(null),this.rightFixedWidth=X(null),this.gutterWidth=0;for(const n in t)wt(t,n)&&(Nt(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(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=!0;const i=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,i!==r}return!1}setHeight(t,n="height"){if(!tn)return;const r=this.table.vnode.el;if(t=WU(t),this.height.value=Number(t),!r&&(t||t===0))return bt(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),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(){if(!tn)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const i=this.getFlattenColumns(),s=i.filter(u=>typeof u.width!="number");if(i.forEach(u=>{typeof u.width=="number"&&u.realWidth&&(u.realWidth=null)}),s.length>0&&t){if(i.forEach(u=>{r+=Number(u.width||u.minWidth||80)}),r<=n){this.scrollX.value=!1;const u=n-r;if(s.length===1)s[0].realWidth=Number(s[0].minWidth||80)+u;else{const c=s.reduce((g,m)=>g+Number(m.minWidth||80),0),d=u/c;let h=0;s.forEach((g,m)=>{if(m===0)return;const b=Math.floor(Number(g.minWidth||80)*d);h+=b,g.realWidth=Number(g.minWidth||80)+b}),s[0].realWidth=Number(s[0].minWidth||80)+u-h}}else this.scrollX.value=!0,s.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),r+=u.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const o=this.store.states.fixedColumns.value;if(o.length>0){let u=0;o.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.fixedWidth.value=u}const a=this.store.states.rightFixedColumns.value;if(a.length>0){let u=0;a.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=u}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(r=>{var i,s;switch(t){case"columns":(i=r.state)==null||i.onColumnsChange(this);break;case"scrollable":(s=r.state)==null||s.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:t7}=Na,n7=Fe({name:"ElTableFilterPanel",components:{ElCheckbox:Na,ElCheckboxGroup:t7,ElScrollbar:pv,ElTooltip:Wd,ElIcon:wn,ArrowDown:Zm,ArrowUp:z5},directives:{ClickOutside:y2},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=kt(),{t:n}=Xo(),r=Qe("table-filter"),i=t==null?void 0:t.parent;i.filterPanels.value[e.column.id]||(i.filterPanels.value[e.column.id]=t);const s=X(!1),o=X(null),a=z(()=>e.column&&e.column.filters),u=z({get:()=>{var _;return(((_=e.column)==null?void 0:_.filteredValue)||[])[0]},set:_=>{c.value&&(typeof _<"u"&&_!==null?c.value.splice(0,1,_):c.value.splice(0,1))}}),c=z({get(){return e.column?e.column.filteredValue||[]:[]},set(_){e.column&&e.upDataColumn("filteredValue",_)}}),d=z(()=>e.column?e.column.filterMultiple:!0),h=_=>_.value===u.value,g=()=>{s.value=!1},m=_=>{_.stopPropagation(),s.value=!s.value},b=()=>{s.value=!1},v=()=>{C(c.value),g()},w=()=>{c.value=[],C(c.value),g()},y=_=>{u.value=_,C(typeof _<"u"&&_!==null?c.value:[]),g()},C=_=>{e.store.commit("filterChange",{column:e.column,values:_}),e.store.updateAllSelected()};Ie(s,_=>{e.column&&e.upDataColumn("filterOpened",_)},{immediate:!0});const O=z(()=>{var _,E;return(E=(_=o.value)==null?void 0:_.popperRef)==null?void 0:E.contentRef});return{tooltipVisible:s,multiple:d,filteredValue:c,filterValue:u,filters:a,handleConfirm:v,handleReset:w,handleSelect:y,isActive:h,t:n,ns:r,showFilterPanel:m,hideFilterPanel:b,popperPaneRef:O,tooltip:o}}}),r7={key:0},i7=["disabled"],s7=["label","onClick"];function o7(e,t,n,r,i,s){const o=Yt("el-checkbox"),a=Yt("el-checkbox-group"),u=Yt("el-scrollbar"),c=Yt("arrow-up"),d=Yt("arrow-down"),h=Yt("el-icon"),g=Yt("el-tooltip"),m=Tm("click-outside");return K(),Te(g,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:B(()=>[e.multiple?(K(),ve("div",r7,[I("div",{class:he(e.ns.e("content"))},[H(u,{"wrap-class":e.ns.e("wrap")},{default:B(()=>[H(a,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=b=>e.filteredValue=b),class:he(e.ns.e("checkbox-group"))},{default:B(()=>[(K(!0),ve(it,null,En(e.filters,b=>(K(),Te(o,{key:b.value,label:b.value},{default:B(()=>[le(pt(b.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),I("div",{class:he(e.ns.e("bottom"))},[I("button",{class:he({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...b)=>e.handleConfirm&&e.handleConfirm(...b))},pt(e.t("el.table.confirmFilter")),11,i7),I("button",{type:"button",onClick:t[2]||(t[2]=(...b)=>e.handleReset&&e.handleReset(...b))},pt(e.t("el.table.resetFilter")),1)],2)])):(K(),ve("ul",{key:1,class:he(e.ns.e("list"))},[I("li",{class:he([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=b=>e.handleSelect(null))},pt(e.t("el.table.clearFilter")),3),(K(!0),ve(it,null,En(e.filters,b=>(K(),ve("li",{key:b.value,class:he([e.ns.e("list-item"),e.ns.is("active",e.isActive(b))]),label:b.value,onClick:v=>e.handleSelect(b.value)},pt(b.text),11,s7))),128))],2))]),default:B(()=>[gn((K(),ve("span",{class:he([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...b)=>e.showFilterPanel&&e.showFilterPanel(...b))},[H(h,null,{default:B(()=>[e.column.filterOpened?(K(),Te(c,{key:0})):(K(),Te(d,{key:1}))]),_:1})],2)),[[m,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var a7=Et(n7,[["render",o7],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Z2(e){const t=kt();qa(()=>{n.value.addObserver(t)}),Lt(()=>{r(n.value),i(n.value)}),Xs(()=>{r(n.value),i(n.value)}),Ya(()=>{n.value.removeObserver(t)});const n=z(()=>{const s=e.layout;if(!s)throw new Error("Can not find table layout.");return s}),r=s=>{var o;const a=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!a.length)return;const u=s.getFlattenColumns(),c={};u.forEach(d=>{c[d.id]=d});for(let d=0,h=a.length;d{var o,a;const u=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,h=u.length;d{v.stopPropagation()},s=(v,w)=>{!w.filters&&w.sortable?b(v,w,!1):w.filterable&&!w.sortable&&i(v),r==null||r.emit("header-click",w,v)},o=(v,w)=>{r==null||r.emit("header-contextmenu",w,v)},a=X(null),u=X(!1),c=X({}),d=(v,w)=>{if(tn&&!(w.children&&w.children.length>0)&&a.value&&e.border){u.value=!0;const y=r;t("set-drag-visible",!0);const O=(y==null?void 0:y.vnode.el).getBoundingClientRect().left,_=n.vnode.el.querySelector(`th.${w.id}`),E=_.getBoundingClientRect(),T=E.left-O+30;To(_,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:E.right-O,startColumnLeft:E.left-O,tableLeft:O};const P=y==null?void 0:y.refs.resizeProxy;P.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const R=D=>{const j=D.clientX-c.value.startMouseLeft,A=c.value.startLeft+j;P.style.left=`${Math.max(T,A)}px`},$=()=>{if(u.value){const{startColumnLeft:D,startLeft:j}=c.value,U=Number.parseInt(P.style.left,10)-D;w.width=w.realWidth=U,y==null||y.emit("header-dragend",w.width,j-D,w,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,a.value=null,c.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",$),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Fo(_,"noclick")},0)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",$)}},h=(v,w)=>{if(w.children&&w.children.length>0)return;const y=v.target;if(!ka(y))return;const C=y==null?void 0:y.closest("th");if(!(!w||!w.resizable)&&!u.value&&e.border){const O=C.getBoundingClientRect(),_=document.body.style;O.width>12&&O.right-v.pageX<8?(_.cursor="col-resize",$o(C,"is-sortable")&&(C.style.cursor="col-resize"),a.value=w):u.value||(_.cursor="",$o(C,"is-sortable")&&(C.style.cursor="pointer"),a.value=null)}},g=()=>{tn&&(document.body.style.cursor="")},m=({order:v,sortOrders:w})=>{if(v==="")return w[0];const y=w.indexOf(v||null);return w[y>w.length-2?0:y+1]},b=(v,w,y)=>{var C;v.stopPropagation();const O=w.order===y?null:y||m(w),_=(C=v.target)==null?void 0:C.closest("th");if(_&&$o(_,"noclick")){Fo(_,"noclick");return}if(!w.sortable)return;const E=e.store.states;let T=E.sortProp.value,P;const R=E.sortingColumn.value;(R!==w||R===w&&R.order===null)&&(R&&(R.order=null),E.sortingColumn.value=w,T=w.property),O?P=w.order=O:P=w.order=null,E.sortProp.value=T,E.sortOrder.value=P,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:s,handleHeaderContextMenu:o,handleMouseDown:d,handleMouseMove:h,handleMouseOut:g,handleSortClick:b,handleFilterClick:i}}function u7(e){const t=Ke(Ei),n=Qe("table");return{getHeaderRowStyle:a=>{const u=t==null?void 0:t.props.headerRowStyle;return typeof u=="function"?u.call(null,{rowIndex:a}):u},getHeaderRowClass:a=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return typeof c=="string"?u.push(c):typeof c=="function"&&u.push(c.call(null,{rowIndex:a})),u.join(" ")},getHeaderCellStyle:(a,u,c,d)=>{var h;let g=(h=t==null?void 0:t.props.headerCellStyle)!=null?h:{};typeof g=="function"&&(g=g.call(null,{rowIndex:a,columnIndex:u,row:c,column:d}));const m=Ov(u,d.fixed,e.store,c);return Ba(m,"left"),Ba(m,"right"),Object.assign({},g,m)},getHeaderCellClass:(a,u,c,d)=>{const h=Sv(n.b(),u,d.fixed,e.store,c),g=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...h];d.children||g.push("is-leaf"),d.sortable&&g.push("is-sortable");const m=t==null?void 0:t.props.headerCellClassName;return typeof m=="string"?g.push(m):typeof m=="function"&&g.push(m.call(null,{rowIndex:a,columnIndex:u,row:c,column:d})),g.push(n.e("cell")),g.filter(b=>!!b).join(" ")}}}const Q2=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,Q2(n.children))):t.push(n)}),t},c7=e=>{let t=1;const n=(s,o)=>{if(o&&(s.level=o.level+1,t{n(u,s),a+=u.colSpan}),s.colSpan=a}else s.colSpan=1};e.forEach(s=>{s.level=1,n(s,void 0)});const r=[];for(let s=0;s{s.children?(s.rowSpan=1,s.children.forEach(o=>o.isSubColumn=!0)):s.rowSpan=t-s.level+1,r[s.level-1].push(s)}),r};function f7(e){const t=Ke(Ei),n=z(()=>c7(e.store.states.originColumns.value));return{isGroup:z(()=>{const s=n.value.length>1;return s&&t&&(t.state.isGroup.value=!0),s}),toggleAllSelection:s=>{s.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var d7=Fe({name:"ElTableHeader",components:{ElCheckbox:Na},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=kt(),r=Ke(Ei),i=Qe("table"),s=X({}),{onColumnsChange:o,onScrollableChange:a}=Z2(r);Lt(async()=>{await bt(),await bt();const{prop:T,order:P}=e.defaultSort;r==null||r.store.commit("sort",{prop:T,order:P,init:!0})});const{handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:h,handleMouseOut:g,handleSortClick:m,handleFilterClick:b}=l7(e,t),{getHeaderRowStyle:v,getHeaderRowClass:w,getHeaderCellStyle:y,getHeaderCellClass:C}=u7(e),{isGroup:O,toggleAllSelection:_,columnRows:E}=f7(e);return n.state={onColumnsChange:o,onScrollableChange:a},n.filterPanels=s,{ns:i,filterPanels:s,onColumnsChange:o,onScrollableChange:a,columnRows:E,getHeaderRowClass:w,getHeaderRowStyle:v,getHeaderCellClass:C,getHeaderCellStyle:y,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:h,handleMouseOut:g,handleSortClick:m,handleFilterClick:b,isGroup:O,toggleAllSelection:_}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:i,getHeaderRowClass:s,getHeaderRowStyle:o,handleHeaderClick:a,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:d,handleSortClick:h,handleMouseOut:g,store:m,$parent:b}=this;let v=1;return qe("thead",{class:{[e.is("group")]:t}},n.map((w,y)=>qe("tr",{class:s(y),key:y,style:o(y)},w.map((C,O)=>(C.rowSpan>v&&(v=C.rowSpan),qe("th",{class:i(y,O,w,C),colspan:C.colSpan,key:`${C.id}-thead`,rowspan:C.rowSpan,style:r(y,O,w,C),onClick:_=>a(_,C),onContextmenu:_=>u(_,C),onMousedown:_=>c(_,C),onMousemove:_=>d(_,C),onMouseout:g},[qe("div",{class:["cell",C.filteredValue&&C.filteredValue.length>0?"highlight":""]},[C.renderHeader?C.renderHeader({column:C,$index:O,store:m,_self:b}):C.label,C.sortable&&qe("span",{onClick:_=>h(_,C),class:"caret-wrapper"},[qe("i",{onClick:_=>h(_,C,"ascending"),class:"sort-caret ascending"}),qe("i",{onClick:_=>h(_,C,"descending"),class:"sort-caret descending"})]),C.filterable&&qe(a7,{store:m,placement:C.filterPlacement||"bottom-start",column:C,upDataColumn:(_,E)=>{C[_]=E}})])]))))))}});function h7(e){const t=Ke(Ei),n=X(""),r=X(qe("div")),{nextZIndex:i}=fv(),s=(m,b,v)=>{var w;const y=t,C=Pp(m);let O;const _=(w=y==null?void 0:y.vnode.el)==null?void 0:w.dataset.prefix;C&&(O=N1({columns:e.store.states.columns.value},C,_),O&&(y==null||y.emit(`cell-${v}`,b,O,C,m))),y==null||y.emit(`row-${v}`,b,O,m)},o=(m,b)=>{s(m,b,"dblclick")},a=(m,b)=>{e.store.commit("setCurrentRow",b),s(m,b,"click")},u=(m,b)=>{s(m,b,"contextmenu")},c=Pa(m=>{e.store.commit("setHoverRow",m)},30),d=Pa(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:o,handleClick:a,handleContextMenu:u,handleMouseEnter:c,handleMouseLeave:d,handleCellMouseEnter:(m,b,v)=>{var w;const y=t,C=Pp(m),O=(w=y==null?void 0:y.vnode.el)==null?void 0:w.dataset.prefix;if(C){const R=N1({columns:e.store.states.columns.value},C,O),$=y.hoverState={cell:C,column:R,row:b};y==null||y.emit("cell-mouse-enter",$.row,$.column,$.cell,m)}if(!v)return;const _=m.target.querySelector(".cell");if(!($o(_,`${O}-tooltip`)&&_.childNodes.length))return;const E=document.createRange();E.setStart(_,0),E.setEnd(_,_.childNodes.length);const T=Math.round(E.getBoundingClientRect().width),P=(Number.parseInt(_g(_,"paddingLeft"),10)||0)+(Number.parseInt(_g(_,"paddingRight"),10)||0);(T+P>_.offsetWidth||_.scrollWidth>_.offsetWidth)&&UU(t==null?void 0:t.refs.tableWrapper,C,C.innerText||C.textContent,i,v)},handleCellMouseLeave:m=>{if(!Pp(m))return;const v=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,m)},tooltipContent:n,tooltipTrigger:r}}function p7(e){const t=Ke(Ei),n=Qe("table");return{getRowStyle:(c,d)=>{const h=t==null?void 0:t.props.rowStyle;return typeof h=="function"?h.call(null,{row:c,rowIndex:d}):h||null},getRowClass:(c,d)=>{const h=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===e.store.states.currentRow.value&&h.push("current-row"),e.stripe&&d%2===1&&h.push(n.em("row","striped"));const g=t==null?void 0:t.props.rowClassName;return typeof g=="string"?h.push(g):typeof g=="function"&&h.push(g.call(null,{row:c,rowIndex:d})),h},getCellStyle:(c,d,h,g)=>{const m=t==null?void 0:t.props.cellStyle;let b=m??{};typeof m=="function"&&(b=m.call(null,{rowIndex:c,columnIndex:d,row:h,column:g}));const v=Ov(d,e==null?void 0:e.fixed,e.store);return Ba(v,"left"),Ba(v,"right"),Object.assign({},b,v)},getCellClass:(c,d,h,g,m)=>{const b=Sv(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,m),v=[g.id,g.align,g.className,...b],w=t==null?void 0:t.props.cellClassName;return typeof w=="string"?v.push(w):typeof w=="function"&&v.push(w.call(null,{rowIndex:c,columnIndex:d,row:h,column:g})),v.push(n.e("cell")),v.filter(y=>!!y).join(" ")},getSpan:(c,d,h,g)=>{let m=1,b=1;const v=t==null?void 0:t.props.spanMethod;if(typeof v=="function"){const w=v({row:c,column:d,rowIndex:h,columnIndex:g});Array.isArray(w)?(m=w[0],b=w[1]):typeof w=="object"&&(m=w.rowspan,b=w.colspan)}return{rowspan:m,colspan:b}},getColspanRealWidth:(c,d,h)=>{if(d<1)return c[h].realWidth;const g=c.map(({realWidth:m,width:b})=>m||b).slice(h,h+d);return Number(g.reduce((m,b)=>Number(m)+Number(b),-1))}}}function g7(e){const t=Ke(Ei),n=Qe("table"),{handleDoubleClick:r,handleClick:i,handleContextMenu:s,handleMouseEnter:o,handleMouseLeave:a,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:h}=h7(e),{getRowStyle:g,getRowClass:m,getCellStyle:b,getCellClass:v,getSpan:w,getColspanRealWidth:y}=p7(e),C=z(()=>e.store.states.columns.value.findIndex(({type:P})=>P==="default")),O=(P,R)=>{const $=t.props.rowKey;return $?In(P,$):R},_=(P,R,$,D=!1)=>{const{tooltipEffect:j,tooltipOptions:A,store:U}=e,{indent:ue,columns:ce}=U.states,ne=m(P,R);let Q=!0;return $&&(ne.push(n.em("row",`level-${$.level}`)),Q=$.display),qe("tr",{style:[Q?null:{display:"none"},g(P,R)],class:ne,key:O(P,R),onDblclick:ee=>r(ee,P),onClick:ee=>i(ee,P),onContextmenu:ee=>s(ee,P),onMouseenter:()=>o(R),onMouseleave:a},ce.value.map((ee,_e)=>{const{rowspan:Ee,colspan:Z}=w(P,ee,R,_e);if(!Ee||!Z)return null;const Ge={...ee};Ge.realWidth=y(ce.value,Z,_e);const De={store:e.store,_self:e.context||t,column:Ge,row:P,$index:R,cellIndex:_e,expanded:D};_e===C.value&&$&&(De.treeNode={indent:$.level*ue.value,level:$.level},typeof $.expanded=="boolean"&&(De.treeNode.expanded=$.expanded,"loading"in $&&(De.treeNode.loading=$.loading),"noLazyChildren"in $&&(De.treeNode.noLazyChildren=$.noLazyChildren)));const Ze=`${R},${_e}`,Je=Ge.columnKey||Ge.rawColumnKey||"",Y=E(_e,ee,De),oe=ee.showOverflowTooltip&&_S({effect:j},A,ee.showOverflowTooltip);return qe("td",{style:b(R,_e,P,ee),class:v(R,_e,P,ee,Z-1),key:`${Je}${Ze}`,rowspan:Ee,colspan:Z,onMouseenter:de=>u(de,P,oe),onMouseleave:c},[Y])}))},E=(P,R,$)=>R.renderCell($);return{wrappedRowRender:(P,R)=>{const $=e.store,{isRowExpanded:D,assertRowKey:j}=$,{treeData:A,lazyTreeNodeMap:U,childrenColumnName:ue,rowKey:ce}=$.states,ne=$.states.columns.value;if(ne.some(({type:ie})=>ie==="expand")){const ie=D(P),ee=_(P,R,void 0,ie),_e=t.renderExpanded;return ie?_e?[[ee,qe("tr",{key:`expanded-row__${ee.key}`},[qe("td",{colspan:ne.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[_e({row:P,$index:R,store:$,expanded:ie})])])]]:(console.error("[Element Error]renderExpanded is required."),ee):[[ee]]}else if(Object.keys(A.value).length){j();const ie=In(P,ce.value);let ee=A.value[ie],_e=null;ee&&(_e={expanded:ee.expanded,level:ee.level,display:!0},typeof ee.lazy=="boolean"&&(typeof ee.loaded=="boolean"&&ee.loaded&&(_e.noLazyChildren=!(ee.children&&ee.children.length)),_e.loading=ee.loading));const Ee=[_(P,R,_e)];if(ee){let Z=0;const Ge=(Ze,Je)=>{Ze&&Ze.length&&Je&&Ze.forEach(Y=>{const oe={display:Je.display&&Je.expanded,level:Je.level+1,expanded:!1,noLazyChildren:!1,loading:!1},de=In(Y,ce.value);if(de==null)throw new Error("For nested data item, row-key is required.");if(ee={...A.value[de]},ee&&(oe.expanded=ee.expanded,ee.level=ee.level||oe.level,ee.display=!!(ee.expanded&&oe.display),typeof ee.lazy=="boolean"&&(typeof ee.loaded=="boolean"&&ee.loaded&&(oe.noLazyChildren=!(ee.children&&ee.children.length)),oe.loading=ee.loading)),Z++,Ee.push(_(Y,R+Z,oe)),ee){const Oe=U.value[de]||Y[ue.value];Ge(Oe,ee)}})};ee.display=!0;const De=U.value[ie]||P[ue.value];Ge(De,ee)}return Ee}else return _(P,R,void 0)},tooltipContent:d,tooltipTrigger:h}}const m7={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 v7=Fe({name:"ElTableBody",props:m7,setup(e){const t=kt(),n=Ke(Ei),r=Qe("table"),{wrappedRowRender:i,tooltipContent:s,tooltipTrigger:o}=g7(e),{onColumnsChange:a,onScrollableChange:u}=Z2(n);return Ie(e.store.states.hoverRow,(c,d)=>{if(!e.store.states.isComplex.value||!tn)return;let h=window.requestAnimationFrame;h||(h=g=>window.setTimeout(g,16)),h(()=>{const g=t==null?void 0:t.vnode.el,m=Array.from((g==null?void 0:g.children)||[]).filter(w=>w==null?void 0:w.classList.contains(`${r.e("row")}`)),b=m[d],v=m[c];b&&Fo(b,"hover-row"),v&&To(v,"hover-row")})}),Ya(()=>{var c;(c=Wi)==null||c()}),{ns:r,onColumnsChange:a,onScrollableChange:u,wrappedRowRender:i,tooltipContent:s,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return qe("tbody",{},[n.reduce((r,i)=>r.concat(e(i,r.length)),[])])}});function Ev(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(i=>i.width===void 0)&&(n=[]);const r=i=>{const s={key:`${e.tableLayout}_${i.id}`,style:{},name:void 0};return t?s.style={width:`${i.width}px`}:s.name=i.id,s};return qe("colgroup",{},n.map(i=>qe("col",r(i))))}Ev.props=["columns","tableLayout"];function b7(){const e=Ke(Ei),t=e==null?void 0:e.store,n=z(()=>t.states.fixedLeafColumnsLength.value),r=z(()=>t.states.rightFixedColumns.value.length),i=z(()=>t.states.columns.value.length),s=z(()=>t.states.fixedColumns.value.length),o=z(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:i,leftFixedCount:s,rightFixedCount:o,columns:t.states.columns}}function y7(e){const{columns:t}=b7(),n=Qe("table");return{getCellClasses:(s,o)=>{const a=s[o],u=[n.e("cell"),a.id,a.align,a.labelClassName,...Sv(n.b(),o,a.fixed,e.store)];return a.className&&u.push(a.className),a.children||u.push(n.is("leaf")),u},getCellStyles:(s,o)=>{const a=Ov(o,s.fixed,e.store);return Ba(a,"left"),Ba(a,"right"),a},columns:t}}var _7=Fe({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{getCellClasses:t,getCellStyles:n,columns:r}=y7(e);return{ns:Qe("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:i,ns:s}=this,o=this.store.states.data.value;let a=[];return r?a=r({columns:e,data:o}):e.forEach((u,c)=>{if(c===0){a[c]=i;return}const d=o.map(b=>Number(b[u.property])),h=[];let g=!0;d.forEach(b=>{if(!Number.isNaN(+b)){g=!1;const v=`${b}`.split(".")[1];h.push(v?v.length:0)}});const m=Math.max.apply(null,h);g?a[c]="":a[c]=d.reduce((b,v)=>{const w=Number(v);return Number.isNaN(+w)?b:Number.parseFloat((b+v).toFixed(Math.min(m,20)))},0)}),qe("table",{class:s.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[Ev({columns:e}),qe("tbody",[qe("tr",{},[...e.map((u,c)=>qe("td",{key:c,colspan:u.colSpan,rowspan:u.rowSpan,class:n(e,c),style:t(u,c)},[qe("div",{class:["cell",u.labelClassName]},[a[c]])]))])])])}});function w7(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,h)=>{e.toggleRowSelection(d,h,!1),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})}}}function x7(e,t,n,r){const i=X(!1),s=X(null),o=X(!1),a=ie=>{o.value=ie},u=X({width:null,height:null,headerHeight:null}),c=X(!1),d={display:"inline-block",verticalAlign:"middle"},h=X(),g=X(0),m=X(0),b=X(0),v=X(0);Ns(()=>{t.setHeight(e.height)}),Ns(()=>{t.setMaxHeight(e.maxHeight)}),Ie(()=>[e.currentRowKey,n.states.rowKey],([ie,ee])=>{!S(ee)||!S(ie)||n.setCurrentRowKey(`${ie}`)},{immediate:!0}),Ie(()=>e.data,ie=>{r.store.commit("setData",ie)},{immediate:!0,deep:!0}),Ns(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const w=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},y=(ie,ee)=>{const{pixelX:_e,pixelY:Ee}=ee;Math.abs(_e)>=Math.abs(Ee)&&(r.refs.bodyWrapper.scrollLeft+=ee.pixelX/5)},C=z(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),O=z(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),_=()=>{C.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(R)};Lt(async()=>{await bt(),n.updateColumns(),$(),requestAnimationFrame(_);const ie=r.vnode.el,ee=r.refs.headerWrapper;e.flexible&&ie&&ie.parentElement&&(ie.parentElement.style.minWidth="0"),u.value={width:h.value=ie.offsetWidth,height:ie.offsetHeight,headerHeight:e.showHeader&&ee?ee.offsetHeight:null},n.states.columns.value.forEach(_e=>{_e.filteredValue&&_e.filteredValue.length&&r.store.commit("filterChange",{column:_e,values:_e.filteredValue,silent:!0})}),r.$ready=!0});const E=(ie,ee)=>{if(!ie)return;const _e=Array.from(ie.classList).filter(Ee=>!Ee.startsWith("is-scrolling-"));_e.push(t.scrollX.value?ee:"is-scrolling-none"),ie.className=_e.join(" ")},T=ie=>{const{tableWrapper:ee}=r.refs;E(ee,ie)},P=ie=>{const{tableWrapper:ee}=r.refs;return!!(ee&&ee.classList.contains(ie))},R=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const Ze="is-scrolling-none";P(Ze)||T(Ze);return}const ie=r.refs.scrollBarRef.wrapRef;if(!ie)return;const{scrollLeft:ee,offsetWidth:_e,scrollWidth:Ee}=ie,{headerWrapper:Z,footerWrapper:Ge}=r.refs;Z&&(Z.scrollLeft=ee),Ge&&(Ge.scrollLeft=ee);const De=Ee-_e-1;ee>=De?T("is-scrolling-right"):T(ee===0?"is-scrolling-left":"is-scrolling-middle")},$=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&_i(r.refs.scrollBarRef.wrapRef,"scroll",R,{passive:!0}),e.fit?Vs(r.vnode.el,D):_i(window,"resize",D),Vs(r.refs.bodyWrapper,()=>{var ie,ee;D(),(ee=(ie=r.refs)==null?void 0:ie.scrollBarRef)==null||ee.update()}))},D=()=>{var ie,ee,_e;const Ee=r.vnode.el;if(!r.$ready||!Ee)return;let Z=!1;const{width:Ge,height:De,headerHeight:Ze}=u.value,Je=h.value=Ee.offsetWidth;Ge!==Je&&(Z=!0);const Y=Ee.offsetHeight;(e.height||C.value)&&De!==Y&&(Z=!0);const oe=e.tableLayout==="fixed"?r.refs.headerWrapper:(ie=r.refs.tableHeaderRef)==null?void 0:ie.$el;e.showHeader&&(oe==null?void 0:oe.offsetHeight)!==Ze&&(Z=!0),g.value=((ee=r.refs.tableWrapper)==null?void 0:ee.scrollHeight)||0,b.value=(oe==null?void 0:oe.scrollHeight)||0,v.value=((_e=r.refs.footerWrapper)==null?void 0:_e.offsetHeight)||0,m.value=g.value-b.value-v.value,Z&&(u.value={width:Je,height:Y,headerHeight:e.showHeader&&(oe==null?void 0:oe.offsetHeight)||0},_())},j=ns(),A=z(()=>{const{bodyWidth:ie,scrollY:ee,gutterWidth:_e}=t;return ie.value?`${ie.value-(ee.value?_e:0)}px`:""}),U=z(()=>e.maxHeight?"fixed":e.tableLayout),ue=z(()=>{if(e.data&&e.data.length)return null;let ie="100%";e.height&&m.value&&(ie=`${m.value}px`);const ee=h.value;return{width:ee?`${ee}px`:"",height:ie}}),ce=z(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),ne=z(()=>{if(e.height)return{height:"100%"};if(e.maxHeight){if(Number.isNaN(Number(e.maxHeight)))return{maxHeight:`calc(${e.maxHeight} - ${b.value+v.value}px)`};{const ie=e.maxHeight;if(g.value>=Number(ie))return{maxHeight:`${g.value-b.value-v.value}px`}}}return{}});return{isHidden:i,renderExpanded:s,setDragVisible:a,isGroup:c,handleMouseLeave:w,handleHeaderFooterMousewheel:y,tableSize:j,emptyBlockStyle:ue,handleFixedMousewheel:(ie,ee)=>{const _e=r.refs.bodyWrapper;if(Math.abs(ee.spinY)>0){const Ee=_e.scrollTop;ee.pixelY<0&&Ee!==0&&ie.preventDefault(),ee.pixelY>0&&_e.scrollHeight-_e.clientHeight>Ee&&ie.preventDefault(),_e.scrollTop+=Math.ceil(ee.pixelY/5)}else _e.scrollLeft+=Math.ceil(ee.pixelX/5)},resizeProxyVisible:o,bodyWidth:A,resizeState:u,doLayout:_,tableBodyStyles:O,tableLayout:U,scrollbarViewStyle:d,tableInnerStyle:ce,scrollbarStyle:ne}}function C7(e){const t=X(),n=()=>{const i=e.vnode.el.querySelector(".hidden-columns"),s={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{o.forEach(a=>a())}),t.value.observe(i,s)};Lt(()=>{n()}),Ya(()=>{var r;(r=t.value)==null||r.disconnect()})}var S7={data:{type:Array,default:()=>[]},size:Ja,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const O7=()=>{const e=X(),t=(s,o)=>{const a=e.value;a&&a.scrollTo(s,o)},n=(s,o)=>{const a=e.value;a&&Vn(o)&&["Top","Left"].includes(s)&&a[`setScroll${s}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:s=>n("Top",s),setScrollLeft:s=>n("Left",s)}};let E7=1;const M7=Fe({name:"ElTable",directives:{Mousewheel:zV},components:{TableHeader:d7,TableBody:v7,TableFooter:_7,ElScrollbar:pv,hColgroup:Ev},props:S7,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=Xo(),n=Qe("table"),r=kt();sn(Ei,r);const i=ZU(r,e);r.store=i;const s=new e7({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=s;const o=z(()=>(i.states.data.value||[]).length===0),{setCurrentRow:a,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:m,clearSort:b,sort:v}=w7(i),{isHidden:w,renderExpanded:y,setDragVisible:C,isGroup:O,handleMouseLeave:_,handleHeaderFooterMousewheel:E,tableSize:T,emptyBlockStyle:P,handleFixedMousewheel:R,resizeProxyVisible:$,bodyWidth:D,resizeState:j,doLayout:A,tableBodyStyles:U,tableLayout:ue,scrollbarViewStyle:ce,tableInnerStyle:ne,scrollbarStyle:Q}=x7(e,s,i,r),{scrollBarRef:ie,scrollTo:ee,setScrollLeft:_e,setScrollTop:Ee}=O7(),Z=Pa(A,50),Ge=`${n.namespace.value}-table_${E7++}`;r.tableId=Ge,r.state={isGroup:O,resizeState:j,doLayout:A,debouncedUpdateLayout:Z};const De=z(()=>e.sumText||t("el.table.sumText")),Ze=z(()=>e.emptyText||t("el.table.emptyText"));return C7(r),{ns:n,layout:s,store:i,handleHeaderFooterMousewheel:E,handleMouseLeave:_,tableId:Ge,tableSize:T,isHidden:w,isEmpty:o,renderExpanded:y,resizeProxyVisible:$,resizeState:j,isGroup:O,bodyWidth:D,tableBodyStyles:U,emptyBlockStyle:P,debouncedUpdateLayout:Z,handleFixedMousewheel:R,setCurrentRow:a,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:m,clearSort:b,doLayout:A,sort:v,t,setDragVisible:C,context:r,computedSumText:De,computedEmptyText:Ze,tableLayout:ue,scrollbarViewStyle:ce,tableInnerStyle:ne,scrollbarStyle:Q,scrollBarRef:ie,scrollTo:ee,setScrollLeft:_e,setScrollTop:Ee}}}),T7=["data-prefix"],A7={ref:"hiddenColumns",class:"hidden-columns"};function P7(e,t,n,r,i,s){const o=Yt("hColgroup"),a=Yt("table-header"),u=Yt("table-body"),c=Yt("el-scrollbar"),d=Yt("table-footer"),h=Tm("mousewheel");return K(),ve("div",{ref:"tableWrapper",class:he([{[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:jt(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...g)=>e.handleMouseLeave&&e.handleMouseLeave(...g))},[I("div",{class:he(e.ns.e("inner-wrapper")),style:jt(e.tableInnerStyle)},[I("div",A7,[He(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?gn((K(),ve("div",{key:0,ref:"headerWrapper",class:he(e.ns.e("header-wrapper"))},[I("table",{ref:"tableHeader",class:he(e.ns.e("header")),style:jt(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[H(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),H(a,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[h,e.handleHeaderFooterMousewheel]]):ke("v-if",!0),I("div",{ref:"bodyWrapper",class:he(e.ns.e("body-wrapper"))},[H(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:B(()=>[I("table",{ref:"tableBody",class:he(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:jt({width:e.bodyWidth,tableLayout:e.tableLayout})},[H(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(K(),Te(a,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):ke("v-if",!0),H(u,{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"])],6),e.isEmpty?(K(),ve("div",{key:0,ref:"emptyBlock",style:jt(e.emptyBlockStyle),class:he(e.ns.e("empty-block"))},[I("span",{class:he(e.ns.e("empty-text"))},[He(e.$slots,"empty",{},()=>[le(pt(e.computedEmptyText),1)])],2)],6)):ke("v-if",!0),e.$slots.append?(K(),ve("div",{key:1,ref:"appendWrapper",class:he(e.ns.e("append-wrapper"))},[He(e.$slots,"append")],2)):ke("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?gn((K(),ve("div",{key:1,ref:"footerWrapper",class:he(e.ns.e("footer-wrapper"))},[H(d,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:jt(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Wr,!e.isEmpty],[h,e.handleHeaderFooterMousewheel]]):ke("v-if",!0),e.border||e.isGroup?(K(),ve("div",{key:2,class:he(e.ns.e("border-left-patch"))},null,2)):ke("v-if",!0)],6),gn(I("div",{ref:"resizeProxy",class:he(e.ns.e("column-resize-proxy"))},null,2),[[Wr,e.resizeProxyVisible]])],46,T7)}var R7=Et(M7,[["render",P7],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const k7={selection:"table-column--selection",expand:"table__expand-column"},L7={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:""}},I7=e=>k7[e]||"",$7={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return qe(Na,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:n,$index:r}){return qe(Na,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:i=>i.stopPropagation(),modelValue:n.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),qe("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,i=[r.e("expand-icon")];return n&&i.push(r.em("expand-icon","expanded")),qe("div",{class:i,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[qe(wn,null,{default:()=>[qe(Qm)]})]})},sortable:!1,resizable:!1}};function F7({row:e,column:t,$index:n}){var r;const i=t.property,s=i&&Sf(e,i).value;return t&&t.formatter?t.formatter(e,t,s,n):((r=s==null?void 0:s.toString)==null?void 0:r.call(s))||""}function D7({row:e,treeNode:t,store:n},r=!1){const{ns:i}=n;if(!t)return r?[qe("span",{class:i.e("placeholder")})]:null;const s=[],o=function(a){a.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&s.push(qe("span",{class:i.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const a=[i.e("expand-icon"),t.expanded?i.em("expand-icon","expanded"):""];let u=Qm;t.loading&&(u=tv),s.push(qe("div",{class:a,onClick:o},{default:()=>[qe(wn,{class:{[i.is("loading")]:t.loading}},{default:()=>[qe(u)]})]}))}else s.push(qe("span",{class:i.e("placeholder")}));return s}function H1(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function N7(e,t){const n=kt();return{registerComplexWatchers:()=>{const s=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},a=H1(s,o);Object.keys(a).forEach(u=>{const c=o[u];wt(t,c)&&Ie(()=>t[c],d=>{let h=d;c==="width"&&u==="realWidth"&&(h=Cv(d)),c==="minWidth"&&u==="realMinWidth"&&(h=q2(d)),n.columnConfig.value[c]=h,n.columnConfig.value[u]=h;const g=c==="fixed";e.value.store.scheduleLayout(g)})})},registerNormalWatchers:()=>{const s=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},a=H1(s,o);Object.keys(a).forEach(u=>{const c=o[u];wt(t,c)&&Ie(()=>t[c],d=>{n.columnConfig.value[u]=d})})}}}function B7(e,t,n){const r=kt(),i=X(""),s=X(!1),o=X(),a=X(),u=Qe("table");Ns(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),Ns(()=>{a.value=e.headerAlign?`is-${e.headerAlign}`:o.value,a.value});const c=z(()=>{let _=r.vnode.vParent||r.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),d=z(()=>{const{store:_}=r.parent;if(!_)return!1;const{treeData:E}=_.states,T=E.value;return T&&Object.keys(T).length>0}),h=X(Cv(e.width)),g=X(q2(e.minWidth)),m=_=>(h.value&&(_.width=h.value),g.value&&(_.minWidth=g.value),!h.value&&g.value&&(_.width=void 0),_.minWidth||(_.minWidth=80),_.realWidth=Number(_.width===void 0?_.minWidth:_.width),_),b=_=>{const E=_.type,T=$7[E]||{};Object.keys(T).forEach(R=>{const $=T[R];R!=="className"&&$!==void 0&&(_[R]=$)});const P=I7(E);if(P){const R=`${S(u.namespace)}-${P}`;_.className=_.className?`${_.className} ${R}`:R}return _},v=_=>{Array.isArray(_)?_.forEach(T=>E(T)):E(_);function E(T){var P;((P=T==null?void 0:T.type)==null?void 0:P.name)==="ElTableColumn"&&(T.vParent=r)}};return{columnId:i,realAlign:o,isSubColumn:s,realHeaderAlign:a,columnOrTableParent:c,setColumnWidth:m,setColumnForcedProps:b,setColumnRenders:_=>{e.renderHeader||_.type!=="selection"&&(_.renderHeader=T=>{r.columnConfig.value.label;const P=t.header;return P?P(T):_.label});let E=_.renderCell;return _.type==="expand"?(_.renderCell=T=>qe("div",{class:"cell"},[E(T)]),n.value.renderExpanded=T=>t.default?t.default(T):t.default):(E=E||F7,_.renderCell=T=>{let P=null;if(t.default){const U=t.default(T);P=U.some(ue=>ue.type!==ar)?U:E(T)}else P=E(T);const{columns:R}=n.value.store.states,$=R.value.findIndex(U=>U.type==="default"),D=d.value&&T.cellIndex===$,j=D7(T,D),A={class:"cell",style:{}};return _.showOverflowTooltip&&(A.class=`${A.class} ${S(u.namespace)}-tooltip`,A.style={width:`${(T.column.realWidth||Number(T.column.width))-1}px`}),v(P),qe("div",A,[j,P])}),_},getPropsData:(..._)=>_.reduce((E,T)=>(Array.isArray(T)&&T.forEach(P=>{E[P]=e[P]}),E),{}),getColumnElIndex:(_,E)=>Array.prototype.indexOf.call(_,E),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var z7={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let H7=1;var eO=Fe({name:"ElTableColumn",components:{ElCheckbox:Na},props:z7,setup(e,{slots:t}){const n=kt(),r=X({}),i=z(()=>{let O=n.parent;for(;O&&!O.tableId;)O=O.parent;return O}),{registerNormalWatchers:s,registerComplexWatchers:o}=N7(i,e),{columnId:a,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:h,setColumnForcedProps:g,setColumnRenders:m,getPropsData:b,getColumnElIndex:v,realAlign:w,updateColumnOrder:y}=B7(e,t,i),C=d.value;a.value=`${C.tableId||C.columnId}_column_${H7++}`,qa(()=>{u.value=i.value!==C;const O=e.type||"default",_=e.sortable===""?!0:e.sortable,E={...L7[O],id:a.value,type:O,property:e.prop||e.property,align:w,headerAlign:c,showOverflowTooltip:e.showOverflowTooltip,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_,index:e.index,rawColumnKey:n.vnode.key};let D=b(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);D=HU(E,D),D=jU(m,h,g)(D),r.value=D,s(),o()}),Lt(()=>{var O;const _=d.value,E=u.value?_.vnode.el.children:(O=_.refs.hiddenColumns)==null?void 0:O.children,T=()=>v(E||[],n.vnode.el);r.value.getColumnIndex=T,T()>-1&&i.value.store.commit("insertColumn",r.value,u.value?_.columnConfig.value:null,y)}),An(()=>{i.value.store.commit("removeColumn",r.value,u.value?C.columnConfig.value:null,y)}),n.columnId=a.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),i=[];if(Array.isArray(r))for(const o of r)((n=o.type)==null?void 0:n.name)==="ElTableColumn"||o.shapeFlag&2?i.push(o):o.type===it&&Array.isArray(o.children)&&o.children.forEach(a=>{(a==null?void 0:a.patchFlag)!==1024&&!mt(a==null?void 0:a.children)&&i.push(a)});return qe("div",i)}catch{return qe("div",[])}}});const tO=Pn(R7,{TableColumn:eO}),nO=Oi(eO);const W7=y4(),j7=zF(W7),V7=I("button",{class:"border-none w-full bg-transparent cursor-pointer",style:{height:"var(--ep-menu-item-height)"}},[I("i",{"inline-flex":"",i:"dark:ep-moon ep-sunny"})],-1),U7={__name:"BaseHeader",setup(e){return(t,n)=>{const r=gU,i=pU;return K(),Te(i,{class:"el-menu-demo",mode:"horizontal",router:!0},{default:B(()=>[H(r,{index:"/input"},{default:B(()=>[le("SOCRATES")]),_:1}),H(r,{index:"/about"},{default:B(()=>[le("About")]),_:1}),H(r,{index:"/help"},{default:B(()=>[le("Help")]),_:1}),H(r,{index:"/contact"},{default:B(()=>[le("Contact")]),_:1}),H(r,{h:"full",onClick:n[0]||(n[0]=s=>S(j7)())},{default:B(()=>[V7]),_:1})]),_:1})}}};/*! + * vue-router v4.2.1 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */const ya=typeof window<"u";function K7(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ht=Object.assign;function Rp(e,t){const n={};for(const r in t){const i=t[r];n[r]=ai(i)?i.map(e):e(i)}return n}const Gl=()=>{},ai=Array.isArray,q7=/\/$/,Y7=e=>e.replace(q7,"");function kp(e,t,n="/"){let r,i={},s="",o="";const a=t.indexOf("#");let u=t.indexOf("?");return a=0&&(u=-1),u>-1&&(r=t.slice(0,u),s=t.slice(u+1,a>-1?a:t.length),i=e(s)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=Z7(r??t,n),{fullPath:r+(s&&"?")+s+o,path:r,query:i,hash:o}}function G7(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function W1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function X7(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&za(t.matched[r],n.matched[i])&&rO(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function za(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function rO(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!J7(e[n],t[n]))return!1;return!0}function J7(e,t){return ai(e)?j1(e,t):ai(t)?j1(t,e):e===t}function j1(e,t){return ai(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Z7(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=n.length-1,o,a;for(o=0;o1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Cu;(function(e){e.pop="pop",e.push="push"})(Cu||(Cu={}));var Xl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Xl||(Xl={}));function Q7(e){if(!e)if(ya){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Y7(e)}const eK=/^[^#]+#/;function tK(e,t){return e.replace(eK,"#")+t}function nK(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Vd=()=>({left:window.pageXOffset,top:window.pageYOffset});function rK(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=nK(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function V1(e,t){return(history.state?history.state.position-t:-1)+e}const zg=new Map;function iK(e,t){zg.set(e,t)}function sK(e){const t=zg.get(e);return zg.delete(e),t}let oK=()=>location.protocol+"//"+location.host;function iO(e,t){const{pathname:n,search:r,hash:i}=t,s=e.indexOf("#");if(s>-1){let a=i.includes(e.slice(s))?e.slice(s).length:1,u=i.slice(a);return u[0]!=="/"&&(u="/"+u),W1(u,"")}return W1(n,e)+r+i}function aK(e,t,n,r){let i=[],s=[],o=null;const a=({state:g})=>{const m=iO(e,location),b=n.value,v=t.value;let w=0;if(g){if(n.value=m,t.value=g,o&&o===b){o=null;return}w=v?g.position-v.position:0}else r(m);i.forEach(y=>{y(n.value,b,{delta:w,type:Cu.pop,direction:w?w>0?Xl.forward:Xl.back:Xl.unknown})})};function u(){o=n.value}function c(g){i.push(g);const m=()=>{const b=i.indexOf(g);b>-1&&i.splice(b,1)};return s.push(m),m}function d(){const{history:g}=window;g.state&&g.replaceState(Ht({},g.state,{scroll:Vd()}),"")}function h(){for(const g of s)g();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:u,listen:c,destroy:h}}function U1(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Vd():null}}function lK(e){const{history:t,location:n}=window,r={value:iO(e,n)},i={value:t.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(u,c,d){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+u:oK()+e+u;try{t[d?"replaceState":"pushState"](c,"",g),i.value=c}catch(m){console.error(m),n[d?"replace":"assign"](g)}}function o(u,c){const d=Ht({},t.state,U1(i.value.back,u,i.value.forward,!0),c,{position:i.value.position});s(u,d,!0),r.value=u}function a(u,c){const d=Ht({},i.value,t.state,{forward:u,scroll:Vd()});s(d.current,d,!0);const h=Ht({},U1(r.value,u,null),{position:d.position+1},c);s(u,h,!1),r.value=u}return{location:r,state:i,push:a,replace:o}}function uK(e){e=Q7(e);const t=lK(e),n=aK(e,t.state,t.location,t.replace);function r(s,o=!0){o||n.pauseListeners(),history.go(s)}const i=Ht({location:"",base:e,go:r,createHref:tK.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function cK(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),uK(e)}function fK(e){return typeof e=="string"||e&&typeof e=="object"}function sO(e){return typeof e=="string"||typeof e=="symbol"}const _s={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},oO=Symbol("");var K1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(K1||(K1={}));function Ha(e,t){return Ht(new Error,{type:e,[oO]:!0},t)}function Ni(e,t){return e instanceof Error&&oO in e&&(t==null||!!(e.type&t))}const q1="[^/]+?",dK={sensitive:!1,strict:!1,start:!0,end:!0},hK=/[.+*?^${}()[\]/\\]/g;function pK(e,t){const n=Ht({},dK,t),r=[];let i=n.start?"^":"";const s=[];for(const c of e){const d=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function mK(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const vK={type:0,value:""},bK=/[a-zA-Z0-9_]/;function yK(e){if(!e)return[[]];if(e==="/")return[[vK]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=0,r=n;const i=[];let s;function o(){s&&i.push(s),s=[]}let a=0,u,c="",d="";function h(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function g(){c+=u}for(;a{o(C)}:Gl}function o(d){if(sO(d)){const h=r.get(d);h&&(r.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&r.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function u(d){let h=0;for(;h=0&&(d.record.path!==n[h].record.path||!aO(d,n[h]));)h++;n.splice(h,0,d),d.record.name&&!X1(d)&&r.set(d.record.name,d)}function c(d,h){let g,m={},b,v;if("name"in d&&d.name){if(g=r.get(d.name),!g)throw Ha(1,{location:d});v=g.record.name,m=Ht(G1(h.params,g.keys.filter(C=>!C.optional).map(C=>C.name)),d.params&&G1(d.params,g.keys.map(C=>C.name))),b=g.stringify(m)}else if("path"in d)b=d.path,g=n.find(C=>C.re.test(b)),g&&(m=g.parse(b),v=g.record.name);else{if(g=h.name?r.get(h.name):n.find(C=>C.re.test(h.path)),!g)throw Ha(1,{location:d,currentLocation:h});v=g.record.name,m=Ht({},h.params,d.params),b=g.stringify(m)}const w=[];let y=g;for(;y;)w.unshift(y.record),y=y.parent;return{name:v,path:b,params:m,matched:w,meta:SK(w)}}return e.forEach(d=>s(d)),{addRoute:s,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:i}}function G1(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function xK(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:CK(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function CK(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function X1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function SK(e){return e.reduce((t,n)=>Ht(t,n.meta),{})}function J1(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function aO(e,t){return t.children.some(n=>n===e||aO(e,n))}const lO=/#/g,OK=/&/g,EK=/\//g,MK=/=/g,TK=/\?/g,uO=/\+/g,AK=/%5B/g,PK=/%5D/g,cO=/%5E/g,RK=/%60/g,fO=/%7B/g,kK=/%7C/g,dO=/%7D/g,LK=/%20/g;function Mv(e){return encodeURI(""+e).replace(kK,"|").replace(AK,"[").replace(PK,"]")}function IK(e){return Mv(e).replace(fO,"{").replace(dO,"}").replace(cO,"^")}function Hg(e){return Mv(e).replace(uO,"%2B").replace(LK,"+").replace(lO,"%23").replace(OK,"%26").replace(RK,"`").replace(fO,"{").replace(dO,"}").replace(cO,"^")}function $K(e){return Hg(e).replace(MK,"%3D")}function FK(e){return Mv(e).replace(lO,"%23").replace(TK,"%3F")}function DK(e){return e==null?"":FK(e).replace(EK,"%2F")}function ad(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function NK(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;is&&Hg(s)):[r&&Hg(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function BK(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ai(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const zK=Symbol(""),Q1=Symbol(""),Tv=Symbol(""),hO=Symbol(""),Wg=Symbol("");function Cl(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Es(e,t,n,r,i){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,a)=>{const u=h=>{h===!1?a(Ha(4,{from:n,to:t})):h instanceof Error?a(h):fK(h)?a(Ha(2,{from:t,to:h})):(s&&r.enterCallbacks[i]===s&&typeof h=="function"&&s.push(h),o())},c=e.call(r&&r.instances[i],t,n,u);let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(h=>a(h))})}function Lp(e,t,n,r){const i=[];for(const s of e)for(const o in s.components){let a=s.components[o];if(!(t!=="beforeRouteEnter"&&!s.instances[o]))if(HK(a)){const c=(a.__vccOpts||a)[t];c&&i.push(Es(c,n,r,s,o))}else{let u=a();i.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${s.path}"`));const d=K7(c)?c.default:c;s.components[o]=d;const g=(d.__vccOpts||d)[t];return g&&Es(g,n,r,s,o)()}))}}return i}function HK(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ew(e){const t=Ke(Tv),n=Ke(hO),r=z(()=>t.resolve(S(e.to))),i=z(()=>{const{matched:u}=r.value,{length:c}=u,d=u[c-1],h=n.matched;if(!d||!h.length)return-1;const g=h.findIndex(za.bind(null,d));if(g>-1)return g;const m=tw(u[c-2]);return c>1&&tw(d)===m&&h[h.length-1].path!==m?h.findIndex(za.bind(null,u[c-2])):g}),s=z(()=>i.value>-1&&UK(n.params,r.value.params)),o=z(()=>i.value>-1&&i.value===n.matched.length-1&&rO(n.params,r.value.params));function a(u={}){return VK(u)?t[S(e.replace)?"replace":"push"](S(e.to)).catch(Gl):Promise.resolve()}return{route:r,href:z(()=>r.value.href),isActive:s,isExactActive:o,navigate:a}}const WK=Fe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ew,setup(e,{slots:t}){const n=vn(ew(e)),{options:r}=Ke(Tv),i=z(()=>({[nw(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[nw(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),jK=WK;function VK(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 UK(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!ai(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function tw(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const nw=(e,t,n)=>e??t??n,KK=Fe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ke(Wg),i=z(()=>e.route||r.value),s=Ke(Q1,0),o=z(()=>{let c=S(s);const{matched:d}=i.value;let h;for(;(h=d[c])&&!h.components;)c++;return c}),a=z(()=>i.value.matched[o.value]);sn(Q1,z(()=>o.value+1)),sn(zK,a),sn(Wg,i);const u=X();return Ie(()=>[u.value,a.value,e.name],([c,d,h],[g,m,b])=>{d&&(d.instances[h]=c,m&&m!==d&&c&&c===g&&(d.leaveGuards.size||(d.leaveGuards=m.leaveGuards),d.updateGuards.size||(d.updateGuards=m.updateGuards))),c&&d&&(!m||!za(d,m)||!g)&&(d.enterCallbacks[h]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=i.value,d=e.name,h=a.value,g=h&&h.components[d];if(!g)return rw(n.default,{Component:g,route:c});const m=h.props[d],b=m?m===!0?c.params:typeof m=="function"?m(c):m:null,w=qe(g,Ht({},b,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(h.instances[d]=null)},ref:u}));return rw(n.default,{Component:w,route:c})||w}}});function rw(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const pO=KK;function qK(e){const t=wK(e.routes,e),n=e.parseQuery||NK,r=e.stringifyQuery||Z1,i=e.history,s=Cl(),o=Cl(),a=Cl(),u=Fs(_s);let c=_s;ya&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Rp.bind(null,Y=>""+Y),h=Rp.bind(null,DK),g=Rp.bind(null,ad);function m(Y,oe){let de,Oe;return sO(Y)?(de=t.getRecordMatcher(Y),Oe=oe):Oe=Y,t.addRoute(Oe,de)}function b(Y){const oe=t.getRecordMatcher(Y);oe&&t.removeRoute(oe)}function v(){return t.getRoutes().map(Y=>Y.record)}function w(Y){return!!t.getRecordMatcher(Y)}function y(Y,oe){if(oe=Ht({},oe||u.value),typeof Y=="string"){const q=kp(n,Y,oe.path),se=t.resolve({path:q.path},oe),pe=i.createHref(q.fullPath);return Ht(q,se,{params:g(se.params),hash:ad(q.hash),redirectedFrom:void 0,href:pe})}let de;if("path"in Y)de=Ht({},Y,{path:kp(n,Y.path,oe.path).path});else{const q=Ht({},Y.params);for(const se in q)q[se]==null&&delete q[se];de=Ht({},Y,{params:h(q)}),oe.params=h(oe.params)}const Oe=t.resolve(de,oe),We=Y.hash||"";Oe.params=d(g(Oe.params));const F=G7(r,Ht({},Y,{hash:IK(We),path:Oe.path})),W=i.createHref(F);return Ht({fullPath:F,hash:We,query:r===Z1?BK(Y.query):Y.query||{}},Oe,{redirectedFrom:void 0,href:W})}function C(Y){return typeof Y=="string"?kp(n,Y,u.value.path):Ht({},Y)}function O(Y,oe){if(c!==Y)return Ha(8,{from:oe,to:Y})}function _(Y){return P(Y)}function E(Y){return _(Ht(C(Y),{replace:!0}))}function T(Y){const oe=Y.matched[Y.matched.length-1];if(oe&&oe.redirect){const{redirect:de}=oe;let Oe=typeof de=="function"?de(Y):de;return typeof Oe=="string"&&(Oe=Oe.includes("?")||Oe.includes("#")?Oe=C(Oe):{path:Oe},Oe.params={}),Ht({query:Y.query,hash:Y.hash,params:"path"in Oe?{}:Y.params},Oe)}}function P(Y,oe){const de=c=y(Y),Oe=u.value,We=Y.state,F=Y.force,W=Y.replace===!0,q=T(de);if(q)return P(Ht(C(q),{state:typeof q=="object"?Ht({},We,q.state):We,force:F,replace:W}),oe||de);const se=de;se.redirectedFrom=oe;let pe;return!F&&X7(r,Oe,de)&&(pe=Ha(16,{to:se,from:Oe}),Ee(Oe,Oe,!0,!1)),(pe?Promise.resolve(pe):D(se,Oe)).catch(me=>Ni(me)?Ni(me,2)?me:_e(me):ie(me,se,Oe)).then(me=>{if(me){if(Ni(me,2))return P(Ht({replace:W},C(me.to),{state:typeof me.to=="object"?Ht({},We,me.to.state):We,force:F}),oe||se)}else me=A(se,Oe,!0,W,We);return j(se,Oe,me),me})}function R(Y,oe){const de=O(Y,oe);return de?Promise.reject(de):Promise.resolve()}function $(Y){const oe=De.values().next().value;return oe&&typeof oe.runWithContext=="function"?oe.runWithContext(Y):Y()}function D(Y,oe){let de;const[Oe,We,F]=YK(Y,oe);de=Lp(Oe.reverse(),"beforeRouteLeave",Y,oe);for(const q of Oe)q.leaveGuards.forEach(se=>{de.push(Es(se,Y,oe))});const W=R.bind(null,Y,oe);return de.push(W),Je(de).then(()=>{de=[];for(const q of s.list())de.push(Es(q,Y,oe));return de.push(W),Je(de)}).then(()=>{de=Lp(We,"beforeRouteUpdate",Y,oe);for(const q of We)q.updateGuards.forEach(se=>{de.push(Es(se,Y,oe))});return de.push(W),Je(de)}).then(()=>{de=[];for(const q of Y.matched)if(q.beforeEnter&&!oe.matched.includes(q))if(ai(q.beforeEnter))for(const se of q.beforeEnter)de.push(Es(se,Y,oe));else de.push(Es(q.beforeEnter,Y,oe));return de.push(W),Je(de)}).then(()=>(Y.matched.forEach(q=>q.enterCallbacks={}),de=Lp(F,"beforeRouteEnter",Y,oe),de.push(W),Je(de))).then(()=>{de=[];for(const q of o.list())de.push(Es(q,Y,oe));return de.push(W),Je(de)}).catch(q=>Ni(q,8)?q:Promise.reject(q))}function j(Y,oe,de){for(const Oe of a.list())$(()=>Oe(Y,oe,de))}function A(Y,oe,de,Oe,We){const F=O(Y,oe);if(F)return F;const W=oe===_s,q=ya?history.state:{};de&&(Oe||W?i.replace(Y.fullPath,Ht({scroll:W&&q&&q.scroll},We)):i.push(Y.fullPath,We)),u.value=Y,Ee(Y,oe,de,W),_e()}let U;function ue(){U||(U=i.listen((Y,oe,de)=>{if(!Ze.listening)return;const Oe=y(Y),We=T(Oe);if(We){P(Ht(We,{replace:!0}),Oe).catch(Gl);return}c=Oe;const F=u.value;ya&&iK(V1(F.fullPath,de.delta),Vd()),D(Oe,F).catch(W=>Ni(W,12)?W:Ni(W,2)?(P(W.to,Oe).then(q=>{Ni(q,20)&&!de.delta&&de.type===Cu.pop&&i.go(-1,!1)}).catch(Gl),Promise.reject()):(de.delta&&i.go(-de.delta,!1),ie(W,Oe,F))).then(W=>{W=W||A(Oe,F,!1),W&&(de.delta&&!Ni(W,8)?i.go(-de.delta,!1):de.type===Cu.pop&&Ni(W,20)&&i.go(-1,!1)),j(Oe,F,W)}).catch(Gl)}))}let ce=Cl(),ne=Cl(),Q;function ie(Y,oe,de){_e(Y);const Oe=ne.list();return Oe.length?Oe.forEach(We=>We(Y,oe,de)):console.error(Y),Promise.reject(Y)}function ee(){return Q&&u.value!==_s?Promise.resolve():new Promise((Y,oe)=>{ce.add([Y,oe])})}function _e(Y){return Q||(Q=!Y,ue(),ce.list().forEach(([oe,de])=>Y?de(Y):oe()),ce.reset()),Y}function Ee(Y,oe,de,Oe){const{scrollBehavior:We}=e;if(!ya||!We)return Promise.resolve();const F=!de&&sK(V1(Y.fullPath,0))||(Oe||!de)&&history.state&&history.state.scroll||null;return bt().then(()=>We(Y,oe,F)).then(W=>W&&rK(W)).catch(W=>ie(W,Y,oe))}const Z=Y=>i.go(Y);let Ge;const De=new Set,Ze={currentRoute:u,listening:!0,addRoute:m,removeRoute:b,hasRoute:w,getRoutes:v,resolve:y,options:e,push:_,replace:E,go:Z,back:()=>Z(-1),forward:()=>Z(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:ne.add,isReady:ee,install(Y){const oe=this;Y.component("RouterLink",jK),Y.component("RouterView",pO),Y.config.globalProperties.$router=oe,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>S(u)}),ya&&!Ge&&u.value===_s&&(Ge=!0,_(i.location).catch(We=>{}));const de={};for(const We in _s)de[We]=z(()=>u.value[We]);Y.provide(Tv,oe),Y.provide(hO,vn(de)),Y.provide(Wg,u);const Oe=Y.unmount;De.add(Y),Y.unmount=function(){De.delete(Y),De.size<1&&(c=_s,U&&U(),U=null,u.value=_s,Ge=!1,Q=!1),Oe()}}};function Je(Y){return Y.reduce((oe,de)=>oe.then(()=>$(de)),Promise.resolve())}return Ze}function YK(e,t){const n=[],r=[],i=[],s=Math.max(t.matched.length,e.matched.length);for(let o=0;oza(c,a))?r.push(a):n.push(a));const u=e.matched[o];u&&(t.matched.find(c=>za(c,u))||i.push(u))}return[n,r,i]}const GK=Fe({__name:"App",setup(e){return(t,n)=>{const r=U7,i=IH;return K(),Te(i,{namespace:"ep"},{default:B(()=>[H(r),H(S(pO))]),_:1})}}});const Uu=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},XK=Uu(GK,[["__scopeId","data-v-aa3fa0a7"]]);const JK={},ZK={class:"mx-4"},QK=I("h2",{class:"center",style:{"word-break":"break-all"}}," ",-1),eq=I("div",{class:"col-md-1"},null,-1),tq=I("div",{class:"col-md-9"},[I("div",{class:"basic-form"},[I("h3",{class:"center text-3xl"},[le("S.O.C.R.A.T.E.S."),I("br"),le("Soil Organic Carbon Reserves And Transformations in EcoSystems")])])],-1),nq=I("div",{class:"row"},[I("div",{class:"col-md-1"}),I("div",{class:"col-md-9"},[I("div",{class:"basic-form border-noshadow"},[I("h4",{class:"text-1xl"},"A simple model for predicting long-term changes in soil organic carbon in terrestrial ecosystems"),I("p",null,"The maintenance of soil organic carbon (SOC) in terrestrial ecosystems is critical for long-term productivity."),I("p",null,"Simulation models of SOC dynamics are valuable tools in predicting the impacts of climate on carbon storage and developing management strategies for the mitigation of greenhouse gas emissions, however, their utility is generally reduced due to need for specific data. "),I("p",null,"The SOCRATES model is a simple process based representation of SOC dynamics in terrestrial ecosystems, which requires minimal data inputs and specifically designed to examine the impact of land use and land use change on soil carbon storage. It also contains a simple yield calculator."),I("p",null,[le("SOCRATES was successful in predicting SOC change at eighteen long-term non-irrigated crop, pasture and forestry trials from North America, Europe and Australasia. These trials ranged from 8 to 86 years in duration, over a wide range of climates and soil types. See "),I("a",{target:"_blank",rel:"noreferrer noopener",href:"http://doi.org/10.1016/j.soilbio.2005.09.013"},"Grace et al (2006) SOCRATES—a simple model for predicting long-term changes in soil organic carbon in terrestrial ecosystems. Soil Biology and Biochemistry, 38, 1172-1176.")])])])],-1);function rq(e,t){const n=os,r=ci;return K(),ve("div",ZK,[H(r,{gutter:20,class:"flex flex-col justify-center items-center"},{default:B(()=>[H(n,{span:24,xl:20,lg:20,md:24,sm:24,xs:24},{default:B(()=>[QK]),_:1}),H(n,{xl:20,lg:20,md:20,sm:24,xs:24},{default:B(()=>[eq,tq,nq]),_:1})]),_:1})])}const gO=Uu(JK,[["render",rq]]),iq={};function sq(e,t){const n=gO,r=b2,i=Yt("router-link"),s=ci,o=os;return K(),Te(s,null,{default:B(()=>[H(o,{xl:20,lg:20,md:20,sm:24,xs:24},{default:B(()=>[H(n),H(s,{class:"m-4 p-4"},{default:B(()=>[H(i,{to:"/input"},{default:B(({href:a,route:u,navigate:c})=>[H(r,{href:a,onClick:c,class:"btn btn-custom btn-lg btn-block",role:"button"},{default:B(()=>[le("Start Model ")]),_:2},1032,["href","onClick"])]),_:1})]),_:1})]),_:1})]),_:1})}const oq=Uu(iq,[["render",sq]]);/*! + * @kurkle/color v0.3.2 + * https://github.com/kurkle/color#readme + * (c) 2023 Jukka Kurkela + * Released under the MIT License + */function Ku(e){return e+.5|0}const As=(e,t,n)=>Math.max(Math.min(e,n),t);function kl(e){return As(Ku(e*2.55),0,255)}function Bs(e){return As(Ku(e*255),0,255)}function qi(e){return As(Ku(e/2.55)/100,0,1)}function iw(e){return As(Ku(e*100),0,100)}const Dr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},jg=[..."0123456789ABCDEF"],aq=e=>jg[e&15],lq=e=>jg[(e&240)>>4]+jg[e&15],nf=e=>(e&240)>>4===(e&15),uq=e=>nf(e.r)&&nf(e.g)&&nf(e.b)&&nf(e.a);function cq(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Dr[e[1]]*17,g:255&Dr[e[2]]*17,b:255&Dr[e[3]]*17,a:t===5?Dr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Dr[e[1]]<<4|Dr[e[2]],g:Dr[e[3]]<<4|Dr[e[4]],b:Dr[e[5]]<<4|Dr[e[6]],a:t===9?Dr[e[7]]<<4|Dr[e[8]]:255})),n}const fq=(e,t)=>e<255?t(e):"";function dq(e){var t=uq(e)?aq:lq;return e?"#"+t(e.r)+t(e.g)+t(e.b)+fq(e.a,t):void 0}const hq=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function mO(e,t,n){const r=t*Math.min(n,1-n),i=(s,o=(s+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function pq(e,t,n){const r=(i,s=(i+e/60)%6)=>n-n*t*Math.max(Math.min(s,4-s,1),0);return[r(5),r(3),r(1)]}function gq(e,t,n){const r=mO(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function mq(e,t,n,r,i){return e===i?(t-n)/r+(t.5?d/(2-s-o):d/(s+o),u=mq(n,r,i,d,s),u=u*60+.5),[u|0,c||0,a]}function Pv(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Bs)}function Rv(e,t,n){return Pv(mO,e,t,n)}function vq(e,t,n){return Pv(gq,e,t,n)}function bq(e,t,n){return Pv(pq,e,t,n)}function vO(e){return(e%360+360)%360}function yq(e){const t=hq.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?kl(+t[5]):Bs(+t[5]));const i=vO(+t[2]),s=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=vq(i,s,o):t[1]==="hsv"?r=bq(i,s,o):r=Rv(i,s,o),{r:r[0],g:r[1],b:r[2],a:n}}function _q(e,t){var n=Av(e);n[0]=vO(n[0]+t),n=Rv(n),e.r=n[0],e.g=n[1],e.b=n[2]}function wq(e){if(!e)return;const t=Av(e),n=t[0],r=iw(t[1]),i=iw(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${qi(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const sw={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},ow={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function xq(){const e={},t=Object.keys(ow),n=Object.keys(sw);let r,i,s,o,a;for(r=0;r>16&255,s>>8&255,s&255]}return e}let rf;function Cq(e){rf||(rf=xq(),rf.transparent=[0,0,0,0]);const t=rf[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Sq=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Oq(e){const t=Sq.exec(e);let n=255,r,i,s;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?kl(o):As(o*255,0,255)}return r=+t[1],i=+t[3],s=+t[5],r=255&(t[2]?kl(r):As(r,0,255)),i=255&(t[4]?kl(i):As(i,0,255)),s=255&(t[6]?kl(s):As(s,0,255)),{r,g:i,b:s,a:n}}}function Eq(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${qi(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Ip=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,ga=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Mq(e,t,n){const r=ga(qi(e.r)),i=ga(qi(e.g)),s=ga(qi(e.b));return{r:Bs(Ip(r+n*(ga(qi(t.r))-r))),g:Bs(Ip(i+n*(ga(qi(t.g))-i))),b:Bs(Ip(s+n*(ga(qi(t.b))-s))),a:e.a+n*(t.a-e.a)}}function sf(e,t,n){if(e){let r=Av(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Rv(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function bO(e,t){return e&&Object.assign(t||{},e)}function aw(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Bs(e[3]))):(t=bO(e,{r:0,g:0,b:0,a:1}),t.a=Bs(t.a)),t}function Tq(e){return e.charAt(0)==="r"?Oq(e):yq(e)}class Su{constructor(t){if(t instanceof Su)return t;const n=typeof t;let r;n==="object"?r=aw(t):n==="string"&&(r=cq(t)||Cq(t)||Tq(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=bO(this._rgb);return t&&(t.a=qi(t.a)),t}set rgb(t){this._rgb=aw(t)}rgbString(){return this._valid?Eq(this._rgb):void 0}hexString(){return this._valid?dq(this._rgb):void 0}hslString(){return this._valid?wq(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let s;const o=n===s?.5:n,a=2*o-1,u=r.a-i.a,c=((a*u===-1?a:(a+u)/(1+a*u))+1)/2;s=1-c,r.r=255&c*r.r+s*i.r+.5,r.g=255&c*r.g+s*i.g+.5,r.b=255&c*r.b+s*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=Mq(this._rgb,t._rgb,n)),this}clone(){return new Su(this.rgb)}alpha(t){return this._rgb.a=Bs(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Ku(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return sf(this._rgb,2,t),this}darken(t){return sf(this._rgb,2,-t),this}saturate(t){return sf(this._rgb,1,t),this}desaturate(t){return sf(this._rgb,1,-t),this}rotate(t){return _q(this._rgb,t),this}}/*! + * Chart.js v4.3.0 + * https://www.chartjs.org + * (c) 2023 Chart.js Contributors + * Released under the MIT License + */function Bi(){}const Aq=(()=>{let e=0;return()=>e++})();function Rt(e){return e===null||typeof e>"u"}function Qt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function At(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function cn(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function wr(e,t){return cn(e)?e:t}function gt(e,t){return typeof e>"u"?t:e}const Pq=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,yO=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function qt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Wt(e,t,n,r){let i,s,o;if(Qt(e))if(s=e.length,r)for(i=s-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function Lq(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function Iq(e){const t=Lq(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Ks(e,t){return(lw[t]||(lw[t]=Iq(t)))(e)}function kv(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Eu=e=>typeof e<"u",qs=e=>typeof e=="function",uw=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function $q(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const on=Math.PI,en=2*on,Fq=en+on,cd=Number.POSITIVE_INFINITY,Dq=on/180,fn=on/2,ho=on/4,cw=on*2/3,Ps=Math.log10,xi=Math.sign;function Zl(e,t,n){return Math.abs(e-t)i-s).pop(),t}function Wa(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Bq(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function wO(e,t,n){let r,i,s;for(r=0,i=e.length;ru&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Iv(e,t,n){n=n||(o=>e[o]1;)s=i+r>>1,n(s)?i=s:r=s;return{lo:i,hi:r}}const Gi=(e,t,n,r)=>Iv(e,n,r?i=>{const s=e[i][t];return se[i][t]Iv(e,n,r=>e[r][t]>=n);function jq(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+kv(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...s){const o=i.apply(this,s);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...s)}),o}})})}function hw(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(CO.forEach(s=>{delete e[s]}),delete e._chartjs)}function SO(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const OO=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function EO(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,OO.call(window,()=>{r=!1,e.apply(t,n)}))}}function Uq(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const $v=e=>e==="start"?"left":e==="end"?"right":"center",zn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,Kq=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function MO(e,t,n){const r=t.length;let i=0,s=r;if(e._sorted){const{iScale:o,_parsed:a}=e,u=o.axis,{min:c,max:d,minDefined:h,maxDefined:g}=o.getUserBounds();h&&(i=Tn(Math.min(Gi(a,o.axis,c).lo,n?r:Gi(t,u,o.getPixelForValue(c)).lo),0,r-1)),g?s=Tn(Math.max(Gi(a,o.axis,d,!0).hi+1,n?0:Gi(t,u,o.getPixelForValue(d),!0).hi+1),i,r)-i:s=r-i}return{start:i,count:s}}function TO(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const s=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),s}const of=e=>e===0||e===1,pw=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*en/n)),gw=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*en/n)+1,Ql={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*fn)+1,easeOutSine:e=>Math.sin(e*fn),easeInOutSine:e=>-.5*(Math.cos(on*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>of(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>of(e)?e:pw(e,.075,.3),easeOutElastic:e=>of(e)?e:gw(e,.075,.3),easeInOutElastic(e){return of(e)?e:e<.5?.5*pw(e*2,.1125,.45):.5+.5*gw(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Ql.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ql.easeInBounce(e*2)*.5:Ql.easeOutBounce(e*2-1)*.5+.5};function Fv(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function mw(e){return Fv(e)?e:new Su(e)}function $p(e){return Fv(e)?e:new Su(e).saturate(.5).darken(.1).hexString()}const qq=["x","y","borderWidth","radius","tension"],Yq=["color","borderColor","backgroundColor"];function Gq(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Yq},numbers:{type:"number",properties:qq}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Xq(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const vw=new Map;function Jq(e,t){t=t||{};const n=e+JSON.stringify(t);let r=vw.get(n);return r||(r=new Intl.NumberFormat(e,t),vw.set(n,r)),r}function qu(e,t,n){return Jq(t,n).format(e)}const AO={values(e){return Qt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,s=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),s=Zq(e,n)}const o=Ps(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),u={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(u,this.options.ticks.format),qu(e,r,u)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Ps(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?AO.numeric.call(this,e,t,n):""}};function Zq(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Ud={formatters:AO};function Qq(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ud.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const jo=Object.create(null),Ug=Object.create(null);function eu(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>$p(i.backgroundColor),this.hoverBorderColor=(r,i)=>$p(i.borderColor),this.hoverColor=(r,i)=>$p(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Fp(this,t,n)}get(t){return eu(this,t)}describe(t,n){return Fp(Ug,t,n)}override(t,n){return Fp(jo,t,n)}route(t,n,r,i){const s=eu(this,t),o=eu(this,r),a="_"+n;Object.defineProperties(s,{[a]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const u=this[a],c=o[i];return At(u)?Object.assign({},c,u):gt(u,c)},set(u){this[a]=u}}})}apply(t){t.forEach(n=>n(this))}};var dn=new eY({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Gq,Xq,Qq]);function tY(e){return!e||Rt(e.size)||Rt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function fd(e,t,n,r,i){let s=t[i];return s||(s=t[i]=e.measureText(i).width,n.push(i)),s>r&&(r=s),r}function nY(e,t,n,r){r=r||{};let i=r.data=r.data||{},s=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},s=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0;const a=n.length;let u,c,d,h,g;for(u=0;un.length){for(u=0;u0&&e.stroke()}}function Xi(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&s.strokeColor!=="";let u,c;for(e.save(),e.font=i.string,sY(e,s),u=0;u+e||0;function Dv(e,t){const n={},r=At(t),i=r?Object.keys(t):t,s=At(e)?r?o=>gt(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=fY(s(o));return n}function RO(e){return Dv(e,{top:"y",right:"x",bottom:"y",left:"x"})}function No(e){return Dv(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Kn(e){const t=RO(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function xn(e,t){e=e||{},t=t||dn.font;let n=gt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=gt(e.style,t.style);r&&!(""+r).match(uY)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:gt(e.family,t.family),lineHeight:cY(gt(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:gt(e.weight,t.weight),string:""};return i.string=tY(i),i}function Ll(e,t,n,r){let i=!0,s,o,a;for(s=0,o=e.length;sn&&a===0?0:a+u;return{min:o(r,-Math.abs(s)),max:o(i,s)}}function Zs(e,t){return Object.assign(Object.create(e),t)}function Nv(e,t=[""],n,r,i=()=>e[0]){const s=n||e;typeof r>"u"&&(r=$O("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:r,_getTarget:i,override:a=>Nv([a,...e],t,s,r)};return new Proxy(o,{deleteProperty(a,u){return delete a[u],delete a._keys,delete e[0][u],!0},get(a,u){return LO(a,u,()=>_Y(u,t,e,a))},getOwnPropertyDescriptor(a,u){return Reflect.getOwnPropertyDescriptor(a._scopes[0],u)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,u){return _w(a).includes(u)},ownKeys(a){return _w(a)},set(a,u,c){const d=a._storage||(a._storage=i());return a[u]=d[u]=c,delete a._keys,!0}})}function ja(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:kO(e,r),setContext:s=>ja(e,s,n,r),override:s=>ja(e.override(s),t,n,r)};return new Proxy(i,{deleteProperty(s,o){return delete s[o],delete e[o],!0},get(s,o,a){return LO(s,o,()=>pY(s,o,a))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(s,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(s,o,a){return e[o]=a,delete s[o],!0}})}function kO(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:qs(n)?n:()=>n,isIndexable:qs(r)?r:()=>r}}const hY=(e,t)=>e?e+kv(t):t,Bv=(e,t)=>At(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function LO(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function pY(e,t,n){const{_proxy:r,_context:i,_subProxy:s,_descriptors:o}=e;let a=r[t];return qs(a)&&o.isScriptable(t)&&(a=gY(t,a,e,n)),Qt(a)&&a.length&&(a=mY(t,a,e,o.isIndexable)),Bv(t,a)&&(a=ja(a,i,s&&s[t],o)),a}function gY(e,t,n,r){const{_proxy:i,_context:s,_subProxy:o,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let u=t(s,o||r);return a.delete(e),Bv(e,u)&&(u=zv(i._scopes,i,e,u)),u}function mY(e,t,n,r){const{_proxy:i,_context:s,_subProxy:o,_descriptors:a}=n;if(typeof s.index<"u"&&r(e))return t[s.index%t.length];if(At(t[0])){const u=t,c=i._scopes.filter(d=>d!==u);t=[];for(const d of u){const h=zv(c,i,e,d);t.push(ja(h,s,o&&o[e],a))}}return t}function IO(e,t,n){return qs(e)?e(t,n):e}const vY=(e,t)=>e===!0?t:typeof e=="string"?Ks(t,e):void 0;function bY(e,t,n,r,i){for(const s of t){const o=vY(n,s);if(o){e.add(o);const a=IO(o._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==r)return a}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function zv(e,t,n,r){const i=t._rootScopes,s=IO(t._fallback,n,r),o=[...e,...i],a=new Set;a.add(r);let u=yw(a,o,n,s||n,r);return u===null||typeof s<"u"&&s!==n&&(u=yw(a,o,s,u,r),u===null)?!1:Nv(Array.from(a),[""],i,s,()=>yY(t,n,r))}function yw(e,t,n,r,i){for(;n;)n=bY(e,t,n,r,i);return n}function yY(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Qt(i)&&At(n)?n:i||{}}function _Y(e,t,n,r){let i;for(const s of t)if(i=$O(hY(s,e),n),typeof i<"u")return Bv(e,i)?zv(n,r,e,i):i}function $O(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function _w(e){let t=e._keys;return t||(t=e._keys=wY(e._scopes)),t}function wY(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function FO(e,t,n,r){const{iScale:i}=e,{key:s="r"}=this._parsing,o=new Array(r);let a,u,c,d;for(a=0,u=r;ate==="x"?"y":"x";function CY(e,t,n,r){const i=e.skip?t:e,s=t,o=n.skip?t:n,a=Vg(s,i),u=Vg(o,s);let c=a/(a+u),d=u/(a+u);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const h=r*c,g=r*d;return{previous:{x:s.x-h*(o.x-i.x),y:s.y-h*(o.y-i.y)},next:{x:s.x+g*(o.x-i.x),y:s.y+g*(o.y-i.y)}}}function SY(e,t,n){const r=e.length;let i,s,o,a,u,c=Va(e,0);for(let d=0;d!c.skip)),t.cubicInterpolationMode==="monotone")EY(e,i);else{let c=r?e[e.length-1]:e[0];for(s=0,o=e.length;se.ownerDocument.defaultView.getComputedStyle(e,null);function AY(e,t){return Yd(e).getPropertyValue(t)}const PY=["top","right","bottom","left"];function Bo(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const s=PY[i];r[s]=parseFloat(e[t+"-"+s+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const RY=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function kY(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:s}=r;let o=!1,a,u;if(RY(i,s,e.target))a=i,u=s;else{const c=t.getBoundingClientRect();a=r.clientX-c.left,u=r.clientY-c.top,o=!0}return{x:a,y:u,box:o}}function yo(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Yd(n),s=i.boxSizing==="border-box",o=Bo(i,"padding"),a=Bo(i,"border","width"),{x:u,y:c,box:d}=kY(e,n),h=o.left+(d&&a.left),g=o.top+(d&&a.top);let{width:m,height:b}=t;return s&&(m-=o.width+a.width,b-=o.height+a.height),{x:Math.round((u-h)/m*n.width/r),y:Math.round((c-g)/b*n.height/r)}}function LY(e,t,n){let r,i;if(t===void 0||n===void 0){const s=Hv(e);if(!s)t=e.clientWidth,n=e.clientHeight;else{const o=s.getBoundingClientRect(),a=Yd(s),u=Bo(a,"border","width"),c=Bo(a,"padding");t=o.width-c.width-u.width,n=o.height-c.height-u.height,r=dd(a.maxWidth,s,"clientWidth"),i=dd(a.maxHeight,s,"clientHeight")}}return{width:t,height:n,maxWidth:r||cd,maxHeight:i||cd}}const lf=e=>Math.round(e*10)/10;function IY(e,t,n,r){const i=Yd(e),s=Bo(i,"margin"),o=dd(i.maxWidth,e,"clientWidth")||cd,a=dd(i.maxHeight,e,"clientHeight")||cd,u=LY(e,t,n);let{width:c,height:d}=u;if(i.boxSizing==="content-box"){const g=Bo(i,"border","width"),m=Bo(i,"padding");c-=m.width+g.width,d-=m.height+g.height}return c=Math.max(0,c-s.width),d=Math.max(0,r?c/r:d-s.height),c=lf(Math.min(c,o,u.maxWidth)),d=lf(Math.min(d,a,u.maxHeight)),c&&!d&&(d=lf(c/2)),(t!==void 0||n!==void 0)&&r&&u.height&&d>u.height&&(d=u.height,c=lf(Math.floor(d*r))),{width:c,height:d}}function ww(e,t,n){const r=t||1,i=Math.floor(e.height*r),s=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==s?(e.currentDevicePixelRatio=r,o.height=i,o.width=s,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const $Y=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function xw(e,t){const n=AY(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function _o(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function FY(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function DY(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},s={x:t.cp1x,y:t.cp1y},o=_o(e,i,n),a=_o(i,s,n),u=_o(s,t,n),c=_o(o,a,n),d=_o(a,u,n);return _o(c,d,n)}const NY=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},BY=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Sa(e,t,n){return e?NY(t,n):BY()}function BO(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function zO(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function HO(e){return e==="angle"?{between:Mu,compare:zq,normalize:Sr}:{between:Yi,compare:(t,n)=>t-n,normalize:t=>t}}function Cw({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function zY(e,t,n){const{property:r,start:i,end:s}=n,{between:o,normalize:a}=HO(r),u=t.length;let{start:c,end:d,loop:h}=e,g,m;if(h){for(c+=u,d+=u,g=0,m=u;gu(i,O,y)&&a(i,O)!==0,E=()=>a(s,y)===0||u(s,O,y),T=()=>v||_(),P=()=>!v||E();for(let R=d,$=d;R<=h;++R)C=t[R%o],!C.skip&&(y=c(C[r]),y!==O&&(v=u(y,i,s),w===null&&T()&&(w=a(y,i)===0?R:$),w!==null&&P()&&(b.push(Cw({start:w,end:R,loop:g,count:o,style:m})),w=null),$=R,O=y));return w!==null&&b.push(Cw({start:w,end:h,loop:g,count:o,style:m})),b}function jO(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[s%t].skip;)s--;return s%=t,{start:i,end:s}}function WY(e,t,n,r){const i=e.length,s=[];let o=t,a=e[t],u;for(u=t+1;u<=n;++u){const c=e[u%i];c.skip||c.stop?a.skip||(r=!1,s.push({start:t%i,end:(u-1)%i,loop:r}),t=o=c.stop?u:null):(o=u,a.skip&&(t=u)),a=c}return o!==null&&s.push({start:t%i,end:o%i,loop:r}),s}function jY(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const s=!!e._loop,{start:o,end:a}=HY(n,i,s,r);if(r===!0)return Sw(e,[{start:o,end:a,loop:s}],n,t);const u=aa({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=OO.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const s=r.items;let o=s.length-1,a=!1,u;for(;o>=0;--o)u=s[o],u._active?(u._total>r.duration&&(r.duration=u._total),u.tick(t),a=!0):(s[o]=s[s.length-1],s.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),s.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=s.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ji=new KY;const Ew="transparent",qY={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=mw(e||Ew),i=r.valid&&mw(t||Ew);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class YY{constructor(t,n,r,i){const s=n[r];i=Ll([t.to,i,s,t.from]);const o=Ll([t.from,s,i]);this._active=!0,this._fn=t.fn||qY[t.type||typeof o],this._easing=Ql[t.easing]||Ql.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],s=r-this._start,o=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=Ll([t.to,n,i,t.from]),this._from=Ll([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,s=this._from,o=this._loop,a=this._to;let u;if(this._active=s!==a&&(o||n1?2-u:u,u=this._easing(Math.min(1,Math.max(0,u))),this._target[i]=this._fn(s,a,u)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i{const s=t[i];if(!At(s))return;const o={};for(const a of n)o[a]=s[a];(Qt(s.properties)&&s.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,o)})})}_animateOptions(t,n){const r=n.options,i=XY(t,r);if(!i)return[];const s=this._createAnimations(i,r);return r.$shared&&GY(t.options.$animations,r).then(()=>{t.options=r},()=>{}),s}_createAnimations(t,n){const r=this._properties,i=[],s=t.$animations||(t.$animations={}),o=Object.keys(n),a=Date.now();let u;for(u=o.length-1;u>=0;--u){const c=o[u];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const d=n[c];let h=s[c];const g=r.get(c);if(h)if(g&&h.active()){h.update(g,d,a);continue}else h.cancel();if(!g||!g.duration){t[c]=d;continue}s[c]=h=new YY(g,t,c,d),i.push(h)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return ji.add(this._chart,r),!0}}function GY(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&s<0)return i.index}return null}function Rw(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:a}=r,u=s.axis,c=o.axis,d=eG(s,o,r),h=t.length;let g;for(let m=0;mn[r].axis===t).shift()}function rG(e,t){return Zs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function iG(e,t,n){return Zs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Sl(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const s=i._stacks;if(!s||s[r]===void 0||s[r][n]===void 0)return;delete s[r][n],s[r]._visualValues!==void 0&&s[r]._visualValues[n]!==void 0&&delete s[r]._visualValues[n]}}}const Np=e=>e==="reset"||e==="none",kw=(e,t)=>t?e:Object.assign({},e),sG=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:UO(n,!0),values:null};class si{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Aw(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Sl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(h,g,m,b)=>h==="x"?g:h==="r"?b:m,s=n.xAxisID=gt(r.xAxisID,Dp(t,"x")),o=n.yAxisID=gt(r.yAxisID,Dp(t,"y")),a=n.rAxisID=gt(r.rAxisID,Dp(t,"r")),u=n.indexAxis,c=n.iAxisID=i(u,s,o,a),d=n.vAxisID=i(u,o,s,a);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&hw(this._data,this),t._stacked&&Sl(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(At(n))this._data=QY(n);else if(r!==n){if(r){hw(r,this);const i=this._cachedMeta;Sl(i),i._parsed=[]}n&&Object.isExtensible(n)&&Vq(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const s=n._stacked;n._stacked=Aw(n.vScale,n),n.stack!==r.stack&&(i=!0,Sl(n),n.stack=r.stack),this._resyncElements(t),(i||s!==n._stacked)&&Rw(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:s,_stacked:o}=r,a=s.axis;let u=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,h,g;if(this._parsing===!1)r._parsed=i,r._sorted=!0,g=i;else{Qt(i[t])?g=this.parseArrayData(r,i,t,n):At(i[t])?g=this.parseObjectData(r,i,t,n):g=this.parsePrimitiveData(r,i,t,n);const m=()=>h[a]===null||c&&h[a]v||h=0;--g)if(!b()){this.updateRangeFromParsed(c,t,m,u);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,s,o;for(i=0,s=n.length;i=0&&tthis.getContext(r,i,n),v=c.resolveNamedOptions(g,m,b,h);return v.$shared&&(v.$shared=u,s[o]=Object.freeze(kw(v,u))),v}_resolveAnimations(t,n,r){const i=this.chart,s=this._cachedDataOpts,o=`animation-${n}`,a=s[o];if(a)return a;let u;if(i.options.animation!==!1){const d=this.chart.config,h=d.datasetAnimationScopeKeys(this._type,n),g=d.getOptionScopes(this.getDataset(),h);u=d.createResolver(g,this.getContext(t,r,n))}const c=new VO(i,u&&u.animations);return u&&u._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Np(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,s=this.getSharedOptions(r),o=this.includeOptions(n,s)||s!==i;return this.updateSharedOptions(s,n,r),{sharedOptions:s,includeOptions:o}}updateElement(t,n,r,i){Np(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Np(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const s=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,u,c]of this._syncList)this[a](u,c);this._syncList=[];const i=r.length,s=n.length,o=Math.min(s,i);o&&this.parse(0,o),s>i?this._insertElements(i,s-i,t):s{for(c.length+=n,a=c.length-1;a>=o;a--)c[a]=c[a-n]};for(u(s),a=t;ai-s))}return e._cache.$bar}function aG(e){const t=e.iScale,n=oG(t,e.type);let r=t._length,i,s,o,a;const u=()=>{o===32767||o===-32768||(Eu(a)&&(r=Math.min(r,Math.abs(o-a)||r)),a=o)};for(i=0,s=n.length;i0?i[e-1]:null,a=eMath.abs(a)&&(u=a,c=o),t[n.axis]=c,t._custom={barStart:u,barEnd:c,start:i,end:s,min:o,max:a}}function KO(e,t,n,r){return Qt(e)?cG(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Lw(e,t,n,r){const i=e.iScale,s=e.vScale,o=i.getLabels(),a=i===s,u=[];let c,d,h,g;for(c=n,d=n+r;c=n?1:-1)}function dG(e){let t,n,r,i,s;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.baseu.controller.options.grouped),s=r.options.stacked,o=[],a=u=>{const c=u.controller.getParsed(n),d=c&&c[u.vScale.axis];if(Rt(d)||isNaN(d))return!0};for(const u of i)if(!(n!==void 0&&a(u))&&((s===!1||o.indexOf(u.stack)===-1||s===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),s=n!==void 0?i.indexOf(n):-1;return s===-1?i.length-1:s}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let s,o;for(s=0,o=n.data.length;s=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:s}=n,o=this.getParsed(t),a=i.getLabelForValue(o.x),u=s.getLabelForValue(o.y),c=o._custom;return{label:r[t]||"",value:"("+a+", "+u+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const s=i==="reset",{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:u,includeOptions:c}=this._getSharedOptions(n,i),d=o.axis,h=a.axis;for(let g=n;gMu(O,a,u,!0)?1:Math.max(_,_*n,E,E*n),b=(O,_,E)=>Mu(O,a,u,!0)?-1:Math.min(_,_*n,E,E*n),v=m(0,c,h),w=m(fn,d,g),y=b(on,c,h),C=b(on+fn,d,g);r=(v-y)/2,i=(w-C)/2,s=-(v+y)/2,o=-(w+C)/2}return{ratioX:r,ratioY:i,offsetX:s,offsetY:o}}class ko extends si{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let s=u=>+r[u];if(At(r[t])){const{key:u="value"}=this._parsing;s=c=>+Ks(r[c],u)}let o,a;for(o=t,a=t+n;o0&&!isNaN(t)?en*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],s=qu(n._parsed[t],r.options.locale);return{label:i[t]||"",value:s}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,s,o,a,u;if(!t){for(i=0,s=r.data.datasets.length;it!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),Re(ko,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((s,o)=>{const u=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:i,lineWidth:u.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Ff extends si{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:s}=n,o=this.chart._animationsDisabled;let{start:a,count:u}=MO(n,i,o);this._drawStart=a,this._drawCount=u,TO(n)&&(a=0,u=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:c},t),this.updateElements(i,a,u,t)}updateElements(t,n,r,i){const s=i==="reset",{iScale:o,vScale:a,_stacked:u,_dataset:c}=this._cachedMeta,{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,i),g=o.axis,m=a.axis,{spanGaps:b,segment:v}=this.options,w=Wa(b)?b:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||s||i==="none",C=n+r,O=t.length;let _=n>0&&this.getParsed(n-1);for(let E=0;E=C){P.skip=!0;continue}const R=this.getParsed(E),$=Rt(R[m]),D=P[g]=o.getPixelForValue(R[g],E),j=P[m]=s||$?a.getBasePixel():a.getPixelForValue(u?this.applyStack(a,R,u):R[m],E);P.skip=isNaN(D)||isNaN(j)||$,P.stop=E>0&&Math.abs(R[g]-_[g])>w,v&&(P.parsed=R,P.raw=c.data[E]),h&&(P.options=d||this.resolveDataElementOptions(E,T.active?"active":i)),y||this.updateElement(T,E,P,i),_=R}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const s=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Re(Ff,"id","line"),Re(Ff,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Re(Ff,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class tu extends si{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],s=qu(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:s}}parseObjectData(t,n,r,i){return FO.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(sn.max&&(n.max=s))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),s=Math.max(i/2,0),o=Math.max(r.cutoutPercentage?s/100*r.cutoutPercentage:1,0),a=(s-o)/t.getVisibleDatasetCount();this.outerRadius=s-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,r,i){const s=i==="reset",o=this.chart,u=o.options.animation,c=this._cachedMeta.rScale,d=c.xCenter,h=c.yCenter,g=c.getIndexAngle(0)-.5*on;let m=g,b;const v=360/this.countVisibleElements();for(b=0;b{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?ri(this.resolveDataElementOptions(t,n).angle||r):0}}Re(tu,"id","polarArea"),Re(tu,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),Re(tu,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((s,o)=>{const u=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:i,lineWidth:u.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class qg extends ko{}Re(qg,"id","pie"),Re(qg,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Df extends si{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return FO.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],s=n.iScale.getLabels();if(r.points=i,t!=="resize"){const o=this.resolveDatasetElementOptions(t);this.options.showLine||(o.borderWidth=0);const a={_loop:!0,_fullLoop:s.length===i.length,options:o};this.updateElement(r,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const s=this._cachedMeta.rScale,o=i==="reset";for(let a=n;a0&&this.getParsed(n-1);for(let _=n;_0&&Math.abs(T[m]-O[m])>y,w&&(P.parsed=T,P.raw=c.data[_]),g&&(P.options=h||this.resolveDataElementOptions(_,E.active?"active":i)),C||this.updateElement(E,_,P,i),O=T}this.updateSharedOptions(h,i,d)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let u=n.length-1;u>=0;--u)a=Math.max(a,n[u].size(this.resolveDataElementOptions(u))/2);return a>0&&a}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,o)/2}}Re(Nf,"id","scatter"),Re(Nf,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),Re(Nf,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var vG=Object.freeze({__proto__:null,BarController:If,BubbleController:$f,DoughnutController:ko,LineController:Ff,PieController:qg,PolarAreaController:tu,RadarController:Df,ScatterController:Nf});function go(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Wv{constructor(t){Re(this,"options");this.options=t||{}}static override(t){Object.assign(Wv.prototype,t)}init(){}formats(){return go()}parse(){return go()}format(){return go()}add(){return go()}diff(){return go()}startOf(){return go()}endOf(){return go()}}var bG={_date:Wv};function yG(e,t,n,r){const{controller:i,data:s,_sorted:o}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&o&&s.length){const u=a._reversePixels?Wq:Gi;if(r){if(i._sharedOptions){const c=s[0],d=typeof c.getRange=="function"&&c.getRange(t);if(d){const h=u(s,t,n-d),g=u(s,t,n+d);return{lo:h.lo,hi:g.hi}}}}else return u(s,t,n)}return{lo:0,hi:s.length-1}}function Yu(e,t,n,r,i){const s=e.getSortedVisibleDatasetMetas(),o=n[t];for(let a=0,u=s.length;a{u[o](t[n],i)&&(s.push({element:u,datasetIndex:c,index:d}),a=a||u.inRange(t.x,t.y,i))}),r&&!a?[]:s}var CG={evaluateInteractionItems:Yu,modes:{index(e,t,n,r){const i=yo(t,e),s=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?zp(e,i,s,r,o):Hp(e,i,s,!1,r,o),u=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=a[0].index,h=c.data[d];h&&!h.skip&&u.push({element:h,datasetIndex:c.index,index:d})}),u):[]},dataset(e,t,n,r){const i=yo(t,e),s=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?zp(e,i,s,r,o):Hp(e,i,s,!1,r,o);if(a.length>0){const u=a[0].datasetIndex,c=e.getDatasetMeta(u).data;a=[];for(let d=0;dn.pos===t)}function Dw(e,t){return e.filter(n=>qO.indexOf(n.pos)===-1&&n.box.axis===t)}function El(e,t){return e.sort((n,r)=>{const i=t?r:n,s=t?n:r;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function SG(e){const t=[];let n,r,i,s,o,a;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=El(Ol(t,"left"),!0),i=El(Ol(t,"right")),s=El(Ol(t,"top"),!0),o=El(Ol(t,"bottom")),a=Dw(t,"x"),u=Dw(t,"y");return{fullSize:n,leftAndTop:r.concat(s),rightAndBottom:i.concat(u).concat(o).concat(a),chartArea:Ol(t,"chartArea"),vertical:r.concat(i).concat(u),horizontal:s.concat(o).concat(a)}}function Nw(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function YO(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function TG(e,t,n,r){const{pos:i,box:s}=n,o=e.maxPadding;if(!At(i)){n.size&&(e[i]-=n.size);const h=r[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?s.height:s.width),n.size=h.size/h.count,e[i]+=n.size}s.getPadding&&YO(o,s.getPadding());const a=Math.max(0,t.outerWidth-Nw(o,e,"left","right")),u=Math.max(0,t.outerHeight-Nw(o,e,"top","bottom")),c=a!==e.w,d=u!==e.h;return e.w=a,e.h=u,n.horizontal?{same:c,other:d}:{same:d,other:c}}function AG(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function PG(e,t){const n=t.maxPadding;function r(i){const s={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{s[o]=Math.max(t[o],n[o])}),s}return r(e?["left","right"]:["top","bottom"])}function Il(e,t,n,r){const i=[];let s,o,a,u,c,d;for(s=0,o=e.length,c=0;s{typeof v.beforeLayout=="function"&&v.beforeLayout()});const d=u.reduce((v,w)=>w.box.options&&w.box.options.display===!1?v:v+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/d,hBoxMaxHeight:o/2}),g=Object.assign({},i);YO(g,Kn(r));const m=Object.assign({maxPadding:g,w:s,h:o,x:i.left,y:i.top},i),b=EG(u.concat(c),h);Il(a.fullSize,m,h,b),Il(u,m,h,b),Il(c,m,h,b)&&Il(u,m,h,b),AG(m),Bw(a.leftAndTop,m,h,b),m.x+=m.w,m.y+=m.h,Bw(a.rightAndBottom,m,h,b),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},Wt(a.chartArea,v=>{const w=v.box;Object.assign(w,e.chartArea),w.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class GO{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class RG extends GO{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Bf="$chartjs",kG={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},zw=e=>e===null||e==="";function LG(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Bf]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",zw(i)){const s=xw(e,"width");s!==void 0&&(e.width=s)}if(zw(r))if(e.style.height==="")e.height=e.width/(t||2);else{const s=xw(e,"height");s!==void 0&&(e.height=s)}return e}const XO=$Y?{passive:!0}:!1;function IG(e,t,n){e.addEventListener(t,n,XO)}function $G(e,t,n){e.canvas.removeEventListener(t,n,XO)}function FG(e,t){const n=kG[e.type]||e.type,{x:r,y:i}=yo(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function hd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function DG(e,t,n){const r=e.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||hd(a.addedNodes,r),o=o&&!hd(a.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function NG(e,t,n){const r=e.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||hd(a.removedNodes,r),o=o&&!hd(a.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Au=new Map;let Hw=0;function JO(){const e=window.devicePixelRatio;e!==Hw&&(Hw=e,Au.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function BG(e,t){Au.size||window.addEventListener("resize",JO),Au.set(e,t)}function zG(e){Au.delete(e),Au.size||window.removeEventListener("resize",JO)}function HG(e,t,n){const r=e.canvas,i=r&&Hv(r);if(!i)return;const s=EO((a,u)=>{const c=i.clientWidth;n(a,u),c{const u=a[0],c=u.contentRect.width,d=u.contentRect.height;c===0&&d===0||s(c,d)});return o.observe(i),BG(e,s),o}function Wp(e,t,n){n&&n.disconnect(),t==="resize"&&zG(e)}function WG(e,t,n){const r=e.canvas,i=EO(s=>{e.ctx!==null&&n(FG(s,e))},e);return IG(r,t,i),i}class jG extends GO{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(LG(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Bf])return!1;const r=n[Bf].initial;["height","width"].forEach(s=>{const o=r[s];Rt(o)?n.removeAttribute(s):n.setAttribute(s,o)});const i=r.style||{};return Object.keys(i).forEach(s=>{n.style[s]=i[s]}),n.width=n.width,delete n[Bf],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:DG,detach:NG,resize:HG}[n]||WG;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Wp,detach:Wp,resize:Wp}[n]||$G)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return IY(t,n,r,i)}isAttached(t){const n=Hv(t);return!!(n&&n.isConnected)}}function VG(e){return!NO()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?RG:jG}var mf;let as=(mf=class{constructor(){Re(this,"x");Re(this,"y");Re(this,"active",!1);Re(this,"options");Re(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Wa(this.x)&&Wa(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(s=>{i[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),i}},Re(mf,"defaults",{}),Re(mf,"defaultRoutes"),mf);function UG(e,t){const n=e.options.ticks,r=KG(e),i=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?YG(t):[],o=s.length,a=s[0],u=s[o-1],c=[];if(o>i)return GG(t,c,s,o/i),c;const d=qG(s,t,i);if(o>0){let h,g;const m=o>1?Math.round((u-a)/(o-1)):null;for(cf(t,c,d,Rt(m)?0:a-m,a),h=0,g=o-1;hi)return u}return Math.max(i,1)}function YG(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,Ww=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,jw=(e,t)=>Math.min(t||e,e);function Vw(e,t){const n=[],r=e.length/t,i=e.length;let s=0;for(;so+a)))return u}function QG(e,t){Wt(e,n=>{const r=n.gc,i=r.length/2;let s;if(i>t){for(s=0;sr?r:n,r=i&&n>r?n:r,{min:wr(n,wr(r,n)),max:wr(r,wr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){qt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=dY(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const u=a=s||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),h=d.widest.width,g=d.highest.height,m=Tn(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/r:m/(r-1),h+6>a&&(a=m/(r-(t.offset?.5:1)),u=this.maxHeight-Ml(t.grid)-n.padding-Uw(t.title,this.chart.options.font),c=Math.sqrt(h*h+g*g),o=Lv(Math.min(Math.asin(Tn((d.highest.height+6)/a,-1,1)),Math.asin(Tn(u/c,-1,1))-Math.asin(Tn(g/c,-1,1)))),o=Math.max(i,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){qt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){qt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const u=Uw(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=Ml(s)+u):(t.height=this.maxHeight,t.width=Ml(s)+u),r.display&&this.ticks.length){const{first:c,last:d,widest:h,highest:g}=this._getLabelSizes(),m=r.padding*2,b=ri(this.labelRotation),v=Math.cos(b),w=Math.sin(b);if(a){const y=r.mirror?0:w*h.width+v*g.height;t.height=Math.min(this.maxHeight,t.height+y+m)}else{const y=r.mirror?0:v*h.width+w*g.height;t.width=Math.min(this.maxWidth,t.width+y+m)}this._calculatePadding(c,d,w,v)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:s,padding:o},position:a}=this.options,u=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let g=0,m=0;u?c?(g=i*t.width,m=r*n.height):(g=r*t.height,m=i*n.width):s==="start"?m=n.width:s==="end"?g=t.width:s!=="inner"&&(g=t.width/2,m=n.width/2),this.paddingLeft=Math.max((g-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((m-h+o)*this.width/(this.width-h),0)}else{let d=n.height/2,h=t.height/2;s==="start"?(d=0,h=t.height):s==="end"&&(d=n.height,h=0),this.paddingTop=d+o,this.paddingBottom=h+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){qt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:o[$]||0,height:a[$]||0});return{first:R(0),last:R(n-1),widest:R(T),highest:R(P),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Hq(this._alignToPixels?po(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ta*i?a/r:u/i:u*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:s,position:o,border:a}=i,u=s.offset,c=this.isHorizontal(),h=this.ticks.length+(u?1:0),g=Ml(s),m=[],b=a.setContext(this.getContext()),v=b.display?b.width:0,w=v/2,y=function(ne){return po(r,ne,v)};let C,O,_,E,T,P,R,$,D,j,A,U;if(o==="top")C=y(this.bottom),P=this.bottom-g,$=C-w,j=y(t.top)+w,U=t.bottom;else if(o==="bottom")C=y(this.top),j=t.top,U=y(t.bottom)-w,P=C+w,$=this.top+g;else if(o==="left")C=y(this.right),T=this.right-g,R=C-w,D=y(t.left)+w,A=t.right;else if(o==="right")C=y(this.left),D=t.left,A=y(t.right)-w,T=C+w,R=this.left+g;else if(n==="x"){if(o==="center")C=y((t.top+t.bottom)/2+.5);else if(At(o)){const ne=Object.keys(o)[0],Q=o[ne];C=y(this.chart.scales[ne].getPixelForValue(Q))}j=t.top,U=t.bottom,P=C+w,$=P+g}else if(n==="y"){if(o==="center")C=y((t.left+t.right)/2);else if(At(o)){const ne=Object.keys(o)[0],Q=o[ne];C=y(this.chart.scales[ne].getPixelForValue(Q))}T=C-w,R=T-g,D=t.left,A=t.right}const ue=gt(i.ticks.maxTicksLimit,h),ce=Math.max(1,Math.ceil(h/ue));for(O=0;Os.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const a=(u,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(u.x,u.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(s=0,o=i.length;s{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let s,o;for(s=0,o=n.length;s{const r=n.split("."),i=r.pop(),s=[e].concat(r).join("."),o=t[n].split("."),a=o.pop(),u=o.join(".");dn.route(s,i,u,a)})}function oX(e){return"id"in e&&"defaults"in e}class aX{constructor(){this.controllers=new ff(si,"datasets",!0),this.elements=new ff(as,"elements"),this.plugins=new ff(Object,"plugins"),this.scales=new ff(Jo,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const s=r||this._getRegistryForType(i);r||s.isForType(i)||s===this.plugins&&i.id?this._exec(t,s,i):Wt(i,o=>{const a=r||this._getRegistryForType(o);this._exec(t,a,o)})})}_exec(t,n,r){const i=kv(t);qt(r["before"+i],[],r),n[t](r),qt(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;ns.filter(a=>!o.some(u=>a.plugin.id===u.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function uX(e){const t={},n=[],r=Object.keys(mi.plugins.items);for(let s=0;s1&&Kw(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function qw(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function mX(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return qw(e,"x",n[0])||qw(e,"y",n[0])}return{}}function vX(e,t){const n=jo[e.type]||{scales:{}},r=t.scales||{},i=Yg(e.type,t),s=Object.create(null);return Object.keys(r).forEach(o=>{const a=r[o];if(!At(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const u=Gg(o,a,mX(o,e),dn.scales[a.type]),c=pX(u,i),d=n.scales||{};s[o]=Jl(Object.create(null),[{axis:u},a,d[u],d[c]])}),e.data.datasets.forEach(o=>{const a=o.type||e.type,u=o.indexAxis||Yg(a,t),d=(jo[a]||{}).scales||{};Object.keys(d).forEach(h=>{const g=hX(h,u),m=o[g+"AxisID"]||g;s[m]=s[m]||Object.create(null),Jl(s[m],[{axis:g},r[m],d[h]])})}),Object.keys(s).forEach(o=>{const a=s[o];Jl(a,[dn.scales[a.type],dn.scale])}),s}function ZO(e){const t=e.options||(e.options={});t.plugins=gt(t.plugins,{}),t.scales=vX(e,t)}function QO(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function bX(e){return e=e||{},e.data=QO(e.data),ZO(e),e}const Yw=new Map,eE=new Set;function df(e,t){let n=Yw.get(e);return n||(n=t(),Yw.set(e,n),eE.add(n)),n}const Tl=(e,t,n)=>{const r=Ks(t,n);r!==void 0&&e.add(r)};class yX{constructor(t){this._config=bX(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=QO(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),ZO(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return df(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return df(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return df(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return df(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:s}=this,o=this._cachedScopes(t,r),a=o.get(n);if(a)return a;const u=new Set;n.forEach(d=>{t&&(u.add(t),d.forEach(h=>Tl(u,t,h))),d.forEach(h=>Tl(u,i,h)),d.forEach(h=>Tl(u,jo[s]||{},h)),d.forEach(h=>Tl(u,dn,h)),d.forEach(h=>Tl(u,Ug,h))});const c=Array.from(u);return c.length===0&&c.push(Object.create(null)),eE.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,jo[n]||{},dn.datasets[n]||{},{type:n},dn,Ug]}resolveNamedOptions(t,n,r,i=[""]){const s={$shared:!0},{resolver:o,subPrefixes:a}=Gw(this._resolverCache,t,i);let u=o;if(wX(o,n)){s.$shared=!1,r=qs(r)?r():r;const c=this.createResolver(t,r,a);u=ja(o,r,c)}for(const c of n)s[c]=u[c];return s}createResolver(t,n,r=[""],i){const{resolver:s}=Gw(this._resolverCache,t,r);return At(n)?ja(s,n,void 0,i):s}}function Gw(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let s=r.get(i);return s||(s={resolver:Nv(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,s)),s}const _X=e=>At(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||qs(e[n]),!1);function wX(e,t){const{isScriptable:n,isIndexable:r}=kO(e);for(const i of t){const s=n(i),o=r(i),a=(o||s)&&e[i];if(s&&(qs(a)||_X(a))||o&&Qt(a))return!0}return!1}var xX="4.3.0";const CX=["top","bottom","left","right","chartArea"];function Xw(e,t){return e==="top"||e==="bottom"||CX.indexOf(e)===-1&&t==="x"}function Jw(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Zw(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),qt(n&&n.onComplete,[e],t)}function SX(e){const t=e.chart,n=t.options.animation;qt(n&&n.onProgress,[e],t)}function tE(e){return NO()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const zf={},Qw=e=>{const t=tE(e);return Object.values(zf).filter(n=>n.canvas===t).pop()};function OX(e,t,n){const r=Object.keys(e);for(const i of r){const s=+i;if(s>=t){const o=e[i];delete e[i],(n>0||s>t)&&(e[s+n]=o)}}}function EX(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function MX(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class bi{static register(...t){mi.add(...t),ex()}static unregister(...t){mi.remove(...t),ex()}constructor(t,n){const r=this.config=new yX(n),i=tE(t),s=Qw(i);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||VG(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,o.aspectRatio),u=a&&a.canvas,c=u&&u.height,d=u&&u.width;if(this.id=Aq(),this.ctx=a,this.canvas=u,this.width=d,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new lX,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Uq(h=>this.update(h),o.resizeDelay||0),this._dataChanges=[],zf[this.id]=this,!a||!u){console.error("Failed to create chart: can't acquire context from the given item");return}ji.listen(this,"complete",Zw),ji.listen(this,"progress",SX),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:s}=this;return Rt(t)?n&&s?s:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return mi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ww(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return bw(this.canvas,this.ctx),this}stop(){return ji.stop(this),this}resize(t,n){ji.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,s),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),u=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,ww(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),qt(r.onResize,[this,o],this),this.attached&&this._doResize(u)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Wt(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,a)=>(o[a]=!1,o),{});let s=[];n&&(s=s.concat(Object.keys(n).map(o=>{const a=n[o],u=Gg(o,a),c=u==="r",d=u==="x";return{options:a,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),Wt(s,o=>{const a=o.options,u=a.id,c=Gg(u,a),d=gt(a.type,o.dtype);(a.position===void 0||Xw(a.position,c)!==Xw(o.dposition))&&(a.position=o.dposition),i[u]=!0;let h=null;if(u in r&&r[u].type===d)h=r[u];else{const g=mi.getScale(d);h=new g({id:u,type:d,ctx:this.ctx,chart:this}),r[h.id]=h}h.init(a,t)}),Wt(i,(o,a)=>{o||delete r[a]}),Wt(r,o=>{Un.configure(this,o,o.options),Un.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,s)=>i.index-s.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Jw("z","_idx"));const{_active:a,_lastEvent:u}=this;u?this._eventHandler(u,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Wt(this.scales,t=>{Un.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!uw(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:s}of n){const o=r==="_removeElements"?-s:s;OX(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=s=>new Set(t.filter(o=>o[0]===s).map((o,a)=>a+","+o.splice(1).join(","))),i=r(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Un.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Wt(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,s)=>{i._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,s=MX(t)||this.chartArea,o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&Kd(n,{left:r.left===!1?0:s.left-r.left,right:r.right===!1?this.width:s.right+r.right,top:r.top===!1?0:s.top-r.top,bottom:r.bottom===!1?this.height:s.bottom+r.bottom}),t.controller.draw(),i&&qd(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Xi(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const s=CG.modes[n];return typeof s=="function"?s(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(s=>s&&s._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Zs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,i);Eu(n)?(s.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(s,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),ji.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,s,o),t[s]=o},i=(s,o,a)=>{s.offsetX=o,s.offsetY=a,this._eventHandler(s)};Wt(this.options.events,s=>r(s,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(u,c)=>{n.addEventListener(this,u,c),t[u]=c},i=(u,c)=>{t[u]&&(n.removeEventListener(this,u,c),delete t[u])},s=(u,c)=>{this.canvas&&this.resize(u,c)};let o;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",s),r("detach",o)};o=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){Wt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Wt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let s,o,a,u;for(n==="dataset"&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),a=0,u=t.length;a{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[o],index:o}});!ld(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,s=(u,c)=>u.filter(d=>!c.some(h=>d.datasetIndex===h.datasetIndex&&d.index===h.index)),o=s(n,t),a=r?t:s(t,n);o.length&&this.updateHoverStyle(o,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const s=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(s||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:s}=this,o=n,a=this._getActiveElements(t,i,r,o),u=$q(t),c=EX(t,this._lastEvent,r,u);r&&(this._lastEvent=null,qt(s.onHover,[t,a,this],this),u&&qt(s.onClick,[t,a,this],this));const d=!ld(a,i);return(d||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,d}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,i)}}Re(bi,"defaults",dn),Re(bi,"instances",zf),Re(bi,"overrides",jo),Re(bi,"registry",mi),Re(bi,"version",xX),Re(bi,"getChart",Qw);function ex(){return Wt(bi.instances,e=>e._plugins.invalidate())}function TX(e,t,n){const{startAngle:r,pixelMargin:i,x:s,y:o,outerRadius:a,innerRadius:u}=t;let c=i/a;e.beginPath(),e.arc(s,o,a,r-c,n+c),u>i?(c=i/u,e.arc(s,o,u,n+c,r-c,!0)):e.arc(s,o,i,n+fn,r-fn),e.closePath(),e.clip()}function AX(e){return Dv(e,["outerStart","outerEnd","innerStart","innerEnd"])}function PX(e,t,n,r){const i=AX(e.options.borderRadius),s=(n-t)/2,o=Math.min(s,r*t/2),a=u=>{const c=(n-Math.min(s,u))*r/2;return Tn(u,0,Math.min(s,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:Tn(i.innerStart,0,o),innerEnd:Tn(i.innerEnd,0,o)}}function ma(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function pd(e,t,n,r,i,s){const{x:o,y:a,startAngle:u,pixelMargin:c,innerRadius:d}=t,h=Math.max(t.outerRadius+r+n-c,0),g=d>0?d+r+n+c:0;let m=0;const b=i-u;if(r){const ce=d>0?d-r:0,ne=h>0?h-r:0,Q=(ce+ne)/2,ie=Q!==0?b*Q/(Q+r):b;m=(b-ie)/2}const v=Math.max(.001,b*h-n/on)/h,w=(b-v)/2,y=u+w+m,C=i-w-m,{outerStart:O,outerEnd:_,innerStart:E,innerEnd:T}=PX(t,g,h,C-y),P=h-O,R=h-_,$=y+O/P,D=C-_/R,j=g+E,A=g+T,U=y+E/j,ue=C-T/A;if(e.beginPath(),s){const ce=($+D)/2;if(e.arc(o,a,h,$,ce),e.arc(o,a,h,ce,D),_>0){const ee=ma(R,D,o,a);e.arc(ee.x,ee.y,_,D,C+fn)}const ne=ma(A,C,o,a);if(e.lineTo(ne.x,ne.y),T>0){const ee=ma(A,ue,o,a);e.arc(ee.x,ee.y,T,C+fn,ue+Math.PI)}const Q=(C-T/g+(y+E/g))/2;if(e.arc(o,a,g,C-T/g,Q,!0),e.arc(o,a,g,Q,y+E/g,!0),E>0){const ee=ma(j,U,o,a);e.arc(ee.x,ee.y,E,U+Math.PI,y-fn)}const ie=ma(P,y,o,a);if(e.lineTo(ie.x,ie.y),O>0){const ee=ma(P,$,o,a);e.arc(ee.x,ee.y,O,y-fn,$)}}else{e.moveTo(o,a);const ce=Math.cos($)*h+o,ne=Math.sin($)*h+a;e.lineTo(ce,ne);const Q=Math.cos(D)*h+o,ie=Math.sin(D)*h+a;e.lineTo(Q,ie)}e.closePath()}function RX(e,t,n,r,i){const{fullCircles:s,startAngle:o,circumference:a}=t;let u=t.endAngle;if(s){pd(e,t,n,r,u,i);for(let c=0;c=en||Mu(o,u,c),w=Yi(a,d+m,h+m);return v&&w}getCenterPoint(n){const{x:r,y:i,startAngle:s,endAngle:o,innerRadius:a,outerRadius:u}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:d}=this.options,h=(s+o)/2,g=(a+u+d+c)/2;return{x:r+Math.cos(h)*g,y:i+Math.sin(h)*g}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,s=(r.offset||0)/4,o=(r.spacing||0)/2,a=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>en?Math.floor(i/en):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const u=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(u)*s,Math.sin(u)*s);const c=1-Math.sin(Math.min(on,i||0)),d=s*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,RX(n,this,d,o,a),kX(n,this,d,o,a),n.restore()}}Re($l,"id","arc"),Re($l,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Re($l,"defaultRoutes",{backgroundColor:"backgroundColor"}),Re($l,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function nE(e,t,n=t){e.lineCap=gt(n.borderCapStyle,t.borderCapStyle),e.setLineDash(gt(n.borderDash,t.borderDash)),e.lineDashOffset=gt(n.borderDashOffset,t.borderDashOffset),e.lineJoin=gt(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=gt(n.borderWidth,t.borderWidth),e.strokeStyle=gt(n.borderColor,t.borderColor)}function LX(e,t,n){e.lineTo(n.x,n.y)}function IX(e){return e.stepped?rY:e.tension||e.cubicInterpolationMode==="monotone"?iY:LX}function rE(e,t,n={}){const r=e.length,{start:i=0,end:s=r-1}=n,{start:o,end:a}=t,u=Math.max(i,o),c=Math.min(s,a),d=ia&&s>a;return{count:r,start:u,loop:t.loop,ilen:c(o+(c?a-_:_))%s,O=()=>{v!==w&&(e.lineTo(d,w),e.lineTo(d,v),e.lineTo(d,y))};for(u&&(m=i[C(0)],e.moveTo(m.x,m.y)),g=0;g<=a;++g){if(m=i[C(g)],m.skip)continue;const _=m.x,E=m.y,T=_|0;T===b?(Ew&&(w=E),d=(h*d+_)/++h):(O(),e.lineTo(_,E),b=T,h=0,v=w=E),y=E}O()}function Xg(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?FX:$X}function DX(e){return e.stepped?FY:e.tension||e.cubicInterpolationMode==="monotone"?DY:_o}function NX(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),nE(e,t.options),e.stroke(i)}function BX(e,t,n,r){const{segments:i,options:s}=t,o=Xg(t);for(const a of i)nE(e,s,a.style),e.beginPath(),o(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const zX=typeof Path2D=="function";function HX(e,t,n,r){zX&&!t.options.segment?NX(e,t,n,r):BX(e,t,n,r)}class Rs extends as{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;TY(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=jY(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],s=this.points,o=jO(this,{property:n,start:i,end:i});if(!o.length)return;const a=[],u=DX(r);let c,d;for(c=0,d=o.length;ct!=="borderDash"&&t!=="fill"});function tx(e,t,n,r){const i=e.options,{[n]:s}=e.getProps([n],r);return Math.abs(t-s)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function sE(e){return Jg[e%Jg.length]}function oE(e){return nx[e%nx.length]}function YX(e,t){return e.borderColor=sE(t),e.backgroundColor=oE(t),++t}function GX(e,t){return e.backgroundColor=e.data.map(()=>sE(t++)),t}function XX(e,t){return e.backgroundColor=e.data.map(()=>oE(t++)),t}function JX(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof ko?t=GX(n,t):i instanceof tu?t=XX(n,t):i&&(t=YX(n,t))}}function rx(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function ZX(e){return e&&(e.borderColor||e.backgroundColor)}var QX={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=e.config,{elements:s}=i;if(!n.forceOverride&&(rx(r)||ZX(i)||s&&rx(s)))return;const o=JX(e);r.forEach(o)}};function eJ(e,t,n,r,i){const s=i.samples||r;if(s>=n)return e.slice(t,t+n);const o=[],a=(n-2)/(s-2);let u=0;const c=t+n-1;let d=t,h,g,m,b,v;for(o[u++]=e[d],h=0;hm&&(m=b,g=e[C],v=C);o[u++]=g,d=v}return o[u++]=e[c],o}function tJ(e,t,n,r){let i=0,s=0,o,a,u,c,d,h,g,m,b,v;const w=[],y=t+n-1,C=e[t].x,_=e[y].x-C;for(o=t;ov&&(v=c,g=o),i=(s*i+a.x)/++s;else{const T=o-1;if(!Rt(h)&&!Rt(g)){const P=Math.min(h,g),R=Math.max(h,g);P!==m&&P!==T&&w.push({...e[P],x:i}),R!==m&&R!==T&&w.push({...e[R],x:i})}o>0&&T!==m&&w.push(e[T]),w.push(a),d=E,s=0,b=v=c,h=g=m=o}}return w}function aE(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function ix(e){e.data.datasets.forEach(t=>{aE(t)})}function nJ(e,t){const n=t.length;let r=0,i;const{iScale:s}=e,{min:o,max:a,minDefined:u,maxDefined:c}=s.getUserBounds();return u&&(r=Tn(Gi(t,s.axis,o).lo,0,n-1)),c?i=Tn(Gi(t,s.axis,a).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var rJ={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){ix(e);return}const r=e.width;e.data.datasets.forEach((i,s)=>{const{_data:o,indexAxis:a}=i,u=e.getDatasetMeta(s),c=o||i.data;if(Ll([a,e.options.indexAxis])==="y"||!u.controller.supportsDecimation)return;const d=e.scales[u.xAxisID];if(d.type!=="linear"&&d.type!=="time"||e.options.parsing)return;let{start:h,count:g}=nJ(u,c);const m=n.threshold||4*r;if(g<=m){aE(i);return}Rt(o)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(v){this._data=v}}));let b;switch(n.algorithm){case"lttb":b=eJ(c,h,g,r,n);break;case"min-max":b=tJ(c,h,g,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=b})},destroy(e){ix(e)}};function iJ(e,t,n){const r=e.segments,i=e.points,s=t.points,o=[];for(const a of r){let{start:u,end:c}=a;c=jv(u,c,i);const d=Zg(n,i[u],i[c],a.loop);if(!t.segments){o.push({source:a,target:d,start:i[u],end:i[c]});continue}const h=jO(t,d);for(const g of h){const m=Zg(n,s[g.start],s[g.end],g.loop),b=WO(a,i,m);for(const v of b)o.push({source:v,target:g,start:{[n]:sx(d,m,"start",Math.max)},end:{[n]:sx(d,m,"end",Math.min)}})}}return o}function Zg(e,t,n,r){if(r)return;let i=t[e],s=n[e];return e==="angle"&&(i=Sr(i),s=Sr(s)),{property:e,start:i,end:s}}function sJ(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,s=[];return t.segments.forEach(({start:o,end:a})=>{a=jv(o,a,i);const u=i[o],c=i[a];r!==null?(s.push({x:u.x,y:r}),s.push({x:c.x,y:r})):n!==null&&(s.push({x:n,y:u.y}),s.push({x:n,y:c.y}))}),s}function jv(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function sx(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function lE(e,t){let n=[],r=!1;return Qt(e)?(r=!0,n=e):n=sJ(e,t),n.length?new Rs({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function ox(e){return e&&e.fill!==!1}function oJ(e,t,n){let i=e[t].fill;const s=[t];let o;if(!n)return i;for(;i!==!1&&s.indexOf(i)===-1;){if(!cn(i))return i;if(o=e[i],!o)return!1;if(o.visible)return i;s.push(i),i=o.fill}return!1}function aJ(e,t,n){const r=fJ(e);if(At(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return cn(i)&&Math.floor(i)===i?lJ(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function lJ(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function uJ(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:At(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function cJ(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:At(e)?r=e.value:r=t.getBaseValue(),r}function fJ(e){const t=e.options,n=t.fill;let r=gt(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function dJ(e){const{scale:t,index:n,line:r}=e,i=[],s=r.segments,o=r.points,a=hJ(t,n);a.push(lE({x:null,y:t.bottom},r));for(let u=0;u=0;--o){const a=i[o].$filler;a&&(a.line.updateControlPoints(s,a.axis),r&&a.fill&&Up(e.ctx,a,s))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const s=r[i].$filler;ox(s)&&Up(e.ctx,s,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!ox(r)||n.drawTime!=="beforeDatasetDraw"||Up(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const cx=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},SJ=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class fx extends as{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=qt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=xn(r.font),s=i.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:u}=cx(r,s);let c,d;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(o,s,a,u)+10):(d=this.maxHeight,c=this._fitCols(o,i,a,u)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,u=this.legendHitBoxes=[],c=this.lineWidths=[0],d=i+a;let h=t;s.textAlign="left",s.textBaseline="middle";let g=-1,m=-d;return this.legendItems.forEach((b,v)=>{const w=r+n/2+s.measureText(b.text).width;(v===0||c[c.length-1]+w+2*a>o)&&(h+=d,c[c.length-(v>0?0:1)]=0,m+=d,g++),u[v]={left:0,top:m,row:g,width:w,height:i},c[c.length-1]+=w+a}),h}_fitCols(t,n,r,i){const{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,u=this.legendHitBoxes=[],c=this.columnSizes=[],d=o-t;let h=a,g=0,m=0,b=0,v=0;return this.legendItems.forEach((w,y)=>{const{itemWidth:C,itemHeight:O}=OJ(r,n,s,w,i);y>0&&m+O+2*a>d&&(h+=g+a,c.push({width:g,height:m}),b+=g+a,v++,g=m=0),u[y]={left:b,top:m,col:v,width:C,height:O},g=Math.max(g,C),m+=O+a}),h+=g,c.push({width:g,height:m}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:s}}=this,o=Sa(s,this.left,this.width);if(this.isHorizontal()){let a=0,u=zn(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,u=zn(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=o.leftForLtr(o.x(u),c.width),u+=c.width+i}else{let a=0,u=zn(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,u=zn(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=u,c.left+=this.left+i,c.left=o.leftForLtr(o.x(c.left),c.width),u+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Kd(t,this),this._draw(),qd(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:s,labels:o}=t,a=dn.color,u=Sa(t.rtl,this.left,this.width),c=xn(o.font),{padding:d}=o,h=c.size,g=h/2;let m;this.drawTitle(),i.textAlign=u.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:b,boxHeight:v,itemHeight:w}=cx(o,h),y=function(T,P,R){if(isNaN(b)||b<=0||isNaN(v)||v<0)return;i.save();const $=gt(R.lineWidth,1);if(i.fillStyle=gt(R.fillStyle,a),i.lineCap=gt(R.lineCap,"butt"),i.lineDashOffset=gt(R.lineDashOffset,0),i.lineJoin=gt(R.lineJoin,"miter"),i.lineWidth=$,i.strokeStyle=gt(R.strokeStyle,a),i.setLineDash(gt(R.lineDash,[])),o.usePointStyle){const D={radius:v*Math.SQRT2/2,pointStyle:R.pointStyle,rotation:R.rotation,borderWidth:$},j=u.xPlus(T,b/2),A=P+g;PO(i,D,j,A,o.pointStyleWidth&&b)}else{const D=P+Math.max((h-v)/2,0),j=u.leftForLtr(T,b),A=No(R.borderRadius);i.beginPath(),Object.values(A).some(U=>U!==0)?Tu(i,{x:j,y:D,w:b,h:v,radius:A}):i.rect(j,D,b,v),i.fill(),$!==0&&i.stroke()}i.restore()},C=function(T,P,R){Vo(i,R.text,T,P+w/2,c,{strikethrough:R.hidden,textAlign:u.textAlign(R.textAlign)})},O=this.isHorizontal(),_=this._computeTitleHeight();O?m={x:zn(s,this.left+d,this.right-r[0]),y:this.top+d+_,line:0}:m={x:this.left+d,y:zn(s,this.top+_+d,this.bottom-n[0].height),line:0},BO(this.ctx,t.textDirection);const E=w+d;this.legendItems.forEach((T,P)=>{i.strokeStyle=T.fontColor,i.fillStyle=T.fontColor;const R=i.measureText(T.text).width,$=u.textAlign(T.textAlign||(T.textAlign=o.textAlign)),D=b+g+R;let j=m.x,A=m.y;u.setWidth(this.width),O?P>0&&j+D+d>this.right&&(A=m.y+=E,m.line++,j=m.x=zn(s,this.left+d,this.right-r[m.line])):P>0&&A+E>this.bottom&&(j=m.x=j+n[m.line].width+d,m.line++,A=m.y=zn(s,this.top+_+d,this.bottom-n[m.line].height));const U=u.x(j);if(y(U,A,T),j=Kq($,j+b+g,O?j+D:this.right,t.rtl),C(u.x(j),A,T),O)m.x+=D+d;else if(typeof T.text!="string"){const ue=c.lineHeight;m.y+=cE(T,ue)}else m.y+=E}),zO(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=xn(n.font),i=Kn(n.padding);if(!n.display)return;const s=Sa(t.rtl,this.left,this.width),o=this.ctx,a=n.position,u=r.size/2,c=i.top+u;let d,h=this.left,g=this.width;if(this.isHorizontal())g=Math.max(...this.lineWidths),d=this.top+c,h=zn(t.align,h,this.right-g);else{const b=this.columnSizes.reduce((v,w)=>Math.max(v,w.height),0);d=c+zn(t.align,this.top,this.bottom-b-t.labels.padding-this._computeTitleHeight())}const m=zn(a,h,h+g);o.textAlign=s.textAlign($v(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,Vo(o,n.text,m,d,r)}_computeTitleHeight(){const t=this.options.title,n=xn(t.font),r=Kn(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,s;if(Yi(t,this.left,this.right)&&Yi(n,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;rs.length>o.length?s:o)),t+n.size/2+r.measureText(i).width}function MJ(e,t,n){let r=e;return typeof t.text!="string"&&(r=cE(t,n)),r}function cE(e,t){const n=e.text?e.text.length+.5:0;return t*n}function TJ(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var AJ={id:"legend",_element:fx,start(e,t,n){const r=e.legend=new fx({ctx:e.ctx,options:n,chart:e});Un.configure(e,r,n),Un.addBox(e,r)},stop(e){Un.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Un.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:s,useBorderRadius:o,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(u=>{const c=u.controller.getStyle(n?0:void 0),d=Kn(c.borderWidth);return{text:t[u.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!u.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:u.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Vv extends as{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Qt(r.text)?r.text.length:1;this._padding=Kn(r.padding);const s=i*xn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:s,options:o}=this,a=o.align;let u=0,c,d,h;return this.isHorizontal()?(d=zn(a,r,s),h=n+t,c=s-r):(o.position==="left"?(d=r+t,h=zn(a,i,n),u=on*-.5):(d=s-t,h=zn(a,n,i),u=on*.5),c=i-n),{titleX:d,titleY:h,maxWidth:c,rotation:u}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=xn(n.font),s=r.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:u,rotation:c}=this._drawArgs(s);Vo(t,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:c,textAlign:$v(n.align),textBaseline:"middle",translation:[o,a]})}}function PJ(e,t){const n=new Vv({ctx:e.ctx,options:t,chart:e});Un.configure(e,n,t),Un.addBox(e,n),e.titleBlock=n}var RJ={id:"title",_element:Vv,start(e,t,n){PJ(e,n)},stop(e){const t=e.titleBlock;Un.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Un.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const hf=new WeakMap;var kJ={id:"subtitle",start(e,t,n){const r=new Vv({ctx:e.ctx,options:n,chart:e});Un.configure(e,r,n),Un.addBox(e,r),hf.set(e,r)},stop(e){Un.removeBox(e,hf.get(e)),hf.delete(e)},beforeUpdate(e,t,n){const r=hf.get(e);Un.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Fl={average(e){if(!e.length)return!1;let t,n,r=0,i=0,s=0;for(t=0,n=e.length;t-1?e.split(` +`):e}function LJ(e,t){const{element:n,datasetIndex:r,index:i}=t,s=e.getDatasetMeta(r).controller,{label:o,value:a}=s.getLabelAndValue(i);return{chart:e,label:o,parsed:s.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:s.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function dx(e,t){const n=e.chart.ctx,{body:r,footer:i,title:s}=e,{boxWidth:o,boxHeight:a}=t,u=xn(t.bodyFont),c=xn(t.titleFont),d=xn(t.footerFont),h=s.length,g=i.length,m=r.length,b=Kn(t.padding);let v=b.height,w=0,y=r.reduce((_,E)=>_+E.before.length+E.lines.length+E.after.length,0);if(y+=e.beforeBody.length+e.afterBody.length,h&&(v+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),y){const _=t.displayColors?Math.max(a,u.lineHeight):u.lineHeight;v+=m*_+(y-m)*u.lineHeight+(y-1)*t.bodySpacing}g&&(v+=t.footerMarginTop+g*d.lineHeight+(g-1)*t.footerSpacing);let C=0;const O=function(_){w=Math.max(w,n.measureText(_).width+C)};return n.save(),n.font=c.string,Wt(e.title,O),n.font=u.string,Wt(e.beforeBody.concat(e.afterBody),O),C=t.displayColors?o+2+t.boxPadding:0,Wt(r,_=>{Wt(_.before,O),Wt(_.lines,O),Wt(_.after,O)}),C=0,n.font=d.string,Wt(e.footer,O),n.restore(),w+=b.width,{width:w,height:v}}function IJ(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function $J(e,t,n,r){const{x:i,width:s}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+s+o>t.width||e==="right"&&i-s-o<0)return!0}function FJ(e,t,n,r){const{x:i,width:s}=n,{width:o,chartArea:{left:a,right:u}}=e;let c="center";return r==="center"?c=i<=(a+u)/2?"left":"right":i<=s/2?c="left":i>=o-s/2&&(c="right"),$J(c,e,t,n)&&(c="center"),c}function hx(e,t,n){const r=n.yAlign||t.yAlign||IJ(e,n);return{xAlign:n.xAlign||t.xAlign||FJ(e,t,n,r),yAlign:r}}function DJ(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function NJ(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function px(e,t,n,r){const{caretSize:i,caretPadding:s,cornerRadius:o}=e,{xAlign:a,yAlign:u}=n,c=i+s,{topLeft:d,topRight:h,bottomLeft:g,bottomRight:m}=No(o);let b=DJ(t,a);const v=NJ(t,u,c);return u==="center"?a==="left"?b+=c:a==="right"&&(b-=c):a==="left"?b-=Math.max(d,g)+i:a==="right"&&(b+=Math.max(h,m)+i),{x:Tn(b,0,r.width-t.width),y:Tn(v,0,r.height-t.height)}}function pf(e,t,n){const r=Kn(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function gx(e){return gi([],Vi(e))}function BJ(e,t,n){return Zs(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function mx(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const fE={beforeTitle:Bi,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?fE[t].call(n,r):i}class Qg extends as{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,s=new VO(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=BJ(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=ir(r,"beforeTitle",this,t),s=ir(r,"title",this,t),o=ir(r,"afterTitle",this,t);let a=[];return a=gi(a,Vi(i)),a=gi(a,Vi(s)),a=gi(a,Vi(o)),a}getBeforeBody(t,n){return gx(ir(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Wt(t,s=>{const o={before:[],lines:[],after:[]},a=mx(r,s);gi(o.before,Vi(ir(a,"beforeLabel",this,s))),gi(o.lines,ir(a,"label",this,s)),gi(o.after,Vi(ir(a,"afterLabel",this,s))),i.push(o)}),i}getAfterBody(t,n){return gx(ir(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=ir(r,"beforeFooter",this,t),s=ir(r,"footer",this,t),o=ir(r,"afterFooter",this,t);let a=[];return a=gi(a,Vi(i)),a=gi(a,Vi(s)),a=gi(a,Vi(o)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],s=[],o=[];let a=[],u,c;for(u=0,c=n.length;ut.filter(d,h,g,r))),t.itemSort&&(a=a.sort((d,h)=>t.itemSort(d,h,r))),Wt(a,d=>{const h=mx(t.callbacks,d);i.push(ir(h,"labelColor",this,d)),s.push(ir(h,"labelPointStyle",this,d)),o.push(ir(h,"labelTextColor",this,d))}),this.labelColors=i,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let s,o=[];if(!i.length)this.opacity!==0&&(s={opacity:0});else{const a=Fl[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const u=this._size=dx(this,r),c=Object.assign({},a,u),d=hx(this.chart,r,c),h=px(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,s={opacity:1,x:h.x,y:h.y,width:u.width,height:u.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const s=this.getCaretPosition(t,r,i);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:s}=this,{caretSize:o,cornerRadius:a}=r,{topLeft:u,topRight:c,bottomLeft:d,bottomRight:h}=No(a),{x:g,y:m}=t,{width:b,height:v}=n;let w,y,C,O,_,E;return s==="center"?(_=m+v/2,i==="left"?(w=g,y=w-o,O=_+o,E=_-o):(w=g+b,y=w+o,O=_-o,E=_+o),C=w):(i==="left"?y=g+Math.max(u,d)+o:i==="right"?y=g+b-Math.max(c,h)-o:y=this.caretX,s==="top"?(O=m,_=O-o,w=y-o,C=y+o):(O=m+v,_=O+o,w=y+o,C=y-o),E=O),{x1:w,x2:y,x3:C,y1:O,y2:_,y3:E}}drawTitle(t,n,r){const i=this.title,s=i.length;let o,a,u;if(s){const c=Sa(r.rtl,this.x,this.width);for(t.x=pf(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=xn(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,u=0;uC!==0)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,Tu(t,{x:v,y:b,w:c,h:u,radius:y}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Tu(t,{x:w,y:b+1,w:c-2,h:u-2,radius:y}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(v,b,c,u),t.strokeRect(v,b,c,u),t.fillStyle=o.backgroundColor,t.fillRect(w,b+1,c-2,u-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:s,bodyAlign:o,displayColors:a,boxHeight:u,boxWidth:c,boxPadding:d}=r,h=xn(r.bodyFont);let g=h.lineHeight,m=0;const b=Sa(r.rtl,this.x,this.width),v=function(R){n.fillText(R,b.x(t.x+m),t.y+g/2),t.y+=g+s},w=b.textAlign(o);let y,C,O,_,E,T,P;for(n.textAlign=o,n.textBaseline="middle",n.font=h.string,t.x=pf(this,w,r),n.fillStyle=r.bodyColor,Wt(this.beforeBody,v),m=a&&w!=="right"?o==="center"?c/2+d:c+2+d:0,_=0,T=i.length;_0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,s=r&&r.y;if(i||s){const o=Fl[t.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=dx(this,t),u=Object.assign({},o,this._size),c=hx(n,t,u),d=px(t,u,c,n);(i._to!==d.x||s._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=Kn(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(s,t,i,n),BO(t,n.textDirection),s.y+=o.top,this.drawTitle(s,t,n),this.drawBody(s,t,n),this.drawFooter(s,t,n),zO(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:u})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[u],index:u}}),s=!ld(r,i),o=this._positionChanged(i,n);(s||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,s=this._active||[],o=this._getActiveElements(t,s,n,r),a=this._positionChanged(o,t),u=n||!ld(o,s)||a;return u&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),u}_getActiveElements(t,n,r,i){const s=this.options;if(t.type==="mouseout")return[];if(!i)return n;const o=this.chart.getElementsAtEventForMode(t,s.mode,s,r);return s.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:s}=this,o=Fl[s.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}}Re(Qg,"positioners",Fl);var zJ={id:"tooltip",_element:Qg,positioners:Fl,afterInit(e,t,n){n&&(e.tooltip=new Qg({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:fE},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},HJ=Object.freeze({__proto__:null,Colors:QX,Decimation:rJ,Filler:CJ,Legend:AJ,SubTitle:kJ,Title:RJ,Tooltip:zJ});const WJ=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function jJ(e,t,n,r){const i=e.indexOf(t);if(i===-1)return WJ(e,t,n,r);const s=e.lastIndexOf(t);return i!==s?n:i}const VJ=(e,t)=>e===null?null:Tn(Math.round(e),0,t);function vx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Re(em,"id","category"),Re(em,"defaults",{ticks:{callback:vx}});function UJ(e,t){const n=[],{bounds:i,step:s,min:o,max:a,precision:u,count:c,maxTicks:d,maxDigits:h,includeBounds:g}=e,m=s||1,b=d-1,{min:v,max:w}=t,y=!Rt(o),C=!Rt(a),O=!Rt(c),_=(w-v)/(h+1);let E=fw((w-v)/b/m)*m,T,P,R,$;if(E<1e-14&&!y&&!C)return[{value:v},{value:w}];$=Math.ceil(w/E)-Math.floor(v/E),$>b&&(E=fw($*E/b/m)*m),Rt(u)||(T=Math.pow(10,u),E=Math.ceil(E*T)/T),i==="ticks"?(P=Math.floor(v/E)*E,R=Math.ceil(w/E)*E):(P=v,R=w),y&&C&&s&&Bq((a-o)/s,E/1e3)?($=Math.round(Math.min((a-o)/E,d)),E=(a-o)/$,P=o,R=a):O?(P=y?o:P,R=C?a:R,$=c-1,E=(R-P)/$):($=(R-P)/E,Zl($,Math.round($),E/1e3)?$=Math.round($):$=Math.ceil($));const D=Math.max(dw(E),dw(P));T=Math.pow(10,Rt(u)?D:u),P=Math.round(P*T)/T,R=Math.round(R*T)/T;let j=0;for(y&&(g&&P!==o?(n.push({value:o}),Pa)break;n.push({value:A})}return C&&g&&R!==a?n.length&&Zl(n[n.length-1].value,a,bx(a,_,e))?n[n.length-1].value=a:n.push({value:a}):(!C||R===a)&&n.push({value:R}),n}function bx(e,t,{horizontal:n,minRotation:r}){const i=ri(r),s=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/s,o)}class gd extends Jo{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Rt(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:s}=this;const o=u=>i=n?i:u,a=u=>s=r?s:u;if(t){const u=xi(i),c=xi(s);u<0&&c<0?a(0):u>0&&c>0&&o(0)}if(i===s){let u=s===0?1:Math.abs(s*.05);a(s+u),t||o(i-u)}this.min=i,this.max=s}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,o=UJ(i,s);return t.bounds==="ticks"&&wO(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return qu(t,this.chart.options.locale,this.options.ticks.format)}}class tm extends gd{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=cn(t)?t:0,this.max=cn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=ri(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Re(tm,"id","linear"),Re(tm,"defaults",{ticks:{callback:Ud.formatters.numeric}});const Pu=e=>Math.floor(Ps(e)),mo=(e,t)=>Math.pow(10,Pu(e)+t);function yx(e){return e/Math.pow(10,Pu(e))===1}function _x(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function KJ(e,t){const n=t-e;let r=Pu(n);for(;_x(e,t,r)>10;)r++;for(;_x(e,t,r)<10;)r--;return Math.min(r,Pu(e))}function qJ(e,{min:t,max:n}){t=wr(e.min,t);const r=[],i=Pu(t);let s=KJ(t,n),o=s<0?Math.pow(10,Math.abs(s)):1;const a=Math.pow(10,s),u=i>s?Math.pow(10,i):0,c=Math.round((t-u)*o)/o,d=Math.floor((t-u)/a/10)*a*10;let h=Math.floor((c-d)/Math.pow(10,s)),g=wr(e.min,Math.round((u+d+h*Math.pow(10,s))*o)/o);for(;g=10?h=h<15?15:20:h++,h>=20&&(s++,h=2,o=s>=0?1:o),g=Math.round((u+d+h*Math.pow(10,s))*o)/o;const m=wr(e.max,g);return r.push({value:m,major:yx(m),significand:h}),r}class nm extends Jo{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=gd.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return cn(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=cn(t)?Math.max(0,t):null,this.max=cn(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!cn(this._userMin)&&(this.min=t===mo(this.min,0)?mo(this.min,-1):mo(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const s=a=>r=t?r:a,o=a=>i=n?i:a;r===i&&(r<=0?(s(1),o(10)):(s(mo(r,-1)),o(mo(i,1)))),r<=0&&s(mo(i,-1)),i<=0&&o(mo(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=qJ(n,this);return t.bounds==="ticks"&&wO(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":qu(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ps(t),this._valueRange=Ps(this.max)-Ps(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ps(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Re(nm,"id","logarithmic"),Re(nm,"defaults",{ticks:{callback:Ud.formatters.logarithmic,major:{enabled:!0}}});function rm(e){const t=e.ticks;if(t.display&&e.display){const n=Kn(t.backdropPadding);return gt(t.font&&t.font.size,dn.font.size)+n.height}return 0}function YJ(e,t,n){return n=Qt(n)?n:[n],{w:nY(e,t.string,n),h:n.length*t.lineHeight}}function wx(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function GJ(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],s=e._pointLabels.length,o=e.options.pointLabels,a=o.centerPointLabels?on/s:0;for(let u=0;ut.r&&(a=(r.end-t.r)/s,e.r=Math.max(e.r,t.r+a)),i.startt.b&&(u=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+u))}function JJ(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:s,padding:o,size:a}=n,u=e.getPointPosition(t,r+i+o,s),c=Math.round(Lv(Sr(u.angle+fn))),d=nZ(u.y,a.h,c),h=eZ(c),g=tZ(u.x,a.w,h);return{visible:!0,x:u.x,y:d,textAlign:h,left:g,top:d,right:g+a.w,bottom:d+a.h}}function ZJ(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:s}=e;return!(Xi({x:n,y:r},t)||Xi({x:n,y:s},t)||Xi({x:i,y:r},t)||Xi({x:i,y:s},t))}function QJ(e,t,n){const r=[],i=e._pointLabels.length,s=e.options,{centerPointLabels:o,display:a}=s.pointLabels,u={extra:rm(s)/2,additionalAngle:o?on/i:0};let c;for(let d=0;d270||n<90)&&(e-=t),e}function rZ(e,t,n){const{left:r,top:i,right:s,bottom:o}=n,{backdropColor:a}=t;if(!Rt(a)){const u=No(t.borderRadius),c=Kn(t.backdropPadding);e.fillStyle=a;const d=r-c.left,h=i-c.top,g=s-r+c.width,m=o-i+c.height;Object.values(u).some(b=>b!==0)?(e.beginPath(),Tu(e,{x:d,y:h,w:g,h:m,radius:u}),e.fill()):e.fillRect(d,h,g,m)}}function iZ(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const s=e._pointLabelItems[i];if(!s.visible)continue;const o=r.setContext(e.getPointLabelContext(i));rZ(n,o,s);const a=xn(o.font),{x:u,y:c,textAlign:d}=s;Vo(n,e._pointLabels[i],u,c+a.lineHeight/2,a,{color:o.color,textAlign:d,textBaseline:"middle"})}}function dE(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,en);else{let s=e.getPointPosition(0,t);i.moveTo(s.x,s.y);for(let o=1;o{const i=qt(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?GJ(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=en/(this._pointLabels.length||1),r=this.options.startAngle||0;return Sr(t*n+ri(r))}getDistanceFromCenterForValue(t){if(Rt(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Rt(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(h!==0){u=this.getDistanceFromCenterForValue(d.value);const g=this.getContext(h),m=i.setContext(g),b=s.setContext(g);sZ(this,m,u,o,b)}}),r.display){for(t.save(),a=o-1;a>=0;a--){const d=r.setContext(this.getPointLabelContext(a)),{color:h,lineWidth:g}=d;!g||!h||(t.lineWidth=g,t.strokeStyle=h,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,u=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,u),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,u)=>{if(u===0&&!n.reverse)return;const c=r.setContext(this.getContext(u)),d=xn(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[u].value),c.showLabelBackdrop){t.font=d.string,o=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const h=Kn(c.backdropPadding);t.fillRect(-o/2-h.left,-s-d.size/2-h.top,o+h.width,d.size+h.height)}Vo(t,a.label,0,-s,d,{color:c.color})}),t.restore()}drawTitle(){}}Re(Dl,"id","radialLinear"),Re(Dl,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ud.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Re(Dl,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Re(Dl,"descriptors",{angleLines:{_fallback:"grid"}});const Gd={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},or=Object.keys(Gd);function aZ(e,t){return e-t}function xx(e,t){if(Rt(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:s}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),cn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(Wa(s)||s===!0)?n.startOf(o,"isoWeek",s):n.startOf(o,i)),+o)}function Cx(e,t,n,r){const i=or.length;for(let s=or.indexOf(e);s=or.indexOf(n);s--){const o=or[s];if(Gd[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return or[n?or.indexOf(n):0]}function uZ(e){for(let t=or.indexOf(e)+1,n=or.length;t=t?n[r]:n[i];e[s]=!0}}function cZ(e,t,n,r){const i=e._adapter,s=+i.startOf(t[0].value,r),o=t[t.length-1].value;let a,u;for(a=s;a<=o;a=+i.add(a,1,r))u=n[a],u>=0&&(t[u].major=!0);return t}function Ox(e,t,n){const r=[],i={},s=t.length;let o,a;for(o=0;o+t.value))}initOffsets(t=[]){let n=0,r=0,i,s;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,s=this.getDecimalForValue(t[t.length-1]),t.length===1?r=s:r=(s-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=Tn(n,0,o),r=Tn(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,s=i.time,o=s.unit||Cx(s.minUnit,n,r,this._getLabelCapacity(n)),a=gt(i.ticks.stepSize,1),u=o==="week"?s.isoWeekday:!1,c=Wa(u)||u===!0,d={};let h=n,g,m;if(c&&(h=+t.startOf(h,"isoWeek",u)),h=+t.startOf(h,c?"day":o),t.diff(r,n,o)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+o);const b=i.ticks.source==="data"&&this.getDataTimestamps();for(g=h,m=0;gv-w).map(v=>+v)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,s=this._unit,o=n||i[s];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const s=this.options,o=s.ticks.callback;if(o)return qt(o,[t,n,r],this);const a=s.time.displayFormats,u=this._unit,c=this._majorUnit,d=u&&a[u],h=c&&a[c],g=r[n],m=c&&h&&g&&g.major;return this._adapter.format(t,i||(m?h:d))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Gi(e,"pos",t)),{pos:s,time:a}=e[r],{pos:o,time:u}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Gi(e,"time",t)),{time:s,pos:a}=e[r],{time:o,pos:u}=e[i]);const c=o-s;return c?a+(u-a)*(t-s)/c:a}class im extends Ru{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=gf(n,this.min),this._tableRange=gf(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],s=[];let o,a,u,c,d;for(o=0,a=t.length;o=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,a=i.length;o{n=new bi(r,{type:"pie",data:{labels:["Soil C (0-30 cm)","Nitrous Oxide (Fertiliser)","Nitrous Oxide (Mineralised)","Nitrous Oxide (Residues)","Nitrous Oxide (Indirect)","Nitrous Oxide (Urine)","Methane (Animal)"],datasets:[{label:" ",backgroundColor:["rgb(44,55,166)","rgb(255, 99, 132)","rgb(54, 162, 235)","rgb(255, 205, 86)","rgb(79,73,79)","rgb(206,58,31)","rgb(217,109,62)"],data:[t.data.co2[t.data.years.length-1],t.data.n2o.fert[t.data.years.length-1],t.data.n2o.min[t.data.years.length-1],t.data.n2o.res[t.data.years.length-1],t.data.n2o.indirect[t.data.years.length-1],t.data.n2o.urine[t.data.years.length-1],t.data.ch4.animal[t.data.years.length-1]]}]},hoverOffset:1,options:{responsive:!0,maintainAspectRatio:!0}})};return Lt(()=>{r=document.getElementById("pieChartCanvas"),i()}),Xs(()=>{n.data={labels:["Soil C (0-30 cm)","Nitrous Oxide (Fertiliser)","Nitrous Oxide (Mineralised)","Nitrous Oxide (Residues)","Nitrous Oxide (Indirect)","Nitrous Oxide (Urine)","Methane (Animal)"],datasets:[{label:" ",backgroundColor:["rgb(44,55,166)","rgb(255, 99, 132)","rgb(54, 162, 235)","rgb(255, 205, 86)","rgb(79,73,79)","rgb(206,58,31)","rgb(217,109,62)"],data:[t.data.co2[t.data.years.length-1],t.data.n2o.fert[t.data.years.length-1],t.data.n2o.min[t.data.years.length-1],t.data.n2o.res[t.data.years.length-1],t.data.n2o.indirect[t.data.years.length-1],t.data.n2o.urine[t.data.years.length-1],t.data.ch4.animal[t.data.years.length-1]]}]},n.update()}),(s,o)=>(K(),ve(it,null,[I("div",hZ,[I("h3",pZ,pt(t.label),1)]),gZ],64))}};const vZ=I("h3",null,"Simulation Results",-1),bZ=I("br",null,null,-1),yZ=I("br",null,null,-1),_Z=I("sub",null,"2",-1),wZ=I("br",null,null,-1),xZ=I("sub",null,"2",-1),CZ=I("br",null,null,-1),SZ=I("sub",null,"2",-1),OZ=I("br",null,null,-1),EZ=I("sub",null,"2",-1),MZ=I("br",null,null,-1),TZ=I("sub",null,"2",-1),AZ=I("br",null,null,-1),PZ=I("sub",null,"4",-1),RZ=I("br",null,null,-1),kZ=I("div",{class:"table-error"},null,-1),LZ={__name:"ResultsTable",props:["results","initialOC"],setup(e){const t=e,n=z(()=>{const r=ut(t.results),i=[];i.push({year:r.years[0]-1,oc:t.initialOC});for(let s=0;s{const s=nO,o=tO,a=ci;return K(),ve(it,null,[vZ,H(a,null,{default:B(()=>[H(o,{data:n.value,border:"",style:{width:"100%"}},{default:B(()=>[H(s,{prop:"year",label:"Year"}),H(s,{prop:"crop",label:"Crop"}),H(s,{prop:"rain",label:"Rain"}),H(s,{prop:"yields",label:"Yield"}),H(s,{prop:"biomass","min-width":"90px"},{header:B(()=>[le("Biomass")]),_:1}),H(s,{prop:"nitrogen",label:"Fert"}),H(s,{prop:"urine",label:"Urine"}),H(s,{prop:"oc","min-width":"100px"},{header:B(()=>[le("OC"),bZ,le("(0-10 cm)")]),_:1}),H(s,{prop:"co2","min-width":"100px"},{header:B(()=>[le("Soil C "),yZ,le("(0-30 cm)")]),_:1}),H(s,{prop:"n2o_fert","min-width":"100px"},{header:B(()=>[le("N"),_Z,le("O"),wZ,le("(Fertiliser)")]),_:1}),H(s,{prop:"n2o_min","min-width":"120px"},{header:B(()=>[le("N"),xZ,le("O"),CZ,le("(Mineralised)")]),_:1}),H(s,{prop:"n2o_res","min-width":"110px"},{header:B(()=>[le("N"),SZ,le("O"),OZ,le("(Residues)")]),_:1}),H(s,{prop:"n2o_indirect","min-width":"100px"},{header:B(()=>[le("N"),EZ,le("O"),MZ,le("(Indirect)")]),_:1}),H(s,{prop:"n2o_urine","min-width":"90px"},{header:B(()=>[le("N"),TZ,le("O"),AZ,le("(Urine)")]),_:1}),H(s,{prop:"ch4_animal","min-width":"90px"},{header:B(()=>[le("CH"),PZ,RZ,le("(Animal)")]),_:1}),H(s,{prop:"total",label:"TOTAL"})]),_:1},8,["data"]),kZ]),_:1})],64)}}},IZ=I("h3",null,"Table of management",-1),$Z=I("div",{class:"table-error"},null,-1),FZ={__name:"ManagementTable",props:["results"],setup(e){const t=e,n=z(()=>{const r=ut(t.results),i=[],s=["crop","nitrogen","stubble","grazing"];for(let o of s){const a={};a.year=o.charAt(0).toUpperCase()+o.slice(1);for(let u=0;u{const s=nO,o=tO,a=ci;return K(),ve(it,null,[IZ,H(a,null,{default:B(()=>[H(o,{data:n.value,border:"",style:{width:"100%"}},{default:B(()=>[H(s,{prop:"year",label:"Year",width:"100px"}),(K(!0),ve(it,null,En(e.results.years,u=>(K(),Te(s,{prop:`'${u}'`},{header:B(()=>[le(pt(u),1)]),_:2},1032,["prop"]))),256))]),_:1},8,["data"]),$Z]),_:1})],64)}}},DZ=I("div",{class:"grid"},[I("h3",{class:"justify-self-center text-3xl"},"Results")],-1),NZ=I("div",null,[I("canvas",{id:"lineChartCanvas",style:{position:"relative",height:"40vh",width:"80vw"}})],-1),BZ={__name:"LineChart",props:["label","xAxis","data"],setup(e){const t=e;let n,r;const i=({min:s,max:o})=>{n=new bi(r,{type:"line",data:{labels:t.xAxis,datasets:[{label:t.label,backgroundColor:"rgba(220,220,220,0.26)",borderColor:"rgb(53,148,126)",data:t.data}]},options:{responsive:!0,maintainAspectRatio:!1,lineTension:0,scales:{y:{ticks:{beginAtZero:!1,padding:25},suggestedMin:s,suggestedMax:o},x:{}}}})};return Lt(()=>{r=document.getElementById("lineChartCanvas");const s=t.data[0]+t.data[0]*.01,o=t.data[t.data.length-1]-t.data[t.data.length-1]*.01;i({min:o,max:s,data:t.data})}),Xs(()=>{const s=t.data[0]+t.data[0]*.01,o=t.data[t.data.length-1]-t.data[t.data.length-1]*.01;n.options={responsive:!0,maintainAspectRatio:!0,lineTension:0,scales:{y:{ticks:{beginAtZero:!1,padding:25},suggestedMin:o,suggestedMax:s},x:{}}},n.data={labels:t.xAxis,datasets:[{label:t.label,backgroundColor:"rgba(220,220,220,0.26)",borderColor:"rgb(53,148,126)",data:t.data}]},n.update()}),(s,o)=>(K(),ve(it,null,[DZ,NZ],64))}};var md={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */md.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,d="__lodash_placeholder__",h=1,g=2,m=4,b=1,v=2,w=1,y=2,C=4,O=8,_=16,E=32,T=64,P=128,R=256,$=512,D=30,j="...",A=800,U=16,ue=1,ce=2,ne=3,Q=1/0,ie=9007199254740991,ee=17976931348623157e292,_e=0/0,Ee=4294967295,Z=Ee-1,Ge=Ee>>>1,De=[["ary",P],["bind",w],["bindKey",y],["curry",O],["curryRight",_],["flip",$],["partial",E],["partialRight",T],["rearg",R]],Ze="[object Arguments]",Je="[object Array]",Y="[object AsyncFunction]",oe="[object Boolean]",de="[object Date]",Oe="[object DOMException]",We="[object Error]",F="[object Function]",W="[object GeneratorFunction]",q="[object Map]",se="[object Number]",pe="[object Null]",me="[object Object]",Ae="[object Promise]",Se="[object Proxy]",Ce="[object RegExp]",ge="[object Set]",Ne="[object String]",Pe="[object Symbol]",re="[object Undefined]",Me="[object WeakMap]",Ve="[object WeakSet]",at="[object ArrayBuffer]",ot="[object DataView]",Bt="[object Float32Array]",Le="[object Float64Array]",Ue="[object Int8Array]",ct="[object Int16Array]",et="[object Int32Array]",xt="[object Uint8Array]",St="[object Uint8ClampedArray]",Ft="[object Uint16Array]",te="[object Uint32Array]",we=/\b__p \+= '';/g,Ye=/\b(__p \+=) '' \+/g,ft=/(__e\(.*?\)|\b__t\)) \+\n'';/g,nn=/&(?:amp|lt|gt|quot|#39);/g,an=/[&<>"']/g,hr=RegExp(nn.source),Kr=RegExp(an.source),Zn=/<%-([\s\S]+?)%>/g,nl=/<%([\s\S]+?)%>/g,Dn=/<%=([\s\S]+?)%>/g,Mi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,OE=/^\w*$/,EE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qd=/[\\^$.*+?()[\]{}|]/g,ME=RegExp(Qd.source),eh=/^\s+/,TE=/\s/,AE=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,PE=/\{\n\/\* \[wrapped with (.+)\] \*/,RE=/,? & /,kE=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,LE=/[()=,{}\[\]\/\s]/,IE=/\\(\\)?/g,$E=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kv=/\w*$/,FE=/^[-+]0x[0-9a-f]+$/i,DE=/^0b[01]+$/i,NE=/^\[object .+?Constructor\]$/,BE=/^0o[0-7]+$/i,zE=/^(?:0|[1-9]\d*)$/,HE=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gu=/($^)/,WE=/['\n\r\u2028\u2029\\]/g,Xu="\\ud800-\\udfff",jE="\\u0300-\\u036f",VE="\\ufe20-\\ufe2f",UE="\\u20d0-\\u20ff",qv=jE+VE+UE,Yv="\\u2700-\\u27bf",Gv="a-z\\xdf-\\xf6\\xf8-\\xff",KE="\\xac\\xb1\\xd7\\xf7",qE="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",YE="\\u2000-\\u206f",GE=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Xv="A-Z\\xc0-\\xd6\\xd8-\\xde",Jv="\\ufe0e\\ufe0f",Zv=KE+qE+YE+GE,th="['’]",XE="["+Xu+"]",Qv="["+Zv+"]",Ju="["+qv+"]",eb="\\d+",JE="["+Yv+"]",tb="["+Gv+"]",nb="[^"+Xu+Zv+eb+Yv+Gv+Xv+"]",nh="\\ud83c[\\udffb-\\udfff]",ZE="(?:"+Ju+"|"+nh+")",rb="[^"+Xu+"]",rh="(?:\\ud83c[\\udde6-\\uddff]){2}",ih="[\\ud800-\\udbff][\\udc00-\\udfff]",Zo="["+Xv+"]",ib="\\u200d",sb="(?:"+tb+"|"+nb+")",QE="(?:"+Zo+"|"+nb+")",ob="(?:"+th+"(?:d|ll|m|re|s|t|ve))?",ab="(?:"+th+"(?:D|LL|M|RE|S|T|VE))?",lb=ZE+"?",ub="["+Jv+"]?",eM="(?:"+ib+"(?:"+[rb,rh,ih].join("|")+")"+ub+lb+")*",tM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",cb=ub+lb+eM,rM="(?:"+[JE,rh,ih].join("|")+")"+cb,iM="(?:"+[rb+Ju+"?",Ju,rh,ih,XE].join("|")+")",sM=RegExp(th,"g"),oM=RegExp(Ju,"g"),sh=RegExp(nh+"(?="+nh+")|"+iM+cb,"g"),aM=RegExp([Zo+"?"+tb+"+"+ob+"(?="+[Qv,Zo,"$"].join("|")+")",QE+"+"+ab+"(?="+[Qv,Zo+sb,"$"].join("|")+")",Zo+"?"+sb+"+"+ob,Zo+"+"+ab,nM,tM,eb,rM].join("|"),"g"),lM=RegExp("["+ib+Xu+qv+Jv+"]"),uM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cM=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],fM=-1,Gt={};Gt[Bt]=Gt[Le]=Gt[Ue]=Gt[ct]=Gt[et]=Gt[xt]=Gt[St]=Gt[Ft]=Gt[te]=!0,Gt[Ze]=Gt[Je]=Gt[at]=Gt[oe]=Gt[ot]=Gt[de]=Gt[We]=Gt[F]=Gt[q]=Gt[se]=Gt[me]=Gt[Ce]=Gt[ge]=Gt[Ne]=Gt[Me]=!1;var Ut={};Ut[Ze]=Ut[Je]=Ut[at]=Ut[ot]=Ut[oe]=Ut[de]=Ut[Bt]=Ut[Le]=Ut[Ue]=Ut[ct]=Ut[et]=Ut[q]=Ut[se]=Ut[me]=Ut[Ce]=Ut[ge]=Ut[Ne]=Ut[Pe]=Ut[xt]=Ut[St]=Ut[Ft]=Ut[te]=!0,Ut[We]=Ut[F]=Ut[Me]=!1;var dM={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},hM={"&":"&","<":"<",">":">",'"':""","'":"'"},pM={"&":"&","<":"<",">":">",""":'"',"'":"'"},gM={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mM=parseFloat,vM=parseInt,fb=typeof Zt=="object"&&Zt&&Zt.Object===Object&&Zt,bM=typeof self=="object"&&self&&self.Object===Object&&self,Rn=fb||bM||Function("return this")(),oh=t&&!t.nodeType&&t,Qs=oh&&!0&&e&&!e.nodeType&&e,db=Qs&&Qs.exports===oh,ah=db&&fb.process,Tr=function(){try{var G=Qs&&Qs.require&&Qs.require("util").types;return G||ah&&ah.binding&&ah.binding("util")}catch{}}(),hb=Tr&&Tr.isArrayBuffer,pb=Tr&&Tr.isDate,gb=Tr&&Tr.isMap,mb=Tr&&Tr.isRegExp,vb=Tr&&Tr.isSet,bb=Tr&&Tr.isTypedArray;function pr(G,fe,ae){switch(ae.length){case 0:return G.call(fe);case 1:return G.call(fe,ae[0]);case 2:return G.call(fe,ae[0],ae[1]);case 3:return G.call(fe,ae[0],ae[1],ae[2])}return G.apply(fe,ae)}function yM(G,fe,ae,Be){for(var dt=-1,It=G==null?0:G.length;++dt-1}function lh(G,fe,ae){for(var Be=-1,dt=G==null?0:G.length;++Be-1;);return ae}function Eb(G,fe){for(var ae=G.length;ae--&&Qo(fe,G[ae],0)>-1;);return ae}function TM(G,fe){for(var ae=G.length,Be=0;ae--;)G[ae]===fe&&++Be;return Be}var AM=dh(dM),PM=dh(hM);function RM(G){return"\\"+gM[G]}function kM(G,fe){return G==null?n:G[fe]}function ea(G){return lM.test(G)}function LM(G){return uM.test(G)}function IM(G){for(var fe,ae=[];!(fe=G.next()).done;)ae.push(fe.value);return ae}function mh(G){var fe=-1,ae=Array(G.size);return G.forEach(function(Be,dt){ae[++fe]=[dt,Be]}),ae}function Mb(G,fe){return function(ae){return G(fe(ae))}}function cs(G,fe){for(var ae=-1,Be=G.length,dt=0,It=[];++ae-1}function wT(l,f){var p=this.__data__,x=gc(p,l);return x<0?(++this.size,p.push([l,f])):p[x][1]=f,this}Ti.prototype.clear=vT,Ti.prototype.delete=bT,Ti.prototype.get=yT,Ti.prototype.has=_T,Ti.prototype.set=wT;function Ai(l){var f=-1,p=l==null?0:l.length;for(this.clear();++f=f?l:f)),l}function kr(l,f,p,x,M,L){var N,V=f&h,J=f&g,be=f&m;if(p&&(N=M?p(l,x,M,L):p(l)),N!==n)return N;if(!ln(l))return l;var ye=ht(l);if(ye){if(N=OA(l),!V)return Qn(l,N)}else{var xe=Bn(l),$e=xe==F||xe==W;if(ms(l))return u0(l,V);if(xe==me||xe==Ze||$e&&!M){if(N=J||$e?{}:T0(l),!V)return J?pA(l,DT(N,l)):hA(l,Bb(N,l))}else{if(!Ut[xe])return M?l:{};N=EA(l,xe,V)}}L||(L=new Yr);var je=L.get(l);if(je)return je;L.set(l,N),ry(l)?l.forEach(function(rt){N.add(kr(rt,f,p,rt,l,L))}):ty(l)&&l.forEach(function(rt,Ot){N.set(Ot,kr(rt,f,p,Ot,l,L))});var nt=be?J?Wh:Hh:J?tr:On,_t=ye?n:nt(l);return Ar(_t||l,function(rt,Ot){_t&&(Ot=rt,rt=l[Ot]),ul(N,Ot,kr(rt,f,p,Ot,l,L))}),N}function NT(l){var f=On(l);return function(p){return zb(p,l,f)}}function zb(l,f,p){var x=p.length;if(l==null)return!x;for(l=Vt(l);x--;){var M=p[x],L=f[M],N=l[M];if(N===n&&!(M in l)||!L(N))return!1}return!0}function Hb(l,f,p){if(typeof l!="function")throw new Pr(o);return ml(function(){l.apply(n,p)},f)}function cl(l,f,p,x){var M=-1,L=Zu,N=!0,V=l.length,J=[],be=f.length;if(!V)return J;p&&(f=rn(f,gr(p))),x?(L=lh,N=!1):f.length>=i&&(L=rl,N=!1,f=new no(f));e:for(;++MM?0:M+p),x=x===n||x>M?M:vt(x),x<0&&(x+=M),x=p>x?0:sy(x);p0&&p(V)?f>1?kn(V,f-1,p,x,M):us(M,V):x||(M[M.length]=V)}return M}var Ch=g0(),Vb=g0(!0);function fi(l,f){return l&&Ch(l,f,On)}function Sh(l,f){return l&&Vb(l,f,On)}function vc(l,f){return ls(f,function(p){return Ii(l[p])})}function io(l,f){f=ps(f,l);for(var p=0,x=f.length;l!=null&&pf}function HT(l,f){return l!=null&&zt.call(l,f)}function WT(l,f){return l!=null&&f in Vt(l)}function jT(l,f,p){return l>=Nn(f,p)&&l=120&&ye.length>=120)?new no(N&&ye):n}ye=l[0];var xe=-1,$e=V[0];e:for(;++xe-1;)V!==l&&lc.call(V,J,1),lc.call(l,J,1);return l}function t0(l,f){for(var p=l?f.length:0,x=p-1;p--;){var M=f[p];if(p==x||M!==L){var L=M;Li(M)?lc.call(l,M,1):Ih(l,M)}}return l}function Rh(l,f){return l+fc($b()*(f-l+1))}function nA(l,f,p,x){for(var M=-1,L=yn(cc((f-l)/(p||1)),0),N=ae(L);L--;)N[x?L:++M]=l,l+=p;return N}function kh(l,f){var p="";if(!l||f<1||f>ie)return p;do f%2&&(p+=l),f=fc(f/2),f&&(l+=l);while(f);return p}function Ct(l,f){return Gh(R0(l,f,nr),l+"")}function rA(l){return Nb(fa(l))}function iA(l,f){var p=fa(l);return Tc(p,ro(f,0,p.length))}function hl(l,f,p,x){if(!ln(l))return l;f=ps(f,l);for(var M=-1,L=f.length,N=L-1,V=l;V!=null&&++MM?0:M+f),p=p>M?M:p,p<0&&(p+=M),M=f>p?0:p-f>>>0,f>>>=0;for(var L=ae(M);++x>>1,N=l[L];N!==null&&!vr(N)&&(p?N<=f:N=i){var be=f?null:bA(l);if(be)return ec(be);N=!1,M=rl,J=new no}else J=f?[]:V;e:for(;++x=x?l:Lr(l,f,p)}var l0=GM||function(l){return Rn.clearTimeout(l)};function u0(l,f){if(f)return l.slice();var p=l.length,x=Pb?Pb(p):new l.constructor(p);return l.copy(x),x}function Nh(l){var f=new l.constructor(l.byteLength);return new oc(f).set(new oc(l)),f}function uA(l,f){var p=f?Nh(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.byteLength)}function cA(l){var f=new l.constructor(l.source,Kv.exec(l));return f.lastIndex=l.lastIndex,f}function fA(l){return ll?Vt(ll.call(l)):{}}function c0(l,f){var p=f?Nh(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.length)}function f0(l,f){if(l!==f){var p=l!==n,x=l===null,M=l===l,L=vr(l),N=f!==n,V=f===null,J=f===f,be=vr(f);if(!V&&!be&&!L&&l>f||L&&N&&J&&!V&&!be||x&&N&&J||!p&&J||!M)return 1;if(!x&&!L&&!be&&l=V)return J;var be=p[x];return J*(be=="desc"?-1:1)}}return l.index-f.index}function d0(l,f,p,x){for(var M=-1,L=l.length,N=p.length,V=-1,J=f.length,be=yn(L-N,0),ye=ae(J+be),xe=!x;++V1?p[M-1]:n,N=M>2?p[2]:n;for(L=l.length>3&&typeof L=="function"?(M--,L):n,N&&Yn(p[0],p[1],N)&&(L=M<3?n:L,M=1),f=Vt(f);++x-1?M[L?f[N]:N]:n}}function b0(l){return ki(function(f){var p=f.length,x=p,M=Rr.prototype.thru;for(l&&f.reverse();x--;){var L=f[x];if(typeof L!="function")throw new Pr(o);if(M&&!N&&Ec(L)=="wrapper")var N=new Rr([],!0)}for(x=N?x:p;++x1&&Pt.reverse(),ye&&JV))return!1;var be=L.get(l),ye=L.get(f);if(be&&ye)return be==f&&ye==l;var xe=-1,$e=!0,je=p&v?new no:n;for(L.set(l,f),L.set(f,l);++xe1?"& ":"")+f[x],f=f.join(p>2?", ":" "),l.replace(AE,`{ +/* [wrapped with `+f+`] */ +`)}function TA(l){return ht(l)||ao(l)||!!(Lb&&l&&l[Lb])}function Li(l,f){var p=typeof l;return f=f??ie,!!f&&(p=="number"||p!="symbol"&&zE.test(l))&&l>-1&&l%1==0&&l0){if(++f>=A)return arguments[0]}else f=0;return l.apply(n,arguments)}}function Tc(l,f){var p=-1,x=l.length,M=x-1;for(f=f===n?x:f;++p1?l[f-1]:n;return p=typeof p=="function"?(l.pop(),p):n,j0(l,p)});function V0(l){var f=k(l);return f.__chain__=!0,f}function BP(l,f){return f(l),l}function Ac(l,f){return f(l)}var zP=ki(function(l){var f=l.length,p=f?l[0]:0,x=this.__wrapped__,M=function(L){return xh(L,l)};return f>1||this.__actions__.length||!(x instanceof Mt)||!Li(p)?this.thru(M):(x=x.slice(p,+p+(f?1:0)),x.__actions__.push({func:Ac,args:[M],thisArg:n}),new Rr(x,this.__chain__).thru(function(L){return f&&!L.length&&L.push(n),L}))});function HP(){return V0(this)}function WP(){return new Rr(this.value(),this.__chain__)}function jP(){this.__values__===n&&(this.__values__=iy(this.value()));var l=this.__index__>=this.__values__.length,f=l?n:this.__values__[this.__index__++];return{done:l,value:f}}function VP(){return this}function UP(l){for(var f,p=this;p instanceof pc;){var x=D0(p);x.__index__=0,x.__values__=n,f?M.__wrapped__=x:f=x;var M=x;p=p.__wrapped__}return M.__wrapped__=l,f}function KP(){var l=this.__wrapped__;if(l instanceof Mt){var f=l;return this.__actions__.length&&(f=new Mt(this)),f=f.reverse(),f.__actions__.push({func:Ac,args:[Xh],thisArg:n}),new Rr(f,this.__chain__)}return this.thru(Xh)}function qP(){return o0(this.__wrapped__,this.__actions__)}var YP=wc(function(l,f,p){zt.call(l,p)?++l[p]:Pi(l,p,1)});function GP(l,f,p){var x=ht(l)?yb:BT;return p&&Yn(l,f,p)&&(f=n),x(l,tt(f,3))}function XP(l,f){var p=ht(l)?ls:jb;return p(l,tt(f,3))}var JP=v0(N0),ZP=v0(B0);function QP(l,f){return kn(Pc(l,f),1)}function eR(l,f){return kn(Pc(l,f),Q)}function tR(l,f,p){return p=p===n?1:vt(p),kn(Pc(l,f),p)}function U0(l,f){var p=ht(l)?Ar:ds;return p(l,tt(f,3))}function K0(l,f){var p=ht(l)?_M:Wb;return p(l,tt(f,3))}var nR=wc(function(l,f,p){zt.call(l,p)?l[p].push(f):Pi(l,p,[f])});function rR(l,f,p,x){l=er(l)?l:fa(l),p=p&&!x?vt(p):0;var M=l.length;return p<0&&(p=yn(M+p,0)),$c(l)?p<=M&&l.indexOf(f,p)>-1:!!M&&Qo(l,f,p)>-1}var iR=Ct(function(l,f,p){var x=-1,M=typeof f=="function",L=er(l)?ae(l.length):[];return ds(l,function(N){L[++x]=M?pr(f,N,p):fl(N,f,p)}),L}),sR=wc(function(l,f,p){Pi(l,p,f)});function Pc(l,f){var p=ht(l)?rn:Gb;return p(l,tt(f,3))}function oR(l,f,p,x){return l==null?[]:(ht(f)||(f=f==null?[]:[f]),p=x?n:p,ht(p)||(p=p==null?[]:[p]),Qb(l,f,p))}var aR=wc(function(l,f,p){l[p?0:1].push(f)},function(){return[[],[]]});function lR(l,f,p){var x=ht(l)?uh:Cb,M=arguments.length<3;return x(l,tt(f,4),p,M,ds)}function uR(l,f,p){var x=ht(l)?wM:Cb,M=arguments.length<3;return x(l,tt(f,4),p,M,Wb)}function cR(l,f){var p=ht(l)?ls:jb;return p(l,Lc(tt(f,3)))}function fR(l){var f=ht(l)?Nb:rA;return f(l)}function dR(l,f,p){(p?Yn(l,f,p):f===n)?f=1:f=vt(f);var x=ht(l)?IT:iA;return x(l,f)}function hR(l){var f=ht(l)?$T:oA;return f(l)}function pR(l){if(l==null)return 0;if(er(l))return $c(l)?ta(l):l.length;var f=Bn(l);return f==q||f==ge?l.size:Th(l).length}function gR(l,f,p){var x=ht(l)?ch:aA;return p&&Yn(l,f,p)&&(f=n),x(l,tt(f,3))}var mR=Ct(function(l,f){if(l==null)return[];var p=f.length;return p>1&&Yn(l,f[0],f[1])?f=[]:p>2&&Yn(f[0],f[1],f[2])&&(f=[f[0]]),Qb(l,kn(f,1),[])}),Rc=XM||function(){return Rn.Date.now()};function vR(l,f){if(typeof f!="function")throw new Pr(o);return l=vt(l),function(){if(--l<1)return f.apply(this,arguments)}}function q0(l,f,p){return f=p?n:f,f=l&&f==null?l.length:f,Ri(l,P,n,n,n,n,f)}function Y0(l,f){var p;if(typeof f!="function")throw new Pr(o);return l=vt(l),function(){return--l>0&&(p=f.apply(this,arguments)),l<=1&&(f=n),p}}var Zh=Ct(function(l,f,p){var x=w;if(p.length){var M=cs(p,ua(Zh));x|=E}return Ri(l,x,f,p,M)}),G0=Ct(function(l,f,p){var x=w|y;if(p.length){var M=cs(p,ua(G0));x|=E}return Ri(f,x,l,p,M)});function X0(l,f,p){f=p?n:f;var x=Ri(l,O,n,n,n,n,n,f);return x.placeholder=X0.placeholder,x}function J0(l,f,p){f=p?n:f;var x=Ri(l,_,n,n,n,n,n,f);return x.placeholder=J0.placeholder,x}function Z0(l,f,p){var x,M,L,N,V,J,be=0,ye=!1,xe=!1,$e=!0;if(typeof l!="function")throw new Pr(o);f=$r(f)||0,ln(p)&&(ye=!!p.leading,xe="maxWait"in p,L=xe?yn($r(p.maxWait)||0,f):L,$e="trailing"in p?!!p.trailing:$e);function je(pn){var Xr=x,Fi=M;return x=M=n,be=pn,N=l.apply(Fi,Xr),N}function nt(pn){return be=pn,V=ml(Ot,f),ye?je(pn):N}function _t(pn){var Xr=pn-J,Fi=pn-be,vy=f-Xr;return xe?Nn(vy,L-Fi):vy}function rt(pn){var Xr=pn-J,Fi=pn-be;return J===n||Xr>=f||Xr<0||xe&&Fi>=L}function Ot(){var pn=Rc();if(rt(pn))return Pt(pn);V=ml(Ot,_t(pn))}function Pt(pn){return V=n,$e&&x?je(pn):(x=M=n,N)}function br(){V!==n&&l0(V),be=0,x=J=M=V=n}function Gn(){return V===n?N:Pt(Rc())}function yr(){var pn=Rc(),Xr=rt(pn);if(x=arguments,M=this,J=pn,Xr){if(V===n)return nt(J);if(xe)return l0(V),V=ml(Ot,f),je(J)}return V===n&&(V=ml(Ot,f)),N}return yr.cancel=br,yr.flush=Gn,yr}var bR=Ct(function(l,f){return Hb(l,1,f)}),yR=Ct(function(l,f,p){return Hb(l,$r(f)||0,p)});function _R(l){return Ri(l,$)}function kc(l,f){if(typeof l!="function"||f!=null&&typeof f!="function")throw new Pr(o);var p=function(){var x=arguments,M=f?f.apply(this,x):x[0],L=p.cache;if(L.has(M))return L.get(M);var N=l.apply(this,x);return p.cache=L.set(M,N)||L,N};return p.cache=new(kc.Cache||Ai),p}kc.Cache=Ai;function Lc(l){if(typeof l!="function")throw new Pr(o);return function(){var f=arguments;switch(f.length){case 0:return!l.call(this);case 1:return!l.call(this,f[0]);case 2:return!l.call(this,f[0],f[1]);case 3:return!l.call(this,f[0],f[1],f[2])}return!l.apply(this,f)}}function wR(l){return Y0(2,l)}var xR=lA(function(l,f){f=f.length==1&&ht(f[0])?rn(f[0],gr(tt())):rn(kn(f,1),gr(tt()));var p=f.length;return Ct(function(x){for(var M=-1,L=Nn(x.length,p);++M=f}),ao=Kb(function(){return arguments}())?Kb:function(l){return un(l)&&zt.call(l,"callee")&&!kb.call(l,"callee")},ht=ae.isArray,DR=hb?gr(hb):UT;function er(l){return l!=null&&Ic(l.length)&&!Ii(l)}function hn(l){return un(l)&&er(l)}function NR(l){return l===!0||l===!1||un(l)&&qn(l)==oe}var ms=ZM||cp,BR=pb?gr(pb):KT;function zR(l){return un(l)&&l.nodeType===1&&!vl(l)}function HR(l){if(l==null)return!0;if(er(l)&&(ht(l)||typeof l=="string"||typeof l.splice=="function"||ms(l)||ca(l)||ao(l)))return!l.length;var f=Bn(l);if(f==q||f==ge)return!l.size;if(gl(l))return!Th(l).length;for(var p in l)if(zt.call(l,p))return!1;return!0}function WR(l,f){return dl(l,f)}function jR(l,f,p){p=typeof p=="function"?p:n;var x=p?p(l,f):n;return x===n?dl(l,f,n,p):!!x}function ep(l){if(!un(l))return!1;var f=qn(l);return f==We||f==Oe||typeof l.message=="string"&&typeof l.name=="string"&&!vl(l)}function VR(l){return typeof l=="number"&&Ib(l)}function Ii(l){if(!ln(l))return!1;var f=qn(l);return f==F||f==W||f==Y||f==Se}function ey(l){return typeof l=="number"&&l==vt(l)}function Ic(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=ie}function ln(l){var f=typeof l;return l!=null&&(f=="object"||f=="function")}function un(l){return l!=null&&typeof l=="object"}var ty=gb?gr(gb):YT;function UR(l,f){return l===f||Mh(l,f,Vh(f))}function KR(l,f,p){return p=typeof p=="function"?p:n,Mh(l,f,Vh(f),p)}function qR(l){return ny(l)&&l!=+l}function YR(l){if(RA(l))throw new dt(s);return qb(l)}function GR(l){return l===null}function XR(l){return l==null}function ny(l){return typeof l=="number"||un(l)&&qn(l)==se}function vl(l){if(!un(l)||qn(l)!=me)return!1;var f=ac(l);if(f===null)return!0;var p=zt.call(f,"constructor")&&f.constructor;return typeof p=="function"&&p instanceof p&&rc.call(p)==KM}var tp=mb?gr(mb):GT;function JR(l){return ey(l)&&l>=-ie&&l<=ie}var ry=vb?gr(vb):XT;function $c(l){return typeof l=="string"||!ht(l)&&un(l)&&qn(l)==Ne}function vr(l){return typeof l=="symbol"||un(l)&&qn(l)==Pe}var ca=bb?gr(bb):JT;function ZR(l){return l===n}function QR(l){return un(l)&&Bn(l)==Me}function ek(l){return un(l)&&qn(l)==Ve}var tk=Oc(Ah),nk=Oc(function(l,f){return l<=f});function iy(l){if(!l)return[];if(er(l))return $c(l)?qr(l):Qn(l);if(il&&l[il])return IM(l[il]());var f=Bn(l),p=f==q?mh:f==ge?ec:fa;return p(l)}function $i(l){if(!l)return l===0?l:0;if(l=$r(l),l===Q||l===-Q){var f=l<0?-1:1;return f*ee}return l===l?l:0}function vt(l){var f=$i(l),p=f%1;return f===f?p?f-p:f:0}function sy(l){return l?ro(vt(l),0,Ee):0}function $r(l){if(typeof l=="number")return l;if(vr(l))return _e;if(ln(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=ln(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=Sb(l);var p=DE.test(l);return p||BE.test(l)?vM(l.slice(2),p?2:8):FE.test(l)?_e:+l}function oy(l){return di(l,tr(l))}function rk(l){return l?ro(vt(l),-ie,ie):l===0?l:0}function Dt(l){return l==null?"":mr(l)}var ik=aa(function(l,f){if(gl(f)||er(f)){di(f,On(f),l);return}for(var p in f)zt.call(f,p)&&ul(l,p,f[p])}),ay=aa(function(l,f){di(f,tr(f),l)}),Fc=aa(function(l,f,p,x){di(f,tr(f),l,x)}),sk=aa(function(l,f,p,x){di(f,On(f),l,x)}),ok=ki(xh);function ak(l,f){var p=oa(l);return f==null?p:Bb(p,f)}var lk=Ct(function(l,f){l=Vt(l);var p=-1,x=f.length,M=x>2?f[2]:n;for(M&&Yn(f[0],f[1],M)&&(x=1);++p1),L}),di(l,Wh(l),p),x&&(p=kr(p,h|g|m,yA));for(var M=f.length;M--;)Ih(p,f[M]);return p});function Ek(l,f){return uy(l,Lc(tt(f)))}var Mk=ki(function(l,f){return l==null?{}:eA(l,f)});function uy(l,f){if(l==null)return{};var p=rn(Wh(l),function(x){return[x]});return f=tt(f),e0(l,p,function(x,M){return f(x,M[0])})}function Tk(l,f,p){f=ps(f,l);var x=-1,M=f.length;for(M||(M=1,l=n);++xf){var x=l;l=f,f=x}if(p||l%1||f%1){var M=$b();return Nn(l+M*(f-l+mM("1e-"+((M+"").length-1))),f)}return Rh(l,f)}var Bk=la(function(l,f,p){return f=f.toLowerCase(),l+(p?dy(f):f)});function dy(l){return ip(Dt(l).toLowerCase())}function hy(l){return l=Dt(l),l&&l.replace(HE,AM).replace(oM,"")}function zk(l,f,p){l=Dt(l),f=mr(f);var x=l.length;p=p===n?x:ro(vt(p),0,x);var M=p;return p-=f.length,p>=0&&l.slice(p,M)==f}function Hk(l){return l=Dt(l),l&&Kr.test(l)?l.replace(an,PM):l}function Wk(l){return l=Dt(l),l&&ME.test(l)?l.replace(Qd,"\\$&"):l}var jk=la(function(l,f,p){return l+(p?"-":"")+f.toLowerCase()}),Vk=la(function(l,f,p){return l+(p?" ":"")+f.toLowerCase()}),Uk=m0("toLowerCase");function Kk(l,f,p){l=Dt(l),f=vt(f);var x=f?ta(l):0;if(!f||x>=f)return l;var M=(f-x)/2;return Sc(fc(M),p)+l+Sc(cc(M),p)}function qk(l,f,p){l=Dt(l),f=vt(f);var x=f?ta(l):0;return f&&x>>0,p?(l=Dt(l),l&&(typeof f=="string"||f!=null&&!tp(f))&&(f=mr(f),!f&&ea(l))?gs(qr(l),0,p):l.split(f,p)):[]}var eL=la(function(l,f,p){return l+(p?" ":"")+ip(f)});function tL(l,f,p){return l=Dt(l),p=p==null?0:ro(vt(p),0,l.length),f=mr(f),l.slice(p,p+f.length)==f}function nL(l,f,p){var x=k.templateSettings;p&&Yn(l,f,p)&&(f=n),l=Dt(l),f=Fc({},f,x,C0);var M=Fc({},f.imports,x.imports,C0),L=On(M),N=gh(M,L),V,J,be=0,ye=f.interpolate||Gu,xe="__p += '",$e=vh((f.escape||Gu).source+"|"+ye.source+"|"+(ye===Dn?$E:Gu).source+"|"+(f.evaluate||Gu).source+"|$","g"),je="//# sourceURL="+(zt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++fM+"]")+` +`;l.replace($e,function(rt,Ot,Pt,br,Gn,yr){return Pt||(Pt=br),xe+=l.slice(be,yr).replace(WE,RM),Ot&&(V=!0,xe+=`' + +__e(`+Ot+`) + +'`),Gn&&(J=!0,xe+=`'; +`+Gn+`; +__p += '`),Pt&&(xe+=`' + +((__t = (`+Pt+`)) == null ? '' : __t) + +'`),be=yr+rt.length,rt}),xe+=`'; +`;var nt=zt.call(f,"variable")&&f.variable;if(!nt)xe=`with (obj) { +`+xe+` +} +`;else if(LE.test(nt))throw new dt(a);xe=(J?xe.replace(we,""):xe).replace(Ye,"$1").replace(ft,"$1;"),xe="function("+(nt||"obj")+`) { +`+(nt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(V?", __e = _.escape":"")+(J?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+xe+`return __p +}`;var _t=gy(function(){return It(L,je+"return "+xe).apply(n,N)});if(_t.source=xe,ep(_t))throw _t;return _t}function rL(l){return Dt(l).toLowerCase()}function iL(l){return Dt(l).toUpperCase()}function sL(l,f,p){if(l=Dt(l),l&&(p||f===n))return Sb(l);if(!l||!(f=mr(f)))return l;var x=qr(l),M=qr(f),L=Ob(x,M),N=Eb(x,M)+1;return gs(x,L,N).join("")}function oL(l,f,p){if(l=Dt(l),l&&(p||f===n))return l.slice(0,Tb(l)+1);if(!l||!(f=mr(f)))return l;var x=qr(l),M=Eb(x,qr(f))+1;return gs(x,0,M).join("")}function aL(l,f,p){if(l=Dt(l),l&&(p||f===n))return l.replace(eh,"");if(!l||!(f=mr(f)))return l;var x=qr(l),M=Ob(x,qr(f));return gs(x,M).join("")}function lL(l,f){var p=D,x=j;if(ln(f)){var M="separator"in f?f.separator:M;p="length"in f?vt(f.length):p,x="omission"in f?mr(f.omission):x}l=Dt(l);var L=l.length;if(ea(l)){var N=qr(l);L=N.length}if(p>=L)return l;var V=p-ta(x);if(V<1)return x;var J=N?gs(N,0,V).join(""):l.slice(0,V);if(M===n)return J+x;if(N&&(V+=J.length-V),tp(M)){if(l.slice(V).search(M)){var be,ye=J;for(M.global||(M=vh(M.source,Dt(Kv.exec(M))+"g")),M.lastIndex=0;be=M.exec(ye);)var xe=be.index;J=J.slice(0,xe===n?V:xe)}}else if(l.indexOf(mr(M),V)!=V){var $e=J.lastIndexOf(M);$e>-1&&(J=J.slice(0,$e))}return J+x}function uL(l){return l=Dt(l),l&&hr.test(l)?l.replace(nn,NM):l}var cL=la(function(l,f,p){return l+(p?" ":"")+f.toUpperCase()}),ip=m0("toUpperCase");function py(l,f,p){return l=Dt(l),f=p?n:f,f===n?LM(l)?HM(l):SM(l):l.match(f)||[]}var gy=Ct(function(l,f){try{return pr(l,n,f)}catch(p){return ep(p)?p:new dt(p)}}),fL=ki(function(l,f){return Ar(f,function(p){p=hi(p),Pi(l,p,Zh(l[p],l))}),l});function dL(l){var f=l==null?0:l.length,p=tt();return l=f?rn(l,function(x){if(typeof x[1]!="function")throw new Pr(o);return[p(x[0]),x[1]]}):[],Ct(function(x){for(var M=-1;++Mie)return[];var p=Ee,x=Nn(l,Ee);f=tt(f),l-=Ee;for(var M=ph(x,f);++p0||f<0)?new Mt(p):(l<0?p=p.takeRight(-l):l&&(p=p.drop(l)),f!==n&&(f=vt(f),p=f<0?p.dropRight(-f):p.take(f-l)),p)},Mt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Mt.prototype.toArray=function(){return this.take(Ee)},fi(Mt.prototype,function(l,f){var p=/^(?:filter|find|map|reject)|While$/.test(f),x=/^(?:head|last)$/.test(f),M=k[x?"take"+(f=="last"?"Right":""):f],L=x||/^find/.test(f);M&&(k.prototype[f]=function(){var N=this.__wrapped__,V=x?[1]:arguments,J=N instanceof Mt,be=V[0],ye=J||ht(N),xe=function(Ot){var Pt=M.apply(k,us([Ot],V));return x&&$e?Pt[0]:Pt};ye&&p&&typeof be=="function"&&be.length!=1&&(J=ye=!1);var $e=this.__chain__,je=!!this.__actions__.length,nt=L&&!$e,_t=J&&!je;if(!L&&ye){N=_t?N:new Mt(this);var rt=l.apply(N,V);return rt.__actions__.push({func:Ac,args:[xe],thisArg:n}),new Rr(rt,$e)}return nt&&_t?l.apply(this,V):(rt=this.thru(xe),nt?x?rt.value()[0]:rt.value():rt)})}),Ar(["pop","push","shift","sort","splice","unshift"],function(l){var f=tc[l],p=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",x=/^(?:pop|shift)$/.test(l);k.prototype[l]=function(){var M=arguments;if(x&&!this.__chain__){var L=this.value();return f.apply(ht(L)?L:[],M)}return this[p](function(N){return f.apply(ht(N)?N:[],M)})}}),fi(Mt.prototype,function(l,f){var p=k[f];if(p){var x=p.name+"";zt.call(sa,x)||(sa[x]=[]),sa[x].push({name:f,func:p})}}),sa[xc(n,y).name]=[{name:"wrapper",func:n}],Mt.prototype.clone=uT,Mt.prototype.reverse=cT,Mt.prototype.value=fT,k.prototype.at=zP,k.prototype.chain=HP,k.prototype.commit=WP,k.prototype.next=jP,k.prototype.plant=UP,k.prototype.reverse=KP,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=qP,k.prototype.first=k.prototype.head,il&&(k.prototype[il]=VP),k},na=WM();Qs?((Qs.exports=na)._=na,oh._=na):Rn._=na}).call(Zt)})(md,md.exports);var Ex=md.exports;const zZ=I("p",null,[le("Add "),I("span",{class:"font-bold"},"Simulation period in years"),le(" and "),I("span",{class:"font-bold"},"Start Year")],-1),HZ={__name:"YieldsTable",props:["annualYields","startYear","periodLength","rotationTable","rotationLength","plants"],emits:["updateYields"],setup(e,{emit:t}){const n=e,r=vn({annualYields:[]});Ie(()=>n.annualYields,a=>{r.annualYields=n.annualYields},{immediate:!0}),Ie(()=>n.periodLength,a=>{var u,c,d,h;r.annualYields=n.annualYields;for(let g=0;gn.rotationLength,a=>{o(),t("updateYields",{annualYields:r.annualYields})},{immediate:!0}),Ie(()=>n.rotationTable,a=>{o(),t("updateYields",{annualYields:r.annualYields})},{immediate:!0});function i({$event:a,key:u}){s(a,u),t("updateYields",{annualYields:r.annualYields})}function s(a,u){r.annualYields[u].yield=a}function o(){var u,c;let a=0;for(let d=0;d<((u=r.annualYields)==null?void 0:u.length);d++)if(n.rotationTable[a]){const g=n.rotationTable[a].plant.id;r.annualYields[d].rotation=(c=n.plants[g])==null?void 0:c.name,a++,a>=n.rotationLength&&(a=0)}}return(a,u)=>{const c=os,d=ci,h=el;return K(),ve("div",null,[H(d,{class:""},{default:B(()=>[H(c,{span:24,class:"p-2 text-center text-2xl"},{default:B(()=>[le("Annual Yields")]),_:1})]),_:1}),parseInt(n.periodLength)>0&&parseInt(n.startYear)>=0?(K(!0),ve(it,{key:0},En(r.annualYields,(g,m,b)=>(K(),Te(d,{key:b},{default:B(()=>[H(c,{span:24,class:"p-2"},{default:B(()=>{var v,w;return[H(h,{modelValue:(w=(v=r.annualYields)==null?void 0:v[m])==null?void 0:w.yield,onInput:y=>i({$event:y,key:m})},{prepend:B(()=>[le(pt(g.year),1)]),_:2},1032,["modelValue","onInput"])]}),_:2},1024)]),_:2},1024))),128)):(K(),Te(d,{key:1},{default:B(()=>[zZ]),_:1}))])}}};const WZ={class:"flex flex-col"},jZ=I("p",null,[le("Add "),I("span",{class:"font-bold"},"Simulation period in years")],-1),VZ={__name:"YearlyTable",props:["annualRainfall","periodLength","startYear"],emits:["updateAnnualRainfall"],setup(e,{emit:t}){const n=e,r=vn({annualRainfall:n.annualRainfall});qa(()=>{var o,a,u,c;if(parseInt(n.periodLength)>0)for(let d=0;dn.periodLength,o=>{for(let a=0;a{const u=os,c=ci,d=t2,h=el;return K(),ve("div",WZ,[H(c,{class:""},{default:B(()=>[H(u,{span:24,class:"p-2 text-center text-2xl"},{default:B(()=>[le("Yearly Rain")]),_:1})]),_:1}),H(c,null,{default:B(()=>[H(d,{title:"Error: If all monthly rainfall values are zero, float division by zero",type:"info"})]),_:1}),H(c,null,{default:B(()=>[H(u,{span:6,class:"p-2 font-bold"},{default:B(()=>[le("Year")]),_:1}),H(u,{span:18,class:"p-2 font-bold"},{default:B(()=>[le("Rainfall (mm)")]),_:1})]),_:1}),parseInt(n.periodLength)>0?(K(!0),ve(it,{key:0},En(parseInt(n.periodLength),(g,m)=>(K(),Te(c,{key:g},{default:B(()=>[H(u,{span:6,class:"p-2"},{default:B(()=>[le(pt(parseInt(n.startYear)-1+parseInt(g)),1)]),_:2},1024),H(u,{span:18,class:"p-2"},{default:B(()=>{var b,v;return[H(h,{modelValue:(v=(b=r.annualRainfall)==null?void 0:b[m])==null?void 0:v.rainfall,onInput:w=>i({$event:w,key:m})},null,8,["modelValue","onInput"])]}),_:2},1024)]),_:2},1024))),128)):(K(),Te(c,{key:1},{default:B(()=>[jZ]),_:1}))])}}},UZ={__name:"MonthlyTable",props:["monthRainTemp","periodLength","startYear"],emits:["updateMonthRainTemps"],setup(e,{emit:t}){const n=e,r=vn({monthRainTemp:[]}),i=["January","February","March","April","May","June","July","August","September","October","November","December"];qa(()=>{var u,c,d,h,g,m,b,v;const a=[];for(let w=0;w{const c=os,d=ci,h=t2,g=el;return K(),ve("div",null,[H(d,{class:""},{default:B(()=>[H(c,{span:24,class:"p-2 text-center text-2xl"},{default:B(()=>[le("Monthly Rain Temperature")]),_:1})]),_:1}),H(d,null,{default:B(()=>[H(h,{title:"Error: If all monthly rainfall values are zero, float division by zero",type:"info"})]),_:1}),H(d,null,{default:B(()=>[H(c,{span:6,class:"p-2 font-bold"},{default:B(()=>[le("Month")]),_:1}),H(c,{span:9,class:"p-2 font-bold"},{default:B(()=>[le("Rainfall (mm)")]),_:1}),H(c,{span:9,class:"p-2 font-bold"},{default:B(()=>[le("Temperature (℃)")]),_:1})]),_:1}),(K(),ve(it,null,En(i,(m,b)=>H(d,{key:b,class:""},{default:B(()=>[H(c,{span:6,class:"p-2"},{default:B(()=>[le(pt(m),1)]),_:2},1024),H(c,{span:9,class:"p-2"},{default:B(()=>[H(g,{modelValue:r.monthRainTemp[b].rainfall,onInput:v=>s({$event:v,index:b,key:"rainfall"})},null,8,["modelValue","onInput"])]),_:2},1024),H(c,{span:9,class:"p-2"},{default:B(()=>[H(g,{modelValue:r.monthRainTemp[b].temperature,onInput:v=>s({$event:v,index:b,key:"temperature"})},null,8,["modelValue","onInput"])]),_:2},1024)]),_:2},1024)),64))])}}};const KZ=I("div",{class:"parameter-error"},null,-1),qZ={__name:"ParameterTable",props:["parameters"],setup(e){const t=e,n=vn({parameters:[]});return Xs(()=>{n.parameters=t.parameters}),Lt(()=>{n.parameters=t.parameters}),(r,i)=>{const s=os,o=ci,a=el;return K(),ve(it,null,[H(o,{class:""},{default:B(()=>[H(s,{span:24,class:"p-2 text-center text-2xl"},{default:B(()=>[le("Parameter")]),_:1})]),_:1}),(K(!0),ve(it,null,En(n.parameters,(u,c)=>(K(),Te(o,{key:c,class:""},{default:B(()=>[H(s,{span:24,class:"p-2"},{default:B(()=>[H(a,{modelValue:n.parameters[c],"onUpdate:modelValue":d=>n.parameters[c]=d,type:"number"},{prepend:B(()=>[le(pt(c),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024))),128)),KZ],64)}}};var YZ=!1;/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let hE;const Xd=e=>hE=e,pE=Symbol();function sm(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var nu;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(nu||(nu={}));function GZ(){const e=Fx(!0),t=e.run(()=>X({}));let n=[],r=[];const i=Sd({install(s){Xd(i),i._a=s,s.provide(pE,i),s.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(s){return!this._a&&!YZ?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const gE=()=>{};function Mx(e,t,n,r=gE){e.push(t);const i=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&hm()&&pm(i),i}function va(e,...t){e.slice().forEach(n=>{n(...t)})}const XZ=e=>e();function om(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];sm(i)&&sm(r)&&e.hasOwnProperty(n)&&!Nt(r)&&!$s(r)?e[n]=om(i,r):e[n]=r}return e}const JZ=Symbol();function ZZ(e){return!sm(e)||!e.hasOwnProperty(JZ)}const{assign:Ss}=Object;function QZ(e){return!!(Nt(e)&&e.effect)}function eQ(e,t,n,r){const{state:i,actions:s,getters:o}=t,a=n.state.value[e];let u;function c(){a||(n.state.value[e]=i?i():{});const d=Gs(n.state.value[e]);return Ss(d,s,Object.keys(o||{}).reduce((h,g)=>(h[g]=Sd(z(()=>{Xd(n);const m=n._s.get(e);return o[g].call(m,m)})),h),{}))}return u=mE(e,c,t,n,r,!0),u}function mE(e,t,n={},r,i,s){let o;const a=Ss({actions:{}},n),u={deep:!0};let c,d,h=[],g=[],m;const b=r.state.value[e];!s&&!b&&(r.state.value[e]={}),X({});let v;function w(R){let $;c=d=!1,typeof R=="function"?(R(r.state.value[e]),$={type:nu.patchFunction,storeId:e,events:m}):(om(r.state.value[e],R),$={type:nu.patchObject,payload:R,storeId:e,events:m});const D=v=Symbol();bt().then(()=>{v===D&&(c=!0)}),d=!0,va(h,$,r.state.value[e])}const y=s?function(){const{state:$}=n,D=$?$():{};this.$patch(j=>{Ss(j,D)})}:gE;function C(){o.stop(),h=[],g=[],r._s.delete(e)}function O(R,$){return function(){Xd(r);const D=Array.from(arguments),j=[],A=[];function U(ne){j.push(ne)}function ue(ne){A.push(ne)}va(g,{args:D,name:R,store:E,after:U,onError:ue});let ce;try{ce=$.apply(this&&this.$id===e?this:E,D)}catch(ne){throw va(A,ne),ne}return ce instanceof Promise?ce.then(ne=>(va(j,ne),ne)).catch(ne=>(va(A,ne),Promise.reject(ne))):(va(j,ce),ce)}}const _={_p:r,$id:e,$onAction:Mx.bind(null,g),$patch:w,$reset:y,$subscribe(R,$={}){const D=Mx(h,R,$.detached,()=>j()),j=o.run(()=>Ie(()=>r.state.value[e],A=>{($.flush==="sync"?d:c)&&R({storeId:e,type:nu.direct,events:m},A)},Ss({},u,$)));return D},$dispose:C},E=vn(_);r._s.set(e,E);const P=(r._a&&r._a.runWithContext||XZ)(()=>r._e.run(()=>(o=Fx()).run(t)));for(const R in P){const $=P[R];if(Nt($)&&!QZ($)||$s($))s||(b&&ZZ($)&&(Nt($)?$.value=b[R]:om($,b[R])),r.state.value[e][R]=$);else if(typeof $=="function"){const D=O(R,$);P[R]=D,a.actions[R]=$}}return Ss(E,P),Ss(ut(E),P),Object.defineProperty(E,"$state",{get:()=>r.state.value[e],set:R=>{w($=>{Ss($,R)})}}),r._p.forEach(R=>{Ss(E,o.run(()=>R({store:E,app:r._a,pinia:r,options:a})))}),b&&s&&n.hydrate&&n.hydrate(E.$state,b),c=!0,d=!0,E}function tQ(e,t,n){let r,i;const s=typeof t=="function";typeof e=="string"?(r=e,i=s?n:t):(i=e,r=e.id);function o(a,u){const c=O$();return a=a||(c?Ke(pE,null):null),a&&Xd(a),a=hE,a._s.has(r)||(s?mE(r,t,i,a):eQ(r,i,a)),a._s.get(r)}return o.$id=r,o}class vd{}Re(vd,"version","1.0.0");async function nQ({socrates:e,parameters:t}){let n;n="/run";let r=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({socrates:e,parameters:t})}),i=r.status;if(r=await r.json(),i===200)return r;throw new Error(r==null?void 0:r.message)}async function rQ(){let e=await fetch("parameters.json"),t=e.status;if(e=await e.json(),t===200)return e;throw new Error(e==null?void 0:e.message)}async function iQ(){let e=await fetch("sample-data-20-year.json");if(e.status===200)return e=await e.json(),e}var ku={},Er={};Object.defineProperty(Er,"__esModule",{value:!0});Er.excelBOM=Er.defaultCsv2JsonOptions=Er.defaultJson2CsvOptions=Er.errors=void 0;Er.errors={optionsRequired:"Options were not passed and are required.",json2csv:{cannotCallOn:"Cannot call json2csv on",dataCheckFailure:"Data provided was not an array of documents.",notSameSchema:"Not all documents have the same schema."},csv2json:{cannotCallOn:"Cannot call csv2json on",dataCheckFailure:"CSV is not a string."}};Er.defaultJson2CsvOptions={checkSchemaDifferences:!1,delimiter:{field:",",wrap:'"',eol:` +`},emptyFieldValue:void 0,excelBOM:!1,excludeKeys:[],expandArrayObjects:!1,prependHeader:!0,preventCsvInjection:!1,sortHeader:!1,trimFieldValues:!1,trimHeaderFields:!1,unwindArrays:!1,useDateIso8601Format:!1,useLocaleFormat:!1,wrapBooleans:!1};Er.defaultCsv2JsonOptions={delimiter:{field:",",wrap:'"',eol:` +`},excelBOM:!1,preventCsvInjection:!1,trimFieldValues:!1,trimHeaderFields:!1,wrapBooleans:!1};Er.excelBOM="\uFEFF";var Jd={},Ys={};/** + * @license MIT + * doc-path + * Copyright (c) 2015-present, Michael Rodrigues. + */Object.defineProperty(Ys,"__esModule",{value:!0});Ys.setPath=Ys.evaluatePath=void 0;function Nl(e,t){if(!e)return null;const{dotIndex:n,key:r,remaining:i}=vE(t),s=typeof e=="object"&&t in e?e[t]:void 0,o=typeof e=="object"&&r in e?e[r]:void 0;return n>=0&&typeof e=="object"&&!(t in e)?Array.isArray(o)?o.map(a=>Nl(a,i)):Nl(o,i):Array.isArray(e)?e.map(a=>Nl(a,t)):n>=0&&t!==r&&typeof e=="object"&&r in e?Nl(o,i):n===-1&&typeof e=="object"&&r in e&&!(t in e)?o:s}Ys.evaluatePath=Nl;function sQ(e,t,n){if(e){if(!t)throw new Error("No keyPath was provided.")}else throw new Error("No object was provided.");return jf(e,t,n)}Ys.setPath=sQ;function jf(e,t,n){const{dotIndex:r,key:i,remaining:s}=vE(t);if(t.startsWith("__proto__")||t.startsWith("constructor")||t.startsWith("prototype"))return e;if(r>=0){if(typeof e=="object"&&e!==null&&!(i in e)&&Array.isArray(e))return e.forEach(o=>jf(o,t,n)),e;typeof e=="object"&&e!==null&&!(i in e)&&!Array.isArray(e)&&(e[i]={}),jf(e[i],s,n)}else{if(Array.isArray(e))return e.forEach(o=>jf(o,s,n)),e;e[i]=n}return e}function vE(e){const t=oQ(e);return{dotIndex:t,key:e.slice(0,t>=0?t:void 0).replace(/\\./g,"."),remaining:e.slice(t+1)}}function oQ(e){for(let t=0;t0?e[t-1]:"";if(e[t]==="."&&n!=="\\")return t}return-1}var bE={},zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.isDocumentToRecurOn=zs.flatten=zs.unique=void 0;function aQ(e){return[...new Set(e)]}zs.unique=aQ;function lQ(e){return[].concat(...e)}zs.flatten=lQ;function uQ(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&Object.keys(e).length}zs.isDocumentToRecurOn=uQ;var yE={};Object.defineProperty(yE,"__esModule",{value:!0});(function(e){var t=Zt&&Zt.__createBinding||(Object.create?function(m,b,v,w){w===void 0&&(w=v);var y=Object.getOwnPropertyDescriptor(b,v);(!y||("get"in y?!b.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return b[v]}}),Object.defineProperty(m,w,y)}:function(m,b,v,w){w===void 0&&(w=v),m[w]=b[v]}),n=Zt&&Zt.__setModuleDefault||(Object.create?function(m,b){Object.defineProperty(m,"default",{enumerable:!0,value:b})}:function(m,b){m.default=b}),r=Zt&&Zt.__importStar||function(m){if(m&&m.__esModule)return m;var b={};if(m!=null)for(var v in m)v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)&&t(b,m,v);return n(b,m),b},i=Zt&&Zt.__exportStar||function(m,b){for(var v in m)v!=="default"&&!Object.prototype.hasOwnProperty.call(b,v)&&t(b,m,v)};Object.defineProperty(e,"__esModule",{value:!0}),e.deepKeysFromList=e.deepKeys=void 0;const s=r(zs);i(yE,e);function o(m,b){const v=g(b);return typeof m=="object"&&m!==null?u("",m,v):[]}e.deepKeys=o;function a(m,b){const v=g(b);return m.map(w=>typeof w=="object"&&w!==null?o(w,v):[])}e.deepKeysFromList=a;function u(m,b,v){const w=Object.keys(b).map(y=>{const C=h(m,d(y,v));return s.isDocumentToRecurOn(b[y])?u(C,b[y],v):v.expandArrayObjects&&Array.isArray(b[y])?c(b[y],C,v):v.ignoreEmptyArrays&&Array.isArray(b[y])&&!b[y].length?[]:C});return s.flatten(w)}function c(m,b,v){let w=a(m,v);return m.length?m.length&&s.flatten(w).length===0?[b]:(w=w.map(y=>Array.isArray(y)&&y.length===0?[b]:y.map(C=>h(b,d(C,v)))),s.unique(s.flatten(w))):v.ignoreEmptyArraysWhenExpanding?[]:[b]}function d(m,b){return b.escapeNestedDots?m.replace(/\./g,"\\."):m}function h(m,b){return m?m+"."+b:b}function g(m){return{expandArrayObjects:!1,ignoreEmptyArraysWhenExpanding:!1,escapeNestedDots:!1,ignoreEmptyArrays:!1,...m??{}}}})(bE);var lt={};Object.defineProperty(lt,"__esModule",{value:!0});lt.isInvalid=lt.flatten=lt.unique=lt.arrayDifference=lt.isError=lt.isUndefined=lt.isNull=lt.isObject=lt.isString=lt.isNumber=lt.unwind=lt.getNCharacters=lt.removeEmptyFields=lt.isEmptyField=lt.computeSchemaDifferences=lt.isDateRepresentation=lt.isStringRepresentation=lt.deepCopy=lt.validate=lt.buildC2JOptions=lt.buildJ2COptions=void 0;const Kp=Ys,Ls=Er,cQ=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,qp=1e5;function fQ(e){var t,n,r;return{...Ls.defaultJson2CsvOptions,...e,delimiter:{field:((t=e==null?void 0:e.delimiter)==null?void 0:t.field)??Ls.defaultJson2CsvOptions.delimiter.field,wrap:((n=e==null?void 0:e.delimiter)==null?void 0:n.wrap)||Ls.defaultJson2CsvOptions.delimiter.wrap,eol:((r=e==null?void 0:e.delimiter)==null?void 0:r.eol)||Ls.defaultJson2CsvOptions.delimiter.eol},fieldTitleMap:Object.create({})}}lt.buildJ2COptions=fQ;function dQ(e){var t,n,r;return{...Ls.defaultCsv2JsonOptions,...e,delimiter:{field:((t=e==null?void 0:e.delimiter)==null?void 0:t.field)??Ls.defaultCsv2JsonOptions.delimiter.field,wrap:((n=e==null?void 0:e.delimiter)==null?void 0:n.wrap)||Ls.defaultCsv2JsonOptions.delimiter.wrap,eol:((r=e==null?void 0:e.delimiter)==null?void 0:r.eol)||Ls.defaultCsv2JsonOptions.delimiter.eol}}}lt.buildC2JOptions=dQ;function hQ(e,t,n){if(!e)throw new Error(`${n.cannotCallOn} ${e}.`);if(!t(e))throw new Error(n.dataCheckFailure);return!0}lt.validate=hQ;function am(e){return JSON.parse(JSON.stringify(e))}lt.deepCopy=am;function pQ(e,t){const n=e[0],r=e.length-1,i=e[r];return n===t.delimiter.wrap&&i===t.delimiter.wrap}lt.isStringRepresentation=pQ;function gQ(e){return cQ.test(e)}lt.isDateRepresentation=gQ;function mQ(e,t){return lm(e,t).concat(lm(t,e))}lt.computeSchemaDifferences=mQ;function _E(e){return xE(e)||wE(e)||e===""}lt.isEmptyField=_E;function vQ(e){return e.filter(t=>!_E(t))}lt.removeEmptyFields=vQ;function bQ(e,t,n){return e.substring(t,t+n)}lt.getNCharacters=bQ;function yQ(e,t,n){const r=(0,Kp.evaluatePath)(t,n);let i=am(t);Array.isArray(r)&&r.length?r.forEach(s=>{i=am(t),e.push((0,Kp.setPath)(i,n,s))}):(Array.isArray(r)&&r.length===0&&(0,Kp.setPath)(i,n,""),e.push(i))}function _Q(e,t){const n=[];return e.forEach(r=>{yQ(n,r,t)}),n}lt.unwind=_Q;function wQ(e){return!isNaN(Number(e))}lt.isNumber=wQ;function xQ(e){return typeof e=="string"}lt.isString=xQ;function CQ(e){return typeof e=="object"}lt.isObject=CQ;function wE(e){return e===null}lt.isNull=wE;function xE(e){return typeof e>"u"}lt.isUndefined=xE;function SQ(e){return Object.prototype.toString.call(e)==="[object Error]"}lt.isError=SQ;function lm(e,t){return e.filter(n=>!t.includes(n))}lt.arrayDifference=lm;function OQ(e){return[...new Set(e)]}lt.unique=OQ;function EQ(e){if(e.flat)return e.flat();if(e.length>qp){let t=[];for(let n=0;nt.concat(n),[])}lt.flatten=EQ;function MQ(e){return e===1/0||e===-1/0}lt.isInvalid=MQ;var TQ=Zt&&Zt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),AQ=Zt&&Zt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),PQ=Zt&&Zt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&TQ(t,e,n);return AQ(t,e),t};Object.defineProperty(Jd,"__esModule",{value:!0});Jd.Json2Csv=void 0;const RQ=Ys,kQ=bE,Tx=Er,zi=PQ(lt),LQ=function(e){const t=new RegExp(e.delimiter.wrap,"g"),n=/\r?\n|\r/,r=e.parseValue&&typeof e.parseValue=="function"?e.parseValue:null,i=e.expandArrayObjects&&!e.unwindArrays,s={expandArrayObjects:i,ignoreEmptyArraysWhenExpanding:i,escapeNestedDots:!0};async function o(A){return(0,kQ.deepKeysFromList)(A,s)}function a(A){return e.checkSchemaDifferences?u(A):zi.unique(zi.flatten(A))}function u(A){const U=A[0],ue=A.slice(1);if(c(U,ue))throw new Error(Tx.errors.json2csv.notSameSchema);return U}function c(A,U){return U.reduce((ue,ce)=>zi.computeSchemaDifferences(A,ce).length>0?ue+1:ue,0)}function d(A){return e.excludeKeys?A.filter(U=>!e.excludeKeys.includes(U)):A}function h(A){return e.sortHeader&&typeof e.sortHeader=="function"?A.sort(e.sortHeader):e.sortHeader?A.sort():A}function g(A){return e.trimHeaderFields&&(A.headerFields=A.headerFields.map(U=>U.split(".").map(ue=>ue.trim()).join("."))),A}function m(A){return e.prependHeader&&(A.headerFields=A.headerFields.map(function(U){return R(U)})),A}function b(A){const U=Object.keys(e.fieldTitleMap);return A.header=A.headerFields.map(function(ue){const ce=U.includes(ue)?e.fieldTitleMap[ue]:ue;return R(ce)}).join(e.delimiter.field),A}function v(){return e.keys?e.keys.map(A=>typeof A=="object"&&"field"in A?(e.fieldTitleMap[A.field]=A.title??A.field,A.field):A):[]}function w(A){const U=v();return e.keys&&(e.keys=U,!e.unwindArrays)?Promise.resolve(U).then(d).then(h):o(A).then(a).then(d).then(h)}async function y(A,U=!1){if(e.unwindArrays){const ue=A.records.length;return A.headerFields.forEach(ce=>{A.records=zi.unwind(A.records,ce)}),w(A.records).then(ce=>{if(A.headerFields=ce,ue!==A.records.length)return y(A);if(!U)return y(A,!0);if(e.keys){const ne=v();A.headerFields=d(ne)}return A})}return A}function C(A){return A.recordString=A.records.map(U=>{const ue=_(U,A.headerFields),ce=ue.map(ne=>{ne=T(ne),ne=P(ne);let Q=r?r(ne,E):E(ne);return Q=R(Q),Q});return $(ce)}).join(e.delimiter.eol),A}function O(A){const U=zi.removeEmptyFields(A);return!A.length||!U.length?e.emptyFieldValue||"":U.length===1?U[0]:A}function _(A,U){const ue=[];return U.forEach(ce=>{let ne=(0,RQ.evaluatePath)(A,ce);!zi.isUndefined(e.emptyFieldValue)&&zi.isEmptyField(ne)?ne=e.emptyFieldValue:e.expandArrayObjects&&Array.isArray(ne)&&(ne=O(ne)),ue.push(ne)}),ue}function E(A){const U=A instanceof Date;return A===null||Array.isArray(A)||typeof A=="object"&&!U?JSON.stringify(A):typeof A>"u"?"undefined":U&&e.useDateIso8601Format?A.toISOString():e.useLocaleFormat?A.toLocaleString():A.toString()}function T(A){return e.trimFieldValues?Array.isArray(A)?A.map(T):typeof A=="string"?A.trim():A:A}function P(A){return e.preventCsvInjection?Array.isArray(A)?A.map(P):typeof A=="string"&&!zi.isNumber(A)?A.replace(/^[=+\-@\t\r]+/g,""):A:A}function R(A){const U=e.delimiter.wrap;return A.includes(e.delimiter.wrap)&&(A=A.replace(t,U+U)),(A.includes(e.delimiter.field)||A.includes(e.delimiter.wrap)||A.match(n)||e.wrapBooleans&&(A==="true"||A==="false"))&&(A=U+A+U),A}function $(A){return A.join(e.delimiter.field)}function D(A){const U=A.header,ue=A.recordString;return(e.excelBOM?Tx.excelBOM:"")+(e.prependHeader?U+e.delimiter.eol:"")+ue}async function j(A){return zi.isObject(A)&&!A.length&&(A=[A]),w(A).then(U=>({headerFields:U,records:A,header:"",recordString:""})).then(y).then(C).then(m).then(g).then(b).then(D)}return{convert:j}};Jd.Json2Csv=LQ;var Zd={},IQ=Zt&&Zt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),$Q=Zt&&Zt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),FQ=Zt&&Zt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&IQ(t,e,n);return $Q(t,e),t};Object.defineProperty(Zd,"__esModule",{value:!0});Zd.Csv2Json=void 0;const DQ=Ys,NQ=Er,vo=FQ(lt),BQ=function(e){const t=new RegExp(e.delimiter.wrap+e.delimiter.wrap,"g"),n=new RegExp("^"+NQ.excelBOM),r=e.parseValue&&typeof e.parseValue=="function"?e.parseValue:JSON.parse;function i(C){return C=m(C),e.trimHeaderFields?C.split(".").map(O=>O.trim()).join("."):C}function s(C){let O=[];if(e.headerFields)O=e.headerFields.map((_,E)=>({value:i(_),index:E}));else if(O=C[0].map((E,T)=>({value:i(E),index:T})),e.keys){const E=e.keys;O=O.filter(T=>E.includes(T.value))}return{lines:C,headerFields:O,recordLines:[]}}async function o(C){return e.excelBOM?C.replace(n,""):C}function a(C){const O=[],_=C.length-1,E=e.delimiter.eol.length,T={insideWrapDelimiter:!1,parsingValue:!0,justParsedDoubleQuote:!1,startIndex:0};let P=[],R,$,D,j,A=0;for(;A{const T=c(E,O);try{return(0,DQ.setPath)(_,E.value,T)}catch{return _}},{})}function m(C){const O=C[0],_=C.length-1,E=C[_];return O===e.delimiter.wrap&&E===e.delimiter.wrap?C.substr(1,_-1):C}function b(C){return C.replace(t,e.delimiter.wrap)}function v(C){return C.recordLines.reduce((O,_)=>{_=_.map(T=>(T=m(T),T=b(T),T=h(T),T));const E=g(C.headerFields,_);return O.concat(E)},[])}function w(C){try{if(vo.isStringRepresentation(C,e)&&!vo.isDateRepresentation(C))return C;const O=r(C);return Array.isArray(O)?O.map(h):O}catch(O){return O}}async function y(C){return o(C).then(a).then(s).then(u).then(v)}return{convert:y}};Zd.Csv2Json=BQ;Object.defineProperty(ku,"__esModule",{value:!0});ku.csv2json=SE=ku.json2csv=void 0;const CE=Er,zQ=Jd,HQ=Zd,Oa=lt;async function WQ(e,t){const n=(0,Oa.buildJ2COptions)(t??{});return(0,Oa.validate)(e,Oa.isObject,CE.errors.json2csv),(0,zQ.Json2Csv)(n).convert(e)}var SE=ku.json2csv=WQ;async function jQ(e,t){const n=(0,Oa.buildC2JOptions)(t??{});return(0,Oa.validate)(e,Oa.isString,CE.errors.csv2json),(0,HQ.Csv2Json)(n).convert(e)}ku.csv2json=jQ;async function VQ({results:e,initialOC:t}){const n=[];n.push({year:e.years[0]-1,crop:"",rain:"",yields:"",biomass:"",nitrogen:"",urine:"",oc:t,co2:"",n2o_fert:"",n2o_min:"",n2o_res:"",n2o_indirect:"",n2o_urine:"",ch4_animal:"",total:""});for(let i=0;i({version:vd.version,soilProperties:null,clay:0,cec:0,initialOC:0,startYear:0,periodLength:0,rotationLength:0,climateMethodDataEntry:null,monthRainTemp:[{rainfall:0,temperature:0}],annualRainfall:[{rainfall:0}],annualYields:[],averageAnnualRainFall:0,annualMeanTemperature:0,randomizeRainAndTemperature:0,rotationTable:[],yieldsMethodDataEntry:0,parameters:[],showParameters:!1,results:null,socrates:{soil:{},simulation:{},climate:{},rotation:{},yields:{}},toggleAnnualYields:!1,toggleMonthlyClimate:!1,toggleYearlyClimate:!1,rotationTableMessage:null,displayRunInNotebook:!1,jupyterNotebook:[],showLoadDialog:!1,selectedFile:null,socratesOld:{},errors:[]}),actions:{async getParameters(){this.parameters=await rQ()},deleteRotation(e){this.rotationTable.splice(e,1),this.rotationLength--},updateRotation(e){if(e){this.rotationLength=parseInt(e);for(let t=0;t{await t.getParameters()});const n=[{id:0,type:"clay",name:"clay"},{id:1,type:"silt",name:"silt clay"},{id:2,type:"clay loam",name:"clay loam"},{id:3,type:"silt loam",name:"silt loam"},{id:4,type:"sandy loam",name:"sandy loam"},{id:5,type:"sand",name:"sand"},{id:6,type:"Enter Clay",name:"Enter Clay %"},{id:7,type:"Enter CEC",name:"Enter CEC"}],r=[{id:0,name:"Wheat",short_name:"Wh"},{id:1,name:"Barley",short_name:"Ba"},{id:2,name:"Oats",short_name:"Oa"},{id:3,name:"Canola",short_name:"Ca"},{id:4,name:"Grain Legume",short_name:"GL"},{id:5,name:"Legume Pasture",short_name:"LP"},{id:6,name:"Fallow",short_name:"Fa"},{id:7,name:"Grass Pasture",short_name:"GP"}],i=[{id:0,name:"None"},{id:1,name:"Light"},{id:2,name:"Heavy"}],s=[{id:0,name:"Burnt or Removed"},{id:1,name:"Retained"}],o=async()=>{if(t.errors=[],c(),d(),t.errors.length===0)try{const O=await nQ({socrates:ut(t.socrates),parameters:ut(t.parameters)});t.results=O.run,w("resultsOfInputPage")}catch(O){t.errors.push(O.message),console.error(O)}},a=async()=>{t.errors=[];try{t.socrates=await iQ(),h()}catch(O){t.errors.push(O.message),console.error(O)}t.showLoadDialog=!1},u=O=>{t.selectedFile=O.target.files[0];const _=new FileReader;_.onload=E=>{try{const T=JSON.parse(E.target.result);T&&(T.version?(t.socrates=T,h()):(t.socratesOld=T,g()))}catch{t.errors.push("Invalid JSON file.")}},_.readAsText(t.selectedFile),t.showLoadDialog=!1};function c(){try{if(t.socrates.version=t.version,t.socrates.soil.soil_properties=parseInt(t.soilProperties),(!t.socrates.soil.soil_properties&&t.socrates.soil.soil_properties!==0||t.socrates.soil.soil_properties<0&&t.socrates.soil.soil_properties>7)&&t.errors.push("Select soil properties"),t.socrates.soil.clay_percentage=parseFloat(t.clay),t.socrates.soil.cec=parseFloat(t.cec),t.socrates.soil.initial_oc=parseFloat(t.initialOC),t.socrates.simulation.initial_oc===0&&t.errors.push("Insert a value for Initial OC%"),t.socrates.simulation.start_year=parseInt(t.startYear),!t.socrates.simulation.start_year&&t.socrates.simulation.start_year!==0&&t.errors.push("Simulation Start year missing"),t.socrates.simulation.period_length=parseInt(t.periodLength),(!t.socrates.simulation.period_length&&t.socrates.simulation.period_length!==0||t.socrates.simulation.period_length<=0)&&t.errors.push("Add simulation period in years"),t.socrates.simulation.rotation_length=parseInt(t.rotationLength),(!t.socrates.simulation.rotation_length&&t.socrates.simulation.rotation_length!==0||t.socrates.simulation.rotation_length<1)&&t.errors.push("Add length of rotation in years"),t.socrates.climate.climate_method_data_entry=t.climateMethodDataEntry,(!t.socrates.climate.climate_method_data_entry&&t.socrates.climate.climate_method_data_entry!==0||t.socrates.climate.climate_method_data_entry<0)&&t.errors.push("Missing: Method of entering data"),t.socrates.climate.average_annual_rainfall=parseFloat(t.averageAnnualRainFall),t.socrates.climate.annual_mean_temperature=parseFloat(t.annualMeanTemperature),t.socrates.climate.randomize_rain_and_temperature=t.randomizeRainAndTemperature,t.socrates.climate.annual_rainfall=[],C(t.annualRainfall))for(let O of t.annualRainfall)t.socrates.climate.annual_rainfall.push({rainfall:parseFloat(O==null?void 0:O.rainfall)});if(t.socrates.climate.month_rain_temp=[],C(t.monthRainTemp))for(let O of t.monthRainTemp)t.socrates.climate.month_rain_temp.push({rainfall:parseFloat(O==null?void 0:O.rainfall),temperature:parseFloat(O==null?void 0:O.temperature)});t.socrates.rotation=[];for(let O of t.rotationTable){const _={year:parseInt(O.year),plant:parseInt(O.plant),stubble:parseInt(O.stubble),graze:parseInt(O.graze),fertiliser:parseFloat(O.fertiliser)};if(!_.plant&&_.plant!==0||_.plant<0||_.plant>7)t.errors.push(`Missing or incorrect plant in rotation year #${_.year}`);else if(_.plant<5&&!_.stubble&&_.stubble!==0&&t.errors.push(`Stubble management missing in rotation year #${_.year}`),!_.fertiliser&&_.fertiliser!==0&&t.errors.push(`Fertiliser missing in rotation year #${_.year}`),_.plant!==6&&!_.graze&&_.graze!==0){debugger;t.errors.push(`Graze management missing in rotation year #${_.year}`)}t.socrates.rotation.push(_)}if(t.socrates.rotation<1&&t.errors.push("Add rotation crop"),t.socrates.yields.yields_method_data_entry=t.yieldsMethodDataEntry,t.socrates.yields.annual_yields=[],C(t.annualYields)){const O=[];for(let _ of t.annualYields){const E={year:_==null?void 0:_.year,rotation:_==null?void 0:_.rotation,yield:parseFloat(_.yield)};!E.yield&&E.yield!==0&&O.push(`Missing: yield in year #${E.year}`),t.socrates.yields.annual_yields.push(E)}O.length>0&&O.push("Missing: some yield values")}else t.socrates.yields.annual_yields=[]}catch(O){t.errors.push(`${O.name} ${O.message}`),console.error(O)}}function d(){for(let O of Object.keys(t.parameters))t.parameters[O]=parseFloat(t.parameters[O])}function h(){try{t.version=t.socrates.version||vd.version,t.soilProperties=t.socrates.soil.soil_properties,t.clay=t.socrates.soil.clay_percentage,t.cec=t.socrates.soil.cec,t.initialOC=t.socrates.soil.initial_oc,t.startYear=t.socrates.simulation.start_year,t.periodLength=t.socrates.simulation.period_length,t.rotationLength=t.socrates.simulation.rotation_length,t.climateMethodDataEntry=t.socrates.climate.climate_method_data_entry,t.averageAnnualRainFall=t.socrates.climate.average_annual_rainfall,t.annualMeanTemperature=t.socrates.climate.annual_mean_temperature,t.randomizeRainAndTemperature=t.socrates.climate.randomize_rain_and_temperature,t.annualRainfall=t.socrates.climate.annual_rainfall,t.monthRainTemp=t.socrates.climate.month_rain_temp,t.rotationTable=t.socrates.rotation,t.yieldsMethodDataEntry=t.socrates.yields.yields_method_data_entry,t.annualYields=t.socrates.yields.annual_yields}catch(O){t.errors.push(O.message),console.error(O)}}function g(){try{t.version=vd.version,t.soilProperties=t.socratesOld.soil.soilProperties,t.clay=t.socratesOld.soil.clayPercentage,t.cec=t.socratesOld.soil.cec||0,t.initialOC=t.socratesOld.soil.initialOC,t.startYear=t.socratesOld.simulation.startYear,t.periodLength=t.socratesOld.simulation.periodLength,t.rotationLength=t.socratesOld.simulation.rotationLength,t.climateMethodDataEntry=t.socratesOld.climate.climateMethodDataEntry,t.averageAnnualRainFall=t.socratesOld.climate.averageAnnualRainfall,t.annualMeanTemperature=t.socratesOld.climate.annualMeanTemperature,t.randomizeRainAndTemperature=t.socratesOld.climate.randomizeRainAndTemperature,t.annualRainfall=t.socratesOld.climate.annualRainFall,t.monthRainTemp=t.socratesOld.climate.monthRainTemp,t.rotationTable=t.socratesOld.rotation,t.yieldsMethodDataEntry=t.socratesOld.yields.yieldsMethodDataEntry,t.annualYields=t.socratesOld.yields.annualYields,t.socratesOld.parametersEdited&&(t.parameters=t.socratesOld.parameters)}catch(O){t.errors.push(O.message),console.error(O)}}function m(){t.$reset()}async function b(){const O=await VQ({results:t.results,initialOC:t.initialOC}),_="data.csv",E=new Blob([O],{type:"text/csv;charset=utf-8;"});if(navigator.msSaveBlob)navigator.msSaveBlob(E,_);else{const T=document.createElement("a");if(T.download!==void 0){const P=URL.createObjectURL(E);T.setAttribute("href",P),T.setAttribute("download",_),T.style.visibility="hidden",document.body.appendChild(T),T.click(),document.body.removeChild(T)}}}function v(){c();const O=ut(t.socrates),_=JSON.stringify(O,null,2),E=new Blob([_],{type:"application/json"}),T=window.URL.createObjectURL(E),P=document.createElement("a");P.style.display="none",P.href=T,P.download="socrates.json",document.body.appendChild(P),P.click(),window.URL.revokeObjectURL(T),document.body.removeChild(P)}function w(O){setTimeout(function(){document.getElementById(O).scrollIntoView({behavior:"smooth"})},100)}function y(){t.displayRunInNotebook=!0;const O=JSON.stringify(t.socrates),_=JSON.stringify(t.parameters);t.jupyterSource=["!pip install requests","import os","import json","import requests","socrates_json = '''",O,"'''","socrates = json.loads(socrates_json)","parameters_json = '''",_,"'''","parameters = json.loads(parameters_json)",'api_url = "https://api.socrates-soil.net/run"',"payload = {"," 'socrates' : socrates,"," 'parameters': parameters","}","response = requests.post(api_url, json=payload)","results = response.json()","results"]}function C(O){return O==null?!1:typeof O[Symbol.iterator]=="function"}return(O,_)=>{const E=os,T=ci,P=b2,R=qZ,$=Y9,D=IU,j=LU,A=el,U=UZ,ue=VZ,ce=HZ,ne=BZ,Q=FZ,ie=LZ,ee=mZ,_e=N9,Ee=DW;return K(),ve("div",KQ,[H(T,{gutter:20,class:"flex flex-col justify-center items-center"},{default:B(()=>[H(E,{span:24,xl:20,lg:20,md:24,sm:24,xs:24},{default:B(()=>[qQ]),_:1}),S(t).errors.length>0?(K(),Te(E,{key:0,span:24,xl:20,lg:20,md:20,sm:24,xs:24,class:"py-10"},{default:B(()=>[H(T,{span:24,class:""},{default:B(()=>[I("div",YQ,[GQ,(K(!0),ve(it,null,En(S(t).errors,Z=>(K(),ve("p",XQ,pt(Z),1))),256))])]),_:1})]),_:1})):ke("",!0),H(E,{span:24,xl:20,lg:20,md:20,sm:24,xs:24},{default:B(()=>[H(P,{onClick:_[0]||(_[0]=Z=>S(t).showParameters=!S(t).showParameters)},{default:B(()=>[le(pt(S(t).showParameters?"Hide Parameters":"Show Parameters"),1)]),_:1}),H($,{modelValue:S(t).showParameters,"onUpdate:modelValue":_[3]||(_[3]=Z=>S(t).showParameters=Z),title:"Climate","with-header":!1,direction:"ltr",class:"min-w-fit"},{footer:B(()=>[I("div",ZQ,[H(P,{type:"primary",onClick:_[2]||(_[2]=Z=>S(t).showParameters=!1)},{default:B(()=>[le("Close")]),_:1})])]),default:B(()=>[JQ,I("p",null,[H(P,{onClick:_[1]||(_[1]=Z=>S(t).resetParameters())},{default:B(()=>[le("Reset Parameters")]),_:1})]),H(R,{parameters:S(t).parameters},null,8,["parameters"])]),_:1},8,["modelValue"]),QQ,H(T,null,{default:B(()=>[H(E,{class:"py-1"},{default:B(()=>[I("div",eee,[tee,H(j,{modelValue:S(t).soilProperties,"onUpdate:modelValue":_[4]||(_[4]=Z=>S(t).soilProperties=Z),class:"m-2",placeholder:"Select"},{default:B(()=>[(K(),ve(it,null,En(n,Z=>H(D,{key:Z.id,label:Z.type,value:Z.id},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),H(E,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:B(()=>[I("div",nee,[H(A,{modelValue:S(t).clay,"onUpdate:modelValue":_[5]||(_[5]=Z=>S(t).clay=Z),placeholder:"Clay %",disabled:S(t).soilProperties!==6},{prepend:B(()=>[le("Clay %")]),_:1},8,["modelValue","disabled"])])]),_:1}),H(E,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:B(()=>[I("div",ree,[H(A,{modelValue:S(t).cec,"onUpdate:modelValue":_[6]||(_[6]=Z=>S(t).cec=Z),placeholder:"CEC",disabled:S(t).soilProperties!==7},{prepend:B(()=>[le("CEC")]),_:1},8,["modelValue","disabled"])])]),_:1}),H(E,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:B(()=>[I("div",iee,[H(A,{modelValue:S(t).initialOC,"onUpdate:modelValue":_[7]||(_[7]=Z=>S(t).initialOC=Z),placeholder:"OC"},{prepend:B(()=>[le("Initial OC %")]),_:1},8,["modelValue"])])]),_:1})]),_:1}),see,H(T,null,{default:B(()=>[H(E,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:B(()=>[I("div",oee,[H(A,{modelValue:S(t).startYear,"onUpdate:modelValue":_[8]||(_[8]=Z=>S(t).startYear=Z),placeholder:"(eg. 1990)"},{prepend:B(()=>[le("Start year")]),_:1},8,["modelValue"])])]),_:1}),H(E,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:B(()=>[I("div",aee,[H(A,{modelValue:S(t).periodLength,"onUpdate:modelValue":_[9]||(_[9]=Z=>S(t).periodLength=Z),placeholder:"Period"},{prepend:B(()=>[le("Simulation period in years")]),_:1},8,["modelValue"])])]),_:1}),H(E,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:B(()=>[I("div",lee,[H(A,{modelValue:S(t).rotationLength,"onUpdate:modelValue":_[10]||(_[10]=Z=>S(t).rotationLength=Z),placeholder:"(eg. Peas - Wheat would be 2)",onChange:S(t).updateRotationLength},{prepend:B(()=>[le("Length of rotation in years")]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),I("div",null,[uee,H(T,null,{default:B(()=>[H(E,{class:"py-1"},{default:B(()=>[H(T,null,{default:B(()=>[H(E,{xl:4,lg:4,md:4,sm:24,xs:24},{default:B(()=>[cee]),_:1}),H(E,{xl:20,lg:20,md:20,sm:24,xs:24},{default:B(()=>[I("div",null,[H(j,{modelValue:S(t).climateMethodDataEntry,"onUpdate:modelValue":_[11]||(_[11]=Z=>S(t).climateMethodDataEntry=Z),class:"w-full",placeholder:"Select"},{default:B(()=>[H(D,{label:"Enter yearly rainfall & mean temperature",value:0}),H(D,{label:"Enter average rainfall & mean temperature",value:1}),H(D,{label:"Enter monthly rainfall & mean temperature",value:4})]),_:1},8,["modelValue"]),S(t).climateMethodDataEntry===4?(K(),Te(P,{key:0,onClick:_[12]||(_[12]=Z=>S(t).toggleMonthlyClimate=!S(t).toggleMonthlyClimate)},{default:B(()=>[le(pt(S(t).toggleMonthlyClimate?"Hide Monthly Rain/Temperature":"Show Monthly Rain/Temperature"),1)]),_:1})):ke("",!0),S(t).climateMethodDataEntry===0?(K(),Te(P,{key:1,onClick:_[13]||(_[13]=Z=>S(t).toggleYearlyClimate=!S(t).toggleYearlyClimate)},{default:B(()=>[le(pt(S(t).toggleYearlyClimate?"Hide Yearly Rain":"Show Yearly Rain"),1)]),_:1})):ke("",!0)])]),_:1})]),_:1})]),_:1}),H(E,{class:"py-1"},{default:B(()=>[fee]),_:1}),H(E,{class:"py-1",xl:24,lg:24,md:24,sm:24,xs:24},{default:B(()=>[S(t).climateMethodDataEntry===4?(K(),Te($,{key:0,title:"Climate",modelValue:S(t).toggleMonthlyClimate,"onUpdate:modelValue":_[15]||(_[15]=Z=>S(t).toggleMonthlyClimate=Z),"with-header":!1,direction:"rtl",class:"min-w-fit"},{footer:B(()=>[I("div",dee,[H(P,{type:"primary",onClick:_[14]||(_[14]=Z=>S(t).toggleMonthlyClimate=!1)},{default:B(()=>[le("Close")]),_:1})])]),default:B(()=>[H(U,{monthRainTemp:S(t).monthRainTemp,periodLength:S(t).periodLength,startYear:S(t).startYear,onUpdateMonthRainTemps:S(t).updateMonthRainTemps},null,8,["monthRainTemp","periodLength","startYear","onUpdateMonthRainTemps"])]),_:1},8,["modelValue"])):ke("",!0),S(t).climateMethodDataEntry===0?(K(),Te($,{key:1,title:"Climate",modelValue:S(t).toggleYearlyClimate,"onUpdate:modelValue":_[17]||(_[17]=Z=>S(t).toggleYearlyClimate=Z),direction:"rtl","with-header":!1,class:"min-w-fit"},{footer:B(()=>[I("div",hee,[H(P,{type:"primary",onClick:_[16]||(_[16]=Z=>S(t).toggleYearlyClimate=!1)},{default:B(()=>[le("Close")]),_:1})])]),default:B(()=>[H(ue,{annualRainfall:S(t).annualRainfall,periodLength:S(t).periodLength,startYear:S(t).startYear,onUpdateAnnualRainfall:S(t).updateRainfall},null,8,["annualRainfall","periodLength","startYear","onUpdateAnnualRainfall"])]),_:1},8,["modelValue"])):ke("",!0)]),_:1}),H(E,{class:"py-1",xl:12,lg:12,md:12,sm:12,xs:24},{default:B(()=>[I("div",pee,[H(A,{modelValue:S(t).averageAnnualRainFall,"onUpdate:modelValue":_[18]||(_[18]=Z=>S(t).averageAnnualRainFall=Z),placeholder:"Rain",disabled:S(t).climateMethodDataEntry===4||S(t).climateMethodDataEntry===0},{prepend:B(()=>[le("Average annual rainfall (mm)")]),_:1},8,["modelValue","disabled"])])]),_:1}),H(E,{class:"py-1",xl:12,lg:12,md:12,sm:12,xs:24},{default:B(()=>[I("div",gee,[H(A,{modelValue:S(t).annualMeanTemperature,"onUpdate:modelValue":_[19]||(_[19]=Z=>S(t).annualMeanTemperature=Z),placeholder:"Temperature",disabled:S(t).climateMethodDataEntry===4},{prepend:B(()=>[le("Annual mean temperature (℃)")]),_:1},8,["modelValue","disabled"])])]),_:1}),H(E,{class:"py-1"},{default:B(()=>[I("div",null,[mee,H(j,{modelValue:S(t).randomizeRainAndTemperature,"onUpdate:modelValue":_[20]||(_[20]=Z=>S(t).randomizeRainAndTemperature=Z),class:"m-2",placeholder:"Select"},{default:B(()=>[H(D,{label:"No",value:0}),H(D,{label:"Yes",value:1})]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),I("div",null,[vee,S(t).rotationTableMessage?(K(),Te(T,{key:0,span:24},{default:B(()=>[le(pt(S(t).rotationTableMessage),1)]),_:1})):ke("",!0),H(T,{class:"border-solid border-1 border-b-0 border-gray-200"},{default:B(()=>[H(E,{span:1,class:"p-2 text-center"},{default:B(()=>[le("Year")]),_:1}),H(E,{span:5,class:"p-2 text-center"},{default:B(()=>[le("Plant")]),_:1}),H(E,{span:5,class:"p-2 text-center"},{default:B(()=>[le("Stubble")]),_:1}),H(E,{span:5,class:"p-2 text-center"},{default:B(()=>[le("Graze")]),_:1}),H(E,{span:5,class:"p-2 text-center"},{default:B(()=>[le("Fertiliser")]),_:1}),H(E,{span:3})]),_:1}),(K(!0),ve(it,null,En(S(t).rotationTable,(Z,Ge)=>(K(),Te(T,{key:Ge,class:"border-solid border-1 border-gray-200"},{default:B(()=>[H(E,{span:2,class:"p-2"},{default:B(()=>[H(A,{modelValue:Z.year,"onUpdate:modelValue":De=>Z.year=De},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),H(E,{span:5,class:"p-2"},{default:B(()=>[H(j,{modelValue:Z.plant,"onUpdate:modelValue":De=>Z.plant=De},{default:B(()=>[(K(),ve(it,null,En(r,De=>H(D,{key:De.id,label:De.name,value:De.id},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),H(E,{span:5,class:"p-2"},{default:B(()=>[Z.plant<5?(K(),ve("div",bee,[H(j,{modelValue:Z.stubble,"onUpdate:modelValue":De=>Z.stubble=De,disabled:Z.plant===5||Z.plant===6||Z.plant===7},{default:B(()=>[(K(),ve(it,null,En(s,De=>H(D,{key:De.id,label:De.name,value:De.id},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])])):ke("",!0)]),_:2},1024),H(E,{span:5,class:"p-2"},{default:B(()=>[Z.plant!==6?(K(),ve("div",yee,[H(j,{modelValue:Z.graze,"onUpdate:modelValue":De=>Z.graze=De,disabled:Z.plant===6},{default:B(()=>[(K(),ve(it,null,En(i,De=>H(D,{key:De.id,label:De.name,value:De.id},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])])):ke("",!0)]),_:2},1024),H(E,{span:5,class:"p-2"},{default:B(()=>[H(A,{modelValue:Z.fertiliser,"onUpdate:modelValue":De=>Z.fertiliser=De},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),H(E,{span:2,class:"p-2"},{default:B(()=>[Ge===S(t).rotationLength-1?(K(),Te(P,{key:0,link:"",type:"primary",size:"small",class:"w-full",onClick:Cr(De=>S(t).deleteRotation(Ge),["prevent"])},{default:B(()=>[le(" Remove ")]),_:2},1032,["onClick"])):ke("",!0)]),_:2},1024)]),_:2},1024))),128)),H(T,null,{default:B(()=>[H(P,{class:"mt-4 w-full",onClick:S(t).addRotation},{default:B(()=>[le("Add Rotation")]),_:1},8,["onClick"])]),_:1}),_ee]),I("div",null,[wee,H(T,null,{default:B(()=>[H(E,{class:"py-1"},{default:B(()=>[H(T,null,{default:B(()=>[H(E,{xl:4,lg:4,md:4,sm:24,xs:24},{default:B(()=>[xee]),_:1}),H(E,{xl:20,lg:20,md:20,sm:24,xs:24},{default:B(()=>[I("div",null,[H(j,{modelValue:S(t).yieldsMethodDataEntry,"onUpdate:modelValue":_[21]||(_[21]=Z=>S(t).yieldsMethodDataEntry=Z),class:"w-full",placeholder:"Select",onChange:S(t).selectYield},{default:B(()=>[H(D,{label:"Enter annual yields manually",value:0}),H(D,{label:"The model will calculate annual yields",value:1})]),_:1},8,["modelValue","onChange"]),S(t).yieldsMethodDataEntry===0?(K(),Te(P,{key:0,class:"my-2",onClick:_[22]||(_[22]=Z=>S(t).toggleAnnualYields=!S(t).toggleAnnualYields)},{default:B(()=>[le(pt(S(t).toggleAnnualYields?"Hide Annual Yields":"Show Annual Yields"),1)]),_:1})):ke("",!0)])]),_:1})]),_:1})]),_:1})]),_:1}),H($,{title:"Annual Yields",modelValue:S(t).toggleAnnualYields,"onUpdate:modelValue":_[24]||(_[24]=Z=>S(t).toggleAnnualYields=Z),direction:"rtl","with-header":!1,class:"min-w-fit"},{footer:B(()=>[I("div",Cee,[H(P,{type:"primary",onClick:_[23]||(_[23]=Z=>S(t).toggleAnnualYields=!1)},{default:B(()=>[le("Close")]),_:1})])]),default:B(()=>[H(ce,{annualYields:S(t).annualYields,startYear:S(t).startYear,periodLength:S(t).periodLength,rotationLenght:S(t).rotationTable.length,rotationTable:S(t).rotationTable,plants:r,onUpdateYields:S(t).updateYields},null,8,["annualYields","startYear","periodLength","rotationLenght","rotationTable","onUpdateYields"])]),_:1},8,["modelValue"])]),S(t).errors.length>0?(K(),Te(E,{key:0,span:24,xl:20,lg:20,md:24,sm:24,xs:24,class:"py-10"},{default:B(()=>[H(T,{span:24,class:"flex flex-col justify-center items-center"},{default:B(()=>[I("div",See,[Oee,(K(!0),ve(it,null,En(S(t).errors,Z=>(K(),ve("p",Eee,pt(Z),1))),256))])]),_:1})]),_:1})):ke("",!0)]),_:1}),H(E,{span:24,xl:20,lg:20,md:20,sm:24,xs:24,class:"py-10"},{default:B(()=>[I("div",null,[H(P,{onClick:_[25]||(_[25]=Z=>o()),size:"large",type:"primary"},{default:B(()=>[le("Run")]),_:1}),H(P,{onClick:_[26]||(_[26]=Z=>S(t).showLoadDialog=!0),size:"large",type:"primary"},{default:B(()=>[le("Load Data ")]),_:1}),H(P,{onClick:_[27]||(_[27]=Z=>m()),size:"large",type:"warning"},{default:B(()=>[le("Clear Form")]),_:1}),H(P,{onClick:_[28]||(_[28]=Z=>v()),size:"large",type:"info"},{default:B(()=>[le("Save Inputs")]),_:1})])]),_:1}),S(t).results?(K(),Te(E,{key:1,span:24,xl:20,lg:20,md:20,sm:24,xs:24,id:"resultsOfInputPage"},{default:B(()=>[H(T,{span:24,class:"max-h-[600px]"},{default:B(()=>[H(ne,{label:"Organic Carbon (0-10cm)","x-axis":S(t).results.years,data:S(t).results.organic_carbon.data_points},null,8,["label","x-axis","data"])]),_:1})]),_:1})):ke("",!0),S(t).results?(K(),Te(E,{key:2,span:24,xl:20,lg:20,md:20,sm:24,xs:24},{default:B(()=>[H(Q,{results:S(t).results},null,8,["results"])]),_:1})):ke("",!0),S(t).results?(K(),Te(E,{key:3,span:24,xl:20,lg:20,md:20,sm:24,xs:24},{default:B(()=>[H(ie,{results:S(t).results,"initial-o-c":S(t).initialOC},null,8,["results","initial-o-c"])]),_:1})):ke("",!0),S(t).results?(K(),Te(E,{key:4,span:24,xl:20,lg:20,md:20,sm:24,xs:24},{default:B(()=>[H(ee,{label:"Total greenhouse gas emissions",data:S(t).results},null,8,["data"])]),_:1})):ke("",!0),S(t).results?(K(),Te(E,{key:5,span:24,xl:20,lg:20,md:20,sm:24,xs:24,class:"py-10"},{default:B(()=>[I("div",null,[H(P,{onClick:_[29]||(_[29]=Z=>b()),"data-toggle":"modal",size:"large",type:"primary"},{default:B(()=>[le("Save Results")]),_:1}),S(t).results?(K(),Te(P,{key:0,onClick:_[30]||(_[30]=Z=>y()),size:"large",type:"primary"},{default:B(()=>[le("Run in notebook ")]),_:1})):ke("",!0),H(P,{onClick:_[31]||(_[31]=Z=>w("topOfInputPage")),size:"large",type:"info"},{default:B(()=>[le("Scroll to Top")]),_:1})])]),_:1})):ke("",!0)]),_:1}),H(T,{class:"pb-20"}),H(_e,{modelValue:S(t).displayRunInNotebook,"onUpdate:modelValue":_[33]||(_[33]=Z=>S(t).displayRunInNotebook=Z),title:"## Copy and Paste the following code in a jupyter notebook ##"},{footer:B(()=>[I("div",Pee,[H(P,{type:"primary",onClick:_[32]||(_[32]=Z=>S(t).displayRunInNotebook=!1)},{default:B(()=>[le("Close")]),_:1})])]),default:B(()=>[I("div",Mee,[I("code",null,[I("ul",Tee,[(K(!0),ve(it,null,En(S(t).jupyterSource,Z=>(K(),ve("li",Aee,pt(Z),1))),256))])])])]),_:1},8,["modelValue"]),H(_e,{modelValue:S(t).showLoadDialog,"onUpdate:modelValue":_[37]||(_[37]=Z=>S(t).showLoadDialog=Z),title:"Load Data"},{default:B(()=>[H(Ee,null,{default:B(()=>[I("input",{type:"file",onChange:_[34]||(_[34]=Z=>u(Z)),onClick:_[35]||(_[35]=Z=>Z.target.value=""),accept:"application/json"},null,32)]),_:1}),Ree,kee,Lee,Iee,I("div",null,[H(P,{onClick:_[36]||(_[36]=Z=>a()),size:"large",type:"primary"},{default:B(()=>[le("Load Example Data")]),_:1})])]),_:1},8,["modelValue"])])}}},Yp=""+new URL("../images/edit_help.png",import.meta.url).href,Fee={},Dee={class:"mx-4"},Nee=I("h2",{class:"center",style:{"word-break":"break-all"}},"S.O.C.R.A.T.E.S. Help",-1),Bee=I("div",{class:"col-md-1"},null,-1),zee=I("div",{class:"col-md-10"},[I("div",{class:"basic-form"},[I("h2",null,"INPUTS"),I("h3",null,"Soil"),I("div",{class:"border-noshadow"},[I("h4",null,"Soil content"),I("p",null,"SOCRATES needs the Cation Exchange Capacity (CEC) of the soil. If CEC is not available then estimates are made from the clay % or the soil type. If you have the CEC value use this, otherwise Clay% or lastly soil type."),I("h4",null,"Clay %"),I("p",null,[le("Enter the % of "),I("strong",null,"clay"),le(" in the soil as indicated on a soil test.")]),I("h4",null,"CEC"),I("p",null,[le("Enter the "),I("strong",null,"CEC"),le(" (Cation Exchange Capacity) in mmol/kg as indicated on a soil test.")]),I("h4",null,"Initial OC %"),I("p",null,[le("Enter the "),I("strong",null,"OC"),le(" (Organic Carbon percentage) (0-10 cm) as indicated on a soil test. As soils can vary quite widely due to past management, a starting value is important to obtain.")])]),I("h3",null,"Simulation"),I("div",{class:"border-noshadow"},[I("h4",null,"Start year (eg. 1990)"),I("p",null,[le("This is needed for the graphs and when stored weather data is used (See "),I("strong",null,"Simulation period in years"),le(").")]),I("h4",null,"Simulation period in years"),I("p",null,"This is the length of time the simulation will run. As changes are usually very slow, a period of ten years is a good starting point."),I("h4",null,"Length of rotation in years (eg. Peas - Wheat would be 2)"),I("p",null,"The length of rotation or cropping/pasture sequence can be short (ie. 2) or very long if a non-repeating sequence is used. For example, if the simulation runs for tens years then a rotation can also be ten years. Other examples include;"),I("ul",null,[I("li",null,"Fallow - Wheat 2 years"),I("li",null,"Fallow - Wheat - Pasture 3 years"),I("li",null,"Wheat - Wheat - Pasture - Pasture 4 years")])]),I("h3",null,"Climate"),I("div",{class:"border-noshadow"},[I("h4",null,"Method of entering data"),I("p",null,"SOCRATES offers the user the option to enter their own weather data in various ways."),I("ul",null,[I("li",null,[le("Enter yearly rainfall & mean temperature (Select and click "),I("img",{src:Yp,height:"20px"}),le(" to edit) ")]),I("li",null,[le("Enter average rainfall & mean temperature (Select and click "),I("img",{src:Yp,height:"20px"}),le(" to edit) ")]),I("li",null,[le("Enter monthly rainfall & mean temperature (Select and click "),I("img",{src:Yp,height:"20px"}),le(" to edit) ")])]),I("h4",null,"Randomise annual rainfall and temperature"),I("p",null,"This option is only available when average rainfall is selected. This allows the model to generate variations in rainfall from year to year (+-30%) rather than the rainfall value being the same for each year.")]),I("h3",null,"Rotation"),I("div",{class:"border-noshadow"},[I("p",null,"The amount of organic carbon added or lost from the soil varies between crops, pasture and fallow. It is also influenced by management factors such as burning of stubbles, hay or stubble removal, grazing and nitrogen application."),I("p",null,[le("Information is entered for each of the rotations (There is a maximum length of "),I("strong",null,"20"),le(" different crops or phases in one rotation sequence). The number of years is determined by the entry in the "),I("strong",null,"Length of rotation in years"),le(" (Simulation section) box. For example, a Fallow - Wheat - Pasture rotation would have three years displayed with information required on the management of each phase of the rotation.")]),I("p",null,"Options: For each phase of the rotation a crop, pasture or fallow option needs to be selected."),I("table",{class:"table table-fluid table-bordered"},[I("tr",null,[I("th",null,"Year"),I("th",null,"Stubble management"),I("th",null,"Grazed"),I("th",null,"Fertiliser N")]),I("tr",null,[I("td",null,"1...20"),I("td",null,"Enter whether the stubble is removed or burnt. Removal may be as hay, stubble harvesting or burning. "),I("td",null,"Grazing is another form of removal. The intensity of grazing determines the amount removed."),I("td",null,"Enter the amount of nitrogen in kg/ha that is applied to the paddock.")])])]),I("h3",null,"Yields"),I("div",{class:"border-noshadow"},[I("h4",null,"Method of entering yields"),I("p",null,"SOCRATES requires dry matter production (kg/ha) for pastures and crop yield (kg/ha) for crops."),I("h4",null,"Enter annual yields manually"),I("p",null,[le("Enter seasonal grain yields (kg/ha) for crops and dry matter production (kg/ha) for pasture. You can use your own records or hypothetical values. "),I("br"),le("The yield is entered opposite the corresponding year. The total dry matter production (including roots) will be estimated from these figures. ")]),I("h4",null,"Model will calculate annual yields"),I("p",null,"When yields are not available, SOCRATES can estimate them using a modified form of the French-Schultz growing season rainfall (+ stored water) vs yield model (these can be modified by the user if site specific data is available, see next paragraph). We assume that during as average season crops and pastures will have available (before evaporation) approximately 70% of the growing season rainfall.")])]),I("div",{class:"basic-form"},[I("h2",null,"RESULTS"),I("h3",null,"Organic carbon (%)"),I("div",{class:"border-noshadow"},[I("p",null,"This graph reports the change in soil organic carbon (0-10 cm) based on the rotation, management, sol type and location.")]),I("h3",null,"Yield"),I("div",{class:"border-noshadow"},[I("p",null,"The grain and pasture yields (kg/ha) each year")]),I("h3",null,"Table of management"),I("div",{class:"border-noshadow"},[I("p",null,"this provides a summary of the crop/pasture and management imposed every year")]),I("h3",null,"Simulation Results"),I("div",{class:"border-noshadow"},[I("p",null,"An annualised output table is provided including:"),I("ul",null,[I("li",null,"Crop - Crop of Pasture Type."),I("li",null,"Rain - Annual rainfall (mm)."),I("li",null,"Yield - Grain or Pasture production (kg/ha)."),I("li",null,"Biomass - the amount of carbon left after removing grain and after grazing (if any), including roots. "),I("li",null,"Fert - the amount of nitrogen fertiliser applied (kg N/ha)."),I("li",null,"Urine - the amount of urine (as N) produced by the animals that graze the crop residue or pasture. "),I("li",null,"OC (0-10 cm) - the change in soil organic carbon (%) over time in response to agricultural management (e.g. biomass, grazing, rotation). ")]),I("p",null,[le("The following are all expressed as CO"),I("sub",null,"2"),le(" equivalents (kg/ha) using GWPs from the IPCC Fifth Assessment Report, N"),I("sub",null,"2"),le("O = 265, CH"),I("sub",null,"4"),le(" = 28")]),I("ul",null,[I("li",null,[le("N"),I("sub",null,"2"),le("O (fertiliser) - N"),I("sub",null,"2"),le("O produced from the application of nitrogen fertiliser - current 1% of nitrogen applied (kg N/ha). N"),I("sub",null,"2"),le("O Global Warming Potential = 296 ")]),I("li",null,[le("N"),I("sub",null,"2"),le("O mineralised - the amount of N"),I("sub",null,"2"),le("O produced from the nitrogen mineralised from soil organic matter. ")]),I("li",null,[le("N"),I("sub",null,"2"),le("O residues - the amount of N"),I("sub",null,"2"),le("O produced as result of the decomposition of crop and root residues. ")]),I("li",null,[le("N"),I("sub",null,"2"),le("O (indirect) - N"),I("sub",null,"2"),le("O produced from volatilisation of nitrogen applied as fertiliser and urine. ")]),I("li",null,[le("N"),I("sub",null,"2"),le("O (urine) - N"),I("sub",null,"2"),le("O from urine from animals currently 1% of total nitrogen in urine. This does not currently include N"),I("sub",null,"2"),le("O from dung from animals. ")]),I("li",null,[le("CH"),I("sub",null,"4"),le(" (animals) - methane produced from animals. ")]),I("li",null,[le("Total - total greenhouse gas emissions"),I("br"),le(" As each year is calculated, the cumulative emissions (i.e. adding successive years) are displayed. ")])])])])],-1);function Hee(e,t){const n=os,r=ci;return K(),ve("div",Dee,[H(r,{gutter:20,class:"flex flex-col justify-center items-center"},{default:B(()=>[H(n,{span:24,xl:20,lg:20,md:24,sm:24,xs:24},{default:B(()=>[Nee]),_:1}),H(n,{span:24,xl:20,lg:20,md:24,sm:24,xs:24},{default:B(()=>[Bee,zee]),_:1})]),_:1})])}const Wee=Uu(Fee,[["render",Hee]]),jee={},Vee={class:"mx-4"},Uee=I("h2",{class:"center",style:{"word-break":"break-all"}},"Contact",-1),Kee=I("div",{class:"col-md-1"},null,-1),qee=I("div",{class:"col-md-10"},[I("div",{class:"basic-form"},[I("h2",{class:"text-2xl"},[le("For further information on S.O.C.R.A.T.E.S. "),I("br"),I("br"),le(" Please contact the project coordinator Professor Peter Grace ")]),I("p",null," Level 7, P Block "),I("p",null," Queensland University of Technology"),I("p",null," Gardens Point Campus"),I("p",null," GPO Box 2434"),I("p",null," BRISBANE QLD 4001"),I("p",null," Phone: (07) 3138 1904"),I("p",null," Fax: (07) 3138 4438"),I("p",null,[le(" Email: "),I("a",{href:"mailto:ife@qut.edu.au"},"pr.grace@qut.edu.au")])])],-1);function Yee(e,t){const n=os,r=ci;return K(),ve("div",Vee,[H(r,{gutter:20,class:"flex flex-col justify-center items-center"},{default:B(()=>[H(n,{span:24,xl:20,lg:20,md:24,sm:24,xs:24},{default:B(()=>[Uee]),_:1}),H(n,{xl:20,lg:20,md:20,sm:24,xs:24},{default:B(()=>[Kee,qee]),_:1})]),_:1})])}const Gee=Uu(jee,[["render",Yee]]),Xee=qK({history:cK(),routes:[{path:"/",name:"home",component:oq},{path:"/input",name:"input",component:$ee},{path:"/help",name:"help",component:Wee},{path:"/contact",name:"contact",component:Gee},{path:"/about",name:"about",component:gO}]});const Uv=PF(XK),Jee=GZ();Uv.use(Xee);Uv.use(Jee);Uv.mount("#app"); diff --git a/assets/index-ca96583d.css b/assets/index-ca96583d.css new file mode 100644 index 0000000..7d236cd --- /dev/null +++ b/assets/index-ca96583d.css @@ -0,0 +1 @@ +@charset "UTF-8";:root{--ep-color-primary-rgb: 0, 128, 0;--ep-color-success-rgb: 33, 186, 69;--ep-color-warning-rgb: 242, 113, 28;--ep-color-danger-rgb: 219, 40, 40;--ep-color-error-rgb: 219, 40, 40;--ep-color-info-rgb: 66, 184, 221;--ep-font-size-extra-large: 20px;--ep-font-size-large: 18px;--ep-font-size-medium: 16px;--ep-font-size-base: 14px;--ep-font-size-small: 13px;--ep-font-size-extra-small: 12px;--ep-font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;--ep-font-weight-primary: 500;--ep-font-line-height-primary: 24px;--ep-index-normal: 1;--ep-index-top: 1000;--ep-index-popper: 2000;--ep-border-radius-base: 4px;--ep-border-radius-small: 2px;--ep-border-radius-round: 20px;--ep-border-radius-circle: 100%;--ep-transition-duration: .3s;--ep-transition-duration-fast: .2s;--ep-transition-function-ease-in-out-bezier: cubic-bezier(.645, .045, .355, 1);--ep-transition-function-fast-bezier: cubic-bezier(.23, 1, .32, 1);--ep-transition-all: all var(--ep-transition-duration) var(--ep-transition-function-ease-in-out-bezier);--ep-transition-fade: opacity var(--ep-transition-duration) var(--ep-transition-function-fast-bezier);--ep-transition-md-fade: transform var(--ep-transition-duration) var(--ep-transition-function-fast-bezier), opacity var(--ep-transition-duration) var(--ep-transition-function-fast-bezier);--ep-transition-fade-linear: opacity var(--ep-transition-duration-fast) linear;--ep-transition-border: border-color var(--ep-transition-duration-fast) var(--ep-transition-function-ease-in-out-bezier);--ep-transition-box-shadow: box-shadow var(--ep-transition-duration-fast) var(--ep-transition-function-ease-in-out-bezier);--ep-transition-color: color var(--ep-transition-duration-fast) var(--ep-transition-function-ease-in-out-bezier);--ep-component-size-large: 40px;--ep-component-size: 32px;--ep-component-size-small: 24px;color-scheme:light;--ep-color-white: #ffffff;--ep-color-black: #000000;--ep-color-primary: green;--ep-color-primary-light-3: #4da64d;--ep-color-primary-light-5: #80c080;--ep-color-primary-light-7: #b3d9b3;--ep-color-primary-light-8: #cce6cc;--ep-color-primary-light-9: #e6f2e6;--ep-color-primary-dark-2: #006600;--ep-color-success: #21ba45;--ep-color-success-light-3: #64cf7d;--ep-color-success-light-5: #90dda2;--ep-color-success-light-7: #bceac7;--ep-color-success-light-8: #d3f1da;--ep-color-success-light-9: #e9f8ec;--ep-color-success-dark-2: #1a9537;--ep-color-warning: #f2711c;--ep-color-warning-light-3: #f69c60;--ep-color-warning-light-5: #f9b88e;--ep-color-warning-light-7: #fbd4bb;--ep-color-warning-light-8: #fce3d2;--ep-color-warning-light-9: #fef1e8;--ep-color-warning-dark-2: #c25a16;--ep-color-danger: #db2828;--ep-color-danger-light-3: #e66969;--ep-color-danger-light-5: #ed9494;--ep-color-danger-light-7: #f4bfbf;--ep-color-danger-light-8: #f8d4d4;--ep-color-danger-light-9: #fbeaea;--ep-color-danger-dark-2: #af2020;--ep-color-error: #db2828;--ep-color-error-light-3: #e66969;--ep-color-error-light-5: #ed9494;--ep-color-error-light-7: #f4bfbf;--ep-color-error-light-8: #f8d4d4;--ep-color-error-light-9: #fbeaea;--ep-color-error-dark-2: #af2020;--ep-color-info: #42b8dd;--ep-color-info-light-3: #7bcde7;--ep-color-info-light-5: #a1dcee;--ep-color-info-light-7: #c6eaf5;--ep-color-info-light-8: #d9f1f8;--ep-color-info-light-9: #ecf8fc;--ep-color-info-dark-2: #3593b1;--ep-bg-color: #ffffff;--ep-bg-color-page: #f2f3f5;--ep-bg-color-overlay: #ffffff;--ep-text-color-primary: #303133;--ep-text-color-regular: #606266;--ep-text-color-secondary: #909399;--ep-text-color-placeholder: #a8abb2;--ep-text-color-disabled: #c0c4cc;--ep-border-color: #dcdfe6;--ep-border-color-light: #e4e7ed;--ep-border-color-lighter: #ebeef5;--ep-border-color-extra-light: #f2f6fc;--ep-border-color-dark: #d4d7de;--ep-border-color-darker: #cdd0d6;--ep-fill-color: #f0f2f5;--ep-fill-color-light: #f5f7fa;--ep-fill-color-lighter: #fafafa;--ep-fill-color-extra-light: #fafcff;--ep-fill-color-dark: #ebedf0;--ep-fill-color-darker: #e6e8eb;--ep-fill-color-blank: #ffffff;--ep-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .04), 0px 8px 20px rgba(0, 0, 0, .08);--ep-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .12);--ep-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .12);--ep-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .08), 0px 12px 32px rgba(0, 0, 0, .12), 0px 8px 16px -8px rgba(0, 0, 0, .16);--ep-disabled-bg-color: var(--ep-fill-color-light);--ep-disabled-text-color: var(--ep-text-color-placeholder);--ep-disabled-border-color: var(--ep-border-color-light);--ep-overlay-color: rgba(0, 0, 0, .8);--ep-overlay-color-light: rgba(0, 0, 0, .7);--ep-overlay-color-lighter: rgba(0, 0, 0, .5);--ep-mask-color: rgba(255, 255, 255, .9);--ep-mask-color-extra-light: rgba(255, 255, 255, .3);--ep-border-width: 1px;--ep-border-style: solid;--ep-border-color-hover: var(--ep-text-color-disabled);--ep-border: var(--ep-border-width) var(--ep-border-style) var(--ep-border-color);--ep-svg-monochrome-grey: var(--ep-border-color)}.ep-icon-loading{animation:rotating 2s linear infinite}.ep-icon--right{margin-left:5px}.ep-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ep-icon{--color: inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.ep-icon.is-loading{animation:rotating 2s linear infinite}.ep-icon svg{height:1em;width:1em}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--ep-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.ep-fade-in-linear-enter-active,.ep-fade-in-linear-leave-active{transition:var(--ep-transition-fade-linear)}.ep-fade-in-linear-enter-from,.ep-fade-in-linear-leave-to{opacity:0}.ep-fade-in-enter-active,.ep-fade-in-leave-active{transition:all var(--ep-transition-duration) cubic-bezier(.55,0,.1,1)}.ep-fade-in-enter-from,.ep-fade-in-leave-active{opacity:0}.ep-zoom-in-center-enter-active,.ep-zoom-in-center-leave-active{transition:all var(--ep-transition-duration) cubic-bezier(.55,0,.1,1)}.ep-zoom-in-center-enter-from,.ep-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.ep-zoom-in-top-enter-active,.ep-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--ep-transition-md-fade);transform-origin:center top}.ep-zoom-in-top-enter-active[data-popper-placement^=top],.ep-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.ep-zoom-in-top-enter-from,.ep-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.ep-zoom-in-bottom-enter-active,.ep-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--ep-transition-md-fade);transform-origin:center bottom}.ep-zoom-in-bottom-enter-from,.ep-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.ep-zoom-in-left-enter-active,.ep-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:var(--ep-transition-md-fade);transform-origin:top left}.ep-zoom-in-left-enter-from,.ep-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--ep-transition-duration) height ease-in-out,var(--ep-transition-duration) padding-top ease-in-out,var(--ep-transition-duration) padding-bottom ease-in-out}.ep-collapse-transition-leave-active,.ep-collapse-transition-enter-active{transition:var(--ep-transition-duration) max-height ease-in-out,var(--ep-transition-duration) padding-top ease-in-out,var(--ep-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--ep-transition-duration) width ease-in-out,var(--ep-transition-duration) padding-left ease-in-out,var(--ep-transition-duration) padding-right ease-in-out}.ep-list-enter-active,.ep-list-leave-active{transition:all 1s}.ep-list-enter-from,.ep-list-leave-to{opacity:0;transform:translateY(-30px)}.ep-list-leave-active{position:absolute!important}.ep-opacity-transition{transition:opacity var(--ep-transition-duration) cubic-bezier(.55,0,.1,1)}:root{--ep-menu-active-color: var(--ep-color-primary);--ep-menu-text-color: var(--ep-text-color-primary);--ep-menu-hover-text-color: var(--ep-color-primary);--ep-menu-bg-color: var(--ep-fill-color-blank);--ep-menu-hover-bg-color: var(--ep-color-primary-light-9);--ep-menu-item-height: 56px;--ep-menu-sub-item-height: calc(var(--ep-menu-item-height) - 6px);--ep-menu-horizontal-sub-item-height: 36px;--ep-menu-item-font-size: var(--ep-font-size-base);--ep-menu-item-hover-fill: var(--ep-color-primary-light-9);--ep-menu-border-color: var(--ep-border-color);--ep-menu-base-level-padding: 20px;--ep-menu-level-padding: 20px;--ep-menu-icon-width: 24px}.ep-menu{border-right:solid 1px var(--ep-menu-border-color);list-style:none;position:relative;margin:0;padding-left:0;background-color:var(--ep-menu-bg-color);box-sizing:border-box}.ep-menu--vertical:not(.ep-menu--collapse):not(.ep-menu--popup-container) .ep-menu-item,.ep-menu--vertical:not(.ep-menu--collapse):not(.ep-menu--popup-container) .ep-sub-menu__title,.ep-menu--vertical:not(.ep-menu--collapse):not(.ep-menu--popup-container) .ep-menu-item-group__title{white-space:nowrap;padding-left:calc(var(--ep-menu-base-level-padding) + var(--ep-menu-level) * var(--ep-menu-level-padding))}.ep-menu--horizontal{display:flex;flex-wrap:nowrap;border-bottom:solid 1px var(--ep-menu-border-color);border-right:none}.ep-menu--horizontal>.ep-menu-item{display:inline-flex;justify-content:center;align-items:center;height:100%;margin:0;border-bottom:2px solid transparent;color:var(--ep-menu-text-color)}.ep-menu--horizontal>.ep-menu-item a,.ep-menu--horizontal>.ep-menu-item a:hover{color:inherit}.ep-menu--horizontal>.ep-menu-item:not(.is-disabled):hover,.ep-menu--horizontal>.ep-menu-item:not(.is-disabled):focus{background-color:#fff}.ep-menu--horizontal>.ep-sub-menu:focus,.ep-menu--horizontal>.ep-sub-menu:hover{outline:none}.ep-menu--horizontal>.ep-sub-menu:hover .ep-sub-menu__title{color:var(--ep-menu-hover-text-color)}.ep-menu--horizontal>.ep-sub-menu.is-active .ep-sub-menu__title{border-bottom:2px solid var(--ep-menu-active-color);color:var(--ep-menu-active-color)}.ep-menu--horizontal>.ep-sub-menu .ep-sub-menu__title{height:100%;border-bottom:2px solid transparent;color:var(--ep-menu-text-color)}.ep-menu--horizontal>.ep-sub-menu .ep-sub-menu__title:hover{background-color:var(--ep-bg-color-overlay)}.ep-menu--horizontal .ep-menu .ep-menu-item,.ep-menu--horizontal .ep-menu .ep-sub-menu__title{background-color:var(--ep-menu-bg-color);display:flex;align-items:center;height:var(--ep-menu-horizontal-sub-item-height);line-height:var(--ep-menu-horizontal-sub-item-height);padding:0 10px;color:var(--ep-menu-text-color)}.ep-menu--horizontal .ep-menu .ep-sub-menu__title{padding-right:40px}.ep-menu--horizontal .ep-menu .ep-menu-item.is-active,.ep-menu--horizontal .ep-menu .ep-sub-menu.is-active>.ep-sub-menu__title{color:var(--ep-menu-active-color)}.ep-menu--horizontal .ep-menu-item:not(.is-disabled):hover,.ep-menu--horizontal .ep-menu-item:not(.is-disabled):focus{outline:none;color:var(--ep-menu-hover-text-color);background-color:var(--ep-menu-hover-bg-color)}.ep-menu--horizontal>.ep-menu-item.is-active{border-bottom:2px solid var(--ep-menu-active-color);color:var(--ep-menu-active-color)!important}.ep-menu--collapse{width:calc(var(--ep-menu-icon-width) + var(--ep-menu-base-level-padding) * 2)}.ep-menu--collapse>.ep-menu-item [class^=ep-icon],.ep-menu--collapse>.ep-sub-menu>.ep-sub-menu__title [class^=ep-icon],.ep-menu--collapse>.ep-menu-item-group>ul>.ep-sub-menu>.ep-sub-menu__title [class^=ep-icon]{margin:0;vertical-align:middle;width:var(--ep-menu-icon-width);text-align:center}.ep-menu--collapse>.ep-menu-item .ep-sub-menu__icon-arrow,.ep-menu--collapse>.ep-sub-menu>.ep-sub-menu__title .ep-sub-menu__icon-arrow,.ep-menu--collapse>.ep-menu-item-group>ul>.ep-sub-menu>.ep-sub-menu__title .ep-sub-menu__icon-arrow{display:none}.ep-menu--collapse>.ep-menu-item>span,.ep-menu--collapse>.ep-sub-menu>.ep-sub-menu__title>span,.ep-menu--collapse>.ep-menu-item-group>ul>.ep-sub-menu>.ep-sub-menu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.ep-menu--collapse>.ep-menu-item.is-active i{color:inherit}.ep-menu--collapse .ep-menu .ep-sub-menu{min-width:200px}.ep-menu--popup{z-index:100;min-width:200px;border:none;padding:5px 0;border-radius:var(--ep-border-radius-small);box-shadow:var(--ep-box-shadow-light)}.ep-menu .ep-icon{flex-shrink:0}.ep-menu-item{display:flex;align-items:center;height:var(--ep-menu-item-height);line-height:var(--ep-menu-item-height);font-size:var(--ep-menu-item-font-size);color:var(--ep-menu-text-color);padding:0 var(--ep-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--ep-transition-duration),background-color var(--ep-transition-duration),color var(--ep-transition-duration);box-sizing:border-box;white-space:nowrap}.ep-menu-item *{vertical-align:bottom}.ep-menu-item i{color:inherit}.ep-menu-item:hover,.ep-menu-item:focus{outline:none}.ep-menu-item:hover{background-color:var(--ep-menu-hover-bg-color)}.ep-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:none!important}.ep-menu-item [class^=ep-icon]{margin-right:5px;width:var(--ep-menu-icon-width);text-align:center;font-size:18px;vertical-align:middle}.ep-menu-item.is-active{color:var(--ep-menu-active-color)}.ep-menu-item.is-active i{color:inherit}.ep-menu-item .ep-menu-tooltip__trigger{position:absolute;left:0;top:0;height:100%;width:100%;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 var(--ep-menu-base-level-padding)}.ep-sub-menu{list-style:none;margin:0;padding-left:0}.ep-sub-menu__title{display:flex;align-items:center;height:var(--ep-menu-item-height);line-height:var(--ep-menu-item-height);font-size:var(--ep-menu-item-font-size);color:var(--ep-menu-text-color);padding:0 var(--ep-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--ep-transition-duration),background-color var(--ep-transition-duration),color var(--ep-transition-duration);box-sizing:border-box;white-space:nowrap;padding-right:calc(var(--ep-menu-base-level-padding) + var(--ep-menu-icon-width))}.ep-sub-menu__title *{vertical-align:bottom}.ep-sub-menu__title i{color:inherit}.ep-sub-menu__title:hover,.ep-sub-menu__title:focus{outline:none}.ep-sub-menu__title.is-disabled{opacity:.25;cursor:not-allowed;background:none!important}.ep-sub-menu__title:hover{background-color:var(--ep-menu-hover-bg-color)}.ep-sub-menu .ep-menu{border:none}.ep-sub-menu .ep-menu-item{height:var(--ep-menu-sub-item-height);line-height:var(--ep-menu-sub-item-height)}.ep-sub-menu__hide-arrow .ep-sub-menu__icon-arrow{display:none!important}.ep-sub-menu.is-active .ep-sub-menu__title{border-bottom-color:var(--ep-menu-active-color)}.ep-sub-menu.is-disabled .ep-sub-menu__title,.ep-sub-menu.is-disabled .ep-menu-item{opacity:.25;cursor:not-allowed;background:none!important}.ep-sub-menu .ep-icon{vertical-align:middle;margin-right:5px;width:var(--ep-menu-icon-width);text-align:center;font-size:18px}.ep-sub-menu .ep-icon.ep-sub-menu__icon-more{margin-right:0!important}.ep-sub-menu .ep-sub-menu__icon-arrow{position:absolute;top:50%;right:var(--ep-menu-base-level-padding);margin-top:-6px;transition:transform var(--ep-transition-duration);font-size:12px;margin-right:0;width:inherit}.ep-menu-item-group>ul{padding:0}.ep-menu-item-group__title{padding:7px 0 7px var(--ep-menu-base-level-padding);line-height:normal;font-size:12px;color:var(--ep-text-color-secondary)}.horizontal-collapse-transition .ep-sub-menu__title .ep-sub-menu__icon-arrow{transition:var(--ep-transition-duration-fast);opacity:0}.ep-popper{--ep-popper-border-radius: var(--ep-popover-border-radius, 4px);position:absolute;border-radius:var(--ep-popper-border-radius);padding:5px 11px;z-index:2000;font-size:12px;line-height:20px;min-width:10px;word-wrap:break-word;visibility:visible}.ep-popper.is-dark{color:var(--ep-bg-color);background:var(--ep-text-color-primary);border:1px solid var(--ep-text-color-primary)}.ep-popper.is-dark .ep-popper__arrow:before{border:1px solid var(--ep-text-color-primary);background:var(--ep-text-color-primary);right:0}.ep-popper.is-light{background:var(--ep-bg-color-overlay);border:1px solid var(--ep-border-color-light)}.ep-popper.is-light .ep-popper__arrow:before{border:1px solid var(--ep-border-color-light);background:var(--ep-bg-color-overlay);right:0}.ep-popper.is-pure{padding:0}.ep-popper__arrow{position:absolute;width:10px;height:10px;z-index:-1}.ep-popper__arrow:before{position:absolute;width:10px;height:10px;z-index:-1;content:" ";transform:rotate(45deg);background:var(--ep-text-color-primary);box-sizing:border-box}.ep-popper[data-popper-placement^=top]>.ep-popper__arrow{bottom:-5px}.ep-popper[data-popper-placement^=top]>.ep-popper__arrow:before{border-bottom-right-radius:2px}.ep-popper[data-popper-placement^=bottom]>.ep-popper__arrow{top:-5px}.ep-popper[data-popper-placement^=bottom]>.ep-popper__arrow:before{border-top-left-radius:2px}.ep-popper[data-popper-placement^=left]>.ep-popper__arrow{right:-5px}.ep-popper[data-popper-placement^=left]>.ep-popper__arrow:before{border-top-right-radius:2px}.ep-popper[data-popper-placement^=right]>.ep-popper__arrow{left:-5px}.ep-popper[data-popper-placement^=right]>.ep-popper__arrow:before{border-bottom-left-radius:2px}.ep-popper[data-popper-placement^=top] .ep-popper__arrow:before{border-top-color:transparent!important;border-left-color:transparent!important}.ep-popper[data-popper-placement^=bottom] .ep-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.ep-popper[data-popper-placement^=left] .ep-popper__arrow:before{border-left-color:transparent!important;border-bottom-color:transparent!important}.ep-popper[data-popper-placement^=right] .ep-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}#app[data-v-aa3fa0a7]{text-align:center;color:var(--ep-text-color-primary)}.main-container[data-v-aa3fa0a7]{height:calc(100vh - var(--ep-menu-item-height) - 3px)}[class*=ep-col-]{box-sizing:border-box}[class*=ep-col-].is-guttered{display:block;min-height:1px}.ep-col-0,.ep-col-0.is-guttered{display:none}.ep-col-0{max-width:0%;flex:0 0 0%}.ep-col-offset-0{margin-left:0%}.ep-col-pull-0{position:relative;right:0%}.ep-col-push-0{position:relative;left:0%}.ep-col-1{max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-offset-1{margin-left:4.1666666667%}.ep-col-pull-1{position:relative;right:4.1666666667%}.ep-col-push-1{position:relative;left:4.1666666667%}.ep-col-2{max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-offset-2{margin-left:8.3333333333%}.ep-col-pull-2{position:relative;right:8.3333333333%}.ep-col-push-2{position:relative;left:8.3333333333%}.ep-col-3{max-width:12.5%;flex:0 0 12.5%}.ep-col-offset-3{margin-left:12.5%}.ep-col-pull-3{position:relative;right:12.5%}.ep-col-push-3{position:relative;left:12.5%}.ep-col-4{max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-offset-4{margin-left:16.6666666667%}.ep-col-pull-4{position:relative;right:16.6666666667%}.ep-col-push-4{position:relative;left:16.6666666667%}.ep-col-5{max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-offset-5{margin-left:20.8333333333%}.ep-col-pull-5{position:relative;right:20.8333333333%}.ep-col-push-5{position:relative;left:20.8333333333%}.ep-col-6{max-width:25%;flex:0 0 25%}.ep-col-offset-6{margin-left:25%}.ep-col-pull-6{position:relative;right:25%}.ep-col-push-6{position:relative;left:25%}.ep-col-7{max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-offset-7{margin-left:29.1666666667%}.ep-col-pull-7{position:relative;right:29.1666666667%}.ep-col-push-7{position:relative;left:29.1666666667%}.ep-col-8{max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-offset-8{margin-left:33.3333333333%}.ep-col-pull-8{position:relative;right:33.3333333333%}.ep-col-push-8{position:relative;left:33.3333333333%}.ep-col-9{max-width:37.5%;flex:0 0 37.5%}.ep-col-offset-9{margin-left:37.5%}.ep-col-pull-9{position:relative;right:37.5%}.ep-col-push-9{position:relative;left:37.5%}.ep-col-10{max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-offset-10{margin-left:41.6666666667%}.ep-col-pull-10{position:relative;right:41.6666666667%}.ep-col-push-10{position:relative;left:41.6666666667%}.ep-col-11{max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-offset-11{margin-left:45.8333333333%}.ep-col-pull-11{position:relative;right:45.8333333333%}.ep-col-push-11{position:relative;left:45.8333333333%}.ep-col-12{max-width:50%;flex:0 0 50%}.ep-col-offset-12{margin-left:50%}.ep-col-pull-12{position:relative;right:50%}.ep-col-push-12{position:relative;left:50%}.ep-col-13{max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-offset-13{margin-left:54.1666666667%}.ep-col-pull-13{position:relative;right:54.1666666667%}.ep-col-push-13{position:relative;left:54.1666666667%}.ep-col-14{max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-offset-14{margin-left:58.3333333333%}.ep-col-pull-14{position:relative;right:58.3333333333%}.ep-col-push-14{position:relative;left:58.3333333333%}.ep-col-15{max-width:62.5%;flex:0 0 62.5%}.ep-col-offset-15{margin-left:62.5%}.ep-col-pull-15{position:relative;right:62.5%}.ep-col-push-15{position:relative;left:62.5%}.ep-col-16{max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-offset-16{margin-left:66.6666666667%}.ep-col-pull-16{position:relative;right:66.6666666667%}.ep-col-push-16{position:relative;left:66.6666666667%}.ep-col-17{max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-offset-17{margin-left:70.8333333333%}.ep-col-pull-17{position:relative;right:70.8333333333%}.ep-col-push-17{position:relative;left:70.8333333333%}.ep-col-18{max-width:75%;flex:0 0 75%}.ep-col-offset-18{margin-left:75%}.ep-col-pull-18{position:relative;right:75%}.ep-col-push-18{position:relative;left:75%}.ep-col-19{max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-offset-19{margin-left:79.1666666667%}.ep-col-pull-19{position:relative;right:79.1666666667%}.ep-col-push-19{position:relative;left:79.1666666667%}.ep-col-20{max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-offset-20{margin-left:83.3333333333%}.ep-col-pull-20{position:relative;right:83.3333333333%}.ep-col-push-20{position:relative;left:83.3333333333%}.ep-col-21{max-width:87.5%;flex:0 0 87.5%}.ep-col-offset-21{margin-left:87.5%}.ep-col-pull-21{position:relative;right:87.5%}.ep-col-push-21{position:relative;left:87.5%}.ep-col-22{max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-offset-22{margin-left:91.6666666667%}.ep-col-pull-22{position:relative;right:91.6666666667%}.ep-col-push-22{position:relative;left:91.6666666667%}.ep-col-23{max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-offset-23{margin-left:95.8333333333%}.ep-col-pull-23{position:relative;right:95.8333333333%}.ep-col-push-23{position:relative;left:95.8333333333%}.ep-col-24{max-width:100%;flex:0 0 100%}.ep-col-offset-24{margin-left:100%}.ep-col-pull-24{position:relative;right:100%}.ep-col-push-24{position:relative;left:100%}@media only screen and (max-width: 768px){.ep-col-xs-0,.ep-col-xs-0.is-guttered{display:none}.ep-col-xs-0{max-width:0%;flex:0 0 0%}.ep-col-xs-offset-0{margin-left:0%}.ep-col-xs-pull-0{position:relative;right:0%}.ep-col-xs-push-0{position:relative;left:0%}.ep-col-xs-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-xs-offset-1{margin-left:4.1666666667%}.ep-col-xs-pull-1{position:relative;right:4.1666666667%}.ep-col-xs-push-1{position:relative;left:4.1666666667%}.ep-col-xs-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-xs-offset-2{margin-left:8.3333333333%}.ep-col-xs-pull-2{position:relative;right:8.3333333333%}.ep-col-xs-push-2{position:relative;left:8.3333333333%}.ep-col-xs-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-xs-offset-3{margin-left:12.5%}.ep-col-xs-pull-3{position:relative;right:12.5%}.ep-col-xs-push-3{position:relative;left:12.5%}.ep-col-xs-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-xs-offset-4{margin-left:16.6666666667%}.ep-col-xs-pull-4{position:relative;right:16.6666666667%}.ep-col-xs-push-4{position:relative;left:16.6666666667%}.ep-col-xs-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-xs-offset-5{margin-left:20.8333333333%}.ep-col-xs-pull-5{position:relative;right:20.8333333333%}.ep-col-xs-push-5{position:relative;left:20.8333333333%}.ep-col-xs-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-xs-offset-6{margin-left:25%}.ep-col-xs-pull-6{position:relative;right:25%}.ep-col-xs-push-6{position:relative;left:25%}.ep-col-xs-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-xs-offset-7{margin-left:29.1666666667%}.ep-col-xs-pull-7{position:relative;right:29.1666666667%}.ep-col-xs-push-7{position:relative;left:29.1666666667%}.ep-col-xs-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-xs-offset-8{margin-left:33.3333333333%}.ep-col-xs-pull-8{position:relative;right:33.3333333333%}.ep-col-xs-push-8{position:relative;left:33.3333333333%}.ep-col-xs-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-xs-offset-9{margin-left:37.5%}.ep-col-xs-pull-9{position:relative;right:37.5%}.ep-col-xs-push-9{position:relative;left:37.5%}.ep-col-xs-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-xs-offset-10{margin-left:41.6666666667%}.ep-col-xs-pull-10{position:relative;right:41.6666666667%}.ep-col-xs-push-10{position:relative;left:41.6666666667%}.ep-col-xs-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-xs-offset-11{margin-left:45.8333333333%}.ep-col-xs-pull-11{position:relative;right:45.8333333333%}.ep-col-xs-push-11{position:relative;left:45.8333333333%}.ep-col-xs-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-xs-offset-12{margin-left:50%}.ep-col-xs-pull-12{position:relative;right:50%}.ep-col-xs-push-12{position:relative;left:50%}.ep-col-xs-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-xs-offset-13{margin-left:54.1666666667%}.ep-col-xs-pull-13{position:relative;right:54.1666666667%}.ep-col-xs-push-13{position:relative;left:54.1666666667%}.ep-col-xs-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-xs-offset-14{margin-left:58.3333333333%}.ep-col-xs-pull-14{position:relative;right:58.3333333333%}.ep-col-xs-push-14{position:relative;left:58.3333333333%}.ep-col-xs-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-xs-offset-15{margin-left:62.5%}.ep-col-xs-pull-15{position:relative;right:62.5%}.ep-col-xs-push-15{position:relative;left:62.5%}.ep-col-xs-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-xs-offset-16{margin-left:66.6666666667%}.ep-col-xs-pull-16{position:relative;right:66.6666666667%}.ep-col-xs-push-16{position:relative;left:66.6666666667%}.ep-col-xs-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-xs-offset-17{margin-left:70.8333333333%}.ep-col-xs-pull-17{position:relative;right:70.8333333333%}.ep-col-xs-push-17{position:relative;left:70.8333333333%}.ep-col-xs-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-xs-offset-18{margin-left:75%}.ep-col-xs-pull-18{position:relative;right:75%}.ep-col-xs-push-18{position:relative;left:75%}.ep-col-xs-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-xs-offset-19{margin-left:79.1666666667%}.ep-col-xs-pull-19{position:relative;right:79.1666666667%}.ep-col-xs-push-19{position:relative;left:79.1666666667%}.ep-col-xs-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-xs-offset-20{margin-left:83.3333333333%}.ep-col-xs-pull-20{position:relative;right:83.3333333333%}.ep-col-xs-push-20{position:relative;left:83.3333333333%}.ep-col-xs-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-xs-offset-21{margin-left:87.5%}.ep-col-xs-pull-21{position:relative;right:87.5%}.ep-col-xs-push-21{position:relative;left:87.5%}.ep-col-xs-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-xs-offset-22{margin-left:91.6666666667%}.ep-col-xs-pull-22{position:relative;right:91.6666666667%}.ep-col-xs-push-22{position:relative;left:91.6666666667%}.ep-col-xs-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-xs-offset-23{margin-left:95.8333333333%}.ep-col-xs-pull-23{position:relative;right:95.8333333333%}.ep-col-xs-push-23{position:relative;left:95.8333333333%}.ep-col-xs-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-xs-offset-24{margin-left:100%}.ep-col-xs-pull-24{position:relative;right:100%}.ep-col-xs-push-24{position:relative;left:100%}}@media only screen and (min-width: 768px){.ep-col-sm-0,.ep-col-sm-0.is-guttered{display:none}.ep-col-sm-0{max-width:0%;flex:0 0 0%}.ep-col-sm-offset-0{margin-left:0%}.ep-col-sm-pull-0{position:relative;right:0%}.ep-col-sm-push-0{position:relative;left:0%}.ep-col-sm-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-sm-offset-1{margin-left:4.1666666667%}.ep-col-sm-pull-1{position:relative;right:4.1666666667%}.ep-col-sm-push-1{position:relative;left:4.1666666667%}.ep-col-sm-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-sm-offset-2{margin-left:8.3333333333%}.ep-col-sm-pull-2{position:relative;right:8.3333333333%}.ep-col-sm-push-2{position:relative;left:8.3333333333%}.ep-col-sm-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-sm-offset-3{margin-left:12.5%}.ep-col-sm-pull-3{position:relative;right:12.5%}.ep-col-sm-push-3{position:relative;left:12.5%}.ep-col-sm-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-sm-offset-4{margin-left:16.6666666667%}.ep-col-sm-pull-4{position:relative;right:16.6666666667%}.ep-col-sm-push-4{position:relative;left:16.6666666667%}.ep-col-sm-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-sm-offset-5{margin-left:20.8333333333%}.ep-col-sm-pull-5{position:relative;right:20.8333333333%}.ep-col-sm-push-5{position:relative;left:20.8333333333%}.ep-col-sm-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-sm-offset-6{margin-left:25%}.ep-col-sm-pull-6{position:relative;right:25%}.ep-col-sm-push-6{position:relative;left:25%}.ep-col-sm-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-sm-offset-7{margin-left:29.1666666667%}.ep-col-sm-pull-7{position:relative;right:29.1666666667%}.ep-col-sm-push-7{position:relative;left:29.1666666667%}.ep-col-sm-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-sm-offset-8{margin-left:33.3333333333%}.ep-col-sm-pull-8{position:relative;right:33.3333333333%}.ep-col-sm-push-8{position:relative;left:33.3333333333%}.ep-col-sm-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-sm-offset-9{margin-left:37.5%}.ep-col-sm-pull-9{position:relative;right:37.5%}.ep-col-sm-push-9{position:relative;left:37.5%}.ep-col-sm-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-sm-offset-10{margin-left:41.6666666667%}.ep-col-sm-pull-10{position:relative;right:41.6666666667%}.ep-col-sm-push-10{position:relative;left:41.6666666667%}.ep-col-sm-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-sm-offset-11{margin-left:45.8333333333%}.ep-col-sm-pull-11{position:relative;right:45.8333333333%}.ep-col-sm-push-11{position:relative;left:45.8333333333%}.ep-col-sm-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-sm-offset-12{margin-left:50%}.ep-col-sm-pull-12{position:relative;right:50%}.ep-col-sm-push-12{position:relative;left:50%}.ep-col-sm-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-sm-offset-13{margin-left:54.1666666667%}.ep-col-sm-pull-13{position:relative;right:54.1666666667%}.ep-col-sm-push-13{position:relative;left:54.1666666667%}.ep-col-sm-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-sm-offset-14{margin-left:58.3333333333%}.ep-col-sm-pull-14{position:relative;right:58.3333333333%}.ep-col-sm-push-14{position:relative;left:58.3333333333%}.ep-col-sm-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-sm-offset-15{margin-left:62.5%}.ep-col-sm-pull-15{position:relative;right:62.5%}.ep-col-sm-push-15{position:relative;left:62.5%}.ep-col-sm-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-sm-offset-16{margin-left:66.6666666667%}.ep-col-sm-pull-16{position:relative;right:66.6666666667%}.ep-col-sm-push-16{position:relative;left:66.6666666667%}.ep-col-sm-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-sm-offset-17{margin-left:70.8333333333%}.ep-col-sm-pull-17{position:relative;right:70.8333333333%}.ep-col-sm-push-17{position:relative;left:70.8333333333%}.ep-col-sm-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-sm-offset-18{margin-left:75%}.ep-col-sm-pull-18{position:relative;right:75%}.ep-col-sm-push-18{position:relative;left:75%}.ep-col-sm-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-sm-offset-19{margin-left:79.1666666667%}.ep-col-sm-pull-19{position:relative;right:79.1666666667%}.ep-col-sm-push-19{position:relative;left:79.1666666667%}.ep-col-sm-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-sm-offset-20{margin-left:83.3333333333%}.ep-col-sm-pull-20{position:relative;right:83.3333333333%}.ep-col-sm-push-20{position:relative;left:83.3333333333%}.ep-col-sm-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-sm-offset-21{margin-left:87.5%}.ep-col-sm-pull-21{position:relative;right:87.5%}.ep-col-sm-push-21{position:relative;left:87.5%}.ep-col-sm-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-sm-offset-22{margin-left:91.6666666667%}.ep-col-sm-pull-22{position:relative;right:91.6666666667%}.ep-col-sm-push-22{position:relative;left:91.6666666667%}.ep-col-sm-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-sm-offset-23{margin-left:95.8333333333%}.ep-col-sm-pull-23{position:relative;right:95.8333333333%}.ep-col-sm-push-23{position:relative;left:95.8333333333%}.ep-col-sm-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-sm-offset-24{margin-left:100%}.ep-col-sm-pull-24{position:relative;right:100%}.ep-col-sm-push-24{position:relative;left:100%}}@media only screen and (min-width: 992px){.ep-col-md-0,.ep-col-md-0.is-guttered{display:none}.ep-col-md-0{max-width:0%;flex:0 0 0%}.ep-col-md-offset-0{margin-left:0%}.ep-col-md-pull-0{position:relative;right:0%}.ep-col-md-push-0{position:relative;left:0%}.ep-col-md-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-md-offset-1{margin-left:4.1666666667%}.ep-col-md-pull-1{position:relative;right:4.1666666667%}.ep-col-md-push-1{position:relative;left:4.1666666667%}.ep-col-md-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-md-offset-2{margin-left:8.3333333333%}.ep-col-md-pull-2{position:relative;right:8.3333333333%}.ep-col-md-push-2{position:relative;left:8.3333333333%}.ep-col-md-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-md-offset-3{margin-left:12.5%}.ep-col-md-pull-3{position:relative;right:12.5%}.ep-col-md-push-3{position:relative;left:12.5%}.ep-col-md-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-md-offset-4{margin-left:16.6666666667%}.ep-col-md-pull-4{position:relative;right:16.6666666667%}.ep-col-md-push-4{position:relative;left:16.6666666667%}.ep-col-md-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-md-offset-5{margin-left:20.8333333333%}.ep-col-md-pull-5{position:relative;right:20.8333333333%}.ep-col-md-push-5{position:relative;left:20.8333333333%}.ep-col-md-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-md-offset-6{margin-left:25%}.ep-col-md-pull-6{position:relative;right:25%}.ep-col-md-push-6{position:relative;left:25%}.ep-col-md-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-md-offset-7{margin-left:29.1666666667%}.ep-col-md-pull-7{position:relative;right:29.1666666667%}.ep-col-md-push-7{position:relative;left:29.1666666667%}.ep-col-md-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-md-offset-8{margin-left:33.3333333333%}.ep-col-md-pull-8{position:relative;right:33.3333333333%}.ep-col-md-push-8{position:relative;left:33.3333333333%}.ep-col-md-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-md-offset-9{margin-left:37.5%}.ep-col-md-pull-9{position:relative;right:37.5%}.ep-col-md-push-9{position:relative;left:37.5%}.ep-col-md-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-md-offset-10{margin-left:41.6666666667%}.ep-col-md-pull-10{position:relative;right:41.6666666667%}.ep-col-md-push-10{position:relative;left:41.6666666667%}.ep-col-md-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-md-offset-11{margin-left:45.8333333333%}.ep-col-md-pull-11{position:relative;right:45.8333333333%}.ep-col-md-push-11{position:relative;left:45.8333333333%}.ep-col-md-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-md-offset-12{margin-left:50%}.ep-col-md-pull-12{position:relative;right:50%}.ep-col-md-push-12{position:relative;left:50%}.ep-col-md-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-md-offset-13{margin-left:54.1666666667%}.ep-col-md-pull-13{position:relative;right:54.1666666667%}.ep-col-md-push-13{position:relative;left:54.1666666667%}.ep-col-md-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-md-offset-14{margin-left:58.3333333333%}.ep-col-md-pull-14{position:relative;right:58.3333333333%}.ep-col-md-push-14{position:relative;left:58.3333333333%}.ep-col-md-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-md-offset-15{margin-left:62.5%}.ep-col-md-pull-15{position:relative;right:62.5%}.ep-col-md-push-15{position:relative;left:62.5%}.ep-col-md-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-md-offset-16{margin-left:66.6666666667%}.ep-col-md-pull-16{position:relative;right:66.6666666667%}.ep-col-md-push-16{position:relative;left:66.6666666667%}.ep-col-md-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-md-offset-17{margin-left:70.8333333333%}.ep-col-md-pull-17{position:relative;right:70.8333333333%}.ep-col-md-push-17{position:relative;left:70.8333333333%}.ep-col-md-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-md-offset-18{margin-left:75%}.ep-col-md-pull-18{position:relative;right:75%}.ep-col-md-push-18{position:relative;left:75%}.ep-col-md-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-md-offset-19{margin-left:79.1666666667%}.ep-col-md-pull-19{position:relative;right:79.1666666667%}.ep-col-md-push-19{position:relative;left:79.1666666667%}.ep-col-md-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-md-offset-20{margin-left:83.3333333333%}.ep-col-md-pull-20{position:relative;right:83.3333333333%}.ep-col-md-push-20{position:relative;left:83.3333333333%}.ep-col-md-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-md-offset-21{margin-left:87.5%}.ep-col-md-pull-21{position:relative;right:87.5%}.ep-col-md-push-21{position:relative;left:87.5%}.ep-col-md-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-md-offset-22{margin-left:91.6666666667%}.ep-col-md-pull-22{position:relative;right:91.6666666667%}.ep-col-md-push-22{position:relative;left:91.6666666667%}.ep-col-md-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-md-offset-23{margin-left:95.8333333333%}.ep-col-md-pull-23{position:relative;right:95.8333333333%}.ep-col-md-push-23{position:relative;left:95.8333333333%}.ep-col-md-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-md-offset-24{margin-left:100%}.ep-col-md-pull-24{position:relative;right:100%}.ep-col-md-push-24{position:relative;left:100%}}@media only screen and (min-width: 1200px){.ep-col-lg-0,.ep-col-lg-0.is-guttered{display:none}.ep-col-lg-0{max-width:0%;flex:0 0 0%}.ep-col-lg-offset-0{margin-left:0%}.ep-col-lg-pull-0{position:relative;right:0%}.ep-col-lg-push-0{position:relative;left:0%}.ep-col-lg-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-lg-offset-1{margin-left:4.1666666667%}.ep-col-lg-pull-1{position:relative;right:4.1666666667%}.ep-col-lg-push-1{position:relative;left:4.1666666667%}.ep-col-lg-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-lg-offset-2{margin-left:8.3333333333%}.ep-col-lg-pull-2{position:relative;right:8.3333333333%}.ep-col-lg-push-2{position:relative;left:8.3333333333%}.ep-col-lg-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-lg-offset-3{margin-left:12.5%}.ep-col-lg-pull-3{position:relative;right:12.5%}.ep-col-lg-push-3{position:relative;left:12.5%}.ep-col-lg-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-lg-offset-4{margin-left:16.6666666667%}.ep-col-lg-pull-4{position:relative;right:16.6666666667%}.ep-col-lg-push-4{position:relative;left:16.6666666667%}.ep-col-lg-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-lg-offset-5{margin-left:20.8333333333%}.ep-col-lg-pull-5{position:relative;right:20.8333333333%}.ep-col-lg-push-5{position:relative;left:20.8333333333%}.ep-col-lg-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-lg-offset-6{margin-left:25%}.ep-col-lg-pull-6{position:relative;right:25%}.ep-col-lg-push-6{position:relative;left:25%}.ep-col-lg-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-lg-offset-7{margin-left:29.1666666667%}.ep-col-lg-pull-7{position:relative;right:29.1666666667%}.ep-col-lg-push-7{position:relative;left:29.1666666667%}.ep-col-lg-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-lg-offset-8{margin-left:33.3333333333%}.ep-col-lg-pull-8{position:relative;right:33.3333333333%}.ep-col-lg-push-8{position:relative;left:33.3333333333%}.ep-col-lg-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-lg-offset-9{margin-left:37.5%}.ep-col-lg-pull-9{position:relative;right:37.5%}.ep-col-lg-push-9{position:relative;left:37.5%}.ep-col-lg-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-lg-offset-10{margin-left:41.6666666667%}.ep-col-lg-pull-10{position:relative;right:41.6666666667%}.ep-col-lg-push-10{position:relative;left:41.6666666667%}.ep-col-lg-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-lg-offset-11{margin-left:45.8333333333%}.ep-col-lg-pull-11{position:relative;right:45.8333333333%}.ep-col-lg-push-11{position:relative;left:45.8333333333%}.ep-col-lg-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-lg-offset-12{margin-left:50%}.ep-col-lg-pull-12{position:relative;right:50%}.ep-col-lg-push-12{position:relative;left:50%}.ep-col-lg-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-lg-offset-13{margin-left:54.1666666667%}.ep-col-lg-pull-13{position:relative;right:54.1666666667%}.ep-col-lg-push-13{position:relative;left:54.1666666667%}.ep-col-lg-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-lg-offset-14{margin-left:58.3333333333%}.ep-col-lg-pull-14{position:relative;right:58.3333333333%}.ep-col-lg-push-14{position:relative;left:58.3333333333%}.ep-col-lg-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-lg-offset-15{margin-left:62.5%}.ep-col-lg-pull-15{position:relative;right:62.5%}.ep-col-lg-push-15{position:relative;left:62.5%}.ep-col-lg-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-lg-offset-16{margin-left:66.6666666667%}.ep-col-lg-pull-16{position:relative;right:66.6666666667%}.ep-col-lg-push-16{position:relative;left:66.6666666667%}.ep-col-lg-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-lg-offset-17{margin-left:70.8333333333%}.ep-col-lg-pull-17{position:relative;right:70.8333333333%}.ep-col-lg-push-17{position:relative;left:70.8333333333%}.ep-col-lg-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-lg-offset-18{margin-left:75%}.ep-col-lg-pull-18{position:relative;right:75%}.ep-col-lg-push-18{position:relative;left:75%}.ep-col-lg-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-lg-offset-19{margin-left:79.1666666667%}.ep-col-lg-pull-19{position:relative;right:79.1666666667%}.ep-col-lg-push-19{position:relative;left:79.1666666667%}.ep-col-lg-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-lg-offset-20{margin-left:83.3333333333%}.ep-col-lg-pull-20{position:relative;right:83.3333333333%}.ep-col-lg-push-20{position:relative;left:83.3333333333%}.ep-col-lg-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-lg-offset-21{margin-left:87.5%}.ep-col-lg-pull-21{position:relative;right:87.5%}.ep-col-lg-push-21{position:relative;left:87.5%}.ep-col-lg-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-lg-offset-22{margin-left:91.6666666667%}.ep-col-lg-pull-22{position:relative;right:91.6666666667%}.ep-col-lg-push-22{position:relative;left:91.6666666667%}.ep-col-lg-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-lg-offset-23{margin-left:95.8333333333%}.ep-col-lg-pull-23{position:relative;right:95.8333333333%}.ep-col-lg-push-23{position:relative;left:95.8333333333%}.ep-col-lg-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-lg-offset-24{margin-left:100%}.ep-col-lg-pull-24{position:relative;right:100%}.ep-col-lg-push-24{position:relative;left:100%}}@media only screen and (min-width: 1920px){.ep-col-xl-0,.ep-col-xl-0.is-guttered{display:none}.ep-col-xl-0{max-width:0%;flex:0 0 0%}.ep-col-xl-offset-0{margin-left:0%}.ep-col-xl-pull-0{position:relative;right:0%}.ep-col-xl-push-0{position:relative;left:0%}.ep-col-xl-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-xl-offset-1{margin-left:4.1666666667%}.ep-col-xl-pull-1{position:relative;right:4.1666666667%}.ep-col-xl-push-1{position:relative;left:4.1666666667%}.ep-col-xl-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-xl-offset-2{margin-left:8.3333333333%}.ep-col-xl-pull-2{position:relative;right:8.3333333333%}.ep-col-xl-push-2{position:relative;left:8.3333333333%}.ep-col-xl-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-xl-offset-3{margin-left:12.5%}.ep-col-xl-pull-3{position:relative;right:12.5%}.ep-col-xl-push-3{position:relative;left:12.5%}.ep-col-xl-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-xl-offset-4{margin-left:16.6666666667%}.ep-col-xl-pull-4{position:relative;right:16.6666666667%}.ep-col-xl-push-4{position:relative;left:16.6666666667%}.ep-col-xl-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-xl-offset-5{margin-left:20.8333333333%}.ep-col-xl-pull-5{position:relative;right:20.8333333333%}.ep-col-xl-push-5{position:relative;left:20.8333333333%}.ep-col-xl-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-xl-offset-6{margin-left:25%}.ep-col-xl-pull-6{position:relative;right:25%}.ep-col-xl-push-6{position:relative;left:25%}.ep-col-xl-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-xl-offset-7{margin-left:29.1666666667%}.ep-col-xl-pull-7{position:relative;right:29.1666666667%}.ep-col-xl-push-7{position:relative;left:29.1666666667%}.ep-col-xl-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-xl-offset-8{margin-left:33.3333333333%}.ep-col-xl-pull-8{position:relative;right:33.3333333333%}.ep-col-xl-push-8{position:relative;left:33.3333333333%}.ep-col-xl-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-xl-offset-9{margin-left:37.5%}.ep-col-xl-pull-9{position:relative;right:37.5%}.ep-col-xl-push-9{position:relative;left:37.5%}.ep-col-xl-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-xl-offset-10{margin-left:41.6666666667%}.ep-col-xl-pull-10{position:relative;right:41.6666666667%}.ep-col-xl-push-10{position:relative;left:41.6666666667%}.ep-col-xl-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-xl-offset-11{margin-left:45.8333333333%}.ep-col-xl-pull-11{position:relative;right:45.8333333333%}.ep-col-xl-push-11{position:relative;left:45.8333333333%}.ep-col-xl-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-xl-offset-12{margin-left:50%}.ep-col-xl-pull-12{position:relative;right:50%}.ep-col-xl-push-12{position:relative;left:50%}.ep-col-xl-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-xl-offset-13{margin-left:54.1666666667%}.ep-col-xl-pull-13{position:relative;right:54.1666666667%}.ep-col-xl-push-13{position:relative;left:54.1666666667%}.ep-col-xl-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-xl-offset-14{margin-left:58.3333333333%}.ep-col-xl-pull-14{position:relative;right:58.3333333333%}.ep-col-xl-push-14{position:relative;left:58.3333333333%}.ep-col-xl-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-xl-offset-15{margin-left:62.5%}.ep-col-xl-pull-15{position:relative;right:62.5%}.ep-col-xl-push-15{position:relative;left:62.5%}.ep-col-xl-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-xl-offset-16{margin-left:66.6666666667%}.ep-col-xl-pull-16{position:relative;right:66.6666666667%}.ep-col-xl-push-16{position:relative;left:66.6666666667%}.ep-col-xl-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-xl-offset-17{margin-left:70.8333333333%}.ep-col-xl-pull-17{position:relative;right:70.8333333333%}.ep-col-xl-push-17{position:relative;left:70.8333333333%}.ep-col-xl-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-xl-offset-18{margin-left:75%}.ep-col-xl-pull-18{position:relative;right:75%}.ep-col-xl-push-18{position:relative;left:75%}.ep-col-xl-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-xl-offset-19{margin-left:79.1666666667%}.ep-col-xl-pull-19{position:relative;right:79.1666666667%}.ep-col-xl-push-19{position:relative;left:79.1666666667%}.ep-col-xl-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-xl-offset-20{margin-left:83.3333333333%}.ep-col-xl-pull-20{position:relative;right:83.3333333333%}.ep-col-xl-push-20{position:relative;left:83.3333333333%}.ep-col-xl-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-xl-offset-21{margin-left:87.5%}.ep-col-xl-pull-21{position:relative;right:87.5%}.ep-col-xl-push-21{position:relative;left:87.5%}.ep-col-xl-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-xl-offset-22{margin-left:91.6666666667%}.ep-col-xl-pull-22{position:relative;right:91.6666666667%}.ep-col-xl-push-22{position:relative;left:91.6666666667%}.ep-col-xl-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-xl-offset-23{margin-left:95.8333333333%}.ep-col-xl-pull-23{position:relative;right:95.8333333333%}.ep-col-xl-push-23{position:relative;left:95.8333333333%}.ep-col-xl-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-xl-offset-24{margin-left:100%}.ep-col-xl-pull-24{position:relative;right:100%}.ep-col-xl-push-24{position:relative;left:100%}}.ep-row{display:flex;flex-wrap:wrap;position:relative;box-sizing:border-box}.ep-row.is-justify-center{justify-content:center}.ep-row.is-justify-end{justify-content:flex-end}.ep-row.is-justify-space-between{justify-content:space-between}.ep-row.is-justify-space-around{justify-content:space-around}.ep-row.is-justify-space-evenly{justify-content:space-evenly}.ep-row.is-align-middle{align-items:center}.ep-row.is-align-bottom{align-items:flex-end}.ep-button{--ep-button-font-weight: var(--ep-font-weight-primary);--ep-button-border-color: var(--ep-border-color);--ep-button-bg-color: var(--ep-fill-color-blank);--ep-button-text-color: var(--ep-text-color-regular);--ep-button-disabled-text-color: var(--ep-disabled-text-color);--ep-button-disabled-bg-color: var(--ep-fill-color-blank);--ep-button-disabled-border-color: var(--ep-border-color-light);--ep-button-divide-border-color: rgba(255, 255, 255, .5);--ep-button-hover-text-color: var(--ep-color-primary);--ep-button-hover-bg-color: var(--ep-color-primary-light-9);--ep-button-hover-border-color: var(--ep-color-primary-light-7);--ep-button-active-text-color: var(--ep-button-hover-text-color);--ep-button-active-border-color: var(--ep-color-primary);--ep-button-active-bg-color: var(--ep-button-hover-bg-color);--ep-button-outline-color: var(--ep-color-primary-light-5);--ep-button-hover-link-text-color: var(--ep-color-info);--ep-button-active-color: var(--ep-text-color-primary);display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--ep-button-text-color);text-align:center;box-sizing:border-box;outline:none;transition:.1s;font-weight:var(--ep-button-font-weight);-webkit-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--ep-button-bg-color);border:var(--ep-border);border-color:var(--ep-button-border-color);padding:8px 49px;font-size:var(--ep-font-size-base);border-radius:var(--ep-border-radius-base)}.ep-button:hover,.ep-button:focus{color:var(--ep-button-hover-text-color);border-color:var(--ep-button-hover-border-color);background-color:var(--ep-button-hover-bg-color);outline:none}.ep-button:active{color:var(--ep-button-active-text-color);border-color:var(--ep-button-active-border-color);background-color:var(--ep-button-active-bg-color);outline:none}.ep-button:focus-visible{outline:2px solid var(--ep-button-outline-color);outline-offset:1px}.ep-button>span{display:inline-flex;align-items:center}.ep-button+.ep-button{margin-left:12px}.ep-button.is-round{padding:8px 49px}.ep-button::-moz-focus-inner{border:0}.ep-button [class*=ep-icon]+span{margin-left:6px}.ep-button [class*=ep-icon] svg{vertical-align:bottom}.ep-button.is-plain{--ep-button-hover-text-color: var(--ep-color-primary);--ep-button-hover-bg-color: var(--ep-fill-color-blank);--ep-button-hover-border-color: var(--ep-color-primary)}.ep-button.is-active{color:var(--ep-button-active-text-color);border-color:var(--ep-button-active-border-color);background-color:var(--ep-button-active-bg-color);outline:none}.ep-button.is-disabled,.ep-button.is-disabled:hover,.ep-button.is-disabled:focus{color:var(--ep-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--ep-button-disabled-bg-color);border-color:var(--ep-button-disabled-border-color)}.ep-button.is-loading{position:relative;pointer-events:none}.ep-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--ep-mask-color-extra-light)}.ep-button.is-round{border-radius:var(--ep-border-radius-round)}.ep-button.is-circle{border-radius:50%;padding:8px}.ep-button.is-text{color:var(--ep-button-text-color);border:0 solid transparent;background-color:transparent}.ep-button.is-text.is-disabled{color:var(--ep-button-disabled-text-color);background-color:transparent!important}.ep-button.is-text:not(.is-disabled):hover,.ep-button.is-text:not(.is-disabled):focus{background-color:var(--ep-fill-color-light)}.ep-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--ep-button-outline-color);outline-offset:1px}.ep-button.is-text:not(.is-disabled):active{background-color:var(--ep-fill-color)}.ep-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--ep-fill-color-light)}.ep-button.is-text:not(.is-disabled).is-has-bg:hover,.ep-button.is-text:not(.is-disabled).is-has-bg:focus{background-color:var(--ep-fill-color)}.ep-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--ep-fill-color-dark)}.ep-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.ep-button.is-link{border-color:transparent;color:var(--ep-button-text-color);background:transparent;padding:2px;height:auto}.ep-button.is-link:hover,.ep-button.is-link:focus{color:var(--ep-button-hover-link-text-color)}.ep-button.is-link.is-disabled{color:var(--ep-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.ep-button.is-link:not(.is-disabled):hover,.ep-button.is-link:not(.is-disabled):focus{border-color:transparent;background-color:transparent}.ep-button.is-link:not(.is-disabled):active{color:var(--ep-button-active-color);border-color:transparent;background-color:transparent}.ep-button--text{border-color:transparent;background:transparent;color:var(--ep-color-primary);padding-left:0;padding-right:0}.ep-button--text.is-disabled{color:var(--ep-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.ep-button--text:not(.is-disabled):hover,.ep-button--text:not(.is-disabled):focus{color:var(--ep-color-primary-light-3);border-color:transparent;background-color:transparent}.ep-button--text:not(.is-disabled):active{color:var(--ep-color-primary-dark-2);border-color:transparent;background-color:transparent}.ep-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.ep-button--primary{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-primary);--ep-button-border-color: var(--ep-color-primary);--ep-button-outline-color: var(--ep-color-primary-light-5);--ep-button-active-color: var(--ep-color-primary-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-primary-light-5);--ep-button-hover-bg-color: var(--ep-color-primary-light-3);--ep-button-hover-border-color: var(--ep-color-primary-light-3);--ep-button-active-bg-color: var(--ep-color-primary-dark-2);--ep-button-active-border-color: var(--ep-color-primary-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-primary-light-5);--ep-button-disabled-border-color: var(--ep-color-primary-light-5)}.ep-button--primary.is-plain,.ep-button--primary.is-text,.ep-button--primary.is-link{--ep-button-text-color: var(--ep-color-primary);--ep-button-bg-color: var(--ep-color-primary-light-9);--ep-button-border-color: var(--ep-color-primary-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-primary);--ep-button-hover-border-color: var(--ep-color-primary);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--primary.is-plain.is-disabled,.ep-button--primary.is-plain.is-disabled:hover,.ep-button--primary.is-plain.is-disabled:focus,.ep-button--primary.is-plain.is-disabled:active,.ep-button--primary.is-text.is-disabled,.ep-button--primary.is-text.is-disabled:hover,.ep-button--primary.is-text.is-disabled:focus,.ep-button--primary.is-text.is-disabled:active,.ep-button--primary.is-link.is-disabled,.ep-button--primary.is-link.is-disabled:hover,.ep-button--primary.is-link.is-disabled:focus,.ep-button--primary.is-link.is-disabled:active{color:var(--ep-color-primary-light-5);background-color:var(--ep-color-primary-light-9);border-color:var(--ep-color-primary-light-8)}.ep-button--success{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-success);--ep-button-border-color: var(--ep-color-success);--ep-button-outline-color: var(--ep-color-success-light-5);--ep-button-active-color: var(--ep-color-success-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-success-light-5);--ep-button-hover-bg-color: var(--ep-color-success-light-3);--ep-button-hover-border-color: var(--ep-color-success-light-3);--ep-button-active-bg-color: var(--ep-color-success-dark-2);--ep-button-active-border-color: var(--ep-color-success-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-success-light-5);--ep-button-disabled-border-color: var(--ep-color-success-light-5)}.ep-button--success.is-plain,.ep-button--success.is-text,.ep-button--success.is-link{--ep-button-text-color: var(--ep-color-success);--ep-button-bg-color: var(--ep-color-success-light-9);--ep-button-border-color: var(--ep-color-success-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-success);--ep-button-hover-border-color: var(--ep-color-success);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--success.is-plain.is-disabled,.ep-button--success.is-plain.is-disabled:hover,.ep-button--success.is-plain.is-disabled:focus,.ep-button--success.is-plain.is-disabled:active,.ep-button--success.is-text.is-disabled,.ep-button--success.is-text.is-disabled:hover,.ep-button--success.is-text.is-disabled:focus,.ep-button--success.is-text.is-disabled:active,.ep-button--success.is-link.is-disabled,.ep-button--success.is-link.is-disabled:hover,.ep-button--success.is-link.is-disabled:focus,.ep-button--success.is-link.is-disabled:active{color:var(--ep-color-success-light-5);background-color:var(--ep-color-success-light-9);border-color:var(--ep-color-success-light-8)}.ep-button--warning{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-warning);--ep-button-border-color: var(--ep-color-warning);--ep-button-outline-color: var(--ep-color-warning-light-5);--ep-button-active-color: var(--ep-color-warning-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-warning-light-5);--ep-button-hover-bg-color: var(--ep-color-warning-light-3);--ep-button-hover-border-color: var(--ep-color-warning-light-3);--ep-button-active-bg-color: var(--ep-color-warning-dark-2);--ep-button-active-border-color: var(--ep-color-warning-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-warning-light-5);--ep-button-disabled-border-color: var(--ep-color-warning-light-5)}.ep-button--warning.is-plain,.ep-button--warning.is-text,.ep-button--warning.is-link{--ep-button-text-color: var(--ep-color-warning);--ep-button-bg-color: var(--ep-color-warning-light-9);--ep-button-border-color: var(--ep-color-warning-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-warning);--ep-button-hover-border-color: var(--ep-color-warning);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--warning.is-plain.is-disabled,.ep-button--warning.is-plain.is-disabled:hover,.ep-button--warning.is-plain.is-disabled:focus,.ep-button--warning.is-plain.is-disabled:active,.ep-button--warning.is-text.is-disabled,.ep-button--warning.is-text.is-disabled:hover,.ep-button--warning.is-text.is-disabled:focus,.ep-button--warning.is-text.is-disabled:active,.ep-button--warning.is-link.is-disabled,.ep-button--warning.is-link.is-disabled:hover,.ep-button--warning.is-link.is-disabled:focus,.ep-button--warning.is-link.is-disabled:active{color:var(--ep-color-warning-light-5);background-color:var(--ep-color-warning-light-9);border-color:var(--ep-color-warning-light-8)}.ep-button--danger{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-danger);--ep-button-border-color: var(--ep-color-danger);--ep-button-outline-color: var(--ep-color-danger-light-5);--ep-button-active-color: var(--ep-color-danger-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-danger-light-5);--ep-button-hover-bg-color: var(--ep-color-danger-light-3);--ep-button-hover-border-color: var(--ep-color-danger-light-3);--ep-button-active-bg-color: var(--ep-color-danger-dark-2);--ep-button-active-border-color: var(--ep-color-danger-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-danger-light-5);--ep-button-disabled-border-color: var(--ep-color-danger-light-5)}.ep-button--danger.is-plain,.ep-button--danger.is-text,.ep-button--danger.is-link{--ep-button-text-color: var(--ep-color-danger);--ep-button-bg-color: var(--ep-color-danger-light-9);--ep-button-border-color: var(--ep-color-danger-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-danger);--ep-button-hover-border-color: var(--ep-color-danger);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--danger.is-plain.is-disabled,.ep-button--danger.is-plain.is-disabled:hover,.ep-button--danger.is-plain.is-disabled:focus,.ep-button--danger.is-plain.is-disabled:active,.ep-button--danger.is-text.is-disabled,.ep-button--danger.is-text.is-disabled:hover,.ep-button--danger.is-text.is-disabled:focus,.ep-button--danger.is-text.is-disabled:active,.ep-button--danger.is-link.is-disabled,.ep-button--danger.is-link.is-disabled:hover,.ep-button--danger.is-link.is-disabled:focus,.ep-button--danger.is-link.is-disabled:active{color:var(--ep-color-danger-light-5);background-color:var(--ep-color-danger-light-9);border-color:var(--ep-color-danger-light-8)}.ep-button--info{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-info);--ep-button-border-color: var(--ep-color-info);--ep-button-outline-color: var(--ep-color-info-light-5);--ep-button-active-color: var(--ep-color-info-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-info-light-5);--ep-button-hover-bg-color: var(--ep-color-info-light-3);--ep-button-hover-border-color: var(--ep-color-info-light-3);--ep-button-active-bg-color: var(--ep-color-info-dark-2);--ep-button-active-border-color: var(--ep-color-info-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-info-light-5);--ep-button-disabled-border-color: var(--ep-color-info-light-5)}.ep-button--info.is-plain,.ep-button--info.is-text,.ep-button--info.is-link{--ep-button-text-color: var(--ep-color-info);--ep-button-bg-color: var(--ep-color-info-light-9);--ep-button-border-color: var(--ep-color-info-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-info);--ep-button-hover-border-color: var(--ep-color-info);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--info.is-plain.is-disabled,.ep-button--info.is-plain.is-disabled:hover,.ep-button--info.is-plain.is-disabled:focus,.ep-button--info.is-plain.is-disabled:active,.ep-button--info.is-text.is-disabled,.ep-button--info.is-text.is-disabled:hover,.ep-button--info.is-text.is-disabled:focus,.ep-button--info.is-text.is-disabled:active,.ep-button--info.is-link.is-disabled,.ep-button--info.is-link.is-disabled:hover,.ep-button--info.is-link.is-disabled:focus,.ep-button--info.is-link.is-disabled:active{color:var(--ep-color-info-light-5);background-color:var(--ep-color-info-light-9);border-color:var(--ep-color-info-light-8)}.ep-button--large{--ep-button-size: 40px;height:var(--ep-button-size);padding:12px 19px;font-size:var(--ep-font-size-base);border-radius:var(--ep-border-radius-base)}.ep-button--large [class*=ep-icon]+span{margin-left:8px}.ep-button--large.is-round{padding:12px 19px}.ep-button--large.is-circle{width:var(--ep-button-size);padding:12px}.ep-button--small{--ep-button-size: 24px;height:var(--ep-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--ep-border-radius-base) - 1px)}.ep-button--small [class*=ep-icon]+span{margin-left:4px}.ep-button--small.is-round{padding:5px 11px}.ep-button--small.is-circle{width:var(--ep-button-size);padding:5px}.ep-form{--ep-form-label-font-size: var(--ep-font-size-base)}.ep-form--label-left .ep-form-item__label{justify-content:flex-start}.ep-form--label-top .ep-form-item{display:block}.ep-form--label-top .ep-form-item .ep-form-item__label{display:block;height:auto;text-align:left;margin-bottom:8px;line-height:22px}.ep-form--inline .ep-form-item{display:inline-flex;vertical-align:middle;margin-right:32px}.ep-form--inline.ep-form--label-top{display:flex;flex-wrap:wrap}.ep-form--inline.ep-form--label-top .ep-form-item{display:block}.ep-form--large.ep-form--label-top .ep-form-item .ep-form-item__label{margin-bottom:12px;line-height:22px}.ep-form--default.ep-form--label-top .ep-form-item .ep-form-item__label{margin-bottom:8px;line-height:22px}.ep-form--small.ep-form--label-top .ep-form-item .ep-form-item__label{margin-bottom:4px;line-height:20px}.ep-form-item{display:flex;--font-size: 14px;margin-bottom:18px}.ep-form-item .ep-form-item{margin-bottom:0}.ep-form-item .ep-input__validateIcon{display:none}.ep-form-item--large{--font-size: 14px;--ep-form-label-font-size: var(--font-size);margin-bottom:22px}.ep-form-item--large .ep-form-item__label{height:40px;line-height:40px}.ep-form-item--large .ep-form-item__content{line-height:40px}.ep-form-item--large .ep-form-item__error{padding-top:4px}.ep-form-item--default{--font-size: 14px;--ep-form-label-font-size: var(--font-size);margin-bottom:18px}.ep-form-item--default .ep-form-item__label{height:32px;line-height:32px}.ep-form-item--default .ep-form-item__content{line-height:32px}.ep-form-item--default .ep-form-item__error{padding-top:2px}.ep-form-item--small{--font-size: 12px;--ep-form-label-font-size: var(--font-size);margin-bottom:18px}.ep-form-item--small .ep-form-item__label{height:24px;line-height:24px}.ep-form-item--small .ep-form-item__content{line-height:24px}.ep-form-item--small .ep-form-item__error{padding-top:2px}.ep-form-item__label-wrap{display:flex}.ep-form-item__label{display:inline-flex;justify-content:flex-end;align-items:flex-start;flex:0 0 auto;font-size:var(--ep-form-label-font-size);color:var(--ep-text-color-regular);height:32px;line-height:32px;padding:0 12px 0 0;box-sizing:border-box}.ep-form-item__content{display:flex;flex-wrap:wrap;align-items:center;flex:1;line-height:32px;position:relative;font-size:var(--font-size);min-width:0}.ep-form-item__content .ep-input-group{vertical-align:top}.ep-form-item__error{color:var(--ep-color-danger);font-size:12px;line-height:1;padding-top:2px;position:absolute;top:100%;left:0}.ep-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.ep-form-item.is-required:not(.is-no-asterisk).asterisk-left>.ep-form-item__label:before,.ep-form-item.is-required:not(.is-no-asterisk).asterisk-left>.ep-form-item__label-wrap>.ep-form-item__label:before{content:"*";color:var(--ep-color-danger);margin-right:4px}.ep-form-item.is-required:not(.is-no-asterisk).asterisk-right>.ep-form-item__label:after,.ep-form-item.is-required:not(.is-no-asterisk).asterisk-right>.ep-form-item__label-wrap>.ep-form-item__label:after{content:"*";color:var(--ep-color-danger);margin-left:4px}.ep-form-item.is-error .ep-select-v2__wrapper,.ep-form-item.is-error .ep-select-v2__wrapper:focus,.ep-form-item.is-error .ep-textarea__inner,.ep-form-item.is-error .ep-textarea__inner:focus{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-form-item.is-error .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-form-item.is-error .ep-input-group__append .ep-input__wrapper,.ep-form-item.is-error .ep-input-group__prepend .ep-input__wrapper{box-shadow:0 0 0 1px transparent inset}.ep-form-item.is-error .ep-input__validateIcon{color:var(--ep-color-danger)}.ep-form-item--feedback .ep-input__validateIcon{display:inline-flex}:root{--ep-popup-modal-bg-color: var(--ep-color-black);--ep-popup-modal-opacity: .5}.v-modal-enter{animation:v-modal-in var(--ep-transition-duration-fast) ease}.v-modal-leave{animation:v-modal-out var(--ep-transition-duration-fast) ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--ep-popup-modal-opacity);background:var(--ep-popup-modal-bg-color)}.ep-popup-parent--hidden{overflow:hidden}.ep-dialog{--ep-dialog-width: 50%;--ep-dialog-margin-top: 15vh;--ep-dialog-bg-color: var(--ep-bg-color);--ep-dialog-box-shadow: var(--ep-box-shadow);--ep-dialog-title-font-size: var(--ep-font-size-large);--ep-dialog-content-font-size: 14px;--ep-dialog-font-line-height: var(--ep-font-line-height-primary);--ep-dialog-padding-primary: 20px;--ep-dialog-border-radius: var(--ep-border-radius-small);position:relative;margin:var(--ep-dialog-margin-top, 15vh) auto 50px;background:var(--ep-dialog-bg-color);border-radius:var(--ep-dialog-border-radius);box-shadow:var(--ep-dialog-box-shadow);box-sizing:border-box;width:var(--ep-dialog-width, 50%)}.ep-dialog:focus{outline:none!important}.ep-dialog.is-align-center{margin:auto}.ep-dialog.is-fullscreen{--ep-dialog-width: 100%;--ep-dialog-margin-top: 0;margin-bottom:0;height:100%;overflow:auto}.ep-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.ep-dialog.is-draggable .ep-dialog__header{cursor:move;-webkit-user-select:none;user-select:none}.ep-dialog__header{padding:var(--ep-dialog-padding-primary);padding-bottom:10px;margin-right:16px}.ep-dialog__headerbtn{position:absolute;top:6px;right:0;padding:0;width:54px;height:54px;background:transparent;border:none;outline:none;cursor:pointer;font-size:var(--ep-message-close-size, 16px)}.ep-dialog__headerbtn .ep-dialog__close{color:var(--ep-color-info);font-size:inherit}.ep-dialog__headerbtn:focus .ep-dialog__close,.ep-dialog__headerbtn:hover .ep-dialog__close{color:var(--ep-color-primary)}.ep-dialog__title{line-height:var(--ep-dialog-font-line-height);font-size:var(--ep-dialog-title-font-size);color:var(--ep-text-color-primary)}.ep-dialog__body{padding:calc(var(--ep-dialog-padding-primary) + 10px) var(--ep-dialog-padding-primary);color:var(--ep-text-color-regular);font-size:var(--ep-dialog-content-font-size)}.ep-dialog__footer{padding:var(--ep-dialog-padding-primary);padding-top:10px;text-align:right;box-sizing:border-box}.ep-dialog--center{text-align:center}.ep-dialog--center .ep-dialog__body{text-align:initial;padding:25px calc(var(--ep-dialog-padding-primary) + 5px) 30px}.ep-dialog--center .ep-dialog__footer{text-align:inherit}.ep-overlay-dialog{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.dialog-fade-enter-active{animation:modal-fade-in var(--ep-transition-duration)}.dialog-fade-enter-active .ep-overlay-dialog{animation:dialog-fade-in var(--ep-transition-duration)}.dialog-fade-leave-active{animation:modal-fade-out var(--ep-transition-duration)}.dialog-fade-leave-active .ep-overlay-dialog{animation:dialog-fade-out var(--ep-transition-duration)}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.ep-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--ep-overlay-color-lighter);overflow:auto}.ep-overlay .ep-overlay-root{height:0}.ep-table{--ep-table-border-color: var(--ep-border-color-lighter);--ep-table-border: 1px solid var(--ep-table-border-color);--ep-table-text-color: var(--ep-text-color-regular);--ep-table-header-text-color: var(--ep-text-color-secondary);--ep-table-row-hover-bg-color: var(--ep-fill-color-light);--ep-table-current-row-bg-color: var(--ep-color-primary-light-9);--ep-table-header-bg-color: var(--ep-bg-color);--ep-table-fixed-box-shadow: var(--ep-box-shadow-light);--ep-table-bg-color: var(--ep-fill-color-blank);--ep-table-tr-bg-color: var(--ep-fill-color-blank);--ep-table-expanded-cell-bg-color: var(--ep-fill-color-blank);--ep-table-fixed-left-column: inset 10px 0 10px -10px rgba(0, 0, 0, .15);--ep-table-fixed-right-column: inset -10px 0 10px -10px rgba(0, 0, 0, .15);position:relative;overflow:hidden;box-sizing:border-box;height:-moz-fit-content;height:fit-content;width:100%;max-width:100%;background-color:var(--ep-table-bg-color);font-size:14px;color:var(--ep-table-text-color)}.ep-table__inner-wrapper{position:relative;display:flex;flex-direction:column;height:100%}.ep-table__inner-wrapper:before{left:0;bottom:0px;width:100%;height:1px}.ep-table.has-footer.ep-table--scrollable-y tr:last-child td.ep-table__cell,.ep-table.has-footer.ep-table--fluid-height tr:last-child td.ep-table__cell{border-bottom-color:transparent}.ep-table__empty-block{position:sticky;left:0;min-height:60px;text-align:center;width:100%;display:flex;justify-content:center;align-items:center}.ep-table__empty-text{line-height:60px;width:50%;color:var(--ep-text-color-secondary)}.ep-table__expand-column .cell{padding:0;text-align:center;-webkit-user-select:none;user-select:none}.ep-table__expand-icon{position:relative;cursor:pointer;color:var(--ep-text-color-regular);font-size:12px;transition:transform var(--ep-transition-duration-fast) ease-in-out;height:20px}.ep-table__expand-icon--expanded{transform:rotate(90deg)}.ep-table__expand-icon>.ep-icon{font-size:12px}.ep-table__expanded-cell{background-color:var(--ep-table-expanded-cell-bg-color)}.ep-table__expanded-cell[class*=cell]{padding:20px 50px}.ep-table__expanded-cell:hover{background-color:transparent!important}.ep-table__placeholder{display:inline-block;width:20px}.ep-table__append-wrapper{overflow:hidden}.ep-table--fit{border-right:0;border-bottom:0}.ep-table--fit .ep-table__cell.gutter{border-right-width:1px}.ep-table thead{color:var(--ep-table-header-text-color);font-weight:500}.ep-table thead.is-group th.ep-table__cell{background:var(--ep-fill-color-light)}.ep-table .ep-table__cell{padding:8px 0;min-width:0;box-sizing:border-box;text-overflow:ellipsis;vertical-align:middle;position:relative;text-align:left;z-index:1}.ep-table .ep-table__cell.is-center{text-align:center}.ep-table .ep-table__cell.is-right{text-align:right}.ep-table .ep-table__cell.gutter{width:15px;border-right-width:0;border-bottom-width:0;padding:0}.ep-table .ep-table__cell.is-hidden>*{visibility:hidden}.ep-table .cell{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-all;line-height:23px;padding:0 12px}.ep-table .cell.ep-tooltip{white-space:nowrap;min-width:50px}.ep-table--large{font-size:var(--ep-font-size-base)}.ep-table--large .ep-table__cell{padding:12px 0}.ep-table--large .cell{padding:0 16px}.ep-table--default{font-size:14px}.ep-table--default .ep-table__cell{padding:8px 0}.ep-table--default .cell{padding:0 12px}.ep-table--small{font-size:12px}.ep-table--small .ep-table__cell{padding:4px 0}.ep-table--small .cell{padding:0 8px}.ep-table tr{background-color:var(--ep-table-tr-bg-color)}.ep-table tr input[type=checkbox]{margin:0}.ep-table th.ep-table__cell.is-leaf,.ep-table td.ep-table__cell{border-bottom:var(--ep-table-border)}.ep-table th.ep-table__cell.is-sortable{cursor:pointer}.ep-table th.ep-table__cell{-webkit-user-select:none;user-select:none;background-color:var(--ep-table-header-bg-color)}.ep-table th.ep-table__cell>.cell.highlight{color:var(--ep-color-primary)}.ep-table th.ep-table__cell.required>div:before{display:inline-block;content:"";width:8px;height:8px;border-radius:50%;background:#ff4d51;margin-right:5px;vertical-align:middle}.ep-table td.ep-table__cell div{box-sizing:border-box}.ep-table td.ep-table__cell.gutter{width:0}.ep-table__footer-wrapper{border-top:var(--ep-table-border)}.ep-table--border:after,.ep-table--border:before,.ep-table--border .ep-table__inner-wrapper:after,.ep-table__inner-wrapper:before{content:"";position:absolute;background-color:var(--ep-table-border-color);z-index:3}.ep-table--border .ep-table__inner-wrapper:after{left:0;top:0;width:100%;height:1px}.ep-table--border:before{top:-1px;left:0;width:1px;height:100%}.ep-table--border:after{top:-1px;right:0;width:1px;height:100%}.ep-table--border .ep-table__inner-wrapper{border-right:none;border-bottom:none}.ep-table--border .ep-table__footer-wrapper{position:relative;flex-shrink:0}.ep-table--border .ep-table__cell{border-right:var(--ep-table-border)}.ep-table--border th.ep-table__cell.gutter:last-of-type{border-bottom:var(--ep-table-border);border-bottom-width:1px}.ep-table--border th.ep-table__cell{border-bottom:var(--ep-table-border)}.ep-table--hidden{visibility:hidden}.ep-table__header-wrapper,.ep-table__body-wrapper,.ep-table__footer-wrapper{width:100%}.ep-table__header-wrapper tr td.ep-table-fixed-column--left,.ep-table__header-wrapper tr td.ep-table-fixed-column--right,.ep-table__header-wrapper tr th.ep-table-fixed-column--left,.ep-table__header-wrapper tr th.ep-table-fixed-column--right,.ep-table__body-wrapper tr td.ep-table-fixed-column--left,.ep-table__body-wrapper tr td.ep-table-fixed-column--right,.ep-table__body-wrapper tr th.ep-table-fixed-column--left,.ep-table__body-wrapper tr th.ep-table-fixed-column--right,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right{position:sticky!important;z-index:2;background:var(--ep-bg-color)}.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-first-column:before{content:"";position:absolute;top:0px;width:10px;bottom:-1px;overflow-x:hidden;overflow-y:hidden;box-shadow:none;touch-action:none;pointer-events:none}.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-first-column:before{left:-10px}.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-last-column:before{right:-10px;box-shadow:none}.ep-table__header-wrapper tr td.ep-table__fixed-right-patch,.ep-table__header-wrapper tr th.ep-table__fixed-right-patch,.ep-table__body-wrapper tr td.ep-table__fixed-right-patch,.ep-table__body-wrapper tr th.ep-table__fixed-right-patch,.ep-table__footer-wrapper tr td.ep-table__fixed-right-patch,.ep-table__footer-wrapper tr th.ep-table__fixed-right-patch{position:sticky!important;z-index:2;background:#fff;right:0}.ep-table__header-wrapper{flex-shrink:0}.ep-table__header-wrapper tr th.ep-table-fixed-column--left,.ep-table__header-wrapper tr th.ep-table-fixed-column--right{background-color:var(--ep-table-header-bg-color)}.ep-table__header,.ep-table__body,.ep-table__footer{table-layout:fixed;border-collapse:separate}.ep-table__header-wrapper,.ep-table__footer-wrapper{overflow:hidden}.ep-table__header-wrapper tbody td.ep-table__cell,.ep-table__footer-wrapper tbody td.ep-table__cell{background-color:var(--ep-table-row-hover-bg-color);color:var(--ep-table-text-color)}.ep-table__header-wrapper .ep-table-column--selection>.cell,.ep-table__body-wrapper .ep-table-column--selection>.cell{display:inline-flex;align-items:center;height:23px}.ep-table__header-wrapper .ep-table-column--selection .ep-checkbox,.ep-table__body-wrapper .ep-table-column--selection .ep-checkbox{height:unset}.ep-table.is-scrolling-left .ep-table-fixed-column--right.is-first-column:before{box-shadow:var(--ep-table-fixed-right-column)}.ep-table.is-scrolling-left.ep-table--border .ep-table-fixed-column--left.is-last-column.ep-table__cell{border-right:var(--ep-table-border)}.ep-table.is-scrolling-left th.ep-table-fixed-column--left{background-color:var(--ep-table-header-bg-color)}.ep-table.is-scrolling-right .ep-table-fixed-column--left.is-last-column:before{box-shadow:var(--ep-table-fixed-left-column)}.ep-table.is-scrolling-right .ep-table-fixed-column--left.is-last-column.ep-table__cell{border-right:none}.ep-table.is-scrolling-right th.ep-table-fixed-column--right{background-color:var(--ep-table-header-bg-color)}.ep-table.is-scrolling-middle .ep-table-fixed-column--left.is-last-column.ep-table__cell{border-right:none}.ep-table.is-scrolling-middle .ep-table-fixed-column--right.is-first-column:before{box-shadow:var(--ep-table-fixed-right-column)}.ep-table.is-scrolling-middle .ep-table-fixed-column--left.is-last-column:before{box-shadow:var(--ep-table-fixed-left-column)}.ep-table.is-scrolling-none .ep-table-fixed-column--left.is-first-column:before,.ep-table.is-scrolling-none .ep-table-fixed-column--left.is-last-column:before,.ep-table.is-scrolling-none .ep-table-fixed-column--right.is-first-column:before,.ep-table.is-scrolling-none .ep-table-fixed-column--right.is-last-column:before{box-shadow:none}.ep-table.is-scrolling-none th.ep-table-fixed-column--left,.ep-table.is-scrolling-none th.ep-table-fixed-column--right{background-color:var(--ep-table-header-bg-color)}.ep-table__body-wrapper{overflow:hidden;position:relative;flex:1}.ep-table__body-wrapper .ep-scrollbar__bar{z-index:2}.ep-table .caret-wrapper{display:inline-flex;flex-direction:column;align-items:center;height:14px;width:24px;vertical-align:middle;cursor:pointer;overflow:initial;position:relative}.ep-table .sort-caret{width:0;height:0;border:solid 5px transparent;position:absolute;left:7px}.ep-table .sort-caret.ascending{border-bottom-color:var(--ep-text-color-placeholder);top:-5px}.ep-table .sort-caret.descending{border-top-color:var(--ep-text-color-placeholder);bottom:-3px}.ep-table .ascending .sort-caret.ascending{border-bottom-color:var(--ep-color-primary)}.ep-table .descending .sort-caret.descending{border-top-color:var(--ep-color-primary)}.ep-table .hidden-columns{visibility:hidden;position:absolute;z-index:-1}.ep-table--striped .ep-table__body tr.ep-table__row--striped td.ep-table__cell{background:var(--ep-fill-color-lighter)}.ep-table--striped .ep-table__body tr.ep-table__row--striped.current-row td.ep-table__cell{background-color:var(--ep-table-current-row-bg-color)}.ep-table__body tr.hover-row>td.ep-table__cell,.ep-table__body tr.hover-row.current-row>td.ep-table__cell,.ep-table__body tr.hover-row.ep-table__row--striped>td.ep-table__cell,.ep-table__body tr.hover-row.ep-table__row--striped.current-row>td.ep-table__cell{background-color:var(--ep-table-row-hover-bg-color)}.ep-table__body tr.current-row>td.ep-table__cell{background-color:var(--ep-table-current-row-bg-color)}.ep-table__column-resize-proxy{position:absolute;left:200px;top:0;bottom:0;width:0;border-left:var(--ep-table-border);z-index:10}.ep-table__column-filter-trigger{display:inline-block;cursor:pointer}.ep-table__column-filter-trigger i{color:var(--ep-color-info);font-size:14px;vertical-align:middle}.ep-table__border-left-patch{top:0;left:0;width:1px;height:100%;z-index:3;position:absolute;background-color:var(--ep-table-border-color)}.ep-table__border-bottom-patch{left:0;height:1px;z-index:3;position:absolute;background-color:var(--ep-table-border-color)}.ep-table__border-right-patch{top:0;height:100%;width:1px;z-index:3;position:absolute;background-color:var(--ep-table-border-color)}.ep-table--enable-row-transition .ep-table__body td.ep-table__cell{transition:background-color .25s ease}.ep-table--enable-row-hover .ep-table__body tr:hover>td.ep-table__cell{background-color:var(--ep-table-row-hover-bg-color)}.ep-table [class*=ep-table__row--level] .ep-table__expand-icon{display:inline-block;width:12px;line-height:12px;height:12px;text-align:center;margin-right:8px}.ep-table .ep-table.ep-table--border .ep-table__cell{border-right:var(--ep-table-border)}.ep-table:not(.ep-table--border) .ep-table__cell{border-right:none}.ep-table:not(.ep-table--border)>.ep-table__inner-wrapper:after{content:none}.ep-checkbox{--ep-checkbox-font-size: 14px;--ep-checkbox-font-weight: var(--ep-font-weight-primary);--ep-checkbox-text-color: var(--ep-text-color-regular);--ep-checkbox-input-height: 14px;--ep-checkbox-input-width: 14px;--ep-checkbox-border-radius: var(--ep-border-radius-small);--ep-checkbox-bg-color: var(--ep-fill-color-blank);--ep-checkbox-input-border: var(--ep-border);--ep-checkbox-disabled-border-color: var(--ep-border-color);--ep-checkbox-disabled-input-fill: var(--ep-fill-color-light);--ep-checkbox-disabled-icon-color: var(--ep-text-color-placeholder);--ep-checkbox-disabled-checked-input-fill: var(--ep-border-color-extra-light);--ep-checkbox-disabled-checked-input-border-color: var(--ep-border-color);--ep-checkbox-disabled-checked-icon-color: var(--ep-text-color-placeholder);--ep-checkbox-checked-text-color: var(--ep-color-primary);--ep-checkbox-checked-input-border-color: var(--ep-color-primary);--ep-checkbox-checked-bg-color: var(--ep-color-primary);--ep-checkbox-checked-icon-color: var(--ep-color-white);--ep-checkbox-input-border-color-hover: var(--ep-color-primary);color:var(--ep-checkbox-text-color);font-weight:var(--ep-checkbox-font-weight);font-size:var(--ep-font-size-base);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;-webkit-user-select:none;user-select:none;margin-right:30px;height:32px}.ep-checkbox.is-disabled{cursor:not-allowed}.ep-checkbox.is-bordered{padding:0 15px 0 9px;border-radius:var(--ep-border-radius-base);border:var(--ep-border);box-sizing:border-box}.ep-checkbox.is-bordered.is-checked{border-color:var(--ep-color-primary)}.ep-checkbox.is-bordered.is-disabled{border-color:var(--ep-border-color-lighter)}.ep-checkbox.is-bordered.ep-checkbox--large{padding:0 19px 0 11px;border-radius:var(--ep-border-radius-base)}.ep-checkbox.is-bordered.ep-checkbox--large .ep-checkbox__label{font-size:var(--ep-font-size-base)}.ep-checkbox.is-bordered.ep-checkbox--large .ep-checkbox__inner{height:14px;width:14px}.ep-checkbox.is-bordered.ep-checkbox--small{padding:0 11px 0 7px;border-radius:calc(var(--ep-border-radius-base) - 1px)}.ep-checkbox.is-bordered.ep-checkbox--small .ep-checkbox__label{font-size:12px}.ep-checkbox.is-bordered.ep-checkbox--small .ep-checkbox__inner{height:12px;width:12px}.ep-checkbox.is-bordered.ep-checkbox--small .ep-checkbox__inner:after{height:6px;width:2px}.ep-checkbox input:focus-visible+.ep-checkbox__inner{outline:2px solid var(--ep-checkbox-input-border-color-hover);outline-offset:1px;border-radius:var(--ep-checkbox-border-radius)}.ep-checkbox__input{white-space:nowrap;cursor:pointer;outline:none;display:inline-flex;position:relative}.ep-checkbox__input.is-disabled .ep-checkbox__inner{background-color:var(--ep-checkbox-disabled-input-fill);border-color:var(--ep-checkbox-disabled-border-color);cursor:not-allowed}.ep-checkbox__input.is-disabled .ep-checkbox__inner:after{cursor:not-allowed;border-color:var(--ep-checkbox-disabled-icon-color)}.ep-checkbox__input.is-disabled.is-checked .ep-checkbox__inner{background-color:var(--ep-checkbox-disabled-checked-input-fill);border-color:var(--ep-checkbox-disabled-checked-input-border-color)}.ep-checkbox__input.is-disabled.is-checked .ep-checkbox__inner:after{border-color:var(--ep-checkbox-disabled-checked-icon-color)}.ep-checkbox__input.is-disabled.is-indeterminate .ep-checkbox__inner{background-color:var(--ep-checkbox-disabled-checked-input-fill);border-color:var(--ep-checkbox-disabled-checked-input-border-color)}.ep-checkbox__input.is-disabled.is-indeterminate .ep-checkbox__inner:before{background-color:var(--ep-checkbox-disabled-checked-icon-color);border-color:var(--ep-checkbox-disabled-checked-icon-color)}.ep-checkbox__input.is-disabled+span.ep-checkbox__label{color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-checkbox__input.is-checked .ep-checkbox__inner{background-color:var(--ep-checkbox-checked-bg-color);border-color:var(--ep-checkbox-checked-input-border-color)}.ep-checkbox__input.is-checked .ep-checkbox__inner:after{transform:rotate(45deg) scaleY(1)}.ep-checkbox__input.is-checked+.ep-checkbox__label{color:var(--ep-checkbox-checked-text-color)}.ep-checkbox__input.is-focus:not(.is-checked) .ep-checkbox__original:not(:focus-visible){border-color:var(--ep-checkbox-input-border-color-hover)}.ep-checkbox__input.is-indeterminate .ep-checkbox__inner{background-color:var(--ep-checkbox-checked-bg-color);border-color:var(--ep-checkbox-checked-input-border-color)}.ep-checkbox__input.is-indeterminate .ep-checkbox__inner:before{content:"";position:absolute;display:block;background-color:var(--ep-checkbox-checked-icon-color);height:2px;transform:scale(.5);left:0;right:0;top:5px}.ep-checkbox__input.is-indeterminate .ep-checkbox__inner:after{display:none}.ep-checkbox__inner{display:inline-block;position:relative;border:var(--ep-checkbox-input-border);border-radius:var(--ep-checkbox-border-radius);box-sizing:border-box;width:var(--ep-checkbox-input-width);height:var(--ep-checkbox-input-height);background-color:var(--ep-checkbox-bg-color);z-index:var(--ep-index-normal);transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46),outline .25s cubic-bezier(.71,-.46,.29,1.46)}.ep-checkbox__inner:hover{border-color:var(--ep-checkbox-input-border-color-hover)}.ep-checkbox__inner:after{box-sizing:content-box;content:"";border:1px solid var(--ep-checkbox-checked-icon-color);border-left:0;border-top:0;height:7px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:3px;transition:transform .15s ease-in .05s;transform-origin:center}.ep-checkbox__original{opacity:0;outline:none;position:absolute;margin:0;width:0;height:0;z-index:-1}.ep-checkbox__label{display:inline-block;padding-left:8px;line-height:1;font-size:var(--ep-checkbox-font-size)}.ep-checkbox.ep-checkbox--large{height:40px}.ep-checkbox.ep-checkbox--large .ep-checkbox__label{font-size:14px}.ep-checkbox.ep-checkbox--large .ep-checkbox__inner{width:14px;height:14px}.ep-checkbox.ep-checkbox--small{height:24px}.ep-checkbox.ep-checkbox--small .ep-checkbox__label{font-size:12px}.ep-checkbox.ep-checkbox--small .ep-checkbox__inner{width:12px;height:12px}.ep-checkbox.ep-checkbox--small .ep-checkbox__input.is-indeterminate .ep-checkbox__inner:before{top:4px}.ep-checkbox.ep-checkbox--small .ep-checkbox__inner:after{width:2px;height:6px}.ep-checkbox:last-of-type{margin-right:0}.ep-tag{--ep-tag-font-size: 12px;--ep-tag-border-radius: 4px;--ep-tag-border-radius-rounded: 9999px;--ep-tag-bg-color: var(--ep-color-primary-light-9);--ep-tag-border-color: var(--ep-color-primary-light-8);--ep-tag-hover-color: var(--ep-color-primary);--ep-tag-text-color: var(--ep-color-primary);background-color:var(--ep-tag-bg-color);border-color:var(--ep-tag-border-color);color:var(--ep-tag-text-color);display:inline-flex;justify-content:center;align-items:center;height:24px;padding:0 9px;font-size:var(--ep-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--ep-tag-border-radius);box-sizing:border-box;white-space:nowrap;--ep-icon-size: 14px}.ep-tag.ep-tag--primary{--ep-tag-bg-color: var(--ep-color-primary-light-9);--ep-tag-border-color: var(--ep-color-primary-light-8);--ep-tag-hover-color: var(--ep-color-primary)}.ep-tag.ep-tag--success{--ep-tag-bg-color: var(--ep-color-success-light-9);--ep-tag-border-color: var(--ep-color-success-light-8);--ep-tag-hover-color: var(--ep-color-success)}.ep-tag.ep-tag--warning{--ep-tag-bg-color: var(--ep-color-warning-light-9);--ep-tag-border-color: var(--ep-color-warning-light-8);--ep-tag-hover-color: var(--ep-color-warning)}.ep-tag.ep-tag--danger{--ep-tag-bg-color: var(--ep-color-danger-light-9);--ep-tag-border-color: var(--ep-color-danger-light-8);--ep-tag-hover-color: var(--ep-color-danger)}.ep-tag.ep-tag--error{--ep-tag-bg-color: var(--ep-color-error-light-9);--ep-tag-border-color: var(--ep-color-error-light-8);--ep-tag-hover-color: var(--ep-color-error)}.ep-tag.ep-tag--info{--ep-tag-bg-color: var(--ep-color-info-light-9);--ep-tag-border-color: var(--ep-color-info-light-8);--ep-tag-hover-color: var(--ep-color-info)}.ep-tag.ep-tag--primary{--ep-tag-text-color: var(--ep-color-primary)}.ep-tag.ep-tag--success{--ep-tag-text-color: var(--ep-color-success)}.ep-tag.ep-tag--warning{--ep-tag-text-color: var(--ep-color-warning)}.ep-tag.ep-tag--danger{--ep-tag-text-color: var(--ep-color-danger)}.ep-tag.ep-tag--error{--ep-tag-text-color: var(--ep-color-error)}.ep-tag.ep-tag--info{--ep-tag-text-color: var(--ep-color-info)}.ep-tag.is-hit{border-color:var(--ep-color-primary)}.ep-tag.is-round{border-radius:var(--ep-tag-border-radius-rounded)}.ep-tag .ep-tag__close{color:var(--ep-tag-text-color)}.ep-tag .ep-tag__close:hover{color:var(--ep-color-white);background-color:var(--ep-tag-hover-color)}.ep-tag .ep-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--ep-icon-size) - 2px);height:var(--ep-icon-size);width:var(--ep-icon-size)}.ep-tag .ep-tag__close{margin-left:6px}.ep-tag--dark{--ep-tag-bg-color: var(--ep-color-primary);--ep-tag-border-color: var(--ep-color-primary);--ep-tag-hover-color: var(--ep-color-primary-light-3);--ep-tag-text-color: var(--ep-color-white)}.ep-tag--dark.ep-tag--primary{--ep-tag-bg-color: var(--ep-color-primary);--ep-tag-border-color: var(--ep-color-primary);--ep-tag-hover-color: var(--ep-color-primary-light-3)}.ep-tag--dark.ep-tag--success{--ep-tag-bg-color: var(--ep-color-success);--ep-tag-border-color: var(--ep-color-success);--ep-tag-hover-color: var(--ep-color-success-light-3)}.ep-tag--dark.ep-tag--warning{--ep-tag-bg-color: var(--ep-color-warning);--ep-tag-border-color: var(--ep-color-warning);--ep-tag-hover-color: var(--ep-color-warning-light-3)}.ep-tag--dark.ep-tag--danger{--ep-tag-bg-color: var(--ep-color-danger);--ep-tag-border-color: var(--ep-color-danger);--ep-tag-hover-color: var(--ep-color-danger-light-3)}.ep-tag--dark.ep-tag--error{--ep-tag-bg-color: var(--ep-color-error);--ep-tag-border-color: var(--ep-color-error);--ep-tag-hover-color: var(--ep-color-error-light-3)}.ep-tag--dark.ep-tag--info{--ep-tag-bg-color: var(--ep-color-info);--ep-tag-border-color: var(--ep-color-info);--ep-tag-hover-color: var(--ep-color-info-light-3)}.ep-tag--dark.ep-tag--primary,.ep-tag--dark.ep-tag--success,.ep-tag--dark.ep-tag--warning,.ep-tag--dark.ep-tag--danger,.ep-tag--dark.ep-tag--error,.ep-tag--dark.ep-tag--info{--ep-tag-text-color: var(--ep-color-white)}.ep-tag--plain{--ep-tag-border-color: var(--ep-color-primary-light-5);--ep-tag-hover-color: var(--ep-color-primary);--ep-tag-bg-color: var(--ep-fill-color-blank)}.ep-tag--plain.ep-tag--primary{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-primary-light-5);--ep-tag-hover-color: var(--ep-color-primary)}.ep-tag--plain.ep-tag--success{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-success-light-5);--ep-tag-hover-color: var(--ep-color-success)}.ep-tag--plain.ep-tag--warning{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-warning-light-5);--ep-tag-hover-color: var(--ep-color-warning)}.ep-tag--plain.ep-tag--danger{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-danger-light-5);--ep-tag-hover-color: var(--ep-color-danger)}.ep-tag--plain.ep-tag--error{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-error-light-5);--ep-tag-hover-color: var(--ep-color-error)}.ep-tag--plain.ep-tag--info{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-info-light-5);--ep-tag-hover-color: var(--ep-color-info)}.ep-tag.is-closable{padding-right:5px}.ep-tag--large{padding:0 11px;height:32px;--ep-icon-size: 16px}.ep-tag--large .ep-tag__close{margin-left:8px}.ep-tag--large.is-closable{padding-right:7px}.ep-tag--small{padding:0 7px;height:20px;--ep-icon-size: 12px}.ep-tag--small .ep-tag__close{margin-left:4px}.ep-tag--small.is-closable{padding-right:3px}.ep-tag--small .ep-icon-close{transform:scale(.8)}.ep-tag.ep-tag--primary.is-hit{border-color:var(--ep-color-primary)}.ep-tag.ep-tag--success.is-hit{border-color:var(--ep-color-success)}.ep-tag.ep-tag--warning.is-hit{border-color:var(--ep-color-warning)}.ep-tag.ep-tag--danger.is-hit{border-color:var(--ep-color-danger)}.ep-tag.ep-tag--error.is-hit{border-color:var(--ep-color-error)}.ep-tag.ep-tag--info.is-hit{border-color:var(--ep-color-info)}.ep-scrollbar{--ep-scrollbar-opacity: .3;--ep-scrollbar-bg-color: var(--ep-text-color-secondary);--ep-scrollbar-hover-opacity: .5;--ep-scrollbar-hover-bg-color: var(--ep-text-color-secondary);overflow:hidden;position:relative;height:100%}.ep-scrollbar__wrap{overflow:auto;height:100%}.ep-scrollbar__wrap--hidden-default{scrollbar-width:none}.ep-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.ep-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:var(--ep-scrollbar-bg-color, var(--ep-text-color-secondary));transition:var(--ep-transition-duration) background-color;opacity:var(--ep-scrollbar-opacity, .3)}.ep-scrollbar__thumb:hover{background-color:var(--ep-scrollbar-hover-bg-color, var(--ep-text-color-secondary));opacity:var(--ep-scrollbar-hover-opacity, .5)}.ep-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px}.ep-scrollbar__bar.is-vertical{width:6px;top:2px}.ep-scrollbar__bar.is-vertical>div{width:100%}.ep-scrollbar__bar.is-horizontal{height:6px;left:2px}.ep-scrollbar__bar.is-horizontal>div{height:100%}.ep-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.ep-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.ep-scrollbar-fade-enter-from,.ep-scrollbar-fade-leave-active{opacity:0}.ep-table-column--selection .cell{padding-left:14px;padding-right:14px}.ep-table-filter{border:solid 1px var(--ep-border-color-lighter);border-radius:2px;background-color:#fff;box-shadow:var(--ep-box-shadow-light);box-sizing:border-box}.ep-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.ep-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:var(--ep-font-size-base)}.ep-table-filter__list-item:hover{background-color:var(--ep-color-primary-light-9);color:var(--ep-color-primary)}.ep-table-filter__list-item.is-active{background-color:var(--ep-color-primary);color:#fff}.ep-table-filter__content{min-width:100px}.ep-table-filter__bottom{border-top:1px solid var(--ep-border-color-lighter);padding:8px}.ep-table-filter__bottom button{background:transparent;border:none;color:var(--ep-text-color-regular);cursor:pointer;font-size:var(--ep-font-size-small);padding:0 3px}.ep-table-filter__bottom button:hover{color:var(--ep-color-primary)}.ep-table-filter__bottom button:focus{outline:none}.ep-table-filter__bottom button.is-disabled{color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-table-filter__wrap{max-height:280px}.ep-table-filter__checkbox-group{padding:10px}.ep-table-filter__checkbox-group label.ep-checkbox{display:flex;align-items:center;margin-right:5px;margin-bottom:12px;margin-left:5px;height:unset}.ep-table-filter__checkbox-group .ep-checkbox:last-child{margin-bottom:0}.ep-textarea{--ep-input-text-color: var(--ep-text-color-regular);--ep-input-border: var(--ep-border);--ep-input-hover-border: var(--ep-border-color-hover);--ep-input-focus-border: var(--ep-color-primary);--ep-input-transparent-border: 0 0 0 1px transparent inset;--ep-input-border-color: var(--ep-border-color);--ep-input-border-radius: var(--ep-border-radius-base);--ep-input-bg-color: var(--ep-fill-color-blank);--ep-input-icon-color: var(--ep-text-color-placeholder);--ep-input-placeholder-color: var(--ep-text-color-placeholder);--ep-input-hover-border-color: var(--ep-border-color-hover);--ep-input-clear-hover-color: var(--ep-text-color-secondary);--ep-input-focus-border-color: var(--ep-color-primary);position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--ep-font-size-base)}.ep-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--ep-input-text-color, var(--ep-text-color-regular));background-color:var(--ep-input-bg-color, var(--ep-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--ep-input-border-color, var(--ep-border-color)) inset;border-radius:var(--ep-input-border-radius, var(--ep-border-radius-base));transition:var(--ep-transition-box-shadow);border:none}.ep-textarea__inner::placeholder{color:var(--ep-input-placeholder-color, var(--ep-text-color-placeholder))}.ep-textarea__inner:hover{box-shadow:0 0 0 1px var(--ep-input-hover-border-color) inset}.ep-textarea__inner:focus{outline:none;box-shadow:0 0 0 1px var(--ep-input-focus-border-color) inset}.ep-textarea .ep-input__count{color:var(--ep-color-info);background:var(--ep-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.ep-textarea.is-disabled .ep-textarea__inner{background-color:var(--ep-disabled-bg-color);border-color:var(--ep-disabled-border-color);color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-textarea.is-disabled .ep-textarea__inner::placeholder{color:var(--ep-text-color-placeholder)}.ep-textarea.is-exceed .ep-textarea__inner{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-textarea.is-exceed .ep-input__count{color:var(--ep-color-danger)}.ep-input{--ep-input-text-color: var(--ep-text-color-regular);--ep-input-border: var(--ep-border);--ep-input-hover-border: var(--ep-border-color-hover);--ep-input-focus-border: var(--ep-color-primary);--ep-input-transparent-border: 0 0 0 1px transparent inset;--ep-input-border-color: var(--ep-border-color);--ep-input-border-radius: var(--ep-border-radius-base);--ep-input-bg-color: var(--ep-fill-color-blank);--ep-input-icon-color: var(--ep-text-color-placeholder);--ep-input-placeholder-color: var(--ep-text-color-placeholder);--ep-input-hover-border-color: var(--ep-border-color-hover);--ep-input-clear-hover-color: var(--ep-text-color-secondary);--ep-input-focus-border-color: var(--ep-color-primary);--ep-input-height: var(--ep-component-size);position:relative;font-size:var(--ep-font-size-base);display:inline-flex;width:100%;line-height:var(--ep-input-height);box-sizing:border-box;vertical-align:middle}.ep-input::-webkit-scrollbar{z-index:11;width:6px}.ep-input::-webkit-scrollbar:horizontal{height:6px}.ep-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--ep-text-color-disabled)}.ep-input::-webkit-scrollbar-corner{background:var(--ep-fill-color-blank)}.ep-input::-webkit-scrollbar-track{background:var(--ep-fill-color-blank)}.ep-input::-webkit-scrollbar-track-piece{background:var(--ep-fill-color-blank);width:6px}.ep-input .ep-input__clear,.ep-input .ep-input__password{color:var(--ep-input-icon-color);font-size:14px;cursor:pointer}.ep-input .ep-input__clear:hover,.ep-input .ep-input__password:hover{color:var(--ep-input-clear-hover-color)}.ep-input .ep-input__count{height:100%;display:inline-flex;align-items:center;color:var(--ep-color-info);font-size:12px}.ep-input .ep-input__count .ep-input__count-inner{background:var(--ep-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.ep-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;background-color:var(--ep-input-bg-color, var(--ep-fill-color-blank));background-image:none;border-radius:var(--ep-input-border-radius, var(--ep-border-radius-base));transition:var(--ep-transition-box-shadow);transform:translateZ(0);box-shadow:0 0 0 1px var(--ep-input-border-color, var(--ep-border-color)) inset}.ep-input__wrapper:hover{box-shadow:0 0 0 1px var(--ep-input-hover-border-color) inset}.ep-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--ep-input-focus-border-color) inset}.ep-input__inner{--ep-input-inner-height: calc(var(--ep-input-height, 32px) - 2px);width:100%;flex-grow:1;-webkit-appearance:none;color:var(--ep-input-text-color, var(--ep-text-color-regular));font-size:inherit;height:var(--ep-input-inner-height);line-height:var(--ep-input-inner-height);padding:0;outline:none;border:none;background:none;box-sizing:border-box}.ep-input__inner:focus{outline:none}.ep-input__inner::placeholder{color:var(--ep-input-placeholder-color, var(--ep-text-color-placeholder))}.ep-input__inner[type=password]::-ms-reveal{display:none}.ep-input__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--ep-input-icon-color, var(--ep-text-color-placeholder));transition:all var(--ep-transition-duration);pointer-events:none}.ep-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.ep-input__prefix-inner>:last-child{margin-right:8px}.ep-input__prefix-inner>:first-child,.ep-input__prefix-inner>:first-child.ep-input__icon{margin-left:0}.ep-input__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--ep-input-icon-color, var(--ep-text-color-placeholder));transition:all var(--ep-transition-duration);pointer-events:none}.ep-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.ep-input__suffix-inner>:first-child{margin-left:8px}.ep-input .ep-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--ep-transition-duration);margin-left:8px}.ep-input__validateIcon{pointer-events:none}.ep-input.is-active .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-input-focus-color, ) inset}.ep-input.is-disabled{cursor:not-allowed}.ep-input.is-disabled .ep-input__wrapper{background-color:var(--ep-disabled-bg-color);box-shadow:0 0 0 1px var(--ep-disabled-border-color) inset}.ep-input.is-disabled .ep-input__inner{color:var(--ep-disabled-text-color);-webkit-text-fill-color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-input.is-disabled .ep-input__inner::placeholder{color:var(--ep-text-color-placeholder)}.ep-input.is-disabled .ep-input__icon{cursor:not-allowed}.ep-input.is-exceed .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-input.is-exceed .ep-input__suffix .ep-input__count{color:var(--ep-color-danger)}.ep-input--large{--ep-input-height: var(--ep-component-size-large);font-size:14px}.ep-input--large .ep-input__wrapper{padding:1px 15px}.ep-input--large .ep-input__inner{--ep-input-inner-height: calc(var(--ep-input-height, 40px) - 2px)}.ep-input--small{--ep-input-height: var(--ep-component-size-small);font-size:12px}.ep-input--small .ep-input__wrapper{padding:1px 7px}.ep-input--small .ep-input__inner{--ep-input-inner-height: calc(var(--ep-input-height, 24px) - 2px)}.ep-input-group{display:inline-flex;width:100%;align-items:stretch}.ep-input-group__append,.ep-input-group__prepend{background-color:var(--ep-fill-color-light);color:var(--ep-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--ep-input-border-radius);padding:0 20px;white-space:nowrap}.ep-input-group__append:focus,.ep-input-group__prepend:focus{outline:none}.ep-input-group__append .ep-select,.ep-input-group__append .ep-button,.ep-input-group__prepend .ep-select,.ep-input-group__prepend .ep-button{display:inline-block;margin:0 -20px}.ep-input-group__append button.ep-button,.ep-input-group__append button.ep-button:hover,.ep-input-group__append div.ep-select .ep-input__wrapper,.ep-input-group__append div.ep-select:hover .ep-input__wrapper,.ep-input-group__prepend button.ep-button,.ep-input-group__prepend button.ep-button:hover,.ep-input-group__prepend div.ep-select .ep-input__wrapper,.ep-input-group__prepend div.ep-select:hover .ep-input__wrapper{border-color:transparent;background-color:transparent;color:inherit}.ep-input-group__append .ep-button,.ep-input-group__append .ep-input,.ep-input-group__prepend .ep-button,.ep-input-group__prepend .ep-input{font-size:inherit}.ep-input-group__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--ep-input-border-color) inset,0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset}.ep-input-group__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset,-1px 0 0 0 var(--ep-input-border-color) inset}.ep-input-group--prepend>.ep-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input .ep-input__inner{box-shadow:none!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input .ep-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--ep-input-border-color) inset,0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input.is-focus .ep-input__inner{box-shadow:none!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input.is-focus .ep-input__wrapper{box-shadow:1px 0 0 0 var(--ep-input-focus-border-color) inset,1px 0 0 0 var(--ep-input-focus-border-color),0 1px 0 0 var(--ep-input-focus-border-color) inset,0 -1px 0 0 var(--ep-input-focus-border-color) inset!important;z-index:2}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input.is-focus .ep-input__wrapper:focus{outline:none;z-index:2;box-shadow:1px 0 0 0 var(--ep-input-focus-border-color) inset,1px 0 0 0 var(--ep-input-focus-border-color),0 1px 0 0 var(--ep-input-focus-border-color) inset,0 -1px 0 0 var(--ep-input-focus-border-color) inset!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select:hover .ep-input__inner{box-shadow:none!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select:hover .ep-input__wrapper{z-index:1;box-shadow:1px 0 0 0 var(--ep-input-hover-border-color) inset,1px 0 0 0 var(--ep-input-hover-border-color),0 1px 0 0 var(--ep-input-hover-border-color) inset,0 -1px 0 0 var(--ep-input-hover-border-color) inset!important}.ep-input-group--append>.ep-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.ep-input-group--append .ep-input-group__append .ep-select .ep-input .ep-input__inner{box-shadow:none!important}.ep-input-group--append .ep-input-group__append .ep-select .ep-input .ep-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset,-1px 0 0 0 var(--ep-input-border-color) inset}.ep-input-group--append .ep-input-group__append .ep-select .ep-input.is-focus .ep-input__inner{box-shadow:none!important}.ep-input-group--append .ep-input-group__append .ep-select .ep-input.is-focus .ep-input__wrapper{z-index:2;box-shadow:-1px 0 0 0 var(--ep-input-focus-border-color),-1px 0 0 0 var(--ep-input-focus-border-color) inset,0 1px 0 0 var(--ep-input-focus-border-color) inset,0 -1px 0 0 var(--ep-input-focus-border-color) inset!important}.ep-input-group--append .ep-input-group__append .ep-select:hover .ep-input__inner{box-shadow:none!important}.ep-input-group--append .ep-input-group__append .ep-select:hover .ep-input__wrapper{z-index:1;box-shadow:-1px 0 0 0 var(--ep-input-hover-border-color),-1px 0 0 0 var(--ep-input-hover-border-color) inset,0 1px 0 0 var(--ep-input-hover-border-color) inset,0 -1px 0 0 var(--ep-input-hover-border-color) inset!important}.ep-alert{--ep-alert-padding: 8px 16px;--ep-alert-border-radius-base: var(--ep-border-radius-base);--ep-alert-title-font-size: 13px;--ep-alert-description-font-size: 12px;--ep-alert-close-font-size: 12px;--ep-alert-close-customed-font-size: 13px;--ep-alert-icon-size: 16px;--ep-alert-icon-large-size: 28px;width:100%;padding:var(--ep-alert-padding);margin:0;box-sizing:border-box;border-radius:var(--ep-alert-border-radius-base);position:relative;background-color:var(--ep-color-white);overflow:hidden;opacity:1;display:flex;align-items:center;transition:opacity var(--ep-transition-duration-fast)}.ep-alert.is-light .ep-alert__close-btn{color:var(--ep-text-color-placeholder)}.ep-alert.is-dark .ep-alert__close-btn,.ep-alert.is-dark .ep-alert__description{color:var(--ep-color-white)}.ep-alert.is-center{justify-content:center}.ep-alert--success{--ep-alert-bg-color: var(--ep-color-success-light-9)}.ep-alert--success.is-light{background-color:var(--ep-alert-bg-color);color:var(--ep-color-success)}.ep-alert--success.is-light .ep-alert__description{color:var(--ep-color-success)}.ep-alert--success.is-dark{background-color:var(--ep-color-success);color:var(--ep-color-white)}.ep-alert--info{--ep-alert-bg-color: var(--ep-color-info-light-9)}.ep-alert--info.is-light{background-color:var(--ep-alert-bg-color);color:var(--ep-color-info)}.ep-alert--info.is-light .ep-alert__description{color:var(--ep-color-info)}.ep-alert--info.is-dark{background-color:var(--ep-color-info);color:var(--ep-color-white)}.ep-alert--warning{--ep-alert-bg-color: var(--ep-color-warning-light-9)}.ep-alert--warning.is-light{background-color:var(--ep-alert-bg-color);color:var(--ep-color-warning)}.ep-alert--warning.is-light .ep-alert__description{color:var(--ep-color-warning)}.ep-alert--warning.is-dark{background-color:var(--ep-color-warning);color:var(--ep-color-white)}.ep-alert--error{--ep-alert-bg-color: var(--ep-color-error-light-9)}.ep-alert--error.is-light{background-color:var(--ep-alert-bg-color);color:var(--ep-color-error)}.ep-alert--error.is-light .ep-alert__description{color:var(--ep-color-error)}.ep-alert--error.is-dark{background-color:var(--ep-color-error);color:var(--ep-color-white)}.ep-alert__content{display:table-cell;padding:0 8px}.ep-alert .ep-alert__icon{font-size:var(--ep-alert-icon-size);width:var(--ep-alert-icon-size)}.ep-alert .ep-alert__icon.is-big{font-size:var(--ep-alert-icon-large-size);width:var(--ep-alert-icon-large-size)}.ep-alert__title{font-size:var(--ep-alert-title-font-size);line-height:18px;vertical-align:text-top}.ep-alert__title.is-bold{font-weight:700}.ep-alert .ep-alert__description{font-size:var(--ep-alert-description-font-size);margin:5px 0 0}.ep-alert .ep-alert__close-btn{font-size:var(--ep-alert-close-font-size);opacity:1;position:absolute;top:12px;right:15px;cursor:pointer}.ep-alert .ep-alert__close-btn.is-customed{font-style:normal;font-size:var(--ep-alert-close-customed-font-size);top:9px}.ep-alert-fade-enter-from,.ep-alert-fade-leave-active{opacity:0}.ep-select-dropdown__item{font-size:var(--ep-font-size-base);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ep-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.ep-select-dropdown__item.is-disabled{color:var(--ep-text-color-placeholder);cursor:not-allowed}.ep-select-dropdown__item.hover,.ep-select-dropdown__item:hover{background-color:var(--ep-fill-color-light)}.ep-select-dropdown__item.selected{color:var(--ep-color-primary);font-weight:700}.ep-select-group{margin:0;padding:0}.ep-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.ep-select-group__wrap:not(:last-of-type){padding-bottom:24px}.ep-select-group__wrap:not(:last-of-type):after{content:"";position:absolute;display:block;left:20px;right:20px;bottom:12px;height:1px;background:var(--ep-border-color-light)}.ep-select-group__split-dash{position:absolute;left:20px;right:20px;height:1px;background:var(--ep-border-color-light)}.ep-select-group__title{padding-left:20px;font-size:12px;color:var(--ep-color-info);line-height:30px}.ep-select-group .ep-select-dropdown__item{padding-left:20px}.ep-select-dropdown{z-index:calc(var(--ep-index-top) + 1);border-radius:var(--ep-border-radius-base);box-sizing:border-box}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected{color:var(--ep-color-primary);background-color:var(--ep-bg-color-overlay)}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected.hover{background-color:var(--ep-fill-color-light)}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--ep-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected.is-disabled:after{background-color:var(--ep-text-color-disabled)}.ep-select-dropdown .ep-select-dropdown__option-item.is-selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--ep-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.ep-select-dropdown .ep-scrollbar.is-empty .ep-select-dropdown__list{padding:0}.ep-select-dropdown .ep-select-dropdown__item.is-disabled:hover{background-color:unset}.ep-select-dropdown .ep-select-dropdown__item.is-disabled.selected{color:var(--ep-text-color-disabled)}.ep-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:var(--ep-text-color-secondary);font-size:var(--ep-select-font-size)}.ep-select-dropdown__wrap{max-height:274px}.ep-select-dropdown__list{list-style:none;padding:6px 0;margin:0;box-sizing:border-box}.ep-select{--ep-select-border-color-hover: var(--ep-border-color-hover);--ep-select-disabled-border: var(--ep-disabled-border-color);--ep-select-font-size: var(--ep-font-size-base);--ep-select-close-hover-color: var(--ep-text-color-secondary);--ep-select-input-color: var(--ep-text-color-placeholder);--ep-select-multiple-input-color: var(--ep-text-color-regular);--ep-select-input-focus-border-color: var(--ep-color-primary);--ep-select-input-font-size: 14px;display:inline-block;position:relative;vertical-align:middle;line-height:32px}.ep-select__popper.ep-popper{background:var(--ep-bg-color-overlay);border:1px solid var(--ep-border-color-light);box-shadow:var(--ep-box-shadow-light)}.ep-select__popper.ep-popper .ep-popper__arrow:before{border:1px solid var(--ep-border-color-light)}.ep-select__popper.ep-popper[data-popper-placement^=top] .ep-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.ep-select__popper.ep-popper[data-popper-placement^=bottom] .ep-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.ep-select__popper.ep-popper[data-popper-placement^=left] .ep-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.ep-select__popper.ep-popper[data-popper-placement^=right] .ep-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.ep-select .ep-select-tags-wrapper.has-prefix{margin-left:6px}.ep-select--large{line-height:40px}.ep-select--large .ep-select-tags-wrapper.has-prefix{margin-left:8px}.ep-select--small{line-height:24px}.ep-select--small .ep-select-tags-wrapper.has-prefix{margin-left:4px}.ep-select .ep-select__tags>span{display:inline-block}.ep-select:hover:not(.ep-select--disabled) .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-select-border-color-hover) inset}.ep-select .ep-select__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ep-select .ep-input__wrapper{cursor:pointer}.ep-select .ep-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--ep-select-input-focus-border-color) inset!important}.ep-select .ep-input__inner{cursor:pointer}.ep-select .ep-input{display:flex}.ep-select .ep-input .ep-select__caret{color:var(--ep-select-input-color);font-size:var(--ep-select-input-font-size);transition:transform var(--ep-transition-duration);transform:rotate(0);cursor:pointer}.ep-select .ep-input .ep-select__caret.is-reverse{transform:rotate(-180deg)}.ep-select .ep-input .ep-select__caret.is-show-close{font-size:var(--ep-select-font-size);text-align:center;transform:rotate(0);border-radius:var(--ep-border-radius-circle);color:var(--ep-select-input-color);transition:var(--ep-transition-color)}.ep-select .ep-input .ep-select__caret.is-show-close:hover{color:var(--ep-select-close-hover-color)}.ep-select .ep-input .ep-select__caret.ep-icon{position:relative;height:inherit;z-index:2}.ep-select .ep-input.is-disabled .ep-input__wrapper{cursor:not-allowed}.ep-select .ep-input.is-disabled .ep-input__wrapper:hover{box-shadow:0 0 0 1px var(--ep-select-disabled-border) inset}.ep-select .ep-input.is-disabled .ep-input__inner,.ep-select .ep-input.is-disabled .ep-select__caret{cursor:not-allowed}.ep-select .ep-input.is-focus .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-select-input-focus-border-color) inset!important}.ep-select__input{border:none;outline:none;padding:0;margin-left:15px;color:var(--ep-select-multiple-input-color);font-size:var(--ep-select-font-size);-webkit-appearance:none;appearance:none;height:28px;background-color:transparent}.ep-select__input.is-disabled{cursor:not-allowed}.ep-select__input--iOS{position:absolute;left:0;top:0;z-index:6}.ep-select__input.is-small{height:14px}.ep-select__close{cursor:pointer;position:absolute;top:8px;z-index:var(--ep-index-top);right:25px;color:var(--ep-select-input-color);line-height:18px;font-size:var(--ep-select-input-font-size)}.ep-select__close:hover{color:var(--ep-select-close-hover-color)}.ep-select__tags{position:absolute;line-height:normal;top:50%;transform:translateY(-50%);white-space:normal;z-index:var(--ep-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.ep-select__tags .ep-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.ep-select__tags .ep-tag:last-child{margin-right:0}.ep-select__tags .ep-tag .ep-icon-close{background-color:var(--ep-text-color-placeholder);right:-7px;top:0;color:#fff}.ep-select__tags .ep-tag .ep-icon-close:hover{background-color:var(--ep-text-color-secondary)}.ep-select__tags .ep-tag .ep-icon-close:before{display:block;transform:translateY(.5px)}.ep-select__tags .ep-tag--info{background-color:var(--ep-fill-color)}.ep-select__tags.is-disabled{cursor:not-allowed}.ep-select__collapse-tags{white-space:normal;z-index:var(--ep-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.ep-select__collapse-tags .ep-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.ep-select__collapse-tags .ep-tag:last-child{margin-right:0}.ep-select__collapse-tags .ep-tag .ep-icon-close{background-color:var(--ep-text-color-placeholder);right:-7px;top:0;color:#fff}.ep-select__collapse-tags .ep-tag .ep-icon-close:hover{background-color:var(--ep-text-color-secondary)}.ep-select__collapse-tags .ep-tag .ep-icon-close:before{display:block;transform:translateY(.5px)}.ep-select__collapse-tags .ep-tag--info{background-color:var(--ep-fill-color)}.ep-select__collapse-tag{line-height:inherit;height:inherit;display:flex}.ep-drawer{--ep-drawer-bg-color: var(--ep-dialog-bg-color, var(--ep-bg-color));--ep-drawer-padding-primary: var(--ep-dialog-padding-primary, 20px);position:absolute;box-sizing:border-box;background-color:var(--ep-drawer-bg-color);display:flex;flex-direction:column;box-shadow:var(--ep-box-shadow-dark);overflow:hidden;transition:all var(--ep-transition-duration)}.ep-drawer .rtl,.ep-drawer .ltr,.ep-drawer .ttb,.ep-drawer .btt{transform:translate(0)}.ep-drawer__sr-focus:focus{outline:none!important}.ep-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--ep-drawer-padding-primary);padding-bottom:0}.ep-drawer__header>:first-child{flex:1}.ep-drawer__title{margin:0;flex:1;line-height:inherit;font-size:1rem}.ep-drawer__footer{padding:var(--ep-drawer-padding-primary);padding-top:10px;text-align:right}.ep-drawer__close-btn{display:inline-flex;border:none;cursor:pointer;font-size:var(--ep-font-size-extra-large);color:inherit;background-color:transparent;outline:none}.ep-drawer__close-btn:focus i,.ep-drawer__close-btn:hover i{color:var(--ep-color-primary)}.ep-drawer__body{flex:1;padding:var(--ep-drawer-padding-primary);overflow:auto}.ep-drawer__body>*{box-sizing:border-box}.ep-drawer.ltr,.ep-drawer.rtl{height:100%;top:0;bottom:0}.ep-drawer.ttb,.ep-drawer.btt{width:100%;left:0;right:0}.ep-drawer.ltr{left:0}.ep-drawer.rtl{right:0}.ep-drawer.ttb{top:0}.ep-drawer.btt{bottom:0}.ep-drawer-fade-enter-active,.ep-drawer-fade-leave-active{transition:all var(--ep-transition-duration)}.ep-drawer-fade-enter-from,.ep-drawer-fade-enter-active,.ep-drawer-fade-enter-to,.ep-drawer-fade-leave-from,.ep-drawer-fade-leave-active,.ep-drawer-fade-leave-to{overflow:hidden!important}.ep-drawer-fade-enter-from,.ep-drawer-fade-leave-to{opacity:0}.ep-drawer-fade-enter-to,.ep-drawer-fade-leave-from{opacity:1}.ep-drawer-fade-enter-from .rtl,.ep-drawer-fade-leave-to .rtl{transform:translate(100%)}.ep-drawer-fade-enter-from .ltr,.ep-drawer-fade-leave-to .ltr{transform:translate(-100%)}.ep-drawer-fade-enter-from .ttb,.ep-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.ep-drawer-fade-enter-from .btt,.ep-drawer-fade-leave-to .btt{transform:translateY(100%)}html.dark{color-scheme:dark;--ep-color-primary: #589ef8;--ep-color-primary-light-3: #4475b4;--ep-color-primary-light-5: #365986;--ep-color-primary-light-7: #283d58;--ep-color-primary-light-8: #223042;--ep-color-primary-light-9: #1b222b;--ep-color-primary-dark-2: #79b1f9;--ep-color-success: #21ba45;--ep-color-success-light-3: #1d8836;--ep-color-success-light-5: #1b672d;--ep-color-success-light-7: #184623;--ep-color-success-light-8: #17351e;--ep-color-success-light-9: #152519;--ep-color-success-dark-2: #4dc86a;--ep-color-warning: #f2711c;--ep-color-warning-light-3: #af551a;--ep-color-warning-light-5: #834318;--ep-color-warning-light-7: #573016;--ep-color-warning-light-8: #402716;--ep-color-warning-light-9: #2a1d15;--ep-color-warning-dark-2: #f58d49;--ep-color-danger: #db2828;--ep-color-danger-light-3: #9f2222;--ep-color-danger-light-5: #781e1e;--ep-color-danger-light-7: #501a1a;--ep-color-danger-light-8: #3c1818;--ep-color-danger-light-9: #281616;--ep-color-danger-dark-2: #e25353;--ep-color-error: #db2828;--ep-color-error-light-3: #9f2222;--ep-color-error-light-5: #781e1e;--ep-color-error-light-7: #501a1a;--ep-color-error-light-8: #3c1818;--ep-color-error-light-9: #281616;--ep-color-error-dark-2: #e25353;--ep-color-info: #42b8dd;--ep-color-info-light-3: #3487a1;--ep-color-info-light-5: #2b6679;--ep-color-info-light-7: #224550;--ep-color-info-light-8: #1d353c;--ep-color-info-light-9: #192428;--ep-color-info-dark-2: #68c6e4;--ep-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .36), 0px 8px 20px rgba(0, 0, 0, .72);--ep-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .72);--ep-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .72);--ep-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .72), 0px 12px 32px #000000, 0px 8px 16px -8px #000000;--ep-bg-color-page: #0a0a0a;--ep-bg-color: #141414;--ep-bg-color-overlay: #1d1e1f;--ep-text-color-primary: #E5EAF3;--ep-text-color-regular: #CFD3DC;--ep-text-color-secondary: #A3A6AD;--ep-text-color-placeholder: #8D9095;--ep-text-color-disabled: #6C6E72;--ep-border-color-darker: #636466;--ep-border-color-dark: #58585B;--ep-border-color: #4C4D4F;--ep-border-color-light: #414243;--ep-border-color-lighter: #363637;--ep-border-color-extra-light: #2B2B2C;--ep-fill-color-darker: #424243;--ep-fill-color-dark: #39393A;--ep-fill-color: #303030;--ep-fill-color-light: #262727;--ep-fill-color-lighter: #1D1D1D;--ep-fill-color-extra-light: #191919;--ep-fill-color-blank: transparent;--ep-mask-color: rgba(0, 0, 0, .8);--ep-mask-color-extra-light: rgba(0, 0, 0, .3)}html.dark .ep-button{--ep-button-disabled-text-color: rgba(255, 255, 255, .5)}html.dark .ep-card{--ep-card-bg-color: var(--ep-bg-color-overlay)}html.dark .ep-empty{--ep-empty-fill-color-0: var(--ep-color-black);--ep-empty-fill-color-1: #4b4b52;--ep-empty-fill-color-2: #36383d;--ep-empty-fill-color-3: #1e1e20;--ep-empty-fill-color-4: #262629;--ep-empty-fill-color-5: #202124;--ep-empty-fill-color-6: #212224;--ep-empty-fill-color-7: #1b1c1f;--ep-empty-fill-color-8: #1c1d1f;--ep-empty-fill-color-9: #18181a}body{font-family:Inter,system-ui,Avenir,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0}a{color:var(--ep-color-primary)}code{border-radius:2px;padding:2px 4px;background-color:var(--ep-color-primary-light-9);color:var(--ep-color-primary)}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.dark [i~="dark:ep-moon"]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M240.448 240.448a384 384 0 1 0 559.424 525.696a448 448 0 0 1-542.016-542.08a390.592 390.592 0 0 0-17.408 16.384zm181.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.696z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}[i~=ep-sunny]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M512 704a192 192 0 1 0 0-384a192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512a256 256 0 0 1 0 512zm0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32zM195.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.248zm543.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.248zM64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32zm768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32zM195.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 0zm543.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 0z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}.relative{position:relative}.grid{display:grid}.m-2{margin:.5rem}.m-4{margin:1rem}.mx-4{margin-left:1rem;margin-right:1rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mt-4{margin-top:1rem}.hidden{display:none}.h2{height:.5rem}.h3{height:.75rem}.max-h-\[600px\]{max-height:600px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.w-full{width:100%}[h~=full]{height:100%}.flex{display:flex}.inline-flex,[inline-flex=""]{display:inline-flex}.flex-col{flex-direction:column}.table{display:table}.cursor-pointer{cursor:pointer}.list-inside{list-style-position:inside}.list-none{list-style-type:none}.items-center{align-items:center}.justify-center{justify-content:center}.justify-self-center{justify-self:center}.overflow-x-scroll{overflow-x:scroll}.break-normal{overflow-wrap:normal;word-break:normal}.break-all{word-break:break-all}.border,.border-1,[border=""]{border-width:1px}.border-b-0{border-bottom-width:0}.border-l-4{border-left-width:4px}.border-gray-200{--un-border-opacity:1;border-color:rgba(229,231,235,var(--un-border-opacity))}.border-orange-500{--un-border-opacity:1;border-color:rgba(249,115,22,var(--un-border-opacity))}.border-none{border-style:none}.border-solid{border-style:solid}.bg-orange-100{--un-bg-opacity:1;background-color:rgba(255,237,213,var(--un-bg-opacity))}.bg-transparent{background-color:transparent}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.pb-20{padding-bottom:5rem}.pie{-webkit-padding-end:1rem;padding-inline-end:1rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.font-bold{font-weight:700}.text-orange-700{--un-text-opacity:1;color:rgba(194,65,12,var(--un-text-opacity))} diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..81579a0 Binary files /dev/null and b/favicon.ico differ diff --git a/images/edit_help.png b/images/edit_help.png new file mode 100644 index 0000000..707e04a Binary files /dev/null and b/images/edit_help.png differ diff --git a/images/ife_main_colour-300x59.jpg b/images/ife_main_colour-300x59.jpg new file mode 100644 index 0000000..acc7ace Binary files /dev/null and b/images/ife_main_colour-300x59.jpg differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..24ce498 --- /dev/null +++ b/index.html @@ -0,0 +1,16 @@ + + + + + + SOCRATES Web + + + + +
+ + + + + diff --git a/parameters.json b/parameters.json new file mode 100644 index 0000000..265c265 --- /dev/null +++ b/parameters.json @@ -0,0 +1,51 @@ +{ + "cn_rate_1": 0.84, + "cn_rate_2": 0.07, + "cn_rate_3": 0.055, + "cn_rate_4": 0.0009, + "cn_rate_5": 0.95, + "labile": 2, + "stable": 98, + "pasture_mf": 0.16, + "fallow_mf": 0.9, + "crop_mf": 0.26, + "bd": 1.3, + "dlayr": 10, + "depth30_10": 2.33, + "cn": 60, + "porghum": 0.03, + "grz": 0.6, + "root_grz": 0.55, + "root_p": 0.5, + "root_gl": 0.4, + "root_wgt": 0.4, + "hi_0": 0.42, + "hi_1": 0.42, + "hi_2": 0.42, + "hi_3": 0.42, + "hi_4": 0.35, + "hi_5": 1, + "hi_6": 1, + "hi_7": 1, + "stored_hfc": 3, + "temp_amplitude": 30, + "rain_amplitude": 30, + "temp_rand": 20, + "precip_rand": 30, + "annpar": 75, + "heavy_retained": 40, + "light_retained": 70, + "base_retained": 88, + "nurate": 0.2, + "tam": 48.5, + "ef1": 0.01, + "ef2": 0.0035, + "n2o_n": 1.57, + "gwpn2o": 296, + "co2_c": 3.67, + "fracf": 0.1, + "fracu": 0.2, + "fracl": 0.3, + "ch4_sheep": 8, + "gwp_ch4": 34 +} diff --git a/sample-data-20-year.json b/sample-data-20-year.json new file mode 100644 index 0000000..bd6c2e1 --- /dev/null +++ b/sample-data-20-year.json @@ -0,0 +1,64 @@ +{ + "soil": { + "soil_properties": 7, + "cec": 80, + "initial_oc": 1.15 + }, + "simulation": { + "start_year": 1963, + "period_length": 20, + "rotation_length": 3 + }, + "climate": { + "climate_method_data_entry": 1, + "average_annual_rainfall": 600, + "annual_mean_temperature": 16.7, + "randomize_rain_and_temperature": 0, + "annual_rainfall": [ + { + "rainfall": 1 + }, + { + "rainfall": 1 + } + ], + "month_rain_temp": [ + { + "rainfall": null, + "temperature": null + }, + { + "rainfall": null, + "temperature": null + } + ] + }, + "rotation": [ + { + "year": 1, + "plant": 6, + "stubble": null, + "graze": null, + "fertiliser": 0 + }, + { + "year": 2, + "plant": 0, + "stubble": 0, + "graze": 0, + "fertiliser": 200 + }, + { + "year": 3, + "plant": 5, + "stubble": null, + "graze": 1, + "fertiliser": 0 + } + ], + "yields": { + "yields_method_data_entry": 1, + "annual_yields": [ + ] + } +} diff --git a/spa_github.js b/spa_github.js new file mode 100644 index 0000000..3bc48f2 --- /dev/null +++ b/spa_github.js @@ -0,0 +1,20 @@ +// Single Page Apps for GitHub Pages +// MIT License +// https://github.com/rafgraph/spa-github-pages +// This script checks to see if a redirect is present in the query string, +// converts it back into the correct url and adds it to the +// browser's history using window.history.replaceState(...), +// which won't cause the browser to attempt to load the new url. +// When the single page app is loaded further down in this file, +// the correct url will be waiting in the browser's history for +// the single page app to route accordingly. +(function (l) { + if (l.search[1] === '/') { + var decoded = l.search.slice(1).split('&').map(function (s) { + return s.replace(/~and~/g, '&'); + }).join('?'); + window.history.replaceState(null, null, + l.pathname.slice(0, -1) + decoded + l.hash + ); + } +}(window.location));