102 lines
1.2 MiB
JavaScript
102 lines
1.2 MiB
JavaScript
|
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Bind-qLr7-ir8.js","assets/Bind-qSFyrdvX.css","assets/Workspace-jh7vDiTz.js","assets/AiAssistantPanel-QaiboL_R.js","assets/AiAssistantPanel-BNp9eqDp.css","assets/Workspace-BLRNfwwu.css","assets/AgentPreviewView-DyDNQSat.js","assets/AgentPreviewView-B79RJoCv.css","assets/MfaBind-PZgZdcsO.js","assets/MfaBind-DAafe6c7.css","assets/SessionWorkbench-BDsT9W84.js","assets/SessionWorkbench-CkYHpVNH.css","assets/ApprovalQueue-Dxs1Sh3Q.js","assets/ApprovalQueue-BKzG2UdI.css","assets/Settings-BxlaAHQ2.js","assets/Settings-CefBf3Qq.css","assets/TriageDashboard-yiLAKgDk.js","assets/TriageDashboard-BCeiERk4.css"])))=>i.map(i=>d[i]);
|
|||
|
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();/**
|
|||
|
|
* @vue/shared v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function rh(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const _n={},Es=[],mt=()=>{},Q6=()=>!1,df=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ff=e=>e.startsWith("onUpdate:"),qn=Object.assign,sh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},K7=Object.prototype.hasOwnProperty,Ht=(e,t)=>K7.call(e,t),Se=Array.isArray,Ts=e=>ju(e)==="[object Map]",pf=e=>ju(e)==="[object Set]",rr=e=>ju(e)==="[object Date]",Ue=e=>typeof e=="function",ze=e=>typeof e=="string",Ua=e=>typeof e=="symbol",ct=e=>e!==null&&typeof e=="object",sr=e=>(ct(e)||Ue(e))&&Ue(e.then)&&Ue(e.catch),ey=Object.prototype.toString,ju=e=>ey.call(e),W7=e=>ju(e).slice(8,-1),du=e=>ju(e)==="[object Object]",hf=e=>ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yi=rh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),vf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},j7=/-\w/g,ta=vf(e=>e.replace(j7,t=>t.slice(1).toUpperCase())),q7=/\B([A-Z])/g,Rl=vf(e=>e.replace(q7,"-$1").toLowerCase()),qu=vf(e=>e.charAt(0).toUpperCase()+e.slice(1)),$r=vf(e=>e?`on${qu(e)}`:""),Ho=(e,t)=>!Object.is(e,t),Zc=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ty=(e,t,n,a=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},ih=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U7=e=>{const t=ze(e)?Number(e):NaN;return isNaN(t)?e:t};let W1;const mf=()=>W1||(W1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ye(e){if(Se(e)){const t={};for(let n=0;n<e.length;n++){const a=e[n],o=ze(a)?J7(a):Ye(a);if(o)for(const l in o)t[l]=o[l]}return t}else if(ze(e)||ct(e))return e}const Y7=/;(?![^(]*\))/g,G7=/:([^]+)/,X7=/\/\*[^]*?\*\//g;function J7(e){const t={};return e.replace(X7,"").split(Y7).forEach(n=>{if(n){const a=n.split(G7);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function P(e){let t="";if(ze(e))t=e;else if(Se(e))for(let n=0;n<e.length;n++){const a=P(e[n]);a&&(t+=a+" ")}else if(ct(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function yl(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ze(t)&&(e.class=P(t)),n&&(e.style=Ye(n)),e}const Z7="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Q7=rh(Z7);function ny(e){return!!e||e===""}function eE(e,t){if(e.length!==t.length)return!1;let n=!0;for(let a=0;n&&a<e.length;a++)n=Hr(e[a],t[a]);return n}function Hr(e,t){if(e===t)return!0;let n=rr(e),a=rr(t);if(n||a)return n&&a?e.getTime()===t.getTime():!1;if(n=Ua(e),a=Ua(t),n||a)return e===t;if(n=Se(e),a=Se(t),n||a)return n&&a?eE(e,t):!1;if(n=ct(e),a=ct(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 r in e){const s=e.hasOwnProperty(r),u=t.hasOwnProperty(r);if(s&&!u||!s&&u||!Hr(e[r],t[r]))return!1}}return String(e)===String(t)}function ay(e,t){return e.findIndex(n=>Hr(n,t))}const oy=e=>!!(e&&e.__v_isRef===!0),ke=e=>ze(e)?e:e==null?"":Se(e)||ct(e)&&(e.toString===ey||!Ue(e.toString))?oy(e)?ke(e.value):JSON.stringify(e,ly,2):String(e),ly=(e,t)=>oy(t)?ly(e,t.value):Ts(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,o],l)=>(n[x0(a,l)+" =>"]=o,n),{})}:pf(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>x0(n))}:Ua(t)?x0(t):ct(t)&&!Se(t)&&!du(t)?String(t):t,x0=(e,t="")=>{var n;return Ua(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|||
|
|
* @vue/reactivity v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let Gn;class ry{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Gn&&(Gn.active?(this.parent=Gn,this.index=(Gn.scopes||(Gn.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!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=Gn;try{return Gn=this,t()}finally{Gn=n}}}on(){++this._on===1&&(this.prevScope=Gn,Gn=this)}off(){if(this._on>0&&--this._on===0){if(Gn===this)Gn=this.prevScope;else{let t=Gn;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.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 uh(e){return new ry(e)}function gf(){return Gn}function ch(e,t=!1){Gn&&Gn.cleanups.push(e)}let kn;const k0=new WeakSet;class sy{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,Gn&&(Gn.active?Gn.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,k0.has(this)&&(k0.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||uy(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,j1(this),cy(this);const t=kn,n=yo;kn=this,yo=!0;try{return this.fn()}finally{dy(this),kn=t,yo=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ph(t);this.deps=this.depsTail=void 0,j1(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?k0.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Sp(this)&&this.run()}get dirty(){return Sp(this)}}let iy=0,Gi,Xi;function uy(e,t=!1){if(e.flags|=8,t){e.next=Xi,Xi=e;return}e.next=Gi,Gi=e}function dh(){iy++}function fh(){if(--iy>0)return;if(Xi){let t=Xi;for(Xi=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Gi;){let t=Gi;for(Gi=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 cy(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function dy(e){let t,n=e.depsTail,a=n;for(;a;){const o=a.prevDep;a.version===-1?(a===n&&(n=o),ph(a),tE(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=o}e.deps=t,e.depsTail=n}function Sp(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===fu)||(e.globalVersion=fu,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Sp(e))))return;e.flags|=2;const t=e.dep,n=kn,a=yo;kn=e,yo=!0;try{cy(e);const o=e.fn(e._value);(t.version===0||Ho(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{kn=n,yo=a,dy(e),e.flags&=-3}}function ph(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)ph(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function tE(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let yo=!0;const py=[];func
|
|||
|
|
* @vue/runtime-core v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function Uu(e,t,n,a){try{return a?e(...a):e()}catch(o){Sf(o,t,n)}}function ro(e,t,n,a){if(Ue(e)){const o=Uu(e,t,n,a);return o&&sr(o)&&o.catch(l=>{Sf(l,t,n)}),o}if(Se(e)){const o=[];for(let l=0;l<e.length;l++)o.push(ro(e[l],t,n,a));return o}}function Sf(e,t,n,a=!0){const o=t?t.vnode:null,{errorHandler:l,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||_n;if(t){let s=t.parent;const u=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const d=s.ec;if(d){for(let f=0;f<d.length;f++)if(d[f](e,u,c)===!1)return}s=s.parent}if(l){Yo(),Uu(l,null,10,[e,u,c]),Go();return}}TE(e,n,o,a,r)}function TE(e,t,n,a=!0,o=!1){if(o)throw e;console.error(e)}const Ca=[];let Bo=-1;const Ms=[];let Gl=null,_s=0;const Ey=Promise.resolve();let xd=null;function Le(e){const t=xd||Ey;return e?t.then(this?e.bind(this):e):t}function ME(e){let t=Bo+1,n=Ca.length;for(;t<n;){const a=t+n>>>1,o=Ca[a],l=hu(o);l<e||l===e&&o.flags&2?t=a+1:n=a}return t}function vh(e){if(!(e.flags&1)){const t=hu(e),n=Ca[Ca.length-1];!n||!(e.flags&2)&&t>=hu(n)?Ca.push(e):Ca.splice(ME(t),0,e),e.flags|=1,Ty()}}function Ty(){xd||(xd=Ey.then(Oy))}function OE(e){Se(e)?Ms.push(...e):Gl&&e.id===-1?Gl.splice(_s+1,0,e):e.flags&1||(Ms.push(e),e.flags|=1),Ty()}function U1(e,t,n=Bo+1){for(;n<Ca.length;n++){const a=Ca[n];if(a&&a.flags&2){if(e&&a.id!==e.uid)continue;Ca.splice(n,1),n--,a.flags&4&&(a.flags&=-2),a(),a.flags&4||(a.flags&=-2)}}}function My(e){if(Ms.length){const t=[...new Set(Ms)].sort((n,a)=>hu(n)-hu(a));if(Ms.length=0,Gl){Gl.push(...t);return}for(Gl=t,_s=0;_s<Gl.length;_s++){const n=Gl[_s];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Gl=null,_s=0}}const hu=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Oy(e){try{for(Bo=0;Bo<Ca.length;Bo++){const t=Ca[Bo];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Uu(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Bo<Ca.length;Bo++){const t=Ca[Bo];t&&(t.flags&=-2)}Bo=-1,Ca.length=0,My(),xd=null,(Ca.length||Ms.length)&&Oy()}}let ra=null,Ay=null;function kd(e){const t=ra;return ra=e,Ay=e&&e.type.__scopeId||null,t}function ae(e,t=ra,n){if(!t||e._n)return e;const a=(...o)=>{a._d&&Md(-1);const l=kd(t);let r;try{r=e(...o)}finally{kd(l),a._d&&Md(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function yt(e,t){if(ra===null)return e;const n=Mf(ra),a=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[l,r,s,u=_n]=t[o];l&&(Ue(l)&&(l={mounted:l,updated:l}),l.deep&&ml(r),a.push({dir:l,instance:n,value:r,oldValue:void 0,arg:s,modifiers:u}))}return e}function vr(e,t,n,a){const o=e.dirs,l=t&&t.dirs;for(let r=0;r<o.length;r++){const s=o[r];l&&(s.oldValue=l[r].value);let u=s.dir[a];u&&(Yo(),ro(u,n,8,[e.el,s,e,t]),Go())}}function Et(e,t){if(pa){let n=pa.provides;const a=pa.parent&&pa.parent.provides;a===n&&(n=pa.provides=Object.create(a)),n[e]=t}}function Ve(e,t,n=!1){const a=wt();if(a||Pr){let o=Pr?Pr._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&&Ue(t)?t.call(a&&a.proxy):t}}function mh(){return!!(wt()||Pr)}const AE=Symbol.for("v-scx"),RE=()=>Ve(AE);function ga(e,t){return gh(e,null,t)}function he(e,t,n){return gh(e,t,n)}function gh(e,t,n=_n){const{immediate:a,deep:o,flush:l,once:r}=n,s=qn({},n),u=t&&a||!t&&l!=="post";let c;if(gu){if(l==="sync"){const m=RE();c=m.__watcherHandles||(m.__watcherHandles=[])}else if(!u){const m=()=>{};return m.stop=mt,m.resume=mt,m.pause=mt,m}}const d=pa;s.call=(m,h,g)=>ro(m,d,h,g);let f=!1;l==="post"?s.scheduler=m=>{wa(m,d&&d.suspense)}:l!=="sync"&&(f=!0,s.scheduler=(m,h)=>{h?m():vh(m)}),s.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,d&&(m.id=d.uid,m.i=d))};const p=EE(e,t,s);return gu&&(c?c.push(p):u&&p()),p}function $E(e,t,n){const a=this.proxy,o=ze(e)?e.includes(".")?Ry(a,e):()=>a[e]:e.bind(a,a);let l;Ue(t)?l=t:(l=t.handler,n=t);const r=Gu(this),s=gh(o,l.bind(a),n);return r(),s}function Ry(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 Kl=new WeakMap,$y=Symbol("_vte"),Ny=e=>e.__isTeleport,Cr=e=>e&&(e.disabled||e.disabled
|
|||
|
|
* @vue/runtime-dom v3.5.39
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let Np;const cg=typeof window<"u"&&window.trustedTypes;if(cg)try{Np=cg.createPolicy("vue",{createHTML:e=>e})}catch{}const fb=Np?e=>Np.createHTML(e):e=>e,OT="http://www.w3.org/2000/svg",AT="http://www.w3.org/1998/Math/MathML",dl=typeof document<"u"?document:null,dg=dl&&dl.createElement("template"),RT={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"?dl.createElementNS(OT,e):t==="mathml"?dl.createElementNS(AT,e):n?dl.createElement(e,{is:n}):dl.createElement(e);return e==="select"&&a&&a.multiple!=null&&o.setAttribute("multiple",a.multiple),o},createText:e=>dl.createTextNode(e),createComment:e=>dl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>dl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,o,l){const r=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===l||!(o=o.nextSibling)););else{dg.innerHTML=fb(a==="svg"?`<svg>${e}</svg>`:a==="mathml"?`<math>${e}</math>`:e);const s=dg.content;if(a==="svg"||a==="mathml"){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Hl="transition",Mi="animation",Vs=Symbol("_vtc"),pb={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},hb=qn({},Iy,pb),$T=e=>(e.displayName="Transition",e.props=hb,e),na=$T((e,{slots:t})=>Ze(VE,vb(e),t)),gr=(e,t=[])=>{Se(e)?e.forEach(n=>n(...t)):e&&e(...t)},fg=e=>e?Se(e)?e.some(t=>t.length>1):e.length>1:!1;function vb(e){const t={};for(const R in e)R in pb||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:a,duration:o,enterFromClass:l=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=l,appearActiveClass:c=r,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=NT(o),g=h&&h[0],v=h&&h[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:w,onLeave:_,onLeaveCancelled:S,onBeforeAppear:k=y,onAppear:E=b,onAppearCancelled:T=w}=t,O=(R,B,q,j)=>{R._enterCancelled=j,Wl(R,B?d:s),Wl(R,B?c:r),q&&q()},$=(R,B)=>{R._isLeaving=!1,Wl(R,f),Wl(R,m),Wl(R,p),B&&B()},N=R=>(B,q)=>{const j=R?E:b,D=()=>O(B,R,q);gr(j,[B,D]),pg(()=>{Wl(B,R?u:l),Vo(B,R?d:s),fg(j)||hg(B,a,g,D)})};return qn(t,{onBeforeEnter(R){gr(y,[R]),Vo(R,l),Vo(R,r)},onBeforeAppear(R){gr(k,[R]),Vo(R,u),Vo(R,c)},onEnter:N(!1),onAppear:N(!0),onLeave(R,B){R._isLeaving=!0;const q=()=>$(R,B);Vo(R,f),R._enterCancelled?(Vo(R,p),Pp(R)):(Pp(R),Vo(R,p)),pg(()=>{R._isLeaving&&(Wl(R,f),Vo(R,m),fg(_)||hg(R,a,v,q))}),gr(_,[R,q])},onEnterCancelled(R){O(R,!1,void 0,!0),gr(w,[R])},onAppearCancelled(R){O(R,!0,void 0,!0),gr(T,[R])},onLeaveCancelled(R){$(R),gr(S,[R])}})}function NT(e){if(e==null)return null;if(ct(e))return[R0(e.enter),R0(e.leave)];{const t=R0(e);return[t,t]}}function R0(e){return U7(e)}function Vo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Vs]||(e[Vs]=new Set)).add(t)}function Wl(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[Vs];n&&(n.delete(t),n.size||(e[Vs]=void 0))}function pg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let PT=0;function hg(e,t,n,a){const o=e._endId=++PT,l=()=>{o===e._endId&&a()};if(n!=null)return setTimeout(l,n);const{type:r,timeout:s,propCount:u}=mb(e,t);if(!r)return a();const c=r+"end";let d=0;const f=()=>{e.removeEventListener(c,p),l()},p=m=>{m.target===e&&++d>=u&&f()};setTimeout(()=>{d<u&&f()},s+1),e.addEventListener(c,p)}function mb(e,t){const n=window.getComputedStyle(e),a=h=>(n[h]||"").split(", "),o=a(`${Hl}Delay`),l=a(`${Hl}Duration`),r=vg(o,l),s=a(`${Mi}Delay`),u=a(`${Mi}Duratio
|
|||
|
|
* vue-router v4.6.4
|
|||
|
|
* (c) 2025 Eduardo San Martin Morote
|
|||
|
|
* @license MIT
|
|||
|
|
*/const Cs=typeof document<"u";function Ob(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function gM(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ob(e.default)}const fn=Object.assign;function P0(e,t){const n={};for(const a in t){const o=t[a];n[a]=xo(o)?o.map(e):e(o)}return n}const tu=()=>{},xo=Array.isArray;function Ag(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const Ab=/#/g,yM=/&/g,bM=/\//g,wM=/=/g,_M=/\?/g,Rb=/\+/g,CM=/%5B/g,SM=/%5D/g,$b=/%5E/g,xM=/%60/g,Nb=/%7B/g,kM=/%7C/g,Pb=/%7D/g,EM=/%20/g;function Th(e){return e==null?"":encodeURI(""+e).replace(kM,"|").replace(CM,"[").replace(SM,"]")}function TM(e){return Th(e).replace(Nb,"{").replace(Pb,"}").replace($b,"^")}function Ip(e){return Th(e).replace(Rb,"%2B").replace(EM,"+").replace(Ab,"%23").replace(yM,"%26").replace(xM,"`").replace(Nb,"{").replace(Pb,"}").replace($b,"^")}function MM(e){return Ip(e).replace(wM,"%3D")}function OM(e){return Th(e).replace(Ab,"%23").replace(_M,"%3F")}function AM(e){return OM(e).replace(bM,"%2F")}function yu(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const RM=/\/$/,$M=e=>e.replace(RM,"");function I0(e,t,n="/"){let a,o={},l="",r="";const s=t.indexOf("#");let u=t.indexOf("?");return u=s>=0&&u>s?-1:u,u>=0&&(a=t.slice(0,u),l=t.slice(u,s>0?s:t.length),o=e(l.slice(1))),s>=0&&(a=a||t.slice(0,s),r=t.slice(s,t.length)),a=LM(a??t,n),{fullPath:a+l+r,path:a,query:o,hash:yu(r)}}function NM(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Rg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function PM(e,t,n){const a=t.matched.length-1,o=n.matched.length-1;return a>-1&&a===o&&zs(t.matched[a],n.matched[o])&&Ib(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function zs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ib(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!IM(e[n],t[n]))return!1;return!0}function IM(e,t){return xo(e)?$g(e,t):xo(t)?$g(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function $g(e,t){return xo(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function LM(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),o=a[a.length-1];(o===".."||o===".")&&a.push("");let l=n.length-1,r,s;for(r=0;r<a.length;r++)if(s=a[r],s!==".")if(s==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+a.slice(r).join("/")}const Fl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Lp=function(e){return e.pop="pop",e.push="push",e}({}),L0=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function VM(e){if(!e)if(Cs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),$M(e)}const BM=/^[^#]+#/;function zM(e,t){return e.replace(BM,"#")+t}function DM(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const Of=()=>({left:window.scrollX,top:window.scrollY});function HM(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=DM(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ng(e,t){return(history.state?history.state.position-t:-1)+e}const Vp=new Map;function FM(e,t){Vp.set(e,t)}function KM(e){const t=Vp.get(e);return Vp.delete(e),t}function WM(e){return typeof e=="string"||e&&typeof e=="object"}function Lb(e){return typeof e=="string"||typeof e=="symbol"}let Bn=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="
|
|||
|
|
* vue-router v4.6.4
|
|||
|
|
* (c) 2025 Eduardo San Martin Morote
|
|||
|
|
* @license MIT
|
|||
|
|
*/let JM=()=>location.protocol+"//"+location.host;function Bb(e,t){const{pathname:n,search:a,hash:o}=t,l=e.indexOf("#");if(l>-1){let r=o.includes(e.slice(l))?e.slice(l).length:1,s=o.slice(r);return s[0]!=="/"&&(s="/"+s),Rg(s,"")}return Rg(n,e)+a+o}function ZM(e,t,n,a){let o=[],l=[],r=null;const s=({state:p})=>{const m=Bb(e,location),h=n.value,g=t.value;let v=0;if(p){if(n.value=m,t.value=p,r&&r===h){r=null;return}v=g?p.position-g.position:0}else a(m);o.forEach(y=>{y(n.value,h,{delta:v,type:Lp.pop,direction:v?v>0?L0.forward:L0.back:L0.unknown})})};function u(){r=n.value}function c(p){o.push(p);const m=()=>{const h=o.indexOf(p);h>-1&&o.splice(h,1)};return l.push(m),m}function d(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(fn({},p.state,{scroll:Of()}),"")}}function f(){for(const p of l)p();l=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:c,destroy:f}}function Lg(e,t,n,a=!1,o=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:o?Of():null}}function QM(e){const{history:t,location:n}=window,a={value:Bb(e,n)},o={value:t.state};o.value||l(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(u,c,d){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:JM()+e+u;try{t[d?"replaceState":"pushState"](c,"",p),o.value=c}catch(m){console.error(m),n[d?"replace":"assign"](p)}}function r(u,c){l(u,fn({},t.state,Lg(o.value.back,u,o.value.forward,!0),c,{position:o.value.position}),!0),a.value=u}function s(u,c){const d=fn({},o.value,t.state,{forward:u,scroll:Of()});l(d.current,d,!0),l(u,fn({},Lg(a.value,u,null),{position:d.position+1},c),!1),a.value=u}return{location:a,state:o,push:s,replace:r}}function eO(e){e=VM(e);const t=QM(e),n=ZM(e,t.state,t.location,t.replace);function a(l,r=!0){r||n.pauseListeners(),history.go(l)}const o=fn({location:"",base:e,go:a,createHref:zM.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let Tr=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Yn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Yn||{});const tO={type:Tr.Static,value:""},nO=/[a-zA-Z0-9_]/;function aO(e){if(!e)return[[]];if(e==="/")return[[tO]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=Yn.Static,a=n;const o=[];let l;function r(){l&&o.push(l),l=[]}let s=0,u,c="",d="";function f(){c&&(n===Yn.Static?l.push({type:Tr.Static,value:c}):n===Yn.Param||n===Yn.ParamRegExp||n===Yn.ParamRegExpEnd?(l.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),l.push({type:Tr.Param,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=u}for(;s<e.length;){if(u=e[s++],u==="\\"&&n!==Yn.ParamRegExp){a=n,n=Yn.EscapeNext;continue}switch(n){case Yn.Static:u==="/"?(c&&f(),r()):u===":"?(f(),n=Yn.Param):p();break;case Yn.EscapeNext:p(),n=a;break;case Yn.Param:u==="("?n=Yn.ParamRegExp:nO.test(u)?p():(f(),n=Yn.Static,u!=="*"&&u!=="?"&&u!=="+"&&s--);break;case Yn.ParamRegExp:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=Yn.ParamRegExpEnd:d+=u;break;case Yn.ParamRegExpEnd:f(),n=Yn.Static,u!=="*"&&u!=="?"&&u!=="+"&&s--,d="";break;default:t("Unknown state");break}}return n===Yn.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),f(),r(),o}const Vg="[^/]+?",oO={sensitive:!1,strict:!1,start:!0,end:!0};var _a=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=
|
|||
|
|
For more detail, please visit: ${o}
|
|||
|
|
`)},{immediate:!0})},xI='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',V8=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,k4=e=>typeof Element>"u"?!1:e instanceof Element,kI=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,E4=e=>Array.from(e.querySelectorAll(xI)).filter(t=>qr(t)&&kI(t)),qr=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}},ad=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},B8=e=>!e.getAttribute("aria-owns"),z8=(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},lc=(e,t)=>{if(!e||!e.focus)return;let n=!1;k4(e)&&!qr(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),k4(e)&&n&&e.removeAttribute("tabindex")},$s=e=>{e&&(lc(e),!B8(e)&&e.click())},Ff=()=>Dt&&/firefox/i.test(window.navigator.userAgent),D8=()=>Dt&&/android/i.test(window.navigator.userAgent),Uh=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),W0=e=>qu(e),EI="utils/dom/style",H8=(e="")=>e.split(" ").filter(t=>!!t.trim()),Wo=(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(...H8(t))},va=(e,t)=>{!e||!t.trim()||e.classList.remove(...H8(t))},gl=(e,t)=>{var a;if(!Dt||!e||!t||V8(e))return"";let n=ta(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]}},F8=(e,t,n)=>{if(!(!e||!t))if(ct(t))M8(t).forEach(([a,o])=>F8(e,a,o));else{const a=ta(t);e.style[a]=n}};function yn(e,t="px"){if(!e&&e!==0)return"";if(je(e)||UP(e))return`${e}${t}`;if(ze(e))return e;Xt(EI,"binding value must be a string or number")}const Yh=(e,t,n,a)=>{const o={offsetX:0,offsetY:0},l=L(!1),r=(p,m)=>{if(e.value){const{offsetX:h,offsetY:g}=o,v=e.value.getBoundingClientRect(),y=Math.max(v.left,0),b=Math.max(v.top,0),w=v.width,_=v.height,S=document.documentElement.clientWidth,k=document.documentElement.clientHeight,E=-y+h,T=-b+g,O=S-y-w+h,$=k-b-(_<k?_:0)+g;a!=null&&a.value||(p=$a(p,E,O),m=$a(m,T,$)),o.offsetX=p,o.offsetY=m,e.value.style.transform=`translate(${yn(p)}, ${yn(m)})`}},s=p=>{const m=p.clientX,h=p.clientY,{offsetX:g,offsetY:v}=o,y=w=>{l.value||(l.value=!0),r(g+w.clientX-m,v+w.clientY-h)},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",s),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",f))},d=()=>{o.offsetX=0,o.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:p,offsetY:m}=o;r(p,m)};return Ct(()=>{ga(()=>{n.value?u():c()})}),qt(()=>{c()}),{isDragging:l,resetPosition:d,updatePosition:f}};var TI={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",pre
|
|||
|
|
usage: app.provide(ID_INJECTION_KEY, {
|
|||
|
|
prefix: number,
|
|||
|
|
current: number,
|
|||
|
|
})`);const n=Kf();return $8(()=>i(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Ss=[];const z4=e=>{tn(e)===xe.esc&&Ss.forEach(t=>t(e))},cw=e=>{Ct(()=>{Ss.length===0&&document.addEventListener("keydown",z4),Dt&&Ss.push(e)}),qt(()=>{Ss=Ss.filter(t=>t!==e),Ss.length===0&&Dt&&document.removeEventListener("keydown",z4)})},iv=()=>{const e=Kf(),t=qf(),n=x(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:x(()=>`#${n.value}`)}},VL=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},dw=()=>{const{id:e,selector:t}=iv();return Ef(()=>{Dt&&(document.body.querySelector(t.value)||VL(e.value))}),{id:e,selector:t}},fw=Te({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),pw=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:o})=>{const{registerTimeout:l}=Gp(),{registerTimeout:r,cancelTimeout:s}=Gp();return{onOpen:(d,f=i(e))=>{l(()=>{a(d);const p=i(n);je(p)&&p>0&&r(()=>{o(d)},p)},f)},onClose:(d,f=i(t))=>{s(),l(()=>{o(d)},f)}}},uv=Symbol("elForwardRef"),hw=e=>{Et(uv,{setForwardRef:n=>{e.value=n}})},vw=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),D4={current:0},H4=L(0),cv=2e3,Jp=Symbol("elZIndexContextKey"),dv=Symbol("zIndexContextKey"),fi=e=>{const t=wt()?Ve(Jp,D4):D4,n=e||(wt()?Ve(dv,void 0):void 0),a=x(()=>{const r=i(n);return je(r)?r:cv}),o=x(()=>a.value+H4.value),l=()=>(t.current++,H4.value=t.current,o.value);return!Dt&&!Ve(Jp)&&Xt("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}},Ys=Math.min,Lr=Math.max,Bd=Math.round,Pc=Math.floor,Cl=e=>({x:e,y:e}),BL={left:"right",right:"left",bottom:"top",top:"bottom"};function mw(e,t,n){return Lr(e,Ys(t,n))}function uc(e,t){return typeof e=="function"?e(t):e}function Gs(e){return e.split("-")[0]}function cc(e){return e.split("-")[1]}function gw(e){return e==="x"?"y":"x"}function fv(e){return e==="y"?"height":"width"}function er(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function pv(e){return gw(er(e))}function zL(e,t,n){n===void 0&&(n=!1);const a=cc(e),o=pv(e),l=fv(o);let r=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=zd(r)),[r,zd(r)]}function DL(e){const t=zd(e);return[Zp(e),t,Zp(t)]}function Zp(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const F4=["left","right"],K4=["right","left"],HL=["top","bottom"],FL=["bottom","top"];function KL(e,t,n){switch(e){case"top":case"bottom":return n?t?K4:F4:t?F4:K4;case"left":case"right":return t?HL:FL;default:return[]}}function WL(e,t,n,a){const o=cc(e);let l=KL(Gs(e),n==="start",a);return o&&(l=l.map(r=>r+"-"+o),t&&(l=l.concat(l.map(Zp)))),l}function zd(e){const t=Gs(e);return BL[t]+e.slice(t.length)}function jL(e){var t,n,a,o;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(a=e.bottom)!=null?a:0,left:(o=e.left)!=null?o:0}}function yw(e){return typeof e!="number"?jL(e):{top:e,right:e,bottom:e,left:e}}function Dd(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 W4(e,t,n){let{reference:a,floating:o}=e;const l=er(t),r=pv(t),s=fv(r),u=Gs(t),c=l==="y",d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,p=a[s]/2-o[s]/2;let m;switch(u){case"top":m={x:d,y:a.y-o.height};break;case"bottom":m={x:d,y:a.y+a.height};break;case"right":m={x:a.x+a.width,y:f};break;case"left":m={x:a.x-o.width,y:f};break;default:m={x:a.x,y:a.y}}const h=cc(t);return h&&(m[r]+=p*(h==="end"?1:-1)*(n&&c?-1:1)),m}async function bw(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:l,rects:r,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=uc(t,e),h=yw(m),v=s[p?f==="floating"?"reference":"floating":f],y=Dd(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(v)))==null||n?v:v.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:a,y:o,width:r.floating.width,height:r.floating.height}:r.reference,w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),_=await(l.isElement==null?void 0:l.isElement(w))&&await(l.getScale==null?void 0:l.getScale(w))||{x:1,y:1},S=Dd(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:w,strategy:u}):b);return{top:(y.top-S.top+h.top)/_.y,bottom:(S.bottom-y.bottom+h.bottom)/_.y,left:(y.left-S.left+h.left)/_.x,right:(S.right-y.right+h.right)/_.x}}const qL=50,UL=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:l=[],platform:r}=n,s=r.detectOverflow?r:{...r,detectOverflow:bw},u=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=W4(c,a,u),p=a,m=0;const h={};for(let g=0;g<l.length;g++){const v=l[g];if(!v)continue;const{name:y,fn:b}=v,{x:w,y:_,data:S,reset:k}=await b({x:d,y:f,initialPlacement:a,placement:p,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});d=w??d,f=_??f,h[y]={...h[y],...S},k&&m<qL&&(m++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(c=k.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:d,y:f}=W4(c,p,u)),g=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:h}},YL=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:l,platform:
|
|||
|
|
(?:
|
|||
|
|
(?:`+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+"$)"),r=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),u=function(_){return _&&_.exact?l:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+o+t(_)+")","g")};u.v4=function(w){return w&&w.exact?r:new RegExp(""+t(w)+n+t(w),"g")},u.v6=function(w){return w&&w.exact?s:new RegExp(""+t(w)+o+t(w),"g")};var c="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=u.v4().source,p=u.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+c+"|www\\.)"+d+"(?:localhost|"+f+"|"+p+"|"+m+h+g+")"+v+y;return Lc=new RegExp("(?:^"+b+"$)","i"),Lc},n3={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},Ki={integer:function(t){return Ki.number(t)&&parseInt(t,10)===t},float:function(t){return Ki.number(t)&&!Ki.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"&&!Ki.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(n3.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(iY())},hex:function(t){return typeof t=="string"&&!!t.match(n3.hex)}},uY=function(t,n,a,o,l){if(t.required&&n===void 0){y_(t,n,a,o,l);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;r.indexOf(s)>-1?Ki[s](n)||o.push(ja(l.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(ja(l.messages.types[s],t.fullField,t.type))},cY=function(t,n,a,o,l){var r=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,p=typeof n=="number",m=typeof n=="string",h=Array.isArray(n);if(p?f="number":m?f="string":h&&(f="array"),!f)return!1;h&&(d=n.length),m&&(d=n.replace(c,"_").length),r?d!==t.len&&o.push(ja(l.messages[f].len,t.fullField,t.len)):s&&!u&&d<t.min?o.push(ja(l.messages[f].min,t.fullField,t.min)):u&&!s&&d>t.max?o.push(ja(l.messages[f].max,t.fullField,t.max)):s&&u&&(d<t.min||d>t.max)&&o.push(ja(l.messages[f].range,t.fullField,t.min,t.max))},ds="enum",dY=function(t,n,a,o,l){t[ds]=Array.isArray(t[ds])?t[ds]:[],t[ds].indexOf(n)===-1&&o.push(ja(l.messages[ds],t.fullField,t[ds].join(", ")))},fY=function(t,n,a,o,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(ja(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||o.push(ja(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},rn={required:y_,whitespace:sY,type:uY,range:cY,enum:dY,pattern:fY},pY=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Qn(n,"string")&&!t.required)return a();rn.required(t,n,o,r,l,"string"),Qn(n,"string")||(rn.type(t,n,o,r,l),rn.range(t,n,o,r,l),rn.pattern(t,n,o,r,l),t.whitespace===!0&&rn.whitespace(t,n,o,r,l))}a(r)},hY=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Qn(n)&&!t.required)return a();rn.required(t,n,o,r,l),n!==void 0&&rn.type(t,n,o,r,l)}a(r)},vY=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Qn(n)&&!t.required)return a();rn.required(t,n,o,r,l),n!==void 0&&(rn.type(t,n,o,r,l),rn.range(t,n,o,r,l))}a(r)},mY=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Qn(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 S2="_Mousewheel",T3=function(e,t){if(e&&e.addEventListener){w5(e);const n=function(a){const o=gX(a);t&&Reflect.apply(t,this,[a,o])};e[S2]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},w5=e=>{var t;(t=e._Mousewheel)!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[S2].wheelHandler),e[S2]=null)},x2={beforeMount(e,t){T3(e,t.value)},unmounted(e){w5(e)},updated(e,t){t.value!==t.oldValue&&T3(e,t.value)}},yX=Te({...u5,datetimeRole:String,parsedValue:{type:Q(Object)}}),_5=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(r,s,u,c)=>{const d={hour:e,minute:t,second:n};let f=r;return["hour","minute","second"].forEach(p=>{if(d[p]){let m;const h=d[p];switch(p){case"minute":m=h(f.hour(),s,c);break;case"second":m=h(f.hour(),f.minute(),s,c);break;default:m=h(s,c);break}if(m!=null&&m.length&&!m.includes(f[p]())){const g=u?0:m.length-1;f=f[p](m[g])}}}),f},o={};return{timePickerOptions:o,getAvailableTime:a,onSetOption:([r,s])=>{o[r]=s}}},ep=e=>{const t=(a,o)=>a||o,n=a=>a!==!0;return e.map(t).filter(n)},C5=(e,t,n)=>({getHoursList:(r,s)=>sd(24,e&&(()=>e==null?void 0:e(r,s))),getMinutesList:(r,s,u)=>sd(60,t&&(()=>t==null?void 0:t(r,s,u))),getSecondsList:(r,s,u,c)=>sd(60,n&&(()=>n==null?void 0:n(r,s,u,c)))}),S5=(e,t,n)=>{const{getHoursList:a,getMinutesList:o,getSecondsList:l}=C5(e,t,n);return{getAvailableHours:(c,d)=>ep(a(c,d)),getAvailableMinutes:(c,d,f)=>ep(o(c,d,f)),getAvailableSeconds:(c,d,f,p)=>ep(l(c,d,f,p))}},x5=(e,t)=>{const n=L(e.parsedValue);return he(()=>e.visible,a=>{const o=Rn(t.modelValue),l=Rn(t.valueOnClear);if(a&&o===l){n.value=l;return}a||(n.value=e.parsedValue)}),n},bX=Te({role:{type:String,required:!0},spinnerDate:{type:Q(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:Q(String),default:""},...Uv}),wX=["onClick"],_X=["onMouseenter"];var CX=H({__name:"basic-time-spinner",props:bX,emits:[St,"select-range","set-option"],setup(e,{emit:t}){const n=e,{isRange:a,format:o,saveOnBlur:l}=Ve($o).props,r=t,s=ye("time"),{getHoursList:u,getMinutesList:c,getSecondsList:d}=C5(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const p={hours:!1,minutes:!1,seconds:!1},m=L(),h={hours:L(),minutes:L(),seconds:L()},g=x(()=>n.showSeconds?u2:u2.slice(0,2)),v=x(()=>{const{spinnerDate:W}=n;return{hours:W.hour(),minutes:W.minute(),seconds:W.second()}}),y=x(()=>{const{hours:W,minutes:U}=i(v),{role:ee,spinnerDate:oe}=n,ne=a?void 0:oe;return{hours:u(ee,ne),minutes:c(W,ee,ne),seconds:d(W,U,ee,ne)}}),b=x(()=>{const{hours:W,minutes:U,seconds:ee}=i(v);return{hours:rd(W,23),minutes:rd(U,59),seconds:rd(ee,59)}}),w=Zo(W=>{f=!1,k(W)},200),_=W=>{if(!n.amPmMode)return"";const U=n.amPmMode==="A";let ee=W<12?" am":" pm";return U&&(ee=ee.toUpperCase()),ee},S=W=>{let U=[0,0];const ee=o||"HH:mm:ss",oe=ee.indexOf("HH"),ne=ee.indexOf("mm"),le=ee.indexOf("ss");switch(W){case"hours":oe!==-1&&(U=[oe,oe+2]);break;case"minutes":ne!==-1&&(U=[ne,ne+2]);break;case"seconds":le!==-1&&(U=[le,le+2]);break}const[X,fe]=U;r("select-range",X,fe),m.value=W},k=W=>{O(W,i(v)[W])},E=()=>{k("hours"),k("minutes"),k("seconds")},T=W=>W.querySelector(`.${s.namespace.value}-scrollbar__wrap`),O=(W,U)=>{if(n.arrowControl)return;const ee=i(h[W]);ee&&ee.$el&&(l||(p[W]=!0,Ba(()=>{p[W]=!1})),T(ee.$el).scrollTop=Math.max(0,U*$(W)))},$=W=>{var ee;const U=(ee=i(h[W]))==null?void 0:ee.$el.querySelector("li");return U&&Number.parseFloat(gl(U,"height"))||0},N=()=>{B(1)},R=()=>{B(-1)},B=W=>{m.value||S("hours");const U=m.value,ee=i(v)[U],oe=q(U,ee,W,m.value==="hours"?24:60);j(U,oe),O(U,oe),Le(()=>S(U))},q=(W,U,ee,oe)=>{let ne=(U+ee+oe)%oe;const le=i(y)[W];for(;le[ne]&&ne!==U;)ne=(ne+ee+oe)%oe;return ne},j=(W,U)=>{if(i(y)[W][U])return;const{hours:ee,minutes:oe,seconds:ne}=i(v);let le;switch(W){case"hours":le=n.spinnerDate.hour(U).minute(oe).second(ne);break;case"minutes":le=n.spinnerDate.hour(ee).minute(U).second(ne);break;case"seconds":le=n.spinnerDate.hour(ee).minute(oe).second(U);break}r(St,le)},D=(W,{value:U,disabled:ee})=>{ee||(j(W,U),S(W),O(W,U))},V=W=>{if(!l&&p[W])return;const U=i(h[W]);
|
|||
|
|
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(r==="smart"&&(s>=f-u&&s<=d+u?r=no:r=Ko),r){case Iu:return d;case"end":return f;case Ko:{const p=Math.round(f+(d-f)/2);return p<Math.ceil(u/2)?0:p>c+Math.floor(u/2)?c:p}case no:default:return s>=f&&s<=d?s:s<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,r)=>{const s=l*n,u=Vu(a)?o:e,c=Math.ceil((u+r-s)/n);return Math.max(0,Math.min(t-1,l+c-1))},initCache(){},clearCache:!0,validateProps(){}}),DJ="ElDynamicSizeList",xs=(e,t,n)=>{const{itemSize:a}=e,{items:o,lastVisitedIndex:l}=n;if(t>l){let r=0;if(l>=0){const s=o[l];r=s.offset+s.size}for(let s=l+1;s<=t;s++){const u=a(s);o[s]={offset:r,size:u},r+=u}n.lastVisitedIndex=t}return o[t]},HJ=(e,t,n)=>{const{items:a,lastVisitedIndex:o}=t;return(o>0?a[o].offset:0)>=n?Z5(e,t,0,o,n):FJ(e,t,Math.max(0,o),n)},Z5=(e,t,n,a,o)=>{for(;n<=a;){const l=n+Math.floor((a-n)/2),r=xs(e,l,t).offset;if(r===o)return l;r<o?n=l+1:r>o&&(a=l-1)}return Math.max(0,n-1)},FJ=(e,t,n,a)=>{const{total:o}=e;let l=1;for(;n<o&&xs(e,n,t).offset<a;)n+=l,l*=2;return Z5(e,t,Math.floor(n/2),Math.min(n,o-1),a)},L3=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:a})=>{let o=0;if(a>=e&&(a=e-1),a>=0){const r=t[a];o=r.offset+r.size}const l=(e-a-1)*n;return o+l},Q5=J5({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>xs(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:L3,getOffset:(e,t,n,a,o)=>{const{height:l,layout:r,width:s}=e,u=Vu(r)?s:l,c=xs(e,t,o),d=L3(e,o),f=Math.max(0,Math.min(d-u,c.offset)),p=Math.max(0,c.offset-u+c.size);switch(n==="smart"&&(a>=p-u&&a<=f+u?n=no:n=Ko),n){case Iu:return f;case"end":return p;case Ko:return Math.round(p+(f-p)/2);case no:default:return a>=p&&a<=f?a:a<p?p:f}},getStartIndexForOffset:(e,t,n)=>HJ(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:o,total:l,layout:r,width:s}=e,u=Vu(r)?s:o,c=xs(e,t,a),d=n+u;let f=c.offset+c.size,p=t;for(;p<l-1&&f<d;)p++,f+=xs(e,p,a).size;return p},initCache({estimatedItemSize:e=50},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(a,o=!0)=>{var l,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),(l=t.exposed)==null||l.getItemStyleCache(-1),o&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{typeof e!="function"&&pn(DJ,`
|
|||
|
|
itemSize is required as function, but the given value was ${typeof e}
|
|||
|
|
`)}}),KJ=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},o)=>{let l=null,r=0,s=0;const u=(d,f)=>{const p=d<0&&t.value||d>0&&e.value,m=f<0&&a.value||f>0&&n.value;return p||m};return{hasReachedEdge:u,onWheel:d=>{ko(l);let f=d.deltaX,p=d.deltaY;if(Math.abs(f)>Math.abs(p)?p=0:f=0,d.shiftKey&&p!==0&&(f=p,p=0),u(f,p)){d.deltaX!==0&&f===0&&d.preventDefault();return}r+=f,s+=p,d.preventDefault(),l=Ba(()=>{o(r,s),r=0,s=0})}}},WJ=(e,t,n,a,o,l,r)=>{const s=L(0),u=L(0);let c,d=0,f=0;const p=h=>{ko(c),s.value=h.touches[0].clientX,u.value=h.touches[0].clientY,d=0,f=0},m=h=>{h.preventDefault(),ko(c),d+=s.value-h.touches[0].clientX,f+=u.value-h.touches[0].clientY,s.value=h.touches[0].clientX,u.value=h.touches[0].clientY,c=Ba(()=>{const g=a.value-i(l),v=o.value-i(r);n({scrollLeft:Math.min(t.value.scrollLeft+d,g),scrollTop:Math.min(t.value.scrollTop+f,v)}),d=0,f=0})};return Wt(e,"touchstart",p,{passive:!0}),Wt(e,"touchmove",m,{passive:!1}),{touchStartX:s,touchStartY:u,handleTouchStart:p,handleTouchMove:m}},e9=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:l,getEstimatedTotalWidth:r,getColumnOffset:s,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:p,injectToInstance:m,validateProps:h})=>H({name:e??"ElVirtualList",props:lr,emits:[jd,qd],setup(g,{emit:v,expose:y,slots:b}){const w=ye("vl");h(g);const _=wt(),S=L(p(g,_));m==null||m(_,S);const k=L(),E=L(),T=L(),O=L(),$=L({isScrolling:!1,scrollLeft:je(g.initScrollLeft)?g.initScrollLeft:0,scrollTop:je(g.initScrollTop)?g.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Ud,yAxisScrollDir:Ud}),N=G5(),R=x(()=>Number.parseInt(`${g.height}`,10)),B=x(()=>Number.parseInt(`${g.width}`,10)),q=x(()=>{const{totalColumn:be,totalRow:Ee,columnCache:_e}=g,{isScrolling:Ne,xAxisScrollDir:He,scrollLeft:Qe}=i($);if(be===0||Ee===0)return[0,0,0,0];const tt=a(g,Qe,i(S)),rt=o(g,tt,Qe,i(S)),lt=!Ne||He==="backward"?Math.max(1,_e):1,Lt=!Ne||He==="forward"?Math.max(1,_e):1;return[Math.max(0,tt-lt),Math.max(0,Math.min(be-1,rt+Lt)),tt,rt]}),j=x(()=>{const{totalColumn:be,totalRow:Ee,rowCache:_e}=g,{isScrolling:Ne,yAxisScrollDir:He,scrollTop:Qe}=i($);if(be===0||Ee===0)return[0,0,0,0];const tt=d(g,Qe,i(S)),rt=f(g,tt,Qe,i(S)),lt=!Ne||He==="backward"?Math.max(1,_e):1,Lt=!Ne||He==="forward"?Math.max(1,_e):1;return[Math.max(0,tt-lt),Math.max(0,Math.min(Ee-1,rt+Lt)),tt,rt]}),D=x(()=>l(g,i(S))),V=x(()=>r(g,i(S))),I=x(()=>[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:g.direction,height:je(g.height)?`${g.height}px`:g.height,width:je(g.width)?`${g.width}px`:g.width},g.style??{}]),F=x(()=>{const be=`${i(V)}px`;return{height:`${i(D)}px`,pointerEvents:i($).isScrolling?"none":void 0,width:be,margin:0,boxSizing:"border-box"}}),K=()=>{const{totalColumn:be,totalRow:Ee}=g;if(be>0&&Ee>0){const[rt,lt,Lt,Kt]=i(q),[Pt,Je,ht,me]=i(j);v(jd,{columnCacheStart:rt,columnCacheEnd:lt,rowCacheStart:Pt,rowCacheEnd:Je,columnVisibleStart:Lt,columnVisibleEnd:Kt,rowVisibleStart:ht,rowVisibleEnd:me})}const{scrollLeft:_e,scrollTop:Ne,updateRequested:He,xAxisScrollDir:Qe,yAxisScrollDir:tt}=i($);v(qd,{xAxisScrollDir:Qe,scrollLeft:_e,yAxisScrollDir:tt,scrollTop:Ne,updateRequested:He})},W=be=>{const{clientHeight:Ee,clientWidth:_e,scrollHeight:Ne,scrollLeft:He,scrollTop:Qe,scrollWidth:tt}=be.currentTarget,rt=i($);if(rt.scrollTop===Qe&&rt.scrollLeft===He)return;let lt=He;if(P3(g.direction))switch(Gd()){case Lu:lt=-He;break;case am:lt=tt-_e-He;break}$.value={...rt,isScrolling:!0,scrollLeft:lt,scrollTop:Math.max(0,Math.min(Qe,Ne-Ee)),updateRequested:!0,xAxisScrollDir:Wi(rt.scrollLeft,lt),yAxisScrollDir:Wi(rt.scrollTop,Qe)},Le(()=>z()),G(),K()},U=(be,Ee)=>{const _e=i(R),Ne=(D.value-_e)/Ee*be;ne({scrollTop:Math.min(D.value-_e,Ne)})},ee=(be,Ee)=>{const _e=i(B),Ne=(V.value-_e)/Ee*be;ne({scrollLeft:Math.min(V.value-_e,Ne)})},{onWheel:oe}=KJ({atXStartEdge:x(()=>$.value.scrollLeft<=0),atXEndEdge:x(()=>$.value.scrollLeft>=V.value-i(B)),atYStartEdge:x(()=>$.value.scrol
|
|||
|
|
"columnWidth" must be passed as number,
|
|||
|
|
instead ${typeof e} was given.
|
|||
|
|
`),je(t)||pn(V3,`
|
|||
|
|
"columnWidth" must be passed as number,
|
|||
|
|
instead ${typeof t} was given.
|
|||
|
|
`)}}),{max:Xd,min:n9,floor:a9}=Math,B3="ElDynamicSizeGrid",jJ={column:"columnWidth",row:"rowHeight"},N2={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},hl=(e,t,n,a)=>{const[o,l,r]=[n[a],e[jJ[a]],n[N2[a]]];if(t>r){let s=0;if(r>=0){const u=o[r];s=u.offset+u.size}for(let u=r+1;u<=t;u++){const c=l(u);o[u]={offset:s,size:c},s+=c}n[N2[a]]=t}return o[t]},o9=(e,t,n,a,o,l)=>{for(;n<=a;){const r=n+a9((a-n)/2),s=hl(e,r,t,l).offset;if(s===o)return r;s<o?n=r+1:a=r-1}return Xd(0,n-1)},qJ=(e,t,n,a,o)=>{const l=o==="column"?e.totalColumn:e.totalRow;let r=1;for(;n<l&&hl(e,n,t,o).offset<a;)n+=r,r*=2;return o9(e,t,a9(n/2),n9(n,l-1),a,o)},z3=(e,t,n,a)=>{const[o,l]=[t[a],t[N2[a]]];return(l>0?o[l].offset:0)>=n?o9(e,t,0,l,n,a):qJ(e,t,Xd(0,l),n,a)},l9=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let o=0;if(n>=e&&(n=e-1),n>=0){const r=a[n];o=r.offset+r.size}const l=(e-n-1)*t;return o+l},r9=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let o=0;if(a>e&&(a=e-1),a>=0){const r=t[a];o=r.offset+r.size}const l=(e-a-1)*n;return o+l},UJ={column:r9,row:l9},D3=(e,t,n,a,o,l,r)=>{const[s,u]=[l==="row"?e.height:e.width,UJ[l]],c=hl(e,t,o,l),d=Xd(0,n9(u(e,o)-s,c.offset)),f=Xd(0,c.offset-s+r+c.size);switch(n==="smart"&&(a>=f-s&&a<=d+s?n=no:n=Ko),n){case Iu:return d;case"end":return f;case Ko:return Math.round(f+(d-f)/2);case no:default:return a>=f&&a<=d?a:f>d||a<f?f:d}},s9=e9({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const a=hl(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=hl(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,o,l)=>D3(e,t,n,a,o,"column",l),getRowOffset:(e,t,n,a,o,l)=>D3(e,t,n,a,o,"row",l),getColumnStartIndexForOffset:(e,t,n)=>z3(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const o=hl(e,t,a,"column"),l=n+e.width;let r=o.offset+o.size,s=t;for(;s<e.totalColumn-1&&r<l;)s++,r+=hl(e,t,a,"column").size;return s},getEstimatedTotalHeight:l9,getEstimatedTotalWidth:r9,getRowStartIndexForOffset:(e,t,n)=>z3(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:o,height:l}=e,r=hl(e,t,a,"row"),s=n+l;let u=r.size+r.offset,c=t;for(;c<o-1&&u<s;)c++,u+=hl(e,c,a,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:l,rowIndex:r},s)=>{var u,c;s=Nt(s)?!0:s,je(l)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,l-1)),je(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),s&&((c=e.proxy)==null||c.$forceUpdate())},a=(l,r)=>{n({columnIndex:l},r)},o=(l,r)=>{n({rowIndex:l},r)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:o,resetAfter:n})},initCache:({estimatedColumnWidth:e=50,estimatedRowHeight:t=50})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{Ue(e)||pn(B3,`
|
|||
|
|
"columnWidth" must be passed as function,
|
|||
|
|
instead ${typeof e} was given.
|
|||
|
|
`),Ue(t)||pn(B3,`
|
|||
|
|
"rowHeight" must be passed as function,
|
|||
|
|
instead ${typeof t} was given.
|
|||
|
|
`)}}),sm={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:Vn,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...ua(["ariaControls"])},im={[st]:e=>ze(e)||je(e)||Qt(e),change:e=>ze(e)||je(e)||Qt(e)},rs=Symbol("checkboxGroupContextKey"),i9=Te({modelValue:{type:Q(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:Vn,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:Q(Array)},props:{type:Q(Object),default:()=>um},type:{type:String,values:["checkbox","button"],default:"checkbox"},...ua(["ariaLabel"])}),u9={[st]:e=>Se(e),change:e=>Se(e)},um={label:"label",value:"value",disabled:"disabled"},YJ=({model:e,isChecked:t})=>{const n=Ve(rs,void 0),a=Ve(pr,void 0),o=x(()=>{var s,u;const l=(s=n==null?void 0:n.max)==null?void 0:s.value,r=(u=n==null?void 0:n.min)==null?void 0:u.value;return!Nt(l)&&e.value.length>=l&&!t.value||!Nt(r)&&e.value.length<=r&&t.value});return{isDisabled:dn(x(()=>{var l;return n===void 0?(a==null?void 0:a.disabled)??o.value:((l=n.disabled)==null?void 0:l.value)||o.value})),isLimitDisabled:o}},GJ=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:o,isLabeledByFormItem:l})=>{const r=Ve(rs,void 0),{formItem:s}=Fn(),{emit:u}=wt();function c(h){return[!0,e.trueValue,e.trueLabel].includes(h)?e.trueValue??e.trueLabel??!0:e.falseValue??e.falseLabel??!1}function d(h,g){u(St,c(h),g)}function f(h){if(n.value)return;const g=h.target;u(St,c(g.checked),h)}async function p(h){n.value||!a.value&&!o.value&&l.value&&(h.composedPath().some(g=>g.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Le(),d(t.value,h)))}const m=x(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return he(()=>e.modelValue,()=>{m.value&&(s==null||s.validate("change").catch(mt))}),{handleChange:f,onClickRoot:p}},XJ=e=>{const t=L(!1),{emit:n,vnode:a}=wt(),o=Ve(rs,void 0),l=x(()=>Nt(o)===!1),r=L(!1),s=x(()=>{const c=a.props??{};return"modelValue"in c||"model-value"in c}),u=x({get(){var c;return l.value?(c=o==null?void 0:o.modelValue)==null?void 0:c.value:s.value?e.modelValue:t.value},set(c){var d,f;l.value&&Se(c)?(r.value=((d=o==null?void 0:o.max)==null?void 0:d.value)!==void 0&&c.length>(o==null?void 0:o.max.value)&&c.length>u.value.length,r.value===!1&&((f=o==null?void 0:o.changeEvent)==null||f.call(o,c))):(n(st,c),t.value=c)}});return{model:u,isGroup:l,isLimitExceeded:r}},JJ=(e,t,{model:n})=>{const a=Ve(rs,void 0),o=L(!1),l=x(()=>Ka(e.value)?e.label:e.value),r=x(()=>{const s=n.value;return Qt(s)?s:Se(s)?ct(l.value)?s.map(an).some(u=>mn(u,l.value)):s.map(an).includes(l.value):s!=null?s===e.trueValue||s===e.trueLabel:!!s});return{checkboxButtonSize:Nn(x(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value}),{prop:!0}),isChecked:r,isFocused:o,checkboxSize:Nn(x(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value})),hasOwnLabel:x(()=>!!t.default||!Ka(l.value)),actualValue:l}},c9=(e,t)=>{const{formItem:n}=Fn(),{model:a,isGroup:o,isLimitExceeded:l}=XJ(e),{isFocused:r,isChecked:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=JJ(e,t,{model:a}),{isDisabled:p}=YJ({model:a,isChecked:s}),{inputId:m,isLabeledByFormItem:h}=Ta(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:g,onClickRoot:v}=GJ(e,{model:a,isLimitExceeded:l,hasOwnLabel:d,isDisabled:p,isLabeledByFormItem:h});return(()=>{function b(){Se(a.value)&&!a.value.includes(f.value)?a.value.push(f.value):a.value=e.trueValue??e.trueLabel??!0}e.checked&&b()})(),wo({from:"label act as v
|
|||
|
|
Add an empty element to avoid render label,
|
|||
|
|
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
|
|||
|
|
`),$[2]||($[2]=M("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):p.value&&e.node.checked?(C(),ce(i(Ke),{key:2,class:P(i(l).e("prefix"))},{default:ae(()=>[Z(i(Xr))]),_:1},8,["class"])):re("v-if",!0),re(" content "),Z(i(cZ),{node:e.node},null,8,["node"]),re(" postfix "),p.value?re("v-if",!0):(C(),A(qe,{key:3},[e.node.loading?(C(),ce(i(Ke),{key:0,class:P([i(l).is("loading"),i(l).e("postfix")])},{default:ae(()=>[Z(i(za))]),_:1},8,["class"])):(C(),ce(i(Ke),{key:1,class:P(["arrow-right",i(l).e("postfix")])},{default:ae(()=>[Z(i(sa))]),_:1},8,["class"]))],64))],42,dZ))}}),H3=fZ,pZ=H({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0},virtualScroll:{type:Boolean,required:!1,default:!1},itemSize:{type:Number,required:!1,default:34},height:{type:Number,required:!1,default:204}},setup(e,{expose:t}){const n=e,a=wt(),o=ye("cascader-menu"),{t:l}=Rt(),r=Zn();let s,u;const c=Ve(gc),d=L(),f=L(),p=x(()=>!n.nodes.length),m=x(()=>!c.initialLoaded),h=x(()=>`${r.value}-${n.index}`),g=()=>{var T,O,$,N;let E;if(c.expandingNode){const{level:R,pathNodes:B}=c.expandingNode;n.index<R?E=(T=B[n.index])==null?void 0:T.uid:n.index===R&&c.checkedNodes.length>0&&(E=($=(O=c.checkedNodes[0])==null?void 0:O.pathNodes[n.index])==null?void 0:$.uid)}else c.checkedNodes.length>0&&n.index<c.checkedNodes[0].pathNodes.length&&(E=(N=c.checkedNodes[0].pathNodes[n.index])==null?void 0:N.uid);return E!==void 0?n.nodes.findIndex(R=>R.uid===E):-1},v=E=>E?n.nodes.findIndex(T=>`${h.value}-${T.uid}`===E):-1,y=E=>{var O;const T=$a(E,0,n.nodes.length-1);(O=f.value)==null||O.scrollToItem(T)},b=E=>{if(!n.nodes.length)return;const T=$a(E,0,n.nodes.length-1);y(T),Le(()=>{var $;const O=($=a.vnode.el)==null?void 0:$.querySelector(`#${h.value}-${n.nodes[T].uid}`);O&&$s(O)})},w=E=>{s=E.target},_=E=>{var T,O,$;if(!(!c.isHoverMenu||!s||!d.value))if(s.contains(E.target)){S();const N=a.vnode.el,{left:R}=N.getBoundingClientRect(),{offsetWidth:B,offsetHeight:q}=N,j=E.clientX-R,D=s.offsetTop,V=D+s.offsetHeight,I=n.virtualScroll?((O=(T=f.value)==null?void 0:T.states)==null?void 0:O.scrollOffset)||0:(($=N.querySelector(`.${o.e("wrap")}`))==null?void 0:$.scrollTop)||0;d.value.innerHTML=`
|
|||
|
|
<path style="pointer-events: auto;" fill="transparent" d="M${j} ${D} L${B} ${I} V${D} Z" />
|
|||
|
|
<path style="pointer-events: auto;" fill="transparent" d="M${j} ${V} L${B} ${q+I} V${V} Z" />
|
|||
|
|
`}else u||(u=window.setTimeout(k,c.config.hoverThreshold))},S=()=>{u&&(clearTimeout(u),u=void 0)},k=()=>{d.value&&(d.value.innerHTML="",S())};return t({getActiveNodeIndex:g,getNodeIndexById:v,scrollToItem:y,focusNodeAt:b,virtualListRef:f,get $el(){return a.vnode.el}}),(E,T)=>{var O;return e.virtualScroll?(C(),A("div",{key:h.value,class:P(i(o).b()),onMousemove:_,onMouseleave:k},[Z(i(yi),{ref_key:"virtualListRef",ref:f,height:e.height,"item-size":e.itemSize,data:e.nodes,total:e.nodes.length,"class-name":i(o).e("list"),"inner-element":"ul","inner-props":{role:"menu",class:i(o).is("empty",p.value)}},{default:ae(({data:$,index:N,style:R})=>[(C(),ce(H3,{key:$[N].uid,node:$[N],"menu-id":h.value,style:Ye(R),onExpand:w},null,8,["node","menu-id","style"]))]),_:1},8,["height","item-size","data","total","class-name","inner-props"]),m.value?(C(),A("div",{key:0,class:P(i(o).e("empty-text"))},[Z(i(Ke),{size:14,class:P(i(o).is("loading"))},{default:ae(()=>[Z(i(za))]),_:1},8,["class"]),xt(" "+ke(i(l)("el.cascader.loading")),1)],2)):p.value?(C(),A("div",{key:1,class:P(i(o).e("empty-text"))},[se(E.$slots,"empty",{},()=>[xt(ke(i(l)("el.cascader.noData")),1)])],2)):(O=i(c))!=null&&O.isHoverMenu?(C(),A(qe,{key:2},[re(" eslint-disable vue/html-self-closing "),(C(),A("svg",{ref_key:"hoverZone",ref:d,class:P(i(o).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")],34)):(C(),ce(i(co),{key:h.value,tag:"ul",role:"menu",class:P(i(o).b()),"wrap-class":i(o).e("wrap"),"view-class":[i(o).e("list"),i(o).is("empty",p.value)],onMousemove:_,onMouseleave:k},{default:ae(()=>{var $;return[(C(!0),A(qe,null,At(e.nodes,N=>(C(),ce(H3,{key:N.uid,node:N,"menu-id":h.value,onExpand:w},null,8,["node","menu-id"]))),128)),m.value?(C(),A("div",{key:0,class:P(i(o).e("empty-text"))},[Z(i(Ke),{size:14,class:P(i(o).is("loading"))},{default:ae(()=>[Z(i(za))]),_:1},8,["class"]),xt(" "+ke(i(l)("el.cascader.loading")),1)],2)):p.value?(C(),A("div",{key:1,class:P(i(o).e("empty-text"))},[se(E.$slots,"empty",{},()=>[xt(ke(i(l)("el.cascader.noData")),1)])],2)):($=i(c))!=null&&$.isHoverMenu?(C(),A(qe,{key:2},[re(" eslint-disable vue/html-self-closing "),(C(),A("svg",{ref_key:"hoverZone",ref:d,class:P(i(o).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}}),hZ=pZ;let vZ=0;const mZ=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};var P2=class I2{constructor(t,n,a,o=!1){this.data=t,this.config=n,this.parent=a,this.root=o,this.uid=vZ++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:l,label:r,children:s}=n,u=t[s],c=mZ(this);this.level=o?0:a?a.level+1:1,this.value=t[l],this.label=t[r],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 I2(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!Sa(u),this.text=""}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:o,checkStrictly:l}=a;return(Ue(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:r}=n,s=Ue(r)?r(t,this):t[r];return Nt(s)?l&&!o?!1:!(Se(a)&&a.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,o=new I2(t,this.config,this);return Se(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
|
|||
|
|
M 50 50
|
|||
|
|
m 0 ${_?"":"-"}${w}
|
|||
|
|
a ${w} ${w} 0 1 1 0 ${_?"-":""}${w*2}
|
|||
|
|
a ${w} ${w} 0 1 1 0 ${_?"":"-"}${w*2}
|
|||
|
|
`}),u=x(()=>2*Math.PI*r.value),c=x(()=>n.type==="dashboard"?.75:1),d=x(()=>`${-1*u.value*(1-c.value)/2}px`),f=x(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),p=x(()=>({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"})),m=x(()=>{let w;return n.color?w=b(n.percentage):w=t[n.status]||t.default,w}),h=x(()=>n.status==="warning"?pc:n.type==="line"?n.status==="success"?Zf:Ro:n.status==="success"?Xr:Ga),g=x(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),v=x(()=>n.format(n.percentage));function y(w){const _=100/w.length;return w.map((S,k)=>ze(S)?{color:S,percentage:(k+1)*_}:S).sort((S,k)=>S.percentage-k.percentage)}const b=w=>{var S;const{color:_}=n;if(Ue(_))return _(w);if(ze(_))return _;{const k=y(_);for(const E of k)if(E.percentage>w)return E.color;return(S=k[k.length-1])==null?void 0:S.color}};return(w,_)=>(C(),A("div",{class:P([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"?(C(),A("div",{key:0,class:P(i(a).b("bar"))},[M("div",{class:P(i(a).be("bar","outer")),style:Ye({height:`${e.strokeWidth}px`})},[M("div",{class:P([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:Ye(o.value)},[(e.showText||w.$slots.default)&&e.textInside?(C(),A("div",{key:0,class:P(i(a).be("bar","innerText"))},[se(w.$slots,"default",{percentage:e.percentage},()=>[M("span",null,ke(v.value),1)])],2)):re("v-if",!0)],6)],6)],2)):(C(),A("div",{key:1,class:P(i(a).b("circle")),style:Ye({height:`${e.width}px`,width:`${e.width}px`})},[(C(),A("svg",roe,[M("path",{class:P(i(a).be("circle","track")),d:s.value,stroke:`var(${i(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,fill:"none",style:Ye(f.value)},null,14,soe),M("path",{class:P(i(a).be("circle","path")),d:s.value,stroke:m.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,style:Ye(p.value)},null,14,ioe)]))],6)),(e.showText||w.$slots.default)&&!e.textInside?(C(),A("div",{key:2,class:P(i(a).e("text")),style:Ye({fontSize:`${g.value}px`})},[se(w.$slots,"default",{percentage:e.percentage},()=>[e.status?(C(),ce(i(Ke),{key:1},{default:ae(()=>[(C(),ce(vt(h.value)))]),_:1})):(C(),A("span",uoe,ke(v.value),1))])],6)):re("v-if",!0)],10,loe))}}),doe=coe;const Um=dt(doe),MS=Te({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:Q([Array,Object]),default:()=>gn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:Q([Array,Object]),default:()=>[Fi,Fi,Fi]},voidIcon:{type:en,default:()=>Zw},disabledVoidIcon:{type:en,default:()=>Fi},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:Q(Array),default:()=>gn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Vn,clearable:Boolean,...ua(["ariaLabel"])}),OS={[St]:e=>je(e),[st]:e=>je(e)},foe=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax","tabindex","aria-disabled"],poe=["onMousemove","onClick"];var hoe=H({name:"ElRate",__name:"rate",props:MS,emits:OS,setup(e,{expose:t,emit:n}){function a(I,F){const K=U=>ct(U),W=F[Object.keys(F).map(U=>+U).filter(U=>{const ee=F[U];return K(ee)&&ee.excluded?I<U:I<=U}).sort((U,ee)=>U-ee)[0]];return K(W)&&W.value||W}const o=e,l=n,r=Ve(Eo,void 0),s=Nn(),u=ye("rate"),{inputId:c,isLabeledByFormItem:d}=Ta(o,{formItemContext:r}),f=L($a(o.modelValue,0,o.max)),p=L(-1),m=L(!0),h=L([]),g=x(
|
|||
|
|
`||c==="\r")){r=u;continue}if(l.includes(c)){const d=r===-1?a:r;s={pattern:o.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:r,selectionEnd:a};break}}return s},cue=(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 p=document.querySelector("#input-textarea-caret-position-mirror-div");p!=null&&p.parentNode&&p.parentNode.removeChild(p)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const s=r.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";s.whiteSpace=c?"nowrap":"pre-wrap",c||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),l.forEach(p=>{if(c&&p==="lineHeight")if(u.boxSizing==="border-box"){const m=Number.parseInt(u.height),h=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),g=h+Number.parseInt(u.lineHeight);m>g?s.lineHeight=`${m-h}px`:m===g?s.lineHeight=u.lineHeight:s.lineHeight="0"}else s.lineHeight=u.height;else s[p]=u[p]}),Ff()?e.scrollHeight>Number.parseInt(u.height)&&(s.overflowY="scroll"):s.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,o)),c&&r.textContent&&(r.textContent=r.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`,r.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(r),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},Lk=Te({...o0,options:{type:Q(Array),default:()=>[]},prefix:{type:Q([String,Array]),default:"@",validator:e=>ze(e)?e.length===1:e.every(t=>ze(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:Q([Boolean,Function]),default:()=>iue,validator:e=>e===!1?!0:Ue(e)},placement:{type:Q(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:Q(Function)},modelValue:String,loading:Boolean,popperClass:Gt.popperClass,popperStyle:Gt.popperStyle,popperOptions:{type:Q(Object),default:()=>({})},props:{type:Q(Object),default:()=>C1}}),Vk={[st]:e=>ze(e),"whole-remove":(e,t)=>ze(e)&&ze(t),input:e=>ze(e),search:(e,t)=>ze(e)&&ze(t),select:(e,t)=>ct(e)&&ze(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},C1={value:"value",label:"label",disabled:"disabled"},due=Te({options:{type:Q(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),fue={select:e=>ze(e.value)},pue=["id","aria-disabled","aria-selected","onMousemove","onClick"];var hue=H({name:"ElMentionDropdown",__name:"mention-dropdown",props:due,emits:fue,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ye("mention"),{t:r}=Rt(),s=L(-1),u=L(),c=L(),d=L(),f=(_,S)=>[l.be("dropdown","item"),l.is("hovering",s.value===S),l.is("disabled",_.disabled||a.disabled)],p=_=>{_.disabled||a.disabled||o("select",_)},m=_=>{s.value=_},h=x(()=>a.disabled||a.options.every(_=>_.disabled)),g=x(()=>a.options[s.value]),v=()=>{!g.value||g.value.disabled||a.disabled||o("select",g.value)},y=_=>{const{options:S}=a;if(S.length===0||h.value)return;_==="next"?(s.value++,s.value===S.length&&(s.value=0)):_==="prev"&&(s.value--,s.value<0&&(s.value=S.length-1));const k=S[s.value];if(k.disabled){y(_);return}Le(()=>b(k))},b=_=>{var T,O,$,N;const{opti
|
|||
|
|
`).forEach(function(r){o=r.indexOf(":"),n=r.substring(0,o).trim().toLowerCase(),a=r.substring(o+1).trim(),!(!n||t[n]&&mde[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t};function yde(e){let t=0,n=e.length;for(;t<n;){const a=e.charCodeAt(t);if(a!==9&&a!==32)break;t+=1}for(;n>t;){const a=e.charCodeAt(n-1);if(a!==9&&a!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const bde=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),wde=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function V1(e,t){return we.isArray(e)?e.map(n=>V1(n,t)):yde(String(e).replace(t,""))}const _de=e=>V1(e,bde),Cde=e=>V1(e,wde);function h7(e){const t=Object.create(null);return we.forEach(e.toJSON(),(n,a)=>{t[a]=Cde(n)}),t}const $6=Symbol("internals");function Vi(e){return e&&String(e).trim().toLowerCase()}function wd(e){return e===!1||e==null?e:we.isArray(e)?e.map(wd):_de(String(e))}function Sde(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const xde=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gp(e,t,n,a,o){if(we.isFunction(a))return a.call(this,t,n);if(o&&(t=n),!!we.isString(t)){if(we.isString(a))return t.indexOf(a)!==-1;if(we.isRegExp(a))return a.test(t)}}function kde(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function Ede(e,t){const n=we.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{__proto__:null,value:function(o,l,r){return this[a].call(this,t,o,l,r)},configurable:!0})})}let ma=class{constructor(t){t&&this.set(t)}set(t,n,a){const o=this;function l(s,u,c){const d=Vi(u);if(!d)return;const f=we.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||u]=wd(s))}const r=(s,u)=>we.forEach(s,(c,d)=>l(c,d,u));if(we.isPlainObject(t)||t instanceof this.constructor)r(t,n);else if(we.isString(t)&&(t=t.trim())&&!xde(t))r(gde(t),n);else if(we.isObject(t)&&we.isSafeIterable(t)){let s=Object.create(null),u,c;for(const d of t){if(!we.isArray(d))throw new TypeError("Object iterator must return a key-value pair");c=d[0],we.hasOwnProp(s,c)?(u=s[c],s[c]=we.isArray(u)?[...u,d[1]]:[u,d[1]]):s[c]=d[1]}r(s,n)}else t!=null&&l(n,t,a);return this}get(t,n){if(t=Vi(t),t){const a=we.findKey(this,t);if(a){const o=this[a];if(!n)return o;if(n===!0)return Sde(o);if(we.isFunction(n))return n.call(this,o,a);if(we.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Vi(t),t){const a=we.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||gp(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let o=!1;function l(r){if(r=Vi(r),r){const s=we.findKey(a,r);s&&(!n||gp(a,a[s],s,n))&&(delete a[s],o=!0)}}return we.isArray(t)?t.forEach(l):l(t),o}clear(t){const n=Object.keys(this);let a=n.length,o=!1;for(;a--;){const l=n[a];(!t||gp(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,a={};return we.forEach(this,(o,l)=>{const r=we.findKey(a,l);if(r){n[r]=wd(o),delete n[l];return}const s=t?kde(l):String(l).trim();s!==l&&delete n[l],n[s]=wd(o),a[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return we.forEach(this,(a,o)=>{a!=null&&a!==!1&&(n[o]=t&&we.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|||
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(o=>a.set(o)),a}static accessor(t){const a=(this[$6]=this[$6]={accessors:{}}).accessors,o=this.prototype;function l(r){const s=Vi(r);a[s]||(Ede(o,r),a[s]=!0)}return we.isArray(t)?t.forEach(l):l(t),this}};ma.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);we.reduceDescriptors(ma.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}});we.freezeMethods(ma);const Tde="[REDACTED ****]";function Mde(e){if(we.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(we.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Ode(e,t){const n=new Set(t.map(l=>String(l).toLowerCase())),a=[],o=l=>{if(l===null||typeof l!="object"||we.isBuffer(l))return l;if(a.indexOf(l)!==-1)return;l instanceof ma&&(l=l.toJSON()),a.push(l);let r;if(we.isArray(l))r=[],l.forEach((s,u)=>{const c=o(s);we.isUndefined(c)||(r[u]=c)});else{if(!we.isPlainObject(l)&&Mde(l))return a.pop(),l;r=Object.create(null);for(const[s,u]of Object.entries(l)){const c=n.has(s.toLowerCase())?Tde:o(u);we.isUndefined(c)||(r[s]=c)}}return a.pop(),r};return o(e)}let gt=class v7 extends Error{static from(t,n,a,o,l,r){const s=new v7(t.message,n||t.code,a,o,l);return Object.defineProperty(s,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),r&&Object.assign(s,r),s}constructor(t,n,a,o,l){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),a&&(this.config=a),o&&(this.request=o),l&&(this.response=l,this.status=l.status)}toJSON(){const t=this.config,n=t&&we.hasOwnProp(t,"redact")?t.redact:void 0,a=we.isArray(n)&&n.length>0?Ode(t,n):we.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a,code:this.code,status:this.status}}};gt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";gt.ERR_BAD_OPTION="ERR_BAD_OPTION";gt.ECONNABORTED="ECONNABORTED";gt.ETIMEDOUT="ETIMEDOUT";gt.ECONNREFUSED="ECONNREFUSED";gt.ERR_NETWORK="ERR_NETWORK";gt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";gt.ERR_DEPRECATED="ERR_DEPRECATED";gt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";gt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";gt.ERR_CANCELED="ERR_CANCELED";gt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";gt.ERR_INVALID_URL="ERR_INVALID_URL";gt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Ade=null,m7=100;function th(e){return we.isPlainObject(e)||we.isArray(e)}function g7(e){return we.endsWith(e,"[]")?e.slice(0,-2):e}function yp(e,t,n){return e?e.concat(t).map(function(o,l){return o=g7(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function Rde(e){return we.isArray(e)&&!e.some(th)}const $de=we.toFlatObject(we,{},null,function(t){return/^is[A-Z]/.test(t)});function _0(e,t,n){if(!we.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=we.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,w){return!we.isUndefined(w[b])});const a=n.metaTokens,o=n.visitor||h,l=n.dots,r=n.indexes,s=n.Blob||typeof Blob<"u"&&Blob,u=n.maxDepth===void 0?m7:n.maxDepth,c=s&&we.isSpecCompliantForm(t),d=[];if(!we.isFunction(o))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(we.isDate(y))return y.toISOString();if(we.isBoolean(y))return y.toString();if(!c&&we.isBlob(y))throw new gt("Blob is not supported. Use a Buffer instead.");if(we.isArrayBuffer(y)||we.isTypedArray(y)){if(c&&typeof s=="function")return new s([y]);if(typeof Buffer<"u")return Buffer.from(y);throw new gt("Blob is not supported. Use a Buffer instead.",gt.ERR_NOT_SUPPORT)}return y}functio
|
|||
|
|
`+r.map(W6).join(`
|
|||
|
|
`):" "+W6(r[0]):"as no adapter specified";throw new gt("There is no suitable adapter to dispatch the request "+s,gt.ERR_NOT_SUPPORT)}return o}const T7={getAdapter:bfe,adapters:F1};function wp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ec(null,e)}function j6(e){return wp(e),e.headers=ma.from(e.headers),e.data=bp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),T7.getAdapter(e.adapter||kc.adapter,e)(e).then(function(a){wp(e),e.response=a;try{a.data=bp.call(e,e.transformResponse,a)}finally{delete e.response}return a.headers=ma.from(a.headers),a},function(a){if(!C7(a)&&(wp(e),a&&a.response)){e.response=a.response;try{a.response.data=bp.call(e,e.transformResponse,a.response)}finally{delete e.response}a.response.headers=ma.from(a.response.headers)}return Promise.reject(a)})}const C0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{C0[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const q6={};C0.transitional=function(t,n,a){function o(l,r){return"[Axios v"+H1+"] Transitional option '"+l+"'"+r+(a?". "+a:"")}return(l,r,s)=>{if(t===!1)throw new gt(o(r," has been removed"+(n?" in "+n:"")),gt.ERR_DEPRECATED);return n&&!q6[r]&&(q6[r]=!0,console.warn(o(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,r,s):!0}};C0.spelling=function(t){return(n,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function wfe(e,t,n){if(typeof e!="object"||e===null)throw new gt("options must be an object",gt.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;for(;o-- >0;){const l=a[o],r=Object.prototype.hasOwnProperty.call(t,l)?t[l]:void 0;if(r){const s=e[l],u=s===void 0||r(s,l,e);if(u!==!0)throw new gt("option "+l+" must be "+u,gt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new gt("Unknown option "+l,gt.ERR_BAD_OPTION)}}const _d={assertOptions:wfe,validators:C0},da=_d.validators;let Dr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new P6,response:new P6}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const l=(()=>{if(!o.stack)return"";const r=o.stack.indexOf(`
|
|||
|
|
`);return r===-1?"":o.stack.slice(r+1)})();try{if(!a.stack)a.stack=l;else if(l){const r=l.indexOf(`
|
|||
|
|
`),s=r===-1?-1:l.indexOf(`
|
|||
|
|
`,r+1),u=s===-1?"":l.slice(s+1);String(a.stack).endsWith(u)||(a.stack+=`
|
|||
|
|
`+l)}}catch{}}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ts(this.defaults,n);const{transitional:a,paramsSerializer:o,headers:l}=n;a!==void 0&&_d.assertOptions(a,{silentJSONParsing:da.transitional(da.boolean),forcedJSONParsing:da.transitional(da.boolean),clarifyTimeoutError:da.transitional(da.boolean),legacyInterceptorReqResOrdering:da.transitional(da.boolean),advertiseZstdAcceptEncoding:da.transitional(da.boolean),validateStatusUndefinedResolves:da.transitional(da.boolean)},!1),o!=null&&(we.isFunction(o)?n.paramsSerializer={serialize:o}:_d.assertOptions(o,{encode:da.function,serialize:da.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),_d.assertOptions(n,{baseUrl:da.spelling("baseURL"),withXsrfToken:da.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=l&&we.merge(l.common,l[n.method]);l&&we.forEach(["delete","get","head","post","put","patch","query","common"],h=>{delete l[h]}),n.headers=ma.concat(r,l);const s=[];let u=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;u=u&&g.synchronous;const v=n.transitional||z1;v&&v.legacyInterceptorReqResOrdering?s.unshift(g.fulfilled,g.rejected):s.push(g.fulfilled,g.rejected)});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let d,f=0,p;if(!u){const h=[j6.bind(this),void 0];for(h.unshift(...s),h.push(...c),p=h.length,d=Promise.resolve(n);f<p;)d=d.then(h[f++],h[f++]);return d}p=s.length;let m=n;for(;f<p;){const h=s[f++],g=s[f++];try{m=h(m)}catch(v){g.call(this,v);break}}try{d=j6.call(this,m)}catch(h){return Promise.reject(h)}for(f=0,p=c.length;f<p;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=ts(this.defaults,t);const n=x7(t.baseURL,t.url,t.allowAbsoluteUrls,t);return b7(n,t.params,t.paramsSerializer)}};we.forEach(["delete","get","head","options"],function(t){Dr.prototype[t]=function(n,a){return this.request(ts(a||{},{method:t,url:n,data:a&&we.hasOwnProp(a,"data")?a.data:void 0}))}});we.forEach(["post","put","patch","query"],function(t){function n(a){return function(l,r,s){return this.request(ts(s||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:l,data:r}))}}Dr.prototype[t]=n(),t!=="query"&&(Dr.prototype[t+"Form"]=n(!0))});let _fe=class M7{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const a=this;this.promise.then(o=>{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](o);a._listeners=null}),this.promise.then=o=>{let l;const r=new Promise(s=>{a.subscribe(s),l=s}).then(o);return r.cancel=function(){a.unsubscribe(l)},r},t(function(l,r,s){a.reason||(a.reason=new Ec(l,r,s),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=a=>{t.abort(a)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new M7(function(o){t=o}),cancel:t}}};function Cfe(e){return function(n){return e.apply(null,n)}}function Sfe(e){return we.isObject(e)&&e.isAxiosError===!0}const ah={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:
|
|||
|
|
* pinia v2.3.1
|
|||
|
|
* (c) 2025 Eduardo San Martin Morote
|
|||
|
|
* @license MIT
|
|||
|
|
*/let N7;const S0=e=>N7=e,P7=Symbol();function oh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var cu;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(cu||(cu={}));function $fe(){const e=uh(!0),t=e.run(()=>L({}));let n=[],a=[];const o=ao({install(l){S0(o),o._a=l,l.provide(P7,o),l.config.globalProperties.$pinia=o,a.forEach(r=>n.push(r)),a=[]},use(l){return this._a?n.push(l):a.push(l),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const I7=()=>{};function G6(e,t,n,a=I7){e.push(t);const o=()=>{const l=e.indexOf(t);l>-1&&(e.splice(l,1),a())};return!n&&gf()&&ch(o),o}function ys(e,...t){e.slice().forEach(n=>{n(...t)})}const Nfe=e=>e(),X6=Symbol(),_p=Symbol();function lh(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,a)=>e.set(a,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],o=e[n];oh(o)&&oh(a)&&e.hasOwnProperty(n)&&!on(a)&&!bl(a)?e[n]=lh(o,a):e[n]=a}return e}const Pfe=Symbol();function Ife(e){return!oh(e)||!e.hasOwnProperty(Pfe)}const{assign:Yl}=Object;function Lfe(e){return!!(on(e)&&e.effect)}function Vfe(e,t,n,a){const{state:o,actions:l,getters:r}=t,s=n.state.value[e];let u;function c(){s||(n.state.value[e]=o?o():{});const d=Hn(n.state.value[e]);return Yl(d,l,Object.keys(r||{}).reduce((f,p)=>(f[p]=ao(x(()=>{S0(n);const m=n._s.get(e);return r[p].call(m,m)})),f),{}))}return u=L7(e,c,t,n,a,!0),u}function L7(e,t,n={},a,o,l){let r;const s=Yl({actions:{}},n),u={deep:!0};let c,d,f=[],p=[],m;const h=a.state.value[e];!l&&!h&&(a.state.value[e]={});let g;function v(T){let O;c=d=!1,typeof T=="function"?(T(a.state.value[e]),O={type:cu.patchFunction,storeId:e,events:m}):(lh(a.state.value[e],T),O={type:cu.patchObject,payload:T,storeId:e,events:m});const $=g=Symbol();Le().then(()=>{g===$&&(c=!0)}),d=!0,ys(f,O,a.state.value[e])}const y=l?function(){const{state:O}=n,$=O?O():{};this.$patch(N=>{Yl(N,$)})}:I7;function b(){r.stop(),f=[],p=[],a._s.delete(e)}const w=(T,O="")=>{if(X6 in T)return T[_p]=O,T;const $=function(){S0(a);const N=Array.from(arguments),R=[],B=[];function q(V){R.push(V)}function j(V){B.push(V)}ys(p,{args:N,name:$[_p],store:S,after:q,onError:j});let D;try{D=T.apply(this&&this.$id===e?this:S,N)}catch(V){throw ys(B,V),V}return D instanceof Promise?D.then(V=>(ys(R,V),V)).catch(V=>(ys(B,V),Promise.reject(V))):(ys(R,D),D)};return $[X6]=!0,$[_p]=O,$},_={_p:a,$id:e,$onAction:G6.bind(null,p),$patch:v,$reset:y,$subscribe(T,O={}){const $=G6(f,T,O.detached,()=>N()),N=r.run(()=>he(()=>a.state.value[e],R=>{(O.flush==="sync"?d:c)&&T({storeId:e,type:cu.direct,events:m},R)},Yl({},u,O)));return $},$dispose:b},S=Ft(_);a._s.set(e,S);const E=(a._a&&a._a.runWithContext||Nfe)(()=>a._e.run(()=>(r=uh()).run(()=>t({action:w}))));for(const T in E){const O=E[T];if(on(O)&&!Lfe(O)||bl(O))l||(h&&Ife(O)&&(on(O)?O.value=h[T]:lh(O,h[T])),a.state.value[e][T]=O);else if(typeof O=="function"){const $=w(O,T);E[T]=$,s.actions[T]=O}}return Yl(S,E),Yl(an(S),E),Object.defineProperty(S,"$state",{get:()=>a.state.value[e],set:T=>{v(O=>{Yl(O,T)})}}),a._p.forEach(T=>{Yl(S,r.run(()=>T({store:S,app:a._a,pinia:a,options:s})))}),h&&l&&n.hydrate&&n.hydrate(S.$state,h),c=!0,d=!0,S}/*! #__NO_SIDE_EFFECTS__ */function V7(e,t,n){let a,o;const l=typeof t=="function";typeof e=="string"?(a=e,o=l?n:t):(o=e,a=e.id);function r(s,u){const c=mh();return s=s||(c?Ve(P7,null):null),s&&S0(s),s=N7,s._s.has(a)||(l?L7(a,t,o,s):Vfe(a,o,s)),s._s.get(a)}return r.$id=a,r}async function Bfe(e,t,n){return await nn.post("/agents/login",{user_id:e,name:e,password:t,otp_code:n||void 0})}async function zfe(){return await nn.get("/agents/me")}async function Dfe(e){return await nn.put("/agents/me/status",{status:e})}async function Hfe(e){const t={};return t.status=e,await nn.get("/agents",{params:t})}async function J0e(){return await nn.post("/agents/otp-bind")}async function Z0e(e,t){return await nn.post("/agents/otp-verify",{user_id:e,otp_code:t})}async function Q0e(){return await nn.post("/agents/otp-
|
|||
|
|
${v.data.last_message_summary||""}`,type:"info",duration:0,position:"top-right",onClick:()=>{y.selectConversation(v.data.conversation_id)}})})}break;case"collaborator_joined":case"collaborator_left":y.handleCollaboratorChanged();break;case"participant_invited":y.handleCollaboratorChanged();break;case"participant_joined":y.handleCollaboratorChanged();break;case"participant_removed":case"participant_left":y.handleCollaboratorChanged();break;case"pong":break;case"pending_close_confirmed":v.data&&(y.handlePendingCloseConfirmed(v.data),Aa(async()=>{const{ElNotification:w}=await Promise.resolve().then(()=>Xc);return{ElNotification:w}},void 0).then(({ElNotification:w})=>{w({title:"✅ 员工已确认结单",message:`会话「${v.data.employee_name||""}」已确认解决`,type:"success",duration:5e3,position:"top-right"})}));break;case"pending_close_rejected":v.data&&(y.handlePendingCloseRejected(v.data),Aa(async()=>{const{ElNotification:w}=await Promise.resolve().then(()=>Xc);return{ElNotification:w}},void 0).then(({ElNotification:w})=>{w({title:"🔄 员工拒绝结单",message:`会话「${v.data.employee_name||""}」员工要求继续处理${v.data.reason?":"+v.data.reason:""}`,type:"warning",duration:0,position:"top-right"})}));break;case"conversation_resolved":v.data&&(y.handleConversationUpdated(v.data),Aa(async()=>{const{ElNotification:w}=await Promise.resolve().then(()=>Xc);return{ElNotification:w}},void 0).then(({ElNotification:w})=>{w({title:"📌 会话已关闭",message:`会话「${v.data.employee_name||""}」已关闭${v.data.resolved_method?"("+v.data.resolved_method+")":""}`,type:"info",duration:5e3,position:"top-right"})}));break;case"typing":if(v.data){const w=Ui();v.data.sender_id!==w.userId&&y.handleTypingEvent(v.data)}break;case"ai_thinking":(b=v.data)!=null&&b.conversation_id&&y.handleAiThinking(v.data);break;default:console.warn(`[WebSocket] 未知消息类型: ${v.type}`)}}let f=null;function p(){try{f||(f=new AudioContext);const v=f.currentTime,y=f.createOscillator(),b=f.createGain();y.type="sine",y.frequency.value=880,b.gain.setValueAtTime(.3,v),b.gain.exponentialRampToValueAtTime(.001,v+.15),y.connect(b),b.connect(f.destination),y.start(v),y.stop(v+.15);const w=f.createOscillator(),_=f.createGain();w.type="sine",w.frequency.value=660,_.gain.setValueAtTime(.3,v+.1),_.gain.exponentialRampToValueAtTime(.001,v+.3),w.connect(_),_.connect(f.destination),w.start(v+.1),w.stop(v+.3)}catch{}}let m=0;const h=3e3;function g(v){if(!e||e.readyState!==WebSocket.OPEN)return;const y=Date.now();if(y-m<h)return;m=y;const b=Ui();e.send(JSON.stringify({type:"typing",conversation_id:v,sender_name:b.agentName||"坐席"}))}return{connect:l,disconnect:r,sendTyping:g}}const bs="agent_token",ws="agent_user_id",Ui=V7("agent",()=>{const e=L(null),t=L(localStorage.getItem(bs)),n=L(localStorage.getItem(ws)),a=L(!1),o=L([]),l=x(()=>!!t.value&&!!e.value),r=x(()=>{var g;return((g=e.value)==null?void 0:g.status)||"offline"}),s=x(()=>{var g;return((g=e.value)==null?void 0:g.name)||""}),u=x(()=>{var g;return((g=e.value)==null?void 0:g.user_id)||n.value||""});async function c(g,v,y){try{a.value=!0,localStorage.removeItem(bs),localStorage.removeItem(ws),t.value=null,n.value=null,e.value=null;const b=await Bfe(g,v,y);if("require_otp_bind"in b&&b.require_otp_bind)return b.token&&(t.value=b.token,n.value=b.user_id,localStorage.setItem(bs,b.token),localStorage.setItem(ws,b.user_id)),a.value=!1,{require_otp_bind:!0,user_id:b.user_id,name:b.name,role:b.role};if("require_otp"in b&&b.require_otp)throw a.value=!1,new Error("require_otp");t.value=b.token,n.value=b.user_id,localStorage.setItem(bs,b.token),localStorage.setItem(ws,b.user_id);const{token:w,..._}=b;e.value=_,Wu.push("/workspace")}catch(b){throw console.error("登录失败:",b),b instanceof Error&&b.message==="require_otp",b}finally{a.value=!1}}function d(){const{disconnect:g}=d0e();g(),t.value=null,n.value=null,e.value=null,localStorage.removeItem(bs),localStorage.removeItem(ws),Wu.push("/login")}async function f(){var g;try{if(!t.value)return;const v=await zfe();e.value=v}catch(v){
|