80 lines
958 KiB
JavaScript
80 lines
958 KiB
JavaScript
|
|
/**
|
|||
|
|
* @vue/shared v3.5.30
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function Kp(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ln={},As=[],Pt=()=>{},Db=()=>!1,Bc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Wp=e=>e.startsWith("onUpdate:"),Tn=Object.assign,jp=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},z2=Object.prototype.hasOwnProperty,Tt=(e,t)=>z2.call(e,t),be=Array.isArray,_s=e=>Mi(e)==="[object Map]",Vc=e=>Mi(e)==="[object Set]",kl=e=>Mi(e)==="[object Date]",ze=e=>typeof e=="function",De=e=>typeof e=="string",Ba=e=>typeof e=="symbol",nt=e=>e!==null&&typeof e=="object",ns=e=>(nt(e)||ze(e))&&ze(e.then)&&ze(e.catch),Bb=Object.prototype.toString,Mi=e=>Bb.call(e),H2=e=>Mi(e).slice(8,-1),ei=e=>Mi(e)==="[object Object]",Fc=e=>De(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Br=Kp(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},K2=/-\w/g,Rn=zc(e=>e.replace(K2,t=>t.slice(1).toUpperCase())),W2=/\B([A-Z])/g,Xo=zc(e=>e.replace(W2,"-$1").toLowerCase()),Ii=zc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Vr=zc(e=>e?`on${Ii(e)}`:""),so=(e,t)=>!Object.is(e,t),Ru=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Vb=(e,t,n,a=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},Yp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},j2=e=>{const t=De(e)?Number(e):NaN;return isNaN(t)?e:t};let tm;const Hc=()=>tm||(tm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function We(e){if(be(e)){const t={};for(let n=0;n<e.length;n++){const a=e[n],o=De(a)?G2(a):We(a);if(o)for(const l in o)t[l]=o[l]}return t}else if(De(e)||nt(e))return e}const Y2=/;(?![^(]*\))/g,U2=/:([^]+)/,q2=/\/\*[^]*?\*\//g;function G2(e){const t={};return e.replace(q2,"").split(Y2).forEach(n=>{if(n){const a=n.split(U2);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function N(e){let t="";if(De(e))t=e;else if(be(e))for(let n=0;n<e.length;n++){const a=N(e[n]);a&&(t+=a+" ")}else if(nt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Do(e){if(!e)return null;let{class:t,style:n}=e;return t&&!De(t)&&(e.class=N(t)),n&&(e.style=We(n)),e}const X2="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Z2=Kp(X2);function Fb(e){return!!e||e===""}function J2(e,t){if(e.length!==t.length)return!1;let n=!0;for(let a=0;n&&a<e.length;a++)n=as(e[a],t[a]);return n}function as(e,t){if(e===t)return!0;let n=kl(e),a=kl(t);if(n||a)return n&&a?e.getTime()===t.getTime():!1;if(n=Ba(e),a=Ba(t),n||a)return e===t;if(n=be(e),a=be(t),n||a)return n&&a?J2(e,t):!1;if(n=nt(e),a=nt(t),n||a){if(!n||!a)return!1;const o=Object.keys(e).length,l=Object.keys(t).length;if(o!==l)return!1;for(const s in e){const r=e.hasOwnProperty(s),u=t.hasOwnProperty(s);if(r&&!u||!r&&u||!as(e[s],t[s]))return!1}}return String(e)===String(t)}function zb(e,t){return e.findIndex(n=>as(n,t))}const Hb=e=>!!(e&&e.__v_isRef===!0),ke=e=>De(e)?e:e==null?"":be(e)||nt(e)&&(e.toString===Bb||!ze(e.toString))?Hb(e)?ke(e.value):JSON.stringify(e,Kb,2):String(e),Kb=(e,t)=>Hb(t)?Kb(e,t.value):_s(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,o],l)=>(n[Rd(a,l)+" =>"]=o,n),{})}:Vc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Rd(n))}:Ba(t)?Rd(t):nt(t)&&!be(t)&&!ei(t)?String(t):t,Rd=(e,t="")=>{var n;return Ba(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|||
|
|
* @vue/reactivity v3.5.30
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let Kn;class Wb{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Kn,!t&&Kn&&(this.index=(Kn.scopes||(Kn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Kn;try{return Kn=this,t()}finally{Kn=n}}}on(){++this._on===1&&(this.prevScope=Kn,Kn=this)}off(){this._on>0&&--this._on===0&&(Kn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n<a;n++)this.effects[n].stop();for(this.effects.length=0,n=0,a=this.cleanups.length;n<a;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,a=this.scopes.length;n<a;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Q2(e){return new Wb(e)}function jb(){return Kn}function Yb(e,t=!1){Kn&&Kn.cleanups.push(e)}let un;const Ad=new WeakSet;class Ub{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Kn&&Kn.active&&Kn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ad.has(this)&&(Ad.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Gb(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,nm(this),Xb(this);const t=un,n=Aa;un=this,Aa=!0;try{return this.fn()}finally{Zb(this),un=t,Aa=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Gp(t);this.deps=this.depsTail=void 0,nm(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ad.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ef(this)&&this.run()}get dirty(){return Ef(this)}}let qb=0,Fr,zr;function Gb(e,t=!1){if(e.flags|=8,t){e.next=zr,zr=e;return}e.next=Fr,Fr=e}function Up(){qb++}function qp(){if(--qb>0)return;if(zr){let t=zr;for(zr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Fr;){let t=Fr;for(Fr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function Xb(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Zb(e){let t,n=e.depsTail,a=n;for(;a;){const o=a.prevDep;a.version===-1?(a===n&&(n=o),Gp(a),eE(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=o}e.deps=t,e.depsTail=n}function Ef(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Jb(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Jb(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ti)||(e.globalVersion=ti,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ef(e))))return;e.flags|=2;const t=e.dep,n=un,a=Aa;un=e,Aa=!0;try{Xb(e);const o=e.fn(e._value);(t.version===0||so(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{un=n,Aa=a,Zb(e),e.flags&=-3}}function Gp(e,t=!1){const{dep:n,prevSub:a,nextSub:o}=e;if(a&&(a.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)Gp(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function eE(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Aa=!0;const Qb=[];function Ho(){Qb.push(Aa),Aa=!1}function Ko(){const e=Qb.pop();Aa=e===void 0?!0:e}function nm(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=un;un=void 0;try{t()}finally{un=n}}}let ti=0;class
|
|||
|
|
* @vue/runtime-core v3.5.30
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function Pi(e,t,n,a){try{return a?e(...a):e()}catch(o){jc(o,t,n)}}function Fa(e,t,n,a){if(ze(e)){const o=Pi(e,t,n,a);return o&&ns(o)&&o.catch(l=>{jc(l,t,n)}),o}if(be(e)){const o=[];for(let l=0;l<e.length;l++)o.push(Fa(e[l],t,n,a));return o}}function jc(e,t,n,a=!0){const o=t?t.vnode:null,{errorHandler:l,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||ln;if(t){let r=t.parent;const u=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const d=r.ec;if(d){for(let f=0;f<d.length;f++)if(d[f](e,u,c)===!1)return}r=r.parent}if(l){Ho(),Pi(l,null,10,[e,u,c]),Ko();return}}$E(e,n,o,a,s)}function $E(e,t,n,a=!0,o=!1){if(o)throw e;console.error(e)}const ea=[];let no=-1;const Ls=[];let pl=null,Os=0;const c0=Promise.resolve();let nc=null;function Ae(e){const t=nc||c0;return e?t.then(this?e.bind(this):e):t}function OE(e){let t=no+1,n=ea.length;for(;t<n;){const a=t+n>>>1,o=ea[a],l=ai(o);l<e||l===e&&o.flags&2?t=a+1:n=a}return t}function ev(e){if(!(e.flags&1)){const t=ai(e),n=ea[ea.length-1];!n||!(e.flags&2)&&t>=ai(n)?ea.push(e):ea.splice(OE(t),0,e),e.flags|=1,d0()}}function d0(){nc||(nc=c0.then(p0))}function NE(e){be(e)?Ls.push(...e):pl&&e.id===-1?pl.splice(Os+1,0,e):e.flags&1||(Ls.push(e),e.flags|=1),d0()}function lm(e,t,n=no+1){for(;n<ea.length;n++){const a=ea[n];if(a&&a.flags&2){if(e&&a.id!==e.uid)continue;ea.splice(n,1),n--,a.flags&4&&(a.flags&=-2),a(),a.flags&4||(a.flags&=-2)}}}function f0(e){if(Ls.length){const t=[...new Set(Ls)].sort((n,a)=>ai(n)-ai(a));if(Ls.length=0,pl){pl.push(...t);return}for(pl=t,Os=0;Os<pl.length;Os++){const n=pl[Os];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}pl=null,Os=0}}const ai=e=>e.id==null?e.flags&2?-1:1/0:e.id;function p0(e){try{for(no=0;no<ea.length;no++){const t=ea[no];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Pi(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;no<ea.length;no++){const t=ea[no];t&&(t.flags&=-2)}no=-1,ea.length=0,f0(),nc=null,(ea.length||Ls.length)&&p0()}}let Dn=null,v0=null;function ac(e){const t=Dn;return Dn=e,v0=e&&e.type.__scopeId||null,t}function Q(e,t=Dn,n){if(!t||e._n)return e;const a=(...o)=>{a._d&&sc(-1);const l=ac(t);let s;try{s=e(...o)}finally{ac(l),a._d&&sc(1)}return s};return a._n=!0,a._c=!0,a._d=!0,a}function it(e,t){if(Dn===null)return e;const n=Xc(Dn),a=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[l,s,r,u=ln]=t[o];l&&(ze(l)&&(l={mounted:l,updated:l}),l.deep&&Ro(s),a.push({dir:l,instance:n,value:s,oldValue:void 0,arg:r,modifiers:u}))}return e}function Al(e,t,n,a){const o=e.dirs,l=t&&t.dirs;for(let s=0;s<o.length;s++){const r=o[s];l&&(r.oldValue=l[s].value);let u=r.dir[a];u&&(Ho(),Fa(u,n,8,[e.el,r,e,t]),Ko())}}function wt(e,t){if(Yn){let n=Yn.provides;const a=Yn.parent&&Yn.parent.provides;a===n&&(n=Yn.provides=Object.create(a)),n[e]=t}}function Le(e,t,n=!1){const a=ct();if(a||Bs){let o=Bs?Bs._context.provides:a?a.parent==null||a.ce?a.vnode.appContext&&a.vnode.appContext.provides:a.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&ze(t)?t.call(a&&a.proxy):t}}const ME=Symbol.for("v-scx"),IE=()=>Le(ME);function da(e,t){return tv(e,null,t)}function ie(e,t,n){return tv(e,t,n)}function tv(e,t,n=ln){const{immediate:a,deep:o,flush:l,once:s}=n,r=Tn({},n),u=t&&a||!t&&l!=="post";let c;if(si){if(l==="sync"){const g=IE();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=Pt,g.resume=Pt,g.pause=Pt,g}}const d=Yn;r.call=(g,p,v)=>Fa(g,d,p,v);let f=!1;l==="post"?r.scheduler=g=>{Hn(g,d&&d.suspense)}:l!=="sync"&&(f=!0,r.scheduler=(g,p)=>{p?g():ev(g)}),r.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,d&&(g.id=d.uid,g.i=d))};const h=TE(e,t,r);return si&&(c?c.push(h):u&&h()),h}function PE(e,t,n){const a=this.proxy,o=De(e)?e.includes(".")?h0(a,e):()=>a[e]:e.bind(a,a);let l;ze(t)?l=t:(l=t.handler,n=t);const s=Ai(this),r=tv(o,l.bind(a),n);return s(),r}function h0(e,t){const n=t.split(".");return()=>{let a=e;for(let o=0;o<n.length&&a;o++)a=a[n[o]];return a}}const m0=Symbol("_vte"),g0=e=>e.__isTeleport,Hr=e=>e&&(e.disabled||e.disabled===""),sm=e=>e&&(e.defer||e.defer===""),rm=e=>typ
|
|||
|
|
* @vue/runtime-dom v3.5.30
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let Af;const km=typeof window<"u"&&window.trustedTypes;if(km)try{Af=km.createPolicy("vue",{createHTML:e=>e})}catch{}const X0=Af?e=>Af.createHTML(e):e=>e,Ox="http://www.w3.org/2000/svg",Nx="http://www.w3.org/1998/Math/MathML",No=typeof document<"u"?document:null,Em=No&&No.createElement("template"),Mx={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const o=t==="svg"?No.createElementNS(Ox,e):t==="mathml"?No.createElementNS(Nx,e):n?No.createElement(e,{is:n}):No.createElement(e);return e==="select"&&a&&a.multiple!=null&&o.setAttribute("multiple",a.multiple),o},createText:e=>No.createTextNode(e),createComment:e=>No.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>No.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,o,l){const s=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===l||!(o=o.nextSibling)););else{Em.innerHTML=X0(a==="svg"?`<svg>${e}</svg>`:a==="mathml"?`<math>${e}</math>`:e);const r=Em.content;if(a==="svg"||a==="mathml"){const u=r.firstChild;for(;u.firstChild;)r.appendChild(u.firstChild);r.removeChild(u)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rl="transition",Tr="animation",Us=Symbol("_vtc"),Z0={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},J0=Tn({},w0,Z0),Ix=e=>(e.displayName="Transition",e.props=J0,e),An=Ix((e,{slots:t})=>Ge(LE,Q0(e),t)),Ll=(e,t=[])=>{be(e)?e.forEach(n=>n(...t)):e&&e(...t)},xm=e=>e?be(e)?e.some(t=>t.length>1):e.length>1:!1;function Q0(e){const t={};for(const R in e)R in Z0||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:a,duration:o,enterFromClass:l=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:r=`${n}-enter-to`,appearFromClass:u=l,appearActiveClass:c=s,appearToClass:d=r,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,p=Px(o),v=p&&p[0],m=p&&p[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:C,onLeave:w,onLeaveCancelled:k,onBeforeAppear:E=y,onAppear:$=b,onAppearCancelled:O=C}=t,M=(R,B,K,Y)=>{R._enterCancelled=Y,ul(R,B?d:r),ul(R,B?c:s),K&&K()},T=(R,B)=>{R._isLeaving=!1,ul(R,f),ul(R,g),ul(R,h),B&&B()},A=R=>(B,K)=>{const Y=R?$:b,z=()=>M(B,R,K);Ll(Y,[B,z]),Tm(()=>{ul(B,R?u:l),to(B,R?d:r),xm(Y)||$m(B,a,v,z)})};return Tn(t,{onBeforeEnter(R){Ll(y,[R]),to(R,l),to(R,s)},onBeforeAppear(R){Ll(E,[R]),to(R,u),to(R,c)},onEnter:A(!1),onAppear:A(!0),onLeave(R,B){R._isLeaving=!0;const K=()=>T(R,B);to(R,f),R._enterCancelled?(to(R,h),_f(R)):(_f(R),to(R,h)),Tm(()=>{R._isLeaving&&(ul(R,f),to(R,g),xm(w)||$m(R,a,m,K))}),Ll(w,[R,K])},onEnterCancelled(R){M(R,!1,void 0,!0),Ll(C,[R])},onAppearCancelled(R){M(R,!0,void 0,!0),Ll(O,[R])},onLeaveCancelled(R){T(R),Ll(k,[R])}})}function Px(e){if(e==null)return null;if(nt(e))return[zd(e.enter),zd(e.leave)];{const t=zd(e);return[t,t]}}function zd(e){return j2(e)}function to(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Us]||(e[Us]=new Set)).add(t)}function ul(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[Us];n&&(n.delete(t),n.size||(e[Us]=void 0))}function Tm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Rx=0;function $m(e,t,n,a){const o=e._endId=++Rx,l=()=>{o===e._endId&&a()};if(n!=null)return setTimeout(l,n);const{type:s,timeout:r,propCount:u}=ew(e,t);if(!s)return a();const c=s+"end";let d=0;const f=()=>{e.removeEventListener(c,h),l()},h=g=>{g.target===e&&++d>=u&&f()};setTimeout(()=>{d<u&&f()},r+1),e.addEventListener(c,h)}function ew(e,t){const n=window.getComputedStyle(e),a=p=>(n[p]||"").split(", "),o=a(`${rl}Delay`),l=a(`${rl}Duration`),s=Om(o,l),r=a(`${Tr}Delay`),u=a(`${Tr}Duratio
|
|||
|
|
For more detail, please visit: ${o}
|
|||
|
|
`)},{immediate:!0})},lP='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',r1=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,Sg=e=>typeof Element>"u"?!1:e instanceof Element,sP=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,kg=e=>Array.from(e.querySelectorAll(lP)).filter(t=>pi(t)&&sP(t)),pi=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Bu=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const o=document.createEvent(a);return o.initEvent(t,...n),e.dispatchEvent(o),e},i1=e=>!e.getAttribute("aria-owns"),u1=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const o=a.querySelectorAll(n);return o[Array.prototype.indexOf.call(o,e)+t]||null},Wi=(e,t)=>{if(!e||!e.focus)return;let n=!1;Sg(e)&&!pi(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),Sg(e)&&n&&e.removeAttribute("tabindex")},Vu=e=>{e&&(Wi(e),!i1(e)&&e.click())},id=()=>Nt&&/firefox/i.test(window.navigator.userAgent),c1=()=>Nt&&/android/i.test(window.navigator.userAgent),Pv=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),hl=e=>Ii(e),rP="utils/dom/style",d1=(e="")=>e.split(" ").filter(t=>!!t.trim()),fo=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ea=(e,t)=>{!e||!t.trim()||e.classList.add(...d1(t))},Gn=(e,t)=>{!e||!t.trim()||e.classList.remove(...d1(t))},Ao=(e,t)=>{var a;if(!Nt||!e||!t||r1(e))return"";let n=Rn(t);n==="float"&&(n="cssFloat");try{const o=e.style[n];if(o)return o;const l=(a=document.defaultView)==null?void 0:a.getComputedStyle(e,"");return l?l[n]:""}catch{return e.style[n]}},f1=(e,t,n)=>{if(!(!e||!t))if(nt(t))Jw(t).forEach(([a,o])=>f1(e,a,o));else{const a=Rn(t);e.style[a]=n}};function tn(e,t="px"){if(!e&&e!==0)return"";if(Ke(e)||AI(e))return`${e}${t}`;if(De(e))return e;dt(rP,"binding value must be a string or number")}const p1=(e,t,n,a)=>{const o={offsetX:0,offsetY:0},l=_(!1),s=(h,g)=>{if(e.value){const{offsetX:p,offsetY:v}=o,m=e.value.getBoundingClientRect(),y=m.left,b=m.top,C=m.width,w=m.height,k=document.documentElement.clientWidth,E=document.documentElement.clientHeight,$=-y+p,O=-b+v,M=k-y-C+p,T=E-b-(w<E?w:0)+v;a!=null&&a.value||(h=Math.min(Math.max(h,$),M),g=Math.min(Math.max(g,O),T)),o.offsetX=h,o.offsetY=g,e.value.style.transform=`translate(${tn(h)}, ${tn(g)})`}},r=h=>{const g=h.clientX,p=h.clientY,{offsetX:v,offsetY:m}=o,y=C=>{l.value||(l.value=!0),s(v+C.clientX-g,m+C.clientY-p)},b=()=>{l.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",r),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",r),window.removeEventListener("resize",f))},d=()=>{o.offsetX=0,o.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:h,offsetY:g}=o;s(h,g)};return ft(()=>{da(()=>{n.value?u():c()})}),Rt(()=>{c()}),{isDragging:l,resetPosition:d,updatePosition:f}};var iP={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {col
|
|||
|
|
usage: app.provide(ID_INJECTION_KEY, {
|
|||
|
|
prefix: number,
|
|||
|
|
current: number,
|
|||
|
|
})`);const n=Rv();return t1(()=>i(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Ns=[];const Dg=e=>{Ft(e)===Ce.esc&&Ns.forEach(t=>t(e))},xR=e=>{ft(()=>{Ns.length===0&&document.addEventListener("keydown",Dg),Nt&&Ns.push(e)}),Rt(()=>{Ns=Ns.filter(t=>t!==e),Ns.length===0&&Nt&&document.removeEventListener("keydown",Dg)})},I1=()=>{const e=Rv(),t=jv(),n=S(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:S(()=>`#${n.value}`)}},TR=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},$R=()=>{const{id:e,selector:t}=I1();return qc(()=>{Nt&&(document.body.querySelector(t.value)||TR(e.value))}),{id:e,selector:t}},OR=Se({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),NR=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:o})=>{const{registerTimeout:l}=Lg(),{registerTimeout:s,cancelTimeout:r}=Lg();return{onOpen:(d,f=i(e))=>{l(()=>{a(d);const h=i(n);Ke(h)&&h>0&&s(()=>{o(d)},h)},f)},onClose:(d,f=i(t))=>{r(),l(()=>{o(d)},f)}}},P1=Symbol("elForwardRef"),MR=e=>{wt(P1,{setForwardRef:n=>{e.value=n}})},IR=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Bg={current:0},Vg=_(0),R1=2e3,Fg=Symbol("elZIndexContextKey"),A1=Symbol("zIndexContextKey"),Ui=e=>{const t=ct()?Le(Fg,Bg):Bg,n=e||(ct()?Le(A1,void 0):void 0),a=S(()=>{const s=i(n);return Ke(s)?s:R1}),o=S(()=>a.value+Vg.value),l=()=>(t.current++,Vg.value=t.current,o.value);return!Nt&&!Le(Fg)&&dt("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|||
|
|
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:o,nextZIndex:l}},nr=Math.min,es=Math.max,hc=Math.round,mu=Math.floor,vo=e=>({x:e,y:e}),PR={left:"right",right:"left",bottom:"top",top:"bottom"};function Yf(e,t,n){return es(e,nr(t,n))}function qi(e,t){return typeof e=="function"?e(t):e}function is(e){return e.split("-")[0]}function Gi(e){return e.split("-")[1]}function _1(e){return e==="x"?"y":"x"}function Yv(e){return e==="y"?"height":"width"}function yl(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Uv(e){return _1(yl(e))}function RR(e,t,n){n===void 0&&(n=!1);const a=Gi(e),o=Uv(e),l=Yv(o);let s=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(s=mc(s)),[s,mc(s)]}function AR(e){const t=mc(e);return[Uf(e),t,Uf(t)]}function Uf(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const zg=["left","right"],Hg=["right","left"],_R=["top","bottom"],LR=["bottom","top"];function DR(e,t,n){switch(e){case"top":case"bottom":return n?t?Hg:zg:t?zg:Hg;case"left":case"right":return t?_R:LR;default:return[]}}function BR(e,t,n,a){const o=Gi(e);let l=DR(is(e),n==="start",a);return o&&(l=l.map(s=>s+"-"+o),t&&(l=l.concat(l.map(Uf)))),l}function mc(e){const t=is(e);return PR[t]+e.slice(t.length)}function VR(e){return{top:0,right:0,bottom:0,left:0,...e}}function L1(e){return typeof e!="number"?VR(e):{top:e,right:e,bottom:e,left:e}}function gc(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function Kg(e,t,n){let{reference:a,floating:o}=e;const l=yl(t),s=Uv(t),r=Yv(s),u=is(t),c=l==="y",d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,h=a[r]/2-o[r]/2;let g;switch(u){case"top":g={x:d,y:a.y-o.height};break;case"bottom":g={x:d,y:a.y+a.height};break;case"right":g={x:a.x+a.width,y:f};break;case"left":g={x:a.x-o.width,y:f};break;default:g={x:a.x,y:a.y}}switch(Gi(t)){case"start":g[s]-=h*(n&&c?-1:1);break;case"end":g[s]+=h*(n&&c?-1:1);break}return g}async function D1(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:l,rects:s,elements:r,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:g=0}=qi(t,e),p=L1(g),m=r[h?f==="floating"?"reference":"floating":f],y=gc(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(m)))==null||n?m:m.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(r.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:a,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(l.getOffsetParent==null?void 0:l.getOffsetParent(r.floating)),w=await(l.isElement==null?void 0:l.isElement(C))?await(l.getScale==null?void 0:l.getScale(C))||{x:1,y:1}:{x:1,y:1},k=gc(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:C,strategy:u}):b);return{top:(y.top-k.top+p.top)/w.y,bottom:(k.bottom-y.bottom+p.bottom)/w.y,left:(y.left-k.left+p.left)/w.x,right:(k.right-y.right+p.right)/w.x}}const FR=50,zR=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:l=[],platform:s}=n,r=s.detectOverflow?s:{...s,detectOverflow:D1},u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Kg(c,a,u),h=a,g=0;const p={};for(let v=0;v<l.length;v++){const m=l[v];if(!m)continue;const{name:y,fn:b}=m,{x:C,y:w,data:k,reset:E}=await b({x:d,y:f,initialPlacement:a,placement:h,strategy:o,middlewareData:p,rects:c,platform:r,elements:{reference:e,floating:t}});d=C??d,f=w??f,p[y]={...p[y],...k},E&&g<FR&&(g++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:d,y:f}=Kg(c,h,u)),v=-1)}return{x:d,y:f,placement:h,strategy:o,middlewareData:p}},HR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:l,platform:s,elements:r,middlewareData:u}=t,{element:c,
|
|||
|
|
(?:
|
|||
|
|
(?:`+a+":){7}(?:"+a+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|||
|
|
(?:`+a+":){6}(?:"+n+"|:"+a+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|||
|
|
(?:`+a+":){5}(?::"+n+"|(?::"+a+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
|||
|
|
(?:`+a+":){4}(?:(?::"+a+"){0,1}:"+n+"|(?::"+a+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
|||
|
|
(?:`+a+":){3}(?:(?::"+a+"){0,2}:"+n+"|(?::"+a+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
|||
|
|
(?:`+a+":){2}(?:(?::"+a+"){0,3}:"+n+"|(?::"+a+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
|||
|
|
(?:`+a+":){1}(?:(?::"+a+"){0,4}:"+n+"|(?::"+a+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|||
|
|
(?::(?:(?::`+a+"){0,5}:"+n+"|(?::"+a+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|||
|
|
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|||
|
|
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),l=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),s=new RegExp("^"+n+"$"),r=new RegExp("^"+o+"$"),u=function(w){return w&&w.exact?l:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+o+t(w)+")","g")};u.v4=function(C){return C&&C.exact?s:new RegExp(""+t(C)+n+t(C),"g")},u.v6=function(C){return C&&C.exact?r:new RegExp(""+t(C)+o+t(C),"g")};var c="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=u.v4().source,h=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+c+"|www\\.)"+d+"(?:localhost|"+f+"|"+h+"|"+g+p+v+")"+m+y;return bu=new RegExp("(?:^"+b+"$)","i"),bu},ay={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},_r={integer:function(t){return _r.number(t)&&parseInt(t,10)===t},float:function(t){return _r.number(t)&&!_r.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"&&!_r.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(ay.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(PA())},hex:function(t){return typeof t=="string"&&!!t.match(ay.hex)}},RA=function(t,n,a,o,l){if(t.required&&n===void 0){fC(t,n,a,o,l);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],r=t.type;s.indexOf(r)>-1?_r[r](n)||o.push(ga(l.messages.types[r],t.fullField,t.type)):r&&typeof n!==t.type&&o.push(ga(l.messages.types[r],t.fullField,t.type))},AA=function(t,n,a,o,l){var s=typeof t.len=="number",r=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",g=typeof n=="string",p=Array.isArray(n);if(h?f="number":g?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),g&&(d=n.replace(c,"_").length),s?d!==t.len&&o.push(ga(l.messages[f].len,t.fullField,t.len)):r&&!u&&d<t.min?o.push(ga(l.messages[f].min,t.fullField,t.min)):u&&!r&&d>t.max?o.push(ga(l.messages[f].max,t.fullField,t.max)):r&&u&&(d<t.min||d>t.max)&&o.push(ga(l.messages[f].range,t.fullField,t.min,t.max))},Ss="enum",_A=function(t,n,a,o,l){t[Ss]=Array.isArray(t[Ss])?t[Ss]:[],t[Ss].indexOf(n)===-1&&o.push(ga(l.messages[Ss],t.fullField,t[Ss].join(", ")))},LA=function(t,n,a,o,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(ga(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||o.push(ga(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Wt={required:fC,whitespace:IA,type:RA,range:AA,enum:_A,pattern:LA},DA=function(t,n,a,o,l){var s=[],r=t.required||!t.required&&o.hasOwnProperty(t.field);if(r){if(Nn(n,"string")&&!t.required)return a();Wt.required(t,n,o,s,l,"string"),Nn(n,"string")||(Wt.type(t,n,o,s,l),Wt.range(t,n,o,s,l),Wt.pattern(t,n,o,s,l),t.whitespace===!0&&Wt.whitespace(t,n,o,s,l))}a(s)},BA=function(t,n,a,o,l){var s=[],r=t.required||!t.required&&o.hasOwnProperty(t.field);if(r){if(Nn(n)&&!t.required)return a();Wt.required(t,n,o,s,l),n!==void 0&&Wt.type(t,n,o,s,l)}a(s)},VA=function(t,n,a,o,l){var s=[],r=t.required||!t.required&&o.hasOwnProperty(t.field);if(r){if(n===""&&(n=void 0),Nn(n)&&!t.required)return a();Wt.required(t,n,o,s,l),n!==void 0&&(Wt.type(t,n,o,s,l),Wt.range(t,n,o,s,l))}a(s)},FA=function(t,n,a,o,l){var s=[],r=t.required||!t.required&&o.hasOwnProperty(t.field);if(r){if(Nn(n)&&!t.requir
|
|||
|
|
* 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 Yu="_Mousewheel",Py=function(e,t){if(e&&e.addEventListener){jC(e);const n=function(a){const o=T8(a);t&&Reflect.apply(t,this,[a,o])};e[Yu]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},jC=e=>{var t;(t=e[Yu])!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[Yu].wheelHandler),e[Yu]=null)},$8={beforeMount(e,t){Py(e,t.value)},unmounted(e){jC(e)},updated(e,t){t.value!==t.oldValue&&Py(e,t.value)}},O8=Se({..._C,datetimeRole:String,parsedValue:{type:G(Object)}}),YC=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(s,r,u,c)=>{const d={hour:e,minute:t,second:n};let f=s;return["hour","minute","second"].forEach(h=>{if(d[h]){let g;const p=d[h];switch(h){case"minute":g=p(f.hour(),r,c);break;case"second":g=p(f.hour(),f.minute(),r,c);break;default:g=p(r,c);break}if(g!=null&&g.length&&!g.includes(f[h]())){const v=u?0:g.length-1;f=f[h](g[v])}}}),f},o={};return{timePickerOptions:o,getAvailableTime:a,onSetOption:([s,r])=>{o[s]=r}}},rf=e=>{const t=(a,o)=>a||o,n=a=>a!==!0;return e.map(t).filter(n)},UC=(e,t,n)=>({getHoursList:(s,r)=>sf(24,e&&(()=>e==null?void 0:e(s,r))),getMinutesList:(s,r,u)=>sf(60,t&&(()=>t==null?void 0:t(s,r,u))),getSecondsList:(s,r,u,c)=>sf(60,n&&(()=>n==null?void 0:n(s,r,u,c)))}),qC=(e,t,n)=>{const{getHoursList:a,getMinutesList:o,getSecondsList:l}=UC(e,t,n);return{getAvailableHours:(c,d)=>rf(a(c,d)),getAvailableMinutes:(c,d,f)=>rf(o(c,d,f)),getAvailableSeconds:(c,d,f,h)=>rf(l(c,d,f,h))}},GC=(e,t)=>{const n=_(e.parsedValue);return ie(()=>e.visible,a=>{const o=om(t.modelValue),l=om(t.valueOnClear);if(a&&o===l){n.value=l;return}a||(n.value=e.parsedValue)}),n},N8=Se({role:{type:String,required:!0},spinnerDate:{type:G(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:G(String),default:""},...rh}),M8=["onClick"],I8=["onMouseenter"];var P8=le({__name:"basic-time-spinner",props:N8,emits:[ht,"select-range","set-option"],setup(e,{emit:t}){const n=e,{isRange:a,format:o,saveOnBlur:l}=Le(ja).props,s=t,r=ve("time"),{getHoursList:u,getMinutesList:c,getSecondsList:d}=UC(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const h={hours:!1,minutes:!1,seconds:!1},g=_(),p={hours:_(),minutes:_(),seconds:_()},v=S(()=>n.showSeconds?Sy:Sy.slice(0,2)),m=S(()=>{const{spinnerDate:V}=n;return{hours:V.hour(),minutes:V.minute(),seconds:V.second()}}),y=S(()=>{const{hours:V,minutes:U}=i(m),{role:W,spinnerDate:X}=n,J=a?void 0:X;return{hours:u(W,J),minutes:c(V,W,J),seconds:d(V,U,W,J)}}),b=S(()=>{const{hours:V,minutes:U,seconds:W}=i(m);return{hours:lf(V,23),minutes:lf(U,59),seconds:lf(W,59)}}),C=yo(V=>{f=!1,E(V)},200),w=V=>{if(!n.amPmMode)return"";const U=n.amPmMode==="A";let W=V<12?" am":" pm";return U&&(W=W.toUpperCase()),W},k=V=>{let U=[0,0];const W=o||or,X=W.indexOf("HH"),J=W.indexOf("mm"),fe=W.indexOf("ss");switch(V){case"hours":X!==-1&&(U=[X,X+2]);break;case"minutes":J!==-1&&(U=[J,J+2]);break;case"seconds":fe!==-1&&(U=[fe,fe+2]);break}const[ue,he]=U;s("select-range",ue,he),g.value=V},E=V=>{M(V,i(m)[V])},$=()=>{E("hours"),E("minutes"),E("seconds")},O=V=>V.querySelector(`.${r.namespace.value}-scrollbar__wrap`),M=(V,U)=>{if(n.arrowControl)return;const W=i(p[V]);W&&W.$el&&(l||(h[V]=!0,za(()=>{h[V]=!1})),O(W.$el).scrollTop=Math.max(0,U*T(V)))},T=V=>{var W;const U=(W=i(p[V]))==null?void 0:W.$el.querySelector("li");return U&&Number.parseFloat(Ao(U,"height"))||0},A=()=>{B(1)},R=()=>{B(-1)},B=V=>{g.value||k("hours");const U=g.value,W=i(m)[U],X=K(U,W,V,g.value==="hours"?24:60);Y(U,X),M(U,X),Ae(()=>k(U))},K=(V,U,W,X)=>{let J=(U+W+X)%X;const fe=i(y)[V];for(;fe[J]&&J!==U;)J=(J+W+X)%X;return J},Y=(V,U)=>{if(i(y)[V][U])return;const{hours:W,minutes:X,seconds:J}=i(m);let fe;switch(V){case"hours":fe=n.spinnerDate.hour(U).minute(X).second(J);break;case"minutes":fe=n.spinnerDate.hour(W).minute(U).second(J);break;case"seconds":fe=n.spinnerDate.hour(W).minute(X).second(U);break}s(ht,fe)},z=(V,{value:U,disabled:W})=>{W||(Y(V,U),k(V),M(V,U))},P=V=>{if(!l&&h[V])return;const U=i(p[V]);U&&(f=!0,C(V),Y(V,Math.min(Math.round((O(U.$el).scrollTop-(I(V)*.5-10)/T(V)+3)
|
|||
|
|
Add an empty element to avoid render label,
|
|||
|
|
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
|
|||
|
|
`),T[2]||(T[2]=j("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):h.value&&e.node.checked?(x(),oe(i(Be),{key:2,class:N(i(l).e("prefix"))},{default:Q(()=>[q(i(Qi))]),_:1},8,["class"])):ae("v-if",!0),ae(" content "),q(i(O6),{node:e.node},null,8,["node"]),ae(" postfix "),h.value?ae("v-if",!0):(x(),F(He,{key:3},[e.node.loading?(x(),oe(i(Be),{key:0,class:N([i(l).is("loading"),i(l).e("postfix")])},{default:Q(()=>[q(i(wo))]),_:1},8,["class"])):(x(),oe(i(Be),{key:1,class:N(["arrow-right",i(l).e("postfix")])},{default:Q(()=>[q(i(Xn))]),_:1},8,["class"]))],64))],42,N6))}}),I6=M6,P6=le({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=ct(),a=ve("cascader-menu"),{t:o}=St(),l=_n();let s,r;const u=Le(Cd),c=_(),d=S(()=>!t.nodes.length),f=S(()=>!u.initialLoaded),h=S(()=>`${l.value}-${t.index}`),g=y=>{s=y.target},p=y=>{var b;if(!(!u.isHoverMenu||!s||!c.value))if(s.contains(y.target)){v();const C=n.vnode.el,{left:w}=C.getBoundingClientRect(),{offsetWidth:k,offsetHeight:E}=C,$=y.clientX-w,O=s.offsetTop,M=O+s.offsetHeight,T=((b=C.querySelector(`.${a.e("wrap")}`))==null?void 0:b.scrollTop)||0;c.value.innerHTML=`
|
|||
|
|
<path style="pointer-events: auto;" fill="transparent" d="M${$} ${O} L${k} ${T} V${O} Z" />
|
|||
|
|
<path style="pointer-events: auto;" fill="transparent" d="M${$} ${M} L${k} ${E+T} V${M} Z" />
|
|||
|
|
`}else r||(r=window.setTimeout(m,u.config.hoverThreshold))},v=()=>{r&&(clearTimeout(r),r=void 0)},m=()=>{c.value&&(c.value.innerHTML="",v())};return(y,b)=>(x(),oe(i(Wa),{key:h.value,tag:"ul",role:"menu",class:N(i(a).b()),"wrap-class":i(a).e("wrap"),"view-class":[i(a).e("list"),i(a).is("empty",d.value)],onMousemove:p,onMouseleave:m},{default:Q(()=>{var C;return[(x(!0),F(He,null,yt(e.nodes,w=>(x(),oe(I6,{key:w.uid,node:w,"menu-id":h.value,onExpand:g},null,8,["node","menu-id"]))),128)),f.value?(x(),F("div",{key:0,class:N(i(a).e("empty-text"))},[q(i(Be),{size:"14",class:N(i(a).is("loading"))},{default:Q(()=>[q(i(wo))]),_:1},8,["class"]),bt(" "+ke(i(o)("el.cascader.loading")),1)],2)):d.value?(x(),F("div",{key:1,class:N(i(a).e("empty-text"))},[ne(y.$slots,"empty",{},()=>[bt(ke(i(o)("el.cascader.noData")),1)])],2)):(C=i(u))!=null&&C.isHoverMenu?(x(),F(He,{key:2},[ae(" eslint-disable vue/html-self-closing "),(x(),F("svg",{ref_key:"hoverZone",ref:c,class:N(i(a).e("hover-zone"))},null,2))],2112)):ae("v-if",!0),ae(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}),R6=P6;let A6=0;const _6=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};var mp=class gp{constructor(t,n,a,o=!1){this.data=t,this.config=n,this.parent=a,this.root=o,this.uid=A6++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:l,label:s,children:r}=n,u=t[r],c=_6(this);this.level=o?0:a?a.level+1:1,this.value=t[l],this.label=t[s],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new gp(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!ta(u),this.text=""}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:o,checkStrictly:l}=a;return(ze(o)?o(t,this):!!t[o])||!l&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:o}=this,{lazy:l,leaf:s}=n,r=ze(s)?s(t,this):t[s];return kt(r)?l&&!o?!1:!(be(a)&&a.length):!!r}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,o=new gp(t,this.config,this);return be(n)?n.push(t):this.childrenData=[t],a.push(o),o}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t){this.children.forEach(n=>{var a;n&&(n.broadcast(t),(a=n.onParentCheck)==null||a.call(n,t))})}emit(){var n;const{parent:t}=this;t&&((n=t.onChildCheck)==null||n.call(t),t.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),a=n.length?n.every(o=>o.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((o,l)=>o+(l.checked?1:l.indeterminate?.5:0),0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&a!==n&&a>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:a}=this.config;n||!a?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const yp=(e,t)=>e.reduce((n,a)=>(a.isLeaf?n.push(a):(!t&&n.push(a),n=n.concat(yp(a.children,t))),n),[]);var Vy=class{constructor(e,t){this.config=t;const n=(e||[]).map(a=>new mp(a,this.config));this.nodes=n,this.allNodes=yp(n,!1),this.leafNodes=yp(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new mp(e,this.config);t||this.nodes.push(n),this.appendAllNodesAndLeafNodes(n)}appendNodes(e,t){e.length>0?e.forEach(n=>this.appendNode(n,t)):t&&t.isLeaf&&this.leafNodes.push(t)}appendAllNodesAndLeafNodes(e){this.allNodes.push(e),e.isLeaf&&this.leafNodes.push(e),e.children&&e.children.forEach(t=>{this.appendAllNodesAndLeafNodes(t)})}getNodeByValue(e,t=!1){return ia(e)?null:this.getFlattedNodes(t).find(n=>Qt(n.value,e)||Qt(n.pathValues,e))||null}getSameNode(e){return e&&this.getFlattedNodes(!1).find(({value:t,level:n})=>Qt(e.value,t)&&e.level===n)||null}};const Fy=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.le
|
|||
|
|
M 50 50
|
|||
|
|
m 0 ${w?"":"-"}${C}
|
|||
|
|
a ${C} ${C} 0 1 1 0 ${w?"-":""}${C*2}
|
|||
|
|
a ${C} ${C} 0 1 1 0 ${w?"":"-"}${C*2}
|
|||
|
|
`}),u=S(()=>2*Math.PI*s.value),c=S(()=>n.type==="dashboard"?.75:1),d=S(()=>`${-1*u.value*(1-c.value)/2}px`),f=S(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),h=S(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=S(()=>{let C;return n.color?C=b(n.percentage):C=t[n.status]||t.default,C}),p=S(()=>n.status==="warning"?gd:n.type==="line"?n.status==="success"?Zv:xo:n.status==="success"?Qi:Ma),v=S(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),m=S(()=>n.format(n.percentage));function y(C){const w=100/C.length;return C.map((k,E)=>De(k)?{color:k,percentage:(E+1)*w}:k).sort((k,E)=>k.percentage-E.percentage)}const b=C=>{var k;const{color:w}=n;if(ze(w))return w(C);if(De(w))return w;{const E=y(w);for(const $ of E)if($.percentage>C)return $.color;return(k=E[E.length-1])==null?void 0:k.color}};return(C,w)=>(x(),F("div",{class:N([i(a).b(),i(a).m(e.type),i(a).is(e.status),{[i(a).m("without-text")]:!e.showText,[i(a).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(x(),F("div",{key:0,class:N(i(a).b("bar"))},[j("div",{class:N(i(a).be("bar","outer")),style:We({height:`${e.strokeWidth}px`})},[j("div",{class:N([i(a).be("bar","inner"),{[i(a).bem("bar","inner","indeterminate")]:e.indeterminate},{[i(a).bem("bar","inner","striped")]:e.striped},{[i(a).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:We(o.value)},[(e.showText||C.$slots.default)&&e.textInside?(x(),F("div",{key:0,class:N(i(a).be("bar","innerText"))},[ne(C.$slots,"default",{percentage:e.percentage},()=>[j("span",null,ke(m.value),1)])],2)):ae("v-if",!0)],6)],6)],2)):(x(),F("div",{key:1,class:N(i(a).b("circle")),style:We({height:`${e.width}px`,width:`${e.width}px`})},[(x(),F("svg",UK,[j("path",{class:N(i(a).be("circle","track")),d:r.value,stroke:`var(${i(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,fill:"none",style:We(f.value)},null,14,qK),j("path",{class:N(i(a).be("circle","path")),d:r.value,stroke:g.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,style:We(h.value)},null,14,GK)]))],6)),(e.showText||C.$slots.default)&&!e.textInside?(x(),F("div",{key:2,class:N(i(a).e("text")),style:We({fontSize:`${v.value}px`})},[ne(C.$slots,"default",{percentage:e.percentage},()=>[e.status?(x(),oe(i(Be),{key:1},{default:Q(()=>[(x(),oe(st(p.value)))]),_:1})):(x(),F("span",XK,ke(m.value),1))])],6)):ae("v-if",!0)],10,YK))}}),JK=ZK;const vk=lt(JK),QK=Se({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:G([Array,Object]),default:()=>en(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:G([Array,Object]),default:()=>[gu,gu,gu]},voidIcon:{type:Bt,default:()=>F4},disabledVoidIcon:{type:Bt,default:()=>gu},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:G(Array),default:()=>en(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:wn,clearable:Boolean,...Zn(["ariaLabel"])}),e9={[ht]:e=>Ke(e),[tt]:e=>Ke(e)},t9=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax","tabindex","aria-disabled"],n9=["onMousemove","onClick"];var a9=le({name:"ElRate",__name:"rate",props:QK,emits:e9,setup(e,{expose:t,emit:n}){function a(I,L){const D=U=>nt(U),V=L[Object.keys(L).map(U=>+U).filter(U=>{const W=L[U];return D(W)&&W.excluded?I<U:I<=U}).sort((U,W)=>U-W)[0]];return D(V)&&V.value||V}const o=e,l=n,s=Le(Co,void 0),r=yn(),u=ve("rate"),{inputId:c,isLabeledByFormItem:d}=Ca(o,{formItemContext:s}),f=_(jl(o.modelValue,0,o.max)),h=_(-1),g=_(!0),p=_([]),v=S(()=>p.value.map(
|
|||
|
|
You should set
|
|||
|
|
width/height
|
|||
|
|
to number when your layout is
|
|||
|
|
horizontal/vertical
|
|||
|
|
`);const c=Math.max(0,t*n-u),d=Math.min(c,l*n),f=Math.max(0,(l+1)*n-u);switch(s===xd&&(r>=f-u&&r<=d+u?s=xa:s=ro),s){case Ei:return d;case xi:return f;case ro:{const h=Math.round(f+(d-f)/2);return h<Math.ceil(u/2)?0:h>c+Math.floor(u/2)?c:h}case xa:default:return r>=f&&r<=d?r:r<f?f:d}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:o},l,s)=>{const r=l*n,u=$i(a)?o:e,c=Math.ceil((u+s-r)/n);return Math.max(0,Math.min(t-1,l+c-1))},initCache(){},clearCache:!0,validateProps(){}}),y9="ElDynamicSizeList",Rs=(e,t,n)=>{const{itemSize:a}=e,{items:o,lastVisitedIndex:l}=n;if(t>l){let s=0;if(l>=0){const r=o[l];s=r.offset+r.size}for(let r=l+1;r<=t;r++){const u=a(r);o[r]={offset:s,size:u},s+=u}n.lastVisitedIndex=t}return o[t]},b9=(e,t,n)=>{const{items:a,lastVisitedIndex:o}=t;return(o>0?a[o].offset:0)>=n?Tk(e,t,0,o,n):w9(e,t,Math.max(0,o),n)},Tk=(e,t,n,a,o)=>{for(;n<=a;){const l=n+Math.floor((a-n)/2),s=Rs(e,l,t).offset;if(s===o)return l;s<o?n=l+1:s>o&&(a=l-1)}return Math.max(0,n-1)},w9=(e,t,n,a)=>{const{total:o}=e;let l=1;for(;n<o&&Rs(e,n,t).offset<a;)n+=l,l*=2;return Tk(e,t,Math.floor(n/2),Math.min(n,o-1),a)},ab=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:a})=>{let o=0;if(a>=e&&(a=e-1),a>=0){const s=t[a];o=s.offset+s.size}const l=(e-a-1)*n;return o+l},C9=Ek({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Rs(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:ab,getOffset:(e,t,n,a,o)=>{const{height:l,layout:s,width:r}=e,u=$i(s)?r:l,c=Rs(e,t,o),d=ab(e,o),f=Math.max(0,Math.min(d-u,c.offset)),h=Math.max(0,c.offset-u+c.size);switch(n===xd&&(a>=h-u&&a<=f+u?n=xa:n=ro),n){case Ei:return f;case xi:return h;case ro:return Math.round(h+(f-h)/2);case xa:default:return a>=h&&a<=f?a:a<h?h:f}},getStartIndexForOffset:(e,t,n)=>b9(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:o,total:l,layout:s,width:r}=e,u=$i(s)?r:o,c=Rs(e,t,a),d=n+u;let f=c.offset+c.size,h=t;for(;h<l-1&&f<d;)h++,f+=Rs(e,h,a).size;return h},initCache({estimatedItemSize:e=Sp},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(a,o=!0)=>{var l,s;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),(l=t.exposed)==null||l.getItemStyleCache(-1),o&&((s=t.proxy)==null||s.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{typeof e!="function"&&Xt(y9,`
|
|||
|
|
itemSize is required as function, but the given value was ${typeof e}
|
|||
|
|
`)}}),S9=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},o)=>{let l=null,s=0,r=0;const u=(d,f)=>{const h=d<0&&t.value||d>0&&e.value,g=f<0&&a.value||f>0&&n.value;return h||g};return{hasReachedEdge:u,onWheel:d=>{Yo(l);let f=d.deltaX,h=d.deltaY;if(Math.abs(f)>Math.abs(h)?h=0:f=0,d.shiftKey&&h!==0&&(f=h,h=0),u(f,h)){d.deltaX!==0&&f===0&&d.preventDefault();return}s+=f,r+=h,d.preventDefault(),l=za(()=>{o(s,r),s=0,r=0})}}},k9=(e,t,n,a,o,l,s)=>{const r=_(0),u=_(0);let c,d=0,f=0;const h=p=>{Yo(c),r.value=p.touches[0].clientX,u.value=p.touches[0].clientY,d=0,f=0},g=p=>{p.preventDefault(),Yo(c),d+=r.value-p.touches[0].clientX,f+=u.value-p.touches[0].clientY,r.value=p.touches[0].clientX,u.value=p.touches[0].clientY,c=za(()=>{const v=a.value-i(l),m=o.value-i(s);n({scrollLeft:Math.min(t.value.scrollLeft+d,v),scrollTop:Math.min(t.value.scrollTop+f,m)}),d=0,f=0})};return At(e,"touchstart",h,{passive:!0}),At(e,"touchmove",g,{passive:!1}),{touchStartX:r,touchStartY:u,handleTouchStart:h,handleTouchMove:g}},$k=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:l,getEstimatedTotalWidth:s,getColumnOffset:r,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:g,validateProps:p})=>le({name:e??"ElVirtualList",props:ts,emits:[Oc,Nc],setup(v,{emit:m,expose:y,slots:b}){const C=ve("vl");p(v);const w=ct(),k=_(h(v,w));g==null||g(w,k);const E=_(),$=_(),O=_(),M=_(),T=_({isScrolling:!1,scrollLeft:Ke(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:Ke(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Ps,yAxisScrollDir:Ps}),A=Sk(),R=S(()=>Number.parseInt(`${v.height}`,10)),B=S(()=>Number.parseInt(`${v.width}`,10)),K=S(()=>{const{totalColumn:me,totalRow:Te,columnCache:we}=v,{isScrolling:Ie,xAxisScrollDir:Ve,scrollLeft:Xe}=i(T);if(me===0||Te===0)return[0,0,0,0];const $e=a(v,Xe,i(k)),Pe=o(v,$e,Xe,i(k)),je=!Ie||Ve===Mc?Math.max(1,we):1,xt=!Ie||Ve===Ps?Math.max(1,we):1;return[Math.max(0,$e-je),Math.max(0,Math.min(me-1,Pe+xt)),$e,Pe]}),Y=S(()=>{const{totalColumn:me,totalRow:Te,rowCache:we}=v,{isScrolling:Ie,yAxisScrollDir:Ve,scrollTop:Xe}=i(T);if(me===0||Te===0)return[0,0,0,0];const $e=d(v,Xe,i(k)),Pe=f(v,$e,Xe,i(k)),je=!Ie||Ve===Mc?Math.max(1,we):1,xt=!Ie||Ve===Ps?Math.max(1,we):1;return[Math.max(0,$e-je),Math.max(0,Math.min(Te-1,Pe+xt)),$e,Pe]}),z=S(()=>l(v,i(k))),P=S(()=>s(v,i(k))),I=S(()=>[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:Ke(v.height)?`${v.height}px`:v.height,width:Ke(v.width)?`${v.width}px`:v.width},v.style??{}]),L=S(()=>{const me=`${i(P)}px`;return{height:`${i(z)}px`,pointerEvents:i(T).isScrolling?"none":void 0,width:me,margin:0,boxSizing:"border-box"}}),D=()=>{const{totalColumn:me,totalRow:Te}=v;if(me>0&&Te>0){const[Pe,je,xt,Mt]=i(K),[Ue,rt,mt,de]=i(Y);m(Oc,{columnCacheStart:Pe,columnCacheEnd:je,rowCacheStart:Ue,rowCacheEnd:rt,columnVisibleStart:xt,columnVisibleEnd:Mt,rowVisibleStart:mt,rowVisibleEnd:de})}const{scrollLeft:we,scrollTop:Ie,updateRequested:Ve,xAxisScrollDir:Xe,yAxisScrollDir:$e}=i(T);m(Nc,{xAxisScrollDir:Xe,scrollLeft:we,yAxisScrollDir:$e,scrollTop:Ie,updateRequested:Ve})},V=me=>{const{clientHeight:Te,clientWidth:we,scrollHeight:Ie,scrollLeft:Ve,scrollTop:Xe,scrollWidth:$e}=me.currentTarget,Pe=i(T);if(Pe.scrollTop===Xe&&Pe.scrollLeft===Ve)return;let je=Ve;if(tb(v.direction))switch(Pc()){case Ti:je=-Ve;break;case Nh:je=$e-we-Ve;break}T.value={...Pe,isScrolling:!0,scrollLeft:je,scrollTop:Math.max(0,Math.min(Xe,Ie-Te)),updateRequested:!0,xAxisScrollDir:Gl(Pe.scrollLeft,je),yAxisScrollDir:Gl(Pe.scrollTop,Xe)},Ae(()=>H()),Z(),D()},U=(me,Te)=>{const we=i(R),Ie=(z.value-we)/Te*me;J({scrollTop:Math.min(z.value-we,Ie)})},W=(me,Te)=>{const we=i(B),Ie=(P.value-we)/Te*me;J({scrollLeft:Math.min(P.value-we,Ie)})},{onWheel:X}=S9({atXStartEdge:S(()=>T.value.scrollLeft<=0),atXEndEdge:S(()=>T.value.scrollLeft>=P.value-i(B)),atYStartEdge:S(()=>T.value.scrollTop<=0),atYEndEdge:S(()=>T.value
|
|||
|
|
"columnWidth" must be passed as number,
|
|||
|
|
instead ${typeof e} was given.
|
|||
|
|
`),Ke(t)||Xt(ob,`
|
|||
|
|
"columnWidth" must be passed as number,
|
|||
|
|
instead ${typeof t} was given.
|
|||
|
|
`)}}),{max:Rc,min:Ok,floor:Nk}=Math,lb="ElDynamicSizeGrid",x9={column:"columnWidth",row:"rowHeight"},Np={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Io=(e,t,n,a)=>{const[o,l,s]=[n[a],e[x9[a]],n[Np[a]]];if(t>s){let r=0;if(s>=0){const u=o[s];r=u.offset+u.size}for(let u=s+1;u<=t;u++){const c=l(u);o[u]={offset:r,size:c},r+=c}n[Np[a]]=t}return o[t]},Mk=(e,t,n,a,o,l)=>{for(;n<=a;){const s=n+Nk((a-n)/2),r=Io(e,s,t,l).offset;if(r===o)return s;r<o?n=s+1:a=s-1}return Rc(0,n-1)},T9=(e,t,n,a,o)=>{const l=o==="column"?e.totalColumn:e.totalRow;let s=1;for(;n<l&&Io(e,n,t,o).offset<a;)n+=s,s*=2;return Mk(e,t,Nk(n/2),Ok(n,l-1),a,o)},sb=(e,t,n,a)=>{const[o,l]=[t[a],t[Np[a]]];return(l>0?o[l].offset:0)>=n?Mk(e,t,0,l,n,a):T9(e,t,Rc(0,l),n,a)},Ik=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let o=0;if(n>=e&&(n=e-1),n>=0){const s=a[n];o=s.offset+s.size}const l=(e-n-1)*t;return o+l},Pk=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let o=0;if(a>e&&(a=e-1),a>=0){const s=t[a];o=s.offset+s.size}const l=(e-a-1)*n;return o+l},$9={column:Pk,row:Ik},rb=(e,t,n,a,o,l,s)=>{const[r,u]=[l==="row"?e.height:e.width,$9[l]],c=Io(e,t,o,l),d=Rc(0,Ok(u(e,o)-r,c.offset)),f=Rc(0,c.offset-r+s+c.size);switch(n===xd&&(a>=f-r&&a<=d+r?n=xa:n=ro),n){case Ei:return d;case xi:return f;case ro:return Math.round(f+(d-f)/2);case xa:default:return a>=f&&a<=d?a:f>d||a<f?f:d}},O9=$k({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const a=Io(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=Io(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,o,l)=>rb(e,t,n,a,o,"column",l),getRowOffset:(e,t,n,a,o,l)=>rb(e,t,n,a,o,"row",l),getColumnStartIndexForOffset:(e,t,n)=>sb(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const o=Io(e,t,a,"column"),l=n+e.width;let s=o.offset+o.size,r=t;for(;r<e.totalColumn-1&&s<l;)r++,s+=Io(e,t,a,"column").size;return r},getEstimatedTotalHeight:Ik,getEstimatedTotalWidth:Pk,getRowStartIndexForOffset:(e,t,n)=>sb(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:o,height:l}=e,s=Io(e,t,a,"row"),r=n+l;let u=s.size+s.offset,c=t;for(;c<o-1&&u<r;)c++,u+=Io(e,c,a,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:l,rowIndex:s},r)=>{var u,c;r=kt(r)?!0:r,Ke(l)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,l-1)),Ke(s)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,s-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),r&&((c=e.proxy)==null||c.$forceUpdate())},a=(l,s)=>{n({columnIndex:l},s)},o=(l,s)=>{n({rowIndex:l},s)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:o,resetAfter:n})},initCache:({estimatedColumnWidth:e=Sp,estimatedRowHeight:t=Sp})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{ze(e)||Xt(lb,`
|
|||
|
|
"columnWidth" must be passed as function,
|
|||
|
|
instead ${typeof e} was given.
|
|||
|
|
`),ze(t)||Xt(lb,`
|
|||
|
|
"rowHeight" must be passed as function,
|
|||
|
|
instead ${typeof t} was given.
|
|||
|
|
`)}}),Mh=Symbol("ElSelectV2Injection"),N9=Se({allowCreate:Boolean,autocomplete:{type:G(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Bt,default:xo},effect:{type:G(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:G(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:G(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:G([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:G(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:G(Array),required:!0},placeholder:{type:String},teleported:Lt.teleported,persistent:{type:Boolean,default:!0},popperClass:Lt.popperClass,popperStyle:Lt.popperStyle,popperOptions:{type:G(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:wn,props:{type:G(Object),default:()=>Cc},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:G(String),values:So,default:"bottom-start"},fallbackPlacements:{type:G(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Go.type,default:"info"},tagEffect:{...Go.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Lt.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Dt(e)||Ke(e)}},suffixIcon:{type:Bt,default:Eo},...gs,...Zn(["ariaLabel"])}),M9=Se({data:Array,disabled:Boolean,hovering:Boolean,item:{type:G(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),I9={[tt]:e=>!0,[ht]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},P9={hover:e=>Ke(e),select:(e,t)=>!0};var R9=le({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:ve("select")}}});function A9(e,t,n,a,o,l){return x(),F("div",{class:N(e.ns.be("group","title")),style:We({...e.style,lineHeight:`${e.height}px`})},ke(e.item.label),7)}var _9=Cn(R9,[["render",A9]]);function L9(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}var D9=le({props:M9,emits:P9,setup(e,{emit:t}){const n=Le(Mh),a=ve("select"),{hoverItem:o,selectOptionClick:l}=L9(e,{emit:t}),{getLabel:s}=au(n.props);return{ns:a,contentId:n.contentId,hoverItem:o,selectOptionClick:l,getLabel:s}}});const B9=["id","aria-selected","aria-disabled"];function V9(e,t,n,a,o,l){return x(),F("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:We(e.style),class:N([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onClick:t[1]||(t[1]=Ze((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[ne(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[j("span",null,ke(e.getLabel(e.item)),1)])],46,B9)}var F9=Cn(D9,[["render",V9]]);const z9={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var H9=le({name:"ElSelectDropdown",props:z9,setup(e,{slots:t,expose:n}){const a=Le(Mh),o=ve("select"),{getLabel:l,getValue:s,getDisabled:r}=au(a.props),u=_([]),c=_(),d=S(()=>e.data.length);ie(()=>d.value,()=>{var T,A;(A=(T=a.tooltipRef.value)==null?void 0:T.updatePopper)==null||A.call(T)});const f=S(()=>kt(a.props.estimatedOptionHeight)),h=S(()=>f.value?{itemSize:a.props.itemHeight}:{estimatedSize:a.props.estimatedOptionHeight,item
|
|||
|
|
`||c==="\r"){s=u;continue}if(l.includes(c)){const d=s===-1?a:s;r={pattern:o.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:s,selectionEnd:a};break}}return r},Dq=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?a:n,l=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const r=s.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";r.whiteSpace=c?"nowrap":"pre-wrap",c||(r.wordWrap="break-word"),r.position="absolute",t.debug||(r.visibility="hidden"),l.forEach(h=>{if(c&&h==="lineHeight")if(u.boxSizing==="border-box"){const g=Number.parseInt(u.height),p=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),v=p+Number.parseInt(u.lineHeight);g>v?r.lineHeight=`${g-p}px`:g===v?r.lineHeight=u.lineHeight:r.lineHeight="0"}else r.lineHeight=u.height;else r[h]=u[h]}),id()?e.scrollHeight>Number.parseInt(u.height)&&(r.overflowY="scroll"):r.overflow="hidden",s.textContent=e.value.slice(0,Math.max(0,o)),c&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,o))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,s.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(s),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},Bq=Se({...tu,options:{type:G(Array),default:()=>[]},prefix:{type:G([String,Array]),default:"@",validator:e=>De(e)?e.length===1:e.every(t=>De(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:G([Boolean,Function]),default:()=>_q,validator:e=>e===!1?!0:ze(e)},placement:{type:G(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:G(Function)},modelValue:String,loading:Boolean,popperClass:Lt.popperClass,popperStyle:Lt.popperStyle,popperOptions:{type:G(Object),default:()=>({})},props:{type:G(Object),default:()=>N2}}),Vq={[tt]:e=>De(e),"whole-remove":(e,t)=>De(e)&&De(t),input:e=>De(e),search:(e,t)=>De(e)&&De(t),select:(e,t)=>nt(e)&&De(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},N2={value:"value",label:"label",disabled:"disabled"},Fq=Se({options:{type:G(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),zq={select:e=>De(e.value)},Hq=["id","aria-disabled","aria-selected","onMousemove","onClick"];var Kq=le({name:"ElMentionDropdown",__name:"mention-dropdown",props:Fq,emits:zq,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("mention"),{t:s}=St(),r=_(-1),u=_(),c=_(),d=_(),f=(w,k)=>[l.be("dropdown","item"),l.is("hovering",r.value===k),l.is("disabled",w.disabled||a.disabled)],h=w=>{w.disabled||a.disabled||o("select",w)},g=w=>{r.value=w},p=S(()=>a.disabled||a.options.every(w=>w.disabled)),v=S(()=>a.options[r.value]),m=()=>{!v.value||v.value.disabled||a.disabled||o("select",v.value)},y=w=>{const{options:k}=a;if(k.length===0||p.value)return;w==="next"?(r.value++,r.value===k.length&&(r.value=0)):w==="prev"&&(r.value--,r.value<0&&(r.value=k.length-1));const E=k[r.value];if(E.disabled){y(w);return}Ae(()=>b(E))},b=w=>{var O,M,T,A;const{options:k}=a
|